index.50edacb8.js 580 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import{aE as Jm,_ as Zl,d as Jl,B as Sm,E as lo,F as Qm,u as zt,x as Ci,o as nn,c as so,a as Hn,b as on,L as rd,M as qm,a2 as Pm,ao as eb,y as Ko,K as Vo,V as Tm,J as tb,T as DC,aF as jC,aG as CC,ax as RC,N as nd,aH as ld,R as IC,W as rb,$ as _C,a0 as BC}from"./index.743f0c80.js";const LC=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"\u5F00\u59CB",x:280,y:200,text:{x:280,y:200,value:"\u5F00\u59CB"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"\u7ED3\u675F",x:920,y:200,text:{x:920,y:200,value:"\u7ED3\u675F"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"\u7F51\u5173",x:580,y:200,text:{x:580,y:200,value:"\u7F51\u5173"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"\u7528\u6237",x:420,y:200,text:{x:420,y:200,value:"\u7528\u6237"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"\u670D\u52A1",x:760,y:200,text:{x:760,y:200,value:"\u670D\u52A1"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"\u8FB9",text:{x:331,y:200,value:"\u8FB9"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"\u8FB92",text:{x:507,y:200,value:"\u8FB92"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"\u8FB93",text:{x:664,y:200,value:"\u8FB93"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"\u8FB94",text:{x:871,y:200,value:"\u8FB94"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}];var zC={flowElementList:LC};var Ke={exports:{}};(function(m,v){(function(c,i){m.exports=i()})(window,function(){return function(u){var c={};function i(s){if(c[s])return c[s].exports;var f=c[s]={i:s,l:!1,exports:{}};return u[s].call(f.exports,f,f.exports,i),f.l=!0,f.exports}return i.m=u,i.c=c,i.d=function(s,f,y){i.o(s,f)||Object.defineProperty(s,f,{enumerable:!0,get:y})},i.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,f){if(f&1&&(s=i(s)),f&8||f&4&&typeof s=="object"&&s&&s.__esModule)return s;var y=Object.create(null);if(i.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:s}),f&2&&typeof s!="string")for(var b in s)i.d(y,b,function(E){return s[E]}.bind(null,b));return y},i.n=function(s){var f=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(f,"a",f),f},i.o=function(s,f){return Object.prototype.hasOwnProperty.call(s,f)},i.p="",i(i.s=215)}([function(u,c,i){(function(s,f){i.d(c,"a",function(){return D}),i.d(c,"b",function(){return ii}),i.d(c,"c",function(){return sn}),i.d(c,"d",function(){return sr}),i.d(c,"e",function(){return Xe}),i.d(c,"f",function(){return De}),i.d(c,"g",function(){return zi}),i.d(c,"h",function(){return Vn}),i.d(c,"i",function(){return nt}),i.d(c,"j",function(){return xr}),i.d(c,"k",function(){return Ur}),i.d(c,"l",function(){return Dr}),i.d(c,"m",function(){return Er}),i.d(c,"n",function(){return vs}),i.d(c,"o",function(){return ue}),i.d(c,"p",function(){return Es}),i.d(c,"q",function(){return oi}),i.d(c,"r",function(){return gs}),i.d(c,"s",function(){return Mr}),i.d(c,"t",function(){return Zi}),i.d(c,"u",function(){return cs}),i.d(c,"v",function(){return ms}),i.d(c,"w",function(){return bs}),i.d(c,"x",function(){return Sn}),i.d(c,"y",function(){return Cr}),i.d(c,"z",function(){return $t}),i.d(c,"A",function(){return vr}),i.d(c,"B",function(){return Pn}),i.d(c,"C",function(){return mt}),i.d(c,"D",function(){return xs}),i.d(c,"E",function(){return ni}),i.d(c,"F",function(){return ps}),i.d(c,"G",function(){return fs}),i.d(c,"H",function(){return Xi}),i.d(c,"I",function(){return Ts}),i.d(c,"J",function(){return Sr}),i.d(c,"K",function(){return te}),i.d(c,"L",function(){return Os}),i.d(c,"M",function(){return Mn});var y="An invariant failed, however the error is obfuscated because this is a production build.",b=[];Object.freeze(b);var E={};Object.freeze(E);function S(){return++$e.mobxGuid}function M(d){throw T(!1,d),"X"}function T(d,h){if(!d)throw new Error("[mobx] "+(h||y))}function A(d){var h=!1;return function(){if(!h)return h=!0,d.apply(this,arguments)}}var I=function(){};function _(d){var h=[];return d.forEach(function(O){h.indexOf(O)===-1&&h.push(O)}),h}function L(d){return d!==null&&typeof d=="object"}function H(d){if(d===null||typeof d!="object")return!1;var h=Object.getPrototypeOf(d);return h===Object.prototype||h===null}function U(d){if(J(d)||$t(d))return d;if(Array.isArray(d))return new Map(d);if(H(d)){var h=new Map;for(var O in d)h.set(O,d[O]);return h}else return M("Cannot convert to map from '"+d+"'")}function X(d,h,O){Object.defineProperty(d,h,{enumerable:!1,writable:!0,configurable:!0,value:O})}function se(d,h,O){Object.defineProperty(d,h,{enumerable:!1,writable:!1,configurable:!0,value:O})}function ae(d,h){var O=Object.getOwnPropertyDescriptor(d,h);return!O||O.configurable!==!1&&O.writable!==!1}function q(d,h){var O="isMobX"+d;return h.prototype[O]=!0,function(C){return L(C)&&C[O]===!0}}function J(d){return d instanceof Map}function ie(d){return d instanceof Set}function z(d){var h=new Set;for(var O in d)h.add(O);return Object.getOwnPropertySymbols(d).forEach(function(C){Object.getOwnPropertyDescriptor(d,C).enumerable&&h.add(C)}),Array.from(h)}function j(d){return d&&d.toString?d.toString():new String(d).toString()}function N(d){return d===null?null:typeof d=="object"?""+d:d}var P=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(d){return Object.getOwnPropertyNames(d).concat(Object.getOwnPropertySymbols(d))}:Object.getOwnPropertyNames,D=Symbol("mobx administration"),Y=function(){function d(h){h===void 0&&(h="Atom@"+S()),this.name=h,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=qe.NOT_TRACKING}return d.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(h){return h()})},d.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(h){return h()})},d.prototype.reportObserved=function(){return ki(this)},d.prototype.reportChanged=function(){Tt(),rs(this),pr()},d.prototype.toString=function(){return this.name},d}(),V=q("Atom",Y);function ue(d,h,O){h===void 0&&(h=I),O===void 0&&(O=I);var C=new Y(d);return h!==I&&hs(C,h),O!==I&&ni(C,O),C}function Oe(d,h){return d===h}function me(d,h){return Oo(d,h)}function ce(d,h){return Oo(d,h,1)}function he(d,h){return Object.is(d,h)}var ve={identity:Oe,structural:me,default:he,shallow:ce};/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  4. this file except in compliance with the License. You may obtain a copy of the
  5. License at http://www.apache.org/licenses/LICENSE-2.0
  6. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  7. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  8. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  9. MERCHANTABLITY OR NON-INFRINGEMENT.
  10. See the Apache Version 2.0 License for specific language governing permissions
  11. and limitations under the License.
  12. ***************************************************************************** */var Ee=function(d,h){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,C){O.__proto__=C}||function(O,C){for(var F in C)C.hasOwnProperty(F)&&(O[F]=C[F])},Ee(d,h)};function je(d,h){Ee(d,h);function O(){this.constructor=d}d.prototype=h===null?Object.create(h):(O.prototype=h.prototype,new O)}var ze=function(){return ze=Object.assign||function(h){for(var O,C=1,F=arguments.length;C<F;C++){O=arguments[C];for(var K in O)Object.prototype.hasOwnProperty.call(O,K)&&(h[K]=O[K])}return h},ze.apply(this,arguments)};function Re(d){var h=typeof Symbol=="function"&&d[Symbol.iterator],O=0;return h?h.call(d):{next:function(){return d&&O>=d.length&&(d=void 0),{value:d&&d[O++],done:!d}}}}function xe(d,h){var O=typeof Symbol=="function"&&d[Symbol.iterator];if(!O)return d;var C=O.call(d),F,K=[],de;try{for(;(h===void 0||h-- >0)&&!(F=C.next()).done;)K.push(F.value)}catch(we){de={error:we}}finally{try{F&&!F.done&&(O=C.return)&&O.call(C)}finally{if(de)throw de.error}}return K}function Be(){for(var d=[],h=0;h<arguments.length;h++)d=d.concat(xe(arguments[h]));return d}var _e=Symbol("mobx did run lazy initializers"),G=Symbol("mobx pending decorators"),W={},ee={};function ge(d,h){var O=h?W:ee;return O[d]||(O[d]={configurable:!0,enumerable:h,get:function(){return Me(this),this[d]},set:function(C){Me(this),this[d]=C}})}function Me(d){var h,O;if(d[_e]!==!0){var C=d[G];if(C){X(d,_e,!0);var F=Be(Object.getOwnPropertySymbols(C),Object.keys(C));try{for(var K=Re(F),de=K.next();!de.done;de=K.next()){var we=de.value,Ue=C[we];Ue.propertyCreator(d,Ue.prop,Ue.descriptor,Ue.decoratorTarget,Ue.decoratorArguments)}}catch(st){h={error:st}}finally{try{de&&!de.done&&(O=K.return)&&O.call(K)}finally{if(h)throw h.error}}}}}function ye(d,h){return function(){var C,F=function(de,we,Ue,st){if(st===!0)return h(de,we,Ue,de,C),null;if(!Object.prototype.hasOwnProperty.call(de,G)){var ft=de[G];X(de,G,ze({},ft))}return de[G][we]={prop:we,propertyCreator:h,descriptor:Ue,decoratorTarget:de,decoratorArguments:C},ge(we,d)};return He(arguments)?(C=b,F.apply(null,arguments)):(C=Array.prototype.slice.call(arguments),F)}}function He(d){return(d.length===2||d.length===3)&&(typeof d[1]=="string"||typeof d[1]=="symbol")||d.length===4&&d[3]===!0}function et(d,h,O){return Sn(d)?d:Array.isArray(d)?mt.array(d,{name:O}):H(d)?mt.object(d,void 0,{name:O}):J(d)?mt.map(d,{name:O}):ie(d)?mt.set(d,{name:O}):d}function We(d,h,O){return d==null||vr(d)||Cr(d)||$t(d)||fr(d)?d:Array.isArray(d)?mt.array(d,{name:O,deep:!1}):H(d)?mt.object(d,void 0,{name:O,deep:!1}):J(d)?mt.map(d,{name:O,deep:!1}):ie(d)?mt.set(d,{name:O,deep:!1}):M(!1)}function rt(d){return d}function be(d,h,O){return Oo(d,h)?h:d}function ut(d){T(d);var h=ye(!0,function(C,F,K,de,we){var Ue=K?K.initializer?K.initializer.call(C):K.value:void 0;ai(C).addObservableProp(F,Ue,d)}),O=(typeof s!="undefined"&&s.env,h);return O.enhancer=d,O}var tt={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(tt);function Fe(d){return d==null?tt:typeof d=="string"?{name:d,deep:!0,proxy:!0}:d}var Qe=ut(et),At=ut(We),ct=ut(rt),bt=ut(be);function ne(d){return d.defaultDecorator?d.defaultDecorator.enhancer:d.deep===!1?rt:et}function Ct(d,h,O){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Qe.apply(null,arguments);if(Sn(d))return d;var C=H(d)?mt.object(d,h,O):Array.isArray(d)?mt.array(d,h):J(d)?mt.map(d,h):ie(d)?mt.set(d,h):d;if(C!==d)return C;M(!1)}var St={box:function(d,h){arguments.length>2&&Wt("box");var O=Fe(h);return new ln(d,ne(O),O.name,!0,O.equals)},array:function(d,h){arguments.length>2&&Wt("array");var O=Fe(h);return js(d,ne(O),O.name)},map:function(d,h){arguments.length>2&&Wt("map");var O=Fe(h);return new ii(d,ne(O),O.name)},set:function(d,h){arguments.length>2&&Wt("set");var O=Fe(h);return new aa(d,ne(O),O.name)},object:function(d,h,O){typeof arguments[1]=="string"&&Wt("object");var C=Fe(O);if(C.proxy===!1)return oi({},d,h,C);var F=Ki(C),K=oi({},void 0,void 0,C),de=An(K);return Vi(de,d,h,F),de},ref:ct,shallow:At,deep:Qe,struct:bt},mt=Ct;Object.keys(St).forEach(function(d){return mt[d]=St[d]});function Wt(d){M("Expected one or two arguments to observable."+d+". Did you accidentally try to use observable."+d+" as decorator?")}var dr=ye(!1,function(d,h,O,C,F){var K=O.get,de=O.set,we=F[0]||{};ai(d).addComputedProp(d,h,ze({get:K,set:de,context:d},we))}),Zt=dr({equals:ve.structural}),Er=function(h,O,C){if(typeof O=="string"||h!==null&&typeof h=="object"&&arguments.length===1)return dr.apply(null,arguments);var F=typeof O=="object"?O:{};return F.get=h,F.set=typeof O=="function"?O:F.set,F.name=F.name||h.name||"",new bn(F)};Er.struct=Zt;var qe;(function(d){d[d.NOT_TRACKING=-1]="NOT_TRACKING",d[d.UP_TO_DATE=0]="UP_TO_DATE",d[d.POSSIBLY_STALE=1]="POSSIBLY_STALE",d[d.STALE=2]="STALE"})(qe||(qe={}));var Pt;(function(d){d[d.NONE=0]="NONE",d[d.LOG=1]="LOG",d[d.BREAK=2]="BREAK"})(Pt||(Pt={}));var nr=function(){function d(h){this.cause=h}return d}();function Ce(d){return d instanceof nr}function Ye(d){switch(d.dependenciesState){case qe.UP_TO_DATE:return!1;case qe.NOT_TRACKING:case qe.STALE:return!0;case qe.POSSIBLY_STALE:{for(var h=De(!0),O=re(),C=d.observing,F=C.length,K=0;K<F;K++){var de=C[K];if(On(de)){if($e.disableErrorBoundaries)de.get();else try{de.get()}catch{return Ae(O),Xe(h),!0}if(d.dependenciesState===qe.STALE)return Ae(O),Xe(h),!0}}return vt(d),Ae(O),Xe(h),!1}}}function nt(){return $e.trackingDerivation!==null}function Ze(d){var h=d.observers.size>0;$e.computationDepth>0&&h&&M(!1),!$e.allowStateChanges&&(h||$e.enforceActions==="strict")&&M(!1)}function lt(d,h,O){var C=De(!0);vt(d),d.newObserving=new Array(d.observing.length+100),d.unboundDepsCount=0,d.runId=++$e.runId;var F=$e.trackingDerivation;$e.trackingDerivation=d;var K;if($e.disableErrorBoundaries===!0)K=h.call(O);else try{K=h.call(O)}catch(de){K=new nr(de)}return $e.trackingDerivation=F,k(d),Xe(C),K}function k(d){for(var h=d.observing,O=d.observing=d.newObserving,C=qe.UP_TO_DATE,F=0,K=d.unboundDepsCount,de=0;de<K;de++){var we=O[de];we.diffValue===0&&(we.diffValue=1,F!==de&&(O[F]=we),F++),we.dependenciesState>C&&(C=we.dependenciesState)}for(O.length=F,d.newObserving=null,K=h.length;K--;){var we=h[K];we.diffValue===0&&$r(we,d),we.diffValue=0}for(;F--;){var we=O[F];we.diffValue===1&&(we.diffValue=0,ts(we,d))}C!==qe.UP_TO_DATE&&(d.dependenciesState=C,d.onBecomeStale())}function Z(d){var h=d.observing;d.observing=[];for(var O=h.length;O--;)$r(h[O],d);d.dependenciesState=qe.NOT_TRACKING}function te(d){var h=re();try{return d()}finally{Ae(h)}}function re(){var d=$e.trackingDerivation;return $e.trackingDerivation=null,d}function Ae(d){$e.trackingDerivation=d}function De(d){var h=$e.allowStateReads;return $e.allowStateReads=d,h}function Xe(d){$e.allowStateReads=d}function vt(d){if(d.dependenciesState!==qe.UP_TO_DATE){d.dependenciesState=qe.UP_TO_DATE;for(var h=d.observing,O=h.length;O--;)h[O].lowestObserverState=qe.UP_TO_DATE}}var Jt=0,Qt=1,kn=Object.getOwnPropertyDescriptor(function(){},"name");kn&&kn.configurable;function kr(d,h,O){var C=function(){return Li(d,h,O||this,arguments)};return C.isMobxAction=!0,C}function Li(d,h,O,C){var F=xr();try{return h.apply(O,C)}catch(K){throw F.error=K,K}finally{zi(F)}}function xr(d,h,O){var C=Rt(),F=0,K=re();Tt();var de=mn(!0),we=De(!0),Ue={prevDerivation:K,prevAllowStateChanges:de,prevAllowStateReads:we,notifySpy:C,startTime:F,actionId:Qt++,parentActionId:Jt};return Jt=Ue.actionId,Ue}function zi(d){Jt!==d.actionId&&M("invalid action stack. did you forget to finish an action?"),Jt=d.parentActionId,d.error!==void 0&&($e.suppressReactionErrors=!0),$n(d.prevAllowStateChanges),Xe(d.prevAllowStateReads),pr(),Ae(d.prevDerivation),d.notifySpy,$e.suppressReactionErrors=!1}function sr(d,h){var O=mn(d),C;try{C=h()}finally{$n(O)}return C}function mn(d){var h=$e.allowStateChanges;return $e.allowStateChanges=d,h}function $n(d){$e.allowStateChanges=d}var ln=function(d){je(h,d);function h(O,C,F,K,de){F===void 0&&(F="ObservableValue@"+S()),K===void 0&&(K=!0),de===void 0&&(de=ve.default);var we=d.call(this,F)||this;return we.enhancer=C,we.name=F,we.equals=de,we.hasUnreportedChange=!1,we.value=C(O,void 0,F),K&&Rt(),we}return h.prototype.dehanceValue=function(O){return this.dehancer!==void 0?this.dehancer(O):O},h.prototype.set=function(O){var C=this.value;if(O=this.prepareNewValue(O),O!==$e.UNCHANGED){var F=Rt();this.setNewValue(O)}},h.prototype.prepareNewValue=function(O){if(Ze(this),Pr(this)){var C=Tr(this,{object:this,type:"update",newValue:O});if(!C)return $e.UNCHANGED;O=C.newValue}return O=this.enhancer(O,this.value,this.name),this.equals(this.value,O)?$e.UNCHANGED:O},h.prototype.setNewValue=function(O){var C=this.value;this.value=O,this.reportChanged(),hr(this)&&qt(this,{type:"update",object:this,newValue:O,oldValue:C})},h.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},h.prototype.intercept=function(O){return Wn(this,O)},h.prototype.observe=function(O,C){return C&&O({object:this,type:"update",newValue:this.value,oldValue:void 0}),Kn(this,O)},h.prototype.toJSON=function(){return this.get()},h.prototype.toString=function(){return this.name+"["+this.value+"]"},h.prototype.valueOf=function(){return N(this.get())},h.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},h}(Y),Un=q("ObservableValue",ln),bn=function(){function d(h){this.dependenciesState=qe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=qe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+S(),this.value=new nr(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Pt.NONE,T(h.get,"missing option for computed: get"),this.derivation=h.get,this.name=h.name||"ComputedValue@"+S(),h.set&&(this.setter=kr(this.name+"-setter",h.set)),this.equals=h.equals||(h.compareStructural||h.struct?ve.structural:ve.default),this.scope=h.context,this.requiresReaction=!!h.requiresReaction,this.keepAlive=!!h.keepAlive}return d.prototype.onBecomeStale=function(){os(this)},d.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(h){return h()})},d.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(h){return h()})},d.prototype.get=function(){this.isComputing&&M("Cycle detected in computation "+this.name+": "+this.derivation),$e.inBatch===0&&this.observers.size===0&&!this.keepAlive?Ye(this)&&(this.warnAboutUntrackedRead(),Tt(),this.value=this.computeValue(!1),pr()):(ki(this),Ye(this)&&this.trackAndCompute()&&ns(this));var h=this.value;if(Ce(h))throw h.cause;return h},d.prototype.peek=function(){var h=this.computeValue(!1);if(Ce(h))throw h.cause;return h},d.prototype.set=function(h){if(this.setter){T(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,h)}finally{this.isRunningSetter=!1}}else T(!1,!1)},d.prototype.trackAndCompute=function(){var h=this.value,O=this.dependenciesState===qe.NOT_TRACKING,C=this.computeValue(!0),F=O||Ce(h)||Ce(C)||!this.equals(h,C);return F&&(this.value=C),F},d.prototype.computeValue=function(h){this.isComputing=!0,$e.computationDepth++;var O;if(h)O=lt(this,this.derivation,this.scope);else if($e.disableErrorBoundaries===!0)O=this.derivation.call(this.scope);else try{O=this.derivation.call(this.scope)}catch(C){O=new nr(C)}return $e.computationDepth--,this.isComputing=!1,O},d.prototype.suspend=function(){this.keepAlive||(Z(this),this.value=void 0)},d.prototype.observe=function(h,O){var C=this,F=!0,K=void 0;return Dr(function(){var de=C.get();if(!F||O){var we=re();h({type:"update",object:C,newValue:de,oldValue:K}),Ae(we)}F=!1,K=de})},d.prototype.warnAboutUntrackedRead=function(){},d.prototype.toJSON=function(){return this.get()},d.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},d.prototype.valueOf=function(){return N(this.get())},d.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},d}(),On=q("ComputedValue",bn),co=function(){function d(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return d}(),es={};function po(){return typeof window!="undefined"?window:typeof f!="undefined"?f:typeof self!="undefined"?self:es}var ho=!0,Fi=!1,$e=function(){var d=po();return d.__mobxInstanceCount>0&&!d.__mobxGlobals&&(ho=!1),d.__mobxGlobals&&d.__mobxGlobals.version!==new co().version&&(ho=!1),ho?d.__mobxGlobals?(d.__mobxInstanceCount+=1,d.__mobxGlobals.UNCHANGED||(d.__mobxGlobals.UNCHANGED={}),d.__mobxGlobals):(d.__mobxInstanceCount=1,d.__mobxGlobals=new co):(setTimeout(function(){Fi||M("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new co)}();function Hi(){($e.pendingReactions.length||$e.inBatch||$e.isRunningReactions)&&M("isolateGlobalState should be called before MobX is running any reactions"),Fi=!0,ho&&(--po().__mobxInstanceCount===0&&(po().__mobxGlobals=void 0),$e=new co)}function ts(d,h){d.observers.add(h),d.lowestObserverState>h.dependenciesState&&(d.lowestObserverState=h.dependenciesState)}function $r(d,h){d.observers.delete(h),d.observers.size===0&&Gi(d)}function Gi(d){d.isPendingUnobservation===!1&&(d.isPendingUnobservation=!0,$e.pendingUnobservations.push(d))}function Tt(){$e.inBatch++}function pr(){if(--$e.inBatch===0){Ui();for(var d=$e.pendingUnobservations,h=0;h<d.length;h++){var O=d[h];O.isPendingUnobservation=!1,O.observers.size===0&&(O.isBeingObserved&&(O.isBeingObserved=!1,O.onBecomeUnobserved()),O instanceof bn&&O.suspend())}$e.pendingUnobservations=[]}}function ki(d){var h=$e.trackingDerivation;return h!==null?(h.runId!==d.lastAccessedBy&&(d.lastAccessedBy=h.runId,h.newObserving[h.unboundDepsCount++]=d,d.isBeingObserved||(d.isBeingObserved=!0,d.onBecomeObserved())),!0):(d.observers.size===0&&$e.inBatch>0&&Gi(d),!1)}function rs(d){d.lowestObserverState!==qe.STALE&&(d.lowestObserverState=qe.STALE,d.observers.forEach(function(h){h.dependenciesState===qe.UP_TO_DATE&&(h.isTracing!==Pt.NONE&&vo(h,d),h.onBecomeStale()),h.dependenciesState=qe.STALE}))}function ns(d){d.lowestObserverState!==qe.STALE&&(d.lowestObserverState=qe.STALE,d.observers.forEach(function(h){h.dependenciesState===qe.POSSIBLY_STALE?h.dependenciesState=qe.STALE:h.dependenciesState===qe.UP_TO_DATE&&(d.lowestObserverState=qe.UP_TO_DATE)}))}function os(d){d.lowestObserverState===qe.UP_TO_DATE&&(d.lowestObserverState=qe.POSSIBLY_STALE,d.observers.forEach(function(h){h.dependenciesState===qe.UP_TO_DATE&&(h.dependenciesState=qe.POSSIBLY_STALE,h.isTracing!==Pt.NONE&&vo(h,d),h.onBecomeStale())}))}function vo(d,h){if(console.log("[mobx.trace] '"+d.name+"' is invalidated due to a change in: '"+h.name+"'"),d.isTracing===Pt.BREAK){var O=[];$i(Zi(d),O,1),new Function(`debugger;
  13. /*
  14. Tracing '`+d.name+`'
  15. You are entering this break point because derivation '`+d.name+"' is being traced and '"+h.name+`' is now forcing it to update.
  16. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
  17. The stackframe you are looking for is at least ~6-8 stack-frames up.
  18. `+(d instanceof bn?d.derivation.toString().replace(/[*]\//g,"/"):"")+`
  19. The dependencies for this derivation are:
  20. `+O.join(`
  21. `)+`
  22. */
  23. `)()}}function $i(d,h,O){if(h.length>=1e3){h.push("(and many more)");return}h.push(""+new Array(O).join(" ")+d.name),d.dependencies&&d.dependencies.forEach(function(C){return $i(C,h,O+1)})}var sn=function(){function d(h,O,C,F){h===void 0&&(h="Reaction@"+S()),F===void 0&&(F=!1),this.name=h,this.onInvalidate=O,this.errorHandler=C,this.requiresObservable=F,this.observing=[],this.newObserving=[],this.dependenciesState=qe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+S(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pt.NONE}return d.prototype.onBecomeStale=function(){this.schedule()},d.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,$e.pendingReactions.push(this),Ui())},d.prototype.isScheduled=function(){return this._isScheduled},d.prototype.runReaction=function(){if(!this.isDisposed){if(Tt(),this._isScheduled=!1,Ye(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Rt()}catch(h){this.reportExceptionInDerivation(h)}}pr()}},d.prototype.track=function(h){if(!this.isDisposed){Tt(),this._isRunning=!0;var O=lt(this,h,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Z(this),Ce(O)&&this.reportExceptionInDerivation(O.cause),pr()}},d.prototype.reportExceptionInDerivation=function(h){var O=this;if(this.errorHandler){this.errorHandler(h,this);return}if($e.disableErrorBoundaries)throw h;var C="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";$e.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(C,h),$e.globalReactionErrorHandlers.forEach(function(F){return F(h,O)})},d.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Tt(),Z(this),pr()))},d.prototype.getDisposer=function(){var h=this.dispose.bind(this);return h[D]=this,h},d.prototype.toString=function(){return"Reaction["+this.name+"]"},d.prototype.trace=function(h){h===void 0&&(h=!1),Ms(this,h)},d}(),ei=100,ti=function(d){return d()};function Ui(){$e.inBatch>0||$e.isRunningReactions||ti(is)}function is(){$e.isRunningReactions=!0;for(var d=$e.pendingReactions,h=0;d.length>0;){++h===ei&&(console.error("Reaction doesn't converge to a stable state after "+ei+" iterations."+(" Probably there is a cycle in the reactive function: "+d[0])),d.splice(0));for(var O=d.splice(0),C=0,F=O.length;C<F;C++)O[C].runReaction()}$e.isRunningReactions=!1}var yo=q("Reaction",sn);function as(d){var h=ti;ti=function(O){return d(function(){return h(O)})}}function Rt(){return!1}function pd(d){}function hd(d){}function vd(d){}function Xi(d){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function us(){M(!1)}function Yi(d){return function(h,O,C){if(C){if(C.value)return{value:kr(d,C.value),enumerable:!1,configurable:!0,writable:!0};var F=C.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return kr(d,F.call(this))}}}return ls(d).apply(this,arguments)}}function ls(d){return function(h,O,C){Object.defineProperty(h,O,{configurable:!0,enumerable:!1,get:function(){},set:function(F){X(this,O,Ur(d,F))}})}}function ss(d,h,O,C){return C===!0?(ri(d,h,O.value),null):O?{configurable:!0,enumerable:!1,get:function(){return ri(this,h,O.value||O.initializer.call(this)),this[h]},set:us}:{enumerable:!1,configurable:!0,set:function(F){ri(this,h,F)},get:function(){}}}var Ur=function(h,O,C,F){if(arguments.length===1&&typeof h=="function")return kr(h.name||"<unnamed action>",h);if(arguments.length===2&&typeof O=="function")return kr(h,O);if(arguments.length===1&&typeof h=="string")return Yi(h);if(F===!0)X(h,O,kr(h.name||O,C.value,this));else return Yi(O).apply(null,arguments)};Ur.bound=ss;function fs(d,h){var O=typeof d=="string"?d:d.name||"<unnamed action>",C=typeof d=="function"?d:h;return Li(O,C,this,void 0)}function cs(d){return typeof d=="function"&&d.isMobxAction===!0}function ri(d,h,O){X(d,h,kr(h,O.bind(d)))}function Dr(d,h){h===void 0&&(h=E);var O=h&&h.name||d.name||"Autorun@"+S(),C=!h.scheduler&&!h.delay,F;if(C)F=new sn(O,function(){this.track(we)},h.onError,h.requiresObservable);else{var K=En(h),de=!1;F=new sn(O,function(){de||(de=!0,K(function(){de=!1,F.isDisposed||F.track(we)}))},h.onError,h.requiresObservable)}function we(){d(F)}return F.schedule(),F.getDisposer()}var ds=function(d){return d()};function En(d){return d.scheduler?d.scheduler:d.delay?function(h){return setTimeout(h,d.delay)}:ds}function ps(d,h,O){O===void 0&&(O=E);var C=O.name||"Reaction@"+S(),F=Ur(C,O.onError?Xn(O.onError,h):h),K=!O.scheduler&&!O.delay,de=En(O),we=!0,Ue=!1,st,ft=O.compareStructural?ve.structural:O.equals||ve.default,Ot=new sn(C,function(){we||K?xt():Ue||(Ue=!0,de(xt))},O.onError,O.requiresObservable);function xt(){if(Ue=!1,!Ot.isDisposed){var _t=!1;Ot.track(function(){var Ut=d(Ot);_t=we||!ft(st,Ut),st=Ut}),we&&O.fireImmediately&&F(st,Ot),!we&&_t===!0&&F(st,Ot),we&&(we=!1)}}return Ot.schedule(),Ot.getDisposer()}function Xn(d,h){return function(){try{return h.apply(this,arguments)}catch(O){d.call(this,O)}}}function hs(d,h,O){return Wi("onBecomeObserved",d,h,O)}function ni(d,h,O){return Wi("onBecomeUnobserved",d,h,O)}function Wi(d,h,O,C){var F=typeof C=="function"?Mr(h,O):Mr(h),K=typeof C=="function"?C:O,de=d+"Listeners";F[de]?F[de].add(K):F[de]=new Set([K]);var we=F[d];return typeof we!="function"?M(!1):function(){var Ue=F[de];Ue&&(Ue.delete(K),Ue.size===0&&delete F[de])}}function vs(d){var h=d.enforceActions,O=d.computedRequiresReaction,C=d.computedConfigurable,F=d.disableErrorBoundaries,K=d.reactionScheduler,de=d.reactionRequiresObservable,we=d.observableRequiresReaction;if(d.isolateGlobalState===!0&&Hi(),h!==void 0){var Ue=void 0;switch(h){case!0:case"observed":Ue=!0;break;case!1:case"never":Ue=!1;break;case"strict":case"always":Ue="strict";break;default:M("Invalid value for 'enforceActions': '"+h+"', expected 'never', 'always' or 'observed'")}$e.enforceActions=Ue,$e.allowStateChanges=!(Ue===!0||Ue==="strict")}O!==void 0&&($e.computedRequiresReaction=!!O),de!==void 0&&($e.reactionRequiresObservable=!!de),we!==void 0&&($e.observableRequiresReaction=!!we,$e.allowStateReads=!$e.observableRequiresReaction),C!==void 0&&($e.computedConfigurable=!!C),F!==void 0&&(F===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),$e.disableErrorBoundaries=!!F),K&&as(K)}function oi(d,h,O,C){C=Fe(C);var F=Ki(C);return Me(d),ai(d,C.name,F.enhancer),h&&Vi(d,h,O,F),d}function Ki(d){return d.defaultDecorator||(d.deep===!1?ct:Qe)}function Vi(d,h,O,C){var F,K,de,we;Tt();try{var we=P(h);try{for(var Ue=Re(we),st=Ue.next();!st.done;st=Ue.next()){var de=st.value,ft=Object.getOwnPropertyDescriptor(h,de),Ot=O&&de in O?O[de]:ft.get?dr:C,xt=Ot(d,de,ft,!0);xt&&Object.defineProperty(d,de,xt)}}catch(Ut){F={error:Ut}}finally{try{st&&!st.done&&(K=Ue.return)&&K.call(Ue)}finally{if(F)throw F.error}}}finally{pr()}}function Zi(d,h){return Ji(Mr(d,h))}function Ji(d){var h={name:d.name};return d.observing&&d.observing.length>0&&(h.dependencies=_(d.observing).map(Ji)),h}var ys=0;function Qi(){this.message="FLOW_CANCELLED"}Qi.prototype=Object.create(Error.prototype);function gs(d){arguments.length!==1&&M("Flow expects 1 argument and cannot be used as decorator");var h=d.name||"<unnamed flow>";return function(){var O=this,C=arguments,F=++ys,K=Ur(h+" - runid: "+F+" - init",d).apply(O,C),de,we=void 0,Ue=new Promise(function(st,ft){var Ot=0;de=ft;function xt(Mt){we=void 0;var yr;try{yr=Ur(h+" - runid: "+F+" - yield "+Ot++,K.next).call(K,Mt)}catch(Nn){return ft(Nn)}Ut(yr)}function _t(Mt){we=void 0;var yr;try{yr=Ur(h+" - runid: "+F+" - yield "+Ot++,K.throw).call(K,Mt)}catch(Nn){return ft(Nn)}Ut(yr)}function Ut(Mt){if(Mt&&typeof Mt.then=="function"){Mt.then(Ut,ft);return}return Mt.done?st(Mt.value):(we=Promise.resolve(Mt.value),we.then(xt,_t))}xt(void 0)});return Ue.cancel=Ur(h+" - runid: "+F+" - cancel",function(){try{we&&qi(we);var st=K.return(void 0),ft=Promise.resolve(st.value);ft.then(I,I),qi(ft),de(new Qi)}catch(Ot){de(Ot)}}),Ue}}function qi(d){typeof d.cancel=="function"&&d.cancel()}function ea(d,h){if(d==null)return!1;if(h!==void 0){if(vr(d)===!1||!d[D].values.has(h))return!1;var O=Mr(d,h);return On(O)}return On(d)}function ms(d){return arguments.length>1?M(!1):ea(d)}function bs(d,h){return typeof h!="string"?M(!1):ea(d,h)}function xn(d,h){return d==null?!1:h!==void 0?vr(d)?d[D].values.has(h):!1:vr(d)||!!d[D]||V(d)||yo(d)||On(d)}function Sn(d){return arguments.length!==1&&M(!1),xn(d)}function Pn(d){return vr(d)?d[D].getKeys():$t(d)||fr(d)?Array.from(d.keys()):Cr(d)?d.map(function(h,O){return O}):M(!1)}function Os(d){return vr(d)?Pn(d).map(function(h){return d[h]}):$t(d)?Pn(d).map(function(h){return d.get(h)}):fr(d)?Array.from(d.values()):Cr(d)?d.slice():M(!1)}function Es(d){return vr(d)?Pn(d).map(function(h){return[h,d[h]]}):$t(d)?Pn(d).map(function(h){return[h,d.get(h)]}):fr(d)?Array.from(d.entries()):Cr(d)?d.map(function(h,O){return[O,h]}):M(!1)}function ta(d,h,O){if(arguments.length===2&&!fr(d)){Tt();var C=h;try{for(var F in C)ta(d,F,C[F])}finally{pr()}return}if(vr(d)){var K=d[D],de=K.values.get(h);de?K.write(h,O):K.addObservableProp(h,O,K.defaultEnhancer)}else if($t(d))d.set(h,O);else if(fr(d))d.add(h);else if(Cr(d))typeof h!="number"&&(h=parseInt(h,10)),T(h>=0,"Not a valid index: '"+h+"'"),Tt(),h>=d.length&&(d.length=h+1),d[h]=O,pr();else return M(!1)}function xs(d,h,O,C){return typeof O=="function"?Ss(d,h,O,C):go(d,h,O)}function go(d,h,O){return Vn(d).observe(h,O)}function Ss(d,h,O,C){return Vn(d,h).observe(O,C)}var Ps={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Tn(d,h,O,C){return C.detectCycles&&d.set(h,O),O}function Xr(d,h,O){if(!h.recurseEverything&&!Sn(d)||typeof d!="object")return d;if(d===null)return null;if(d instanceof Date)return d;if(Un(d))return Xr(d.get(),h,O);Sn(d)&&Pn(d);var C=h.detectCycles===!0;if(C&&d!==null&&O.has(d))return O.get(d);if(Cr(d)||Array.isArray(d)){var F=Tn(O,d,[],h),K=d.map(function(_t){return Xr(_t,h,O)});F.length=K.length;for(var de=0,we=K.length;de<we;de++)F[de]=K[de];return F}if(fr(d)||Object.getPrototypeOf(d)===Set.prototype)if(h.exportMapsAsObjects===!1){var Ue=Tn(O,d,new Set,h);return d.forEach(function(_t){Ue.add(Xr(_t,h,O))}),Ue}else{var st=Tn(O,d,[],h);return d.forEach(function(_t){st.push(Xr(_t,h,O))}),st}if($t(d)||Object.getPrototypeOf(d)===Map.prototype)if(h.exportMapsAsObjects===!1){var ft=Tn(O,d,new Map,h);return d.forEach(function(_t,Ut){ft.set(Ut,Xr(_t,h,O))}),ft}else{var Ot=Tn(O,d,{},h);return d.forEach(function(_t,Ut){Ot[Ut]=Xr(_t,h,O)}),Ot}var xt=Tn(O,d,{},h);return z(d).forEach(function(_t){xt[_t]=Xr(d[_t],h,O)}),xt}function Ts(d,h){typeof h=="boolean"&&(h={detectCycles:h}),h||(h=Ps),h.detectCycles=h.detectCycles===void 0?h.recurseEverything===!0:h.detectCycles===!0;var O;return h.detectCycles&&(O=new Map),Xr(d,h,O)}function Ms(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var O=!1;typeof d[d.length-1]=="boolean"&&(O=d.pop());var C=ws(d);if(!C)return M(!1);C.isTracing===Pt.NONE&&console.log("[mobx.trace] '"+C.name+"' tracing enabled"),C.isTracing=O?Pt.BREAK:Pt.LOG}function ws(d){switch(d.length){case 0:return $e.trackingDerivation;case 1:return Mr(d[0]);case 2:return Mr(d[0],d[1])}}function Sr(d,h){h===void 0&&(h=void 0),Tt();try{return d.apply(h)}finally{pr()}}function Mn(d,h,O){return arguments.length===1||h&&typeof h=="object"?As(d,h):Yn(d,h,O||{})}function Yn(d,h,O){var C;typeof O.timeout=="number"&&(C=setTimeout(function(){if(!K[D].isDisposed){K();var de=new Error("WHEN_TIMEOUT");if(O.onError)O.onError(de);else throw de}},O.timeout)),O.name=O.name||"When@"+S();var F=kr(O.name+"-effect",h),K=Dr(function(de){d()&&(de.dispose(),C&&clearTimeout(C),F())},O);return K}function As(d,h){var O,C=new Promise(function(F,K){var de=Yn(d,F,ze(ze({},h),{onError:K}));O=function(){de(),K("WHEN_CANCELLED")}});return C.cancel=O,C}function mo(d){return d[D]}function bo(d){return typeof d=="string"||typeof d=="number"||typeof d=="symbol"}var wn={has:function(d,h){if(h===D||h==="constructor"||h===_e)return!0;var O=mo(d);return bo(h)?O.has(h):h in d},get:function(d,h){if(h===D||h==="constructor"||h===_e)return d[h];var O=mo(d),C=O.values.get(h);if(C instanceof Y){var F=C.get();return F===void 0&&O.has(h),F}return bo(h)&&O.has(h),d[h]},set:function(d,h,O){return bo(h)?(ta(d,h,O),!0):!1},deleteProperty:function(d,h){if(!bo(h))return!1;var O=mo(d);return O.remove(h),!0},ownKeys:function(d){var h=mo(d);return h.keysAtom.reportObserved(),Reflect.ownKeys(d)},preventExtensions:function(d){return M("Dynamic observable objects cannot be frozen"),!1}};function An(d){var h=new Proxy(d,wn);return d[D].proxy=h,h}function Pr(d){return d.interceptors!==void 0&&d.interceptors.length>0}function Wn(d,h){var O=d.interceptors||(d.interceptors=[]);return O.push(h),A(function(){var C=O.indexOf(h);C!==-1&&O.splice(C,1)})}function Tr(d,h){var O=re();try{for(var C=Be(d.interceptors||[]),F=0,K=C.length;F<K&&(h=C[F](h),T(!h||h.type,"Intercept handlers should return nothing or a change object"),!!h);F++);return h}finally{Ae(O)}}function hr(d){return d.changeListeners!==void 0&&d.changeListeners.length>0}function Kn(d,h){var O=d.changeListeners||(d.changeListeners=[]);return O.push(h),A(function(){var C=O.indexOf(h);C!==-1&&O.splice(C,1)})}function qt(d,h){var O=re(),C=d.changeListeners;if(!!C){C=C.slice();for(var F=0,K=C.length;F<K;F++)C[F](h);Ae(O)}}var Ns=1e4,Ds={get:function(d,h){return h===D?d[D]:h==="length"?d[D].getArrayLength():typeof h=="number"?jr.get.call(d,h):typeof h=="string"&&!isNaN(h)?jr.get.call(d,parseInt(h)):jr.hasOwnProperty(h)?jr[h]:d[h]},set:function(d,h,O){return h==="length"&&d[D].setArrayLength(O),typeof h=="number"&&jr.set.call(d,h,O),typeof h=="symbol"||isNaN(h)?d[h]=O:jr.set.call(d,parseInt(h),O),!0},preventExtensions:function(d){return M("Observable arrays cannot be frozen"),!1}};function js(d,h,O,C){O===void 0&&(O="ObservableArray@"+S()),C===void 0&&(C=!1);var F=new ra(O,h,C);se(F.values,D,F);var K=new Proxy(F.values,Ds);if(F.proxy=K,d&&d.length){var de=mn(!0);F.spliceWithArray(0,0,d),$n(de)}return K}var ra=function(){function d(h,O,C){this.owned=C,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new Y(h||"ObservableArray@"+S()),this.enhancer=function(F,K){return O(F,K,h+"[..]")}}return d.prototype.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},d.prototype.dehanceValues=function(h){return this.dehancer!==void 0&&h.length>0?h.map(this.dehancer):h},d.prototype.intercept=function(h){return Wn(this,h)},d.prototype.observe=function(h,O){return O===void 0&&(O=!1),O&&h({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Kn(this,h)},d.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},d.prototype.setArrayLength=function(h){if(typeof h!="number"||h<0)throw new Error("[mobx.array] Out of range: "+h);var O=this.values.length;if(h!==O)if(h>O){for(var C=new Array(h-O),F=0;F<h-O;F++)C[F]=void 0;this.spliceWithArray(O,0,C)}else this.spliceWithArray(h,O-h)},d.prototype.updateArrayLength=function(h,O){if(h!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=O},d.prototype.spliceWithArray=function(h,O,C){var F=this;Ze(this.atom);var K=this.values.length;if(h===void 0?h=0:h>K?h=K:h<0&&(h=Math.max(0,K+h)),arguments.length===1?O=K-h:O==null?O=0:O=Math.max(0,Math.min(O,K-h)),C===void 0&&(C=b),Pr(this)){var de=Tr(this,{object:this.proxy,type:"splice",index:h,removedCount:O,added:C});if(!de)return b;O=de.removedCount,C=de.added}C=C.length===0?C:C.map(function(Ue){return F.enhancer(Ue,void 0)});var we=this.spliceItemsIntoValues(h,O,C);return(O!==0||C.length!==0)&&this.notifyArraySplice(h,C,we),this.dehanceValues(we)},d.prototype.spliceItemsIntoValues=function(h,O,C){var F;if(C.length<Ns)return(F=this.values).splice.apply(F,Be([h,O],C));var K=this.values.slice(h,h+O);return this.values=this.values.slice(0,h).concat(C,this.values.slice(h+O)),K},d.prototype.notifyArrayChildUpdate=function(h,O,C){var F=!this.owned&&Rt(),K=hr(this),de=K||F?{object:this.proxy,type:"update",index:h,newValue:O,oldValue:C}:null;this.atom.reportChanged(),K&&qt(this,de)},d.prototype.notifyArraySplice=function(h,O,C){var F=!this.owned&&Rt(),K=hr(this),de=K||F?{object:this.proxy,type:"splice",index:h,removed:C,added:O,removedCount:C.length,addedCount:O.length}:null;this.atom.reportChanged(),K&&qt(this,de)},d}(),jr={intercept:function(d){return this[D].intercept(d)},observe:function(d,h){h===void 0&&(h=!1);var O=this[D];return O.observe(d,h)},clear:function(){return this.splice(0)},replace:function(d){var h=this[D];return h.spliceWithArray(0,h.values.length,d)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(d,h){for(var O=[],C=2;C<arguments.length;C++)O[C-2]=arguments[C];var F=this[D];switch(arguments.length){case 0:return[];case 1:return F.spliceWithArray(d);case 2:return F.spliceWithArray(d,h)}return F.spliceWithArray(d,h,O)},spliceWithArray:function(d,h,O){var C=this[D];return C.spliceWithArray(d,h,O)},push:function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var O=this[D];return O.spliceWithArray(O.values.length,0,d),O.values.length},pop:function(){return this.splice(Math.max(this[D].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var O=this[D];return O.spliceWithArray(0,0,d),O.values.length},reverse:function(){var d=this.slice();return d.reverse.apply(d,arguments)},sort:function(d){var h=this.slice();return h.sort.apply(h,arguments)},remove:function(d){var h=this[D],O=h.dehanceValues(h.values).indexOf(d);return O>-1?(this.splice(O,1),!0):!1},get:function(d){var h=this[D];if(h){if(d<h.values.length)return h.atom.reportObserved(),h.dehanceValue(h.values[d]);console.warn("[mobx.array] Attempt to read an array index ("+d+") that is out of bounds ("+h.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(d,h){var O=this[D],C=O.values;if(d<C.length){Ze(O.atom);var F=C[d];if(Pr(O)){var K=Tr(O,{type:"update",object:O.proxy,index:d,newValue:h});if(!K)return;h=K.newValue}h=O.enhancer(h,F);var de=h!==F;de&&(C[d]=h,O.notifyArrayChildUpdate(d,h,F))}else if(d===C.length)O.spliceWithArray(d,0,[h]);else throw new Error("[mobx.array] Index out of bounds, "+d+" is larger than "+C.length)}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(d){typeof Array.prototype[d]=="function"&&(jr[d]=function(){var h=this[D];h.atom.reportObserved();var O=h.dehanceValues(h.values);return O[d].apply(O,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(d){typeof Array.prototype[d]=="function"&&(jr[d]=function(h,O){var C=this,F=this[D];F.atom.reportObserved();var K=F.dehanceValues(F.values);return K[d](function(de,we){return h.call(O,de,we,C)},O)})}),["reduce","reduceRight"].forEach(function(d){jr[d]=function(){var h=this,O=this[D];O.atom.reportObserved();var C=arguments[0];return arguments[0]=function(F,K,de){return K=O.dehanceValue(K),C(F,K,de,h)},O.values[d].apply(O.values,arguments)}});var Cs=q("ObservableArrayAdministration",ra);function Cr(d){return L(d)&&Cs(d[D])}var na,oa={},ii=function(){function d(h,O,C){if(O===void 0&&(O=et),C===void 0&&(C="ObservableMap@"+S()),this.enhancer=O,this.name=C,this[na]=oa,this._keysAtom=ue(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(h)}return d.prototype._has=function(h){return this._data.has(h)},d.prototype.has=function(h){var O=this;if(!$e.trackingDerivation)return this._has(h);var C=this._hasMap.get(h);if(!C){var F=C=new ln(this._has(h),rt,this.name+"."+j(h)+"?",!1);this._hasMap.set(h,F),ni(F,function(){return O._hasMap.delete(h)})}return C.get()},d.prototype.set=function(h,O){var C=this._has(h);if(Pr(this)){var F=Tr(this,{type:C?"update":"add",object:this,newValue:O,name:h});if(!F)return this;O=F.newValue}return C?this._updateValue(h,O):this._addValue(h,O),this},d.prototype.delete=function(h){var O=this;if(Ze(this._keysAtom),Pr(this)){var C=Tr(this,{type:"delete",object:this,name:h});if(!C)return!1}if(this._has(h)){var F=Rt(),K=hr(this),C=K||F?{type:"delete",object:this,oldValue:this._data.get(h).value,name:h}:null;return Sr(function(){O._keysAtom.reportChanged(),O._updateHasMapEntry(h,!1);var we=O._data.get(h);we.setNewValue(void 0),O._data.delete(h)}),K&&qt(this,C),!0}return!1},d.prototype._updateHasMapEntry=function(h,O){var C=this._hasMap.get(h);C&&C.setNewValue(O)},d.prototype._updateValue=function(h,O){var C=this._data.get(h);if(O=C.prepareNewValue(O),O!==$e.UNCHANGED){var F=Rt(),K=hr(this),de=K||F?{type:"update",object:this,oldValue:C.value,name:h,newValue:O}:null;C.setNewValue(O),K&&qt(this,de)}},d.prototype._addValue=function(h,O){var C=this;Ze(this._keysAtom),Sr(function(){var we=new ln(O,C.enhancer,C.name+"."+j(h),!1);C._data.set(h,we),O=we.value,C._updateHasMapEntry(h,!0),C._keysAtom.reportChanged()});var F=Rt(),K=hr(this),de=K||F?{type:"add",object:this,name:h,newValue:O}:null;K&&qt(this,de)},d.prototype.get=function(h){return this.has(h)?this.dehanceValue(this._data.get(h).get()):this.dehanceValue(void 0)},d.prototype.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},d.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},d.prototype.values=function(){var h=this,O=this.keys();return Eo({next:function(){var C=O.next(),F=C.done,K=C.value;return{done:F,value:F?void 0:h.get(K)}}})},d.prototype.entries=function(){var h=this,O=this.keys();return Eo({next:function(){var C=O.next(),F=C.done,K=C.value;return{done:F,value:F?void 0:[K,h.get(K)]}}})},d.prototype[na=D,Symbol.iterator]=function(){return this.entries()},d.prototype.forEach=function(h,O){var C,F;try{for(var K=Re(this),de=K.next();!de.done;de=K.next()){var we=xe(de.value,2),Ue=we[0],st=we[1];h.call(O,st,Ue,this)}}catch(ft){C={error:ft}}finally{try{de&&!de.done&&(F=K.return)&&F.call(K)}finally{if(C)throw C.error}}},d.prototype.merge=function(h){var O=this;return $t(h)&&(h=h.toJS()),Sr(function(){var C=mn(!0);try{H(h)?z(h).forEach(function(F){return O.set(F,h[F])}):Array.isArray(h)?h.forEach(function(F){var K=xe(F,2),de=K[0],we=K[1];return O.set(de,we)}):J(h)?(h.constructor!==Map&&M("Cannot initialize from classes that inherit from Map: "+h.constructor.name),h.forEach(function(F,K){return O.set(K,F)})):h!=null&&M("Cannot initialize map from "+h)}finally{$n(C)}}),this},d.prototype.clear=function(){var h=this;Sr(function(){te(function(){var O,C;try{for(var F=Re(h.keys()),K=F.next();!K.done;K=F.next()){var de=K.value;h.delete(de)}}catch(we){O={error:we}}finally{try{K&&!K.done&&(C=F.return)&&C.call(F)}finally{if(O)throw O.error}}})})},d.prototype.replace=function(h){var O=this;return Sr(function(){var C,F,K,de,we=U(h),Ue=new Map,st=!1;try{for(var ft=Re(O._data.keys()),Ot=ft.next();!Ot.done;Ot=ft.next()){var xt=Ot.value;if(!we.has(xt)){var _t=O.delete(xt);if(_t)st=!0;else{var Ut=O._data.get(xt);Ue.set(xt,Ut)}}}}catch(fn){C={error:fn}}finally{try{Ot&&!Ot.done&&(F=ft.return)&&F.call(ft)}finally{if(C)throw C.error}}try{for(var Mt=Re(we.entries()),yr=Mt.next();!yr.done;yr=Mt.next()){var Nn=xe(yr.value,2),xt=Nn[0],Ut=Nn[1],ha=O._data.has(xt);if(O.set(xt,Ut),O._data.has(xt)){var va=O._data.get(xt);Ue.set(xt,va),ha||(st=!0)}}}catch(fn){K={error:fn}}finally{try{yr&&!yr.done&&(de=Mt.return)&&de.call(Mt)}finally{if(K)throw K.error}}if(!st)if(O._data.size!==Ue.size)O._keysAtom.reportChanged();else for(var ya=O._data.keys(),ga=Ue.keys(),li=ya.next(),Dn=ga.next();!li.done;){if(li.value!==Dn.value){O._keysAtom.reportChanged();break}li=ya.next(),Dn=ga.next()}O._data=Ue}),this},Object.defineProperty(d.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),d.prototype.toPOJO=function(){var h,O,C={};try{for(var F=Re(this),K=F.next();!K.done;K=F.next()){var de=xe(K.value,2),we=de[0],Ue=de[1];C[typeof we=="symbol"?we:j(we)]=Ue}}catch(st){h={error:st}}finally{try{K&&!K.done&&(O=F.return)&&O.call(F)}finally{if(h)throw h.error}}return C},d.prototype.toJS=function(){return new Map(this)},d.prototype.toJSON=function(){return this.toPOJO()},d.prototype.toString=function(){var h=this;return this.name+"[{ "+Array.from(this.keys()).map(function(O){return j(O)+": "+(""+h.get(O))}).join(", ")+" }]"},d.prototype.observe=function(h,O){return Kn(this,h)},d.prototype.intercept=function(h){return Wn(this,h)},d}(),$t=q("ObservableMap",ii),ia,Rs={},aa=function(){function d(h,O,C){if(O===void 0&&(O=et),C===void 0&&(C="ObservableSet@"+S()),this.name=C,this[ia]=Rs,this._data=new Set,this._atom=ue(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(F,K){return O(F,K,C)},h&&this.replace(h)}return d.prototype.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},d.prototype.clear=function(){var h=this;Sr(function(){te(function(){var O,C;try{for(var F=Re(h._data.values()),K=F.next();!K.done;K=F.next()){var de=K.value;h.delete(de)}}catch(we){O={error:we}}finally{try{K&&!K.done&&(C=F.return)&&C.call(F)}finally{if(O)throw O.error}}})})},d.prototype.forEach=function(h,O){var C,F;try{for(var K=Re(this),de=K.next();!de.done;de=K.next()){var we=de.value;h.call(O,we,we,this)}}catch(Ue){C={error:Ue}}finally{try{de&&!de.done&&(F=K.return)&&F.call(K)}finally{if(C)throw C.error}}},Object.defineProperty(d.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),d.prototype.add=function(h){var O=this;if(Ze(this._atom),Pr(this)){var C=Tr(this,{type:"add",object:this,newValue:h});if(!C)return this}if(!this.has(h)){Sr(function(){O._data.add(O.enhancer(h,void 0)),O._atom.reportChanged()});var F=Rt(),K=hr(this),C=K||F?{type:"add",object:this,newValue:h}:null;K&&qt(this,C)}return this},d.prototype.delete=function(h){var O=this;if(Pr(this)){var C=Tr(this,{type:"delete",object:this,oldValue:h});if(!C)return!1}if(this.has(h)){var F=Rt(),K=hr(this),C=K||F?{type:"delete",object:this,oldValue:h}:null;return Sr(function(){O._atom.reportChanged(),O._data.delete(h)}),K&&qt(this,C),!0}return!1},d.prototype.has=function(h){return this._atom.reportObserved(),this._data.has(this.dehanceValue(h))},d.prototype.entries=function(){var h=0,O=Array.from(this.keys()),C=Array.from(this.values());return Eo({next:function(){var F=h;return h+=1,F<C.length?{value:[O[F],C[F]],done:!1}:{done:!0}}})},d.prototype.keys=function(){return this.values()},d.prototype.values=function(){this._atom.reportObserved();var h=this,O=0,C=Array.from(this._data.values());return Eo({next:function(){return O<C.length?{value:h.dehanceValue(C[O++]),done:!1}:{done:!0}}})},d.prototype.replace=function(h){var O=this;return fr(h)&&(h=h.toJS()),Sr(function(){var C=mn(!0);try{Array.isArray(h)?(O.clear(),h.forEach(function(F){return O.add(F)})):ie(h)?(O.clear(),h.forEach(function(F){return O.add(F)})):h!=null&&M("Cannot initialize set from "+h)}finally{$n(C)}}),this},d.prototype.observe=function(h,O){return Kn(this,h)},d.prototype.intercept=function(h){return Wn(this,h)},d.prototype.toJS=function(){return new Set(this)},d.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},d.prototype[ia=D,Symbol.iterator]=function(){return this.values()},d}(),fr=q("ObservableSet",aa),ua=function(){function d(h,O,C,F){O===void 0&&(O=new Map),this.target=h,this.values=O,this.name=C,this.defaultEnhancer=F,this.keysAtom=new Y(C+".keys")}return d.prototype.read=function(h){return this.values.get(h).get()},d.prototype.write=function(h,O){var C=this.target,F=this.values.get(h);if(F instanceof bn){F.set(O);return}if(Pr(this)){var K=Tr(this,{type:"update",object:this.proxy||C,name:h,newValue:O});if(!K)return;O=K.newValue}if(O=F.prepareNewValue(O),O!==$e.UNCHANGED){var de=hr(this),we=Rt(),K=de||we?{type:"update",object:this.proxy||C,oldValue:F.value,name:h,newValue:O}:null;F.setNewValue(O),de&&qt(this,K)}},d.prototype.has=function(h){var O=this.pendingKeys||(this.pendingKeys=new Map),C=O.get(h);if(C)return C.get();var F=!!this.values.get(h);return C=new ln(F,rt,this.name+"."+j(h)+"?",!1),O.set(h,C),C.get()},d.prototype.addObservableProp=function(h,O,C){C===void 0&&(C=this.defaultEnhancer);var F=this.target;if(Pr(this)){var K=Tr(this,{object:this.proxy||F,name:h,type:"add",newValue:O});if(!K)return;O=K.newValue}var de=new ln(O,C,this.name+"."+j(h),!1);this.values.set(h,de),O=de.value,Object.defineProperty(F,h,Is(h)),this.notifyPropertyAddition(h,O)},d.prototype.addComputedProp=function(h,O,C){var F=this.target;C.name=C.name||this.name+"."+j(O),this.values.set(O,new bn(C)),(h===F||ae(h,O))&&Object.defineProperty(h,O,_s(O))},d.prototype.remove=function(h){if(!!this.values.has(h)){var O=this.target;if(Pr(this)){var C=Tr(this,{object:this.proxy||O,name:h,type:"remove"});if(!C)return}try{Tt();var F=hr(this),K=Rt(),de=this.values.get(h),we=de&&de.get();if(de&&de.set(void 0),this.keysAtom.reportChanged(),this.values.delete(h),this.pendingKeys){var Ue=this.pendingKeys.get(h);Ue&&Ue.set(!1)}delete this.target[h];var C=F||K?{type:"remove",object:this.proxy||O,oldValue:we,name:h}:null;F&&qt(this,C)}finally{pr()}}},d.prototype.illegalAccess=function(h,O){console.warn("Property '"+O+"' of '"+h+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},d.prototype.observe=function(h,O){return Kn(this,h)},d.prototype.intercept=function(h){return Wn(this,h)},d.prototype.notifyPropertyAddition=function(h,O){var C=hr(this),F=Rt(),K=C||F?{type:"add",object:this.proxy||this.target,name:h,newValue:O}:null;if(C&&qt(this,K),this.pendingKeys){var de=this.pendingKeys.get(h);de&&de.set(!0)}this.keysAtom.reportChanged()},d.prototype.getKeys=function(){var h,O;this.keysAtom.reportObserved();var C=[];try{for(var F=Re(this.values),K=F.next();!K.done;K=F.next()){var de=xe(K.value,2),we=de[0],Ue=de[1];Ue instanceof ln&&C.push(we)}}catch(st){h={error:st}}finally{try{K&&!K.done&&(O=F.return)&&O.call(F)}finally{if(h)throw h.error}}return C},d}();function ai(d,h,O){if(h===void 0&&(h=""),O===void 0&&(O=et),Object.prototype.hasOwnProperty.call(d,D))return d[D];H(d)||(h=(d.constructor.name||"ObservableObject")+"@"+S()),h||(h="ObservableObject@"+S());var C=new ua(d,new Map,j(h),O);return X(d,D,C),C}var la=Object.create(null),sa=Object.create(null);function Is(d){return la[d]||(la[d]={configurable:!0,enumerable:!0,get:function(){return this[D].read(d)},set:function(h){this[D].write(d,h)}})}function fa(d){var h=d[D];return h||(Me(d),d[D])}function _s(d){return sa[d]||(sa[d]={configurable:$e.computedConfigurable,enumerable:!1,get:function(){return fa(this).read(d)},set:function(h){fa(this).write(d,h)}})}var Bs=q("ObservableObjectAdministration",ua);function vr(d){return L(d)?(Me(d),Bs(d[D])):!1}function Mr(d,h){if(typeof d=="object"&&d!==null){if(Cr(d))return h!==void 0&&M(!1),d[D].atom;if(fr(d))return d[D];if($t(d)){var O=d;if(h===void 0)return O._keysAtom;var C=O._data.get(h)||O._hasMap.get(h);return C||M(!1),C}if(Me(d),h&&!d[D]&&d[h],vr(d)){if(!h)return M(!1);var C=d[D].values.get(h);return C||M(!1),C}if(V(d)||On(d)||yo(d))return d}else if(typeof d=="function"&&yo(d[D]))return d[D];return M(!1)}function Vn(d,h){if(d||M("Expecting some object"),h!==void 0)return Vn(Mr(d,h));if(V(d)||On(d)||yo(d)||$t(d)||fr(d))return d;if(Me(d),d[D])return d[D];M(!1)}function Ls(d,h){var O;return h!==void 0?O=Mr(d,h):vr(d)||$t(d)||fr(d)?O=Vn(d):O=Mr(d),O.name}var ca=Object.prototype.toString;function Oo(d,h,O){return O===void 0&&(O=-1),Zn(d,h,O)}function Zn(d,h,O,C,F){if(d===h)return d!==0||1/d===1/h;if(d==null||h==null)return!1;if(d!==d)return h!==h;var K=typeof d;if(K!=="function"&&K!=="object"&&typeof h!="object")return!1;var de=ca.call(d);if(de!==ca.call(h))return!1;switch(de){case"[object RegExp]":case"[object String]":return""+d==""+h;case"[object Number]":return+d!=+d?+h!=+h:+d==0?1/+d===1/h:+d==+h;case"[object Date]":case"[object Boolean]":return+d==+h;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(d)===Symbol.valueOf.call(h);case"[object Map]":case"[object Set]":O>=0&&O++;break}d=da(d),h=da(h);var we=de==="[object Array]";if(!we){if(typeof d!="object"||typeof h!="object")return!1;var Ue=d.constructor,st=h.constructor;if(Ue!==st&&!(typeof Ue=="function"&&Ue instanceof Ue&&typeof st=="function"&&st instanceof st)&&"constructor"in d&&"constructor"in h)return!1}if(O===0)return!1;O<0&&(O=-1),C=C||[],F=F||[];for(var ft=C.length;ft--;)if(C[ft]===d)return F[ft]===h;if(C.push(d),F.push(h),we){if(ft=d.length,ft!==h.length)return!1;for(;ft--;)if(!Zn(d[ft],h[ft],O-1,C,F))return!1}else{var Ot=Object.keys(d),xt=void 0;if(ft=Ot.length,Object.keys(h).length!==ft)return!1;for(;ft--;)if(xt=Ot[ft],!(zs(h,xt)&&Zn(d[xt],h[xt],O-1,C,F)))return!1}return C.pop(),F.pop(),!0}function da(d){return Cr(d)?d.slice():J(d)||$t(d)||ie(d)||fr(d)?Array.from(d.entries()):d}function zs(d,h){return Object.prototype.hasOwnProperty.call(d,h)}function Eo(d){return d[Symbol.iterator]=ui,d}function ui(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");try{}catch{var pa=po();typeof s=="undefined"&&(pa.process={}),pa.process.env={}}(function(){function d(){}if(d.name!=="testCodeMinification"&&!1)var h})(),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Xi,extras:{getDebugName:Ls},$mobx:D})}).call(this,i(155),i(82))},function(u,c,i){i.d(c,"a",function(){return ae}),i.d(c,"b",function(){return se}),i.d(c,"c",function(){return Be}),i.d(c,"d",function(){return _e}),i.d(c,"e",function(){return H}),i.d(c,"f",function(){return X}),i.d(c,"g",function(){return H}),i.d(c,"h",function(){return xe}),i.d(c,"i",function(){return f}),i.d(c,"j",function(){return Re}),i.d(c,"k",function(){return P});var s,f,y,b,E,S,M,T={},A=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _(G,W){for(var ee in W)G[ee]=W[ee];return G}function L(G){var W=G.parentNode;W&&W.removeChild(G)}function H(G,W,ee){var ge,Me,ye,He={};for(ye in W)ye=="key"?ge=W[ye]:ye=="ref"?Me=W[ye]:He[ye]=W[ye];if(arguments.length>2&&(He.children=arguments.length>3?s.call(arguments,2):ee),typeof G=="function"&&G.defaultProps!=null)for(ye in G.defaultProps)He[ye]===void 0&&(He[ye]=G.defaultProps[ye]);return U(G,He,ge,Me,null)}function U(G,W,ee,ge,Me){var ye={type:G,props:W,key:ee,ref:ge,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Me==null?++y:Me};return Me==null&&f.vnode!=null&&f.vnode(ye),ye}function X(){return{current:null}}function se(G){return G.children}function ae(G,W){this.props=G,this.context=W}function q(G,W){if(W==null)return G.__?q(G.__,G.__.__k.indexOf(G)+1):null;for(var ee;W<G.__k.length;W++)if((ee=G.__k[W])!=null&&ee.__e!=null)return ee.__e;return typeof G.type=="function"?q(G):null}function J(G){var W,ee;if((G=G.__)!=null&&G.__c!=null){for(G.__e=G.__c.base=null,W=0;W<G.__k.length;W++)if((ee=G.__k[W])!=null&&ee.__e!=null){G.__e=G.__c.base=ee.__e;break}return J(G)}}function ie(G){(!G.__d&&(G.__d=!0)&&b.push(G)&&!z.__r++||S!==f.debounceRendering)&&((S=f.debounceRendering)||E)(z)}function z(){for(var G;z.__r=b.length;)G=b.sort(function(W,ee){return W.__v.__b-ee.__v.__b}),b=[],G.some(function(W){var ee,ge,Me,ye,He,et;W.__d&&(He=(ye=(ee=W).__v).__e,(et=ee.__P)&&(ge=[],(Me=_({},ye)).__v=ye.__v+1,ce(et,ye,Me,ee.__n,et.ownerSVGElement!==void 0,ye.__h!=null?[He]:null,ge,He==null?q(ye):He,ye.__h),he(ge,ye),ye.__e!=He&&J(ye)))})}function j(G,W,ee,ge,Me,ye,He,et,We,rt){var be,ut,tt,Fe,Qe,At,ct,bt=ge&&ge.__k||A,ne=bt.length;for(ee.__k=[],be=0;be<W.length;be++)if((Fe=ee.__k[be]=(Fe=W[be])==null||typeof Fe=="boolean"?null:typeof Fe=="string"||typeof Fe=="number"||typeof Fe=="bigint"?U(null,Fe,null,null,Fe):Array.isArray(Fe)?U(se,{children:Fe},null,null,null):Fe.__b>0?U(Fe.type,Fe.props,Fe.key,null,Fe.__v):Fe)!=null){if(Fe.__=ee,Fe.__b=ee.__b+1,(tt=bt[be])===null||tt&&Fe.key==tt.key&&Fe.type===tt.type)bt[be]=void 0;else for(ut=0;ut<ne;ut++){if((tt=bt[ut])&&Fe.key==tt.key&&Fe.type===tt.type){bt[ut]=void 0;break}tt=null}ce(G,Fe,tt=tt||T,Me,ye,He,et,We,rt),Qe=Fe.__e,(ut=Fe.ref)&&tt.ref!=ut&&(ct||(ct=[]),tt.ref&&ct.push(tt.ref,null,Fe),ct.push(ut,Fe.__c||Qe,Fe)),Qe!=null?(At==null&&(At=Qe),typeof Fe.type=="function"&&Fe.__k===tt.__k?Fe.__d=We=N(Fe,We,G):We=D(G,Fe,tt,bt,Qe,We),typeof ee.type=="function"&&(ee.__d=We)):We&&tt.__e==We&&We.parentNode!=G&&(We=q(tt))}for(ee.__e=At,be=ne;be--;)bt[be]!=null&&(typeof ee.type=="function"&&bt[be].__e!=null&&bt[be].__e==ee.__d&&(ee.__d=q(ge,be+1)),je(bt[be],bt[be]));if(ct)for(be=0;be<ct.length;be++)Ee(ct[be],ct[++be],ct[++be])}function N(G,W,ee){for(var ge,Me=G.__k,ye=0;Me&&ye<Me.length;ye++)(ge=Me[ye])&&(ge.__=G,W=typeof ge.type=="function"?N(ge,W,ee):D(ee,ge,ge,Me,ge.__e,W));return W}function P(G,W){return W=W||[],G==null||typeof G=="boolean"||(Array.isArray(G)?G.some(function(ee){P(ee,W)}):W.push(G)),W}function D(G,W,ee,ge,Me,ye){var He,et,We;if(W.__d!==void 0)He=W.__d,W.__d=void 0;else if(ee==null||Me!=ye||Me.parentNode==null)e:if(ye==null||ye.parentNode!==G)G.appendChild(Me),He=null;else{for(et=ye,We=0;(et=et.nextSibling)&&We<ge.length;We+=2)if(et==Me)break e;G.insertBefore(Me,ye),He=ye}return He!==void 0?He:Me.nextSibling}function Y(G,W,ee,ge,Me){var ye;for(ye in ee)ye==="children"||ye==="key"||ye in W||ue(G,ye,null,ee[ye],ge);for(ye in W)Me&&typeof W[ye]!="function"||ye==="children"||ye==="key"||ye==="value"||ye==="checked"||ee[ye]===W[ye]||ue(G,ye,W[ye],ee[ye],ge)}function V(G,W,ee){W[0]==="-"?G.setProperty(W,ee):G[W]=ee==null?"":typeof ee!="number"||I.test(W)?ee:ee+"px"}function ue(G,W,ee,ge,Me){var ye;e:if(W==="style")if(typeof ee=="string")G.style.cssText=ee;else{if(typeof ge=="string"&&(G.style.cssText=ge=""),ge)for(W in ge)ee&&W in ee||V(G.style,W,"");if(ee)for(W in ee)ge&&ee[W]===ge[W]||V(G.style,W,ee[W])}else if(W[0]==="o"&&W[1]==="n")ye=W!==(W=W.replace(/Capture$/,"")),W=W.toLowerCase()in G?W.toLowerCase().slice(2):W.slice(2),G.l||(G.l={}),G.l[W+ye]=ee,ee?ge||G.addEventListener(W,ye?me:Oe,ye):G.removeEventListener(W,ye?me:Oe,ye);else if(W!=="dangerouslySetInnerHTML"){if(Me)W=W.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(W!=="href"&&W!=="list"&&W!=="form"&&W!=="tabIndex"&&W!=="download"&&W in G)try{G[W]=ee==null?"":ee;break e}catch{}typeof ee=="function"||(ee!=null&&(ee!==!1||W[0]==="a"&&W[1]==="r")?G.setAttribute(W,ee):G.removeAttribute(W))}}function Oe(G){this.l[G.type+!1](f.event?f.event(G):G)}function me(G){this.l[G.type+!0](f.event?f.event(G):G)}function ce(G,W,ee,ge,Me,ye,He,et,We){var rt,be,ut,tt,Fe,Qe,At,ct,bt,ne,Ct,St=W.type;if(W.constructor!==void 0)return null;ee.__h!=null&&(We=ee.__h,et=W.__e=ee.__e,W.__h=null,ye=[et]),(rt=f.__b)&&rt(W);try{e:if(typeof St=="function"){if(ct=W.props,bt=(rt=St.contextType)&&ge[rt.__c],ne=rt?bt?bt.props.value:rt.__:ge,ee.__c?At=(be=W.__c=ee.__c).__=be.__E:("prototype"in St&&St.prototype.render?W.__c=be=new St(ct,ne):(W.__c=be=new ae(ct,ne),be.constructor=St,be.render=ze),bt&&bt.sub(be),be.props=ct,be.state||(be.state={}),be.context=ne,be.__n=ge,ut=be.__d=!0,be.__h=[]),be.__s==null&&(be.__s=be.state),St.getDerivedStateFromProps!=null&&(be.__s==be.state&&(be.__s=_({},be.__s)),_(be.__s,St.getDerivedStateFromProps(ct,be.__s))),tt=be.props,Fe=be.state,ut)St.getDerivedStateFromProps==null&&be.componentWillMount!=null&&be.componentWillMount(),be.componentDidMount!=null&&be.__h.push(be.componentDidMount);else{if(St.getDerivedStateFromProps==null&&ct!==tt&&be.componentWillReceiveProps!=null&&be.componentWillReceiveProps(ct,ne),!be.__e&&be.shouldComponentUpdate!=null&&be.shouldComponentUpdate(ct,be.__s,ne)===!1||W.__v===ee.__v){be.props=ct,be.state=be.__s,W.__v!==ee.__v&&(be.__d=!1),be.__v=W,W.__e=ee.__e,W.__k=ee.__k,W.__k.forEach(function(mt){mt&&(mt.__=W)}),be.__h.length&&He.push(be);break e}be.componentWillUpdate!=null&&be.componentWillUpdate(ct,be.__s,ne),be.componentDidUpdate!=null&&be.__h.push(function(){be.componentDidUpdate(tt,Fe,Qe)})}be.context=ne,be.props=ct,be.state=be.__s,(rt=f.__r)&&rt(W),be.__d=!1,be.__v=W,be.__P=G,rt=be.render(be.props,be.state,be.context),be.state=be.__s,be.getChildContext!=null&&(ge=_(_({},ge),be.getChildContext())),ut||be.getSnapshotBeforeUpdate==null||(Qe=be.getSnapshotBeforeUpdate(tt,Fe)),Ct=rt!=null&&rt.type===se&&rt.key==null?rt.props.children:rt,j(G,Array.isArray(Ct)?Ct:[Ct],W,ee,ge,Me,ye,He,et,We),be.base=W.__e,W.__h=null,be.__h.length&&He.push(be),At&&(be.__E=be.__=null),be.__e=!1}else ye==null&&W.__v===ee.__v?(W.__k=ee.__k,W.__e=ee.__e):W.__e=ve(ee.__e,W,ee,ge,Me,ye,He,We);(rt=f.diffed)&&rt(W)}catch(mt){W.__v=null,(We||ye!=null)&&(W.__e=et,W.__h=!!We,ye[ye.indexOf(et)]=null),f.__e(mt,W,ee)}}function he(G,W){f.__c&&f.__c(W,G),G.some(function(ee){try{G=ee.__h,ee.__h=[],G.some(function(ge){ge.call(ee)})}catch(ge){f.__e(ge,ee.__v)}})}function ve(G,W,ee,ge,Me,ye,He,et){var We,rt,be,ut=ee.props,tt=W.props,Fe=W.type,Qe=0;if(Fe==="svg"&&(Me=!0),ye!=null){for(;Qe<ye.length;Qe++)if((We=ye[Qe])&&"setAttribute"in We==!!Fe&&(Fe?We.localName===Fe:We.nodeType===3)){G=We,ye[Qe]=null;break}}if(G==null){if(Fe===null)return document.createTextNode(tt);G=Me?document.createElementNS("http://www.w3.org/2000/svg",Fe):document.createElement(Fe,tt.is&&tt),ye=null,et=!1}if(Fe===null)ut===tt||et&&G.data===tt||(G.data=tt);else{if(ye=ye&&s.call(G.childNodes),rt=(ut=ee.props||T).dangerouslySetInnerHTML,be=tt.dangerouslySetInnerHTML,!et){if(ye!=null)for(ut={},Qe=0;Qe<G.attributes.length;Qe++)ut[G.attributes[Qe].name]=G.attributes[Qe].value;(be||rt)&&(be&&(rt&&be.__html==rt.__html||be.__html===G.innerHTML)||(G.innerHTML=be&&be.__html||""))}if(Y(G,tt,ut,Me,et),be)W.__k=[];else if(Qe=W.props.children,j(G,Array.isArray(Qe)?Qe:[Qe],W,ee,ge,Me&&Fe!=="foreignObject",ye,He,ye?ye[0]:ee.__k&&q(ee,0),et),ye!=null)for(Qe=ye.length;Qe--;)ye[Qe]!=null&&L(ye[Qe]);et||("value"in tt&&(Qe=tt.value)!==void 0&&(Qe!==ut.value||Qe!==G.value||Fe==="progress"&&!Qe)&&ue(G,"value",Qe,ut.value,!1),"checked"in tt&&(Qe=tt.checked)!==void 0&&Qe!==G.checked&&ue(G,"checked",Qe,ut.checked,!1))}return G}function Ee(G,W,ee){try{typeof G=="function"?G(W):G.current=W}catch(ge){f.__e(ge,ee)}}function je(G,W,ee){var ge,Me;if(f.unmount&&f.unmount(G),(ge=G.ref)&&(ge.current&&ge.current!==G.__e||Ee(ge,null,W)),(ge=G.__c)!=null){if(ge.componentWillUnmount)try{ge.componentWillUnmount()}catch(ye){f.__e(ye,W)}ge.base=ge.__P=null}if(ge=G.__k)for(Me=0;Me<ge.length;Me++)ge[Me]&&je(ge[Me],W,typeof G.type!="function");ee||G.__e==null||L(G.__e),G.__e=G.__d=void 0}function ze(G,W,ee){return this.constructor(G,ee)}function Re(G,W,ee){var ge,Me,ye;f.__&&f.__(G,W),Me=(ge=typeof ee=="function")?null:ee&&ee.__k||W.__k,ye=[],ce(W,G=(!ge&&ee||W).__k=H(se,null,[G]),Me||T,T,W.ownerSVGElement!==void 0,!ge&&ee?[ee]:Me?null:W.firstChild?s.call(W.childNodes):null,ye,!ge&&ee?ee:Me?Me.__e:W.firstChild,ge),he(ye,G)}function xe(G,W){Re(G,W,xe)}function Be(G,W,ee){var ge,Me,ye,He=_({},G.props);for(ye in W)ye=="key"?ge=W[ye]:ye=="ref"?Me=W[ye]:He[ye]=W[ye];return arguments.length>2&&(He.children=arguments.length>3?s.call(arguments,2):ee),U(G.type,He,ge||G.key,Me||G.ref,null)}function _e(G,W){var ee={__c:W="__cC"+M++,__:G,Consumer:function(ge,Me){return ge.children(Me)},Provider:function(ge){var Me,ye;return this.getChildContext||(Me=[],(ye={})[W]=this,this.getChildContext=function(){return ye},this.shouldComponentUpdate=function(He){this.props.value!==He.value&&Me.some(ie)},this.sub=function(He){Me.push(He);var et=He.componentWillUnmount;He.componentWillUnmount=function(){Me.splice(Me.indexOf(He),1),et&&et.call(He)}}),ge.children}};return ee.Provider.__=ee.Consumer.contextType=ee}s=A.slice,f={__e:function(G,W){for(var ee,ge,Me;W=W.__;)if((ee=W.__c)&&!ee.__)try{if((ge=ee.constructor)&&ge.getDerivedStateFromError!=null&&(ee.setState(ge.getDerivedStateFromError(G)),Me=ee.__d),ee.componentDidCatch!=null&&(ee.componentDidCatch(G),Me=ee.__d),Me)return ee.__E=ee}catch(ye){G=ye}throw G}},y=0,ae.prototype.setState=function(G,W){var ee;ee=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_({},this.state),typeof G=="function"&&(G=G(_({},ee),this.props)),G&&_(ee,G),G!=null&&this.__v&&(W&&this.__h.push(W),ie(this))},ae.prototype.forceUpdate=function(G){this.__v&&(this.__e=!0,G&&this.__h.push(G),ie(this))},ae.prototype.render=se,b=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z.__r=0,M=0},function(u,c,i){var s=i(116),f=i(44),y=i(178);s||f(Object.prototype,"toString",y,{unsafe:!0})},function(u,c,i){var s=i(39),f=i(83),y=i(70),b=i(56),E=i(111),S="Array Iterator",M=b.set,T=b.getterFor(S);u.exports=E(Array,"Array",function(A,I){M(this,{type:S,target:s(A),index:0,kind:I})},function(){var A=T(this),I=A.target,_=A.kind,L=A.index++;return!I||L>=I.length?(A.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:L,done:!1}:_=="values"?{value:I[L],done:!1}:{value:[L,I[L]],done:!1}},"values"),y.Arguments=y.Array,f("keys"),f("values"),f("entries")},function(u,c,i){var s=i(7),f=i(147),y=i(148),b=i(3),E=i(57),S=i(27),M=S("iterator"),T=S("toStringTag"),A=b.values,I=function(L,H){if(L){if(L[M]!==A)try{E(L,M,A)}catch{L[M]=A}if(L[T]||E(L,T,H),f[H]){for(var U in b)if(L[U]!==b[U])try{E(L,U,b[U])}catch{L[U]=b[U]}}}};for(var _ in f)I(s[_]&&s[_].prototype,_);I(y,"DOMTokenList")},function(u,c,i){var s=i(16),f=i(7),y=i(46),b=i(76),E=i(35),S=i(15),M=i(64),T=i(36),A=i(109),I=i(18),_=i(34),L=i(99),H=i(28),U=i(33),X=i(58),se=i(88),ae=i(32),q=i(38),J=i(39),ie=i(87),z=i(40),j=i(71),N=i(54),P=i(66),D=i(72),Y=i(139),V=i(112),ue=i(51),Oe=i(37),me=i(93),ce=i(101),he=i(44),ve=i(84),Ee=i(91),je=i(69),ze=i(85),Re=i(27),xe=i(149),Be=i(150),_e=i(73),G=i(56),W=i(74).forEach,ee=Ee("hidden"),ge="Symbol",Me="prototype",ye=Re("toPrimitive"),He=G.set,et=G.getterFor(ge),We=Object[Me],rt=f.Symbol,be=rt&&rt[Me],ut=f.TypeError,tt=f.QObject,Fe=y("JSON","stringify"),Qe=ue.f,At=Oe.f,ct=Y.f,bt=me.f,ne=S([].push),Ct=ve("symbols"),St=ve("op-symbols"),mt=ve("string-to-symbol-registry"),Wt=ve("symbol-to-string-registry"),dr=ve("wks"),Zt=!tt||!tt[Me]||!tt[Me].findChild,Er=T&&I(function(){return N(At({},"a",{get:function(){return At(this,"a",{value:7}).a}})).a!=7})?function(te,re,Ae){var De=Qe(We,re);De&&delete We[re],At(te,re,Ae),De&&te!==We&&At(We,re,De)}:At,qe=function(te,re){var Ae=Ct[te]=N(be);return He(Ae,{type:ge,tag:te,description:re}),T||(Ae.description=re),Ae},Pt=function(re,Ae,De){re===We&&Pt(St,Ae,De),ae(re);var Xe=ie(Ae);return ae(De),_(Ct,Xe)?(De.enumerable?(_(re,ee)&&re[ee][Xe]&&(re[ee][Xe]=!1),De=N(De,{enumerable:j(0,!1)})):(_(re,ee)||At(re,ee,j(1,{})),re[ee][Xe]=!0),Er(re,Xe,De)):At(re,Xe,De)},nr=function(re,Ae){ae(re);var De=J(Ae),Xe=P(De).concat(lt(De));return W(Xe,function(vt){(!T||E(Ye,De,vt))&&Pt(re,vt,De[vt])}),re},Ce=function(re,Ae){return Ae===void 0?N(re):nr(N(re),Ae)},Ye=function(re){var Ae=ie(re),De=E(bt,this,Ae);return this===We&&_(Ct,Ae)&&!_(St,Ae)?!1:De||!_(this,Ae)||!_(Ct,Ae)||_(this,ee)&&this[ee][Ae]?De:!0},nt=function(re,Ae){var De=J(re),Xe=ie(Ae);if(!(De===We&&_(Ct,Xe)&&!_(St,Xe))){var vt=Qe(De,Xe);return vt&&_(Ct,Xe)&&!(_(De,ee)&&De[ee][Xe])&&(vt.enumerable=!0),vt}},Ze=function(re){var Ae=ct(J(re)),De=[];return W(Ae,function(Xe){!_(Ct,Xe)&&!_(je,Xe)&&ne(De,Xe)}),De},lt=function(re){var Ae=re===We,De=ct(Ae?St:J(re)),Xe=[];return W(De,function(vt){_(Ct,vt)&&(!Ae||_(We,vt))&&ne(Xe,Ct[vt])}),Xe};if(A||(rt=function(){if(X(be,this))throw ut("Symbol is not a constructor");var re=!arguments.length||arguments[0]===void 0?void 0:z(arguments[0]),Ae=ze(re),De=function(Xe){this===We&&E(De,St,Xe),_(this,ee)&&_(this[ee],Ae)&&(this[ee][Ae]=!1),Er(this,Ae,j(1,Xe))};return T&&Zt&&Er(We,Ae,{configurable:!0,set:De}),qe(Ae,re)},be=rt[Me],he(be,"toString",function(){return et(this).tag}),he(rt,"withoutSetter",function(te){return qe(ze(te),te)}),me.f=Ye,Oe.f=Pt,ue.f=nt,D.f=Y.f=Ze,V.f=lt,xe.f=function(te){return qe(Re(te),te)},T&&(At(be,"description",{configurable:!0,get:function(){return et(this).description}}),M||he(We,"propertyIsEnumerable",Ye,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:rt}),W(P(dr),function(te){Be(te)}),s({target:ge,stat:!0,forced:!A},{for:function(te){var re=z(te);if(_(mt,re))return mt[re];var Ae=rt(re);return mt[re]=Ae,Wt[Ae]=re,Ae},keyFor:function(re){if(!se(re))throw ut(re+" is not a symbol");if(_(Wt,re))return Wt[re]},useSetter:function(){Zt=!0},useSimple:function(){Zt=!1}}),s({target:"Object",stat:!0,forced:!A,sham:!T},{create:Ce,defineProperty:Pt,defineProperties:nr,getOwnPropertyDescriptor:nt}),s({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:Ze,getOwnPropertySymbols:lt}),s({target:"Object",stat:!0,forced:I(function(){V.f(1)})},{getOwnPropertySymbols:function(re){return V.f(q(re))}}),Fe){var k=!A||I(function(){var te=rt();return Fe([te])!="[null]"||Fe({a:te})!="{}"||Fe(Object(te))!="{}"});s({target:"JSON",stat:!0,forced:k},{stringify:function(re,Ae,De){var Xe=ce(arguments),vt=Ae;if(!(!U(Ae)&&re===void 0||se(re)))return L(Ae)||(Ae=function(Jt,Qt){if(H(vt)&&(Qt=E(vt,this,Jt,Qt)),!se(Qt))return Qt}),Xe[1]=Ae,b(Fe,null,Xe)}})}if(!be[ye]){var Z=be.valueOf;he(be,ye,function(te){return E(Z,this)})}_e(rt,ge),je[ee]=!0},function(u,c,i){var s=i(146).charAt,f=i(40),y=i(56),b=i(111),E="String Iterator",S=y.set,M=y.getterFor(E);b(String,"String",function(T){S(this,{type:E,string:f(T),index:0})},function(){var A=M(this),I=A.string,_=A.index,L;return _>=I.length?{value:void 0,done:!0}:(L=s(I,_),A.index+=L.length,{value:L,done:!1})})},function(u,c,i){(function(s){var f=function(y){return y&&y.Math==Math&&y};u.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof s=="object"&&s)||function(){return this}()||Function("return this")()}).call(this,i(82))},function(u,c,i){var s=i(16),f=i(36),y=i(7),b=i(15),E=i(34),S=i(28),M=i(58),T=i(40),A=i(37).f,I=i(134),_=y.Symbol,L=_&&_.prototype;if(f&&S(_)&&(!("description"in L)||_().description!==void 0)){var H={},U=function(){var j=arguments.length<1||arguments[0]===void 0?void 0:T(arguments[0]),N=M(L,this)?new _(j):j===void 0?_():_(j);return j===""&&(H[N]=!0),N};I(U,_),U.prototype=L,L.constructor=U;var X=String(_("test"))=="Symbol(test)",se=b(L.toString),ae=b(L.valueOf),q=/^Symbol\((.*)\)[^)]+$/,J=b("".replace),ie=b("".slice);A(L,"description",{configurable:!0,get:function(){var j=ae(this),N=se(j);if(E(H,j))return"";var P=X?ie(N,7,-1):J(N,q,"$1");return P===""?void 0:P}}),s({global:!0,forced:!0},{Symbol:U})}},function(u,c,i){var s=i(150);s("iterator")},function(u,c,i){i.d(c,"a",function(){return s.a}),i.d(c,"c",function(){return s.e}),i.d(c,"h",function(){return ie}),i.d(c,"i",function(){return X}),i.d(c,"j",function(){return H}),i.d(c,"b",function(){return he}),i.d(c,"e",function(){return ze}),i.d(c,"f",function(){return ve}),i.d(c,"g",function(){return Ye});var s=i(1),f,y,b,E=0,S=[],M=s.i.__b,T=s.i.__r,A=s.i.diffed,I=s.i.__c,_=s.i.unmount;function L(k,Z){s.i.__h&&s.i.__h(y,k,E||Z),E=0;var te=y.__H||(y.__H={__:[],__h:[]});return k>=te.__.length&&te.__.push({}),te.__[k]}function H(k){return E=1,U(Oe,k)}function U(k,Z,te){var re=L(f++,2);return re.t=k,re.__c||(re.__=[te?te(Z):Oe(void 0,Z),function(Ae){var De=re.t(re.__[0],Ae);re.__[0]!==De&&(re.__=[De,re.__[1]],re.__c.setState({}))}],re.__c=y),re.__}function X(k,Z){var te=L(f++,3);!s.i.__s&&ue(te.__H,Z)&&(te.__=k,te.__H=Z,y.__H.__h.push(te))}function se(k,Z){var te=L(f++,4);!s.i.__s&&ue(te.__H,Z)&&(te.__=k,te.__H=Z,y.__h.push(te))}function ae(k){return E=5,J(function(){return{current:k}},[])}function q(k,Z,te){E=6,se(function(){typeof k=="function"?k(Z()):k&&(k.current=Z())},te==null?te:te.concat(k))}function J(k,Z){var te=L(f++,7);return ue(te.__H,Z)&&(te.__=k(),te.__H=Z,te.__h=k),te.__}function ie(k,Z){return E=8,J(function(){return k},Z)}function z(k){var Z=y.context[k.__c],te=L(f++,9);return te.c=k,Z?(te.__==null&&(te.__=!0,Z.sub(y)),Z.props.value):k.__}function j(k,Z){s.i.useDebugValue&&s.i.useDebugValue(Z?Z(k):k)}function N(){var k;for(S.sort(function(Z,te){return Z.__v.__b-te.__v.__b});k=S.pop();)if(k.__P)try{k.__H.__h.forEach(Y),k.__H.__h.forEach(V),k.__H.__h=[]}catch(Z){k.__H.__h=[],s.i.__e(Z,k.__v)}}s.i.__b=function(k){y=null,M&&M(k)},s.i.__r=function(k){T&&T(k),f=0;var Z=(y=k.__c).__H;Z&&(Z.__h.forEach(Y),Z.__h.forEach(V),Z.__h=[])},s.i.diffed=function(k){A&&A(k);var Z=k.__c;Z&&Z.__H&&Z.__H.__h.length&&(S.push(Z)!==1&&b===s.i.requestAnimationFrame||((b=s.i.requestAnimationFrame)||D)(N)),y=null},s.i.__c=function(k,Z){Z.some(function(te){try{te.__h.forEach(Y),te.__h=te.__h.filter(function(re){return!re.__||V(re)})}catch(re){Z.some(function(Ae){Ae.__h&&(Ae.__h=[])}),Z=[],s.i.__e(re,te.__v)}}),I&&I(k,Z)},s.i.unmount=function(k){_&&_(k);var Z,te=k.__c;te&&te.__H&&(te.__H.__.forEach(function(re){try{Y(re)}catch(Ae){Z=Ae}}),Z&&s.i.__e(Z,te.__v))};var P=typeof requestAnimationFrame=="function";function D(k){var Z,te=function(){clearTimeout(re),P&&cancelAnimationFrame(Z),setTimeout(k)},re=setTimeout(te,100);P&&(Z=requestAnimationFrame(te))}function Y(k){var Z=y,te=k.__c;typeof te=="function"&&(k.__c=void 0,te()),y=Z}function V(k){var Z=y;k.__c=k.__(),y=Z}function ue(k,Z){return!k||k.length!==Z.length||Z.some(function(te,re){return te!==k[re]})}function Oe(k,Z){return typeof Z=="function"?Z(k):Z}function me(k,Z){for(var te in Z)k[te]=Z[te];return k}function ce(k,Z){for(var te in k)if(te!=="__source"&&!(te in Z))return!0;for(var re in Z)if(re!=="__source"&&k[re]!==Z[re])return!0;return!1}function he(k){this.props=k}function ve(k,Z){function te(Ae){var De=this.props.ref,Xe=De==Ae.ref;return!Xe&&De&&(De.call?De(null):De.current=null),Z?!Z(this.props,Ae)||!Xe:ce(this.props,Ae)}function re(Ae){return this.shouldComponentUpdate=te,Object(s.e)(k,Ae)}return re.displayName="Memo("+(k.displayName||k.name)+")",re.prototype.isReactComponent=!0,re.__f=!0,re}(he.prototype=new s.a).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(k,Z){return ce(this.props,k)||ce(this.state,Z)};var Ee=s.i.__b;s.i.__b=function(k){k.type&&k.type.__f&&k.ref&&(k.props.ref=k.ref,k.ref=null),Ee&&Ee(k)};var je=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ze(k){function Z(te,re){var Ae=me({},te);return delete Ae.ref,k(Ae,!(re=te.ref||re)||typeof re=="object"&&!("current"in re)?null:re)}return Z.$$typeof=je,Z.render=Z,Z.prototype.isReactComponent=Z.__f=!0,Z.displayName="ForwardRef("+(k.displayName||k.name)+")",Z}var Re=function(k,Z){return k==null?null:Object(s.k)(Object(s.k)(k).map(Z))},xe={map:Re,forEach:Re,count:function(k){return k?Object(s.k)(k).length:0},only:function(k){var Z=Object(s.k)(k);if(Z.length!==1)throw"Children.only";return Z[0]},toArray:s.k},Be=s.i.__e;s.i.__e=function(k,Z,te){if(k.then){for(var re,Ae=Z;Ae=Ae.__;)if((re=Ae.__c)&&re.__c)return Z.__e==null&&(Z.__e=te.__e,Z.__k=te.__k),re.__c(k,Z)}Be(k,Z,te)};var _e=s.i.unmount;function G(k,Z,te){return k&&(k.__c&&k.__c.__H&&(k.__c.__H.__.forEach(function(re){typeof re.__c=="function"&&re.__c()}),k.__c.__H=null),(k=me({},k)).__c!=null&&(k.__c.__P===te&&(k.__c.__P=Z),k.__c=null),k.__k=k.__k&&k.__k.map(function(re){return G(re,Z,te)})),k}function W(k,Z,te){return k&&(k.__v=null,k.__k=k.__k&&k.__k.map(function(re){return W(re,Z,te)}),k.__c&&k.__c.__P===Z&&(k.__e&&te.insertBefore(k.__e,k.__d),k.__c.__e=!0,k.__c.__P=te)),k}function ee(){this.__u=0,this.t=null,this.__b=null}function ge(k){var Z=k.__.__c;return Z&&Z.__e&&Z.__e(k)}function Me(k){var Z,te,re;function Ae(De){if(Z||(Z=k()).then(function(Xe){te=Xe.default||Xe},function(Xe){re=Xe}),re)throw re;if(!te)throw Z;return Object(s.e)(te,De)}return Ae.displayName="Lazy",Ae.__f=!0,Ae}function ye(){this.u=null,this.o=null}s.i.unmount=function(k){var Z=k.__c;Z&&Z.__R&&Z.__R(),Z&&k.__h===!0&&(k.type=null),_e&&_e(k)},(ee.prototype=new s.a).__c=function(k,Z){var te=Z.__c,re=this;re.t==null&&(re.t=[]),re.t.push(te);var Ae=ge(re.__v),De=!1,Xe=function(){De||(De=!0,te.__R=null,Ae?Ae(vt):vt())};te.__R=Xe;var vt=function(){if(!--re.__u){if(re.state.__e){var Qt=re.state.__e;re.__v.__k[0]=W(Qt,Qt.__c.__P,Qt.__c.__O)}var kn;for(re.setState({__e:re.__b=null});kn=re.t.pop();)kn.forceUpdate()}},Jt=Z.__h===!0;re.__u++||Jt||re.setState({__e:re.__b=re.__v.__k[0]}),k.then(Xe,Xe)},ee.prototype.componentWillUnmount=function(){this.t=[]},ee.prototype.render=function(k,Z){if(this.__b){if(this.__v.__k){var te=document.createElement("div"),re=this.__v.__k[0].__c;this.__v.__k[0]=G(this.__b,te,re.__O=re.__P)}this.__b=null}var Ae=Z.__e&&Object(s.e)(s.b,null,k.fallback);return Ae&&(Ae.__h=null),[Object(s.e)(s.b,null,Z.__e?null:k.children),Ae]};var He=function(k,Z,te){if(++te[1]===te[0]&&k.o.delete(Z),k.props.revealOrder&&(k.props.revealOrder[0]!=="t"||!k.o.size))for(te=k.u;te;){for(;te.length>3;)te.pop()();if(te[1]<te[0])break;k.u=te=te[2]}};function et(k){return this.getChildContext=function(){return k.context},k.children}function We(k){var Z=this,te=k.i;Z.componentWillUnmount=function(){Object(s.j)(null,Z.l),Z.l=null,Z.i=null},Z.i&&Z.i!==te&&Z.componentWillUnmount(),k.__v?(Z.l||(Z.i=te,Z.l={nodeType:1,parentNode:te,childNodes:[],appendChild:function(re){this.childNodes.push(re),Z.i.appendChild(re)},insertBefore:function(re,Ae){this.childNodes.push(re),Z.i.appendChild(re)},removeChild:function(re){this.childNodes.splice(this.childNodes.indexOf(re)>>>1,1),Z.i.removeChild(re)}}),Object(s.j)(Object(s.e)(et,{context:Z.context},k.__v),Z.l)):Z.l&&Z.componentWillUnmount()}function rt(k,Z){return Object(s.e)(We,{__v:k,i:Z})}(ye.prototype=new s.a).__e=function(k){var Z=this,te=ge(Z.__v),re=Z.o.get(k);return re[0]++,function(Ae){var De=function(){Z.props.revealOrder?(re.push(Ae),He(Z,k,re)):Ae()};te?te(De):De()}},ye.prototype.render=function(k){this.u=null,this.o=new Map;var Z=Object(s.k)(k.children);k.revealOrder&&k.revealOrder[0]==="b"&&Z.reverse();for(var te=Z.length;te--;)this.o.set(Z[te],this.u=[1,0,this.u]);return k.children},ye.prototype.componentDidUpdate=ye.prototype.componentDidMount=function(){var k=this;this.o.forEach(function(Z,te){He(k,te,Z)})};var be=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,ut=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tt=typeof document!="undefined",Fe=function(k){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(k)};function Qe(k,Z,te){return Z.__k==null&&(Z.textContent=""),Object(s.j)(k,Z),typeof te=="function"&&te(),k?k.__c:null}function At(k,Z,te){return Object(s.h)(k,Z),typeof te=="function"&&te(),k?k.__c:null}s.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(k){Object.defineProperty(s.a.prototype,k,{configurable:!0,get:function(){return this["UNSAFE_"+k]},set:function(Z){Object.defineProperty(this,k,{configurable:!0,writable:!0,value:Z})}})});var ct=s.i.event;function bt(){}function ne(){return this.cancelBubble}function Ct(){return this.defaultPrevented}s.i.event=function(k){return ct&&(k=ct(k)),k.persist=bt,k.isPropagationStopped=ne,k.isDefaultPrevented=Ct,k.nativeEvent=k};var St,mt={configurable:!0,get:function(){return this.class}},Wt=s.i.vnode;s.i.vnode=function(k){var Z=k.type,te=k.props,re=te;if(typeof Z=="string"){var Ae=Z.indexOf("-")===-1;for(var De in re={},te){var Xe=te[De];tt&&De==="children"&&Z==="noscript"||De==="value"&&"defaultValue"in te&&Xe==null||(De==="defaultValue"&&"value"in te&&te.value==null?De="value":De==="download"&&Xe===!0?Xe="":/ondoubleclick/i.test(De)?De="ondblclick":/^onchange(textarea|input)/i.test(De+Z)&&!Fe(te.type)?De="oninput":/^onfocus$/i.test(De)?De="onfocusin":/^onblur$/i.test(De)?De="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(De)?De=De.toLowerCase():Ae&&ut.test(De)?De=De.replace(/[A-Z0-9]/,"-$&").toLowerCase():Xe===null&&(Xe=void 0),re[De]=Xe)}Z=="select"&&re.multiple&&Array.isArray(re.value)&&(re.value=Object(s.k)(te.children).forEach(function(vt){vt.props.selected=re.value.indexOf(vt.props.value)!=-1})),Z=="select"&&re.defaultValue!=null&&(re.value=Object(s.k)(te.children).forEach(function(vt){vt.props.selected=re.multiple?re.defaultValue.indexOf(vt.props.value)!=-1:re.defaultValue==vt.props.value})),k.props=re,te.class!=te.className&&(mt.enumerable="className"in te,te.className!=null&&(re.class=te.className),Object.defineProperty(re,"className",mt))}k.$$typeof=be,Wt&&Wt(k)};var dr=s.i.__r;s.i.__r=function(k){dr&&dr(k),St=k.__c};var Zt={ReactCurrentDispatcher:{current:{readContext:function(k){return St.__n[k.__c].props.value}}}};function Er(k){return s.e.bind(null,k)}function qe(k){return!!k&&k.$$typeof===be}function Pt(k){return qe(k)?s.c.apply(null,arguments):k}function nr(k){return!!k.__k&&(Object(s.j)(null,k),!0)}function Ce(k){return k&&(k.base||k.nodeType===1&&k)||null}var Ye=function(k,Z){return k(Z)},nt=function(k,Z){return k(Z)},Ze=s.b,lt={useState:H,useReducer:U,useEffect:X,useLayoutEffect:se,useRef:ae,useImperativeHandle:q,useMemo:J,useCallback:ie,useContext:z,useDebugValue:j,version:"17.0.2",Children:xe,render:Qe,hydrate:At,unmountComponentAtNode:nr,createPortal:rt,createElement:s.e,createContext:s.d,createFactory:Er,cloneElement:Pt,createRef:s.f,Fragment:s.b,isValidElement:qe,findDOMNode:Ce,Component:s.a,PureComponent:he,memo:ve,forwardRef:ze,flushSync:nt,unstable_batchedUpdates:Ye,StrictMode:Ze,Suspense:ee,SuspenseList:ye,lazy:Me,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zt};c.d=lt},function(u,c,i){var s=i(7),f=i(147),y=i(148),b=i(179),E=i(57),S=function(T){if(T&&T.forEach!==b)try{E(T,"forEach",b)}catch{T.forEach=b}};for(var M in f)f[M]&&S(s[M]&&s[M].prototype);S(y)},function(u,c,i){var s=i(16),f=i(97);s({target:"Object",stat:!0},{setPrototypeOf:f})},function(u,c,i){var s=i(16),f=i(18),y=i(38),b=i(96),E=i(137),S=f(function(){b(1)});s({target:"Object",stat:!0,forced:S,sham:!E},{getPrototypeOf:function(T){return b(y(T))}})},function(u,c,i){var s=i(16),f=i(46),y=i(76),b=i(198),E=i(157),S=i(32),M=i(33),T=i(54),A=i(18),I=f("Reflect","construct"),_=Object.prototype,L=[].push,H=A(function(){function se(){}return!(I(function(){},[],se)instanceof se)}),U=!A(function(){I(function(){})}),X=H||U;s({target:"Reflect",stat:!0,forced:X,sham:X},{construct:function(ae,q){E(ae),S(q);var J=arguments.length<3?ae:E(arguments[2]);if(U&&!H)return I(ae,q,J);if(ae==J){switch(q.length){case 0:return new ae;case 1:return new ae(q[0]);case 2:return new ae(q[0],q[1]);case 3:return new ae(q[0],q[1],q[2]);case 4:return new ae(q[0],q[1],q[2],q[3])}var ie=[null];return y(L,ie,q),new(y(b,ae,ie))}var z=J.prototype,j=T(M(z)?z:_),N=y(ae,j,q);return M(N)?N:j}})},function(u,c){var i=Function.prototype,s=i.bind,f=i.call,y=s&&s.bind(f);u.exports=s?function(b){return b&&y(f,b)}:function(b){return b&&function(){return f.apply(b,arguments)}}},function(u,c,i){var s=i(7),f=i(51).f,y=i(57),b=i(44),E=i(108),S=i(134),M=i(95);u.exports=function(T,A){var I=T.target,_=T.global,L=T.stat,H,U,X,se,ae,q;if(_?U=s:L?U=s[I]||E(I,{}):U=(s[I]||{}).prototype,U)for(X in A){if(ae=A[X],T.noTargetGet?(q=f(U,X),se=q&&q.value):se=U[X],H=M(_?X:I+(L?".":"#")+X,T.forced),!H&&se!==void 0){if(typeof ae==typeof se)continue;S(ae,se)}(T.sham||se&&se.sham)&&y(ae,"sham",!0),b(U,X,ae,T)}}},function(u,c,i){var s=i(16),f=i(7),y=i(99),b=i(100),E=i(33),S=i(67),M=i(43),T=i(39),A=i(61),I=i(27),_=i(75),L=i(101),H=_("slice"),U=I("species"),X=f.Array,se=Math.max;s({target:"Array",proto:!0,forced:!H},{slice:function(q,J){var ie=T(this),z=M(ie),j=S(q,z),N=S(J===void 0?z:J,z),P,D,Y;if(y(ie)&&(P=ie.constructor,b(P)&&(P===X||y(P.prototype))?P=void 0:E(P)&&(P=P[U],P===null&&(P=void 0)),P===X||P===void 0))return L(ie,j,N);for(D=new(P===void 0?X:P)(se(N-j,0)),Y=0;j<N;j++,Y++)j in ie&&A(D,Y,ie[j]);return D.length=Y,D}})},function(u,c){u.exports=function(i){try{return!!i()}catch{return!0}}},function(u,c,i){var s=i(16),f=i(102);s({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},function(u,c,i){var s=i(16),f=i(38),y=i(66),b=i(18),E=b(function(){y(1)});s({target:"Object",stat:!0,forced:E},{keys:function(M){return y(f(M))}})},function(u,c,i){var s=i(16),f=i(18),y=i(39),b=i(51).f,E=i(36),S=f(function(){b(1)}),M=!E||S;s({target:"Object",stat:!0,forced:M,sham:!E},{getOwnPropertyDescriptor:function(A,I){return b(y(A),I)}})},function(u,c,i){var s=i(16),f=i(74).filter,y=i(75),b=y("filter");s({target:"Array",proto:!0,forced:!b},{filter:function(S){return f(this,S,arguments.length>1?arguments[1]:void 0)}})},function(u,c,i){var s=i(16),f=i(36),y=i(135),b=i(39),E=i(51),S=i(61);s({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(T){for(var A=b(T),I=E.f,_=y(A),L={},H=0,U,X;_.length>H;)X=I(A,U=_[H++]),X!==void 0&&S(L,U,X);return L}})},function(u,c,i){var s=i(36),f=i(94).EXISTS,y=i(15),b=i(37).f,E=Function.prototype,S=y(E.toString),M=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=y(M.exec),A="name";s&&!f&&b(E,A,{configurable:!0,get:function(){try{return T(M,S(this))[1]}catch{return""}}})},function(u,c,i){var s=i(16),f=i(182),y=i(118),b=!y(function(E){Array.from(E)});s({target:"Array",stat:!0,forced:b},{from:f})},,function(u,c,i){var s=i(7),f=i(84),y=i(34),b=i(85),E=i(109),S=i(128),M=f("wks"),T=s.Symbol,A=T&&T.for,I=S?T:T&&T.withoutSetter||b;u.exports=function(_){if(!y(M,_)||!(E||typeof M[_]=="string")){var L="Symbol."+_;E&&y(T,_)?M[_]=T[_]:S&&A?M[_]=A(L):M[_]=I(L)}return M[_]}},function(u,c){u.exports=function(i){return typeof i=="function"}},function(u,c,i){var s=i(16),f=i(7),y=i(18),b=i(99),E=i(33),S=i(38),M=i(43),T=i(61),A=i(119),I=i(75),_=i(27),L=i(65),H=_("isConcatSpreadable"),U=9007199254740991,X="Maximum allowed index exceeded",se=f.TypeError,ae=L>=51||!y(function(){var z=[];return z[H]=!1,z.concat()[0]!==z}),q=I("concat"),J=function(z){if(!E(z))return!1;var j=z[H];return j!==void 0?!!j:b(z)},ie=!ae||!q;s({target:"Array",proto:!0,forced:ie},{concat:function(j){var N=S(this),P=A(N,0),D=0,Y,V,ue,Oe,me;for(Y=-1,ue=arguments.length;Y<ue;Y++)if(me=Y===-1?N:arguments[Y],J(me)){if(Oe=M(me),D+Oe>U)throw se(X);for(V=0;V<Oe;V++,D++)V in me&&T(P,D,me[V])}else{if(D>=U)throw se(X);T(P,D++,me)}return P.length=D,P}})},function(u,c,i){var s=i(105),f=typeof self=="object"&&self&&self.Object===Object&&self,y=s.a||f||Function("return this")();c.a=y},function(u,c,i){var s=i(16),f=i(200);s({target:"Object",stat:!0,forced:Object.assign!==f},{assign:f})},function(u,c,i){var s=i(7),f=i(33),y=s.String,b=s.TypeError;u.exports=function(E){if(f(E))return E;throw b(y(E)+" is not an object")}},function(u,c,i){var s=i(28);u.exports=function(f){return typeof f=="object"?f!==null:s(f)}},function(u,c,i){var s=i(15),f=i(38),y=s({}.hasOwnProperty);u.exports=Object.hasOwn||function(E,S){return y(f(E),S)}},function(u,c){var i=Function.prototype.call;u.exports=i.bind?i.bind(i):function(){return i.apply(i,arguments)}},function(u,c,i){var s=i(18);u.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(u,c,i){var s=i(7),f=i(36),y=i(129),b=i(32),E=i(87),S=s.TypeError,M=Object.defineProperty;c.f=f?M:function(A,I,_){if(b(A),I=E(I),b(_),y)try{return M(A,I,_)}catch{}if("get"in _||"set"in _)throw S("Accessors not supported");return"value"in _&&(A[I]=_.value),A}},function(u,c,i){var s=i(7),f=i(45),y=s.Object;u.exports=function(b){return y(f(b))}},function(u,c,i){var s=i(81),f=i(45);u.exports=function(y){return s(f(y))}},function(u,c,i){var s=i(7),f=i(98),y=s.String;u.exports=function(b){if(f(b)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return y(b)}},function(u,c,i){var s=i(16),f=i(74).map,y=i(75),b=y("map");s({target:"Array",proto:!0,forced:!b},{map:function(S){return f(this,S,arguments.length>1?arguments[1]:void 0)}})},function(u,c,i){(function(s){i.d(c,"d",function(){return b}),i.d(c,"c",function(){return E}),i.d(c,"b",function(){return S}),i.d(c,"a",function(){return T});var f=i(10),y=function(A,I){var _=typeof Symbol=="function"&&A[Symbol.iterator];if(!_)return A;var L=_.call(A),H,U=[],X;try{for(;(I===void 0||I-- >0)&&!(H=L.next()).done;)U.push(H.value)}catch(se){X={error:se}}finally{try{H&&!H.done&&(_=L.return)&&_.call(L)}finally{if(X)throw X.error}}return U};function b(){var A=y(Object(f.j)(0),2),I=A[1],_=Object(f.h)(function(){I(function(L){return L+1})},[]);return _}function E(A){if(!A||typeof A!="object")return!1;var I=Object.getPrototypeOf(A);return!I||I===Object.prototype}function S(A){return typeof Symbol=="function"?Symbol.for(A):"__$mobx-react "+A+"__"}var M={};function T(){return typeof window!="undefined"?window:typeof s!="undefined"?s:typeof self!="undefined"?self:M}}).call(this,i(82))},function(u,c,i){var s=i(90);u.exports=function(f){return s(f.length)}},function(u,c,i){var s=i(7),f=i(28),y=i(34),b=i(57),E=i(108),S=i(92),M=i(56),T=i(94).CONFIGURABLE,A=M.get,I=M.enforce,_=String(String).split("String");(u.exports=function(L,H,U,X){var se=X?!!X.unsafe:!1,ae=X?!!X.enumerable:!1,q=X?!!X.noTargetGet:!1,J=X&&X.name!==void 0?X.name:H,ie;if(f(U)&&(String(J).slice(0,7)==="Symbol("&&(J="["+String(J).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(U,"name")||T&&U.name!==J)&&b(U,"name",J),ie=I(U),ie.source||(ie.source=_.join(typeof J=="string"?J:""))),L===s){ae?L[H]=U:E(H,U);return}else se?!q&&L[H]&&(ae=!0):delete L[H];ae?L[H]=U:b(L,H,U)})(Function.prototype,"toString",function(){return f(this)&&A(this).source||S(this)})},function(u,c,i){var s=i(7),f=s.TypeError;u.exports=function(y){if(y==null)throw f("Can't call method on "+y);return y}},function(u,c,i){var s=i(7),f=i(28),y=function(b){return f(b)?b:void 0};u.exports=function(b,E){return arguments.length<2?y(s[b]):s[b]&&s[b][E]}},function(u,c,i){var s=i(16),f=i(35),y=i(33),b=i(32),E=i(199),S=i(51),M=i(96);function T(A,I){var _=arguments.length<3?A:arguments[2],L,H;if(b(A)===_)return A[I];if(L=S.f(A,I),L)return E(L)?L.value:L.get===void 0?void 0:f(L.get,_);if(y(H=M(A)))return T(H,I,_)}s({target:"Reflect",stat:!0},{get:T})},function(u,c,i){(function(s){var f=i(30),y=i(165),b=v&&!v.nodeType&&v,E=b&&typeof s=="object"&&s&&!s.nodeType&&s,S=E&&E.exports===b,M=S?f.a.Buffer:void 0,T=M?M.isBuffer:void 0,A=T||y.a;c.a=A}).call(this,i(121)(u))},function(u,c,i){(function(s){var f=i(105),y=v&&!v.nodeType&&v,b=y&&typeof s=="object"&&s&&!s.nodeType&&s,E=b&&b.exports===y,S=E&&f.a.process,M=function(){try{var T=b&&b.require&&b.require("util").types;return T||S&&S.binding&&S.binding("util")}catch{}}();c.a=M}).call(this,i(121)(u))},function(u,c,i){var s=i(15),f=s({}.toString),y=s("".slice);u.exports=function(b){return y(f(b),8,-1)}},function(u,c,i){var s=i(36),f=i(35),y=i(93),b=i(71),E=i(39),S=i(87),M=i(34),T=i(129),A=Object.getOwnPropertyDescriptor;c.f=s?A:function(_,L){if(_=E(_),L=S(L),T)try{return A(_,L)}catch{}if(M(_,L))return b(!f(y.f,_,L),_[L])}},function(u,c,i){var s=i(16),f=i(213).entries;s({target:"Object",stat:!0},{entries:function(b){return f(b)}})},function(u,c,i){var s=i(46);u.exports=s("navigator","userAgent")||""},function(u,c,i){var s=i(32),f=i(168),y=i(110),b=i(69),E=i(133),S=i(86),M=i(91),T=">",A="<",I="prototype",_="script",L=M("IE_PROTO"),H=function(){},U=function(J){return A+_+T+J+A+"/"+_+T},X=function(J){J.write(U("")),J.close();var ie=J.parentWindow.Object;return J=null,ie},se=function(){var J=S("iframe"),ie="java"+_+":",z;return J.style.display="none",E.appendChild(J),J.src=String(ie),z=J.contentWindow.document,z.open(),z.write(U("document.F=Object")),z.close(),z.F},ae,q=function(){try{ae=new ActiveXObject("htmlfile")}catch{}q=typeof document!="undefined"?document.domain&&ae?X(ae):se():X(ae);for(var J=y.length;J--;)delete q[I][y[J]];return q()};b[L]=!0,u.exports=Object.create||function(ie,z){var j;return ie!==null?(H[I]=s(ie),j=new H,H[I]=null,j[L]=ie):j=q(),z===void 0?j:f(j,z)}},function(u,c,i){var s=i(7),f=i(28),y=i(89),b=s.TypeError;u.exports=function(E){if(f(E))return E;throw b(y(E)+" is not a function")}},function(u,c,i){var s=i(170),f=i(7),y=i(15),b=i(33),E=i(57),S=i(34),M=i(107),T=i(91),A=i(69),I="Object already initialized",_=f.TypeError,L=f.WeakMap,H,U,X,se=function(N){return X(N)?U(N):H(N,{})},ae=function(N){return function(P){var D;if(!b(P)||(D=U(P)).type!==N)throw _("Incompatible receiver, "+N+" required");return D}};if(s||M.state){var q=M.state||(M.state=new L),J=y(q.get),ie=y(q.has),z=y(q.set);H=function(N,P){if(ie(q,N))throw new _(I);return P.facade=N,z(q,N,P),P},U=function(N){return J(q,N)||{}},X=function(N){return ie(q,N)}}else{var j=T("state");A[j]=!0,H=function(N,P){if(S(N,j))throw new _(I);return P.facade=N,E(N,j,P),P},U=function(N){return S(N,j)?N[j]:{}},X=function(N){return S(N,j)}}u.exports={set:H,get:U,has:X,enforce:se,getterFor:ae}},function(u,c,i){var s=i(36),f=i(37),y=i(71);u.exports=s?function(b,E,S){return f.f(b,E,y(1,S))}:function(b,E,S){return b[E]=S,b}},function(u,c,i){var s=i(15);u.exports=s({}.isPrototypeOf)},function(u,c,i){var s=i(55);u.exports=function(f,y){var b=f[y];return b==null?void 0:s(b)}},function(u,c,i){var s=i(173),f=i(177);s("Map",function(y){return function(){return y(this,arguments.length?arguments[0]:void 0)}},f)},function(u,c,i){var s=i(87),f=i(37),y=i(71);u.exports=function(b,E,S){var M=s(E);M in b?f.f(b,M,y(0,S)):b[M]=S}},function(u,c,i){var s=i(15),f=i(55),y=s(s.bind);u.exports=function(b,E){return f(b),E===void 0?b:y?y(b,E):function(){return b.apply(E,arguments)}}},function(u,c,i){var s=i(16),f=i(214),y=i(83);s({target:"Array",proto:!0},{fill:f}),y("fill")},function(u,c){u.exports=!1},function(u,c,i){var s=i(7),f=i(53),y=s.process,b=s.Deno,E=y&&y.versions||b&&b.version,S=E&&E.v8,M,T;S&&(M=S.split("."),T=M[0]>0&&M[0]<4?1:+(M[0]+M[1])),!T&&f&&(M=f.match(/Edge\/(\d+)/),(!M||M[1]>=74)&&(M=f.match(/Chrome\/(\d+)/),M&&(T=+M[1]))),u.exports=T},function(u,c,i){var s=i(131),f=i(110);u.exports=Object.keys||function(b){return s(b,f)}},function(u,c,i){var s=i(68),f=Math.max,y=Math.min;u.exports=function(b,E){var S=s(b);return S<0?f(S+E,0):y(S,E)}},function(u,c){var i=Math.ceil,s=Math.floor;u.exports=function(f){var y=+f;return y!==y||y===0?0:(y>0?s:i)(y)}},function(u,c){u.exports={}},function(u,c){u.exports={}},function(u,c){u.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},function(u,c,i){var s=i(131),f=i(110),y=f.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(E){return s(E,y)}},function(u,c,i){var s=i(37).f,f=i(34),y=i(27),b=y("toStringTag");u.exports=function(E,S,M){E&&!f(E=M?E:E.prototype,b)&&s(E,b,{configurable:!0,value:S})}},function(u,c,i){var s=i(62),f=i(15),y=i(81),b=i(38),E=i(43),S=i(119),M=f([].push),T=function(A){var I=A==1,_=A==2,L=A==3,H=A==4,U=A==6,X=A==7,se=A==5||U;return function(ae,q,J,ie){for(var z=b(ae),j=y(z),N=s(q,J),P=E(j),D=0,Y=ie||S,V=I?Y(ae,P):_||X?Y(ae,0):void 0,ue,Oe;P>D;D++)if((se||D in j)&&(ue=j[D],Oe=N(ue,D,z),A))if(I)V[D]=Oe;else if(Oe)switch(A){case 3:return!0;case 5:return ue;case 6:return D;case 2:M(V,ue)}else switch(A){case 4:return!1;case 7:M(V,ue)}return U?-1:L||H?H:V}};u.exports={forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findIndex:T(6),filterReject:T(7)}},function(u,c,i){var s=i(18),f=i(27),y=i(65),b=f("species");u.exports=function(E){return y>=51||!s(function(){var S=[],M=S.constructor={};return M[b]=function(){return{foo:1}},S[E](Boolean).foo!==1})}},function(u,c){var i=Function.prototype,s=i.apply,f=i.bind,y=i.call;u.exports=typeof Reflect=="object"&&Reflect.apply||(f?y.bind(s):function(){return y.apply(s,arguments)})},function(u,c,i){var s=i(16),f=i(15),y=i(81),b=i(39),E=i(120),S=f([].join),M=y!=Object,T=E("join",",");s({target:"Array",proto:!0,forced:M||!T},{join:function(I){return S(b(this),I===void 0?",":I)}})},function(u,c,i){var s=i(76),f=i(35),y=i(15),b=i(122),E=i(154),S=i(32),M=i(45),T=i(156),A=i(123),I=i(90),_=i(40),L=i(59),H=i(113),U=i(124),X=i(102),se=i(151),ae=i(18),q=se.UNSUPPORTED_Y,J=4294967295,ie=Math.min,z=[].push,j=y(/./.exec),N=y(z),P=y("".slice),D=!ae(function(){var Y=/(?:)/,V=Y.exec;Y.exec=function(){return V.apply(this,arguments)};var ue="ab".split(Y);return ue.length!==2||ue[0]!=="a"||ue[1]!=="b"});b("split",function(Y,V,ue){var Oe;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Oe=function(me,ce){var he=_(M(this)),ve=ce===void 0?J:ce>>>0;if(ve===0)return[];if(me===void 0)return[he];if(!E(me))return f(V,he,me,ve);for(var Ee=[],je=(me.ignoreCase?"i":"")+(me.multiline?"m":"")+(me.unicode?"u":"")+(me.sticky?"y":""),ze=0,Re=new RegExp(me.source,je+"g"),xe,Be,_e;(xe=f(X,Re,he))&&(Be=Re.lastIndex,!(Be>ze&&(N(Ee,P(he,ze,xe.index)),xe.length>1&&xe.index<he.length&&s(z,Ee,H(xe,1)),_e=xe[0].length,ze=Be,Ee.length>=ve)));)Re.lastIndex===xe.index&&Re.lastIndex++;return ze===he.length?(_e||!j(Re,""))&&N(Ee,""):N(Ee,P(he,ze)),Ee.length>ve?H(Ee,0,ve):Ee}:"0".split(void 0,0).length?Oe=function(me,ce){return me===void 0&&ce===0?[]:f(V,this,me,ce)}:Oe=V,[function(ce,he){var ve=M(this),Ee=ce==null?void 0:L(ce,Y);return Ee?f(Ee,ce,ve,he):f(Oe,_(ve),ce,he)},function(me,ce){var he=S(this),ve=_(me),Ee=ue(Oe,he,ve,ce,Oe!==V);if(Ee.done)return Ee.value;var je=T(he,RegExp),ze=he.unicode,Re=(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")+(q?"g":"y"),xe=new je(q?"^(?:"+he.source+")":he,Re),Be=ce===void 0?J:ce>>>0;if(Be===0)return[];if(ve.length===0)return U(xe,ve)===null?[ve]:[];for(var _e=0,G=0,W=[];G<ve.length;){xe.lastIndex=q?0:G;var ee=U(xe,q?P(ve,G):ve),ge;if(ee===null||(ge=ie(I(xe.lastIndex+(q?G:0)),ve.length))===_e)G=A(ve,G,ze);else{if(N(W,P(ve,_e,G)),W.length===Be)return W;for(var Me=1;Me<=ee.length-1;Me++)if(N(W,ee[Me]),W.length===Be)return W;G=_e=ge}}return N(W,P(ve,_e)),W}]},!D,q)},function(u,c,i){var s=i(36),f=i(7),y=i(15),b=i(95),E=i(44),S=i(34),M=i(143),T=i(58),A=i(88),I=i(130),_=i(18),L=i(72).f,H=i(51).f,U=i(37).f,X=i(196),se=i(159).trim,ae="Number",q=f[ae],J=q.prototype,ie=f.TypeError,z=y("".slice),j=y("".charCodeAt),N=function(Oe){var me=I(Oe,"number");return typeof me=="bigint"?me:P(me)},P=function(Oe){var me=I(Oe,"number"),ce,he,ve,Ee,je,ze,Re,xe;if(A(me))throw ie("Cannot convert a Symbol value to a number");if(typeof me=="string"&&me.length>2){if(me=se(me),ce=j(me,0),ce===43||ce===45){if(he=j(me,2),he===88||he===120)return NaN}else if(ce===48){switch(j(me,1)){case 66:case 98:ve=2,Ee=49;break;case 79:case 111:ve=8,Ee=55;break;default:return+me}for(je=z(me,2),ze=je.length,Re=0;Re<ze;Re++)if(xe=j(je,Re),xe<48||xe>Ee)return NaN;return parseInt(je,ve)}}return+me};if(b(ae,!q(" 0o1")||!q("0b1")||q("+0x1"))){for(var D=function(me){var ce=arguments.length<1?0:q(N(me)),he=this;return T(J,he)&&_(function(){X(he)})?M(Object(ce),he,D):ce},Y=s?L(q):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),V=0,ue;Y.length>V;V++)S(q,ue=Y[V])&&!S(D,ue)&&U(D,ue,H(q,ue));D.prototype=J,J.constructor=D,E(f,ae,D)}},function(u,c,i){var s=i(16);s({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(u,c,i){var s=i(7),f=i(15),y=i(18),b=i(50),E=s.Object,S=f("".split);u.exports=y(function(){return!E("z").propertyIsEnumerable(0)})?function(M){return b(M)=="String"?S(M,""):E(M)}:E},function(u,c){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}u.exports=i},function(u,c,i){var s=i(27),f=i(54),y=i(37),b=s("unscopables"),E=Array.prototype;E[b]==null&&y.f(E,b,{configurable:!0,value:f(null)}),u.exports=function(S){E[b][S]=!0}},function(u,c,i){var s=i(64),f=i(107);(u.exports=function(y,b){return f[y]||(f[y]=b!==void 0?b:{})})("versions",[]).push({version:"3.19.3",mode:s?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(u,c,i){var s=i(15),f=0,y=Math.random(),b=s(1 .toString);u.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+b(++f+y,36)}},function(u,c,i){var s=i(7),f=i(33),y=s.document,b=f(y)&&f(y.createElement);u.exports=function(E){return b?y.createElement(E):{}}},function(u,c,i){var s=i(130),f=i(88);u.exports=function(y){var b=s(y,"string");return f(b)?b:b+""}},function(u,c,i){var s=i(7),f=i(46),y=i(28),b=i(58),E=i(128),S=s.Object;u.exports=E?function(M){return typeof M=="symbol"}:function(M){var T=f("Symbol");return y(T)&&b(T.prototype,S(M))}},function(u,c,i){var s=i(7),f=s.String;u.exports=function(y){try{return f(y)}catch{return"Object"}}},function(u,c,i){var s=i(68),f=Math.min;u.exports=function(y){return y>0?f(s(y),9007199254740991):0}},function(u,c,i){var s=i(84),f=i(85),y=s("keys");u.exports=function(b){return y[b]||(y[b]=f(b))}},function(u,c,i){var s=i(15),f=i(28),y=i(107),b=s(Function.toString);f(y.inspectSource)||(y.inspectSource=function(E){return b(E)}),u.exports=y.inspectSource},function(u,c,i){var s={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,y=f&&!s.call({1:2},1);c.f=y?function(E){var S=f(this,E);return!!S&&S.enumerable}:s},function(u,c,i){var s=i(36),f=i(34),y=Function.prototype,b=s&&Object.getOwnPropertyDescriptor,E=f(y,"name"),S=E&&function(){}.name==="something",M=E&&(!s||s&&b(y,"name").configurable);u.exports={EXISTS:E,PROPER:S,CONFIGURABLE:M}},function(u,c,i){var s=i(18),f=i(28),y=/#|\.prototype\./,b=function(A,I){var _=S[E(A)];return _==T?!0:_==M?!1:f(I)?s(I):!!I},E=b.normalize=function(A){return String(A).replace(y,".").toLowerCase()},S=b.data={},M=b.NATIVE="N",T=b.POLYFILL="P";u.exports=b},function(u,c,i){var s=i(7),f=i(34),y=i(28),b=i(38),E=i(91),S=i(137),M=E("IE_PROTO"),T=s.Object,A=T.prototype;u.exports=S?T.getPrototypeOf:function(I){var _=b(I);if(f(_,M))return _[M];var L=_.constructor;return y(L)&&_ instanceof L?L.prototype:_ instanceof T?A:null}},function(u,c,i){var s=i(15),f=i(32),y=i(172);u.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var b=!1,E={},S;try{S=s(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),S(E,[]),b=E instanceof Array}catch{}return function(T,A){return f(T),y(A),b?S(T,A):T.__proto__=A,T}}():void 0)},function(u,c,i){var s=i(7),f=i(116),y=i(28),b=i(50),E=i(27),S=E("toStringTag"),M=s.Object,T=b(function(){return arguments}())=="Arguments",A=function(I,_){try{return I[_]}catch{}};u.exports=f?b:function(I){var _,L,H;return I===void 0?"Undefined":I===null?"Null":typeof(L=A(_=M(I),S))=="string"?L:T?b(_):(H=b(_))=="Object"&&y(_.callee)?"Arguments":H}},function(u,c,i){var s=i(50);u.exports=Array.isArray||function(y){return s(y)=="Array"}},function(u,c,i){var s=i(15),f=i(18),y=i(28),b=i(98),E=i(46),S=i(92),M=function(){},T=[],A=E("Reflect","construct"),I=/^\s*(?:class|function)\b/,_=s(I.exec),L=!I.exec(M),H=function(X){if(!y(X))return!1;try{return A(M,T,X),!0}catch{return!1}},U=function(X){if(!y(X))return!1;switch(b(X)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L||!!_(I,S(X))};u.exports=!A||f(function(){var X;return H(H.call)||!H(Object)||!H(function(){X=!0})||X})?U:H},function(u,c,i){var s=i(15);u.exports=s([].slice)},function(u,c,i){var s=i(35),f=i(15),y=i(40),b=i(184),E=i(151),S=i(84),M=i(54),T=i(56).get,A=i(185),I=i(186),_=S("native-string-replace",String.prototype.replace),L=RegExp.prototype.exec,H=L,U=f("".charAt),X=f("".indexOf),se=f("".replace),ae=f("".slice),q=function(){var j=/a/,N=/b*/g;return s(L,j,"a"),s(L,N,"a"),j.lastIndex!==0||N.lastIndex!==0}(),J=E.BROKEN_CARET,ie=/()??/.exec("")[1]!==void 0,z=q||ie||J||A||I;z&&(H=function(N){var P=this,D=T(P),Y=y(N),V=D.raw,ue,Oe,me,ce,he,ve,Ee;if(V)return V.lastIndex=P.lastIndex,ue=s(H,V,Y),P.lastIndex=V.lastIndex,ue;var je=D.groups,ze=J&&P.sticky,Re=s(b,P),xe=P.source,Be=0,_e=Y;if(ze&&(Re=se(Re,"y",""),X(Re,"g")===-1&&(Re+="g"),_e=ae(Y,P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&U(Y,P.lastIndex-1)!==`
  24. `)&&(xe="(?: "+xe+")",_e=" "+_e,Be++),Oe=new RegExp("^(?:"+xe+")",Re)),ie&&(Oe=new RegExp("^"+xe+"$(?!\\s)",Re)),q&&(me=P.lastIndex),ce=s(L,ze?Oe:P,_e),ze?ce?(ce.input=ae(ce.input,Be),ce[0]=ae(ce[0],Be),ce.index=P.lastIndex,P.lastIndex+=ce[0].length):P.lastIndex=0:q&&ce&&(P.lastIndex=P.global?ce.index+ce[0].length:me),ie&&ce&&ce.length>1&&s(_,ce[0],Oe,function(){for(he=1;he<arguments.length-2;he++)arguments[he]===void 0&&(ce[he]=void 0)}),ce&&je)for(ce.groups=ve=M(null),he=0;he<je.length;he++)Ee=je[he],ve[Ee[0]]=ce[Ee[1]];return ce}),u.exports=H},function(u,c,i){var s=i(16),f=i(7),y=i(67),b=i(68),E=i(43),S=i(38),M=i(119),T=i(61),A=i(75),I=A("splice"),_=f.TypeError,L=Math.max,H=Math.min,U=9007199254740991,X="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!I},{splice:function(ae,q){var J=S(this),ie=E(J),z=y(ae,ie),j=arguments.length,N,P,D,Y,V,ue;if(j===0?N=P=0:j===1?(N=0,P=ie-z):(N=j-2,P=H(L(b(q),0),ie-z)),ie+N-P>U)throw _(X);for(D=M(J,P),Y=0;Y<P;Y++)V=z+Y,V in J&&T(D,Y,J[V]);if(D.length=P,N<P){for(Y=z;Y<ie-P;Y++)V=Y+P,ue=Y+N,V in J?J[ue]=J[V]:delete J[ue];for(Y=ie;Y>ie-P+N;Y--)delete J[Y-1]}else if(N>P)for(Y=ie-P;Y>z;Y--)V=Y+P-1,ue=Y+N-1,V in J?J[ue]=J[V]:delete J[ue];for(Y=0;Y<N;Y++)J[Y+z]=arguments[Y+2];return J.length=ie-P+N,D}})},function(u,c,i){var s=i(16),f=i(201),y=i(202);s({target:"String",proto:!0,forced:y("anchor")},{anchor:function(E){return f(this,"a","name",E)}})},function(u,c,i){(function(s){var f=typeof s=="object"&&s&&s.Object===Object&&s;c.a=f}).call(this,i(82))},function(u,c,i){(function(s){var f=i(30),y=v&&!v.nodeType&&v,b=y&&typeof s=="object"&&s&&!s.nodeType&&s,E=b&&b.exports===y,S=E?f.a.Buffer:void 0,M=S?S.allocUnsafe:void 0;function T(A,I){if(I)return A.slice();var _=A.length,L=M?M(_):new A.constructor(_);return A.copy(L),L}c.a=T}).call(this,i(121)(u))},function(u,c,i){var s=i(7),f=i(108),y="__core-js_shared__",b=s[y]||f(y,{});u.exports=b},function(u,c,i){var s=i(7),f=Object.defineProperty;u.exports=function(y,b){try{f(s,y,{value:b,configurable:!0,writable:!0})}catch{s[y]=b}return b}},function(u,c,i){var s=i(65),f=i(18);u.exports=!!Object.getOwnPropertySymbols&&!f(function(){var y=Symbol();return!String(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&s&&s<41})},function(u,c){u.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(u,c,i){var s=i(16),f=i(35),y=i(64),b=i(94),E=i(28),S=i(171),M=i(96),T=i(97),A=i(73),I=i(57),_=i(44),L=i(27),H=i(70),U=i(136),X=b.PROPER,se=b.CONFIGURABLE,ae=U.IteratorPrototype,q=U.BUGGY_SAFARI_ITERATORS,J=L("iterator"),ie="keys",z="values",j="entries",N=function(){return this};u.exports=function(P,D,Y,V,ue,Oe,me){S(Y,D,V);var ce=function(G){if(G===ue&&ze)return ze;if(!q&&G in Ee)return Ee[G];switch(G){case ie:return function(){return new Y(this,G)};case z:return function(){return new Y(this,G)};case j:return function(){return new Y(this,G)}}return function(){return new Y(this)}},he=D+" Iterator",ve=!1,Ee=P.prototype,je=Ee[J]||Ee["@@iterator"]||ue&&Ee[ue],ze=!q&&je||ce(ue),Re=D=="Array"&&Ee.entries||je,xe,Be,_e;if(Re&&(xe=M(Re.call(new P)),xe!==Object.prototype&&xe.next&&(!y&&M(xe)!==ae&&(T?T(xe,ae):E(xe[J])||_(xe,J,N)),A(xe,he,!0,!0),y&&(H[he]=N))),X&&ue==z&&je&&je.name!==z&&(!y&&se?I(Ee,"name",z):(ve=!0,ze=function(){return f(je,this)})),ue)if(Be={values:ce(z),keys:Oe?ze:ce(ie),entries:ce(j)},me)for(_e in Be)(q||ve||!(_e in Ee))&&_(Ee,_e,Be[_e]);else s({target:D,proto:!0,forced:q||ve},Be);return(!y||me)&&Ee[J]!==ze&&_(Ee,J,ze,{name:ue}),H[D]=ze,Be}},function(u,c){c.f=Object.getOwnPropertySymbols},function(u,c,i){var s=i(7),f=i(67),y=i(43),b=i(61),E=s.Array,S=Math.max;u.exports=function(M,T,A){for(var I=y(M),_=f(T,I),L=f(A===void 0?I:A,I),H=E(S(L-_,0)),U=0;_<L;_++,U++)b(H,U,M[_]);return H.length=U,H}},function(u,c,i){var s=i(7),f=i(62),y=i(35),b=i(32),E=i(89),S=i(140),M=i(43),T=i(58),A=i(141),I=i(115),_=i(142),L=s.TypeError,H=function(X,se){this.stopped=X,this.result=se},U=H.prototype;u.exports=function(X,se,ae){var q=ae&&ae.that,J=!!(ae&&ae.AS_ENTRIES),ie=!!(ae&&ae.IS_ITERATOR),z=!!(ae&&ae.INTERRUPTED),j=f(se,q),N,P,D,Y,V,ue,Oe,me=function(he){return N&&_(N,"normal",he),new H(!0,he)},ce=function(he){return J?(b(he),z?j(he[0],he[1],me):j(he[0],he[1])):z?j(he,me):j(he)};if(ie)N=X;else{if(P=I(X),!P)throw L(E(X)+" is not iterable");if(S(P)){for(D=0,Y=M(X);Y>D;D++)if(V=ce(X[D]),V&&T(U,V))return V;return new H(!1)}N=A(X,P)}for(ue=N.next;!(Oe=y(ue,N)).done;){try{V=ce(Oe.value)}catch(he){_(N,"throw",he)}if(typeof V=="object"&&V&&T(U,V))return V}return new H(!1)}},function(u,c,i){var s=i(98),f=i(59),y=i(70),b=i(27),E=b("iterator");u.exports=function(S){if(S!=null)return f(S,E)||f(S,"@@iterator")||y[s(S)]}},function(u,c,i){var s=i(27),f=s("toStringTag"),y={};y[f]="z",u.exports=String(y)==="[object z]"},function(u,c,i){var s=i(7),f=i(58),y=s.TypeError;u.exports=function(b,E){if(f(E,b))return b;throw y("Incorrect invocation")}},function(u,c,i){var s=i(27),f=s("iterator"),y=!1;try{var b=0,E={next:function(){return{done:!!b++}},return:function(){y=!0}};E[f]=function(){return this},Array.from(E,function(){throw 2})}catch{}u.exports=function(S,M){if(!M&&!y)return!1;var T=!1;try{var A={};A[f]=function(){return{next:function(){return{done:T=!0}}}},S(A)}catch{}return T}},function(u,c,i){var s=i(180);u.exports=function(f,y){return new(s(f))(y===0?0:y)}},function(u,c,i){var s=i(18);u.exports=function(f,y){var b=[][f];return!!b&&s(function(){b.call(null,y||function(){throw 1},1)})}},function(u,c){u.exports=function(i){if(!i.webpackPolyfill){var s=Object.create(i);s.children||(s.children=[]),Object.defineProperty(s,"loaded",{enumerable:!0,get:function(){return s.l}}),Object.defineProperty(s,"id",{enumerable:!0,get:function(){return s.i}}),Object.defineProperty(s,"exports",{enumerable:!0}),s.webpackPolyfill=1}return s}},function(u,c,i){i(19);var s=i(15),f=i(44),y=i(102),b=i(18),E=i(27),S=i(57),M=E("species"),T=RegExp.prototype;u.exports=function(A,I,_,L){var H=E(A),U=!b(function(){var q={};return q[H]=function(){return 7},""[A](q)!=7}),X=U&&!b(function(){var q=!1,J=/a/;return A==="split"&&(J={},J.constructor={},J.constructor[M]=function(){return J},J.flags="",J[H]=/./[H]),J.exec=function(){return q=!0,null},J[H](""),!q});if(!U||!X||_){var se=s(/./[H]),ae=I(H,""[A],function(q,J,ie,z,j){var N=s(q),P=J.exec;return P===y||P===T.exec?U&&!j?{done:!0,value:se(J,ie,z)}:{done:!0,value:N(ie,J,z)}:{done:!1}});f(String.prototype,A,ae[0]),f(T,H,ae[1])}L&&S(T[H],"sham",!0)}},function(u,c,i){var s=i(146).charAt;u.exports=function(f,y,b){return y+(b?s(f,y).length:1)}},function(u,c,i){var s=i(7),f=i(35),y=i(32),b=i(28),E=i(50),S=i(102),M=s.TypeError;u.exports=function(T,A){var I=T.exec;if(b(I)){var _=f(I,T,A);return _!==null&&y(_),_}if(E(T)==="RegExp")return f(S,T,A);throw M("RegExp#exec called on incompatible receiver")}},function(u,c,i){var s=i(76),f=i(35),y=i(15),b=i(122),E=i(18),S=i(32),M=i(28),T=i(68),A=i(90),I=i(40),_=i(45),L=i(123),H=i(59),U=i(197),X=i(124),se=i(27),ae=se("replace"),q=Math.max,J=Math.min,ie=y([].concat),z=y([].push),j=y("".indexOf),N=y("".slice),P=function(ue){return ue===void 0?ue:String(ue)},D=function(){return"a".replace(/./,"$0")==="$0"}(),Y=function(){return/./[ae]?/./[ae]("a","$0")==="":!1}(),V=!E(function(){var ue=/./;return ue.exec=function(){var Oe=[];return Oe.groups={a:"7"},Oe},"".replace(ue,"$<a>")!=="7"});b("replace",function(ue,Oe,me){var ce=Y?"$":"$0";return[function(ve,Ee){var je=_(this),ze=ve==null?void 0:H(ve,ae);return ze?f(ze,ve,je,Ee):f(Oe,I(je),ve,Ee)},function(he,ve){var Ee=S(this),je=I(he);if(typeof ve=="string"&&j(ve,ce)===-1&&j(ve,"$<")===-1){var ze=me(Oe,Ee,je,ve);if(ze.done)return ze.value}var Re=M(ve);Re||(ve=I(ve));var xe=Ee.global;if(xe){var Be=Ee.unicode;Ee.lastIndex=0}for(var _e=[];;){var G=X(Ee,je);if(G===null||(z(_e,G),!xe))break;var W=I(G[0]);W===""&&(Ee.lastIndex=L(je,A(Ee.lastIndex),Be))}for(var ee="",ge=0,Me=0;Me<_e.length;Me++){G=_e[Me];for(var ye=I(G[0]),He=q(J(T(G.index),je.length),0),et=[],We=1;We<G.length;We++)z(et,P(G[We]));var rt=G.groups;if(Re){var be=ie([ye],et,He,je);rt!==void 0&&z(be,rt);var ut=I(s(ve,void 0,be))}else ut=U(ye,je,He,et,rt,ve);He>=ge&&(ee+=N(je,ge,He)+ut,ge=He+ye.length)}return ee+N(je,ge)}]},!V||!D||Y)},function(u,c,i){var s=i(50),f=i(7);u.exports=s(f.process)=="process"},function(u,c,i){var s=i(16);s({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(u,c,i){var s=i(109);u.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(u,c,i){var s=i(36),f=i(18),y=i(86);u.exports=!s&&!f(function(){return Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a!=7})},function(u,c,i){var s=i(7),f=i(35),y=i(33),b=i(88),E=i(59),S=i(169),M=i(27),T=s.TypeError,A=M("toPrimitive");u.exports=function(I,_){if(!y(I)||b(I))return I;var L=E(I,A),H;if(L){if(_===void 0&&(_="default"),H=f(L,I,_),!y(H)||b(H))return H;throw T("Can't convert object to primitive value")}return _===void 0&&(_="number"),S(I,_)}},function(u,c,i){var s=i(15),f=i(34),y=i(39),b=i(132).indexOf,E=i(69),S=s([].push);u.exports=function(M,T){var A=y(M),I=0,_=[],L;for(L in A)!f(E,L)&&f(A,L)&&S(_,L);for(;T.length>I;)f(A,L=T[I++])&&(~b(_,L)||S(_,L));return _}},function(u,c,i){var s=i(39),f=i(67),y=i(43),b=function(E){return function(S,M,T){var A=s(S),I=y(A),_=f(T,I),L;if(E&&M!=M){for(;I>_;)if(L=A[_++],L!=L)return!0}else for(;I>_;_++)if((E||_ in A)&&A[_]===M)return E||_||0;return!E&&-1}};u.exports={includes:b(!0),indexOf:b(!1)}},function(u,c,i){var s=i(46);u.exports=s("document","documentElement")},function(u,c,i){var s=i(34),f=i(135),y=i(51),b=i(37);u.exports=function(E,S){for(var M=f(S),T=b.f,A=y.f,I=0;I<M.length;I++){var _=M[I];s(E,_)||T(E,_,A(S,_))}}},function(u,c,i){var s=i(46),f=i(15),y=i(72),b=i(112),E=i(32),S=f([].concat);u.exports=s("Reflect","ownKeys")||function(T){var A=y.f(E(T)),I=b.f;return I?S(A,I(T)):A}},function(u,c,i){var s=i(18),f=i(28),y=i(54),b=i(96),E=i(44),S=i(27),M=i(64),T=S("iterator"),A=!1,I,_,L;[].keys&&(L=[].keys(),"next"in L?(_=b(b(L)),_!==Object.prototype&&(I=_)):A=!0);var H=I==null||s(function(){var U={};return I[T].call(U)!==U});H?I={}:M&&(I=y(I)),f(I[T])||E(I,T,function(){return this}),u.exports={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:A}},function(u,c,i){var s=i(18);u.exports=!s(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},function(u,c,i){var s=i(16),f=i(15),y=i(69),b=i(33),E=i(34),S=i(37).f,M=i(72),T=i(139),A=i(174),I=i(85),_=i(176),L=!1,H=I("meta"),U=0,X=function(z){S(z,H,{value:{objectID:"O"+U++,weakData:{}}})},se=function(z,j){if(!b(z))return typeof z=="symbol"?z:(typeof z=="string"?"S":"P")+z;if(!E(z,H)){if(!A(z))return"F";if(!j)return"E";X(z)}return z[H].objectID},ae=function(z,j){if(!E(z,H)){if(!A(z))return!0;if(!j)return!1;X(z)}return z[H].weakData},q=function(z){return _&&L&&A(z)&&!E(z,H)&&X(z),z},J=function(){ie.enable=function(){},L=!0;var z=M.f,j=f([].splice),N={};N[H]=1,z(N).length&&(M.f=function(P){for(var D=z(P),Y=0,V=D.length;Y<V;Y++)if(D[Y]===H){j(D,Y,1);break}return D},s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T.f}))},ie=u.exports={enable:J,fastKey:se,getWeakData:ae,onFreeze:q};y[H]=!0},function(u,c,i){var s=i(50),f=i(39),y=i(72).f,b=i(113),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(M){try{return y(M)}catch{return b(E)}};u.exports.f=function(T){return E&&s(T)=="Window"?S(T):y(f(T))}},function(u,c,i){var s=i(27),f=i(70),y=s("iterator"),b=Array.prototype;u.exports=function(E){return E!==void 0&&(f.Array===E||b[y]===E)}},function(u,c,i){var s=i(7),f=i(35),y=i(55),b=i(32),E=i(89),S=i(115),M=s.TypeError;u.exports=function(T,A){var I=arguments.length<2?S(T):A;if(y(I))return b(f(I,T));throw M(E(T)+" is not iterable")}},function(u,c,i){var s=i(35),f=i(32),y=i(59);u.exports=function(b,E,S){var M,T;f(b);try{if(M=y(b,"return"),!M){if(E==="throw")throw S;return S}M=s(M,b)}catch(A){T=!0,M=A}if(E==="throw")throw S;if(T)throw M;return f(M),S}},function(u,c,i){var s=i(28),f=i(33),y=i(97);u.exports=function(b,E,S){var M,T;return y&&s(M=E.constructor)&&M!==S&&f(T=M.prototype)&&T!==S.prototype&&y(b,T),b}},function(u,c,i){var s=i(44);u.exports=function(f,y,b){for(var E in y)s(f,E,y[E],b);return f}},function(u,c,i){var s=i(46),f=i(37),y=i(27),b=i(36),E=y("species");u.exports=function(S){var M=s(S),T=f.f;b&&M&&!M[E]&&T(M,E,{configurable:!0,get:function(){return this}})}},function(u,c,i){var s=i(15),f=i(68),y=i(40),b=i(45),E=s("".charAt),S=s("".charCodeAt),M=s("".slice),T=function(A){return function(I,_){var L=y(b(I)),H=f(_),U=L.length,X,se;return H<0||H>=U?A?"":void 0:(X=S(L,H),X<55296||X>56319||H+1===U||(se=S(L,H+1))<56320||se>57343?A?E(L,H):X:A?M(L,H,H+2):(X-55296<<10)+(se-56320)+65536)}};u.exports={codeAt:T(!1),charAt:T(!0)}},function(u,c){u.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(u,c,i){var s=i(86),f=s("span").classList,y=f&&f.constructor&&f.constructor.prototype;u.exports=y===Object.prototype?void 0:y},function(u,c,i){var s=i(27);c.f=s},function(u,c,i){var s=i(181),f=i(34),y=i(149),b=i(37).f;u.exports=function(E){var S=s.Symbol||(s.Symbol={});f(S,E)||b(S,E,{value:y.f(E)})}},function(u,c,i){var s=i(18),f=i(7),y=f.RegExp,b=s(function(){var M=y("a","y");return M.lastIndex=2,M.exec("abcd")!=null}),E=b||s(function(){return!y("a","y").sticky}),S=b||s(function(){var M=y("^r","gy");return M.lastIndex=2,M.exec("str")!=null});u.exports={BROKEN_CARET:S,MISSED_STICKY:E,UNSUPPORTED_Y:b}},function(u,c,i){var s=i(16),f=i(132).includes,y=i(83);s({target:"Array",proto:!0},{includes:function(E){return f(this,E,arguments.length>1?arguments[1]:void 0)}}),y("includes")},function(u,c,i){var s=i(16),f=i(15),y=i(193),b=i(45),E=i(40),S=i(194),M=f("".indexOf);s({target:"String",proto:!0,forced:!S("includes")},{includes:function(A){return!!~M(E(b(this)),E(y(A)),arguments.length>1?arguments[1]:void 0)}})},function(u,c,i){var s=i(33),f=i(50),y=i(27),b=y("match");u.exports=function(E){var S;return s(E)&&((S=E[b])!==void 0?!!S:f(E)=="RegExp")}},function(u,c){var i=u.exports={},s,f;function y(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=y}catch{s=y}try{typeof clearTimeout=="function"?f=clearTimeout:f=b}catch{f=b}})();function E(X){if(s===setTimeout)return setTimeout(X,0);if((s===y||!s)&&setTimeout)return s=setTimeout,setTimeout(X,0);try{return s(X,0)}catch{try{return s.call(null,X,0)}catch{return s.call(this,X,0)}}}function S(X){if(f===clearTimeout)return clearTimeout(X);if((f===b||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(X);try{return f(X)}catch{try{return f.call(null,X)}catch{return f.call(this,X)}}}var M=[],T=!1,A,I=-1;function _(){!T||!A||(T=!1,A.length?M=A.concat(M):I=-1,M.length&&L())}function L(){if(!T){var X=E(_);T=!0;for(var se=M.length;se;){for(A=M,M=[];++I<se;)A&&A[I].run();I=-1,se=M.length}A=null,T=!1,S(X)}}i.nextTick=function(X){var se=new Array(arguments.length-1);if(arguments.length>1)for(var ae=1;ae<arguments.length;ae++)se[ae-1]=arguments[ae];M.push(new H(X,se)),M.length===1&&!T&&E(L)};function H(X,se){this.fun=X,this.array=se}H.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function U(){}i.on=U,i.addListener=U,i.once=U,i.off=U,i.removeListener=U,i.removeAllListeners=U,i.emit=U,i.prependListener=U,i.prependOnceListener=U,i.listeners=function(X){return[]},i.binding=function(X){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(X){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(u,c,i){var s=i(32),f=i(157),y=i(27),b=y("species");u.exports=function(E,S){var M=s(E).constructor,T;return M===void 0||(T=s(M)[b])==null?S:f(T)}},function(u,c,i){var s=i(7),f=i(100),y=i(89),b=s.TypeError;u.exports=function(E){if(f(E))return E;throw b(y(E)+" is not a constructor")}},function(u,c,i){var s=i(16),f=i(159).trim,y=i(195);s({target:"String",proto:!0,forced:y("trim")},{trim:function(){return f(this)}})},function(u,c,i){var s=i(15),f=i(45),y=i(40),b=i(160),E=s("".replace),S="["+b+"]",M=RegExp("^"+S+S+"*"),T=RegExp(S+S+"*$"),A=function(I){return function(_){var L=y(f(_));return I&1&&(L=E(L,M,"")),I&2&&(L=E(L,T,"")),L}};u.exports={start:A(1),end:A(2),trim:A(3)}},function(u,c){u.exports=`
  25. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(u,c,i){var s=i(35),f=i(122),y=i(32),b=i(90),E=i(40),S=i(45),M=i(59),T=i(123),A=i(124);f("match",function(I,_,L){return[function(U){var X=S(this),se=U==null?void 0:M(U,I);return se?s(se,U,X):new RegExp(U)[I](E(X))},function(H){var U=y(this),X=E(H),se=L(_,U,X);if(se.done)return se.value;if(!U.global)return A(U,X);var ae=U.unicode;U.lastIndex=0;for(var q=[],J=0,ie;(ie=A(U,X))!==null;){var z=E(ie[0]);q[J]=z,z===""&&(U.lastIndex=T(X,b(U.lastIndex),ae)),J++}return J===0?null:q}]})},function(u,c,i){var s=i(7),f=i(76),y=i(62),b=i(28),E=i(34),S=i(18),M=i(133),T=i(101),A=i(86),I=i(163),_=i(126),L=s.setImmediate,H=s.clearImmediate,U=s.process,X=s.Dispatch,se=s.Function,ae=s.MessageChannel,q=s.String,J=0,ie={},z="onreadystatechange",j,N,P,D;try{j=s.location}catch{}var Y=function(me){if(E(ie,me)){var ce=ie[me];delete ie[me],ce()}},V=function(me){return function(){Y(me)}},ue=function(me){Y(me.data)},Oe=function(me){s.postMessage(q(me),j.protocol+"//"+j.host)};(!L||!H)&&(L=function(ce){var he=T(arguments,1);return ie[++J]=function(){f(b(ce)?ce:se(ce),void 0,he)},N(J),J},H=function(ce){delete ie[ce]},_?N=function(me){U.nextTick(V(me))}:X&&X.now?N=function(me){X.now(V(me))}:ae&&!I?(P=new ae,D=P.port2,P.port1.onmessage=ue,N=y(D.postMessage,D)):s.addEventListener&&b(s.postMessage)&&!s.importScripts&&j&&j.protocol!=="file:"&&!S(Oe)?(N=Oe,s.addEventListener("message",ue,!1)):z in A("script")?N=function(me){M.appendChild(A("script"))[z]=function(){M.removeChild(this),Y(me)}}:N=function(me){setTimeout(V(me),0)}),u.exports={set:L,clear:H}},function(u,c,i){var s=i(53);u.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},function(u,c,i){var s=i(55),f=function(y){var b,E;this.promise=new y(function(S,M){if(b!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");b=S,E=M}),this.resolve=s(b),this.reject=s(E)};u.exports.f=function(y){return new f(y)}},function(u,c,i){function s(){return!1}c.a=s},function(u,c,i){(function(s){i.d(c,"a",function(){return J});var f=i(0);function y(z){throw new Error("[mobx-utils] "+z)}function b(z,j){j===void 0&&(j="Illegal state"),z||y(j)}var E=function(z){return z&&z!==Object.prototype&&Object.getOwnPropertyNames(z).concat(E(Object.getPrototypeOf(z))||[])},S=function(z){var j=E(z),N=j.filter(function(P,D){return j.indexOf(P)===D});return N},M=function(z){return S(z).filter(function(j){return j!=="constructor"&&!~j.indexOf("__")})},T="pending",A="fulfilled",I="rejected";function _(z){switch(this.state){case T:return z.pending&&z.pending(this.value);case I:return z.rejected&&z.rejected(this.value);case A:return z.fulfilled?z.fulfilled(this.value):this.value}}function L(z,j){if(b(arguments.length<=2,"fromPromise expects up to two arguments"),b(typeof z=="function"||typeof z=="object"&&z&&typeof z.then=="function","Please pass a promise or function to fromPromise"),z.isPromiseBasedObservable===!0)return z;typeof z=="function"&&(z=new Promise(z));var N=z;z.then(Object(f.k)("observableFromPromise-resolve",function(D){N.value=D,N.state=A}),Object(f.k)("observableFromPromise-reject",function(D){N.value=D,N.state=I})),N.isPromiseBasedObservable=!0,N.case=_;var P=j&&j.state===A?j.value:void 0;return Object(f.q)(N,{value:P,state:T},{},{deep:!1}),N}(function(z){z.reject=Object(f.k)("fromPromise.reject",function(N){var P=z(Promise.reject(N));return P.state=I,P.value=N,P});function j(N){N===void 0&&(N=void 0);var P=z(Promise.resolve(N));return P.state=A,P.value=N,P}z.resolve=Object(f.k)("fromPromise.resolve",j)})(L||(L={}));var H=function(z,j,N,P){var D=arguments.length,Y=D<3?j:P===null?P=Object.getOwnPropertyDescriptor(j,N):P,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate(z,j,N,P);else for(var ue=z.length-1;ue>=0;ue--)(V=z[ue])&&(Y=(D<3?V(Y):D>3?V(j,N,Y):V(j,N))||Y);return D>3&&Y&&Object.defineProperty(j,N,Y),Y};(function(){function z(j,N){var P=this;Object(f.G)(function(){P.current=N,P.subscription=j.subscribe(P)})}return z.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},z.prototype.next=function(j){this.current=j},z.prototype.complete=function(){this.dispose()},z.prototype.error=function(j){this.current=j,this.dispose()},H([f.C.ref],z.prototype,"current",void 0),H([f.k.bound],z.prototype,"next",null),H([f.k.bound],z.prototype,"complete",null),H([f.k.bound],z.prototype,"error",null),z})();var U=function(){return U=Object.assign||function(z){for(var j,N=1,P=arguments.length;N<P;N++){j=arguments[N];for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&(z[D]=j[D])}return z},U.apply(this,arguments)},X=function(z,j,N,P){var D=arguments.length,Y=D<3?j:P===null?P=Object.getOwnPropertyDescriptor(j,N):P,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate(z,j,N,P);else for(var ue=z.length-1;ue>=0;ue--)(V=z[ue])&&(Y=(D<3?V(Y):D>3?V(j,N,Y):V(j,N))||Y);return D>3&&Y&&Object.defineProperty(j,N,Y),Y},se=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function z(j){var N=this;this.model=j,this.localValues=f.C.map({}),this.localComputedValues=f.C.map({}),this.isPropertyDirty=function(P){return N.localValues.has(P)},b(Object(f.A)(j),"createViewModel expects an observable object"),M(j).forEach(function(P){if(!(P===f.a||P==="__mobxDidRunLazyInitializers")){if(b(se.indexOf(P)===-1,"The propertyname "+P+" is reserved and cannot be used with viewModels"),Object(f.w)(j,P)){var D=Object(f.h)(j,P).derivation;N.localComputedValues.set(P,Object(f.m)(D.bind(N)))}var Y=Object.getOwnPropertyDescriptor(j,P),V=Y?{enumerable:Y.enumerable}:{};Object.defineProperty(N,P,U(U({},V),{configurable:!0,get:function(){return Object(f.w)(j,P)?N.localComputedValues.get(P).get():N.isPropertyDirty(P)?N.localValues.get(P):N.model[P]},set:Object(f.k)(function(ue){ue!==N.model[P]?N.localValues.set(P,ue):N.localValues.delete(P)})}))}})}return Object.defineProperty(z.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),z.prototype.submit=function(){var j=this;Object(f.B)(this.localValues).forEach(function(N){var P=j.localValues.get(N),D=j.model[N];Object(f.y)(D)?D.replace(P):Object(f.z)(D)?(D.clear(),D.merge(P)):Object(f.v)(P)||(j.model[N]=P)}),this.localValues.clear()},z.prototype.reset=function(){this.localValues.clear()},z.prototype.resetProperty=function(j){this.localValues.delete(j)},X([f.m],z.prototype,"isDirty",null),X([f.m],z.prototype,"changedValues",null),X([f.k.bound],z.prototype,"submit",null),X([f.k.bound],z.prototype,"reset",null),X([f.k.bound],z.prototype,"resetProperty",null),z})();function ae(z){if(!z)return"ROOT";for(var j=[];z.parent;)j.push(z.path),z=z.parent;return j.reverse().join("/")}function q(z){return Object(f.A)(z)||Object(f.y)(z)||Object(f.z)(z)}function J(z,j){var N=new WeakMap;function P(ue){var Oe=N.get(ue.object);D(ue,Oe),j(ue,ae(Oe),z)}function D(ue,Oe){switch(ue.type){case"add":Y(ue.newValue,Oe,ue.name);break;case"update":V(ue.oldValue),Y(ue.newValue,Oe,ue.name||""+ue.index);break;case"remove":case"delete":V(ue.oldValue);break;case"splice":ue.removed.map(V),ue.added.forEach(function(he,ve){return Y(he,Oe,""+(ue.index+ve))});for(var me=ue.index+ue.addedCount;me<ue.object.length;me++)if(q(ue.object[me])){var ce=N.get(ue.object[me]);ce&&(ce.path=""+me)}break}}function Y(ue,Oe,me){if(q(ue)){var ce=N.get(ue);if(ce){if(ce.parent!==Oe||ce.path!==me)throw new Error("The same observable object cannot appear twice in the same tree,"+(" trying to assign it to '"+ae(Oe)+"/"+me+"',")+(" but it already exists at '"+ae(ce.parent)+"/"+ce.path+"'"))}else{var he={parent:Oe,path:me,dispose:Object(f.D)(ue,P)};N.set(ue,he),Object(f.p)(ue).forEach(function(ve){var Ee=ve[0],je=ve[1];return Y(je,he,Ee)})}}}function V(ue){if(q(ue)){var Oe=N.get(ue);if(!Oe)return;N.delete(ue),Oe.dispose(),Object(f.L)(ue).forEach(V)}}return Y(z,void 0,""),function(){V(z)}}var ie=function(){var z=function(j,N){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,D){P.__proto__=D}||function(P,D){for(var Y in D)D.hasOwnProperty(Y)&&(P[Y]=D[Y])},z(j,N)};return function(j,N){z(j,N);function P(){this.constructor=j}j.prototype=N===null?Object.create(N):(P.prototype=N.prototype,new P)}}();(function(z){ie(j,z);function j(N,P,D){var Y=D===void 0?{}:D,V=Y.name,ue=V===void 0?"ogm"+(Math.random()*1e3|0):V,Oe=Y.keyToName,me=Oe===void 0?function(ve){return""+ve}:Oe,ce=z.call(this)||this;ce._keyToName=me,ce._groupBy=P,ce._ogmInfoKey=Symbol("ogmInfo"+ue),ce._base=N;for(var he=0;he<N.length;he++)ce._addItem(N[he]);return ce._disposeBaseObserver=Object(f.D)(ce._base,function(ve){if(ve.type==="splice")Object(f.J)(function(){for(var Ee=0,je=ve.removed;Ee<je.length;Ee++){var ze=je[Ee];ce._removeItem(ze)}for(var Re=0,xe=ve.added;Re<xe.length;Re++){var Be=xe[Re];ce._addItem(Be)}});else if(ve.type==="update")Object(f.J)(function(){ce._removeItem(ve.oldValue),ce._addItem(ve.newValue)});else throw new Error("illegal state")}),ce}return j.prototype.clear=function(){throw new Error("not supported")},j.prototype.delete=function(N){throw new Error("not supported")},j.prototype.set=function(N,P){throw new Error("not supported")},j.prototype.dispose=function(){this._disposeBaseObserver();for(var N=0;N<this._base.length;N++){var P=this._base[N],D=P[this._ogmInfoKey];D.reaction(),delete P[this._ogmInfoKey]}},j.prototype._getGroupArr=function(N){var P=z.prototype.get.call(this,N);return P===void 0&&(P=Object(f.C)([],{name:"GroupArray["+this._keyToName(N)+"]",deep:!1}),z.prototype.set.call(this,N,P)),P},j.prototype._removeFromGroupArr=function(N,P){var D=z.prototype.get.call(this,N);D.length===1?z.prototype.delete.call(this,N):(P===D.length-1||(D[P]=D[D.length-1],D[P][this._ogmInfoKey].groupArrIndex=P),D.length--)},j.prototype._addItem=function(N){var P=this,D=this._groupBy(N),Y=this._getGroupArr(D),V={groupByValue:D,groupArrIndex:Y.length,reaction:Object(f.F)(function(){return P._groupBy(N)},function(ue,Oe){var me=N[P._ogmInfoKey];P._removeFromGroupArr(me.groupByValue,me.groupArrIndex);var ce=P._getGroupArr(ue),he=ce.length;ce.push(N),me.groupByValue=ue,me.groupArrIndex=he})};Object.defineProperty(N,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:V}),Y.push(N)},j.prototype._removeItem=function(N){var P=N[this._ogmInfoKey];this._removeFromGroupArr(P.groupByValue,P.groupArrIndex),P.reaction(),delete N[this._ogmInfoKey]},j})(f.b),Promise.resolve(),typeof queueMicrotask!="undefined"||typeof s!="undefined"&&s.nextTick}).call(this,i(155))},function(u,c,i){var s;(function(f,y,b){if(!f)return;for(var E={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},S={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},M={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},T={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},A,I=1;I<20;++I)E[111+I]="f"+I;for(I=0;I<=9;++I)E[I+96]=I.toString();function _(P,D,Y){if(P.addEventListener){P.addEventListener(D,Y,!1);return}P.attachEvent("on"+D,Y)}function L(P){if(P.type=="keypress"){var D=String.fromCharCode(P.which);return P.shiftKey||(D=D.toLowerCase()),D}return E[P.which]?E[P.which]:S[P.which]?S[P.which]:String.fromCharCode(P.which).toLowerCase()}function H(P,D){return P.sort().join(",")===D.sort().join(",")}function U(P){var D=[];return P.shiftKey&&D.push("shift"),P.altKey&&D.push("alt"),P.ctrlKey&&D.push("ctrl"),P.metaKey&&D.push("meta"),D}function X(P){if(P.preventDefault){P.preventDefault();return}P.returnValue=!1}function se(P){if(P.stopPropagation){P.stopPropagation();return}P.cancelBubble=!0}function ae(P){return P=="shift"||P=="ctrl"||P=="alt"||P=="meta"}function q(){if(!A){A={};for(var P in E)P>95&&P<112||E.hasOwnProperty(P)&&(A[E[P]]=P)}return A}function J(P,D,Y){return Y||(Y=q()[P]?"keydown":"keypress"),Y=="keypress"&&D.length&&(Y="keydown"),Y}function ie(P){return P==="+"?["+"]:(P=P.replace(/\+{2}/g,"+plus"),P.split("+"))}function z(P,D){var Y,V,ue,Oe=[];for(Y=ie(P),ue=0;ue<Y.length;++ue)V=Y[ue],T[V]&&(V=T[V]),D&&D!="keypress"&&M[V]&&(V=M[V],Oe.push("shift")),ae(V)&&Oe.push(V);return D=J(V,Oe,D),{key:V,modifiers:Oe,action:D}}function j(P,D){return P===null||P===y?!1:P===D?!0:j(P.parentNode,D)}function N(P){var D=this;if(P=P||y,!(D instanceof N))return new N(P);D.target=P,D._callbacks={},D._directMap={};var Y={},V,ue=!1,Oe=!1,me=!1;function ce(xe){xe=xe||{};var Be=!1,_e;for(_e in Y){if(xe[_e]){Be=!0;continue}Y[_e]=0}Be||(me=!1)}function he(xe,Be,_e,G,W,ee){var ge,Me,ye=[],He=_e.type;if(!D._callbacks[xe])return[];for(He=="keyup"&&ae(xe)&&(Be=[xe]),ge=0;ge<D._callbacks[xe].length;++ge)if(Me=D._callbacks[xe][ge],!(!G&&Me.seq&&Y[Me.seq]!=Me.level)&&He==Me.action&&(He=="keypress"&&!_e.metaKey&&!_e.ctrlKey||H(Be,Me.modifiers))){var et=!G&&Me.combo==W,We=G&&Me.seq==G&&Me.level==ee;(et||We)&&D._callbacks[xe].splice(ge,1),ye.push(Me)}return ye}function ve(xe,Be,_e,G){D.stopCallback(Be,Be.target||Be.srcElement,_e,G)||xe(Be,_e)===!1&&(X(Be),se(Be))}D._handleKey=function(xe,Be,_e){var G=he(xe,Be,_e),W,ee={},ge=0,Me=!1;for(W=0;W<G.length;++W)G[W].seq&&(ge=Math.max(ge,G[W].level));for(W=0;W<G.length;++W){if(G[W].seq){if(G[W].level!=ge)continue;Me=!0,ee[G[W].seq]=1,ve(G[W].callback,_e,G[W].combo,G[W].seq);continue}Me||ve(G[W].callback,_e,G[W].combo)}var ye=_e.type=="keypress"&&Oe;_e.type==me&&!ae(xe)&&!ye&&ce(ee),Oe=Me&&_e.type=="keydown"};function Ee(xe){typeof xe.which!="number"&&(xe.which=xe.keyCode);var Be=L(xe);if(!!Be){if(xe.type=="keyup"&&ue===Be){ue=!1;return}D.handleKey(Be,U(xe),xe)}}function je(){clearTimeout(V),V=setTimeout(ce,1e3)}function ze(xe,Be,_e,G){Y[xe]=0;function W(He){return function(){me=He,++Y[xe],je()}}function ee(He){ve(_e,He,xe),G!=="keyup"&&(ue=L(He)),setTimeout(ce,10)}for(var ge=0;ge<Be.length;++ge){var Me=ge+1===Be.length,ye=Me?ee:W(G||z(Be[ge+1]).action);Re(Be[ge],ye,G,xe,ge)}}function Re(xe,Be,_e,G,W){D._directMap[xe+":"+_e]=Be,xe=xe.replace(/\s+/g," ");var ee=xe.split(" "),ge;if(ee.length>1){ze(xe,ee,Be,_e);return}ge=z(xe,_e),D._callbacks[ge.key]=D._callbacks[ge.key]||[],he(ge.key,ge.modifiers,{type:ge.action},G,xe,W),D._callbacks[ge.key][G?"unshift":"push"]({callback:Be,modifiers:ge.modifiers,action:ge.action,seq:G,level:W,combo:xe})}D._bindMultiple=function(xe,Be,_e){for(var G=0;G<xe.length;++G)Re(xe[G],Be,_e)},_(P,"keypress",Ee),_(P,"keydown",Ee),_(P,"keyup",Ee)}N.prototype.bind=function(P,D,Y){var V=this;return P=P instanceof Array?P:[P],V._bindMultiple.call(V,P,D,Y),V},N.prototype.unbind=function(P,D){var Y=this;return Y.bind.call(Y,P,function(){},D)},N.prototype.trigger=function(P,D){var Y=this;return Y._directMap[P+":"+D]&&Y._directMap[P+":"+D]({},P),Y},N.prototype.reset=function(){var P=this;return P._callbacks={},P._directMap={},P},N.prototype.stopCallback=function(P,D){var Y=this;if((" "+D.className+" ").indexOf(" mousetrap ")>-1||j(D,Y.target))return!1;if("composedPath"in P&&typeof P.composedPath=="function"){var V=P.composedPath()[0];V!==P.target&&(D=V)}return D.tagName=="INPUT"||D.tagName=="SELECT"||D.tagName=="TEXTAREA"||D.isContentEditable},N.prototype.handleKey=function(){var P=this;return P._handleKey.apply(P,arguments)},N.addKeycodes=function(P){for(var D in P)P.hasOwnProperty(D)&&(E[D]=P[D]);A=null},N.init=function(){var P=N(y);for(var D in P)D.charAt(0)!=="_"&&(N[D]=function(Y){return function(){return P[Y].apply(P,arguments)}}(D))},N.init(),f.Mousetrap=N,u.exports&&(u.exports=N),s=function(){return N}.call(c,i,c,u),s!==b&&(u.exports=s)})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(u,c,i){var s=i(36),f=i(37),y=i(32),b=i(39),E=i(66);u.exports=s?Object.defineProperties:function(M,T){y(M);for(var A=b(T),I=E(T),_=I.length,L=0,H;_>L;)f.f(M,H=I[L++],A[H]);return M}},function(u,c,i){var s=i(7),f=i(35),y=i(28),b=i(33),E=s.TypeError;u.exports=function(S,M){var T,A;if(M==="string"&&y(T=S.toString)&&!b(A=f(T,S))||y(T=S.valueOf)&&!b(A=f(T,S))||M!=="string"&&y(T=S.toString)&&!b(A=f(T,S)))return A;throw E("Can't convert object to primitive value")}},function(u,c,i){var s=i(7),f=i(28),y=i(92),b=s.WeakMap;u.exports=f(b)&&/native code/.test(y(b))},function(u,c,i){var s=i(136).IteratorPrototype,f=i(54),y=i(71),b=i(73),E=i(70),S=function(){return this};u.exports=function(M,T,A,I){var _=T+" Iterator";return M.prototype=f(s,{next:y(+!I,A)}),b(M,_,!1,!0),E[_]=S,M}},function(u,c,i){var s=i(7),f=i(28),y=s.String,b=s.TypeError;u.exports=function(E){if(typeof E=="object"||f(E))return E;throw b("Can't set "+y(E)+" as a prototype")}},function(u,c,i){var s=i(16),f=i(7),y=i(15),b=i(95),E=i(44),S=i(138),M=i(114),T=i(117),A=i(28),I=i(33),_=i(18),L=i(118),H=i(73),U=i(143);u.exports=function(X,se,ae){var q=X.indexOf("Map")!==-1,J=X.indexOf("Weak")!==-1,ie=q?"set":"add",z=f[X],j=z&&z.prototype,N=z,P={},D=function(he){var ve=y(j[he]);E(j,he,he=="add"?function(je){return ve(this,je===0?0:je),this}:he=="delete"?function(Ee){return J&&!I(Ee)?!1:ve(this,Ee===0?0:Ee)}:he=="get"?function(je){return J&&!I(je)?void 0:ve(this,je===0?0:je)}:he=="has"?function(je){return J&&!I(je)?!1:ve(this,je===0?0:je)}:function(je,ze){return ve(this,je===0?0:je,ze),this})},Y=b(X,!A(z)||!(J||j.forEach&&!_(function(){new z().entries().next()})));if(Y)N=ae.getConstructor(se,X,q,ie),S.enable();else if(b(X,!0)){var V=new N,ue=V[ie](J?{}:-0,1)!=V,Oe=_(function(){V.has(1)}),me=L(function(he){new z(he)}),ce=!J&&_(function(){for(var he=new z,ve=5;ve--;)he[ie](ve,ve);return!he.has(-0)});me||(N=se(function(he,ve){T(he,j);var Ee=U(new z,he,N);return ve!=null&&M(ve,Ee[ie],{that:Ee,AS_ENTRIES:q}),Ee}),N.prototype=j,j.constructor=N),(Oe||ce)&&(D("delete"),D("has"),q&&D("get")),(ce||ue)&&D(ie),J&&j.clear&&delete j.clear}return P[X]=N,s({global:!0,forced:N!=z},P),H(N,X),J||ae.setStrong(N,X,q),N}},function(u,c,i){var s=i(18),f=i(33),y=i(50),b=i(175),E=Object.isExtensible,S=s(function(){});u.exports=S||b?function(T){return!f(T)||b&&y(T)=="ArrayBuffer"?!1:E?E(T):!0}:E},function(u,c,i){var s=i(18);u.exports=s(function(){if(typeof ArrayBuffer=="function"){var f=new ArrayBuffer(8);Object.isExtensible(f)&&Object.defineProperty(f,"a",{value:8})}})},function(u,c,i){var s=i(18);u.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(u,c,i){var s=i(37).f,f=i(54),y=i(144),b=i(62),E=i(117),S=i(114),M=i(111),T=i(145),A=i(36),I=i(138).fastKey,_=i(56),L=_.set,H=_.getterFor;u.exports={getConstructor:function(U,X,se,ae){var q=U(function(N,P){E(N,J),L(N,{type:X,index:f(null),first:void 0,last:void 0,size:0}),A||(N.size=0),P!=null&&S(P,N[ae],{that:N,AS_ENTRIES:se})}),J=q.prototype,ie=H(X),z=function(N,P,D){var Y=ie(N),V=j(N,P),ue,Oe;return V?V.value=D:(Y.last=V={index:Oe=I(P,!0),key:P,value:D,previous:ue=Y.last,next:void 0,removed:!1},Y.first||(Y.first=V),ue&&(ue.next=V),A?Y.size++:N.size++,Oe!=="F"&&(Y.index[Oe]=V)),N},j=function(N,P){var D=ie(N),Y=I(P),V;if(Y!=="F")return D.index[Y];for(V=D.first;V;V=V.next)if(V.key==P)return V};return y(J,{clear:function(){for(var P=this,D=ie(P),Y=D.index,V=D.first;V;)V.removed=!0,V.previous&&(V.previous=V.previous.next=void 0),delete Y[V.index],V=V.next;D.first=D.last=void 0,A?D.size=0:P.size=0},delete:function(N){var P=this,D=ie(P),Y=j(P,N);if(Y){var V=Y.next,ue=Y.previous;delete D.index[Y.index],Y.removed=!0,ue&&(ue.next=V),V&&(V.previous=ue),D.first==Y&&(D.first=V),D.last==Y&&(D.last=ue),A?D.size--:P.size--}return!!Y},forEach:function(P){for(var D=ie(this),Y=b(P,arguments.length>1?arguments[1]:void 0),V;V=V?V.next:D.first;)for(Y(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(P){return!!j(this,P)}}),y(J,se?{get:function(P){var D=j(this,P);return D&&D.value},set:function(P,D){return z(this,P===0?0:P,D)}}:{add:function(P){return z(this,P=P===0?0:P,P)}}),A&&s(J,"size",{get:function(){return ie(this).size}}),q},setStrong:function(U,X,se){var ae=X+" Iterator",q=H(X),J=H(ae);M(U,X,function(ie,z){L(this,{type:ae,target:ie,state:q(ie),kind:z,last:void 0})},function(){for(var ie=J(this),z=ie.kind,j=ie.last;j&&j.removed;)j=j.previous;return!ie.target||!(ie.last=j=j?j.next:ie.state.first)?(ie.target=void 0,{value:void 0,done:!0}):z=="keys"?{value:j.key,done:!1}:z=="values"?{value:j.value,done:!1}:{value:[j.key,j.value],done:!1}},se?"entries":"values",!se,!0),T(X)}}},function(u,c,i){var s=i(116),f=i(98);u.exports=s?{}.toString:function(){return"[object "+f(this)+"]"}},function(u,c,i){var s=i(74).forEach,f=i(120),y=f("forEach");u.exports=y?[].forEach:function(E){return s(this,E,arguments.length>1?arguments[1]:void 0)}},function(u,c,i){var s=i(7),f=i(99),y=i(100),b=i(33),E=i(27),S=E("species"),M=s.Array;u.exports=function(T){var A;return f(T)&&(A=T.constructor,y(A)&&(A===M||f(A.prototype))?A=void 0:b(A)&&(A=A[S],A===null&&(A=void 0))),A===void 0?M:A}},function(u,c,i){var s=i(7);u.exports=s},function(u,c,i){var s=i(7),f=i(62),y=i(35),b=i(38),E=i(183),S=i(140),M=i(100),T=i(43),A=i(61),I=i(141),_=i(115),L=s.Array;u.exports=function(U){var X=b(U),se=M(this),ae=arguments.length,q=ae>1?arguments[1]:void 0,J=q!==void 0;J&&(q=f(q,ae>2?arguments[2]:void 0));var ie=_(X),z=0,j,N,P,D,Y,V;if(ie&&!(this==L&&S(ie)))for(D=I(X,ie),Y=D.next,N=se?new this:[];!(P=y(Y,D)).done;z++)V=J?E(D,q,[P.value,z],!0):P.value,A(N,z,V);else for(j=T(X),N=se?new this(j):L(j);j>z;z++)V=J?q(X[z],z):X[z],A(N,z,V);return N.length=z,N}},function(u,c,i){var s=i(32),f=i(142);u.exports=function(y,b,E,S){try{return S?b(s(E)[0],E[1]):b(E)}catch(M){f(y,"throw",M)}}},function(u,c,i){var s=i(32);u.exports=function(){var f=s(this),y="";return f.global&&(y+="g"),f.ignoreCase&&(y+="i"),f.multiline&&(y+="m"),f.dotAll&&(y+="s"),f.unicode&&(y+="u"),f.sticky&&(y+="y"),y}},function(u,c,i){var s=i(18),f=i(7),y=f.RegExp;u.exports=s(function(){var b=y(".","s");return!(b.dotAll&&b.exec(`
  26. `)&&b.flags==="s")})},function(u,c,i){var s=i(18),f=i(7),y=f.RegExp;u.exports=s(function(){var b=y("(?<a>b)","g");return b.exec("b").groups.a!=="b"||"b".replace(b,"$<a>c")!=="bc"})},function(u,c,i){var s=i(16),f=i(15),y=i(55),b=i(38),E=i(43),S=i(40),M=i(18),T=i(188),A=i(120),I=i(189),_=i(190),L=i(65),H=i(191),U=[],X=f(U.sort),se=f(U.push),ae=M(function(){U.sort(void 0)}),q=M(function(){U.sort(null)}),J=A("sort"),ie=!M(function(){if(L)return L<70;if(!(I&&I>3)){if(_)return!0;if(H)return H<603;var N="",P,D,Y,V;for(P=65;P<76;P++){switch(D=String.fromCharCode(P),P){case 66:case 69:case 70:case 72:Y=3;break;case 68:case 71:Y=4;break;default:Y=2}for(V=0;V<47;V++)U.push({k:D+V,v:Y})}for(U.sort(function(ue,Oe){return Oe.v-ue.v}),V=0;V<U.length;V++)D=U[V].k.charAt(0),N.charAt(N.length-1)!==D&&(N+=D);return N!=="DGBEFHACIJK"}}),z=ae||!q||!J||!ie,j=function(N){return function(P,D){return D===void 0?-1:P===void 0?1:N!==void 0?+N(P,D)||0:S(P)>S(D)?1:-1}};s({target:"Array",proto:!0,forced:z},{sort:function(P){P!==void 0&&y(P);var D=b(this);if(ie)return P===void 0?X(D):X(D,P);var Y=[],V=E(D),ue,Oe;for(Oe=0;Oe<V;Oe++)Oe in D&&se(Y,D[Oe]);for(T(Y,j(P)),ue=Y.length,Oe=0;Oe<ue;)D[Oe]=Y[Oe++];for(;Oe<V;)delete D[Oe++];return D}})},function(u,c,i){var s=i(113),f=Math.floor,y=function(S,M){var T=S.length,A=f(T/2);return T<8?b(S,M):E(S,y(s(S,0,A),M),y(s(S,A),M),M)},b=function(S,M){for(var T=S.length,A=1,I,_;A<T;){for(_=A,I=S[A];_&&M(S[_-1],I)>0;)S[_]=S[--_];_!==A++&&(S[_]=I)}return S},E=function(S,M,T,A){for(var I=M.length,_=T.length,L=0,H=0;L<I||H<_;)S[L+H]=L<I&&H<_?A(M[L],T[H])<=0?M[L++]:T[H++]:L<I?M[L++]:T[H++];return S};u.exports=y},function(u,c,i){var s=i(53),f=s.match(/firefox\/(\d+)/i);u.exports=!!f&&+f[1]},function(u,c,i){var s=i(53);u.exports=/MSIE|Trident/.test(s)},function(u,c,i){var s=i(53),f=s.match(/AppleWebKit\/(\d+)\./);u.exports=!!f&&+f[1]},function(u,c,i){var s=i(16),f=i(74).find,y=i(83),b="find",E=!0;b in[]&&Array(1)[b](function(){E=!1}),s({target:"Array",proto:!0,forced:E},{find:function(M){return f(this,M,arguments.length>1?arguments[1]:void 0)}}),y(b)},function(u,c,i){var s=i(7),f=i(154),y=s.TypeError;u.exports=function(b){if(f(b))throw y("The method doesn't accept regular expressions");return b}},function(u,c,i){var s=i(27),f=s("match");u.exports=function(y){var b=/./;try{"/./"[y](b)}catch{try{return b[f]=!1,"/./"[y](b)}catch{}}return!1}},function(u,c,i){var s=i(94).PROPER,f=i(18),y=i(160),b="\u200B\x85\u180E";u.exports=function(E){return f(function(){return!!y[E]()||b[E]()!==b||s&&y[E].name!==E})}},function(u,c,i){var s=i(15);u.exports=s(1 .valueOf)},function(u,c,i){var s=i(15),f=i(38),y=Math.floor,b=s("".charAt),E=s("".replace),S=s("".slice),M=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;u.exports=function(A,I,_,L,H,U){var X=_+A.length,se=L.length,ae=T;return H!==void 0&&(H=f(H),ae=M),E(U,ae,function(q,J){var ie;switch(b(J,0)){case"$":return"$";case"&":return A;case"`":return S(I,0,_);case"'":return S(I,X);case"<":ie=H[S(J,1,-1)];break;default:var z=+J;if(z===0)return q;if(z>se){var j=y(z/10);return j===0?q:j<=se?L[j-1]===void 0?b(J,1):L[j-1]+b(J,1):q}ie=L[z-1]}return ie===void 0?"":ie})}},function(u,c,i){var s=i(7),f=i(15),y=i(55),b=i(33),E=i(34),S=i(101),M=s.Function,T=f([].concat),A=f([].join),I={},_=function(L,H,U){if(!E(I,H)){for(var X=[],se=0;se<H;se++)X[se]="a["+se+"]";I[H]=M("C,a","return new C("+A(X,",")+")")}return I[H](L,U)};u.exports=M.bind||function(H){var U=y(this),X=U.prototype,se=S(arguments,1),ae=function(){var J=T(se,S(arguments));return this instanceof ae?_(U,J.length,J):U.apply(H,J)};return b(X)&&(ae.prototype=X),ae}},function(u,c,i){var s=i(34);u.exports=function(f){return f!==void 0&&(s(f,"value")||s(f,"writable"))}},function(u,c,i){var s=i(36),f=i(15),y=i(35),b=i(18),E=i(66),S=i(112),M=i(93),T=i(38),A=i(81),I=Object.assign,_=Object.defineProperty,L=f([].concat);u.exports=!I||b(function(){if(s&&I({b:1},I(_({},"a",{enumerable:!0,get:function(){_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var H={},U={},X=Symbol(),se="abcdefghijklmnopqrst";return H[X]=7,se.split("").forEach(function(ae){U[ae]=ae}),I({},H)[X]!=7||E(I({},U)).join("")!=se})?function(U,X){for(var se=T(U),ae=arguments.length,q=1,J=S.f,ie=M.f;ae>q;)for(var z=A(arguments[q++]),j=J?L(E(z),J(z)):E(z),N=j.length,P=0,D;N>P;)D=j[P++],(!s||y(ie,z,D))&&(se[D]=z[D]);return se}:I},function(u,c,i){var s=i(15),f=i(45),y=i(40),b=/"/g,E=s("".replace);u.exports=function(S,M,T,A){var I=y(f(S)),_="<"+M;return T!==""&&(_+=" "+T+'="'+E(y(A),b,"&quot;")+'"'),_+">"+I+"</"+M+">"}},function(u,c,i){var s=i(18);u.exports=function(f){return s(function(){var y=""[f]('"');return y!==y.toLowerCase()||y.split('"').length>3})}},function(u,c,i){var s=i(16),f=Math.hypot,y=Math.abs,b=Math.sqrt,E=!!f&&f(1/0,NaN)!==1/0;s({target:"Math",stat:!0,forced:E},{hypot:function(M,T){for(var A=0,I=0,_=arguments.length,L=0,H,U;I<_;)H=y(arguments[I++]),L<H?(U=L/H,A=A*U*U+1,L=H):H>0?(U=H/L,A+=U*U):A+=H;return L===1/0?1/0:L*b(A)}})},function(u,c,i){var s=i(16),f=i(64),y=i(7),b=i(46),E=i(35),S=i(205),M=i(44),T=i(144),A=i(97),I=i(73),_=i(145),L=i(55),H=i(28),U=i(33),X=i(117),se=i(92),ae=i(114),q=i(118),J=i(156),ie=i(162).set,z=i(206),j=i(209),N=i(210),P=i(164),D=i(211),Y=i(56),V=i(95),ue=i(27),Oe=i(212),me=i(126),ce=i(65),he=ue("species"),ve="Promise",Ee=Y.getterFor(ve),je=Y.set,ze=Y.getterFor(ve),Re=S&&S.prototype,xe=S,Be=Re,_e=y.TypeError,G=y.document,W=y.process,ee=P.f,ge=ee,Me=!!(G&&G.createEvent&&y.dispatchEvent),ye=H(y.PromiseRejectionEvent),He="unhandledrejection",et="rejectionhandled",We=0,rt=1,be=2,ut=1,tt=2,Fe=!1,Qe,At,ct,bt,ne=V(ve,function(){var Ce=se(xe),Ye=Ce!==String(xe);if(!Ye&&ce===66||f&&!Be.finally)return!0;if(ce>=51&&/native code/.test(Ce))return!1;var nt=new xe(function(k){k(1)}),Ze=function(k){k(function(){},function(){})},lt=nt.constructor={};return lt[he]=Ze,Fe=nt.then(function(){})instanceof Ze,Fe?!Ye&&Oe&&!ye:!0}),Ct=ne||!q(function(Ce){xe.all(Ce).catch(function(){})}),St=function(Ce){var Ye;return U(Ce)&&H(Ye=Ce.then)?Ye:!1},mt=function(Ce,Ye){if(!Ce.notified){Ce.notified=!0;var nt=Ce.reactions;z(function(){for(var Ze=Ce.value,lt=Ce.state==rt,k=0;nt.length>k;){var Z=nt[k++],te=lt?Z.ok:Z.fail,re=Z.resolve,Ae=Z.reject,De=Z.domain,Xe,vt,Jt;try{te?(lt||(Ce.rejection===tt&&Er(Ce),Ce.rejection=ut),te===!0?Xe=Ze:(De&&De.enter(),Xe=te(Ze),De&&(De.exit(),Jt=!0)),Xe===Z.promise?Ae(_e("Promise-chain cycle")):(vt=St(Xe))?E(vt,Xe,re,Ae):re(Xe)):Ae(Ze)}catch(Qt){De&&!Jt&&De.exit(),Ae(Qt)}}Ce.reactions=[],Ce.notified=!1,Ye&&!Ce.rejection&&dr(Ce)})}},Wt=function(Ce,Ye,nt){var Ze,lt;Me?(Ze=G.createEvent("Event"),Ze.promise=Ye,Ze.reason=nt,Ze.initEvent(Ce,!1,!0),y.dispatchEvent(Ze)):Ze={promise:Ye,reason:nt},!ye&&(lt=y["on"+Ce])?lt(Ze):Ce===He&&N("Unhandled promise rejection",nt)},dr=function(Ce){E(ie,y,function(){var Ye=Ce.facade,nt=Ce.value,Ze=Zt(Ce),lt;if(Ze&&(lt=D(function(){me?W.emit("unhandledRejection",nt,Ye):Wt(He,Ye,nt)}),Ce.rejection=me||Zt(Ce)?tt:ut,lt.error))throw lt.value})},Zt=function(Ce){return Ce.rejection!==ut&&!Ce.parent},Er=function(Ce){E(ie,y,function(){var Ye=Ce.facade;me?W.emit("rejectionHandled",Ye):Wt(et,Ye,Ce.value)})},qe=function(Ce,Ye,nt){return function(Ze){Ce(Ye,Ze,nt)}},Pt=function(Ce,Ye,nt){Ce.done||(Ce.done=!0,nt&&(Ce=nt),Ce.value=Ye,Ce.state=be,mt(Ce,!0))},nr=function(Ce,Ye,nt){if(!Ce.done){Ce.done=!0,nt&&(Ce=nt);try{if(Ce.facade===Ye)throw _e("Promise can't be resolved itself");var Ze=St(Ye);Ze?z(function(){var lt={done:!1};try{E(Ze,Ye,qe(nr,lt,Ce),qe(Pt,lt,Ce))}catch(k){Pt(lt,k,Ce)}}):(Ce.value=Ye,Ce.state=rt,mt(Ce,!1))}catch(lt){Pt({done:!1},lt,Ce)}}};if(ne&&(xe=function(Ye){X(this,Be),L(Ye),E(Qe,this);var nt=Ee(this);try{Ye(qe(nr,nt),qe(Pt,nt))}catch(Ze){Pt(nt,Ze)}},Be=xe.prototype,Qe=function(Ye){je(this,{type:ve,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:We,value:void 0})},Qe.prototype=T(Be,{then:function(Ye,nt){var Ze=ze(this),lt=Ze.reactions,k=ee(J(this,xe));return k.ok=H(Ye)?Ye:!0,k.fail=H(nt)&&nt,k.domain=me?W.domain:void 0,Ze.parent=!0,lt[lt.length]=k,Ze.state!=We&&mt(Ze,!1),k.promise},catch:function(Ce){return this.then(void 0,Ce)}}),At=function(){var Ce=new Qe,Ye=Ee(Ce);this.promise=Ce,this.resolve=qe(nr,Ye),this.reject=qe(Pt,Ye)},P.f=ee=function(Ce){return Ce===xe||Ce===ct?new At(Ce):ge(Ce)},!f&&H(S)&&Re!==Object.prototype)){bt=Re.then,Fe||(M(Re,"then",function(Ye,nt){var Ze=this;return new xe(function(lt,k){E(bt,Ze,lt,k)}).then(Ye,nt)},{unsafe:!0}),M(Re,"catch",Be.catch,{unsafe:!0}));try{delete Re.constructor}catch{}A&&A(Re,Be)}s({global:!0,wrap:!0,forced:ne},{Promise:xe}),I(xe,ve,!1,!0),_(ve),ct=b(ve),s({target:ve,stat:!0,forced:ne},{reject:function(Ye){var nt=ee(this);return E(nt.reject,void 0,Ye),nt.promise}}),s({target:ve,stat:!0,forced:f||ne},{resolve:function(Ye){return j(f&&this===ct?xe:this,Ye)}}),s({target:ve,stat:!0,forced:Ct},{all:function(Ye){var nt=this,Ze=ee(nt),lt=Ze.resolve,k=Ze.reject,Z=D(function(){var te=L(nt.resolve),re=[],Ae=0,De=1;ae(Ye,function(Xe){var vt=Ae++,Jt=!1;De++,E(te,nt,Xe).then(function(Qt){Jt||(Jt=!0,re[vt]=Qt,--De||lt(re))},k)}),--De||lt(re)});return Z.error&&k(Z.value),Ze.promise},race:function(Ye){var nt=this,Ze=ee(nt),lt=Ze.reject,k=D(function(){var Z=L(nt.resolve);ae(Ye,function(te){E(Z,nt,te).then(Ze.resolve,lt)})});return k.error&&lt(k.value),Ze.promise}})},function(u,c,i){var s=i(7);u.exports=s.Promise},function(u,c,i){var s=i(7),f=i(62),y=i(51).f,b=i(162).set,E=i(163),S=i(207),M=i(208),T=i(126),A=s.MutationObserver||s.WebKitMutationObserver,I=s.document,_=s.process,L=s.Promise,H=y(s,"queueMicrotask"),U=H&&H.value,X,se,ae,q,J,ie,z,j;U||(X=function(){var N,P;for(T&&(N=_.domain)&&N.exit();se;){P=se.fn,se=se.next;try{P()}catch(D){throw se?q():ae=void 0,D}}ae=void 0,N&&N.enter()},!E&&!T&&!M&&A&&I?(J=!0,ie=I.createTextNode(""),new A(X).observe(ie,{characterData:!0}),q=function(){ie.data=J=!J}):!S&&L&&L.resolve?(z=L.resolve(void 0),z.constructor=L,j=f(z.then,z),q=function(){j(X)}):T?q=function(){_.nextTick(X)}:(b=f(b,s),q=function(){b(X)})),u.exports=U||function(N){var P={fn:N,next:void 0};ae&&(ae.next=P),se||(se=P,q()),ae=P}},function(u,c,i){var s=i(53),f=i(7);u.exports=/ipad|iphone|ipod/i.test(s)&&f.Pebble!==void 0},function(u,c,i){var s=i(53);u.exports=/web0s(?!.*chrome)/i.test(s)},function(u,c,i){var s=i(32),f=i(33),y=i(164);u.exports=function(b,E){if(s(b),f(E)&&E.constructor===b)return E;var S=y.f(b),M=S.resolve;return M(E),S.promise}},function(u,c,i){var s=i(7);u.exports=function(f,y){var b=s.console;b&&b.error&&(arguments.length==1?b.error(f):b.error(f,y))}},function(u,c){u.exports=function(i){try{return{error:!1,value:i()}}catch(s){return{error:!0,value:s}}}},function(u,c){u.exports=typeof window=="object"},function(u,c,i){var s=i(36),f=i(15),y=i(66),b=i(39),E=i(93).f,S=f(E),M=f([].push),T=function(A){return function(I){for(var _=b(I),L=y(_),H=L.length,U=0,X=[],se;H>U;)se=L[U++],(!s||S(_,se))&&M(X,A?[se,_[se]]:_[se]);return X}};u.exports={entries:T(!0),values:T(!1)}},function(u,c,i){var s=i(38),f=i(67),y=i(43);u.exports=function(E){for(var S=s(this),M=y(S),T=arguments.length,A=f(T>1?arguments[1]:void 0,M),I=T>2?arguments[2]:void 0,_=I===void 0?M:f(I,M);_>A;)S[A++]=E;return S}},function(u,c,i){i.r(c),i.d(c,"observer",function(){return Gr}),i.d(c,"LogicFlow",function(){return ed}),i.d(c,"h",function(){return ne.g}),i.d(c,"LogicFlowUtil",function(){return s}),i.d(c,"BaseNode",function(){return yn}),i.d(c,"RectNode",function(){return hc}),i.d(c,"CircleNode",function(){return gc}),i.d(c,"PolygonNode",function(){return Oc}),i.d(c,"DiamondNode",function(){return Sc}),i.d(c,"EllipseNode",function(){return Mc}),i.d(c,"TextNode",function(){return Ac}),i.d(c,"HtmlNode",function(){return jc}),i.d(c,"BaseEdge",function(){return Ti}),i.d(c,"LineEdge",function(){return Hc}),i.d(c,"PolylineEdge",function(){return kc}),i.d(c,"BezierEdge",function(){return Uc}),i.d(c,"Arrow",function(){return pj}),i.d(c,"BaseEdgeModel",function(){return hf}),i.d(c,"BezierEdgeModel",function(){return kf}),i.d(c,"LineEdgeModel",function(){return gf}),i.d(c,"PolylineEdgeModel",function(){return Of}),i.d(c,"BaseNodeModel",function(){return hn}),i.d(c,"CircleNodeModel",function(){return Xf}),i.d(c,"DiamondNodeModel",function(){return Kf}),i.d(c,"EllipseNodeModel",function(){return Zf}),i.d(c,"PolygonNodeModel",function(){return qf}),i.d(c,"RectNodeModel",function(){return rc}),i.d(c,"TextNodeModel",function(){return oc}),i.d(c,"HtmlNodeModel",function(){return ac}),i.d(c,"EditConfigModel",function(){return up}),i.d(c,"GraphModel",function(){return ov}),i.d(c,"SnaplineModel",function(){return og}),i.d(c,"Keyboard",function(){return hm}),i.d(c,"get",function(){return Fv}),i.d(c,"defaults",function(){return Hv});var s={};i.r(s),i.d(s,"createUuid",function(){return eo}),i.d(s,"refreshGraphId",function(){return EP}),i.d(s,"createDrag",function(){return Mf}),i.d(s,"StepDrag",function(){return to});var f=i(0),y=i(10);if(!y.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!f.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var b=i(42),E=Object(b.b)("observerBatching");function S(e){e()}function M(e){e||(e=S),Object(f.n)({reactionScheduler:e}),Object(b.a)()[E]=!0}function T(e){return Object(f.t)(e)}function A(e){var r={cleanAt:Date.now()+I,reaction:e};return r}var I=1e4,_=1e4,L=new Set,H;function U(){H===void 0&&(H=setTimeout(ae,_))}function X(e){L.add(e),U()}function se(e){L.delete(e)}function ae(){H=void 0;var e=Date.now();L.forEach(function(r){var t=r.current;t&&e>=t.cleanAt&&(t.reaction.dispose(),r.current=null,L.delete(r))}),L.size>0&&U()}var q=!1,J=[];function ie(e){return function(){q?J.push(e):e()}}function z(e){q=!0,J=[];try{var r=e();q=!1;var t=J.length>0?J:void 0;return y.d.useLayoutEffect(function(){t&&t.forEach(function(n){return n()})},[t]),r}finally{q=!1}}var j={};function N(e){return"observer"+e}function P(e,r,t){r===void 0&&(r="observed"),t===void 0&&(t=j);var n=t.useForceUpdate||b.d,o=n(),a=ie(o),l=y.d.useRef(null);if(!l.current){var p=new f.c(N(r),function(){g.mounted?a():(p.dispose(),l.current=null)}),g=A(p);l.current=g,X(l)}var x=l.current.reaction;return y.d.useDebugValue(x,T),y.d.useEffect(function(){return se(l),l.current?l.current.mounted=!0:(l.current={reaction:new f.c(N(r),function(){a()}),cleanAt:1/0},a()),function(){l.current.reaction.dispose(),l.current=null}},[]),z(function(){var w,R;if(x.track(function(){try{w=e()}catch(B){R=B}}),R)throw R;return w})}var D=function(){return D=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},D.apply(this,arguments)};function Y(e,r){var t=D({forwardRef:!1},r),n=e.displayName||e.name,o=function(l,p){return P(function(){return e(l,p)},n)};o.displayName=n;var a;return t.forwardRef?a=Object(y.f)(Object(y.e)(o)):a=Object(y.f)(o),ue(e,a),a.displayName=n,a}var V={$$typeof:!0,render:!0,compare:!0,type:!0};function ue(e,r){Object.keys(e).forEach(function(t){V[t]||Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}function Oe(e){var r=e.children,t=e.render,n=r||t;return typeof n!="function"?null:P(n)}Oe.propTypes={children:me,render:me},Oe.displayName="Observer";function me(e,r,t,n,o){var a=r==="children"?"render":"children",l=typeof e[r]=="function",p=typeof e[a]=="function";return l&&p?new Error("MobX Observer: Do not use children and render in the same time in`"+t):l||p?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[r]+"` supplied to `"+t+"`, expected `function`.")}M(y.g);var ce=0;function he(e){if(typeof Symbol=="function")return Symbol(e);var r="__$mobx-react "+e+" ("+ce+")";return ce++,r}var ve={};function Ee(e){return ve[e]||(ve[e]=he(e)),ve[e]}function je(e,r){if(ze(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.hasOwnProperty.call(r,t[o])||!ze(e[t[o]],r[t[o]]))return!1;return!0}function ze(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function Re(e,r,t){Object.hasOwnProperty.call(e,r)?e[r]=t:Object.defineProperty(e,r,{enumerable:!1,configurable:!0,writable:!0,value:t})}var xe=Ee("patchMixins"),Be=Ee("patchedDefinition");function _e(e,r){var t=e[xe]=e[xe]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}function G(e,r){for(var t=this,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];r.locks++;try{var l;return e!=null&&(l=e.apply(this,o)),l}finally{r.locks--,r.locks===0&&r.methods.forEach(function(p){p.apply(t,o)})}}function W(e,r){var t=function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];G.call.apply(G,[this,e,r].concat(a))};return t}function ee(e,r,t){var n=_e(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!(o&&o[Be])){var a=e[r],l=ge(e,r,o?o.enumerable:void 0,n,a);Object.defineProperty(e,r,l)}}function ge(e,r,t,n,o){var a,l=W(o,n);return a={},a[Be]=!0,a.get=function(){return l},a.set=function(g){if(this===e)l=W(g,n);else{var x=ge(this,r,t,n,g);Object.defineProperty(this,r,x)}},a.configurable=!0,a.enumerable=t,a}var Me=f.a||"$mobx",ye=Ee("isMobXReactObserver"),He=Ee("isUnmounted"),et=Ee("skipRender"),We=Ee("isForcingUpdate");function rt(e){var r=e.prototype;if(e[ye]){var t=be(r);console.warn("The provided component class ("+t+`)
  27. has already been declared as an observer component.`)}else e[ye]=!0;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==y.b){if(!r.shouldComponentUpdate)r.shouldComponentUpdate=tt;else if(r.shouldComponentUpdate!==tt)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}Fe(r,"props"),Fe(r,"state");var n=r.render;return r.render=function(){return ut.call(this,n)},ee(r,"componentWillUnmount",function(){var o;if((o=this.render[Me])===null||o===void 0||o.dispose(),this[He]=!0,!this.render[Me]){var a=be(this);console.warn("The reactive render of an observer class component ("+a+`)
  28. was overriden after MobX attached. This may result in a memory leak if the
  29. overriden reactive render was not properly disposed.`)}}),e}function be(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function ut(e){var r=this;Re(this,et,!1),Re(this,We,!1);var t=be(this),n=e.bind(this),o=!1,a=new f.c(t+".render()",function(){if(!o&&(o=!0,r[He]!==!0)){var p=!0;try{Re(r,We,!0),r[et]||y.a.prototype.forceUpdate.call(r),p=!1}finally{Re(r,We,!1),p&&a.dispose()}}});a.reactComponent=this,l[Me]=a,this.render=l;function l(){o=!1;var p=void 0,g=void 0;if(a.track(function(){try{g=Object(f.d)(!1,n)}catch(x){p=x}}),p)throw p;return g}return l.call(this)}function tt(e,r){return this.state!==r?!0:!je(this.props,e)}function Fe(e,r){var t=Ee("reactProp_"+r+"_valueHolder"),n=Ee("reactProp_"+r+"_atomHolder");function o(){return this[n]||Re(this,n,Object(f.o)("reactive "+r)),this[n]}Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var l=!1;return f.f&&f.e&&(l=Object(f.f)(!0)),o.call(this).reportObserved(),f.f&&f.e&&Object(f.e)(l),this[t]},set:function(l){!this[We]&&!je(this[t],l)?(Re(this,t,l),Re(this,et,!0),o.call(this).reportChanged(),Re(this,et,!1)):Re(this,t,l)}})}var Qe=typeof Symbol=="function"&&Symbol.for,At=Qe?Symbol.for("react.forward_ref"):typeof y.e=="function"&&Object(y.e)(function(e){return null}).$$typeof,ct=Qe?Symbol.for("react.memo"):typeof y.f=="function"&&Object(y.f)(function(e){return null}).$$typeof;function bt(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),ct&&e.$$typeof===ct)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(At&&e.$$typeof===At){var r=e.render;if(typeof r!="function")throw new Error("render property of ForwardRef was not a function");return Object(y.e)(function(){var n=arguments;return Object(y.c)(Oe,null,function(){return r.apply(void 0,n)})})}return typeof e=="function"&&(!e.prototype||!e.prototype.render)&&!e.isReactClass&&!Object.prototype.isPrototypeOf.call(y.a,e)?Y(e):rt(e)}if(!y.a)throw new Error("mobx-react requires React to be available");if(!f.C)throw new Error("mobx-react requires mobx to be available");var ne=i(1);i(3),i(60),i(2),i(6),i(4),i(11),i(41),i(24),i(20),i(5),i(22),i(21),i(23),i(8),i(9),i(17),i(25),i(19),i(29),i(187),i(192),i(103),i(152),i(153);function Ct(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o}var St=Ct;function mt(){this.__data__=[],this.size=0}var Wt=mt;function dr(e,r){return e===r||e!==e&&r!==r}var Zt=dr;function Er(e,r){for(var t=e.length;t--;)if(Zt(e[t][0],r))return t;return-1}var qe=Er,Pt=Array.prototype,nr=Pt.splice;function Ce(e){var r=this.__data__,t=qe(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():nr.call(r,t,1),--this.size,!0}var Ye=Ce;function nt(e){var r=this.__data__,t=qe(r,e);return t<0?void 0:r[t][1]}var Ze=nt;function lt(e){return qe(this.__data__,e)>-1}var k=lt;function Z(e,r){var t=this.__data__,n=qe(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var te=Z;function re(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}re.prototype.clear=Wt,re.prototype.delete=Ye,re.prototype.get=Ze,re.prototype.has=k,re.prototype.set=te;var Ae=re;function De(){this.__data__=new Ae,this.size=0}var Xe=De;function vt(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Jt=vt;function Qt(e){return this.__data__.get(e)}var kn=Qt;function kr(e){return this.__data__.has(e)}var Li=kr,xr=i(30),zi=xr.a.Symbol,sr=zi,mn=Object.prototype,$n=mn.hasOwnProperty,ln=mn.toString,Un=sr?sr.toStringTag:void 0;function bn(e){var r=$n.call(e,Un),t=e[Un];try{e[Un]=void 0;var n=!0}catch{}var o=ln.call(e);return n&&(r?e[Un]=t:delete e[Un]),o}var On=bn,co=Object.prototype,es=co.toString;function po(e){return es.call(e)}var ho=po,Fi="[object Null]",$e="[object Undefined]",Hi=sr?sr.toStringTag:void 0;function ts(e){return e==null?e===void 0?$e:Fi:Hi&&Hi in Object(e)?On(e):ho(e)}var $r=ts;function Gi(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Tt=Gi,pr="[object AsyncFunction]",ki="[object Function]",rs="[object GeneratorFunction]",ns="[object Proxy]";function os(e){if(!Tt(e))return!1;var r=$r(e);return r==ki||r==rs||r==pr||r==ns}var vo=os,$i=xr.a["__core-js_shared__"],sn=$i,ei=function(){var e=/[^.]+$/.exec(sn&&sn.keys&&sn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ti(e){return!!ei&&ei in e}var Ui=ti,is=Function.prototype,yo=is.toString;function as(e){if(e!=null){try{return yo.call(e)}catch{}try{return e+""}catch{}}return""}var Rt=as,pd=/[\\^$.*+?()[\]{}|]/g,hd=/^\[object .+?Constructor\]$/,vd=Function.prototype,Xi=Object.prototype,us=vd.toString,Yi=Xi.hasOwnProperty,ls=RegExp("^"+us.call(Yi).replace(pd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ss(e){if(!Tt(e)||Ui(e))return!1;var r=vo(e)?ls:hd;return r.test(Rt(e))}var Ur=ss;function fs(e,r){return e==null?void 0:e[r]}var cs=fs;function ri(e,r){var t=cs(e,r);return Ur(t)?t:void 0}var Dr=ri,ds=Dr(xr.a,"Map"),En=ds,ps=Dr(Object,"create"),Xn=ps;function hs(){this.__data__=Xn?Xn(null):{},this.size=0}var ni=hs;function Wi(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var vs=Wi,oi="__lodash_hash_undefined__",Ki=Object.prototype,Vi=Ki.hasOwnProperty;function Zi(e){var r=this.__data__;if(Xn){var t=r[e];return t===oi?void 0:t}return Vi.call(r,e)?r[e]:void 0}var Ji=Zi,ys=Object.prototype,Qi=ys.hasOwnProperty;function gs(e){var r=this.__data__;return Xn?r[e]!==void 0:Qi.call(r,e)}var qi=gs,ea="__lodash_hash_undefined__";function ms(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Xn&&r===void 0?ea:r,this}var bs=ms;function xn(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}xn.prototype.clear=ni,xn.prototype.delete=vs,xn.prototype.get=Ji,xn.prototype.has=qi,xn.prototype.set=bs;var Sn=xn;function Pn(){this.size=0,this.__data__={hash:new Sn,map:new(En||Ae),string:new Sn}}var Os=Pn;function Es(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var ta=Es;function xs(e,r){var t=e.__data__;return ta(r)?t[typeof r=="string"?"string":"hash"]:t.map}var go=xs;function Ss(e){var r=go(this,e).delete(e);return this.size-=r?1:0,r}var Ps=Ss;function Tn(e){return go(this,e).get(e)}var Xr=Tn;function Ts(e){return go(this,e).has(e)}var Ms=Ts;function ws(e,r){var t=go(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var Sr=ws;function Mn(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Mn.prototype.clear=Os,Mn.prototype.delete=Ps,Mn.prototype.get=Xr,Mn.prototype.has=Ms,Mn.prototype.set=Sr;var Yn=Mn,As=200;function mo(e,r){var t=this.__data__;if(t instanceof Ae){var n=t.__data__;if(!En||n.length<As-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Yn(n)}return t.set(e,r),this.size=t.size,this}var bo=mo;function wn(e){var r=this.__data__=new Ae(e);this.size=r.size}wn.prototype.clear=Xe,wn.prototype.delete=Jt,wn.prototype.get=kn,wn.prototype.has=Li,wn.prototype.set=bo;var An=wn,Pr="__lodash_hash_undefined__";function Wn(e){return this.__data__.set(e,Pr),this}var Tr=Wn;function hr(e){return this.__data__.has(e)}var Kn=hr;function qt(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Yn;++r<t;)this.add(e[r])}qt.prototype.add=qt.prototype.push=Tr,qt.prototype.has=Kn;var Ns=qt;function Ds(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var js=Ds;function ra(e,r){return e.has(r)}var jr=ra,Cs=1,Cr=2;function na(e,r,t,n,o,a){var l=t&Cs,p=e.length,g=r.length;if(p!=g&&!(l&&g>p))return!1;var x=a.get(e),w=a.get(r);if(x&&w)return x==r&&w==e;var R=-1,B=!0,$=t&Cr?new Ns:void 0;for(a.set(e,r),a.set(r,e);++R<p;){var Q=e[R],oe=r[R];if(n)var fe=l?n(oe,Q,R,r,e,a):n(Q,oe,R,e,r,a);if(fe!==void 0){if(fe)continue;B=!1;break}if($){if(!js(r,function(le,Ne){if(!jr($,Ne)&&(Q===le||o(Q,le,t,n,a)))return $.push(Ne)})){B=!1;break}}else if(!(Q===oe||o(Q,oe,t,n,a))){B=!1;break}}return a.delete(e),a.delete(r),B}var oa=na,ii=xr.a.Uint8Array,$t=ii;function ia(e){var r=-1,t=Array(e.size);return e.forEach(function(n,o){t[++r]=[o,n]}),t}var Rs=ia;function aa(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var fr=aa,ua=1,ai=2,la="[object Boolean]",sa="[object Date]",Is="[object Error]",fa="[object Map]",_s="[object Number]",Bs="[object RegExp]",vr="[object Set]",Mr="[object String]",Vn="[object Symbol]",Ls="[object ArrayBuffer]",ca="[object DataView]",Oo=sr?sr.prototype:void 0,Zn=Oo?Oo.valueOf:void 0;function da(e,r,t,n,o,a,l){switch(t){case ca:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Ls:return!(e.byteLength!=r.byteLength||!a(new $t(e),new $t(r)));case la:case sa:case _s:return Zt(+e,+r);case Is:return e.name==r.name&&e.message==r.message;case Bs:case Mr:return e==r+"";case fa:var p=Rs;case vr:var g=n&ua;if(p||(p=fr),e.size!=r.size&&!g)return!1;var x=l.get(e);if(x)return x==r;n|=ai,l.set(e,r);var w=oa(p(e),p(r),n,o,a,l);return l.delete(e),w;case Vn:if(Zn)return Zn.call(e)==Zn.call(r)}return!1}var zs=da;function Eo(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e}var ui=Eo,pa=Array.isArray,d=pa;function h(e,r,t){var n=r(e);return d(e)?n:ui(n,t(e))}var O=h;function C(e,r){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var l=e[t];r(l,t,e)&&(a[o++]=l)}return a}var F=C;function K(){return[]}var de=K,we=Object.prototype,Ue=we.propertyIsEnumerable,st=Object.getOwnPropertySymbols,ft=st?function(e){return e==null?[]:(e=Object(e),F(st(e),function(r){return Ue.call(e,r)}))}:de,Ot=ft;function xt(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var _t=xt;function Ut(e){return e!=null&&typeof e=="object"}var Mt=Ut,yr="[object Arguments]";function Nn(e){return Mt(e)&&$r(e)==yr}var ha=Nn,va=Object.prototype,ya=va.hasOwnProperty,ga=va.propertyIsEnumerable,li=ha(function(){return arguments}())?ha:function(e){return Mt(e)&&ya.call(e,"callee")&&!ga.call(e,"callee")},Dn=li,fn=i(48),Nb=9007199254740991,Db=/^(?:0|[1-9]\d*)$/;function jb(e,r){var t=typeof e;return r=r==null?Nb:r,!!r&&(t=="number"||t!="symbol"&&Db.test(e))&&e>-1&&e%1==0&&e<r}var ma=jb,Cb=9007199254740991;function Rb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cb}var Fs=Rb,Ib="[object Arguments]",_b="[object Array]",Bb="[object Boolean]",Lb="[object Date]",zb="[object Error]",Fb="[object Function]",Hb="[object Map]",Gb="[object Number]",kb="[object Object]",$b="[object RegExp]",Ub="[object Set]",Xb="[object String]",Yb="[object WeakMap]",Wb="[object ArrayBuffer]",Kb="[object DataView]",Vb="[object Float32Array]",Zb="[object Float64Array]",Jb="[object Int8Array]",Qb="[object Int16Array]",qb="[object Int32Array]",eO="[object Uint8Array]",tO="[object Uint8ClampedArray]",rO="[object Uint16Array]",nO="[object Uint32Array]",Nt={};Nt[Vb]=Nt[Zb]=Nt[Jb]=Nt[Qb]=Nt[qb]=Nt[eO]=Nt[tO]=Nt[rO]=Nt[nO]=!0,Nt[Ib]=Nt[_b]=Nt[Wb]=Nt[Bb]=Nt[Kb]=Nt[Lb]=Nt[zb]=Nt[Fb]=Nt[Hb]=Nt[Gb]=Nt[kb]=Nt[$b]=Nt[Ub]=Nt[Xb]=Nt[Yb]=!1;function oO(e){return Mt(e)&&Fs(e.length)&&!!Nt[$r(e)]}var iO=oO;function aO(e){return function(r){return e(r)}}var Hs=aO,xo=i(49),yd=xo.a&&xo.a.isTypedArray,uO=yd?Hs(yd):iO,Gs=uO,lO=Object.prototype,sO=lO.hasOwnProperty;function fO(e,r){var t=d(e),n=!t&&Dn(e),o=!t&&!n&&Object(fn.a)(e),a=!t&&!n&&!o&&Gs(e),l=t||n||o||a,p=l?_t(e.length,String):[],g=p.length;for(var x in e)(r||sO.call(e,x))&&!(l&&(x=="length"||o&&(x=="offset"||x=="parent")||a&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||ma(x,g)))&&p.push(x);return p}var gd=fO,cO=Object.prototype;function dO(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||cO;return e===t}var ba=dO;function pO(e,r){return function(t){return e(r(t))}}var md=pO,hO=md(Object.keys,Object),vO=hO,yO=Object.prototype,gO=yO.hasOwnProperty;function mO(e){if(!ba(e))return vO(e);var r=[];for(var t in Object(e))gO.call(e,t)&&t!="constructor"&&r.push(t);return r}var bO=mO;function OO(e){return e!=null&&Fs(e.length)&&!vo(e)}var Jn=OO;function EO(e){return Jn(e)?gd(e):bO(e)}var So=EO;function xO(e){return O(e,So,Ot)}var ks=xO,SO=1,PO=Object.prototype,TO=PO.hasOwnProperty;function MO(e,r,t,n,o,a){var l=t&SO,p=ks(e),g=p.length,x=ks(r),w=x.length;if(g!=w&&!l)return!1;for(var R=g;R--;){var B=p[R];if(!(l?B in r:TO.call(r,B)))return!1}var $=a.get(e),Q=a.get(r);if($&&Q)return $==r&&Q==e;var oe=!0;a.set(e,r),a.set(r,e);for(var fe=l;++R<g;){B=p[R];var le=e[B],Ne=r[B];if(n)var Se=l?n(Ne,le,B,r,e,a):n(le,Ne,B,e,r,a);if(!(Se===void 0?le===Ne||o(le,Ne,t,n,a):Se)){oe=!1;break}fe||(fe=B=="constructor")}if(oe&&!fe){var Pe=e.constructor,Ge=r.constructor;Pe!=Ge&&"constructor"in e&&"constructor"in r&&!(typeof Pe=="function"&&Pe instanceof Pe&&typeof Ge=="function"&&Ge instanceof Ge)&&(oe=!1)}return a.delete(e),a.delete(r),oe}var wO=MO,AO=Dr(xr.a,"DataView"),$s=AO,NO=Dr(xr.a,"Promise"),Us=NO,DO=Dr(xr.a,"Set"),Xs=DO,jO=Dr(xr.a,"WeakMap"),Ys=jO,bd="[object Map]",CO="[object Object]",Od="[object Promise]",Ed="[object Set]",xd="[object WeakMap]",Sd="[object DataView]",RO=Rt($s),IO=Rt(En),_O=Rt(Us),BO=Rt(Xs),LO=Rt(Ys),Qn=$r;($s&&Qn(new $s(new ArrayBuffer(1)))!=Sd||En&&Qn(new En)!=bd||Us&&Qn(Us.resolve())!=Od||Xs&&Qn(new Xs)!=Ed||Ys&&Qn(new Ys)!=xd)&&(Qn=function(e){var r=$r(e),t=r==CO?e.constructor:void 0,n=t?Rt(t):"";if(n)switch(n){case RO:return Sd;case IO:return bd;case _O:return Od;case BO:return Ed;case LO:return xd}return r});var si=Qn,zO=1,Pd="[object Arguments]",Td="[object Array]",Oa="[object Object]",FO=Object.prototype,Md=FO.hasOwnProperty;function HO(e,r,t,n,o,a){var l=d(e),p=d(r),g=l?Td:si(e),x=p?Td:si(r);g=g==Pd?Oa:g,x=x==Pd?Oa:x;var w=g==Oa,R=x==Oa,B=g==x;if(B&&Object(fn.a)(e)){if(!Object(fn.a)(r))return!1;l=!0,w=!1}if(B&&!w)return a||(a=new An),l||Gs(e)?oa(e,r,t,n,o,a):zs(e,r,g,t,n,o,a);if(!(t&zO)){var $=w&&Md.call(e,"__wrapped__"),Q=R&&Md.call(r,"__wrapped__");if($||Q){var oe=$?e.value():e,fe=Q?r.value():r;return a||(a=new An),o(oe,fe,t,n,a)}}return B?(a||(a=new An),wO(e,r,t,n,o,a)):!1}var GO=HO;function wd(e,r,t,n,o){return e===r?!0:e==null||r==null||!Mt(e)&&!Mt(r)?e!==e&&r!==r:GO(e,r,t,n,wd,o)}var Ws=wd,kO=1,$O=2;function UO(e,r,t,n){var o=t.length,a=o,l=!n;if(e==null)return!a;for(e=Object(e);o--;){var p=t[o];if(l&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<a;){p=t[o];var g=p[0],x=e[g],w=p[1];if(l&&p[2]){if(x===void 0&&!(g in e))return!1}else{var R=new An;if(n)var B=n(x,w,g,e,r,R);if(!(B===void 0?Ws(w,x,kO|$O,n,R):B))return!1}}return!0}var XO=UO;function YO(e){return e===e&&!Tt(e)}var Ad=YO;function WO(e){for(var r=So(e),t=r.length;t--;){var n=r[t],o=e[n];r[t]=[n,o,Ad(o)]}return r}var KO=WO;function VO(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}var Nd=VO;function ZO(e){var r=KO(e);return r.length==1&&r[0][2]?Nd(r[0][0],r[0][1]):function(t){return t===e||XO(t,e,r)}}var JO=ZO,QO="[object Symbol]";function qO(e){return typeof e=="symbol"||Mt(e)&&$r(e)==QO}var Ea=qO,eE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tE=/^\w*$/;function rE(e,r){if(d(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Ea(e)?!0:tE.test(e)||!eE.test(e)||r!=null&&e in Object(r)}var Ks=rE,nE="Expected a function";function Vs(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(nE);var t=function(){var n=arguments,o=r?r.apply(this,n):n[0],a=t.cache;if(a.has(o))return a.get(o);var l=e.apply(this,n);return t.cache=a.set(o,l)||a,l};return t.cache=new(Vs.Cache||Yn),t}Vs.Cache=Yn;var oE=Vs,iE=500;function aE(e){var r=oE(e,function(n){return t.size===iE&&t.clear(),n}),t=r.cache;return r}var uE=aE,lE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sE=/\\(\\)?/g,fE=uE(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(lE,function(t,n,o,a){r.push(o?a.replace(sE,"$1"):n||t)}),r}),cE=fE,dE=1/0,Dd=sr?sr.prototype:void 0,jd=Dd?Dd.toString:void 0;function Cd(e){if(typeof e=="string")return e;if(d(e))return St(e,Cd)+"";if(Ea(e))return jd?jd.call(e):"";var r=e+"";return r=="0"&&1/e==-dE?"-0":r}var pE=Cd;function hE(e){return e==null?"":pE(e)}var vE=hE;function yE(e,r){return d(e)?e:Ks(e,r)?[e]:cE(vE(e))}var xa=yE,gE=1/0;function mE(e){if(typeof e=="string"||Ea(e))return e;var r=e+"";return r=="0"&&1/e==-gE?"-0":r}var fi=mE;function bE(e,r){r=xa(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[fi(r[t++])];return t&&t==n?e:void 0}var Zs=bE;function OE(e,r,t){var n=e==null?void 0:Zs(e,r);return n===void 0?t:n}var Rd=OE;function EE(e,r){return e!=null&&r in Object(e)}var xE=EE;function SE(e,r,t){r=xa(r,e);for(var n=-1,o=r.length,a=!1;++n<o;){var l=fi(r[n]);if(!(a=e!=null&&t(e,l)))break;e=e[l]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Fs(o)&&ma(l,o)&&(d(e)||Dn(e)))}var PE=SE;function TE(e,r){return e!=null&&PE(e,r,xE)}var Id=TE,ME=1,wE=2;function AE(e,r){return Ks(e)&&Ad(r)?Nd(fi(e),r):function(t){var n=Rd(t,e);return n===void 0&&n===r?Id(t,e):Ws(r,n,ME|wE)}}var NE=AE;function DE(e){return e}var Js=DE;function jE(e){return function(r){return r==null?void 0:r[e]}}var CE=jE;function RE(e){return function(r){return Zs(r,e)}}var IE=RE;function _E(e){return Ks(e)?CE(fi(e)):IE(e)}var BE=_E;function LE(e){return typeof e=="function"?e:e==null?Js:typeof e=="object"?d(e)?NE(e[0],e[1]):JO(e):BE(e)}var zE=LE;function FE(e){return function(r,t,n){for(var o=-1,a=Object(r),l=n(r),p=l.length;p--;){var g=l[e?p:++o];if(t(a[g],g,a)===!1)break}return r}}var HE=FE,GE=HE(),_d=GE;function kE(e,r){return e&&_d(e,r,So)}var $E=kE;function UE(e,r){return function(t,n){if(t==null)return t;if(!Jn(t))return e(t,n);for(var o=t.length,a=r?o:-1,l=Object(t);(r?a--:++a<o)&&n(l[a],a,l)!==!1;);return t}}var XE=UE,YE=XE($E),WE=YE;function KE(e,r){var t=-1,n=Jn(e)?Array(e.length):[];return WE(e,function(o,a,l){n[++t]=r(o,a,l)}),n}var VE=KE;function ZE(e,r){var t=d(e)?St:VE;return t(e,zE(r))}var Sa=ZE,JE=function(){try{var e=Dr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Pa=JE;function QE(e,r,t){r=="__proto__"&&Pa?Pa(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var Qs=QE,qE=Object.prototype,ex=qE.hasOwnProperty;function tx(e,r,t){var n=e[r];(!(ex.call(e,r)&&Zt(n,t))||t===void 0&&!(r in e))&&Qs(e,r,t)}var Ta=tx;function rx(e,r,t,n){var o=!t;t||(t={});for(var a=-1,l=r.length;++a<l;){var p=r[a],g=n?n(t[p],e[p],p,t,e):void 0;g===void 0&&(g=e[p]),o?Qs(t,p,g):Ta(t,p,g)}return t}var Po=rx;function nx(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var ox=nx,Bd=Math.max;function ix(e,r,t){return r=Bd(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=Bd(n.length-r,0),l=Array(a);++o<a;)l[o]=n[r+o];o=-1;for(var p=Array(r+1);++o<r;)p[o]=n[o];return p[r]=t(l),ox(e,this,p)}}var Ld=ix;function ax(e){return function(){return e}}var ux=ax,lx=Pa?function(e,r){return Pa(e,"toString",{configurable:!0,enumerable:!1,value:ux(r),writable:!0})}:Js,sx=lx,fx=800,cx=16,dx=Date.now;function px(e){var r=0,t=0;return function(){var n=dx(),o=cx-(n-t);if(t=n,o>0){if(++r>=fx)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var hx=px,vx=hx(sx),zd=vx;function yx(e,r){return zd(Ld(e,r,Js),e+"")}var gx=yx;function mx(e,r,t){if(!Tt(t))return!1;var n=typeof r;return(n=="number"?Jn(t)&&ma(r,t.length):n=="string"&&r in t)?Zt(t[r],e):!1}var bx=mx;function Ox(e){return gx(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,l=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,l&&bx(t[0],t[1],l)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var p=t[n];p&&e(r,p,n,a)}return r})}var Fd=Ox,Ex=Object.prototype,xx=Ex.hasOwnProperty,Sx=Fd(function(e,r){if(ba(r)||Jn(r)){Po(r,So(r),e);return}for(var t in r)xx.call(r,t)&&Ta(e,t,r[t])}),or=Sx;function Px(e,r,t,n){if(!Tt(e))return e;r=xa(r,e);for(var o=-1,a=r.length,l=a-1,p=e;p!=null&&++o<a;){var g=fi(r[o]),x=t;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(o!=l){var w=p[g];x=n?n(w,g,p):void 0,x===void 0&&(x=Tt(w)?w:ma(r[o+1])?[]:{})}Ta(p,g,x),p=p[g]}return e}var Tx=Px;function Mx(e,r,t){for(var n=-1,o=r.length,a={};++n<o;){var l=r[n],p=Zs(e,l);t(p,l)&&Tx(a,xa(l,e),p)}return a}var wx=Mx;function Ax(e,r){return wx(e,r,function(t,n){return Id(e,n)})}var Nx=Ax,Hd=sr?sr.isConcatSpreadable:void 0;function Dx(e){return d(e)||Dn(e)||!!(Hd&&e&&e[Hd])}var jx=Dx;function Gd(e,r,t,n,o){var a=-1,l=e.length;for(t||(t=jx),o||(o=[]);++a<l;){var p=e[a];r>0&&t(p)?r>1?Gd(p,r-1,t,n,o):ui(o,p):n||(o[o.length]=p)}return o}var Cx=Gd;function Rx(e){var r=e==null?0:e.length;return r?Cx(e,1):[]}var Ix=Rx;function _x(e){return zd(Ld(e,void 0,Ix),e+"")}var Bx=_x,Lx=Bx(function(e,r){return e==null?{}:Nx(e,r)}),ci=Lx,It,kd,$d,Ud,Xd,Yd,Wd,Kd,Vd,Zd,Jd,Qd,qd,ep,tp,rp,np,op;function Kt(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function zx(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ip(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fx(e,r,t){return r&&ip(e.prototype,r),t&&ip(e,t),e}function ap(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xt(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Hx={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},qs=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],up=(It=function(){function e(r){zx(this,e),Kt(this,"isSilentMode",kd,this),Kt(this,"stopZoomGraph",$d,this),Kt(this,"stopScrollGraph",Ud,this),Kt(this,"stopMoveGraph",Xd,this),Kt(this,"adjustEdge",Yd,this),Kt(this,"adjustEdgeMiddle",Wd,this),Kt(this,"adjustEdgeStartAndEnd",Kd,this),Kt(this,"adjustNodePosition",Vd,this),Kt(this,"hideAnchors",Zd,this),Kt(this,"hoverOutline",Jd,this),Kt(this,"nodeSelectedOutline",Qd,this),Kt(this,"edgeSelectedOutline",qd,this),Kt(this,"nodeTextEdit",ep,this),Kt(this,"edgeTextEdit",tp,this),Kt(this,"nodeTextDraggable",rp,this),Kt(this,"edgeTextDraggable",np,this),Kt(this,"autoExpand",op,this),ap(this,"multipleSelectKey",""),ap(this,"defaultConfig",{}),or(this,this.getConfigDetail(r))}return Fx(e,[{key:"updateEditConfig",value:function(t){var n=this.getConfigDetail(t);or(this,n)}},{key:"getConfigDetail",value:function(t){var n=t.isSilentMode,o=t.textEdit,a={};if(n===!1&&or(a,this.defaultConfig),n===!0){var l=ci(Hx,qs);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},or(a,l)}o===!1&&or(a,{nodeTextEdit:!1,edgeTextEdit:!1});var p=ci(t,qs);return or(a,p)}},{key:"getConfig",value:function(){return ci(this,qs)}}]),e}(),kd=Xt(It.prototype,"isSilentMode",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$d=Xt(It.prototype,"stopZoomGraph",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ud=Xt(It.prototype,"stopScrollGraph",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xd=Xt(It.prototype,"stopMoveGraph",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yd=Xt(It.prototype,"adjustEdge",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wd=Xt(It.prototype,"adjustEdgeMiddle",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kd=Xt(It.prototype,"adjustEdgeStartAndEnd",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vd=Xt(It.prototype,"adjustNodePosition",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Zd=Xt(It.prototype,"hideAnchors",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jd=Xt(It.prototype,"hoverOutline",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qd=Xt(It.prototype,"nodeSelectedOutline",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),qd=Xt(It.prototype,"edgeSelectedOutline",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ep=Xt(It.prototype,"nodeTextEdit",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),tp=Xt(It.prototype,"edgeTextEdit",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),rp=Xt(It.prototype,"nodeTextDraggable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),np=Xt(It.prototype,"edgeTextDraggable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),op=Xt(It.prototype,"autoExpand",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xt(It.prototype,"updateEditConfig",[f.k],Object.getOwnPropertyDescriptor(It.prototype,"updateEditConfig"),It.prototype),It);i(77);var Et;(function(e){e[e.DEFAULT=1]="DEFAULT",e[e.TEXT_EDIT=2]="TEXT_EDIT",e[e.SHOW_MENU=3]="SHOW_MENU",e[e.ALLOW_CONNECT=4]="ALLOW_CONNECT",e[e.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"})(Et||(Et={}));var lp;(function(e){e.KEY="logic-flow",e.NODE_NAME="lf-node",e.EDGE_NAME="lf-edge"})(lp||(lp={}));var dt;(function(e){e.NODE="node",e.CIRCLE_NODE="circle-node",e.POLYGON_NODE="polygon-node",e.RECT_NODE="rect-node",e.TEXT_NODE="text-node",e.ELLIPSE_NODE="ellipse-node",e.DIAMOND_NODE="diamond-node",e.HTML_NODE="html-node",e.EDGE="edge",e.LINE_EDGE="line-edge",e.POLYLINE_EDGE="polyline-edge",e.BEZIER_EDGE="bezier-edge",e.GRAPH="graph"})(dt||(dt={}));var Gt;(function(e){e.NODE="node",e.EDGE="edge",e.GRAPH="graph"})(Gt||(Gt={}));var it;(function(e){e.ELEMENT_CLICK="element:click",e.NODE_CLICK="node:click",e.NODE_DBCLICK="node:dbclick",e.NODE_DELETE="node:delete",e.NODE_ADD="node:add",e.NODE_DND_ADD="node:dnd-add",e.NODE_DND_DRAG="node:dnd-drag",e.NODE_MOUSEDOWN="node:mousedown",e.NODE_DRAGSTART="node:dragstart",e.NODE_DRAG="node:drag",e.NODE_DROP="node:drop",e.NODE_MOUSEUP="node:mouseup",e.NODE_MOUSEMOVE="node:mousemove",e.NODE_MOUSEENTER="node:mouseenter",e.NODE_MOUSELEAVE="node:mouseleave",e.NODE_CONTEXTMENU="node:contextmenu",e.EDGE_DELETE="edge:delete",e.EDGE_ADD="edge:add",e.EDGE_CLICK="edge:click",e.EDGE_DBCLICK="edge:dbclick",e.EDGE_MOUSEENTER="edge:mouseenter",e.EDGE_MOUSELEAVE="edge:mouseleave",e.EDGE_CONTEXTMENU="edge:contextmenu",e.EDGE_ADJUST="edge:adjust",e.EDGE_EXCHANGE_NODE="edge:exchange-node",e.ANCHOR_DRAGSTART="anchor:dragstart",e.ANCHOR_DRAG="anchor:drag",e.ANCHOR_DROP="anchor:drop",e.BLANK_MOUSEDOWN="blank:mousedown",e.BLANK_DRAGSTART="blank:dragstart",e.BLANK_DRAG="blank:drag",e.BLANK_DROP="blank:drop",e.BLANK_MOUSEMOVE="blank:mousemove",e.BLANK_MOUSEUP="blank:mouseup",e.BLANK_CLICK="blank:click",e.BLANK_CONTEXTMENU="blank:contextmenu",e.SELECTION_MOUSEDOWN="selection:mousedown",e.SELECTION_DRAGSTART="selection:dragstart",e.SELECTION_DRAG="selection:drag",e.SELECTION_DROP="selection:drop",e.SELECTION_MOUSEMOVE="selection:mousemove",e.SELECTION_MOUSEUP="selection:mouseup",e.SELECTION_CONTEXTMENU="selection:contextmenu",e.CONNECTION_NOT_ALLOWED="connection:not-allowed",e.HISTORY_CHANGE="history:change",e.TEXT_UPDATE="text:update",e.GRAPH_TRANSFORM="graph:transform",e.GRAPH_RENDERED="graph:rendered"})(it||(it={}));var Dt;(function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"})(Dt||(Dt={}));var sp=9999,gr;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.INCREASE=1]="INCREASE"})(gr||(gr={}));var Bt,fp,cp,dp,pp,hp,vp,yp;function Ma(e,r){return Ux(e)||$x(e,r)||kx(e,r)||Gx()}function Gx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  30. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kx(e,r){if(!!e){if(typeof e=="string")return gp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gp(e,r)}}function gp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function $x(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function Ux(e){if(Array.isArray(e))return e}function qn(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function Xx(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mp(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Yx(e,r,t){return r&&mp(e.prototype,r),t&&mp(e,t),e}function ef(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Rr(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Wx=(Bt=function(){function e(r){Xx(this,e),ef(this,"MINI_SCALE_SIZE",.2),ef(this,"MAX_SCALE_SIZE",16),qn(this,"SCALE_X",fp,this),qn(this,"SKEW_Y",cp,this),qn(this,"SKEW_X",dp,this),qn(this,"SCALE_Y",pp,this),qn(this,"TRANSLATE_X",hp,this),qn(this,"TRANSLATE_Y",vp,this),qn(this,"ZOOM_SIZE",yp,this),ef(this,"eventCenter",void 0),this.eventCenter=r}return Yx(e,[{key:"setZoomMiniSize",value:function(t){this.MINI_SCALE_SIZE=t}},{key:"setZoomMaxSize",value:function(t){this.MAX_SCALE_SIZE=t}},{key:"HtmlPointToCanvasPoint",value:function(t){var n=Ma(t,2),o=n[0],a=n[1];return[(o-this.TRANSLATE_X)/this.SCALE_X,(a-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(t){var n=Ma(t,2),o=n[0],a=n[1];return[o*this.SCALE_X+this.TRANSLATE_X,a*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(t,n,o){var a=Ma(t,2),l=a[0],p=a[1];return[l+n/this.SCALE_X,p+o/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(t,n){return[t/this.SCALE_X,n/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var t=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(t,")")}}},{key:"zoom",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=arguments.length>1?arguments[1]:void 0,o=this.SCALE_X,a=this.SCALE_Y;return t===!0?(o+=this.ZOOM_SIZE,a+=this.ZOOM_SIZE):t===!1?(o-=this.ZOOM_SIZE,a-=this.ZOOM_SIZE):typeof t=="number"&&(o=t,a=t),o<this.MINI_SCALE_SIZE||o>this.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(n&&(this.TRANSLATE_X-=(o-this.SCALE_X)*n[0],this.TRANSLATE_Y-=(a-this.SCALE_Y)*n[1]),this.SCALE_X=o,this.SCALE_Y=a,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))}},{key:"emitGraphTransform",value:function(t){this.eventCenter.emit(it.GRAPH_TRANSFORM,{type:t,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(t,n){this.TRANSLATE_X+=t,this.TRANSLATE_Y+=n,this.emitGraphTransform("translate")}},{key:"focusOn",value:function(t,n,o,a){var l=this.CanvasPointToHtmlPoint([t,n]),p=Ma(l,2),g=p[0],x=p[1],w=o/2-g,R=a/2-x;this.TRANSLATE_X+=w,this.TRANSLATE_Y+=R,this.emitGraphTransform("focusOn")}}]),e}(),fp=Rr(Bt.prototype,"SCALE_X",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),cp=Rr(Bt.prototype,"SKEW_Y",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dp=Rr(Bt.prototype,"SKEW_X",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),pp=Rr(Bt.prototype,"SCALE_Y",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),hp=Rr(Bt.prototype,"TRANSLATE_X",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vp=Rr(Bt.prototype,"TRANSLATE_Y",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),yp=Rr(Bt.prototype,"ZOOM_SIZE",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),Rr(Bt.prototype,"zoom",[f.k],Object.getOwnPropertyDescriptor(Bt.prototype,"zoom"),Bt.prototype),Rr(Bt.prototype,"resetZoom",[f.k],Object.getOwnPropertyDescriptor(Bt.prototype,"resetZoom"),Bt.prototype),Rr(Bt.prototype,"translate",[f.k],Object.getOwnPropertyDescriptor(Bt.prototype,"translate"),Bt.prototype),Rr(Bt.prototype,"focusOn",[f.k],Object.getOwnPropertyDescriptor(Bt.prototype,"focusOn"),Bt.prototype),Bt);function Kx(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var Vx=Kx;function Zx(e,r){return e&&Po(r,So(r),e)}var Jx=Zx;function Qx(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var qx=Qx,eS=Object.prototype,tS=eS.hasOwnProperty;function rS(e){if(!Tt(e))return qx(e);var r=ba(e),t=[];for(var n in e)n=="constructor"&&(r||!tS.call(e,n))||t.push(n);return t}var nS=rS;function oS(e){return Jn(e)?gd(e,!0):nS(e)}var di=oS;function iS(e,r){return e&&Po(r,di(r),e)}var aS=iS,bp=i(106);function uS(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var Op=uS;function lS(e,r){return Po(e,Ot(e),r)}var sS=lS,fS=md(Object.getPrototypeOf,Object),tf=fS,cS=Object.getOwnPropertySymbols,dS=cS?function(e){for(var r=[];e;)ui(r,Ot(e)),e=tf(e);return r}:de,Ep=dS;function pS(e,r){return Po(e,Ep(e),r)}var hS=pS;function vS(e){return O(e,di,Ep)}var yS=vS,gS=Object.prototype,mS=gS.hasOwnProperty;function bS(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&mS.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var OS=bS;function ES(e){var r=new e.constructor(e.byteLength);return new $t(r).set(new $t(e)),r}var rf=ES;function xS(e,r){var t=r?rf(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var SS=xS,PS=/\w*$/;function TS(e){var r=new e.constructor(e.source,PS.exec(e));return r.lastIndex=e.lastIndex,r}var MS=TS,xp=sr?sr.prototype:void 0,Sp=xp?xp.valueOf:void 0;function wS(e){return Sp?Object(Sp.call(e)):{}}var AS=wS;function NS(e,r){var t=r?rf(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var Pp=NS,DS="[object Boolean]",jS="[object Date]",CS="[object Map]",RS="[object Number]",IS="[object RegExp]",_S="[object Set]",BS="[object String]",LS="[object Symbol]",zS="[object ArrayBuffer]",FS="[object DataView]",HS="[object Float32Array]",GS="[object Float64Array]",kS="[object Int8Array]",$S="[object Int16Array]",US="[object Int32Array]",XS="[object Uint8Array]",YS="[object Uint8ClampedArray]",WS="[object Uint16Array]",KS="[object Uint32Array]";function VS(e,r,t){var n=e.constructor;switch(r){case zS:return rf(e);case DS:case jS:return new n(+e);case FS:return SS(e,t);case HS:case GS:case kS:case $S:case US:case XS:case YS:case WS:case KS:return Pp(e,t);case CS:return new n;case RS:case BS:return new n(e);case IS:return MS(e);case _S:return new n;case LS:return AS(e)}}var ZS=VS,Tp=Object.create,JS=function(){function e(){}return function(r){if(!Tt(r))return{};if(Tp)return Tp(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),QS=JS;function qS(e){return typeof e.constructor=="function"&&!ba(e)?QS(tf(e)):{}}var Mp=qS,e0="[object Map]";function t0(e){return Mt(e)&&si(e)==e0}var r0=t0,wp=xo.a&&xo.a.isMap,n0=wp?Hs(wp):r0,o0=n0,i0="[object Set]";function a0(e){return Mt(e)&&si(e)==i0}var u0=a0,Ap=xo.a&&xo.a.isSet,l0=Ap?Hs(Ap):u0,s0=l0,f0=1,c0=2,d0=4,Np="[object Arguments]",p0="[object Array]",h0="[object Boolean]",v0="[object Date]",y0="[object Error]",Dp="[object Function]",g0="[object GeneratorFunction]",m0="[object Map]",b0="[object Number]",jp="[object Object]",O0="[object RegExp]",E0="[object Set]",x0="[object String]",S0="[object Symbol]",P0="[object WeakMap]",T0="[object ArrayBuffer]",M0="[object DataView]",w0="[object Float32Array]",A0="[object Float64Array]",N0="[object Int8Array]",D0="[object Int16Array]",j0="[object Int32Array]",C0="[object Uint8Array]",R0="[object Uint8ClampedArray]",I0="[object Uint16Array]",_0="[object Uint32Array]",wt={};wt[Np]=wt[p0]=wt[T0]=wt[M0]=wt[h0]=wt[v0]=wt[w0]=wt[A0]=wt[N0]=wt[D0]=wt[j0]=wt[m0]=wt[b0]=wt[jp]=wt[O0]=wt[E0]=wt[x0]=wt[S0]=wt[C0]=wt[R0]=wt[I0]=wt[_0]=!0,wt[y0]=wt[Dp]=wt[P0]=!1;function wa(e,r,t,n,o,a){var l,p=r&f0,g=r&c0,x=r&d0;if(t&&(l=o?t(e,n,o,a):t(e)),l!==void 0)return l;if(!Tt(e))return e;var w=d(e);if(w){if(l=OS(e),!p)return Op(e,l)}else{var R=si(e),B=R==Dp||R==g0;if(Object(fn.a)(e))return Object(bp.a)(e,p);if(R==jp||R==Np||B&&!o){if(l=g||B?{}:Mp(e),!p)return g?hS(e,aS(l,e)):sS(e,Jx(l,e))}else{if(!wt[R])return o?e:{};l=ZS(e,R,p)}}a||(a=new An);var $=a.get(e);if($)return $;a.set(e,l),s0(e)?e.forEach(function(fe){l.add(wa(fe,r,t,fe,e,a))}):o0(e)&&e.forEach(function(fe,le){l.set(le,wa(fe,r,t,le,e,a))});var Q=x?g?yS:ks:g?di:So,oe=w?void 0:Q(e);return Vx(oe||e,function(fe,le){oe&&(le=fe,fe=e[le]),Ta(l,le,wa(fe,r,t,le,e,a))}),l}var B0=wa,L0=1,z0=4;function F0(e){return B0(e,L0|z0)}var jt=F0;function H0(e,r,t){(t!==void 0&&!Zt(e[r],t)||t===void 0&&!(r in e))&&Qs(e,r,t)}var nf=H0;function G0(e){return Mt(e)&&Jn(e)}var k0=G0,$0="[object Object]",U0=Function.prototype,X0=Object.prototype,Cp=U0.toString,Y0=X0.hasOwnProperty,W0=Cp.call(Object);function K0(e){if(!Mt(e)||$r(e)!=$0)return!1;var r=tf(e);if(r===null)return!0;var t=Y0.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Cp.call(t)==W0}var V0=K0;function Z0(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var of=Z0;function J0(e){return Po(e,di(e))}var Q0=J0;function q0(e,r,t,n,o,a,l){var p=of(e,t),g=of(r,t),x=l.get(g);if(x){nf(e,t,x);return}var w=a?a(p,g,t+"",e,r,l):void 0,R=w===void 0;if(R){var B=d(g),$=!B&&Object(fn.a)(g),Q=!B&&!$&&Gs(g);w=g,B||$||Q?d(p)?w=p:k0(p)?w=Op(p):$?(R=!1,w=Object(bp.a)(g,!0)):Q?(R=!1,w=Pp(g,!0)):w=[]:V0(g)||Dn(g)?(w=p,Dn(p)?w=Q0(p):(!Tt(p)||vo(p))&&(w=Mp(g))):R=!1}R&&(l.set(g,w),o(w,g,n,a,l),l.delete(g)),nf(e,t,w)}var eP=q0;function Rp(e,r,t,n,o){e!==r&&_d(r,function(a,l){if(o||(o=new An),Tt(a))eP(e,r,l,t,Rp,n,o);else{var p=n?n(of(e,l),a,l+"",e,r,o):void 0;p===void 0&&(p=a),nf(e,l,p)}},di)}var tP=Rp,rP=Fd(function(e,r,t){tP(e,r,t)}),Ip=rP,nP={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10 10",strokeDashoffset:"100%",animationName:"dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"}},_p=function(r){var t=jt(nP);return r&&(t=Ip(t,r)),t};i(78),i(158);function oP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Bp(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function iP(e,r,t){return r&&Bp(e.prototype,r),t&&Bp(e,t),e}function aP(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var uP="*",lP=function(){function e(){oP(this,e),aP(this,"_events",{})}return iP(e,[{key:"on",value:function(t,n,o){var a=this;return t==null||t.split(",").forEach(function(l){l=l.trim(),a._events[l]||(a._events[l]=[]),a._events[l].push({callback:n,once:!!o})}),this}},{key:"once",value:function(t,n){var o=this;t==null||t.split(",").forEach(function(a){return a=a.trim(),o.on(a,n,!0)})}},{key:"emit",value:function(t,n){var o=this;t==null||t.split(",").forEach(function(a){var l=o._events[a]||[],p=o._events[uP]||[],g=function(w){for(var R=w.length,B=0;B<R;B++)if(!!w[B]){var $=w[B],Q=$.callback,oe=$.once;oe&&(w.splice(B,1),w.length===0&&delete o._events[a],R--,B--),Q.apply(o,[n])}};g(l),g(p)})}},{key:"off",value:function(t,n){var o=this;return t||(this._events={}),t.split(",").forEach(function(a){if(!n)delete o._events[a];else{for(var l=o._events[a]||[],p=l.length,g=0;g<p;g++)l[g].callback===n&&(l.splice(g,1),p--,g--);l.length===0&&delete o._events[a]}}),this}},{key:"getEvents",value:function(){return this._events}}]),e}();function To(e,r){return r*Math.round(e/r)||e}function Lp(e,r){return e%r}function af(e,r){return dP(e)||cP(e,r)||fP(e,r)||sP()}function sP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  31. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fP(e,r){if(!!e){if(typeof e=="string")return zp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return zp(e,r)}}function zp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function cP(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function dP(e){if(Array.isArray(e))return e}var uf=function(r,t,n){var o=af(r,2),a=o[0],l=o[1],p=af(t,2),g=p[0],x=p[1],w=af(n,2),R=w[0],B=w[1];return a>g&&a<R&&l>x&&l<B},Fp=function(r,t){var n=t.multipleSelectKey,o=!1;switch(n){case"meta":o=r.metaKey;break;case"alt":o=r.altKey;break;case"shift":o=r.shiftKey;break;default:o=!1;break}return o};i(79),i(161),i(125),i(80),i(12),i(13),i(14),i(47),i(31);var Aa,pP=new Uint8Array(16);function hP(){if(!Aa&&(Aa=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Aa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Aa(pP)}var vP=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yP(e){return typeof e=="string"&&vP.test(e)}for(var gP=yP,Vt=[],lf=0;lf<256;++lf)Vt.push((lf+256).toString(16).substr(1));function mP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Vt[e[r+0]]+Vt[e[r+1]]+Vt[e[r+2]]+Vt[e[r+3]]+"-"+Vt[e[r+4]]+Vt[e[r+5]]+"-"+Vt[e[r+6]]+Vt[e[r+7]]+"-"+Vt[e[r+8]]+Vt[e[r+9]]+"-"+Vt[e[r+10]]+Vt[e[r+11]]+Vt[e[r+12]]+Vt[e[r+13]]+Vt[e[r+14]]+Vt[e[r+15]]).toLowerCase();if(!gP(t))throw TypeError("Stringified UUID is invalid");return t}var bP=mP;function OP(e,r,t){e=e||{};var n=e.random||(e.rng||hP)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){t=t||0;for(var o=0;o<16;++o)r[t+o]=n[o];return r}return bP(n)}var sf=OP,eo=function(){var r=sf();return r},EP=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=r.nodes.reduce(function(o,a){return o[a.id]=t+sf(),a.id=o[a.id],o},{});return r.edges.forEach(function(o){o.id=t+sf(),o.sourceNodeId=n[o.sourceNodeId],o.targetNodeId=n[o.targetNodeId]}),r};i(104),i(203);var xP=function(r,t,n,o){var a=(t.y-r.y)*(o.x-n.x)-(r.x-t.x)*(n.y-o.y);if(a===0)return!1;var l=((t.x-r.x)*(o.x-n.x)*(n.y-r.y)+(t.y-r.y)*(o.x-n.x)*r.x-(o.y-n.y)*(t.x-r.x)*n.x)/a,p=-((t.y-r.y)*(o.y-n.y)*(n.x-r.x)+(t.x-r.x)*(o.y-n.y)*r.y-(o.x-n.x)*(t.y-r.y)*n.y)/a;return(l-r.x)*(l-t.x)<=0&&(p-r.y)*(p-t.y)<=0&&(l-n.x)*(l-o.x)<=0&&(p-n.y)*(p-o.y)<=0?{x:l,y:p}:!1},pi=function(r,t,n){var o=r.x,a=r.y;return(o-t.x)*(o-n.x)<=0&&(a-t.y)*(a-n.y)<=0};function Na(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Na=function(t){return typeof t}:Na=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function Hp(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Gp(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Hp(Object(t),!0).forEach(function(n){SP(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Hp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function SP(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ff=function(r){var t=r.anchors;return t},Da=function(r,t){for(var n=t.nodes,o,a=n.length-1;a>=0;a--){var l=n[a],p=MP(r,l);if(p){var g=TP(r,l);if(g){var x={node:l,anchorIndex:g.index,anchor:g.anchor};(!o||PP(l,o.node,t))&&(o=x)}}}return o},PP=function(r,t,n){return r.zIndex>t.zIndex||n.nodesMap[r.id].index>n.nodesMap[t.id].index},TP=function(r,t){for(var n=ff(t),o,a=Number.MAX_SAFE_INTEGER,l=0;l<n.length;l++){var p=Yr(r.x,r.y,n[l].x,n[l].y);p<a&&(a=p,o={index:l,anchor:Gp(Gp({},n[l]),{},{x:n[l].x,y:n[l].y,id:n[l].id})})}return o},Yr=function(r,t,n,o){return Math.hypot(r-n,t-o)},jn=function(r,t){var n=!1,o=0,a=mr(t);return r.x>=a.minX-o&&r.x<=a.maxX+o&&r.y>=a.minY-o&&r.y<=a.maxY+o&&(n=!0),n},MP=function(r,t){var n=!1,o=5,a=mr(t);return r.x>=a.minX-o&&r.x<=a.maxX+o&&r.y>=a.minY-o&&r.y<=a.maxY+o&&(n=!0),n},mr=function(r){var t=r.x,n=r.y,o=r.width,a=r.height,l={minX:t-o/2,minY:n-a/2,maxX:t+o/2,maxY:n+a/2,x:t,y:n,width:o,height:a,centerX:t,centerY:n};return l},wP=function(r){var t=r,n=t.x,o=t.y,a=t.width,l=t.height,p=t.radius,g=[{x:n-a/2+p,y:o-l/2+p,r:p},{x:n+a/2-p,y:o-l/2+p,r:p},{x:n-a/2+p,y:o+l/2-p,r:p},{x:n+a/2-p,y:o+l/2-p,r:p}];return g},kp=function(r,t,n){var o=wP(n),a,l=Number.MAX_SAFE_INTEGER;o.forEach(function(g){var x=Yr(r.x,r.y,g.x,g.y);x<l&&(l=x,a=g)});var p=cf(r,t,a);return p},cf=function(r,t,n){var o,a=n,l=a.x,p=a.y,g=a.r;if(t===Dt.HORIZONTAL){var x=l-Math.sqrt(g*g-(r.y-p)*(r.y-p)),w=l+Math.sqrt(g*g-(r.y-p)*(r.y-p)),R=Math.abs(x-r.x)<Math.abs(w-r.x)?x:w;o={x:R,y:r.y}}else if(t===Dt.VERTICAL){var B=p-Math.sqrt(g*g-(r.x-l)*(r.x-l)),$=p+Math.sqrt(g*g-(r.x-l)*(r.x-l)),Q=Math.abs(B-r.y)<Math.abs($-r.y)?B:$;o={x:r.x,y:Q}}return o},$p=function(r,t){var n=t,o=!1,a={minX:n.x-n.width/2+n.radius,maxX:n.x+n.width/2-n.radius,minY:n.y-n.height/2+n.radius,maxY:n.y+n.height/2-n.radius},l=n.x,p=n.y,g=n.width,x=n.height;return r.y===p+x/2||r.y===p-x/2?o=r.x>a.minX&&r.x<a.maxX:(r.x===l+g/2||r.x===l-g/2)&&(o=r.y>a.minY&&r.y<a.maxY),o},Up=function(r,t,n){var o,a=n,l=a.x,p=a.y,g=a.rx,x=a.ry;if(t===Dt.HORIZONTAL){var w=l-Math.sqrt(g*g-(r.y-p)*(r.y-p)*g*g/(x*x)),R=l+Math.sqrt(g*g-(r.y-p)*(r.y-p)*g*g/(x*x)),B=Math.abs(w-r.x)<Math.abs(R-r.x)?w:R;o={x:B,y:r.y}}else if(t===Dt.VERTICAL){var $=p-Math.sqrt(x*x-(r.x-l)*(r.x-l)*x*x/(g*g)),Q=p+Math.sqrt(x*x-(r.x-l)*(r.x-l)*x*x/(g*g)),oe=Math.abs($-r.y)<Math.abs(Q-r.y)?$:Q;o={x:r.x,y:oe}}return o},ja=function(r,t,n){for(var o=n,a=o.pointsPosition,l=Number.MAX_SAFE_INTEGER,p,g=[],x=0;x<a.length;x++)g.push({start:a[x],end:a[(x+1)%a.length]});return g.forEach(function(w){var R=w.start,B=w.end,$=R,Q=B;R.x>B.x&&($=B,Q=R);var oe={x:r.x,y:r.y};if($.x===Q.x&&t===Dt.HORIZONTAL&&(oe={x:$.x,y:r.y}),$.y===Q.y&&t===Dt.VERTICAL&&(oe={x:r.x,y:$.y}),$.x!==Q.x&&$.y!==Q.y){var fe=(Q.y-$.y)/(Q.x-$.x),le=($.x*Q.y-Q.x*$.y)/($.x-Q.x);t===Dt.HORIZONTAL?oe={x:(r.y-le)/fe,y:r.y}:t===Dt.VERTICAL&&(oe={x:r.x,y:fe*r.x+le})}var Ne=pi(oe,R,B);if(Ne){var Se=Yr(oe.x,oe.y,r.x,r.y);Se<l&&(l=Se,p=oe)}}),p},AP=function(r){var t=ci(r,["id","type","x","y","text","properties"]);return t},Xp=function(r,t,n,o){var a=r.x,l=r.y;return t.x>r.x?a=r.x+n/2:t.x<r.x&&(a=r.x-n/2),t.y>r.y?l=r.y+o/2:t.y<r.y&&(l=r.y-o/2),{x:a,y:l}},Yp=function(r){var t=r.rows,n=r.style,o=r.rowsLength,a=r.className,l=document.createElement("div");l.style.fontSize=n.fontSize,l.style.width=n.width,l.className=a,l.style.lineHeight=n.lineHeight,l.style.padding=n.padding,n.fontFamily&&(l.style.fontFamily=n.fontFamily),o>1?t.forEach(function(g){var x=document.createElement("div");x.textContent=g,l.appendChild(x)}):l.textContent=t,document.body.appendChild(l);var p=l.clientHeight;return document.body.removeChild(l),p},df=function(r){var t=r.rows,n=r.rowsLength,o=r.fontSize,a=0;return t&&t.forEach(function(l){var p=Bh(l);a=p>a?p:a}),{width:Math.ceil(a/2)*o+o/4,height:n*(o+2)+o/4}},Ca=function(r){return Na(r)!=="object"?{isAllPass:!!r,msg:r?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:r},Wp={node:!1,edge:!1},NP={node:!0,edge:!0},DP={stroke:"red",strokeDasharray:"10 200",className:"lf-edge-animation"},er=function(r){try{return JSON.parse(JSON.stringify(r))}catch{return r}},jP=1e3,CP=999,pf=function(){return++jP},RP=function(){return--CP},Te,Kp,Vp,Zp,Jp,Qp,qp,eh,th,rh,nh,oh,ih,ah,uh,lh,sh,fh,ch,dh;function ph(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Ir(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ph(Object(t),!0).forEach(function(n){wr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ph(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function kt(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function IP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function hh(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _P(e,r,t){return r&&hh(e.prototype,r),t&&hh(e,t),e}function wr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ot(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var hf=(Te=function(){function e(r,t){IP(this,e),wr(this,"id",eo()),kt(this,"type",Kp,this),kt(this,"sourceNodeId",Vp,this),kt(this,"targetNodeId",Zp,this),kt(this,"startPoint",Jp,this),kt(this,"endPoint",Qp,this),kt(this,"text",qp,this),kt(this,"properties",eh,this),kt(this,"points",th,this),kt(this,"pointsList",rh,this),kt(this,"isSelected",nh,this),kt(this,"isHovered",oh,this),kt(this,"isHitable",ih,this),kt(this,"draggable",ah,this),kt(this,"visible",uh,this),kt(this,"isAnimation",lh,this),wr(this,"graphModel",void 0),kt(this,"zIndex",sh,this),wr(this,"BaseType",Gt.EDGE),wr(this,"modelType",dt.EDGE),kt(this,"state",fh,this),wr(this,"additionStateData",void 0),wr(this,"sourceAnchorId",""),wr(this,"targetAnchorId",""),wr(this,"menu",void 0),wr(this,"customTextPosition",!1),wr(this,"animationData",DP),kt(this,"style",ch,this),kt(this,"arrowConfig",dh,this),this.graphModel=t,this.initEdgeData(r),this.setAttributes(),this.setAnchors(),this.initPoints(),this.formatText(r)}return _P(e,[{key:"initEdgeData",value:function(t){if(t.properties||(t.properties={}),!t.id){var n=this.graphModel.idGenerator,o=n&&n(t.type);o&&(t.id=o);var a=this.createId();a&&(t.id=a)}or(this,PT(t));var l=this.graphModel.overlapMode;l===gr.INCREASE&&(this.zIndex=t.zIndex||pf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Ir(Ir({},this.graphModel.theme.baseEdge),this.style)}},{key:"getTextStyle",value:function(){var t=this.graphModel.theme.edgeText;return jt(t)}},{key:"getAnimation",value:function(){var t=this.animationData;return jt(t)}},{key:"getEdgeAnimationStyle",value:function(){var t=this.graphModel.theme.edgeAnimation;return jt(t)}},{key:"getOutlineStyle",value:function(){var t=this.graphModel,n=t.theme.outline;return jt(n)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var t,n;return(t=this.graphModel)===null||t===void 0||(n=t.nodesMap[this.sourceNodeId])===null||n===void 0?void 0:n.model}},{key:"targetNode",get:function(){var t,n;return(t=this.graphModel)===null||t===void 0||(n=t.nodesMap[this.targetNodeId])===null||n===void 0?void 0:n.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(t,n){var o,a,l=ff(t);return l.forEach(function(p){var g=Fh(p,n);a?g<a&&(a=g,o=p):(a=g,o=p)}),o}},{key:"getEndAnchor",value:function(t){var n=this,o,a,l=ff(t);return l.forEach(function(p){var g=Fh(p,n.startPoint);a?g<a&&(a=g,o=p):(a=g,o=p)}),o}},{key:"getProperties",value:function(){return Object(f.I)(this.properties)}},{key:"getData",value:function(){var t=this.text,n=t.x,o=t.y,a=t.value,l={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(f.I)(this.properties)};return a&&(l.text={x:n,y:o,value:a}),this.graphModel.overlapMode===gr.INCREASE&&(l.zIndex=this.zIndex),l}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(t,n){this.properties[t]=er(n),this.setAttributes()}},{key:"setProperties",value:function(t){this.properties=Ir(Ir({},this.properties),er(t)),this.setAttributes()}},{key:"setStyle",value:function(t,n){this.style=Ir(Ir({},this.style),{},wr({},t,er(n)))}},{key:"setStyles",value:function(t){this.style=Ir(Ir({},this.style),er(t))}},{key:"updateStyles",value:function(t){this.style=Ir({},er(t))}},{key:"formatText",value:function(t){var n=this.textPosition,o=n.x,a=n.y;if(!t.text||typeof t.text=="string"){this.text={value:t.text||"",x:o,y:a,draggable:this.text.draggable,editable:this.text.editable};return}Object.prototype.toString.call(t.text)==="[object Object]"&&(this.text={x:t.text.x||o,y:t.text.y||a,value:t.text.value||"",draggable:this.text.draggable,editable:this.text.editable})}},{key:"resetTextPosition",value:function(){var t=this.textPosition,n=t.x,o=t.y;this.text.x=n,this.text.y=o}},{key:"moveText",value:function(t,n){if(this.text){var o=this.text,a=o.x,l=o.y,p=o.value,g=o.draggable,x=o.editable;this.text={value:p,draggable:g,x:a+t,y:l+n,editable:x}}}},{key:"setText",value:function(t){t&&or(this.text,t)}},{key:"updateText",value:function(t){this.text=Ir(Ir({},this.text),{},{value:t})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var t=this.getBeginAnchor(this.sourceNode,this.targetNode);this.startPoint||(this.startPoint={x:t.x,y:t.y}),this.sourceAnchorId||(this.sourceAnchorId=t.id)}if(!this.targetAnchorId||!this.endPoint){var n=this.getEndAnchor(this.targetNode);this.endPoint||(this.endPoint={x:n.x,y:n.y}),this.targetAnchorId||(this.targetAnchorId=n.id)}}},{key:"setSelected",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isSelected=t}},{key:"setHovered",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isHovered=t}},{key:"setHitable",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isHitable=t}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(t,n){this.state=t,this.additionStateData=n}},{key:"updateStartPoint",value:function(t){this.startPoint=t}},{key:"moveStartPoint",value:function(t,n){this.startPoint.x+=t,this.startPoint.y+=n}},{key:"updateEndPoint",value:function(t){this.endPoint=t}},{key:"moveEndPoint",value:function(t,n){this.endPoint.x+=t,this.endPoint.y+=n}},{key:"setZIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=t}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(t){or(this,t)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(t){var n=t.startPoint,o=t.endPoint;this.updateStartPoint({x:n.x,y:n.y}),this.updateEndPoint({x:o.x,y:o.y})}}]),e}(),Kp=ot(Te.prototype,"type",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Vp=ot(Te.prototype,"sourceNodeId",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Zp=ot(Te.prototype,"targetNodeId",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Jp=ot(Te.prototype,"startPoint",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qp=ot(Te.prototype,"endPoint",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qp=ot(Te.prototype,"text",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),eh=ot(Te.prototype,"properties",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),th=ot(Te.prototype,"points",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rh=ot(Te.prototype,"pointsList",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),nh=ot(Te.prototype,"isSelected",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oh=ot(Te.prototype,"isHovered",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ih=ot(Te.prototype,"isHitable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ah=ot(Te.prototype,"draggable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),uh=ot(Te.prototype,"visible",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),lh=ot(Te.prototype,"isAnimation",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sh=ot(Te.prototype,"zIndex",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),fh=ot(Te.prototype,"state",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ch=ot(Te.prototype,"style",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),dh=ot(Te.prototype,"arrowConfig",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:""}}}),ot(Te.prototype,"sourceNode",[f.m],Object.getOwnPropertyDescriptor(Te.prototype,"sourceNode"),Te.prototype),ot(Te.prototype,"targetNode",[f.m],Object.getOwnPropertyDescriptor(Te.prototype,"targetNode"),Te.prototype),ot(Te.prototype,"textPosition",[f.m],Object.getOwnPropertyDescriptor(Te.prototype,"textPosition"),Te.prototype),ot(Te.prototype,"setProperty",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setProperty"),Te.prototype),ot(Te.prototype,"setProperties",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setProperties"),Te.prototype),ot(Te.prototype,"setStyle",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setStyle"),Te.prototype),ot(Te.prototype,"setStyles",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setStyles"),Te.prototype),ot(Te.prototype,"updateStyles",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateStyles"),Te.prototype),ot(Te.prototype,"formatText",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"formatText"),Te.prototype),ot(Te.prototype,"resetTextPosition",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"resetTextPosition"),Te.prototype),ot(Te.prototype,"moveText",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"moveText"),Te.prototype),ot(Te.prototype,"setText",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setText"),Te.prototype),ot(Te.prototype,"updateText",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateText"),Te.prototype),ot(Te.prototype,"setAnchors",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setAnchors"),Te.prototype),ot(Te.prototype,"setSelected",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setSelected"),Te.prototype),ot(Te.prototype,"setHovered",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setHovered"),Te.prototype),ot(Te.prototype,"setHitable",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setHitable"),Te.prototype),ot(Te.prototype,"openEdgeAnimation",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"openEdgeAnimation"),Te.prototype),ot(Te.prototype,"closeEdgeAnimation",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"closeEdgeAnimation"),Te.prototype),ot(Te.prototype,"setElementState",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setElementState"),Te.prototype),ot(Te.prototype,"updateStartPoint",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateStartPoint"),Te.prototype),ot(Te.prototype,"moveStartPoint",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"moveStartPoint"),Te.prototype),ot(Te.prototype,"updateEndPoint",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateEndPoint"),Te.prototype),ot(Te.prototype,"moveEndPoint",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"moveEndPoint"),Te.prototype),ot(Te.prototype,"setZIndex",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"setZIndex"),Te.prototype),ot(Te.prototype,"initPoints",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"initPoints"),Te.prototype),ot(Te.prototype,"updateAttributes",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateAttributes"),Te.prototype),ot(Te.prototype,"getAdjustStart",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"getAdjustStart"),Te.prototype),ot(Te.prototype,"getAdjustEnd",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"getAdjustEnd"),Te.prototype),ot(Te.prototype,"updateAfterAdjustStartAndEnd",[f.k],Object.getOwnPropertyDescriptor(Te.prototype,"updateAfterAdjustStartAndEnd"),Te.prototype),Te),vf=hf;function Ra(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ra=function(t){return typeof t}:Ra=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function vh(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function yh(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?vh(Object(t),!0).forEach(function(n){bh(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function BP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function gh(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function LP(e,r,t){return r&&gh(e.prototype,r),t&&gh(e,t),e}function Ia(){return typeof Reflect!="undefined"&&Reflect.get?Ia=Reflect.get:Ia=function(r,t,n){var o=zP(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Ia.apply(this,arguments)}function zP(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Mo(e),e!==null););return e}function FP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&yf(e,r)}function yf(e,r){return yf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},yf(e,r)}function HP(e){var r=kP();return function(){var n=Mo(e),o;if(r){var a=Mo(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return GP(this,o)}}function GP(e,r){if(r&&(Ra(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mh(e)}function mh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Mo(e)}function bh(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var gf=function(e){FP(t,e);var r=HP(t);function t(){var n;BP(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),bh(mh(n),"modelType",dt.LINE_EDGE),n}return LP(t,[{key:"getEdgeStyle",value:function(){var o=this.graphModel.theme.line,a=Ia(Mo(t.prototype),"getEdgeStyle",this).call(this);return yh(yh({},a),jt(o))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}]),t}(vf);function _a(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_a=function(t){return typeof t}:_a=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}var at,Oh;function $P(e,r){return WP(e)||YP(e,r)||XP(e,r)||UP()}function UP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  32. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XP(e,r){if(!!e){if(typeof e=="string")return Eh(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eh(e,r)}}function Eh(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function YP(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function WP(e){if(Array.isArray(e))return e}function xh(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Sh(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?xh(Object(t),!0).forEach(function(n){bf(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function KP(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function VP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ph(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ZP(e,r,t){return r&&Ph(e.prototype,r),t&&Ph(e,t),e}function wo(){return typeof Reflect!="undefined"&&Reflect.get?wo=Reflect.get:wo=function(r,t,n){var o=JP(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},wo.apply(this,arguments)}function JP(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Cn(e),e!==null););return e}function QP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&mf(e,r)}function mf(e,r){return mf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},mf(e,r)}function qP(e){var r=tT();return function(){var n=Cn(e),o;if(r){var a=Cn(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return eT(this,o)}}function eT(e,r){if(r&&(_a(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hi(e)}function hi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cn(e){return Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Cn(e)}function bf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ir(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Of=(at=function(e){QP(t,e);var r=qP(t);function t(){var n;VP(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),bf(hi(n),"modelType",dt.POLYLINE_EDGE),bf(hi(n),"draginngPointList",void 0),KP(hi(n),"dbClickPosition",Oh,hi(n)),n}return ZP(t,[{key:"initEdgeData",value:function(o){this.offset=30,wo(Cn(t.prototype),"initEdgeData",this).call(this,o)}},{key:"getEdgeStyle",value:function(){var o=this.graphModel.theme.polyline,a=wo(Cn(t.prototype),"getEdgeStyle",this).call(this);return Sh(Sh({},a),jt(o))}},{key:"getTextPosition",value:function(){var o,a=(o=this.text)===null||o===void 0?void 0:o.value;if(this.dbClickPosition&&!a){var l=this.dbClickPosition,p=l.x,g=l.y;return{x:p,y:g}}var x=Ao(this.points),w=OT(x),R=$P(w,2),B=R[0],$=R[1];return{x:(B.x+$.x)/2,y:(B.y+$.y)/2}}},{key:"getAfterAnchor",value:function(o,a,l){var p,g;return l.forEach(function(x){var w;o===Dt.HORIZONTAL?w=Math.abs(a.y-x.y):o===Dt.VERTICAL&&(w=Math.abs(a.x-x.x)),(!g||g>w)&&(g=w,p=x)}),p}},{key:"getCorssPoint",value:function(o,a,l){var p;return o===Dt.HORIZONTAL?p={x:l.x,y:a.y}:o===Dt.VERTICAL&&(p={x:a.x,y:l.y}),p}},{key:"removeCrossPoints",value:function(o,a,l){var p=l.map(function(Ie){return Ie});if(o===1){var g=p[o],x=p[a],w=p[o-1],R=Ch(w,g,this.sourceNode);if(R){var B=Rh(g,x,this.sourceNode);if(B){var $=Ih(g,x,this.sourceNode);$&&(p[o]=$,p.splice(o-1,1),o--,a--)}}else{var Q=this.sourceNode.anchors;Q.forEach(function(Ie){if(Ie.x===w.x&&Ie.x===g.x||Ie.y===w.y&&Ie.y===g.y){var Je=Yr(Ie.x,Ie.y,g.x,g.y),ke=Yr(w.x,w.y,g.x,g.y);Je<ke&&(p[o-1]=Ie)}})}}if(a===l.length-2){var oe=p[o],fe=p[a],le=p[a+1],Ne=Ch(fe,le,this.targetNode);if(Ne){var Se=Rh(oe,fe,this.targetNode);if(Se){var Pe=Ih(oe,fe,this.targetNode);Pe&&(p[a]=Pe,p.splice(a+1,1))}}else{var Ge=this.targetNode.anchors;Ge.forEach(function(Ie){if(Ie.x===le.x&&Ie.x===fe.x||Ie.y===le.y&&Ie.y===fe.y){var Je=Yr(Ie.x,Ie.y,fe.x,fe.y),ke=Yr(le.x,le.y,fe.x,fe.y);Je<ke&&(p[a+1]=Ie)}})}}return p}},{key:"getDragingPoints",value:function(o,a,l,p,g){var x=g.map(function(B){return B}),w=this.getAfterAnchor(o,l,p),R=this.getCorssPoint(o,l,w);return a==="start"?(x.unshift(R),x.unshift(w)):(x.push(R),x.push(w)),x}},{key:"updateCrossPoints",value:function(o){var a=o.map(function(Pe){return Pe}),l=o[0],p=o[1],g=o[a.length-2],x=o[a.length-1],w=this.sourceNode,R=this.targetNode,B=w.modelType,$=R.modelType,Q=ka(l,p),oe=a[0];switch(B){case dt.RECT_NODE:if(w.radius!==0){var fe=$p(l,w);fe||(oe=kp(l,Q,w))}break;case dt.CIRCLE_NODE:oe=cf(l,Q,w);break;case dt.ELLIPSE_NODE:oe=Up(l,Q,w);break;case dt.DIAMOND_NODE:oe=ja(l,Q,w);break;case dt.POLYGON_NODE:oe=ja(l,Q,w);break}a[0]=oe;var le=ka(g,x),Ne=a[a.length-1];switch($){case dt.RECT_NODE:if(R.radius!==0){var Se=$p(x,R);Se||(Ne=kp(x,le,R))}break;case dt.CIRCLE_NODE:Ne=cf(x,le,R);break;case dt.ELLIPSE_NODE:Ne=Up(x,le,R);break;case dt.DIAMOND_NODE:Ne=ja(x,le,R);break;case dt.POLYGON_NODE:Ne=ja(x,le,R);break}return a[a.length-1]=Ne,a}},{key:"getData",value:function(){var o=wo(Cn(t.prototype),"getData",this).call(this),a=this.pointsList.map(function(l){var p=l.x,g=l.y;return{x:p,y:g}});return Object.assign({},o,{pointsList:a})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var o=jh({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=o,this.points=o.map(function(a){return"".concat(a.x,",").concat(a.y)}).join(" ")}},{key:"updateStartPoint",value:function(o){this.startPoint=o,this.updatePoints()}},{key:"moveStartPoint",value:function(o,a){this.startPoint.x+=o,this.startPoint.y+=a,this.updatePoints()}},{key:"updateEndPoint",value:function(o){this.endPoint=o,this.updatePoints()}},{key:"moveEndPoint",value:function(o,a){this.endPoint.x+=o,this.endPoint.y+=a,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draginngPointList=this.pointsList.map(function(o){return o})}},{key:"dragAppendSimple",value:function(o,a){this.isDragging=!0;var l=o.start,p=o.end,g=o.startIndex,x=o.endIndex,w=o.direction,R=this.pointsList,B=R;return w===Dt.HORIZONTAL?(R[g]={x:l.x,y:l.y+a.y},R[x]={x:p.x,y:p.y+a.y},B=this.pointsList.map(function($){return $})):w===Dt.VERTICAL&&(R[g]={x:l.x+a.x,y:l.y},R[x]={x:p.x+a.x,y:p.y},B=this.pointsList.map(function($){return $})),this.updatePointsAfterDrage(B),this.draginngPointList=B,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[g]),end:Object.assign({},R[x]),startIndex:g,endIndex:x,direction:w}}},{key:"dragAppend",value:function(o,a){this.isDragging=!0;var l=o.start,p=o.end,g=o.startIndex,x=o.endIndex,w=o.direction,R=this.pointsList;if(w===Dt.HORIZONTAL){R[g]={x:l.x,y:l.y+a.y},R[x]={x:p.x,y:p.y+a.y};var B=this.pointsList.map(function(yt){return yt});if(g!==0&&x!==this.pointsList.length-1&&(B=this.removeCrossPoints(g,x,B)),g===0){var $={x:l.x,y:l.y+a.y},Q=jn($,this.sourceNode);if(!Q){var oe=this.sourceNode.anchors;B=this.getDragingPoints(w,"start",$,oe,B)}}if(x===this.pointsList.length-1){var fe={x:p.x,y:p.y+a.y},le=jn(fe,this.targetNode);if(!le){var Ne=this.targetNode.anchors;B=this.getDragingPoints(w,"end",fe,Ne,B)}}B=Tf(B),this.updatePointsAfterDrage(B),this.draginngPointList=B}else if(w===Dt.VERTICAL){R[g]={x:l.x+a.x,y:l.y},R[x]={x:p.x+a.x,y:p.y};var Se=this.pointsList.map(function(yt){return yt});if(g!==0&&x!==this.pointsList.length-1&&(Se=this.removeCrossPoints(g,x,Se)),g===0){var Pe={x:l.x+a.x,y:l.y},Ge=jn(Pe,this.sourceNode);if(!Ge){var Ie=this.sourceNode.anchors;Se=this.getDragingPoints(w,"start",Pe,Ie,Se)}}if(x===this.pointsList.length-1){var Je={x:p.x+a.x,y:p.y},ke=jn(Je,this.targetNode);if(!ke){var pt=this.targetNode.anchors;Se=this.getDragingPoints(w,"end",Je,pt,Se)}}Se=Tf(Se),this.updatePointsAfterDrage(Se),this.draginngPointList=Se}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[g]),end:Object.assign({},R[x]),startIndex:g,endIndex:x,direction:w}}},{key:"dragAppendEnd",value:function(){if(this.draginngPointList){var o=Ao(this.points);this.pointsList=o.map(function(p){return p}),this.draginngPointList=[];var a=o[0];this.startPoint=Object.assign({},a);var l=o[o.length-1];this.endPoint=Object.assign({},l)}this.isDragging=!1}},{key:"updatePointsAfterDrage",value:function(o){var a=this.updateCrossPoints(o);this.points=a.map(function(l){return"".concat(l.x,",").concat(l.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var o=this.pointsList;return o[o.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(o){var a=o.startPoint,l=o.endPoint,p=o.sourceNode,g=o.targetNode,x=jh({x:a.x,y:a.y},{x:l.x,y:l.y},p,g,this.offset||0);this.pointsList=x,this.initPoints()}}]),t}(vf),Oh=ir(at.prototype,"dbClickPosition",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ir(at.prototype,"initPoints",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"initPoints"),at.prototype),ir(at.prototype,"updatePoints",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"updatePoints"),at.prototype),ir(at.prototype,"updateStartPoint",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"updateStartPoint"),at.prototype),ir(at.prototype,"moveStartPoint",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"moveStartPoint"),at.prototype),ir(at.prototype,"updateEndPoint",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"updateEndPoint"),at.prototype),ir(at.prototype,"moveEndPoint",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"moveEndPoint"),at.prototype),ir(at.prototype,"dragAppendStart",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"dragAppendStart"),at.prototype),ir(at.prototype,"dragAppendSimple",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"dragAppendSimple"),at.prototype),ir(at.prototype,"dragAppend",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"dragAppend"),at.prototype),ir(at.prototype,"dragAppendEnd",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"dragAppendEnd"),at.prototype),ir(at.prototype,"updatePointsAfterDrage",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"updatePointsAfterDrage"),at.prototype),ir(at.prototype,"getAdjustStart",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"getAdjustStart"),at.prototype),ir(at.prototype,"getAdjustEnd",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"getAdjustEnd"),at.prototype),ir(at.prototype,"updateAfterAdjustStartAndEnd",[f.k],Object.getOwnPropertyDescriptor(at.prototype,"updateAfterAdjustStartAndEnd"),at.prototype),at),vi=function(r){var t=r.start,n=r.end,o=r.offset,a=r.verticalLength,l=r.type,p={leftX:0,leftY:0,rightX:0,rightY:0},g=Math.atan((n.y-t.y)/(n.x-t.x)),x=Math.atan(o/a),w=Math.sqrt(a*a+o*o);return l==="start"?n.x>=t.x?(p.leftX=t.x+w*Math.sin(g+x),p.leftY=t.y-w*Math.cos(g+x),p.rightX=t.x-w*Math.sin(g-x),p.rightY=t.y+w*Math.cos(g-x)):(p.leftX=t.x-w*Math.sin(g+x),p.leftY=t.y+w*Math.cos(g+x),p.rightX=t.x+w*Math.sin(g-x),p.rightY=t.y-w*Math.cos(g-x)):l==="end"&&(n.x>=t.x?(p.leftX=n.x+w*Math.sin(g-x),p.leftY=n.y-w*Math.cos(g-x),p.rightX=n.x-w*Math.sin(g+x),p.rightY=n.y+w*Math.cos(g+x)):(p.leftX=n.x-w*Math.sin(g-x),p.leftY=n.y+w*Math.cos(g-x),p.rightX=n.x+w*Math.sin(g+x),p.rightY=n.y-w*Math.cos(g+x))),p};function Th(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Ba(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Th(Object(t),!0).forEach(function(n){rT(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Th(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function rT(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nT(e){return aT(e)||iT(e)||Mh(e)||oT()}function oT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  33. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iT(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aT(e){if(Array.isArray(e))return xf(e)}function La(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?La=function(t){return typeof t}:La=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function Ef(e,r){return sT(e)||lT(e,r)||Mh(e,r)||uT()}function uT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  34. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mh(e,r){if(!!e){if(typeof e=="string")return xf(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return xf(e,r)}}function xf(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function lT(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function sT(e){if(Array.isArray(e))return e}var fT=function(r,t){return Math.abs(r.centerX-t.centerX)*2<r.width+t.width&&Math.abs(r.centerY-t.centerY)*2<r.height+t.height},Sf=function(r){var t=[],n={};return r.forEach(function(o){var a="".concat(o.x,"-").concat(o.y);o.id=a,n[a]=o}),Object.keys(n).forEach(function(o){t.push(n[o])}),t},za=function(r,t){return r.width===0&&r.height===0?r:{centerX:r.centerX,centerY:r.centerY,minX:r.minX-t,minY:r.minY-t,maxX:r.maxX+t,maxY:r.maxY+t,height:r.height+2*t,width:r.width+2*t}},cT=function(r,t){var n=Math.abs(r.x-t.centerX),o=Math.abs(r.y-t.centerY);return n/t.width>o/t.height?Dt.HORIZONTAL:Dt.VERTICAL},Fa=function(r,t){var n=cT(t,r);return n===Dt.HORIZONTAL?{x:t.x>r.centerX?r.maxX:r.minX,y:t.y}:{x:t.x,y:t.y>r.centerY?r.maxY:r.minY}},wh=function(r,t){var n=Math.min(r.minX,t.minX),o=Math.min(r.minY,t.minY),a=Math.max(r.maxX,t.maxX),l=Math.max(r.maxY,t.maxY);return{centerX:(n+a)/2,centerY:(o+l)/2,minX:n,minY:o,maxX:a,maxY:l,height:l-o,width:a-n}},yi=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[],o=[];r.forEach(function(R){n.push(R.x),o.push(R.y)});var a=Math.min.apply(Math,n),l=Math.max.apply(Math,n),p=Math.min.apply(Math,o),g=Math.max.apply(Math,o),x=l-a,w=g-p;return t&&(x+=t,w+=t),{centerX:(a+l)/2,centerY:(p+g)/2,maxX:l,maxY:g,minX:a,minY:p,x:(a+l)/2,y:(p+g)/2,height:w,width:x}},Ha=function(r){var t=r.minX,n=r.minY,o=r.maxX,a=r.maxY;return[{x:t,y:n},{x:o,y:n},{x:o,y:a},{x:t,y:a}]},Ga=function(r,t){var n=r.x,o=r.y;return n<t.minX||n>t.maxX||o<t.minY||o>t.maxY},dT=function(r,t){return t<r.minX||t>r.maxX?[]:[{x:t,y:r.minY},{x:t,y:r.maxY}]},pT=function(r,t){return t<r.minY||t>r.maxY?[]:[{x:r.minX,y:t},{x:r.maxX,y:t}]},hT=function(r,t){return dT(r,t.x).concat(pT(r,t.y))},Pf=function(r,t){return Math.abs(r.x-t.x)+Math.abs(r.y-t.y)},vT=function(r,t){var n=-2,o=0;return t.forEach(function(a){a&&(r.x===a.x&&(o+=n),r.y===a.y&&(o+=n))}),o},Ah=function(r,t,n,o,a){return Pf(r,t)+Pf(r,n)+vT(r,[t,n,o,a])},yT=function e(r,t,n,o,a){a||(a=0),r.unshift(t[o]),n[o]&&n[o]!==o&&a<=100&&e(r,t,n,n[o],a+1)},gT=function(r,t){var n=r.indexOf(t);n>-1&&r.splice(n,1)},gi=function(r,t,n,o){var a=t.x-r.x,l=t.y-r.y,p=o.x-n.x,g=o.y-n.y,x=(-l*(r.x-n.x)+a*(r.y-n.y))/(-p*l+a*g),w=(p*(r.y-n.y)-g*(r.x-n.x))/(-p*l+a*g);return x>=0&&x<=1&&w>=0&&w<=1},Nh=function(r,t,n){if(n.width===0&&n.height===0)return!1;var o=Ha(n),a=Ef(o,4),l=a[0],p=a[1],g=a[2],x=a[3];return gi(r,t,l,p)||gi(r,t,l,x)||gi(r,t,p,g)||gi(r,t,g,x)},mT=function(r,t,n,o){var a=[];return r.forEach(function(l){l!==t&&(l.x===t.x||l.y===t.y)&&!Nh(l,t,n)&&!Nh(l,t,o)&&a.push(l)}),Sf(a)},bT=function(r,t,n,o,a,l,p){var g=[],x=[t],w={},R={},B={};R[t.id]=0,B[t.id]=Ah(t,n,t);var $={};r.forEach(function(fe){$[fe.id]=fe});for(var Q=function(){var le=void 0,Ne=1/0;if(x.forEach(function(Pe){B[Pe.id]<Ne&&(Ne=B[Pe.id],le=Pe)}),le===n){var Se=[];return yT(Se,$,w,n.id),{v:Se}}gT(x,le),g.push(le),mT(r,le,o,a).forEach(function(Pe){if(g.indexOf(Pe)===-1){x.indexOf(Pe)===-1&&x.push(Pe);var Ge=B[le.id]+Pf(le,Pe);R[Pe.id]&&Ge>=R[Pe.id]||(w[Pe.id]=le.id,R[Pe.id]=Ge,B[Pe.id]=R[Pe.id]+Ah(Pe,n,t,l,p))}})};x.length;){var oe=Q();if(La(oe)==="object")return oe.v}return[t,n]},Dh=function(r){var t=mr(r);return t},Tf=function(r){for(var t=r,n=1;n<t.length-1;){var o=t[n-1],a=t[n],l=t[n+1];o.x===a.x&&a.x===l.x||o.y===a.y&&a.y===l.y?t.splice(n,1):n++}return t},jh=function(r,t,n,o,a){var l=Dh(n),p=Dh(o),g=za(l,a),x=za(p,a),w=Fa(g,r),R=Fa(x,t);if(fT(g,x)){var B=ET(r,t,w,R);return[r,w].concat(nT(B),[R,t])}var $=yi([w,R]),Q=wh(g,$),oe=wh(x,$),fe=[];fe=fe.concat(Ha(Q)),fe=fe.concat(Ha(oe));var le={x:(r.x+t.x)/2,y:(r.y+t.y)/2};[$,Q,oe].forEach(function(Se){fe=fe.concat(hT(Se,le).filter(function(Pe){return Ga(Pe,g)&&Ga(Pe,x)}))}),[{x:w.x,y:R.y},{x:R.x,y:w.y}].forEach(function(Se){Ga(Se,g)&&Ga(Se,x)&&fe.push(Se)}),fe.unshift(w),fe.push(R),fe=Sf(fe);var Ne=bT(fe,w,R,l,p,r,t);return Ne.unshift(r),Ne.push(t),Ne.length>2&&(Ne=Tf(Ne)),Sf(Ne)},OT=function(r){var t;if(r.length===1)t=[r[0],r[0]];else if(r.length>=2){for(var n=r[0],o=r[1],a=Yr(n.x,n.y,o.x,o.y),l=1;l<r.length-1;l++){var p=r[l],g=r[l+1],x=Yr(p.x,p.y,g.x,g.y);x>a&&(a=x,n=p,o=g)}t=[n,o]}return t},Ch=function(r,t,n){var o=jn(r,n),a=jn(t,n);return o&&a},Rh=function(r,t,n){var o=jn(r,n),a=jn(t,n),l=o&&a,p=o||a;return!l&&p},Ih=function(r,t,n){for(var o,a,l=mr(n),p=Ha(l),g=0;g<p.length;g++){var x=gi(r,t,p[g],p[(g+1)%p.length]);x&&(a=[p[g],p[(g+1)%p.length]])}return a&&(o=xP(r,t,a[0],a[1])),o},ka=function(r,t){var n;return r.x===t.x?n=Dt.VERTICAL:r.y===t.y&&(n=Dt.HORIZONTAL),n},Ao=function(r){var t=r.split(" "),n=[];return t&&t.forEach(function(o){var a=o.split(","),l=Ef(a,2),p=l[0],g=l[1];n.push({x:Number(p),y:Number(g)})}),n},ET=function(r,t,n,o){var a=[],l=ka(r,n),p=ka(t,o);if(l===p)r.y===n.y?(a.push({x:n.x,y:(n.y+o.y)/2}),a.push({x:o.x,y:(n.y+o.y)/2})):(a.push({x:(n.x+o.x)/2,y:n.y}),a.push({x:(n.x+o.x)/2,y:o.y}));else{var g={x:n.x,y:o.y},x=pi(g,r,n),w=pi(g,t,o);if(x||w)g={x:o.x,y:n.y};else{var R=_h(g,r,n),B=_h(g,t,o);R&&B&&(g={x:o.x,y:n.y})}a.push(g)}return a},_h=function(r,t,n){return r.x===t.x&&r.x===n.x||r.y===t.y&&r.y===n.y},Bh=function(r){if(!r)return 0;for(var t=0,n=0;n<r.length;n++){var o=r.charCodeAt(n);r.match(/[A-Z]/)?t+=1.5:o>=1&&o<=126||o>=65376&&o<=65439?t+=1:t+=2}return t},xT=function(r){var t=r.start,n=r.end,o;if(t.x===n.x&&t.y===n.y)o="";else{var a={start:t,end:n,offset:10,verticalLength:5},l=vi(Ba(Ba({},a),{},{type:"start"})),p=vi(Ba(Ba({},a),{},{type:"end"}));o="M".concat(l.leftX," ").concat(l.leftY,`
  35. L`).concat(l.rightX," ").concat(l.rightY,`
  36. L`).concat(p.rightX," ").concat(p.rightY,`
  37. L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:o,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Lh=function(r){var t=r.start,n=r.end,o=r.sourceNode,a=r.targetNode,l=r.offset,p=mr(o),g=mr(a),x=za(p,l),w=za(g,l),R=Fa(x,t),B=Fa(w,n);return{sNext:R,ePre:B}},$a=function(r){var t=r.replace(/M/g,"").replace(/C/g,",").split(","),n=Ua(t[0]),o=Ua(t[1]),a=Ua(t[2]),l=Ua(t[3]);return[n,o,a,l]},Ua=function(r){var t=r.replace(/(^\s*)/g,"").split(" "),n=Ef(t,2),o=n[0],a=n[1];return{x:+o,y:+a}},ST=function(r){var t=$a(r);return[t[2],t[3]]},zh=function(r,t){for(var n=r.x,o=r.y,a=Ao(t),l=Number.MAX_SAFE_INTEGER,p,g=[],x=0;x<a.length;x++)g.push({start:a[x],end:a[(x+1)%a.length]});if(g.forEach(function($){var Q=$.start,oe=$.end;if(Q.x===oe.x){var fe={x:Q.x,y:o},le=pi(fe,Q,oe);if(le){var Ne=Math.abs(Q.x-n);Ne<l&&(l=Ne,p=fe)}}else if(Q.y===oe.y){var Se={x:n,y:Q.y},Pe=pi(Se,Q,oe);if(Pe){var Ge=Math.abs(Q.y-o);Ge<l&&(l=Ge,p=Se)}}}),!p){var w=g[0],R=w.start,B=w.end;p={x:R.x+(B.x-R.x)/2,y:R.y+(B.y-R.y)/2}}return p},PT=function(r){return ci(r,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Fh=function(r,t){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))};i(204);function TT(){}var No=TT;function MT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Hh(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wT(e,r,t){return r&&Hh(e.prototype,r),t&&Hh(e,t),e}function Ft(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Wr=window.document,Gh=0;function Mf(e){var r=e.onDragStart,t=r===void 0?No:r,n=e.onDraging,o=n===void 0?No:n,a=e.onDragEnd,l=a===void 0?No:a,p=e.step,g=p===void 0?1:p,x=e.isStopPropagation,w=x===void 0?!0:x,R=!1,B=!1,$=0,Q=0,oe=0,fe=0;function le(Pe){if(w&&Pe.stopPropagation(),!!B&&(R=!0,oe+=Pe.clientX-$,fe+=Pe.clientY-Q,$=Pe.clientX,Q=Pe.clientY,Math.abs(oe)>g||Math.abs(fe)>g)){var Ge=oe%g,Ie=fe%g,Je=oe-Ge,ke=fe-Ie;oe=Ge,fe=Ie,o({deltaX:Je,deltaY:ke,event:Pe})}}function Ne(Pe){if(w&&Pe.stopPropagation(),B=!1,Wr.removeEventListener("mousemove",le,!1),Wr.removeEventListener("mouseup",Ne,!1),!!R)return R=!1,l({event:Pe})}function Se(Pe){if(Pe.button===Gh)return w&&Pe.stopPropagation(),B=!0,$=Pe.clientX,Q=Pe.clientY,Wr.addEventListener("mousemove",le,!1),Wr.addEventListener("mouseup",Ne,!1),t({event:Pe})}return Se}var to=function(){function e(r){var t=this,n=r.onDragStart,o=n===void 0?No:n,a=r.onDraging,l=a===void 0?No:a,p=r.onDragEnd,g=p===void 0?No:p,x=r.eventType,w=x===void 0?"":x,R=r.eventCenter,B=R===void 0?null:R,$=r.step,Q=$===void 0?1:$,oe=r.isStopPropagation,fe=oe===void 0?!0:oe,le=r.model,Ne=le===void 0?null:le;MT(this,e),Ft(this,"onDragStart",void 0),Ft(this,"onDraging",void 0),Ft(this,"onDragEnd",void 0),Ft(this,"step",void 0),Ft(this,"isStopPropagation",void 0),Ft(this,"isDraging",!1),Ft(this,"isStartDraging",!1),Ft(this,"startX",0),Ft(this,"startY",0),Ft(this,"sumDeltaX",0),Ft(this,"sumDeltaY",0),Ft(this,"eventType",void 0),Ft(this,"eventCenter",void 0),Ft(this,"model",void 0),Ft(this,"startTime",void 0),Ft(this,"isGrag",void 0),Ft(this,"handleMouseDown",function(Se){var Pe,Ge;if(Se.button===Gh){t.isStopPropagation&&Se.stopPropagation(),t.isStartDraging=!0,t.startX=Se.clientX,t.startY=Se.clientY,Wr.addEventListener("mousemove",t.handleMouseMove,!1),Wr.addEventListener("mouseup",t.handleMouseUp,!1);var Ie=(Pe=t.model)===null||Pe===void 0?void 0:Pe.getData();(Ge=t.eventCenter)===null||Ge===void 0||Ge.emit(it["".concat(t.eventType,"_MOUSEDOWN")],{e:Se,data:Ie}),t.startTime=new Date().getTime()}}),Ft(this,"handleMouseMove",function(Se){if(t.isStopPropagation&&Se.stopPropagation(),!!t.isStartDraging&&(t.sumDeltaX+=Se.clientX-t.startX,t.sumDeltaY+=Se.clientY-t.startY,t.startX=Se.clientX,t.startY=Se.clientY,t.step<=1||Math.abs(t.sumDeltaX)>t.step||Math.abs(t.sumDeltaY)>t.step)){var Pe,Ge=t.sumDeltaX%t.step,Ie=t.sumDeltaY%t.step,Je=t.sumDeltaX-Ge,ke=t.sumDeltaY-Ie;t.sumDeltaX=Ge,t.sumDeltaY=Ie;var pt=(Pe=t.model)===null||Pe===void 0?void 0:Pe.getData();if(!t.isDraging){var yt;(yt=t.eventCenter)===null||yt===void 0||yt.emit(it["".concat(t.eventType,"_DRAGSTART")],{e:Se,data:pt}),t.onDragStart({event:Se})}t.isDraging=!0,Promise.resolve().then(function(){var lr,Or;t.onDraging({deltaX:Je,deltaY:ke,event:Se}),(lr=t.eventCenter)===null||lr===void 0||lr.emit(it["".concat(t.eventType,"_MOUSEMOVE")],{e:Se,data:pt}),(Or=t.eventCenter)===null||Or===void 0||Or.emit(it["".concat(t.eventType,"_DRAG")],{e:Se,data:pt})})}}),Ft(this,"handleMouseUp",function(Se){t.isStartDraging=!1,t.isStopPropagation&&Se.stopPropagation(),Promise.resolve().then(function(){var Pe,Ge,Ie;Wr.removeEventListener("mousemove",t.handleMouseMove,!1),Wr.removeEventListener("mouseup",t.handleMouseUp,!1);var Je=(Pe=t.model)===null||Pe===void 0?void 0:Pe.getData();(Ge=t.eventCenter)===null||Ge===void 0||Ge.emit(it["".concat(t.eventType,"_MOUSEUP")],{e:Se,data:Je}),t.isDraging&&(t.isDraging=!1,t.onDragEnd({event:Se}),(Ie=t.eventCenter)===null||Ie===void 0||Ie.emit(it["".concat(t.eventType,"_DROP")],{e:Se,data:Je}))})}),Ft(this,"cancelDrag",function(){Wr.removeEventListener("mousemove",t.handleMouseMove,!1),Wr.removeEventListener("mouseup",t.handleMouseUp,!1),t.isDraging=!1}),this.onDragStart=o,this.onDraging=l,this.onDragEnd=g,this.step=Q,this.isStopPropagation=fe,this.eventType=w,this.eventCenter=B,this.model=Ne}return wT(e,[{key:"setStep",value:function(t){this.step=t}}]),e}(),AT=function(r){return!r||typeof r=="boolean"?jt(r===!0?NP:Wp):Ip(jt(Wp),r)},pe,kh,$h,Uh,Xh,Yh,Wh,Kh,Vh,Zh,Jh,Qh,qh;function ev(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Xa(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ev(Object(t),!0).forEach(function(n){cn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ev(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function tv(e,r){return jT(e)||DT(e,r)||rv(e,r)||NT()}function NT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  38. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DT(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function jT(e){if(Array.isArray(e))return e}function Do(e){return IT(e)||RT(e)||rv(e)||CT()}function CT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  39. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rv(e,r){if(!!e){if(typeof e=="string")return wf(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return wf(e,r)}}function RT(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IT(e){if(Array.isArray(e))return wf(e)}function wf(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function mi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mi=function(t){return typeof t}:mi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function Ar(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function _T(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function BT(e,r,t){return r&&nv(e.prototype,r),t&&nv(e,t),e}function cn(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ve(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Ya=200,ov=(pe=function(){function e(r){_T(this,e),cn(this,"rootEl",void 0),Ar(this,"width",kh,this),Ar(this,"height",$h,this),cn(this,"theme",void 0),cn(this,"eventCenter",void 0),cn(this,"modelMap",new Map),cn(this,"topElement",void 0),cn(this,"animation",void 0),cn(this,"idGenerator",void 0),cn(this,"nodeMoveRules",[]),Ar(this,"edgeType",Uh,this),Ar(this,"nodes",Xh,this),Ar(this,"edges",Yh,this),Ar(this,"overlapMode",Wh,this),Ar(this,"background",Kh,this),Ar(this,"transformModel",Vh,this),Ar(this,"editConfigModel",Zh,this),Ar(this,"gridSize",Jh,this),Ar(this,"partial",Qh,this),Ar(this,"fakerNode",qh,this);var t=r.container,n=r.background,o=n===void 0?{}:n,a=r.grid,l=r.idGenerator,p=r.animation;this.background=o,mi(a)==="object"&&(this.gridSize=a.size),this.rootEl=t,this.editConfigModel=new up(r),this.eventCenter=new lP,this.transformModel=new Wx(this.eventCenter),this.theme=_p(r.style),this.edgeType=r.edgeType||"polyline",this.width=r.width,this.height=r.height,this.animation=AT(p),this.partial=r.partial,this.overlapMode=r.overlapMode||0,this.idGenerator=l,this.width=r.width||this.rootEl.getBoundingClientRect().width,this.height=r.height||this.rootEl.getBoundingClientRect().height}return BT(e,[{key:"nodesMap",get:function(){return this.nodes.reduce(function(t,n,o){return t[n.id]={index:o,model:n},t},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(t,n,o){return t[n.id]={index:o,model:n},t},{})}},{key:"modelsMap",get:function(){return[].concat(Do(this.nodes),Do(this.edges)).reduce(function(t,n){return t[n.id]=n,t},{})}},{key:"sortElements",get:function(){var t=[];this.nodes.forEach(function(w){return t.push(w)}),this.edges.forEach(function(w){return t.push(w)}),t=t.sort(function(w,R){return w.zIndex-R.zIndex});for(var n=[],o=-1,a=[-Ya,-Ya],l=[this.width+Ya,this.height+Ya],p=0;p<t.length;p++){var g=t[p];g.visible&&(!this.partial||g.isSelected||this.isElementInArea(g,a,l,!1,!1))&&(g.zIndex===sp&&(o=n.length),n.push(g))}if(o!==-1){var x=n[n.length-1];n[n.length-1]=n[o],n[o]=x}return n}},{key:"textEditElement",get:function(){var t=this.nodes.find(function(o){return o.state===Et.TEXT_EDIT}),n=this.edges.find(function(o){return o.state===Et.TEXT_EDIT});return t||n}},{key:"selectElements",get:function(){var t=new Map;return this.nodes.forEach(function(n){n.isSelected&&t.set(n.id,n)}),this.edges.forEach(function(n){n.isSelected&&t.set(n.id,n)}),t}},{key:"getAreaElement",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=[],p=[];this.nodes.forEach(function(w){return p.push(w)}),this.edges.forEach(function(w){return p.push(w)});for(var g=0;g<p.length;g++){var x=p[g];this.isElementInArea(x,t,n,o,a)&&l.push(x)}return l}},{key:"getModel",value:function(t){return this.modelMap.get(t)}},{key:"getNodeModelById",value:function(t){var n;return this.fakerNode&&t===this.fakerNode.id?this.fakerNode:(n=this.nodesMap[t])===null||n===void 0?void 0:n.model}},{key:"getPointByClient",value:function(t){var n=t.x,o=t.y,a=this.rootEl.getBoundingClientRect(),l={x:n-a.left,y:o-a.top},p=this.transformModel.HtmlPointToCanvasPoint([l.x,l.y]),g=tv(p,2),x=g[0],w=g[1];return{domOverlayPosition:l,canvasOverlayPosition:{x,y:w}}}},{key:"isElementInArea",value:function(t,n,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(t.BaseType===Gt.NODE){t=t;for(var p=mr(t),g=p.minX,x=p.minY,w=p.maxX,R=p.maxY,B=[{x:g,y:x},{x:w,y:x},{x:w,y:R},{x:g,y:R}],$=l,Q=0;Q<B.length;Q++){var oe=B[Q],fe=oe.x,le=oe.y,Ne=this.transformModel.CanvasPointToHtmlPoint([fe,le]),Se=tv(Ne,2);if(fe=Se[0],le=Se[1],uf([fe,le],n,o)!==l){$=!l;break}}return $}if(t.BaseType===Gt.EDGE){t=t;var Pe=t,Ge=Pe.startPoint,Ie=Pe.endPoint,Je=this.transformModel.CanvasPointToHtmlPoint([Ge.x,Ge.y]),ke=this.transformModel.CanvasPointToHtmlPoint([Ie.x,Ie.y]),pt=uf(Je,n,o),yt=uf(ke,n,o);return a?pt&&yt:pt||yt}return!1}},{key:"graphDataToModel",value:function(t){var n=this;(!this.width||!this.height)&&this.resize(),this.nodes=Sa(t.nodes,function(o){var a=n.getModel(o.type);if(!a)throw new Error("\u627E\u4E0D\u5230".concat(o.type,"\u5BF9\u5E94\u7684\u8282\u70B9\u3002"));var l=o.x,p=o.y;return l&&p&&(o.x=To(l,n.gridSize),o.y=To(p,n.gridSize),mi(o.text)==="object"&&(o.text.x-=Lp(l,n.gridSize),o.text.y-=Lp(p,n.gridSize))),new a(o,n)}),this.edges=Sa(t.edges,function(o){var a=n.getModel(o.type);if(!a)throw new Error("\u627E\u4E0D\u5230".concat(o.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new a(o,n)})}},{key:"modelToGraphData",value:function(){var t=[];this.edges.forEach(function(o){var a=o.getData();a&&t.push(a)});var n=[];return this.nodes.forEach(function(o){var a=o.getData();a&&n.push(a)}),{nodes:n,edges:t}}},{key:"modelToHistoryData",value:function(){for(var t=!1,n=[],o=0;o<this.nodes.length;o++){var a=this.nodes[o];if(a.isDragging){t=!0;break}else n.push(a.getHistoryData())}if(t)return!1;for(var l=!1,p=[],g=0;g<this.edges.length;g++){var x=this.edges[g];if(x.isDragging){l=!0;break}else p.push(x.getHistoryData())}return l?!1:{nodes:n,edges:p}}},{key:"getEdgeModelById",value:function(t){var n;return(n=this.edgesMap[t])===null||n===void 0?void 0:n.model}},{key:"getElement",value:function(t){return this.modelsMap[t]}},{key:"getNodeEdges",value:function(t){for(var n=[],o=0;o<this.edges.length;o++){var a=this.edges[o],l=this.edges[o].sourceNodeId===t,p=this.edges[o].targetNodeId===t;(l||p)&&n.push(a)}return n}},{key:"getSelectElements",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=this.selectElements,o={nodes:[],edges:[]};return n.forEach(function(a){if(a.BaseType===Gt.NODE&&o.nodes.push(a.getData()),a.BaseType===Gt.EDGE){var l=a.getData(),p=n.get(l.sourceNodeId)&&n.get(l.targetNodeId);(t||p)&&o.edges.push(l)}}),o}},{key:"updateAttributes",value:function(t,n){var o=this.getElement(t);o.updateAttributes(n)}},{key:"changeNodeId",value:function(t,n){return n||(n=eo()),this.nodesMap[n]?(console.warn("\u5F53\u524D\u6D41\u7A0B\u56FE\u5DF2\u5B58\u5728\u8282\u70B9".concat(n,", \u4FEE\u6539\u5931\u8D25")),""):this.nodesMap[t]?(this.edges.forEach(function(o){o.sourceNodeId===t&&(o.sourceNodeId=n),o.targetNodeId===t&&(o.targetNodeId=n)}),this.nodesMap[t].model.id=n,n):(console.warn("\u5F53\u524D\u6D41\u7A0B\u56FE\u627E\u4E0D\u5230\u8282\u70B9".concat(n,", \u4FEE\u6539\u5931\u8D25")),"")}},{key:"changeEdgeId",value:function(t,n){return n||(n=eo()),this.edgesMap[n]?(console.warn("\u5F53\u524D\u6D41\u7A0B\u56FE\u5DF2\u5B58\u5728\u8FB9: ".concat(n,", \u4FEE\u6539\u5931\u8D25")),""):this.edgesMap[t]?(this.edges.forEach(function(o){o.id===t&&(o.id=n)}),n):(console.warn("\u5F53\u524D\u6D41\u7A0B\u56FE\u627E\u4E0D\u5230\u8FB9: ".concat(n,", \u4FEE\u6539\u5931\u8D25")),"")}},{key:"setFakerNode",value:function(t){this.fakerNode=t}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(t,n){return this.modelMap.set(t,n)}},{key:"toFront",value:function(t){var n,o,a=((n=this.nodesMap[t])===null||n===void 0?void 0:n.model)||((o=this.edgesMap[t])===null||o===void 0?void 0:o.model);if(a){if(this.overlapMode===gr.DEFAULT){var l;(l=this.topElement)===null||l===void 0||l.setZIndex(),a.setZIndex(sp),this.topElement=a}this.overlapMode===gr.INCREASE&&this.setElementZIndex(t,"top")}}},{key:"setElementZIndex",value:function(t,n){var o,a,l=((o=this.nodesMap[t])===null||o===void 0?void 0:o.model)||((a=this.edgesMap[t])===null||a===void 0?void 0:a.model);if(l){var p;typeof n=="number"&&(p=n),n==="top"&&(p=pf()),n==="bottom"&&(p=RP()),l.setZIndex(p)}}},{key:"deleteNode",value:function(t){var n=this.nodesMap[t].model.getData();this.deleteEdgeBySource(t),this.deleteEdgeByTarget(t),this.nodes.splice(this.nodesMap[t].index,1),this.eventCenter.emit(it.NODE_DELETE,{data:n})}},{key:"addNode",value:function(t){var n=er(t);n.id&&this.nodesMap[t.id]&&delete n.id;var o=this.getModel(n.type);if(!o)throw new Error("\u627E\u4E0D\u5230".concat(n.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var a=new o(n,this);this.nodes.push(a);var l=a.getData();return this.eventCenter.emit(it.NODE_ADD,{data:l}),a}},{key:"cloneNode",value:function(t){var n=this.getNodeModelById(t),o=n.getData();o.x+=30,o.y+=30,delete o.id,o.text&&(o.text.x+=30,o.text.y+=30);var a=this.addNode(o);return a.setSelected(!0),n.setSelected(!1),a.getData()}},{key:"moveNode",value:function(t,n,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=this.nodesMap[t];if(!l){console.warn("\u4E0D\u5B58\u5728id\u4E3A".concat(t,"\u7684\u8282\u70B9"));return}var p=l.model,g=p.move(n,o,a);g&&this.moveEdge(t,n,o)}},{key:"moveNode2Coordinate",value:function(t,n,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=this.nodesMap[t];if(!l){console.warn("\u4E0D\u5B58\u5728id\u4E3A".concat(t,"\u7684\u8282\u70B9"));return}var p=l.model,g=p.x,x=p.y,w=n-g,R=o-x;this.moveNode(t,w,R,a)}},{key:"editText",value:function(t){this.setElementStateById(t,Et.TEXT_EDIT)}},{key:"addEdge",value:function(t){var n=er(t),o=n.type;o||(o=this.edgeType),n.id&&this.edgesMap[n.id]&&delete n.id;var a=this.getModel(o);if(!a)throw new Error("\u627E\u4E0D\u5230".concat(o,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var l=new a(Xa(Xa({},n),{},{type:o}),this),p=l.getData();return this.edges.push(l),this.eventCenter.emit(it.EDGE_ADD,{data:p}),l}},{key:"moveEdge",value:function(t,n,o){for(var a=0;a<this.edges.length;a++){var l=this.edges[a],p=l.textPosition,g=p.x,x=p.y,w=this.edges[a].sourceNodeId===t,R=this.edges[a].targetNodeId===t;if(w&&l.moveStartPoint(n,o),R&&l.moveEndPoint(n,o),w||R){var B;if(l.customTextPosition===!0)l.resetTextPosition();else if(l.modelType===dt.POLYLINE_EDGE&&(B=l.text)!==null&&B!==void 0&&B.value){var $=l.text,Q=zh($,l.points);l.moveText(Q.x-$.x,Q.y-$.y)}else{var oe=l.textPosition,fe=oe.x,le=oe.y;l.moveText(fe-g,le-x)}}}}},{key:"deleteEdgeBySourceAndTarget",value:function(t,n){for(var o=0;o<this.edges.length;o++)if(this.edges[o].sourceNodeId===t&&this.edges[o].targetNodeId===n){var a=this.edges[o].getData();this.edges.splice(o,1),o--,this.eventCenter.emit(it.EDGE_DELETE,{data:a})}}},{key:"deleteEdgeById",value:function(t){var n=this.edgesMap[t];if(!!n){var o=this.edgesMap[t].index,a=this.edgesMap[t].model.getData();this.edges.splice(o,1),this.eventCenter.emit(it.EDGE_DELETE,{data:a})}}},{key:"deleteEdgeBySource",value:function(t){for(var n=0;n<this.edges.length;n++)if(this.edges[n].sourceNodeId===t){var o=this.edges[n].getData();this.edges.splice(n,1),n--,this.eventCenter.emit(it.EDGE_DELETE,{data:o})}}},{key:"deleteEdgeByTarget",value:function(t){for(var n=0;n<this.edges.length;n++)if(this.edges[n].targetNodeId===t){var o=this.edges[n].getData();this.edges.splice(n,1),n--,this.eventCenter.emit(it.EDGE_DELETE,{data:o})}}},{key:"setElementStateById",value:function(t,n,o){this.nodes.forEach(function(a){a.id===t?a.setElementState(n,o):a.setElementState(Et.DEFAULT)}),this.edges.forEach(function(a){a.id===t?a.setElementState(n,o):a.setElementState(Et.DEFAULT)})}},{key:"updateText",value:function(t,n){this.nodes.forEach(function(o){o.id===t&&o.updateText(n)}),this.edges.forEach(function(o){o.id===t&&o.updateText(n)})}},{key:"selectNodeById",value:function(t){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o||this.clearSelectElements();var a=(n=this.nodesMap[t])===null||n===void 0?void 0:n.model;a==null||a.setSelected(!0)}},{key:"selectEdgeById",value:function(t){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o||this.clearSelectElements();var a=(n=this.edgesMap[t])===null||n===void 0?void 0:n.model;a==null||a.setSelected(!0)}},{key:"selectElementById",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||this.clearSelectElements();var o=this.getElement(t);o==null||o.setSelected(!0)}},{key:"clearSelectElements",value:function(){if(this.selectElements.forEach(function(n){n==null||n.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===gr.DEFAULT){var t;(t=this.topElement)===null||t===void 0||t.setZIndex()}}},{key:"moveNodes",value:function(t,n,o){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;t.forEach(function(p){return a.moveNode(p,n,o,l)})}},{key:"addNodeMoveRules",value:function(t){this.nodeMoveRules.includes(t)||this.nodeMoveRules.push(t)}},{key:"setDefaultEdgeType",value:function(t){this.edgeType=t}},{key:"changeNodeType",value:function(t,n){var o=this.getNodeModelById(t);if(!o){console.warn("\u627E\u4E0D\u5230id\u4E3A".concat(t,"\u7684\u8282\u70B9"));return}var a=o.getData();a.type=n;var l=this.getModel(n);if(!l)throw new Error("\u627E\u4E0D\u5230".concat(n,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var p=new l(a,this);this.nodes.splice(this.nodesMap[t].index,1,p);var g=this.getNodeEdges(t);g.forEach(function(x){if(x.sourceNodeId===t){var w=Xp(p,x.startPoint,p.width,p.height);x.updateStartPoint(w)}if(x.targetNodeId===t){var R=Xp(p,x.endPoint,p.width,p.height);x.updateEndPoint(R)}})}},{key:"changeEdgeType",value:function(t,n){var o=this.getEdgeModelById(t);if(!o){console.warn("\u627E\u4E0D\u5230id\u4E3A".concat(t,"\u7684\u8FB9"));return}if(o.type!==n){var a=o.getData();a.type=n;var l=this.getModel(n);if(!l)throw new Error("\u627E\u4E0D\u5230".concat(n,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete a.pointsList;var p=new l(a,this);this.edges.splice(this.edgesMap[t].index,1,p)}}},{key:"getNodeIncomingEdge",value:function(t){var n=[];return this.edges.forEach(function(o){o.targetNodeId===t&&n.push(o)}),n}},{key:"getNodeOutgoingEdge",value:function(t){var n=[];return this.edges.forEach(function(o){o.sourceNodeId===t&&n.push(o)}),n}},{key:"getNodeIncomingNode",value:function(t){var n=this,o=[];return this.edges.forEach(function(a){a.targetNodeId===t&&o.push(n.nodesMap[a.sourceNodeId].model)}),o}},{key:"getNodeOutgoingNode",value:function(t){var n=this,o=[];return this.edges.forEach(function(a){a.sourceNodeId===t&&o.push(n.nodesMap[a.targetNodeId].model)}),o}},{key:"setTheme",value:function(t){this.theme=_p(Xa(Xa({},this.theme),t))}},{key:"resize",value:function(t,n){this.width=t||this.rootEl.getBoundingClientRect().width,this.height=n||this.rootEl.getBoundingClientRect().height,(!this.width||!this.height)&&console.warn("\u6E32\u67D3\u753B\u5E03\u7684\u65F6\u5019\u65E0\u6CD5\u83B7\u53D6\u753B\u5E03\u5BBD\u9AD8\uFF0C\u8BF7\u786E\u8BA4\u5728container\u5DF2\u6302\u8F7D\u5230DOM\u3002@see https://github.com/didi/LogicFlow/issues/675")}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var t=this.nodes,n=[],o=[];t.forEach(function($){var Q=$.x,oe=$.y,fe=$.width,le=$.height,Ne=$.getNodeStyle(),Se=Ne.strokeWidth,Pe=Se===void 0?0:Se;n=n.concat([Q+fe/2+Pe,Q-fe/2-Pe]),o=o.concat([oe+le/2+Pe,oe-le/2-Pe])});var a=Math.min.apply(Math,Do(n)),l=Math.max.apply(Math,Do(n)),p=Math.min.apply(Math,Do(o)),g=Math.max.apply(Math,Do(o)),x=l-a||0,w=g-p||0,R=a+x/2,B=p+w/2;return{virtualRectWidth:x,virtualRectHeight:w,virtualRectCenterPositionX:R,virtualRectCenterPositionY:B}}},{key:"translateCenter",value:function(){var t=this.nodes,n=this.width,o=this.height,a=this.rootEl,l=this.transformModel;if(!!t.length){var p=n||a.clientWidth,g=o||a.clientHeight,x=this.getVirtualRectSize(),w=x.virtualRectCenterPositionX,R=x.virtualRectCenterPositionY;l.focusOn(w,R,p,g)}}},{key:"fitView",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,o=this.nodes,a=this.width,l=this.height,p=this.rootEl,g=this.transformModel;if(!!o.length){var x=a||p.clientWidth,w=l||p.clientHeight,R=this.getVirtualRectSize(),B=R.virtualRectWidth,$=R.virtualRectHeight,Q=R.virtualRectCenterPositionX,oe=R.virtualRectCenterPositionY,fe=(B+n)/x,le=($+t)/w,Ne=0;Ne=1/Math.max(fe,le);var Se=[x/2,w/2];g.zoom(Ne,Se),g.focusOn(Q,oe,x,w)}}},{key:"openEdgeAnimation",value:function(t){var n=this.getEdgeModelById(t);n.openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(t){var n=this.getEdgeModelById(t);n.closeEdgeAnimation()}}]),e}(),kh=Ve(pe.prototype,"width",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$h=Ve(pe.prototype,"height",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Uh=Ve(pe.prototype,"edgeType",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xh=Ve(pe.prototype,"nodes",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Yh=Ve(pe.prototype,"edges",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Wh=Ve(pe.prototype,"overlapMode",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return gr.DEFAULT}}),Kh=Ve(pe.prototype,"background",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vh=Ve(pe.prototype,"transformModel",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zh=Ve(pe.prototype,"editConfigModel",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jh=Ve(pe.prototype,"gridSize",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Qh=Ve(pe.prototype,"partial",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qh=Ve(pe.prototype,"fakerNode",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve(pe.prototype,"nodesMap",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"nodesMap"),pe.prototype),Ve(pe.prototype,"edgesMap",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"edgesMap"),pe.prototype),Ve(pe.prototype,"modelsMap",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"modelsMap"),pe.prototype),Ve(pe.prototype,"sortElements",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"sortElements"),pe.prototype),Ve(pe.prototype,"textEditElement",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"textEditElement"),pe.prototype),Ve(pe.prototype,"selectElements",[f.m],Object.getOwnPropertyDescriptor(pe.prototype,"selectElements"),pe.prototype),Ve(pe.prototype,"setFakerNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setFakerNode"),pe.prototype),Ve(pe.prototype,"removeFakerNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"removeFakerNode"),pe.prototype),Ve(pe.prototype,"setModel",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setModel"),pe.prototype),Ve(pe.prototype,"toFront",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"toFront"),pe.prototype),Ve(pe.prototype,"setElementZIndex",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setElementZIndex"),pe.prototype),Ve(pe.prototype,"deleteNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"deleteNode"),pe.prototype),Ve(pe.prototype,"addNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"addNode"),pe.prototype),Ve(pe.prototype,"cloneNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"cloneNode"),pe.prototype),Ve(pe.prototype,"moveNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"moveNode"),pe.prototype),Ve(pe.prototype,"moveNode2Coordinate",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"moveNode2Coordinate"),pe.prototype),Ve(pe.prototype,"editText",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"editText"),pe.prototype),Ve(pe.prototype,"addEdge",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"addEdge"),pe.prototype),Ve(pe.prototype,"moveEdge",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"moveEdge"),pe.prototype),Ve(pe.prototype,"deleteEdgeBySourceAndTarget",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"deleteEdgeBySourceAndTarget"),pe.prototype),Ve(pe.prototype,"deleteEdgeById",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"deleteEdgeById"),pe.prototype),Ve(pe.prototype,"deleteEdgeBySource",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"deleteEdgeBySource"),pe.prototype),Ve(pe.prototype,"deleteEdgeByTarget",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"deleteEdgeByTarget"),pe.prototype),Ve(pe.prototype,"setElementStateById",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setElementStateById"),pe.prototype),Ve(pe.prototype,"updateText",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"updateText"),pe.prototype),Ve(pe.prototype,"selectNodeById",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"selectNodeById"),pe.prototype),Ve(pe.prototype,"selectEdgeById",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"selectEdgeById"),pe.prototype),Ve(pe.prototype,"selectElementById",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"selectElementById"),pe.prototype),Ve(pe.prototype,"clearSelectElements",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"clearSelectElements"),pe.prototype),Ve(pe.prototype,"moveNodes",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"moveNodes"),pe.prototype),Ve(pe.prototype,"setDefaultEdgeType",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setDefaultEdgeType"),pe.prototype),Ve(pe.prototype,"changeNodeType",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"changeNodeType"),pe.prototype),Ve(pe.prototype,"changeEdgeType",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"changeEdgeType"),pe.prototype),Ve(pe.prototype,"getNodeIncomingEdge",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"getNodeIncomingEdge"),pe.prototype),Ve(pe.prototype,"getNodeOutgoingEdge",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"getNodeOutgoingEdge"),pe.prototype),Ve(pe.prototype,"getNodeIncomingNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"getNodeIncomingNode"),pe.prototype),Ve(pe.prototype,"getNodeOutgoingNode",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"getNodeOutgoingNode"),pe.prototype),Ve(pe.prototype,"setTheme",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"setTheme"),pe.prototype),Ve(pe.prototype,"resize",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"resize"),pe.prototype),Ve(pe.prototype,"clearData",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"clearData"),pe.prototype),Ve(pe.prototype,"translateCenter",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"translateCenter"),pe.prototype),Ve(pe.prototype,"fitView",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"fitView"),pe.prototype),Ve(pe.prototype,"openEdgeAnimation",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"openEdgeAnimation"),pe.prototype),Ve(pe.prototype,"closeEdgeAnimation",[f.k],Object.getOwnPropertyDescriptor(pe.prototype,"closeEdgeAnimation"),pe.prototype),pe),LT=ov;function Wa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wa=function(t){return typeof t}:Wa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}var iv;function Af(){return Af=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Af.apply(this,arguments)}function zT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function av(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function FT(e,r,t){return r&&av(e.prototype,r),t&&av(e,t),e}function HT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Nf(e,r)}function Nf(e,r){return Nf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Nf(e,r)}function GT(e){var r=$T();return function(){var n=Ka(e),o;if(r){var a=Ka(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return kT(this,o)}}function kT(e,r){if(r&&(Wa(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kr(e)}function Kr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ka(e)}function dn(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var UT=Gr(iv=function(e){HT(t,e);var r=GT(t);function t(n){var o;zT(this,t),o=r.call(this),dn(Kr(o),"stepDrag",void 0),dn(Kr(o),"stepScrollX",0),dn(Kr(o),"stepScrollY",0),dn(Kr(o),"onDraging",function(g){var x=g.deltaX,w=g.deltaY;o.setState({isDraging:!0});var R=o.props.graphModel,B=R.transformModel,$=R.editConfigModel;$.stopMoveGraph||B.translate(x,w)}),dn(Kr(o),"onDragEnd",function(){o.setState({isDraging:!1})}),dn(Kr(o),"zoomHandler",function(g){var x=o.props,w=x.graphModel,R=w.editConfigModel,B=w.transformModel,$=w.gridSize,Q=x.graphModel,oe=g.deltaX,fe=g.deltaY;if(!R.stopScrollGraph&&g.ctrlKey!==!0){if(g.preventDefault(),o.stepScrollX+=oe,o.stepScrollY+=fe,Math.abs(o.stepScrollX)>=$){var le=o.stepScrollX%$,Ne=o.stepScrollX-le;B.translate(-Ne*B.SCALE_X,0),o.stepScrollX=le}if(Math.abs(o.stepScrollY)>=$){var Se=o.stepScrollY%$,Pe=o.stepScrollY-Se;B.translate(0,-Pe*B.SCALE_Y),o.stepScrollY=Se}return}if(!R.stopZoomGraph){g.preventDefault();var Ge=Q.getPointByClient({x:g.clientX,y:g.clientY}),Ie=Ge.canvasOverlayPosition,Je=Ie.x,ke=Ie.y;B.zoom(g.deltaY<0,[Je,ke])}}),dn(Kr(o),"clickHandler",function(g){var x=g.target;if(x.getAttribute("name")==="canvas-overlay"){var w=o.props.graphModel,R=w.selectElements;R.size>0&&w.clearSelectElements(),w.eventCenter.emit(it.BLANK_CLICK,{e:g})}}),dn(Kr(o),"handleContextMenu",function(g){var x=g.target;if(x.getAttribute("name")==="canvas-overlay"){g.preventDefault();var w=o.props.graphModel,R=w.getPointByClient({x:g.clientX,y:g.clientY});w.eventCenter.emit(it.BLANK_CONTEXTMENU,{e:g,position:R})}}),dn(Kr(o),"mouseDownHandler",function(g){var x=o.props.graphModel,w=x.eventCenter,R=x.editConfigModel,B=x.transformModel.SCALE_X,$=x.gridSize,Q=g.target,oe=!R.adjustEdge&&!R.adjustNodePosition;(Q.getAttribute("name")==="canvas-overlay"||oe)&&(R.stopMoveGraph?w.emit(it.BLANK_MOUSEDOWN,{e:g}):(o.stepDrag.setStep($*B),o.stepDrag.handleMouseDown(g)),o.clickHandler(g))});var a=n.graphModel,l=a.gridSize,p=a.eventCenter;return o.stepDrag=new to({onDraging:o.onDraging,onDragEnd:o.onDragEnd,step:l,eventType:"BLANK",isStopPropagation:!1,eventCenter:p,model:null}),o.state={isDraging:!1},o}return FT(t,[{key:"render",value:function(){var o=this.props.graphModel.transformModel,a=o.getTransformStyle(),l=a.transform,p=this.props,g=p.children,x=p.dnd,w=this.state.isDraging;return Object(ne.g)("svg",Af({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:w?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},x.eventMap()),Object(ne.g)("g",{transform:l},g))}}]),t}(ne.a))||iv,XT=UT;function Va(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(t){return typeof t}:Va=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}var uv;function YT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function lv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function WT(e,r,t){return r&&lv(e.prototype,r),t&&lv(e,t),e}function KT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Df(e,r)}function Df(e,r){return Df=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Df(e,r)}function VT(e){var r=JT();return function(){var n=Za(e),o;if(r){var a=Za(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return ZT(this,o)}}function ZT(e,r){if(r&&(Va(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sv(e)}function sv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Za(e)}function QT(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var qT=Gr(uv=function(e){KT(t,e);var r=VT(t);function t(){var n;YT(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),QT(sv(n),"setToolOverlayRef",function(p){var g=n.props.tool,x=g.getInstance();x.components.forEach(function(w){return w(x,p)}),x.components=[]}),n}return WT(t,[{key:"getTools",value:function(){var o=this.props,a=o.tool,l=o.graphModel,p=a.getTools(),g=p.map(function(x){return Object(ne.g)(x,{graphModel:l,logicFlow:a.instance})});return a.components=g,g}},{key:"render",value:function(){return Object(ne.g)("div",{className:"lf-tool-overlay",ref:this.setToolOverlayRef},this.getTools())}}]),t}(ne.a))||uv;function Ja(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ja=function(t){return typeof t}:Ja=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(e)}function eM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function fv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tM(e,r,t){return r&&fv(e.prototype,r),t&&fv(e,t),e}function rM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&jf(e,r)}function jf(e,r){return jf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},jf(e,r)}function nM(e){var r=aM();return function(){var n=Qa(e),o;if(r){var a=Qa(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return oM(this,o)}}function oM(e,r){if(r&&(Ja(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iM(e)}function iM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qa(e)}var uM=function(e){rM(t,e);var r=nM(t);function t(){return eM(this,t),r.apply(this,arguments)}return tM(t,[{key:"render",value:function(){var o=this.props.background;return Object(ne.g)("div",{className:"lf-background"},Object(ne.g)("div",{style:o,className:"lf-background-area"}))}}]),t}(ne.a);function qa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qa=function(t){return typeof t}:qa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}var cv;function lM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sM(e,r,t){return r&&dv(e.prototype,r),t&&dv(e,t),e}function fM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Cf(e,r)}function Cf(e,r){return Cf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Cf(e,r)}function cM(e){var r=pM();return function(){var n=eu(e),o;if(r){var a=eu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return dM(this,o)}}function dM(e,r){if(r&&(qa(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pv(e)}function pv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eu(e){return eu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},eu(e)}function hM(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var hv=Gr(cv=function(e){fM(t,e);var r=cM(t);function t(){var n;lM(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),hM(pv(n),"id",eo()),n}return sM(t,[{key:"renderDot",value:function(){var o=this.props,a=o.config,l=a.color,p=a.thickness,g=p===void 0?2:p,x=o.size,w=o.visible,R=Math.min(Math.max(2,g),x/2),B=1;return w||(B=0),Object(ne.g)("rect",{width:R,height:R,rx:R/2,ry:R/2,fill:l,opacity:B})}},{key:"renderMesh",value:function(){var o=this.props,a=o.config,l=a.color,p=a.thickness,g=p===void 0?1:p,x=o.size,w=o.visible,R=Math.min(Math.max(1,g),x/2),B="M ".concat(x," 0 H0 M0 0 V0 ").concat(x),$=1;return w||($=0),Object(ne.g)("path",{d:B,stroke:l,strokeWidth:R,opacity:$})}},{key:"render",value:function(){var o=this.props,a=o.type,l=o.size,p=o.graphModel.transformModel,g=p.SCALE_X,x=p.SKEW_Y,w=p.SKEW_X,R=p.SCALE_Y,B=p.TRANSLATE_X,$=p.TRANSLATE_Y,Q=[g,x,w,R,B,$].join(","),oe="matrix(".concat(Q,")");return Object(ne.g)("div",{className:"lf-grid"},Object(ne.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(ne.g)("defs",null,Object(ne.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:oe,x:"0",y:"0",width:l,height:l},a==="dot"&&this.renderDot(),a==="mesh"&&this.renderMesh())),Object(ne.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}]),t}(ne.a))||cv;hv.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},i(52);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(t){return typeof t}:tu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(e)}function vM(e,r){return bM(e)||mM(e,r)||gM(e,r)||yM()}function yM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  40. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gM(e,r){if(!!e){if(typeof e=="string")return vv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vv(e,r)}}function vv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function mM(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function bM(e){if(Array.isArray(e))return e}function OM(e){var r={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(e).forEach(function(t){var n=vM(t,2),o=n[0],a=n[1];if(o==="style")r[o]=a;else{var l=tu(a);l!=="object"&&(r[o]=a)}}),Object(ne.g)("line",r)}var ro=OM;function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(t){return typeof t}:ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}var yv;function gv(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function nu(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gv(Object(t),!0).forEach(function(n){EM(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gv(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function EM(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function SM(e,r,t){return r&&mv(e.prototype,r),t&&mv(e,t),e}function PM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Rf(e,r)}function Rf(e,r){return Rf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Rf(e,r)}function TM(e){var r=AM();return function(){var n=ou(e),o;if(r){var a=ou(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return MM(this,o)}}function MM(e,r){if(r&&(ru(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wM(e)}function wM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ou(e){return ou=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ou(e)}var NM=Gr(yv=function(e){PM(t,e);var r=TM(t);function t(){return xM(this,t),r.apply(this,arguments)}return SM(t,[{key:"render",value:function(){var o=this.props.snaplineModel,a=o.position,l=o.isShowHorizontal,p=o.isShowVertical,g=o.getStyle(),x=a.x,w=x===void 0?0:x,R=a.y,B=R===void 0?0:R,$=nu(nu({x1:-1e5,y1:B,x2:1e5,y2:B},g),{},{stroke:l?g.stroke:"none"}),Q=nu(nu({x1:w,y1:-1e5,x2:w,y2:1e5},g),{},{stroke:p?g.stroke:"none"});return Object(ne.g)("g",{className:"lf-snapline"},Object(ne.g)(ro,$),Object(ne.g)(ro,Q))}}]),t}(ne.a))||yv;function iu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iu=function(t){return typeof t}:iu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function DM(e,r){return IM(e)||RM(e,r)||CM(e,r)||jM()}function jM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  41. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CM(e,r){if(!!e){if(typeof e=="string")return bv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bv(e,r)}}function bv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function RM(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function IM(e){if(Array.isArray(e))return e}function Rn(e){var r=e.x,t=e.y,n=e.width,o=e.height,a=e.className,l=e.radius,p=r-n/2,g=t-o/2,x={};return Object.entries(e).forEach(function(w){var R=DM(w,2),B=R[0],$=R[1],Q=iu($);Q!=="object"&&(x[B]=$)}),a?x.className="lf-basic-shape ".concat(a):x.className="lf-basic-shape",l&&(x.rx=l,x.ry=l),x.x=p,x.y=g,Object(ne.g)("rect",x)}Rn.defaultProps={className:"",radius:""};function au(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?au=function(t){return typeof t}:au=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}var Ov;function jo(){return jo=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},jo.apply(this,arguments)}function Ev(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function xv(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ev(Object(t),!0).forEach(function(n){_M(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ev(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _M(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function BM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Sv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function LM(e,r,t){return r&&Sv(e.prototype,r),t&&Sv(e,t),e}function zM(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&If(e,r)}function If(e,r){return If=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},If(e,r)}function FM(e){var r=kM();return function(){var n=uu(e),o;if(r){var a=uu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return HM(this,o)}}function HM(e,r){if(r&&(au(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GM(e)}function GM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uu(e){return uu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uu(e)}var $M=Gr(Ov=function(e){zM(t,e);var r=FM(t);function t(){return BM(this,t),r.apply(this,arguments)}return LM(t,[{key:"getNodesOutline",value:function(){var o=this.props.graphModel,a=o.nodes,l=o.editConfigModel,p=l.hoverOutline,g=l.nodeSelectedOutline,x=[];return a.forEach(function(w){if(w.isHovered||w.isSelected){var R=w.isHovered,B=w.isSelected,$=w.x,Q=w.y,oe=w.width,fe=w.height;if(g&&B||p&&R){var le=w.getOutlineStyle(),Ne={};if(Object.keys(le).forEach(function(Pe){Pe!=="hover"&&(Ne[Pe]=le[Pe])}),R){var Se=le.hover;Ne=xv(xv({},Ne),Se)}x.push(Object(ne.g)(Rn,jo({className:"lf-outline-node",x:$,y:Q,width:oe+10,height:fe+10},Ne)))}}}),x}},{key:"getEdgeOutline",value:function(){for(var o=this.props.graphModel,a=o.edges,l=o.editConfigModel,p=l.edgeSelectedOutline,g=l.hoverOutline,x=[],w=0;w<a.length;w++){var R=a[w];(p&&R.isSelected||g&&R.isHovered)&&(R.modelType===dt.LINE_EDGE?x.push(this.getLineOutline(R)):R.modelType===dt.POLYLINE_EDGE?x.push(this.getPolylineOutline(R)):R.modelType===dt.BEZIER_EDGE&&x.push(this.getBezierOutline(R)))}return x}},{key:"getLineOutline",value:function(o){var a=o.startPoint,l=o.endPoint,p=(a.x+l.x)/2,g=(a.y+l.y)/2,x=Math.abs(a.x-l.x)+10,w=Math.abs(a.y-l.y)+10,R=o.getOutlineStyle();return Object(ne.g)(Rn,jo({className:"lf-outline-edge",x:p,y:g,width:x,height:w},R))}},{key:"getPolylineOutline",value:function(o){var a=o.points,l=Ao(a),p=yi(l,8),g=p.x,x=p.y,w=p.width,R=p.height,B=o.getOutlineStyle();return Object(ne.g)(Rn,jo({className:"lf-outline",x:g,y:x,width:w,height:R},B))}},{key:"getBezierOutline",value:function(o){var a=o.path,l=$a(a),p=yi(l,8),g=p.x,x=p.y,w=p.width,R=p.height,B=o.getOutlineStyle();return Object(ne.g)(Rn,jo({className:"lf-outline",x:g,y:x,width:w,height:R},B))}},{key:"render",value:function(){return Object(ne.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}]),t}(ne.a))||Ov;function lu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lu=function(t){return typeof t}:lu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function UM(e,r){return KM(e)||WM(e,r)||YM(e,r)||XM()}function XM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  42. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YM(e,r){if(!!e){if(typeof e=="string")return Pv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pv(e,r)}}function Pv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function WM(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function KM(e){if(Array.isArray(e))return e}function bi(e){var r=e.x,t=r===void 0?0:r,n=e.y,o=n===void 0?0:n,a=e.r,l=a===void 0?4:a,p=e.className,g={cx:t,cy:o,r:l,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(x){var w=UM(x,2),R=w[0],B=w[1],$=lu(B);$!=="object"&&(g[R]=B)}),p?g.className="lf-basic-shape ".concat(p):g.className="lf-basic-shape",Object(ne.g)("circle",g)}function su(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?su=function(t){return typeof t}:su=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}var Tv;function VM(e,r){return qM(e)||QM(e,r)||JM(e,r)||ZM()}function ZM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  43. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JM(e,r){if(!!e){if(typeof e=="string")return Mv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mv(e,r)}}function Mv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function QM(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function qM(e){if(Array.isArray(e))return e}function Oi(){return Oi=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Oi.apply(this,arguments)}function wv(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Av(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nv(e,r,t){return r&&Av(e.prototype,r),t&&Av(e,t),e}function Dv(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&_f(e,r)}function _f(e,r){return _f=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},_f(e,r)}function jv(e){var r=tw();return function(){var n=cu(e),o;if(r){var a=cu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return ew(this,o)}}function ew(e,r){if(r&&(su(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fu(e)}function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cu(e)}function Bf(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Cv=function(e){Dv(t,e);var r=jv(t);function t(){var n;return wv(this,t),n=r.call(this),Bf(fu(n),"dragHandler",void 0),Bf(fu(n),"onDraging",function(o){var a=o.event,l=n.props,p=l.graphModel,g=l.bezierModel,x=l.type,w=p.getPointByClient({x:a.clientX,y:a.clientY}),R=w.canvasOverlayPosition,B=R.x,$=R.y;g.updateAdjustAnchor({x:B,y:$},x)}),Bf(fu(n),"onDragEnd",function(){var o=n.props.bezierModel;o.isDragging=!1}),n.dragHandler=new to({onDraging:n.onDraging,onDragEnd:n.onDragEnd}),n}return Nv(t,[{key:"render",value:function(){var o=this,a=this.props.position,l=a.x,p=a.y,g=this.props.bezierModel,x=g.getEdgeStyle(),w=x.adjustAnchor;return Object(ne.g)(bi,Oi({className:"lf-bezier-adjust-anchor",x:l,y:p},w,{onMouseDown:function(B){o.dragHandler.handleMouseDown(B)}}))}}]),t}(ne.a),rw=Gr(Tv=function(e){Dv(t,e);var r=jv(t);function t(){return wv(this,t),r.apply(this,arguments)}return Nv(t,[{key:"getBezierAdjust",value:function(o,a){var l=o.path,p=o.id,g=$a(l),x=VM(g,4),w=x[0],R=x[1],B=x[2],$=x[3],Q=o.getEdgeStyle(),oe=Q.adjustLine,fe=[];return fe.push(Object(ne.g)(ro,Oi({x1:w.x,y1:w.y,x2:R.x,y2:R.y},oe))),fe.push(Object(ne.g)(Cv,{position:R,bezierModel:o,graphModel:a,key:"".concat(p,"_ePre"),type:"sNext"})),fe.push(Object(ne.g)(ro,Oi({x1:$.x,y1:$.y,x2:B.x,y2:B.y},oe))),fe.push(Object(ne.g)(Cv,{position:B,bezierModel:o,graphModel:a,key:"".concat(p,"_sNext"),type:"ePre"})),fe}},{key:"selectedBezierEdge",value:function(){for(var o=this.props.graphModel,a=o.edges,l=[],p=0;p<a.length;p++){var g=a[p];g.isSelected&&g.modelType===dt.BEZIER_EDGE&&g.draggable&&l.push(this.getBezierAdjust(g,o))}return l}},{key:"render",value:function(){return Object(ne.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),t}(ne.a))||Tv;function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(t){return typeof t}:du=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}var Rv;function nw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Iv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ow(e,r,t){return r&&Iv(e.prototype,r),t&&Iv(e,t),e}function iw(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Lf(e,r)}function Lf(e,r){return Lf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Lf(e,r)}function aw(e){var r=sw();return function(){var n=pu(e),o;if(r){var a=pu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return uw(this,o)}}function uw(e,r){if(r&&(du(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lw(e)}function lw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pu(e)}var fw=Gr(Rv=function(e){iw(t,e);var r=aw(t);function t(){return nw(this,t),r.apply(this,arguments)}return ow(t,[{key:"render",value:function(){var o=this.props.graphModel.transformModel,a=o.getTransformStyle(),l=a.transform,p=this.props.children;return Object(ne.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(ne.g)("g",{transform:l},p))}}]),t}(ne.a))||Rv;function hu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(t){return typeof t}:hu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}var _v;function zf(){return zf=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},zf.apply(this,arguments)}function cw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Bv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dw(e,r,t){return r&&Bv(e.prototype,r),t&&Bv(e,t),e}function pw(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Ff(e,r)}function Ff(e,r){return Ff=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Ff(e,r)}function hw(e){var r=gw();return function(){var n=vu(e),o;if(r){var a=vu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return vw(this,o)}}function vw(e,r){if(r&&(hu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yw(e)}function yw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vu(e)}var mw=Gr(_v=function(e){pw(t,e);var r=hw(t);function t(){return cw(this,t),r.apply(this,arguments)}return dw(t,[{key:"getComponent",value:function(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",p=this.props.getView,g=p(o.type);return Object(ne.g)(g,{key:o.id,model:o,graphModel:a,overlay:l})}},{key:"render",value:function(){var o=this,a=this.props,l=a.graphModel,p=a.tool,g=a.options,x=a.dnd,w=a.snaplineModel,R={};g.width&&(R.width="".concat(l.width,"px")),g.height&&(R.height="".concat(l.height,"px"));var B=l.fakerNode,$=l.editConfigModel,Q=$.adjustEdge;return Object(ne.g)("div",{className:"lf-graph",style:R},Object(ne.g)(XT,{graphModel:l,dnd:x},Object(ne.g)("g",{className:"lf-base"},Sa(l.sortElements,function(oe){return o.getComponent(oe,l)})),B?this.getComponent(B,l):""),Object(ne.g)(fw,{graphModel:l},Object(ne.g)($M,{graphModel:l}),Q?Object(ne.g)(rw,{graphModel:l}):"",!g.isSilentMode&&g.snapline!==!1?Object(ne.g)(NM,{snaplineModel:w}):""),Object(ne.g)(qT,{graphModel:l,tool:p}),g.background&&Object(ne.g)(uM,{background:g.background}),g.grid&&Object(ne.g)(hv,zf({},g.grid,{graphModel:l})))}}]),t}(ne.a))||_v,bw=mw;function Lv(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function yu(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Lv(Object(t),!0).forEach(function(n){pn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lv(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Ow(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function zv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ew(e,r,t){return r&&zv(e.prototype,r),t&&zv(e,t),e}function pn(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var xw=function(){function e(r){var t=this;Ow(this,e),pn(this,"nodeConfig",void 0),pn(this,"lf",void 0),pn(this,"fakerNode",void 0),pn(this,"stopDrag",function(){t.nodeConfig=null,window.document.removeEventListener("mouseup",t.stopDrag)}),pn(this,"dragEnter",function(o){!t.nodeConfig||t.fakerNode||(t.fakerNode=t.lf.createFakerNode(yu(yu({},t.nodeConfig),t.clientToLocalPoint({x:o.clientX,y:o.clientY}))))}),pn(this,"onDragOver",function(o){if(o.preventDefault(),t.fakerNode){var a=t.clientToLocalPoint({x:o.clientX,y:o.clientY}),l=a.x,p=a.y;t.fakerNode.moveTo(l,p);var g=t.fakerNode.getData();t.lf.setNodeSnapLine(g),t.lf.graphModel.eventCenter.emit(it.NODE_DND_DRAG,{data:g})}return!1}),pn(this,"onDragLeave",function(){t.fakerNode&&(t.lf.removeNodeSnapLine(),t.lf.graphModel.removeFakerNode(),t.fakerNode=null)}),pn(this,"onDrop",function(o){if(!(!t.lf.graphModel||!o||!t.nodeConfig)){var a=t.lf.addNode(yu(yu({},t.nodeConfig),t.clientToLocalPoint({x:o.clientX,y:o.clientY})));o.preventDefault(),o.stopPropagation(),t.nodeConfig=null,t.lf.removeNodeSnapLine(),t.lf.graphModel.removeFakerNode(),t.fakerNode=null;var l=a.getData();t.lf.graphModel.eventCenter.emit(it.NODE_DND_ADD,{data:l})}});var n=r.lf;this.lf=n}return Ew(e,[{key:"clientToLocalPoint",value:function(t){var n=t.x,o=t.y,a=Rd(this.lf.options,["grid","size"]),l=this.lf.graphModel.getPointByClient({x:n,y:o}),p=l.canvasOverlayPosition,g=p.x,x=p.y;return{x:To(g,a),y:To(x,a)}}},{key:"startDrag",value:function(t){this.nodeConfig=t,window.document.addEventListener("mouseup",this.stopDrag)}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}]),e}();function Fv(e){var r=e.container,t=e.grid,n=e.width,o=e.height;if(!r)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof n=="string"||typeof o=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return t&&(e.grid=or({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},t)),or({},Hv,e)}var Hv={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function gu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gu=function(t){return typeof t}:gu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}var gt,Gv;function Hf(e,r){return Mw(e)||Tw(e,r)||Pw(e,r)||Sw()}function Sw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  44. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pw(e,r){if(!!e){if(typeof e=="string")return kv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kv(e,r)}}function kv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Tw(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function Mw(e){if(Array.isArray(e))return e}function $v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function mu(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?$v(Object(t),!0).forEach(function(n){Xv(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$v(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function ww(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function Aw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Uv(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nw(e,r,t){return r&&Uv(e.prototype,r),t&&Uv(e,t),e}function Co(){return typeof Reflect!="undefined"&&Reflect.get?Co=Reflect.get:Co=function(r,t,n){var o=Dw(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Co.apply(this,arguments)}function Dw(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=In(e),e!==null););return e}function jw(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Gf(e,r)}function Gf(e,r){return Gf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Gf(e,r)}function Cw(e){var r=Iw();return function(){var n=In(e),o;if(r){var a=In(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return Rw(this,o)}}function Rw(e,r){if(r&&(gu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bu(e)}function bu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},In(e)}function Xv(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _r(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var kf=(gt=function(e){jw(t,e);var r=Cw(t);function t(){var n;Aw(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),Xv(bu(n),"modelType",dt.BEZIER_EDGE),ww(bu(n),"path",Gv,bu(n)),n}return Nw(t,[{key:"initEdgeData",value:function(o){this.offset=100,Co(In(t.prototype),"initEdgeData",this).call(this,o)}},{key:"getEdgeStyle",value:function(){var o=this.graphModel.theme.bezier,a=Co(In(t.prototype),"getEdgeStyle",this).call(this);return mu(mu({},a),jt(o))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var o=0,a=0;return this.pointsList.forEach(function(l){var p=l.x,g=l.y;o+=p,a+=g}),{x:o/this.pointsList.length,y:a/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var o=Co(In(t.prototype),"getData",this).call(this),a=this.pointsList.map(function(l){var p=l.x,g=l.y;return{x:p,y:g}});return mu(mu({},o),{},{pointsList:a})}},{key:"getControls",value:function(){var o=this.startPoint,a=this.endPoint,l=Lh({start:o,end:a,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return l}},{key:"getPath",value:function(o){var a=Hf(o,4),l=a[0],p=a[1],g=a[2],x=a[3];return"M ".concat(l.x," ").concat(l.y,`
  45. C `).concat(p.x," ").concat(p.y,`,
  46. `).concat(g.x," ").concat(g.y,`,
  47. `).concat(x.x," ").concat(x.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var o=this.getControls(),a=o.sNext,l=o.ePre;this.updatePath(a,l)}},{key:"updatePath",value:function(o,a){var l={x:this.startPoint.x,y:this.startPoint.y},p={x:this.endPoint.x,y:this.endPoint.y};if(!o||!a){var g=this.getControls();o=g.sNext,a=g.ePre}this.pointsList=[l,o,a,p],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(o){this.startPoint=o,this.updatePoints()}},{key:"updateEndPoint",value:function(o){this.endPoint=o,this.updatePoints()}},{key:"moveStartPoint",value:function(o,a){this.startPoint.x+=o,this.startPoint.y+=a;var l=Hf(this.pointsList,3),p=l[1],g=l[2];p.x+=o,p.y+=a,this.updatePath(p,g)}},{key:"moveEndPoint",value:function(o,a){this.endPoint.x+=o,this.endPoint.y+=a;var l=Hf(this.pointsList,3),p=l[1],g=l[2];g.x+=o,g.y+=a,this.updatePath(p,g)}},{key:"updateAdjustAnchor",value:function(o,a){a==="sNext"?this.pointsList[1]=o:a==="ePre"&&(this.pointsList[2]=o),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var o=this.pointsList;return o[o.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(o){var a=o.startPoint,l=o.endPoint,p=o.sourceNode,g=o.targetNode,x=Lh({start:a,end:l,sourceNode:p,targetNode:g,offset:this.offset}),w=x.sNext,R=x.ePre;this.pointsList=[a,w,R,l],this.initPoints()}}]),t}(vf),Gv=_r(gt.prototype,"path",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_r(gt.prototype,"initPoints",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"initPoints"),gt.prototype),_r(gt.prototype,"updatePoints",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"updatePoints"),gt.prototype),_r(gt.prototype,"updateStartPoint",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"updateStartPoint"),gt.prototype),_r(gt.prototype,"updateEndPoint",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"updateEndPoint"),gt.prototype),_r(gt.prototype,"moveStartPoint",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"moveStartPoint"),gt.prototype),_r(gt.prototype,"moveEndPoint",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"moveEndPoint"),gt.prototype),_r(gt.prototype,"updateAdjustAnchor",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"updateAdjustAnchor"),gt.prototype),_r(gt.prototype,"getAdjustStart",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"getAdjustStart"),gt.prototype),_r(gt.prototype,"getAdjustEnd",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"getAdjustEnd"),gt.prototype),_r(gt.prototype,"updateAfterAdjustStartAndEnd",[f.k],Object.getOwnPropertyDescriptor(gt.prototype,"updateAfterAdjustStartAndEnd"),gt.prototype),gt);function _w(e){return e==null}var Bw=_w,Le,Yv,Wv,Kv,Vv,Zv,Jv,Qv,qv,ey,ty,ry,ny,oy,iy,ay,uy,ly,sy;function Ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ou=function(t){return typeof t}:Ou=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function Lw(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=zw(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  48. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,p;return{s:function(){t=t.call(e)},n:function(){var x=t.next();return a=x.done,x},e:function(x){l=!0,p=x},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(l)throw p}}}}function zw(e,r){if(!!e){if(typeof e=="string")return fy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fy(e,r)}}function fy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function cy(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ar(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?cy(Object(t),!0).forEach(function(n){br(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cy(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Yt(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function Fw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dy(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hw(e,r,t){return r&&dy(e.prototype,r),t&&dy(e,t),e}function br(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ht(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var hn=(Le=function(){function e(r,t){Fw(this,e),br(this,"id",eo()),Yt(this,"type",Yv,this),Yt(this,"x",Wv,this),Yt(this,"y",Kv,this),Yt(this,"text",Vv,this),Yt(this,"properties",Zv,this),Yt(this,"_width",Jv,this),Yt(this,"_height",Qv,this),Yt(this,"anchorsOffset",qv,this),Yt(this,"isSelected",ey,this),Yt(this,"isHovered",ty,this),Yt(this,"isDragging",ry,this),Yt(this,"isHitable",ny,this),Yt(this,"draggable",oy,this),Yt(this,"visible",iy,this),br(this,"graphModel",void 0),Yt(this,"zIndex",ay,this),Yt(this,"state",uy,this),Yt(this,"autoToFront",ly,this),Yt(this,"style",sy,this),br(this,"BaseType",Gt.NODE),br(this,"modelType",dt.NODE),br(this,"additionStateData",void 0),br(this,"targetRules",[]),br(this,"sourceRules",[]),br(this,"moveRules",[]),br(this,"hasSetTargetRules",!1),br(this,"hasSetSourceRules",!1),this.graphModel=t,this.initNodeData(r),this.setAttributes()}return Hw(e,[{key:"width",get:function(){return this._width},set:function(t){this._width=t}},{key:"height",get:function(){return this._height},set:function(t){this._height=t}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(t){if(t.properties||(t.properties={}),!t.id){var n=this.graphModel.idGenerator,o=n&&n(t.type);o&&(t.id=o);var a=this.createId();a&&(t.id=a)}this.formatText(t),or(this,AP(t));var l=this.graphModel.overlapMode;l===gr.INCREASE&&(this.zIndex=t.zIndex||pf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(t){t.text||(t.text={value:"",x:t.x,y:t.y,draggable:!1,editable:!0}),t.text&&typeof t.text=="string"?t.text={value:t.text,x:t.x,y:t.y,draggable:!1,editable:!0}:t.text&&t.text.editable===void 0&&(t.text.editable=!0)}},{key:"getData",value:function(){var t=this.text,n=t.x,o=t.y,a=t.value,l=this.properties;Object(f.x)(l)&&(l=Object(f.I)(l));var p={id:this.id,type:this.type,x:this.x,y:this.y,properties:l};return this.graphModel.overlapMode===gr.INCREASE&&(p.zIndex=this.zIndex),a&&(p.text={x:n,y:o,value:a}),p}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(f.I)(this.properties)}},{key:"getNodeStyle",value:function(){return ar(ar({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var t=this.graphModel.theme.nodeText;return jt(t)}},{key:"getAnchorStyle",value:function(t){var n=this.graphModel.theme.anchor;return jt(n)}},{key:"getAnchorLineStyle",value:function(){var t=this.graphModel.theme.anchorLine;return jt(t)}},{key:"getOutlineStyle",value:function(){var t=this.graphModel.theme.outline;return jt(t)}},{key:"isAllowConnectedAsSource",value:function(t,n,o){var a=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var l=!0,p,g=0;g<a.length;g++){var x=a[g];if(!x.validate.call(this,this,t,n,o)){l=!1,p=x.message;break}}return{isAllPass:l,msg:p}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(t,n,o){var a=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var l=!0,p,g=0;g<a.length;g++){var x=a[g];if(!x.validate.call(this,t,this,n,o)){l=!1,p=x.message;break}}return{isAllPass:l,msg:p}}},{key:"isAllowMoveNode",value:function(t,n){var o=!0,a=!0,l=this.moveRules.concat(this.graphModel.nodeMoveRules),p=Lw(l),g;try{for(p.s();!(g=p.n()).done;){var x=g.value,w=x(this,t,n);if(!w)return!1;if(Ou(w)==="object"){var R=w;if(R.x===!1&&R.y===!1)return!1;o=o&&R.x,a=a&&R.y}}}catch(B){p.e(B)}finally{p.f()}return{x:o,y:a}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var t=this.anchorsOffset,n=this.id,o=this.x,a=this.y;return t&&t.length>0?t.map(function(l,p){return l.length?(l=l,{id:"".concat(n,"_").concat(p),x:o+l[0],y:a+l[1]}):(l=l,ar(ar({},l),{},{x:o+l.x,y:a+l.y,id:l.id||"".concat(n,"_").concat(p)}))}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){return this.getAnchorsByOffset()}},{key:"getAnchorInfo",value:function(t){if(!Bw(t))for(var n=0;n<this.anchors.length;n++){var o=this.anchors[n];if(o.id===t)return o}}},{key:"addNodeMoveRules",value:function(t){this.moveRules.includes(t)||this.moveRules.push(t)}},{key:"move",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=!1,l=!1;if(o)a=!0,l=!0;else{var p=this.isAllowMoveNode(t,n);typeof p=="boolean"?(a=p,l=p):(a=p.x,l=p.y)}if(a){var g=this.x+t;this.x=g,this.text&&this.moveText(t,0)}if(l){var x=this.y+n;this.y=x,this.text&&this.moveText(0,n)}return a||l}},{key:"moveTo",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=t-this.x,l=n-this.y;return!o&&!this.isAllowMoveNode(a,l)?!1:(this.text&&this.text&&this.moveText(a,l),this.x=t,this.y=n,!0)}},{key:"moveText",value:function(t,n){var o=this.text,a=o.x,l=o.y,p=o.value,g=o.draggable,x=o.editable;this.text={value:p,editable:x,draggable:g,x:a+t,y:l+n}}},{key:"updateText",value:function(t){this.text=ar(ar({},this.text),{},{value:t})}},{key:"setSelected",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isSelected=t}},{key:"setHovered",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isHovered=t}},{key:"setHitable",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isHitable=t}},{key:"setElementState",value:function(t,n){this.state=t,this.additionStateData=n}},{key:"setProperty",value:function(t,n){this.properties=ar(ar({},this.properties),{},br({},t,er(n))),this.setAttributes()}},{key:"setProperties",value:function(t){this.properties=ar(ar({},this.properties),er(t)),this.setAttributes()}},{key:"setStyle",value:function(t,n){this.style=ar(ar({},this.style),{},br({},t,er(n)))}},{key:"setStyles",value:function(t){this.style=ar(ar({},this.style),er(t))}},{key:"updateStyles",value:function(t){this.style=ar({},er(t))}},{key:"setZIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=t}},{key:"updateAttributes",value:function(t){or(this,t)}}]),e}(),Yv=ht(Le.prototype,"type",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Wv=ht(Le.prototype,"x",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Kv=ht(Le.prototype,"y",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vv=ht(Le.prototype,"text",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Zv=ht(Le.prototype,"properties",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Jv=ht(Le.prototype,"_width",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),Qv=ht(Le.prototype,"_height",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),qv=ht(Le.prototype,"anchorsOffset",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ey=ht(Le.prototype,"isSelected",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ty=ht(Le.prototype,"isHovered",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ry=ht(Le.prototype,"isDragging",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ny=ht(Le.prototype,"isHitable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),oy=ht(Le.prototype,"draggable",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),iy=ht(Le.prototype,"visible",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ay=ht(Le.prototype,"zIndex",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),uy=ht(Le.prototype,"state",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ly=ht(Le.prototype,"autoToFront",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),sy=ht(Le.prototype,"style",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ht(Le.prototype,"incoming",[f.m],Object.getOwnPropertyDescriptor(Le.prototype,"incoming"),Le.prototype),ht(Le.prototype,"outgoing",[f.m],Object.getOwnPropertyDescriptor(Le.prototype,"outgoing"),Le.prototype),ht(Le.prototype,"addNodeMoveRules",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"addNodeMoveRules"),Le.prototype),ht(Le.prototype,"move",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"move"),Le.prototype),ht(Le.prototype,"moveTo",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"moveTo"),Le.prototype),ht(Le.prototype,"moveText",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"moveText"),Le.prototype),ht(Le.prototype,"updateText",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"updateText"),Le.prototype),ht(Le.prototype,"setSelected",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setSelected"),Le.prototype),ht(Le.prototype,"setHovered",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setHovered"),Le.prototype),ht(Le.prototype,"setHitable",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setHitable"),Le.prototype),ht(Le.prototype,"setElementState",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setElementState"),Le.prototype),ht(Le.prototype,"setProperty",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setProperty"),Le.prototype),ht(Le.prototype,"setProperties",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setProperties"),Le.prototype),ht(Le.prototype,"setStyle",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setStyle"),Le.prototype),ht(Le.prototype,"setStyles",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setStyles"),Le.prototype),ht(Le.prototype,"updateStyles",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"updateStyles"),Le.prototype),ht(Le.prototype,"setZIndex",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"setZIndex"),Le.prototype),ht(Le.prototype,"updateAttributes",[f.k],Object.getOwnPropertyDescriptor(Le.prototype,"updateAttributes"),Le.prototype),Le);function Eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Eu=function(t){return typeof t}:Eu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}var vn,py;function hy(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function vy(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?hy(Object(t),!0).forEach(function(n){gy(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hy(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Gw(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function kw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function yy(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $w(e,r,t){return r&&yy(e.prototype,r),t&&yy(e,t),e}function xu(){return typeof Reflect!="undefined"&&Reflect.get?xu=Reflect.get:xu=function(r,t,n){var o=Uw(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},xu.apply(this,arguments)}function Uw(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Ro(e),e!==null););return e}function Xw(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&$f(e,r)}function $f(e,r){return $f=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},$f(e,r)}function Yw(e){var r=Kw();return function(){var n=Ro(e),o;if(r){var a=Ro(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return Ww(this,o)}}function Ww(e,r){if(r&&(Eu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Su(e)}function Su(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ro(e)}function gy(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Uf(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Xf=(vn=function(e){Xw(t,e);var r=Yw(t);function t(){var n;kw(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),gy(Su(n),"modelType",dt.CIRCLE_NODE),Gw(Su(n),"r",py,Su(n)),n}return $w(t,[{key:"width",get:function(){return this.r*2}},{key:"height",get:function(){return this.r*2}},{key:"getNodeStyle",value:function(){var o=xu(Ro(t.prototype),"getNodeStyle",this).call(this),a=this.graphModel.theme.circle;return vy(vy({},o),jt(a))}},{key:"getDefaultAnchor",value:function(){var o=this.x,a=this.y,l=this.r;return[{x:o,y:a-l,id:"".concat(this.id,"_0")},{x:o+l,y:a,id:"".concat(this.id,"_1")},{x:o,y:a+l,id:"".concat(this.id,"_2")},{x:o-l,y:a,id:"".concat(this.id,"_3")}]}}]),t}(hn),py=Uf(vn.prototype,"r",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Uf(vn.prototype,"width",[f.m],Object.getOwnPropertyDescriptor(vn.prototype,"width"),vn.prototype),Uf(vn.prototype,"height",[f.m],Object.getOwnPropertyDescriptor(vn.prototype,"height"),vn.prototype),vn);i(127);function Pu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pu=function(t){return typeof t}:Pu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}var tr,my,by;function Yf(e,r){return Qw(e)||Jw(e,r)||Zw(e,r)||Vw()}function Vw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  49. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zw(e,r){if(!!e){if(typeof e=="string")return Oy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oy(e,r)}}function Oy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Jw(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function Qw(e){if(Array.isArray(e))return e}function Ey(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function xy(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ey(Object(t),!0).forEach(function(n){Ty(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ey(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Sy(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function qw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Py(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eA(e,r,t){return r&&Py(e.prototype,r),t&&Py(e,t),e}function Tu(){return typeof Reflect!="undefined"&&Reflect.get?Tu=Reflect.get:Tu=function(r,t,n){var o=tA(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Tu.apply(this,arguments)}function tA(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=_o(e),e!==null););return e}function rA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Wf(e,r)}function Wf(e,r){return Wf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Wf(e,r)}function nA(e){var r=iA();return function(){var n=_o(e),o;if(r){var a=_o(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return oA(this,o)}}function oA(e,r){if(r&&(Pu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Io(e)}function Io(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _o(e){return _o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_o(e)}function Ty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Bo(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Kf=(tr=function(e){rA(t,e);var r=nA(t);function t(){var n;qw(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),Ty(Io(n),"modelType",dt.DIAMOND_NODE),Sy(Io(n),"rx",my,Io(n)),Sy(Io(n),"ry",by,Io(n)),n}return eA(t,[{key:"getNodeStyle",value:function(){var o=Tu(_o(t.prototype),"getNodeStyle",this).call(this),a=this.graphModel.theme.diamond;return xy(xy({},o),jt(a))}},{key:"points",get:function(){var o=this.x,a=this.y,l=this.rx,p=this.ry;return[[o,a-p],[o+l,a],[o,a+p],[o-l,a]]}},{key:"pointsPosition",get:function(){var o=this.points.map(function(a){return{x:a[0],y:a[1]}});return o}},{key:"width",get:function(){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(l){var p=Yf(l,1),g=p[0];g<o&&(o=g),g>a&&(a=g)}),a-o}},{key:"height",get:function(){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(l){var p=Yf(l,2),g=p[1];g<o&&(o=g),g>a&&(a=g)}),a-o}},{key:"getDefaultAnchor",value:function(){var o=this;return this.points.map(function(a,l){var p=Yf(a,2),g=p[0],x=p[1];return{x:g,y:x,id:"".concat(o.id,"_").concat(l)}})}}]),t}(hn),my=Bo(tr.prototype,"rx",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),by=Bo(tr.prototype,"ry",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Bo(tr.prototype,"points",[f.m],Object.getOwnPropertyDescriptor(tr.prototype,"points"),tr.prototype),Bo(tr.prototype,"pointsPosition",[f.m],Object.getOwnPropertyDescriptor(tr.prototype,"pointsPosition"),tr.prototype),Bo(tr.prototype,"width",[f.m],Object.getOwnPropertyDescriptor(tr.prototype,"width"),tr.prototype),Bo(tr.prototype,"height",[f.m],Object.getOwnPropertyDescriptor(tr.prototype,"height"),tr.prototype),tr);function Mu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mu=function(t){return typeof t}:Mu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}var Vr,My,wy;function Ay(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Ny(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ay(Object(t),!0).forEach(function(n){Cy(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ay(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Dy(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function aA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function jy(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uA(e,r,t){return r&&jy(e.prototype,r),t&&jy(e,t),e}function wu(){return typeof Reflect!="undefined"&&Reflect.get?wu=Reflect.get:wu=function(r,t,n){var o=lA(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},wu.apply(this,arguments)}function lA(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=zo(e),e!==null););return e}function sA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Vf(e,r)}function Vf(e,r){return Vf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Vf(e,r)}function fA(e){var r=dA();return function(){var n=zo(e),o;if(r){var a=zo(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return cA(this,o)}}function cA(e,r){if(r&&(Mu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lo(e)}function Lo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zo(e)}function Cy(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Au(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Zf=(Vr=function(e){sA(t,e);var r=fA(t);function t(){var n;aA(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),Cy(Lo(n),"modelType",dt.ELLIPSE_NODE),Dy(Lo(n),"rx",My,Lo(n)),Dy(Lo(n),"ry",wy,Lo(n)),n}return uA(t,[{key:"getNodeStyle",value:function(){var o=wu(zo(t.prototype),"getNodeStyle",this).call(this),a=this.graphModel.theme.ellipse;return Ny(Ny({},o),jt(a))}},{key:"width",get:function(){return this.rx*2}},{key:"height",get:function(){return this.ry*2}},{key:"getDefaultAnchor",value:function(){var o=this.x,a=this.y,l=this.rx,p=this.ry;return[{x:o,y:a-p,id:"".concat(this.id,"_0")},{x:o+l,y:a,id:"".concat(this.id,"_1")},{x:o,y:a+p,id:"".concat(this.id,"_2")},{x:o-l,y:a,id:"".concat(this.id,"_3")}]}}]),t}(hn),My=Au(Vr.prototype,"rx",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),wy=Au(Vr.prototype,"ry",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),Au(Vr.prototype,"width",[f.m],Object.getOwnPropertyDescriptor(Vr.prototype,"width"),Vr.prototype),Au(Vr.prototype,"height",[f.m],Object.getOwnPropertyDescriptor(Vr.prototype,"height"),Vr.prototype),Vr);function Nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nu=function(t){return typeof t}:Nu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}var Nr,Ry;function Jf(e,r){return yA(e)||vA(e,r)||hA(e,r)||pA()}function pA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  50. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hA(e,r){if(!!e){if(typeof e=="string")return Iy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Iy(e,r)}}function Iy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function vA(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function yA(e){if(Array.isArray(e))return e}function _y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function By(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?_y(Object(t),!0).forEach(function(n){zy(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_y(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function gA(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function mA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ly(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bA(e,r,t){return r&&Ly(e.prototype,r),t&&Ly(e,t),e}function Du(){return typeof Reflect!="undefined"&&Reflect.get?Du=Reflect.get:Du=function(r,t,n){var o=OA(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Du.apply(this,arguments)}function OA(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Fo(e),e!==null););return e}function EA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Qf(e,r)}function Qf(e,r){return Qf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Qf(e,r)}function xA(e){var r=PA();return function(){var n=Fo(e),o;if(r){var a=Fo(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return SA(this,o)}}function SA(e,r){if(r&&(Nu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ju(e)}function ju(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Fo(e)}function zy(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Cu(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var qf=(Nr=function(e){EA(t,e);var r=xA(t);function t(){var n;mA(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),zy(ju(n),"modelType",dt.POLYGON_NODE),gA(ju(n),"points",Ry,ju(n)),n}return bA(t,[{key:"getNodeStyle",value:function(){var o=Du(Fo(t.prototype),"getNodeStyle",this).call(this),a=this.graphModel.theme.polygon;return By(By({},o),jt(a))}},{key:"pointsPosition",get:function(){var o=this.x,a=this.y,l=this.width,p=this.height,g=this.points.map(function(x){return{x:x[0]+o-l/2,y:x[1]+a-p/2}});return g}},{key:"width",get:function(){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(l){var p=Jf(l,1),g=p[0];g<o&&(o=g),g>a&&(a=g)}),a-o}},{key:"height",get:function(){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(l){var p=Jf(l,2),g=p[1];g<o&&(o=g),g>a&&(a=g)}),a-o}},{key:"getDefaultAnchor",value:function(){var o=this,a=this.x,l=this.y,p=this.width,g=this.height,x=this.points;return x.map(function(w,R){var B=Jf(w,2),$=B[0],Q=B[1];return{x:a+$-p/2,y:l+Q-g/2,id:"".concat(o.id,"_").concat(R)}})}}]),t}(hn),Ry=Cu(Nr.prototype,"points",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),Cu(Nr.prototype,"pointsPosition",[f.m],Object.getOwnPropertyDescriptor(Nr.prototype,"pointsPosition"),Nr.prototype),Cu(Nr.prototype,"width",[f.m],Object.getOwnPropertyDescriptor(Nr.prototype,"width"),Nr.prototype),Cu(Nr.prototype,"height",[f.m],Object.getOwnPropertyDescriptor(Nr.prototype,"height"),Nr.prototype),Nr);function Ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ru=function(t){return typeof t}:Ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}var ec,Fy;function Hy(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Gy(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Hy(Object(t),!0).forEach(function(n){$y(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Hy(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function TA(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function MA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ky(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wA(e,r,t){return r&&ky(e.prototype,r),t&&ky(e,t),e}function Iu(){return typeof Reflect!="undefined"&&Reflect.get?Iu=Reflect.get:Iu=function(r,t,n){var o=AA(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Iu.apply(this,arguments)}function AA(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Ho(e),e!==null););return e}function NA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&tc(e,r)}function tc(e,r){return tc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},tc(e,r)}function DA(e){var r=CA();return function(){var n=Ho(e),o;if(r){var a=Ho(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return jA(this,o)}}function jA(e,r){if(r&&(Ru(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _u(e)}function _u(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ho(e)}function $y(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RA(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var rc=(ec=function(e){NA(t,e);var r=DA(t);function t(){var n;MA(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),$y(_u(n),"modelType",dt.RECT_NODE),TA(_u(n),"radius",Fy,_u(n)),n}return wA(t,[{key:"getDefaultAnchor",value:function(){var o=this.x,a=this.y,l=this.width,p=this.height;return[{x:o,y:a-p/2,id:"".concat(this.id,"_0")},{x:o+l/2,y:a,id:"".concat(this.id,"_1")},{x:o,y:a+p/2,id:"".concat(this.id,"_2")},{x:o-l/2,y:a,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var o=Iu(Ho(t.prototype),"getNodeStyle",this).call(this),a=this.graphModel.theme.rect;return Gy(Gy({},o),jt(a))}}]),t}(hn),Fy=RA(ec.prototype,"radius",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec);function Bu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bu=function(t){return typeof t}:Bu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}var _n;function Uy(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Xy(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Uy(Object(t),!0).forEach(function(n){Ky(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Uy(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function IA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Yy(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _A(e,r,t){return r&&Yy(e.prototype,r),t&&Yy(e,t),e}function Lu(){return typeof Reflect!="undefined"&&Reflect.get?Lu=Reflect.get:Lu=function(r,t,n){var o=BA(r,t);if(!!o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Lu.apply(this,arguments)}function BA(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=Go(e),e!==null););return e}function LA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&nc(e,r)}function nc(e,r){return nc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},nc(e,r)}function zA(e){var r=HA();return function(){var n=Go(e),o;if(r){var a=Go(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return FA(this,o)}}function FA(e,r){if(r&&(Bu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wy(e)}function Wy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Go(e)}function Ky(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Vy(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var oc=(_n=function(e){LA(t,e);var r=zA(t);function t(){var n;IA(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),Ky(Wy(n),"modelType",dt.TEXT_NODE),n}return _A(t,[{key:"getTextStyle",value:function(){var o=Lu(Go(t.prototype),"getTextStyle",this).call(this),a=this.graphModel.theme.text;return Xy(Xy({},o),jt(a))}},{key:"width",get:function(){var o=String(this.text.value).split(/[\r\n]/g),a=this.getTextStyle(),l=a.fontSize,p=df({rows:o,fontSize:l,rowsLength:o.length}),g=p.width;return g}},{key:"height",get:function(){var o=String(this.text.value).split(/[\r\n]/g),a=this.getTextStyle(),l=a.fontSize,p=df({rows:o,fontSize:l,rowsLength:o.length}),g=p.height;return g}}]),t}(hn),Vy(_n.prototype,"width",[f.m],Object.getOwnPropertyDescriptor(_n.prototype,"width"),_n.prototype),Vy(_n.prototype,"height",[f.m],Object.getOwnPropertyDescriptor(_n.prototype,"height"),_n.prototype),_n);function zu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zu=function(t){return typeof t}:zu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function GA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Zy(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kA(e,r,t){return r&&Zy(e.prototype,r),t&&Zy(e,t),e}function $A(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&ic(e,r)}function ic(e,r){return ic=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},ic(e,r)}function UA(e){var r=YA();return function(){var n=Fu(e),o;if(r){var a=Fu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return XA(this,o)}}function XA(e,r){if(r&&(zu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jy(e)}function Jy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Fu(e)}function WA(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ac=function(e){$A(t,e);var r=UA(t);function t(){var n;GA(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),WA(Jy(n),"modelType",dt.HTML_NODE),n}return kA(t,[{key:"getDefaultAnchor",value:function(){var o=this.x,a=this.y,l=this.width,p=this.height;return[{x:o,y:a-p/2,id:"".concat(this.id,"_0")},{x:o+l/2,y:a,id:"".concat(this.id,"_1")},{x:o,y:a+p/2,id:"".concat(this.id,"_2")},{x:o-l/2,y:a,id:"".concat(this.id,"_3")}]}}]),t}(hn),Br,Qy,qy,eg;function tg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function KA(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?tg(Object(t),!0).forEach(function(n){ng(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function uc(e,r,t,n){!t||Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function VA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ZA(e,r,t){return r&&rg(e.prototype,r),t&&rg(e,t),e}function ng(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ei(e,r,t,n,o){var a={};return Object.keys(n).forEach(function(l){a[l]=n[l]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(l,p){return p(e,r,l)||l},a),o&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var og=(Br=function(){function e(r){VA(this,e),ng(this,"graphModel",void 0),uc(this,"isShowHorizontal",Qy,this),uc(this,"isShowVertical",qy,this),uc(this,"position",eg,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=r}return ZA(e,[{key:"getStyle",value:function(){return KA({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(t,n){for(var o=t.x,a=t.y,l=!1,p=!1,g=0;g<n.length;g++){var x=n[g];if(x.id!==t.id&&(o===x.x&&(l=!0),a===x.y&&(p=!0),l&&p))break}return{isShowVertical:l,isShowHorizontal:p,position:{x:o,y:a}}}},{key:"getHorizontalSnapline",value:function(t,n){var o=!1,a,l=t.id,p;if(l){var g=this.graphModel.fakerNode;if(g&&g.id===l)p=mr(g);else{var x=this.graphModel.getNodeModelById(l);p=mr(x)}}for(var w=0;w<n.length;w++){var R=n[w];if(R.id!==t.id){var B=mr(R);if(B.minY===p.minY||B.maxY===p.minY){o=!0,a=p.minY;break}if(B.minY===p.maxY||B.maxY===p.maxY){o=!0,a=p.maxY;break}}}return or({isShowHorizontal:o,position:{y:a}})}},{key:"getVerticalSnapline",value:function(t,n){var o=!1,a,l=t.id,p;if(l){var g=this.graphModel.fakerNode;if(g&&g.id===l)p=mr(g);else{var x=this.graphModel.getNodeModelById(l);p=mr(x)}}for(var w=0;w<n.length;w++){var R=n[w];if(R.id!==t.id){var B=mr(R);if(B.minX===p.minX||B.maxX===p.minX){o=!0,a=p.minX;break}if(B.minX===p.maxX||B.maxX===p.maxX){o=!0,a=p.maxX;break}}}return or({isShowVertical:o,position:{x:a}})}},{key:"getSnapLinePosition",value:function(t,n){var o=this.getCenterSnapLine(t,n),a=o.isShowHorizontal,l=o.isShowVertical;if(!a){var p=this.getHorizontalSnapline(t,n);p.isShowHorizontal&&(o.isShowHorizontal=p.isShowHorizontal,o.position.y=p.position.y)}if(!l){var g=this.getVerticalSnapline(t,n);g.isShowVertical&&(o.isShowVertical=g.isShowVertical,o.position.x=g.position.x)}return o}},{key:"setSnaplineInfo",value:function(t){var n=t.isShowHorizontal,o=t.isShowVertical,a=t.position;this.position=a,this.isShowHorizontal=n,this.isShowVertical=o}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(t){var n=this.graphModel.nodes,o=this.getSnapLinePosition(t,n);this.setSnaplineInfo(o)}}]),e}(),Qy=Ei(Br.prototype,"isShowHorizontal",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qy=Ei(Br.prototype,"isShowVertical",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eg=Ei(Br.prototype,"position",[f.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei(Br.prototype,"clearSnapline",[f.k],Object.getOwnPropertyDescriptor(Br.prototype,"clearSnapline"),Br.prototype),Ei(Br.prototype,"setNodeSnapLine",[f.k],Object.getOwnPropertyDescriptor(Br.prototype,"setNodeSnapLine"),Br.prototype),Br),xi=new Map,ig=function(r){var t=eo();function n(){r();var a=xi.get(t);if(a){var l=window.requestAnimationFrame(n);xi.set(t,l)}}var o=window.requestAnimationFrame(n);return xi.set(t,o),t},Hu=function(r){var t=xi.get(r);t&&(window.cancelAnimationFrame(t),xi.delete(r))};function Gu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gu=function(t){return typeof t}:Gu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}function Si(){return Si=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Si.apply(this,arguments)}function ag(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ug(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ag(Object(t),!0).forEach(function(n){Jr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ag(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function JA(e,r){return t1(e)||e1(e,r)||qA(e,r)||QA()}function QA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  51. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qA(e,r){if(!!e){if(typeof e=="string")return lg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lg(e,r)}}function lg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function e1(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function t1(e){if(Array.isArray(e))return e}function r1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function sg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n1(e,r,t){return r&&sg(e.prototype,r),t&&sg(e,t),e}function o1(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&lc(e,r)}function lc(e,r){return lc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},lc(e,r)}function i1(e){var r=u1();return function(){var n=ku(e),o;if(r){var a=ku(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return a1(this,o)}}function a1(e,r){if(r&&(Gu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zr(e)}function Zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ku(e)}function Jr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var l1=function(e){o1(t,e);var r=i1(t);function t(){var n;return r1(this,t),n=r.call(this),Jr(Zr(n),"preTargetNode",void 0),Jr(Zr(n),"sourceRuleResults",void 0),Jr(Zr(n),"targetRuleResults",void 0),Jr(Zr(n),"dragHandler",void 0),Jr(Zr(n),"t",void 0),Jr(Zr(n),"onDragStart",function(o){var a=o.event,l=n.props,p=l.anchorData,g=l.nodeModel,x=l.graphModel,w=x.overlapMode;x.selectNodeById(g.id),w!==gr.INCREASE&&g.autoToFront&&x.toFront(g.id),x.eventCenter.emit(it.ANCHOR_DRAGSTART,{data:p,e:a,nodeModel:g}),n.setState({startX:p.x,startY:p.y,endX:p.x,endY:p.y})}),Jr(Zr(n),"onDraging",function(o){var a=o.event,l=n.props,p=l.graphModel,g=l.nodeModel,x=l.anchorData,w=p.transformModel,R=p.eventCenter,B=p.width,$=p.height,Q=p.editConfigModel,oe=Q.autoExpand,fe=Q.stopMoveGraph,le=a.clientX,Ne=a.clientY,Se=p.getPointByClient({x:le,y:Ne}),Pe=Se.domOverlayPosition,Ge=Pe.x,Ie=Pe.y,Je=Se.canvasOverlayPosition,ke=Je.x,pt=Je.y;n.t&&Hu(n.t);var yt=[],lr=10;Ge<10?yt=[lr,0]:Ge+10>B?yt=[-lr,0]:Ie<10?yt=[0,lr]:Ie+10>$&&(yt=[0,-lr]),n.setState({endX:ke,endY:pt,draging:!0}),n.moveAnchorEnd(ke,pt),yt.length>0&&!fe&&oe&&(n.t=ig(function(){var Or=yt,rn=JA(Or,2),zn=rn[0],ao=rn[1];w.translate(zn,ao);var Xo=n.state,Fn=Xo.endX,Yo=Xo.endY;n.setState({endX:Fn-zn,endY:Yo-ao}),n.moveAnchorEnd(Fn-zn,Yo-ao)})),R.emit(it.ANCHOR_DRAG,{data:x,e:a,nodeModel:g})}),Jr(Zr(n),"onDragEnd",function(o){n.t&&Hu(n.t),console.log(555,"dragend"),n.checkEnd(o),n.setState({startX:0,startY:0,endX:0,endY:0,draging:!1}),n.sourceRuleResults.clear(),n.targetRuleResults.clear()}),Jr(Zr(n),"checkEnd",function(o){var a=n.props,l=a.graphModel,p=a.nodeModel,g=a.anchorData,x=g.x,w=g.y,R=g.id,B=l.edgeType,$=n.state,Q=$.endX,oe=$.endY,fe=$.draging,le=Da({x:Q,y:oe},l);if(n.preTargetNode&&n.preTargetNode.state!==Et.DEFAULT&&n.preTargetNode.setElementState(Et.DEFAULT),!!fe&&le&&le.node){var Ne=le.node,Se=le.anchor.id,Pe="".concat(p.id,"_").concat(Ne.id,"_").concat(Se,"_").concat(R),Ge=n.sourceRuleResults.get(Pe)||{},Ie=Ge.isAllPass,Je=Ge.msg,ke=n.targetRuleResults.get(Pe)||{},pt=ke.isAllPass,yt=ke.msg;if(Ie&&pt){Ne.setElementState(Et.DEFAULT);var lr=l.addEdge({type:B,sourceNodeId:p.id,sourceAnchorId:R,startPoint:{x,y:w},targetNodeId:le.node.id,targetAnchorId:le.anchor.id,endPoint:{x:le.anchor.x,y:le.anchor.y}}),Or=n.props.anchorData;l.eventCenter.emit(it.ANCHOR_DROP,{data:Or,e:o,nodeModel:p,edgeModel:lr})}else{var rn=Ne.getData();l.eventCenter.emit(it.CONNECTION_NOT_ALLOWED,{data:rn,msg:yt||Je})}}}),n.sourceRuleResults=new Map,n.targetRuleResults=new Map,n.state={startX:0,startY:0,endX:0,endY:0,draging:!1},n.dragHandler=new to({onDragStart:n.onDragStart,onDraging:n.onDraging,onDragEnd:n.onDragEnd}),n}return n1(t,[{key:"getAnchorShape",value:function(){var o=this.props,a=o.anchorData,l=o.style,p=o.node,g=p.getAnchorShape(a);if(g)return g;var x=a.x,w=a.y,R=ug(ug({},l),l.hover);return Object(ne.g)("g",null,Object(ne.g)(bi,Si({className:"lf-node-anchor-hover"},R,{x,y:w})),Object(ne.g)(bi,Si({className:"lf-node-anchor"},l,{x,y:w})))}},{key:"moveAnchorEnd",value:function(o,a){var l=this.props,p=l.graphModel,g=l.nodeModel,x=l.anchorData,w=Da({x:o,y:a},p);if(w){var R=w.node,B=w.anchor.id;if(this.preTargetNode&&this.preTargetNode!==w.node&&this.preTargetNode.setElementState(Et.DEFAULT),x.id===B)return;this.preTargetNode=R;var $="".concat(g.id,"_").concat(R.id,"_").concat(B,"_").concat(x.id);if(!this.targetRuleResults.has($)){var Q=w.anchor,oe=g.isAllowConnectedAsSource(R,x,Q),fe=R.isAllowConnectedAsTarget(g,x,Q);this.sourceRuleResults.set($,Ca(oe)),this.targetRuleResults.set($,Ca(fe))}var le=this.sourceRuleResults.get($),Ne=le.isAllPass,Se=this.targetRuleResults.get($),Pe=Se.isAllPass;Ne&&Pe?R.setElementState(Et.ALLOW_CONNECT):R.setElementState(Et.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==Et.DEFAULT&&this.preTargetNode.setElementState(Et.DEFAULT)}},{key:"isShowLine",value:function(){var o=this.state,a=o.startX,l=o.startY,p=o.endX,g=o.endY,x=Yr(a,l,p,g);return x>10}},{key:"render",value:function(){var o=this,a=this.state,l=a.startX,p=a.startY,g=a.endX,x=a.endY,w=this.props,R=w.anchorData.edgeAddable,B=w.edgeStyle;return Object(ne.g)("g",{className:"lf-anchor"},Object(ne.g)("g",{onMouseDown:function(Q){R!==!1&&o.dragHandler.handleMouseDown(Q)}},this.getAnchorShape()),this.isShowLine()&&Object(ne.g)(ro,Si({x1:l,y1:p,x2:g,y2:x},B,{"pointer-events":"none"})))}}]),t}(ne.a),s1=l1;i(63);function fg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function f1(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?fg(Object(t),!0).forEach(function(n){c1(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c1(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $u(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$u=function(t){return typeof t}:$u=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function d1(e,r){return y1(e)||v1(e,r)||h1(e,r)||p1()}function p1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  52. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h1(e,r){if(!!e){if(typeof e=="string")return cg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cg(e,r)}}function cg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function v1(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function y1(e){if(Array.isArray(e))return e}function dg(e){var r=e.x,t=r===void 0?0:r,n=e.y,o=n===void 0?0:n,a=e.value,l=e.fontSize,p=e.fill,g=p===void 0?"currentColor":p,x=e.overflowMode,w=x===void 0?"default":x,R=e.textWidth,B=R===void 0?"":R,$=e.model,Q={textAnchor:"middle","dominant-baseline":"middle",x:t,y:o,fill:g};if(Object.entries(e).forEach(function(Pe){var Ge=d1(Pe,2),Ie=Ge[0],Je=Ge[1],ke=$u(Je);ke!=="object"&&(Q[Ie]=Je)}),a){var oe=String(a).split(/[\r\n]/g),fe=oe.length;if(w!=="default"){var le=$.BaseType,Ne=$.modelType;if(le===Gt.NODE&&Ne!==dt.TEXT_NODE||le===Gt.EDGE&&B)return g1(e)}if(fe>1){var Se=oe.map(function(Pe,Ge){var Ie=l+2,Je=(Ge-(fe-1)/2)*Ie;return Object(ne.g)("tspan",{className:"lf-text-tspan",x:t,y:o+Je},Pe)});return Object(ne.g)("text",Q,Se)}return Object(ne.g)("text",Q,a)}}function g1(e){var r=e.value,t=e.fontSize,n=e.model,o=e.fontFamily,a=o===void 0?"":o,l=e.lineHeight,p=e.wrapPadding,g=p===void 0?"0, 0":p,x=e.overflowMode,w=e.x,R=e.y,B=n.width,$=n.textHeight,Q=e.textWidth||B,oe=String(r).split(/[\r\n]/g),fe=oe.length,le=Yp({rows:oe,style:{fontSize:"".concat(t,"px"),width:"".concat(Q,"px"),fontFamily:a,lineHeight:l,padding:g},rowsLength:fe,className:"lf-get-text-height"}),Ne=n.height>le?n.height:le;$&&(Ne=$);var Se=x==="ellipsis";return Object(ne.g)("g",null,Object(ne.g)("foreignObject",{width:Q,height:Ne,x:w-Q/2,y:R-Ne/2},Object(ne.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Ne,width:Q,padding:g}},Object(ne.g)("div",{className:Se?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",style:f1({},e)},oe.map(function(Pe){return Object(ne.g)("div",{className:"lf-node-text--auto-wrap-inner"},Pe)})))))}function Uu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uu=function(t){return typeof t}:Uu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function sc(){return sc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},sc.apply(this,arguments)}function m1(e,r){return x1(e)||E1(e,r)||O1(e,r)||b1()}function b1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  53. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1(e,r){if(!!e){if(typeof e=="string")return pg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pg(e,r)}}function pg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function E1(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function x1(e){if(Array.isArray(e))return e}function S1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function hg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P1(e,r,t){return r&&hg(e.prototype,r),t&&hg(e,t),e}function T1(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&fc(e,r)}function fc(e,r){return fc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},fc(e,r)}function M1(e){var r=A1();return function(){var n=Xu(e),o;if(r){var a=Xu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return w1(this,o)}}function w1(e,r){if(r&&(Uu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bn(e)}function Bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xu(e)}function no(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var vg=function(e){T1(t,e);var r=M1(t);function t(n){var o;S1(this,t),o=r.call(this),no(Bn(o),"dragHandler",void 0),no(Bn(o),"sumDeltaX",0),no(Bn(o),"sumDeltaY",0),no(Bn(o),"stepDrag",void 0),no(Bn(o),"onDraging",function(p){var g=p.deltaX,x=p.deltaY,w=o.props,R=w.model,B=w.graphModel.transformModel,$=B.fixDeltaXY(g,x),Q=m1($,2),oe=Q[0],fe=Q[1];R.moveText(oe,fe)}),no(Bn(o),"dblClickHandler",function(){var p=o.props.editable;if(p){var g=o.props.model;g.setElementState(Et.TEXT_EDIT)}}),no(Bn(o),"mouseDownHandle",function(p){var g=o.props,x=g.draggable,w=g.graphModel.editConfigModel.nodeTextDraggable;(x||w)&&o.stepDrag.handleMouseDown(p)});var a=n.model,l=n.draggable;return o.stepDrag=new to({onDraging:o.onDraging,step:1,model:a,isStopPropagation:l}),o}return P1(t,[{key:"getShape",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=a.text,g=l.editConfigModel,x=p.value,w=p.x,R=p.y,B=p.editable,$=p.draggable,Q={x:w,y:R,className:"",value:x};B?Q.className="lf-element-text":$||g.nodeTextDraggable?Q.className="lf-text-draggable":Q.className="lf-text-disabled";var oe=a.getTextStyle();return Object(ne.g)(dg,sc({},Q,oe,{model:a}))}},{key:"render",value:function(){var o=this.props.model.text;if(o)return Object(ne.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}]),t}(ne.a),N1=window.navigator.userAgent.match(/MSIE|Trident/)!==null;function Yu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yu=function(t){return typeof t}:Yu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function Wu(e,r){return R1(e)||C1(e,r)||j1(e,r)||D1()}function D1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  54. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j1(e,r){if(!!e){if(typeof e=="string")return yg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yg(e,r)}}function yg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function C1(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function R1(e){if(Array.isArray(e))return e}function I1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function gg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _1(e,r,t){return r&&gg(e.prototype,r),t&&gg(e,t),e}function B1(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&cc(e,r)}function cc(e,r){return cc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},cc(e,r)}function L1(e){var r=F1();return function(){var n=Ku(e),o;if(r){var a=Ku(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return z1(this,o)}}function z1(e,r){if(r&&(Yu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rr(e)}function rr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ku(e)}function ur(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var yn=function(e){B1(t,e);var r=L1(t);function t(n){var o;I1(this,t),o=r.call(this),ur(rr(o),"t",void 0),ur(rr(o),"moveOffset",void 0),ur(rr(o),"stepDrag",void 0),ur(rr(o),"contextMenuTime",void 0),ur(rr(o),"startTime",void 0),ur(rr(o),"clickTimer",void 0),ur(rr(o),"onDragStart",function(x){var w=x.event,R=w.clientX,B=w.clientY,$=o.props,Q=$.model,oe=$.graphModel,fe=oe.getPointByClient({x:R,y:B}),le=fe.canvasOverlayPosition,Ne=le.x,Se=le.y;o.moveOffset={x:Q.x-Ne,y:Q.y-Se}}),ur(rr(o),"onDraging",function(x){var w=x.event,R=o.props,B=R.model,$=R.graphModel,Q=$.editConfigModel,oe=Q.stopMoveGraph,fe=Q.autoExpand,le=$.transformModel,Ne=$.width,Se=$.height,Pe=$.gridSize;B.isDragging=!0;var Ge=w.clientX,Ie=w.clientY,Je=$.getPointByClient({x:Ge,y:Ie}),ke=Je.canvasOverlayPosition,pt=ke.x,yt=ke.y,lr=le.CanvasPointToHtmlPoint([pt,yt]),Or=Wu(lr,2),rn=Or[0],zn=Or[1];if(pt=pt+o.moveOffset.x,yt=yt+o.moveOffset.y,pt=To(pt,Pe),yt=To(yt,Pe),!Ne||!Se){$.moveNode2Coordinate(B.id,pt,yt);return}var ao=rn<0||zn<0||rn>Ne||zn>Se;if(!(fe&&!oe&&ao)){var Xo=le.CanvasPointToHtmlPoint([pt-B.width/2,yt-B.height/2]),Fn=Wu(Xo,2),Yo=Fn[0],td=Fn[1],MC=le.CanvasPointToHtmlPoint([pt+B.width/2,yt+B.height/2]),bm=Wu(MC,2),wC=bm[0],AC=bm[1],Hl=Math.max(Pe,20),Wo=[];Yo<0?Wo=[Hl,0]:wC>$.width?Wo=[-Hl,0]:td<0?Wo=[0,Hl]:AC>$.height&&(Wo=[0,-Hl]),o.t&&Hu(o.t),Wo.length>0&&!oe&&fe?o.t=ig(function(){var NC=Wo,Om=Wu(NC,2),Em=Om[0],xm=Om[1];le.translate(Em,xm),$.moveNode(B.id,-Em/le.SCALE_X,-xm/le.SCALE_X)}):$.moveNode2Coordinate(B.id,pt,yt)}}),ur(rr(o),"onDragEnd",function(){o.t&&Hu(o.t);var x=o.props.model;x.isDragging=!1}),ur(rr(o),"handleClick",function(x){if(!!o.startTime){var w=new Date().getTime()-o.startTime;if(!(w>200)){var R=o.props,B=R.model,$=R.graphModel,Q=B.getData(),oe=$.getPointByClient({x:x.clientX,y:x.clientY}),fe={data:Q,e:x,position:oe},le=x.button===2,Ne=x.detail===2;if(!le){var Se=$.editConfigModel;$.selectNodeById(B.id,Fp(x,Se)),o.toFront(),Ne?(Se.nodeTextEdit&&B.text.editable&&(B.setSelected(!1),$.setElementStateById(B.id,Et.TEXT_EDIT)),$.eventCenter.emit(it.NODE_DBCLICK,fe)):($.eventCenter.emit(it.ELEMENT_CLICK,fe),$.eventCenter.emit(it.NODE_CLICK,fe))}}}}),ur(rr(o),"handleContextMenu",function(x){x.preventDefault();var w=o.props,R=w.model,B=w.graphModel,$=R.getData(),Q=B.getPointByClient({x:x.clientX,y:x.clientY});B.setElementStateById(R.id,Et.SHOW_MENU,Q.domOverlayPosition),B.selectNodeById(R.id),B.eventCenter.emit(it.NODE_CONTEXTMENU,{data:$,e:x,position:Q}),o.toFront()}),ur(rr(o),"handleMouseDown",function(x){var w=o.props,R=w.model,B=w.graphModel;o.toFront(),o.startTime=new Date().getTime();var $=B.editConfigModel;$.adjustNodePosition&&R.draggable&&o.stepDrag&&o.stepDrag.handleMouseDown(x)}),ur(rr(o),"setHoverON",function(x){var w=o.state.isHovered;if(!w){o.setState({isHovered:!0});var R=o.props,B=R.model,$=R.graphModel,Q=B.getData();B.setHovered(!0),$.eventCenter.emit(it.NODE_MOUSEENTER,{data:Q,e:x})}}),ur(rr(o),"setHoverOFF",function(x){o.setState({isHovered:!1});var w=o.props,R=w.model,B=w.graphModel,$=R.getData();R.setHovered(!1),B.eventCenter.emit(it.NODE_MOUSELEAVE,{data:$,e:x})}),ur(rr(o),"onMouseOut",function(x){N1&&o.setHoverOFF(x)});var a=n.graphModel,l=a.gridSize,p=a.eventCenter,g=n.model;return o.stepDrag=new to({onDragStart:o.onDragStart,onDraging:o.onDraging,onDragEnd:o.onDragEnd,step:l,eventType:"NODE",isStopPropagation:!1,eventCenter:p,model:g}),o.state={isHovered:!1},o}return _1(t,[{key:"getAnchorShape",value:function(o){return null}},{key:"getAnchors",value:function(){var o=this,a=this.props,l=a.model,p=a.graphModel,g=l.isSelected,x=l.isHitable,w=l.isDragging,R=this.state.isHovered;if(x&&(g||R)&&!w){var B=l.getAnchorLineStyle();return Sa(l.anchors,function($,Q){var oe=l.getAnchorStyle($);return Object(ne.g)(s1,{anchorData:$,node:o,style:oe,edgeStyle:B,anchorIndex:Q,nodeModel:l,graphModel:p,setHoverOFF:o.setHoverOFF})})}return[]}},{key:"getText",value:function(){var o=this.props,a=o.model,l=o.graphModel;if(a.state===Et.TEXT_EDIT)return"";if(a.text){var p=l.editConfigModel,g=!1;return(a.text.draggable||p.nodeTextDraggable)&&(g=!0),Object(ne.g)(vg,{editable:p.nodeTextEdit&&a.text.editable,model:a,graphModel:l,draggable:g})}}},{key:"getStateClassName",value:function(){var o=this.props.model,a=o.state,l=o.isDraging,p=o.isSelected,g="lf-node";switch(a){case Et.ALLOW_CONNECT:g+=" lf-node-allow";break;case Et.NOT_ALLOW_CONNECT:g+=" lf-node-not-allow";break;default:g+=" lf-node-default";break}return l&&(g+=" lf-isDragging"),p&&(g+=" lf-node-selected"),g}},{key:"toFront",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=l.overlapMode;p!==gr.INCREASE&&a.autoToFront&&l.toFront(a.id)}},{key:"render",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=l.editConfigModel,g=p.hideAnchors,x=p.adjustNodePosition,w=l.gridSize,R=l.transformModel.SCALE_X,B=a.isHitable,$=a.draggable,Q=Object(ne.g)("g",{className:"lf-node-content"},this.getShape(),this.getText(),g?null:this.getAnchors()),oe;return B?(x&&$&&this.stepDrag.setStep(w*R),oe=Object(ne.g)("g",{className:this.getStateClassName(),onMouseDown:this.handleMouseDown,onMouseUp:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},Q)):oe=Object(ne.g)("g",{className:this.getStateClassName()},Q),oe}}],[{key:"getModel",value:function(o){return o}}]),t}(ne.a);function Vu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vu=function(t){return typeof t}:Vu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function dc(){return dc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},dc.apply(this,arguments)}function H1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G1(e,r,t){return r&&mg(e.prototype,r),t&&mg(e,t),e}function k1(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&pc(e,r)}function pc(e,r){return pc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},pc(e,r)}function $1(e){var r=Y1();return function(){var n=Zu(e),o;if(r){var a=Zu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return U1(this,o)}}function U1(e,r){if(r&&(Vu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X1(e)}function X1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zu(e)}var hc=function(e){k1(t,e);var r=$1(t);function t(){return H1(this,t),r.apply(this,arguments)}return G1(t,[{key:"getShape",value:function(){var o=this.props.model,a=o.getNodeStyle();return Object(ne.g)(Rn,dc({},a,{x:o.x,y:o.y,width:o.width,height:o.height,radius:o.radius}))}}]),t}(yn);function Ju(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ju=function(t){return typeof t}:Ju=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}function vc(){return vc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},vc.apply(this,arguments)}function W1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function bg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K1(e,r,t){return r&&bg(e.prototype,r),t&&bg(e,t),e}function V1(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&yc(e,r)}function yc(e,r){return yc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},yc(e,r)}function Z1(e){var r=q1();return function(){var n=Qu(e),o;if(r){var a=Qu(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return J1(this,o)}}function J1(e,r){if(r&&(Ju(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q1(e)}function Q1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qu(e)}var gc=function(e){V1(t,e);var r=Z1(t);function t(){return W1(this,t),r.apply(this,arguments)}return K1(t,[{key:"getShape",value:function(){var o=this.props.model,a=o.x,l=o.y,p=o.r,g=o.getNodeStyle();return Object(ne.g)(bi,vc({},g,{x:a,y:l,r:p}))}}]),t}(yn);function qu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qu=function(t){return typeof t}:qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function eN(e,r){return oN(e)||nN(e,r)||rN(e,r)||tN()}function tN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  55. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rN(e,r){if(!!e){if(typeof e=="string")return Og(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Og(e,r)}}function Og(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function nN(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function oN(e){if(Array.isArray(e))return e}function Eg(e){var r=e.points,t=e.className,n={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(e).forEach(function(o){var a=eN(o,2),l=a[0],p=a[1],g=qu(p);g!=="object"&&(n[l]=p)}),t?n.className="lf-basic-shape ".concat(t):n.className="lf-basic-shape",n.points=r.map(function(o){return o.join(",")}).join(" "),Object(ne.g)("polygon",n)}function el(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?el=function(t){return typeof t}:el=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function mc(){return mc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mc.apply(this,arguments)}function iN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function xg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function aN(e,r,t){return r&&xg(e.prototype,r),t&&xg(e,t),e}function uN(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&bc(e,r)}function bc(e,r){return bc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},bc(e,r)}function lN(e){var r=cN();return function(){var n=tl(e),o;if(r){var a=tl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return sN(this,o)}}function sN(e,r){if(r&&(el(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fN(e)}function fN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tl(e){return tl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},tl(e)}var Oc=function(e){uN(t,e);var r=lN(t);function t(){return iN(this,t),r.apply(this,arguments)}return aN(t,[{key:"getShape",value:function(){var o=this.props.model,a=o.x,l=o.y,p=o.width,g=o.height,x=o.points,w=o.getNodeStyle(),R={transform:"matrix(1 0 0 1 ".concat(a-p/2," ").concat(l-g/2,")")};return Object(ne.g)("g",R,Object(ne.g)(Eg,mc({},w,{points:x,x:a,y:l})))}}]),t}(yn);function rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rl=function(t){return typeof t}:rl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Ec(){return Ec=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ec.apply(this,arguments)}function dN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Sg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pN(e,r,t){return r&&Sg(e.prototype,r),t&&Sg(e,t),e}function hN(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&xc(e,r)}function xc(e,r){return xc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},xc(e,r)}function vN(e){var r=mN();return function(){var n=nl(e),o;if(r){var a=nl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return yN(this,o)}}function yN(e,r){if(r&&(rl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gN(e)}function gN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nl(e)}var Sc=function(e){hN(t,e);var r=vN(t);function t(){return dN(this,t),r.apply(this,arguments)}return pN(t,[{key:"getShape",value:function(){var o=this.props.model,a=o.getNodeStyle();return Object(ne.g)("g",null,Object(ne.g)(Eg,Ec({},a,{points:o.points,x:o.x,y:o.y})))}}]),t}(yn);function ol(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ol=function(t){return typeof t}:ol=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function bN(e,r){return SN(e)||xN(e,r)||EN(e,r)||ON()}function ON(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  56. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EN(e,r){if(!!e){if(typeof e=="string")return Pg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pg(e,r)}}function Pg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function xN(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function SN(e){if(Array.isArray(e))return e}function PN(e){var r=e.x,t=r===void 0?0:r,n=e.y,o=n===void 0?0:n,a=e.rx,l=a===void 0?4:a,p=e.ry,g=p===void 0?4:p,x=e.className,w={cx:t,cy:o,rx:l,ry:g,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(R){var B=bN(R,2),$=B[0],Q=B[1],oe=ol(Q);oe!=="object"&&(w[$]=Q)}),x?w.className="lf-basic-shape ".concat(x):w.className="lf-basic-shape",Object(ne.g)("ellipse",w)}function il(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?il=function(t){return typeof t}:il=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function Pc(){return Pc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pc.apply(this,arguments)}function TN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Tg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function MN(e,r,t){return r&&Tg(e.prototype,r),t&&Tg(e,t),e}function wN(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Tc(e,r)}function Tc(e,r){return Tc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Tc(e,r)}function AN(e){var r=jN();return function(){var n=al(e),o;if(r){var a=al(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return NN(this,o)}}function NN(e,r){if(r&&(il(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DN(e)}function DN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},al(e)}var Mc=function(e){wN(t,e);var r=AN(t);function t(){return TN(this,t),r.apply(this,arguments)}return MN(t,[{key:"getShape",value:function(){var o=this.props.model,a=o.getNodeStyle();return Object(ne.g)(PN,Pc({},a,{x:o.x,y:o.y,rx:o.rx,ry:o.ry}))}}]),t}(yn);function ul(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ul=function(t){return typeof t}:ul=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function Mg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function wg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Mg(Object(t),!0).forEach(function(n){CN(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function CN(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ag(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function IN(e,r,t){return r&&Ag(e.prototype,r),t&&Ag(e,t),e}function _N(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&wc(e,r)}function wc(e,r){return wc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},wc(e,r)}function BN(e){var r=FN();return function(){var n=ll(e),o;if(r){var a=ll(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return LN(this,o)}}function LN(e,r){if(r&&(ul(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zN(e)}function zN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ll(e)}var Ac=function(e){_N(t,e);var r=BN(t);function t(){return RN(this,t),r.apply(this,arguments)}return IN(t,[{key:"getBackgroud",value:function(){var o=this.props.model,a=o.getTextStyle(),l=o.text;if(l&&l.value&&a.background&&a.background.fill!=="transparnet"){var p=l.x,g=l.y,x=o.width,w=o.height,R=wg(wg({},a.background),{},{x:p,y:g-1,width:x,height:w});return Object(ne.g)(Rn,R)}}},{key:"getShape",value:function(){return Object(ne.g)("g",null,this.getBackgroud())}}]),t}(yn);function sl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(t){return typeof t}:sl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function Nc(){return Nc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Nc.apply(this,arguments)}function HN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ng(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function GN(e,r,t){return r&&Ng(e.prototype,r),t&&Ng(e,t),e}function kN(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Dc(e,r)}function Dc(e,r){return Dc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Dc(e,r)}function $N(e){var r=XN();return function(){var n=fl(e),o;if(r){var a=fl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return UN(this,o)}}function UN(e,r){if(r&&(sl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pi(e)}function Pi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fl(e)}function cl(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var jc=function(e){kN(t,e);var r=$N(t);function t(){var n;HN(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),cl(Pi(n),"ref",void 0),cl(Pi(n),"currrentProperties",void 0),cl(Pi(n),"preProperties",void 0),cl(Pi(n),"setRef",function(p){n.ref=p}),n}return GN(t,[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(o){o.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!(this.preProperties&&this.preProperties===this.currrentProperties))return this.preProperties=this.currrentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var o=this.props.model,a=o.x,l=o.y,p=o.height,g=o.width,x=o.getNodeStyle();return this.currrentProperties=JSON.stringify(o.properties),Object(ne.g)("foreignObject",Nc({},x,{x:a-g/2,y:l-p/2,width:g,height:p,ref:this.setRef}))}}]),t}(yn);function dl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dl=function(t){return typeof t}:dl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function Cc(){return Cc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Cc.apply(this,arguments)}function Dg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function oo(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Dg(Object(t),!0).forEach(function(n){_c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function YN(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function jg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function WN(e,r,t){return r&&jg(e.prototype,r),t&&jg(e,t),e}function KN(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Rc(e,r)}function Rc(e,r){return Rc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Rc(e,r)}function VN(e){var r=JN();return function(){var n=pl(e),o;if(r){var a=pl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return ZN(this,o)}}function ZN(e,r){if(r&&(dl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ic(e)}function Ic(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pl(e)}function _c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var QN=function(e){KN(t,e);var r=VN(t);function t(n){var o;return YN(this,t),o=r.call(this,n),_c(Ic(o),"setHoverON",function(){o.setState({isHoverd:!0})}),_c(Ic(o),"setHoverOFF",function(){o.setState({isHoverd:!1})}),o.state={isHoverd:!1},o}return WN(t,[{key:"getBackgroud",value:function(){var o=this.props.model,a=o.getTextStyle(),l=o.text,p=a.background||{},g=this.state.isHoverd;if(g&&a.hover&&a.hover.background&&(p=oo(oo({},p),a.hover.background)),l&&l.value&&p.fill!=="transparent"){var x=a.fontSize,w=a.overflowMode,R=a.lineHeight,B=a.wrapPadding,$=a.textWidth,Q=l.value,oe=l.x,fe=l.y,le=String(Q).split(/[\r\n]/g),Ne=le.length,Se;if(w==="autoWrap"&&$){var Pe=Yp({rows:le,style:{fontSize:"".concat(x,"px"),width:"".concat($,"px"),lineHeight:R,padding:B},rowsLength:Ne,className:"lf-get-text-height"});Se=oo(oo({},p),{},{x:oe-1,y:fe-1,width:$,height:Pe})}else{le&&le.forEach(function(pt){Bh(pt)});var Ge=df({rows:le,fontSize:x,rowsLength:Ne}),Ie=Ge.width,Je=Ge.height;if(typeof p.wrapPadding=="string"){var ke=p.wrapPadding.split(",").filter(function(pt){return pt.trim()}).map(function(pt){return parseFloat(pt.trim())});ke.length>0&&ke.length<=4&&(ke.length===1?ke=[ke[0],ke[0],ke[0],ke[0]]:ke.length===2?ke=[ke[0],ke[1],ke[0],ke[1]]:ke.length===3&&(ke=[ke[0],ke[1],ke[2],ke[1]]),Ie+=ke[1]+ke[3],Je+=ke[0]+ke[2],oe=oe+(ke[1]-ke[3])/2,fe=fe+(ke[2]-ke[0])/2)}Se=oo(oo({},p),{},{x:oe-1,y:fe-1,width:Ie,height:Je})}return Object(ne.g)(Rn,Se)}}},{key:"getShape",value:function(){var o=this.props.model,a=o.text,l=a.value,p=a.x,g=a.y;if(!!l){var x=o.getTextStyle(),w=oo({x:p,y:g,className:"lf-element-text",value:l},x);return Object(ne.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackgroud(),Object(ne.g)(dg,Cc({},w,{model:o})))}}}]),t}(vg);function hl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(t){return typeof t}:hl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Bc(){return Bc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Bc.apply(this,arguments)}function Cg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function gn(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Cg(Object(t),!0).forEach(function(n){zr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Cg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function qN(e,r){return nD(e)||rD(e,r)||tD(e,r)||eD()}function eD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  57. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tD(e,r){if(!!e){if(typeof e=="string")return Rg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rg(e,r)}}function Rg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function rD(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function nD(e){if(Array.isArray(e))return e}function oD(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ig(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function iD(e,r,t){return r&&Ig(e.prototype,r),t&&Ig(e,t),e}function aD(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Lc(e,r)}function Lc(e,r){return Lc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Lc(e,r)}function uD(e){var r=sD();return function(){var n=vl(e),o;if(r){var a=vl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return lD(this,o)}}function lD(e,r){if(r&&(hl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lr(e)}function Lr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vl(e){return vl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vl(e)}function zr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Qr;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Qr||(Qr={}));var _g=function(e){aD(t,e);var r=uD(t);function t(){var n;return oD(this,t),n=r.call(this),zr(Lr(n),"dragHandler",void 0),zr(Lr(n),"oldEdge",void 0),zr(Lr(n),"preTargetNode",void 0),zr(Lr(n),"targetRuleResults",void 0),zr(Lr(n),"sourceRuleResults",void 0),zr(Lr(n),"onDragStart",function(){var o=n.props,a=o.x,l=o.y,p=o.edgeModel,g=p.startPoint,x=p.endPoint,w=p.pointsList;n.oldEdge={startPoint:g,endPoint:x,pointsList:w},n.setState({endX:a,endY:l,draging:!0}),p.isHitable=!1}),zr(Lr(n),"onDraging",function(o){var a=o.deltaX,l=o.deltaY,p=n.state,g=p.endX,x=p.endY,w=n.props,R=w.graphModel,B=w.type,$=R.transformModel,Q=$.moveCanvasPointByHtml([g,x],a,l),oe=qN(Q,2),fe=oe[0],le=oe[1];n.setState({endX:fe,endY:le,draging:!0});var Ne=n.props.edgeModel,Se=Da({x:g,y:x},R);if(Se&&Se.node&&n.isAllowAdjust(Se)){var Pe,Ge=Ne.startPoint,Ie=Ne.endPoint,Je=Ne.sourceNode,ke=Ne.targetNode;B===Qr.SOURCE?Pe={startPoint:{x:Se.anchor.x,y:Se.anchor.y},endPoint:{x:Ie.x,y:Ie.y},sourceNode:Se.node,targetNode:ke}:B===Qr.TARGET&&(Pe={startPoint:{x:Ge.x,y:Ge.y},endPoint:{x:Se.anchor.x,y:Se.anchor.y},sourceNode:Je,targetNode:Se.node}),Ne.updateAfterAdjustStartAndEnd(Pe)}else B===Qr.SOURCE?Ne.updateStartPoint({x:fe,y:le}):B===Qr.TARGET&&Ne.updateEndPoint({x:fe,y:le})}),zr(Lr(n),"onDragEnd",function(){var o;n.setState({draging:!1});var a=n.props,l=a.graphModel,p=a.edgeModel,g=a.type;p.isHitable=!0;var x=n.state,w=x.endX,R=x.endY,B=x.draging,$=Da({x:w,y:R},l);if(!!B){if($&&$.node&&n.isAllowAdjust($)){var Q,oe=p.getData(),fe=gn(gn({},oe),{},{sourceAnchorId:"",targetAnchorId:"",text:(oe==null||(Q=oe.text)===null||Q===void 0?void 0:Q.value)||""});g===Qr.SOURCE?fe=gn(gn({},fe),{},{sourceNodeId:$.node.id,sourceAnchorId:$.anchor.id,startPoint:{x:$.anchor.x,y:$.anchor.y},targetNodeId:p.targetNodeId,endPoint:gn({},p.endPoint)}):g===Qr.TARGET&&(fe=gn(gn({},fe),{},{sourceNodeId:p.sourceNodeId,startPoint:gn({},p.startPoint),targetNodeId:$.node.id,targetAnchorId:$.anchor.id,endPoint:{x:$.anchor.x,y:$.anchor.y}})),l.deleteEdgeById(p.id);var le=l.addEdge(gn({},fe));l.eventCenter.emit(it.EDGE_EXCHANGE_NODE,{data:{newEdge:le.getData(),oldEdge:p.getData()}})}else n.recoveryEdge();(o=n.preTargetNode)===null||o===void 0||o.setElementState(Et.DEFAULT)}}),zr(Lr(n),"recoveryEdge",function(){var o=n.props.edgeModel,a=n.oldEdge,l=a.startPoint,p=a.endPoint,g=a.pointsList;o.updateStartPoint(l),o.updateEndPoint(p),o.modelType!==dt.LINE_EDGE&&(o.pointsList=g,o.initPoints())}),zr(Lr(n),"getAdjustPointStyle",function(){var o=n.props.graphModel.theme,a=o.edgeAdjust;return a}),n.state={draging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map,n.dragHandler=Mf({onDragStart:n.onDragStart,onDraging:n.onDraging,onDragEnd:n.onDragEnd}),n}return iD(t,[{key:"isAllowAdjust",value:function(o){var a=this.props,l=a.edgeModel;l.id;var p=l.sourceNode,g=l.targetNode,x=l.sourceAnchorId,w=l.targetAnchorId,R=a.type,B=null,$=null,Q=null,oe=null;if(R===Qr.SOURCE?(B=o.node,$=g,Q=o.anchor,oe=g.getAnchorInfo(w)):(B=p,$=o.node,oe=o.anchor,Q=p.getAnchorInfo(x)),this.preTargetNode&&this.preTargetNode!==o.node&&this.preTargetNode.setElementState(Et.DEFAULT),this.preTargetNode=o.node,oe.id===Q.id)return!1;var fe="".concat(B.id,"_").concat($.id,"_").concat(Q.id,"_").concat(oe.id);if(!this.targetRuleResults.has(fe)){var le=B.isAllowConnectedAsSource($,Q,oe),Ne=$.isAllowConnectedAsTarget(B,Q,oe);this.sourceRuleResults.set(fe,Ca(le)),this.targetRuleResults.set(fe,Ca(Ne))}var Se=this.sourceRuleResults.get(fe),Pe=Se.isAllPass,Ge=this.targetRuleResults.get(fe),Ie=Ge.isAllPass,Je=Pe&&Ie?Et.ALLOW_CONNECT:Et.NOT_ALLOW_CONNECT;return R===Qr.SOURCE?B.setElementState(Je):$.setElementState(Je),Pe&&Ie}},{key:"render",value:function(){var o=this.props,a=o.x,l=o.y,p=this.state.draging,g=this.getAdjustPointStyle();return Object(ne.g)("g",null,Object(ne.g)(bi,Bc({className:"lf-edge-adjust-point"},g,{x:a,y:l,onMouseDown:this.dragHandler,"pointer-events":p?"none":""})))}}]),t}(ne.a);function yl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yl=function(t){return typeof t}:yl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function gl(){return gl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},gl.apply(this,arguments)}function Bg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Lg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bg(Object(t),!0).forEach(function(n){Hr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function fD(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function zg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cD(e,r,t){return r&&zg(e.prototype,r),t&&zg(e,t),e}function dD(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&zc(e,r)}function zc(e,r){return zc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},zc(e,r)}function pD(e){var r=vD();return function(){var n=ml(e),o;if(r){var a=ml(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return hD(this,o)}}function hD(e,r){if(r&&(yl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fr(e)}function Fr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ml(e)}function Hr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Ti=function(e){dD(t,e);var r=pD(t);function t(){var n;fD(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r.call.apply(r,[this].concat(a)),Hr(Fr(n),"startTime",void 0),Hr(Fr(n),"contextMenuTime",void 0),Hr(Fr(n),"clickTimer",void 0),Hr(Fr(n),"handleHover",function(p,g){var x=n.props,w=x.model,R=x.graphModel.eventCenter;w.setHovered(p);var B=p?it.EDGE_MOUSEENTER:it.EDGE_MOUSELEAVE,$=w.getData();R.emit(B,{data:$,e:g})}),Hr(Fr(n),"setHoverON",function(p){var g=n.props.model.isHovered;g||n.handleHover(!0,p)}),Hr(Fr(n),"setHoverOFF",function(p){n.handleHover(!1,p)}),Hr(Fr(n),"handleContextMenu",function(p){p.preventDefault(),n.contextMenuTime=new Date().getTime(),n.clickTimer&&clearTimeout(n.clickTimer);var g=n.props,x=g.model,w=g.graphModel,R=w.getPointByClient({x:p.clientX,y:p.clientY});w.setElementStateById(x.id,Et.SHOW_MENU,R.domOverlayPosition),n.toFront(),w.selectEdgeById(x.id);var B=x==null?void 0:x.getData();w.eventCenter.emit(it.EDGE_CONTEXTMENU,{data:B,e:p,position:R})}),Hr(Fr(n),"handleMouseDown",function(p){p.stopPropagation(),n.startTime=new Date().getTime()}),Hr(Fr(n),"handleMouseUp",function(p){if(!!n.startTime){var g=new Date().getTime()-n.startTime;if(!(g>200)){var x=p.button===2;if(!x){var w=p.detail===2,R=n.props,B=R.model,$=R.graphModel,Q=B==null?void 0:B.getData(),oe=$.getPointByClient({x:p.clientX,y:p.clientY});if(w){var fe=$.editConfigModel,le=$.textEditElement;if(le&&le.id===B.id&&$.setElementStateById(B.id,Et.DEFAULT),fe.edgeTextEdit&&B.text.editable&&$.setElementStateById(B.id,Et.TEXT_EDIT),B.modelType===dt.POLYLINE_EDGE){var Ne=B,Se=$.getPointByClient({x:p.x,y:p.y}),Pe=Se.canvasOverlayPosition,Ge=Pe.x,Ie=Pe.y,Je=zh({x:Ge,y:Ie},Ne.points);Ne.dbClickPosition=Je}$.eventCenter.emit(it.EDGE_DBCLICK,{data:Q,e:p,position:oe})}else $.eventCenter.emit(it.ELEMENT_CLICK,{data:Q,e:p,position:oe}),$.eventCenter.emit(it.EDGE_CLICK,{data:Q,e:p,position:oe});var ke=$.editConfigModel;$.selectEdgeById(B.id,Fp(p,ke)),n.toFront()}}}}),Hr(Fr(n),"getIsDraging",function(){return!1}),n}return cD(t,[{key:"getShape",value:function(){}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var o=this.props,a=o.model,l=o.graphModel;if(a.state===Et.TEXT_EDIT)return"";var p=!1,g=l.editConfigModel;return(a.text.draggable||g.edgeTextDraggable)&&(p=!0),Object(ne.g)(QN,{editable:g.edgeTextEdit&&a.text.editable,model:a,graphModel:l,draggable:p})}},{key:"getArrowInfo",value:function(){var o=this.props.model,a=o.startPoint,l=o.endPoint,p=o.isSelected,g=this.state,x=g.hover;return{start:a,end:l,hover:x,isSelected:p}}},{key:"getArrowStyle",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=a.getEdgeStyle(),g=a.getEdgeAnimationStyle(),x=l.theme.arrow,w=a.isAnimation?g.stroke:p.stroke;return Lg(Lg({},p),{},{fill:w,stroke:w},x)}},{key:"getArrow",value:function(){return Object(ne.g)("g",null,Object(ne.g)("defs",null,this.getStartArrow(),this.getEndArrow()))}},{key:"getStartArrow",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=a.id,g=l.theme.arrow,x=g.offset,w=g.verticalLength,R=this.getArrowStyle(),B=R.stroke,$=R.strokeWidth;return Object(ne.g)("marker",{id:"marker-start-".concat(p),refX:"-1",overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},Object(ne.g)("path",{stroke:B,fill:B,strokeWidth:$,d:"M 0 0 L ".concat(x," -").concat(w," L ").concat(x," ").concat(w," Z")}))}},{key:"getEndArrow",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=a.id,g=l.theme.arrow,x=g.offset,w=g.verticalLength,R=this.getArrowStyle(),B=R.stroke,$=R.strokeWidth;return Object(ne.g)("marker",{id:"marker-end-".concat(p),refX:"-1",overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},Object(ne.g)("path",{stroke:B,fill:B,strokeWidth:$,transform:"rotate(180)",d:"M 0 0 L ".concat(x," -").concat(w," L ").concat(x," ").concat(w," Z")}))}},{key:"getAdjustPoints",value:function(){var o=this.props,a=o.model,l=o.graphModel,p=a.getAdjustStart(),g=a.getAdjustEnd();return Object(ne.g)("g",null,Object(ne.g)(_g,gl({type:"SOURCE"},p,{edgeModel:a,graphModel:l})),Object(ne.g)(_g,gl({type:"TARGET"},g,{edgeModel:a,graphModel:l})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(ne.g)("g",null)}},{key:"getAppend",value:function(){return Object(ne.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"toFront",value:function(){var o=this.props,a=o.graphModel,l=o.model,p=a.overlapMode;p!==gr.INCREASE&&a.toFront(l.id)}},{key:"render",value:function(){var o=this.props,a=o.model,l=a.isSelected,p=a.isHitable,g=o.graphModel,x=this.getIsDraging(),w=g.editConfigModel.adjustEdgeStartAndEnd,R=g.animation,B=l&&R.edge&&g.getSelectElements().edges.length===1;return Object(ne.g)("g",null,Object(ne.g)("g",{className:["lf-edge",!p&&"pointer-none",l&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),B&&this.getAnimation(),this.getText(),this.getArrow()),w&&l&&!x?this.getAdjustPoints():"")}}]),t}(ne.a);function bl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bl=function(t){return typeof t}:bl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function yD(e,r){return OD(e)||bD(e,r)||mD(e,r)||gD()}function gD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  58. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mD(e,r){if(!!e){if(typeof e=="string")return Fg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fg(e,r)}}function Fg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function bD(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function OD(e){if(Array.isArray(e))return e}function ED(e){var r={d:""};return Object.entries(e).forEach(function(t){var n=yD(t,2),o=n[0],a=n[1],l=bl(a);(o==="style"||l!=="object")&&(r[o]=a)}),Object(ne.g)("path",r)}var ko=ED;function Ol(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ol=function(t){return typeof t}:Ol=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function El(){return El=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},El.apply(this,arguments)}function xD(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Hg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function SD(e,r,t){return r&&Hg(e.prototype,r),t&&Hg(e,t),e}function PD(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Fc(e,r)}function Fc(e,r){return Fc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Fc(e,r)}function TD(e){var r=AD();return function(){var n=xl(e),o;if(r){var a=xl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return MD(this,o)}}function MD(e,r){if(r&&(Ol(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}function wD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xl(e){return xl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xl(e)}var Hc=function(e){PD(t,e);var r=TD(t);function t(){return xD(this,t),r.apply(this,arguments)}return SD(t,[{key:"getEdge",value:function(){var o=this.props.model,a=o.startPoint,l=o.endPoint,p=o.isAnimation,g=o.arrowConfig,x=o.getEdgeStyle(),w=o.getEdgeAnimationStyle(),R=w.strokeDasharray,B=w.stroke,$=w.strokeDashoffset,Q=w.animationName,oe=w.animationDuration,fe=w.animationIterationCount,le=w.animationTimingFunction,Ne=w.animationDirection;return Object(ne.g)(ro,El({},x,{x1:a.x,y1:a.y,x2:l.x,y2:l.y},g,p?{strokeDasharray:R,stroke:B,style:{strokeDashoffset:$,animationName:Q,animationDuration:oe,animationIterationCount:fe,animationTimingFunction:le,animationDirection:Ne}}:{}))}},{key:"getShape",value:function(){return Object(ne.g)("g",null,this.getEdge())}},{key:"getAnimation",value:function(){var o=this.props.model,a=o.getAnimation(),l=a.stroke,p=a.className,g=a.strokeDasharray,x=o.startPoint,w=o.endPoint,R=o.getEdgeStyle();return Object(ne.g)("g",null,Object(ne.g)(ro,El({},R,{x1:x.x,y1:x.y,x2:w.x,y2:w.y,className:p,strokeDasharray:g,stroke:l})))}},{key:"getAppendWidth",value:function(){var o=this.props.model,a=o.startPoint,l=o.endPoint,p={start:a,end:l},g=xT(p),x=g.d,w=g.strokeWidth,R=g.fill,B=g.strokeDasharray,$=g.stroke;return Object(ne.g)(ko,{d:x,fill:R,strokeWidth:w,stroke:$,strokeDasharray:B})}}]),t}(Ti);function Sl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sl=function(t){return typeof t}:Sl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function ND(e,r){return RD(e)||CD(e,r)||jD(e,r)||DD()}function DD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  59. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jD(e,r){if(!!e){if(typeof e=="string")return Gg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Gg(e,r)}}function Gg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function CD(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function RD(e){if(Array.isArray(e))return e}function ID(e){var r={points:"",fill:"none"};return Object.entries(e).forEach(function(t){var n=ND(t,2),o=n[0],a=n[1];if(o==="style")r[o]=a;else{var l=Sl(a);l!=="object"&&(r[o]=a)}}),Object(ne.g)("polyline",r)}var kg=ID;function Pl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pl=function(t){return typeof t}:Pl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function $g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Tl(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?$g(Object(t),!0).forEach(function(n){en(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$g(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Ml(){return Ml=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ml.apply(this,arguments)}function _D(e,r){return FD(e)||zD(e,r)||LD(e,r)||BD()}function BD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  60. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LD(e,r){if(!!e){if(typeof e=="string")return Ug(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ug(e,r)}}function Ug(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function zD(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function FD(e){if(Array.isArray(e))return e}function HD(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Xg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function GD(e,r,t){return r&&Xg(e.prototype,r),t&&Xg(e,t),e}function kD(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Gc(e,r)}function Gc(e,r){return Gc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Gc(e,r)}function $D(e){var r=XD();return function(){var n=wl(e),o;if(r){var a=wl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return UD(this,o)}}function UD(e,r){if(r&&(Pl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qr(e)}function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wl(e){return wl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wl(e)}function en(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var kc=function(e){kD(t,e);var r=$D(t);function t(){var n;return HD(this,t),n=r.call(this),en(qr(n),"drag",void 0),en(qr(n),"isDraging",void 0),en(qr(n),"appendInfo",void 0),en(qr(n),"dragHandler",void 0),en(qr(n),"onDragStart",function(){var o=n.props.model;o.dragAppendStart()}),en(qr(n),"onDraging",function(o){var a=o.deltaX,l=o.deltaY,p=n.props,g=p.model,x=p.graphModel;n.isDraging=!0;var w=x.transformModel,R=x.editConfigModel,B=w.fixDeltaXY(a,l),$=_D(B,2),Q=$[0],oe=$[1],fe=g,le=R.adjustEdgeMiddle;le?n.appendInfo=fe.dragAppendSimple(n.appendInfo,{x:Q,y:oe}):n.appendInfo=fe.dragAppend(n.appendInfo,{x:Q,y:oe})}),en(qr(n),"onDragEnd",function(){var o=n.props,a=o.model,l=o.graphModel.eventCenter,p=a;p.dragAppendEnd(),n.isDraging=!1,n.appendInfo=void 0,l.emit(it.EDGE_ADJUST,{data:p.getData()})}),en(qr(n),"beforeDragStart",function(o,a){a.dragAble&&n.dragHandler(o),n.appendInfo=a}),en(qr(n),"getIsDraging",function(){return n.isDraging}),n.drag=Mf({onDragStart:n.onDragStart,onDraging:n.onDraging,onDragEnd:n.onDragEnd,isStopPropagation:!1}),n}return GD(t,[{key:"getEdge",value:function(){var o=this.props.model,a=o.points,l=o.isAnimation,p=o.arrowConfig,g=o.getEdgeStyle(),x=o.getEdgeAnimationStyle(),w=x.strokeDasharray,R=x.stroke,B=x.strokeDashoffset,$=x.animationName,Q=x.animationDuration,oe=x.animationIterationCount,fe=x.animationTimingFunction,le=x.animationDirection;return Object(ne.g)(kg,Ml({points:a},g,p,l?{strokeDasharray:w,stroke:R,style:{strokeDashoffset:B,animationName:$,animationDuration:Q,animationIterationCount:oe,animationTimingFunction:fe,animationDirection:le}}:{}))}},{key:"getShape",value:function(){return Object(ne.g)("g",null,this.getEdge())}},{key:"getAnimation",value:function(){var o=this.props.model,a=o.getAnimation(),l=a.stroke,p=a.className,g=a.strokeDasharray,x=o.getEdgeStyle();return Object(ne.g)("g",null,Object(ne.g)(kg,Ml({points:o.points},x,{className:p,strokeDasharray:g,stroke:l})))}},{key:"getArrowInfo",value:function(){var o=this.props.model,a=o.points,l=o.isSelected,p=this.state,g=p.hover,x={start:null,end:null,hover:g,isSelected:l},w=Ao(a);return w.length>=2&&(x.start=w[w.length-2],x.end=w[w.length-1]),x}},{key:"getAppendAttributes",value:function(o){var a=o.start,l=o.end,p;if(a.x===l.x&&a.y===l.y)p="";else{var g={start:a,end:l,offset:10,verticalLength:5},x=vi(Tl(Tl({},g),{},{type:"start"})),w=vi(Tl(Tl({},g),{},{type:"end"}));p="M".concat(x.leftX," ").concat(x.leftY,`
  61. L`).concat(x.rightX," ").concat(x.rightY,`
  62. L`).concat(w.rightX," ").concat(w.rightY,`
  63. L`).concat(w.leftX," ").concat(w.leftY," z")}return{d:p,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(o){var a=this.getAppendAttributes(o),l=a.d,p=a.strokeWidth,g=a.fill,x=a.strokeDasharray,w=a.stroke;return Object(ne.g)(ko,{d:l,fill:g,strokeWidth:p,stroke:w,strokeDasharray:x})}},{key:"getAppendWidth",value:function(){for(var o=this,a=this.props,l=a.model,p=a.graphModel,g=l.pointsList,x=l.draggable,w=[],R=g.length,B=function(oe){var fe="lf-polyline-append",le={start:{x:g[oe].x,y:g[oe].y},end:{x:g[oe+1].x,y:g[oe+1].y},startIndex:oe,endIndex:oe+1,direction:"",dragAble:!0},Ne=Object(ne.g)("g",{className:fe},o.getAppendShape(le)),Se=p.editConfigModel,Pe=Se.adjustEdge,Ge=Se.adjustEdgeMiddle;if(!Pe||!x)o.dragHandler=function(){};else{o.dragHandler=o.drag;var Ie=le.startIndex,Je=le.endIndex,ke=Ge&&(Ie===0||Je===R-1);le.dragAble=!ke,le.start.x===le.end.x?(le.dragAble&&(fe+="-ew-resize"),le.direction=Dt.VERTICAL):le.start.y===le.end.y&&(le.dragAble&&(fe+="-ns-resize"),le.direction=Dt.HORIZONTAL),Ne=Object(ne.g)("g",{className:o.isDraging?"lf-dragging":"lf-drag-able",onMouseDown:function(yt){return o.beforeDragStart(yt,le)}},Object(ne.g)("g",{className:fe},o.getAppendShape(le)))}w.push(Ne)},$=0;$<R-1;$++)B($);return Object(ne.g)("g",null,w)}}]),t}(Ti);function Al(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Al=function(t){return typeof t}:Al=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function YD(e,r){return ZD(e)||VD(e,r)||KD(e,r)||WD()}function WD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  64. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KD(e,r){if(!!e){if(typeof e=="string")return Yg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yg(e,r)}}function Yg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function VD(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function ZD(e){if(Array.isArray(e))return e}function Nl(){return Nl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Nl.apply(this,arguments)}function JD(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Wg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function QD(e,r,t){return r&&Wg(e.prototype,r),t&&Wg(e,t),e}function qD(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&$c(e,r)}function $c(e,r){return $c=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},$c(e,r)}function ej(e){var r=nj();return function(){var n=Dl(e),o;if(r){var a=Dl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return tj(this,o)}}function tj(e,r){if(r&&(Al(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rj(e)}function rj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Dl(e)}var Uc=function(e){qD(t,e);var r=ej(t);function t(){return JD(this,t),r.apply(this,arguments)}return QD(t,[{key:"getEdge",value:function(){var o=this.props.model,a=o.getEdgeStyle(),l=o.path,p=o.isAnimation,g=o.arrowConfig,x=o.getEdgeAnimationStyle(),w=x.strokeDasharray,R=x.stroke,B=x.strokeDashoffset,$=x.animationName,Q=x.animationDuration,oe=x.animationIterationCount,fe=x.animationTimingFunction,le=x.animationDirection;return Object(ne.g)(ko,Nl({d:l},a,g,p?{strokeDasharray:w,stroke:R,style:{strokeDashoffset:B,animationName:$,animationDuration:Q,animationIterationCount:oe,animationTimingFunction:fe,animationDirection:le}}:{}))}},{key:"getShape",value:function(){return Object(ne.g)("g",null,this.getEdge())}},{key:"getAnimation",value:function(){var o=this.props.model,a=o.getAnimation(),l=a.stroke,p=a.className,g=a.strokeDasharray,x=o.getEdgeStyle();return Object(ne.g)("g",null,Object(ne.g)(ko,Nl({d:o.path},x,{className:p,strokeDasharray:g,stroke:l})))}},{key:"getAppendWidth",value:function(){var o=this.props.model.path;return Object(ne.g)(ko,{d:o,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var o=this.props.model,a=this.state,l=a.hover,p=o,g=p.path,x=p.isSelected,w=ST(g),R=YD(w,2),B=R[0],$=R[1],Q={start:B,end:$,hover:l,isSelected:x};return Q}}]),t}(Ti);function jl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jl=function(t){return typeof t}:jl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jl(e)}function Kg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function oj(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Kg(Object(t),!0).forEach(function(n){ij(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Kg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function ij(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function aj(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Vg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uj(e,r,t){return r&&Vg(e.prototype,r),t&&Vg(e,t),e}function lj(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Xc(e,r)}function Xc(e,r){return Xc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Xc(e,r)}function sj(e){var r=dj();return function(){var n=Cl(e),o;if(r){var a=Cl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return fj(this,o)}}function fj(e,r){if(r&&(jl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cj(e)}function cj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Cl(e)}var pj=function(e){lj(t,e);var r=sj(t);function t(){return aj(this,t),r.apply(this,arguments)}return uj(t,[{key:"getArrowAttributes",value:function(){var o=this.props,a=o.arrowInfo,l=o.style,p=a.start,g=a.end,x={start:p,end:g,offset:l.offset,verticalLength:l.verticalLength,type:"end"},w=vi(x),R=w.leftX,B=w.leftY,$=w.rightX,Q=w.rightY;return oj({d:"M".concat(R," ").concat(B," L").concat(g.x," ").concat(g.y," L").concat($," ").concat(Q," z")},l)}},{key:"getShape",value:function(){var o=this.getArrowAttributes(),a=o.d,l=o.strokeWidth,p=o.stroke,g=o.fill;return Object(ne.g)(ko,{d:a,fill:g,strokeWidth:l,stroke:p})}},{key:"render",value:function(){return Object(ne.g)("g",{className:"lf-arrow"},this.getShape())}}]),t}(ne.a);function hj(e,r){return Ws(e,r)}var Zg=hj;function vj(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}var yj=vj,gj=function(){return xr.a.Date.now()},Yc=gj,mj=/\s/;function bj(e){for(var r=e.length;r--&&mj.test(e.charAt(r)););return r}var Oj=bj,Ej=/^\s+/;function xj(e){return e&&e.slice(0,Oj(e)+1).replace(Ej,"")}var Sj=xj,Jg=0/0,Pj=/^[-+]0x[0-9a-f]+$/i,Tj=/^0b[01]+$/i,Mj=/^0o[0-7]+$/i,wj=parseInt;function Aj(e){if(typeof e=="number")return e;if(Ea(e))return Jg;if(Tt(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Tt(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Sj(e);var t=Tj.test(e);return t||Mj.test(e)?wj(e.slice(2),t?2:8):Pj.test(e)?Jg:+e}var Qg=Aj,Nj="Expected a function",Dj=Math.max,jj=Math.min;function Cj(e,r,t){var n,o,a,l,p,g,x=0,w=!1,R=!1,B=!0;if(typeof e!="function")throw new TypeError(Nj);r=Qg(r)||0,Tt(t)&&(w=!!t.leading,R="maxWait"in t,a=R?Dj(Qg(t.maxWait)||0,r):a,B="trailing"in t?!!t.trailing:B);function $(Ie){var Je=n,ke=o;return n=o=void 0,x=Ie,l=e.apply(ke,Je),l}function Q(Ie){return x=Ie,p=setTimeout(le,r),w?$(Ie):l}function oe(Ie){var Je=Ie-g,ke=Ie-x,pt=r-Je;return R?jj(pt,a-ke):pt}function fe(Ie){var Je=Ie-g,ke=Ie-x;return g===void 0||Je>=r||Je<0||R&&ke>=a}function le(){var Ie=Yc();if(fe(Ie))return Ne(Ie);p=setTimeout(le,oe(Ie))}function Ne(Ie){return p=void 0,B&&n?$(Ie):(n=o=void 0,l)}function Se(){p!==void 0&&clearTimeout(p),x=0,n=g=o=p=void 0}function Pe(){return p===void 0?l:Ne(Yc())}function Ge(){var Ie=Yc(),Je=fe(Ie);if(n=arguments,o=this,g=Ie,Je){if(p===void 0)return Q(g);if(R)return clearTimeout(p),p=setTimeout(le,r),$(g)}return p===void 0&&(p=setTimeout(le,r)),l}return Ge.cancel=Se,Ge.flush=Pe,Ge}var Rj=Cj,Ij=i(166);function _j(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function qg(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bj(e,r,t){return r&&qg(e.prototype,r),t&&qg(e,t),e}function Ln(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Lj=function(){function e(r){_j(this,e),Ln(this,"undos",[]),Ln(this,"redos",[]),Ln(this,"callbacks",[]),Ln(this,"stopWatch",null),Ln(this,"curData",null),Ln(this,"maxSize",50),Ln(this,"waitTime",100),Ln(this,"eventCenter",void 0),this.eventCenter=r}return Bj(e,[{key:"add",value:function(t){Zg(yj(this.undos),t)||(this.undos.push(t),Zg(this.curData,t)||(this.redos=[]),this.eventCenter.emit(it.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(!!this.undoAble()){var t=this.undos.pop();this.redos.push(t);var n=this.undos.pop();return this.curData=jt(n),n}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(!!this.redoAble()){var t=this.redos.pop();return this.curData=jt(t),t}}},{key:"watch",value:function(t){var n=this;this.stopWatch&&this.stopWatch(),this.undos.push(t.modelToGraphData()),this.stopWatch=Object(Ij.a)(t,Rj(function(){var o=t.modelToHistoryData();o&&n.add(o)},this.waitTime))}}]),e}(),zj=Lj;function Rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rl=function(t){return typeof t}:Rl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}var em,tm,rm;function Fj(e,r){return $j(e)||kj(e,r)||Gj(e,r)||Hj()}function Hj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  65. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gj(e,r){if(!!e){if(typeof e=="string")return nm(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nm(e,r)}}function nm(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function kj(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function $j(e){if(Array.isArray(e))return e}function om(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function $o(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?om(Object(t),!0).forEach(function(n){io(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):om(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Uj(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function im(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xj(e,r,t){return r&&im(e.prototype,r),t&&im(e,t),e}function Yj(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Wc(e,r)}function Wc(e,r){return Wc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Wc(e,r)}function Wj(e){var r=Vj();return function(){var n=Il(e),o;if(r){var a=Il(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return Kj(this,o)}}function Kj(e,r){if(r&&(Rl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uo(e)}function Uo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Il(e)}function io(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Kc=Gr(em=(rm=tm=function(e){Yj(t,e);var r=Wj(t);function t(){var n;return Uj(this,t),n=r.call(this),io(Uo(n),"ref",Object(ne.f)()),io(Uo(n),"__prevText",{type:"",text:"",id:""}),io(Uo(n),"keyupHandler",function(o){var a=n.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&a.setElementState(0)}),io(Uo(n),"inputHandler",function(o){var a=o.target,l=a.innerText,p=n.props.graphModel.textEditElement;n.__prevText={type:p.type,text:l.replace(/(\r\n)+$|(\n)+$/,""),id:p.id}}),io(Uo(n),"keydownHandler",function(o){o.stopPropagation()}),n.state={style:{left:0,top:0}},n}return Xj(t,[{key:"componentDidMount",value:function(){this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current));var o=this.props.graphModel,a=o.eventCenter,l=o.editConfigModel,p=l.edgeTextEdit,g=l.nodeTextEdit;(p||g)&&a.on("".concat(it.GRAPH_TRANSFORM,",").concat(it.NODE_CLICK,",").concat(it.BLANK_CLICK," "),function(){o.textEditElement&&o.textEditElement.setElementState(Et.DEFAULT)})}},{key:"componentDidUpdate",value:function(){var o=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var a=this.__prevText,l=a.text,p=a.id;o.updateText(p,l),o.eventCenter.emit(it.TEXT_UPDATE,$o({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(o){if(window.getSelection!==void 0&&document.createRange!==void 0){var a=document.createRange();a.selectNodeContents(o),a.collapse(!1);var l=window.getSelection();l.removeAllRanges(),l.addRange(a)}}},{key:"render",value:function(){var o,a=this.props.graphModel.textEditElement,l=this.state.style;return a?Object(ne.g)("div",{contentEditable:!0,className:"lf-text-input",style:l,ref:this.ref,key:a.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onInput:this.inputHandler},(o=a.text)===null||o===void 0?void 0:o.value):null}}],[{key:"getDerivedStateFromProps",value:function(o){var a=o.graphModel,l=a.transformModel,p=a.theme,g=a.textEditElement,x;if(g){var w;if(!((w=g.text)!==null&&w!==void 0&&w.value))if(g.BaseType===Gt.EDGE){g=g;var R=g.text,B=g.textPosition,$=B.x,Q=B.y;R.x=$,R.y=Q,g.setText(R)}else g=g;var oe={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(g.BaseType===Gt.EDGE){var fe=p.edgeText,le=fe.overflowMode,Ne=fe.lineHeight,Se=fe.wrapPadding,Pe=fe.textWidth;Pe&&le==="autoWrap"&&(x=$o($o({},oe),{},{width:Pe,minWidth:Pe,lineHeight:Ne,padding:Se}))}else if(g.BaseType===Gt.NODE){var Ge=p.nodeText,Ie=Ge.overflowMode,Je=Ge.lineHeight,ke=Ge.wrapPadding,pt=Ge.textWidth,yt=g,lr=yt.width,Or=yt.modelType;(Or!==dt.TEXT_NODE&&Ie==="autoWrap"||Or===dt.TEXT_NODE&&pt)&&(x=$o($o({},oe),{},{width:pt||lr,minWidth:pt||lr,lineHeight:Je,padding:ke}))}var rn=g.text,zn=rn.x,ao=rn.y,Xo=l.CanvasPointToHtmlPoint([zn,ao]),Fn=Fj(Xo,2),Yo=Fn[0],td=Fn[1];return{style:$o({left:Yo,top:td},x)}}}}]),t}(ne.a),io(tm,"toolName","textEdit"),rm))||em,Zj=function(r){var t=r.x,n=r.y,o=r.width,a=r.height;return{x:t-o/2,y:n-a/2,x1:t+o/2,y1:n+a/2}},Jj=function(r){var t=r.startPoint,n=r.endPoint,o=(t.x+n.x)/2,a=(t.y+n.y)/2,l=Math.abs(t.x-n.x)+10,p=Math.abs(t.y-n.y)+10;return{x:o-l/2,y:a-p/2,x1:o+l/2,y1:a+p/2}},Qj=function(r){var t=r.points,n=Ao(t),o=yi(n,8),a=o.x,l=o.y,p=o.width,g=o.height;return{x:a-p/2,y:l-g/2,x1:a+p/2,y1:l+g/2}},qj=function(r){var t=r.path,n=$a(t),o=yi(n,8),a=o.x,l=o.y,p=o.width,g=o.height;return{x:a-p/2,y:l-g/2,x1:a+p/2,y1:l+g/2}},eC=function(r){if(r.modelType===dt.LINE_EDGE)return Jj(r);if(r.modelType===dt.POLYLINE_EDGE)return Qj(r);if(r.modelType===dt.BEZIER_EDGE)return qj(r)};function _l(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_l=function(t){return typeof t}:_l=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}var am,um,lm;function sm(e,r){return nC(e)||rC(e,r)||fm(e,r)||tC()}function tC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  66. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rC(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],o=!0,a=!1,l,p;try{for(t=t.call(e);!(o=(l=t.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(g){a=!0,p=g}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw p}}return n}}function nC(e){if(Array.isArray(e))return e}function oC(e){return uC(e)||aC(e)||fm(e)||iC()}function iC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  67. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fm(e,r){if(!!e){if(typeof e=="string")return Vc(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vc(e,r)}}function aC(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uC(e){if(Array.isArray(e))return Vc(e)}function Vc(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function lC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function cm(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sC(e,r,t){return r&&cm(e.prototype,r),t&&cm(e,t),e}function fC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Zc(e,r)}function Zc(e,r){return Zc=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Zc(e,r)}function cC(e){var r=pC();return function(){var n=Bl(e),o;if(r){var a=Bl(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return dC(this,o)}}function dC(e,r){if(r&&(_l(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mi(e)}function Mi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bl(e)}function wi(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Jc=Gr(am=(lm=um=function(e){fC(t,e);var r=cC(t);function t(n){var o;lC(this,t),o=r.call(this),wi(Mi(o),"stepDrag",void 0),wi(Mi(o),"handleMouseDown",function(g){o.stepDrag.handleMouseDown(g)}),wi(Mi(o),"onDraging",function(g){var x=g.deltaX,w=g.deltaY,R=o.props.graphModel,B=R.getSelectElements(!0);R.moveNodes(B.nodes.map(function($){return $.id}),x,w)}),wi(Mi(o),"handleContextMenu",function(g){g.preventDefault();var x=o.props,w=x.graphModel,R=x.graphModel,B=R.eventCenter,$=R.selectElements,Q=w.getPointByClient({x:g.clientX,y:g.clientY}),oe={nodes:[],edges:[]},fe=oC($.values());fe.forEach(function(le){le.BaseType===Gt.NODE&&oe.nodes.push(le.getData()),le.BaseType===Gt.EDGE&&oe.edges.push(le.getData())}),B.emit(it.SELECTION_CONTEXTMENU,{data:oe,e:g,position:Q})});var a=n.graphModel,l=a.gridSize,p=a.eventCenter;return o.stepDrag=new to({onDraging:o.onDraging,step:l,eventType:"SELECTION",eventCenter:p}),o}return sC(t,[{key:"render",value:function(){var o=this.props.graphModel,a=o.selectElements,l=o.transformModel;if(!(a.size<=1)){var p=Number.MAX_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER,w=Number.MIN_SAFE_INTEGER;a.forEach(function(fe){var le={x:0,y:0,x1:0,y1:0};fe.BaseType===Gt.NODE&&(le=Zj(fe)),fe.BaseType===Gt.EDGE&&(le=eC(fe)),p=Math.min(p,le.x),g=Math.min(g,le.y),x=Math.max(x,le.x1),w=Math.max(w,le.y1)});var R=l.CanvasPointToHtmlPoint([p,g]),B=sm(R,2);p=B[0],g=B[1];var $=l.CanvasPointToHtmlPoint([x,w]),Q=sm($,2);x=Q[0],w=Q[1];var oe={left:"".concat(p-10,"px"),top:"".concat(g-10,"px"),width:"".concat(x-p+20,"px"),height:"".concat(w-g+20,"px")};return Object(ne.g)("div",{className:"lf-multiple-select",style:oe,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}]),t}(ne.a),wi(um,"toolName","multipleSelect"),lm))||am;function hC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dm(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vC(e,r,t){return r&&dm(e.prototype,r),t&&dm(e,t),e}function Ll(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var yC=function(){function e(r){hC(this,e),Ll(this,"tools",void 0),Ll(this,"components",void 0),Ll(this,"toolMap",new Map),Ll(this,"instance",void 0),this.instance=r,this.isDisabledTool(Kc.toolName)||this.registerTool(Kc.toolName,Kc),this.isDisabledTool(Jc.toolName)||this.registerTool(Jc.toolName,Jc)}return vC(e,[{key:"isDisabledTool",value:function(t){return this.instance.options.disabledTools.indexOf(t)!==-1}},{key:"registerTool",value:function(t,n){this.toolMap.set(t,n)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}]),e}(),gC=i(167),mC=i.n(gC);function bC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function pm(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function OC(e,r,t){return r&&pm(e.prototype,r),t&&pm(e,t),e}function Qc(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var hm=function(){function e(r){bC(this,e),Qc(this,"mousetrap",void 0),Qc(this,"options",void 0),Qc(this,"target",void 0),r.keyboard||(r.keyboard={enabled:!1}),this.options=r;var t=r.lf;this.target=t.container,this.mousetrap=new mC.a(this.target),r.keyboard.enabled&&this.enable(!0)}return OC(e,[{key:"initShortcuts",value:function(){var t=this,n=this.options.keyboard.shortcuts;if(n)if(d(n))n.forEach(function(p){var g=p.keys,x=p.callback,w=p.action;return t.on(g,x,w)});else{var o=n.keys,a=n.callback,l=n.action;this.on(o,a,l)}}},{key:"on",value:function(t,n,o){this.mousetrap.bind(this.getKeys(t),n,o)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(t,n){this.mousetrap.unbind(this.getKeys(t),n)}},{key:"enable",value:function(t){(this.disabled||t)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(t){var n=this;return(Array.isArray(t)?t:[t]).map(function(o){return n.formatkey(o)})}},{key:"formatkey",value:function(t){var n=t.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command");return n}}]),e}(),EC=hm,tn=null;function vm(e,r){return e.x+=r,e.y+=r,e.text&&(e.text.x+=r,e.text.y+=r),e}function ym(e,r){return e.startPoint&&(e.startPoint.x+=r,e.startPoint.y+=r),e.endPoint&&(e.endPoint.x+=r,e.endPoint.y+=r),e.pointsList&&e.pointsList.length>0&&e.pointsList.forEach(function(t){t.x+=r,t.y+=r}),e.text&&(e.text.x+=r,e.text.y+=r),e}var zl=40;function xC(e,r){var t=e.keyboard,n=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(!!n.enabled&&!r.textEditElement){var o=e.options.guards,a=r.getSelectElements(!1),l=o&&o.beforeClone?o.beforeClone(a):!0;return l?(tn=a,tn.nodes.forEach(function(p){return vm(p,zl)}),tn.edges.forEach(function(p){return ym(p,zl)}),!1):(tn=null,!1)}}),t.on(["cmd + v","ctrl + v"],function(){if(!!n.enabled&&!r.textEditElement){if(tn&&(tn.nodes||tn.edges)){e.clearSelectElements();var o=e.addElements(tn);if(!o)return;o.nodes.forEach(function(a){return e.selectElementById(a.id,!0)}),o.edges.forEach(function(a){return e.selectElementById(a.id,!0)}),tn.nodes.forEach(function(a){return vm(a,zl)}),tn.edges.forEach(function(a){return ym(a,zl)})}return!1}}),t.on(["cmd + z","ctrl + z"],function(){if(!!n.enabled&&!r.textEditElement)return e.undo(),!1}),t.on(["cmd + y","ctrl + y"],function(){if(!!n.enabled&&!r.textEditElement)return e.redo(),!1}),t.on(["backspace"],function(){if(!!n.enabled&&!r.textEditElement){var o=r.getSelectElements(!0);return e.clearSelectElements(),o.edges.forEach(function(a){return e.deleteEdge(a.id)}),o.nodes.forEach(function(a){return e.deleteNode(a.id)}),!1}})}function SC(e,r){e.on("node:mousemove",function(t){var n=t.data;r.setNodeSnapLine(n)}),e.on("node:mouseup",function(){r.clearSnapline()})}function Fl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fl=function(t){return typeof t}:Fl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function gm(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function qc(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gm(Object(t),!0).forEach(function(n){Lt(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gm(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function PC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mm(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function TC(e,r,t){return r&&mm(e.prototype,r),t&&mm(e,t),e}function Lt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ed=function(){function e(r){var t=this;PC(this,e),Lt(this,"container",void 0),Lt(this,"width",void 0),Lt(this,"height",void 0),Lt(this,"graphModel",void 0),Lt(this,"history",void 0),Lt(this,"viewMap",new Map),Lt(this,"tool",void 0),Lt(this,"keyboard",void 0),Lt(this,"dnd",void 0),Lt(this,"options",void 0),Lt(this,"snaplineModel",void 0),Lt(this,"components",[]),Lt(this,"plugins",void 0),Lt(this,"extension",{}),Lt(this,"adapterIn",void 0),Lt(this,"adapterOut",void 0),Lt(this,"getView",function(n){return t.viewMap.get(n)}),r=Fv(r),this.options=r,this.container=r.container,this.plugins=r.plugins,this.graphModel=new LT(qc({},r)),this.tool=new yC(this),this.history=new zj(this.graphModel.eventCenter),this.dnd=new xw({lf:this}),this.keyboard=new EC({lf:this,keyboard:r.keyboard}),!r.isSilentMode&&r.snapline!==!1&&(this.snaplineModel=new og(this.graphModel),SC(this.graphModel.eventCenter,this.snaplineModel)),xC(this,this.graphModel),this.keyboard.initShortcuts(),this.defaultRegister(),this.installPlugins(r.disabledPlugins)}return TC(e,[{key:"register",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(typeof t!="string"){this.registerElement(t);return}var a={BaseEdge:Ti,BaseEdgeModel:hf,BaseNode:yn,BaseNodeModel:hn,RectNode:hc,RectNodeModel:rc,CircleNode:gc,CircleNodeModel:Xf,PolygonNode:Oc,PolygonNodeModel:qf,TextNode:Ac,TextNodeModel:oc,LineEdge:Hc,LineEdgeModel:gf,DiamondNode:Sc,DiamondNodeModel:Kf,PolylineEdge:kc,PolylineEdgeModel:Of,BezierEdge:Uc,BezierEdgeModel:kf,EllipseNode:Mc,EllipseNodeModel:Zf,HtmlNode:jc,HtmlNodeModel:ac,h:ne.g,type:t};this.viewMap.forEach(function(w){var R=w.extendKey;R&&(a[R]=w)}),this.graphModel.modelMap.forEach(function(w){var R=w.extendKey;R&&(a[R]=w)});var l=n(a),p=l.view,g=l.model,x=p;o&&!x.isObervered&&(x.isObervered=!0,x=bt(x)),this.setView(t,x),this.graphModel.setModel(t,g)}},{key:"registerElement",value:function(t){var n=t.view;t.isObserverView!==!1&&!n.isObervered&&(n.isObervered=!0,n=bt(n)),this.setView(t.type,n),this.graphModel.setModel(t.type,t.model)}},{key:"batchRegister",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(o){t.registerElement(o)})}},{key:"defaultRegister",value:function(){this.registerElement({view:hc,model:rc,type:"rect"}),this.registerElement({type:"circle",view:gc,model:Xf}),this.registerElement({type:"polygon",view:Oc,model:qf}),this.registerElement({type:"line",view:Hc,model:gf}),this.registerElement({type:"polyline",view:kc,model:Of}),this.registerElement({type:"bezier",view:Uc,model:kf}),this.registerElement({type:"text",view:Ac,model:oc}),this.registerElement({type:"ellipse",view:Mc,model:Zf}),this.registerElement({type:"diamond",view:Sc,model:Kf}),this.registerElement({type:"html",view:jc,model:ac})}},{key:"selectElementById",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.graphModel.selectElementById(t,n),n||this.graphModel.toFront(t)}},{key:"focusOn",value:function(t){var n=this.graphModel.transformModel,o=t.coordinate,a=t.id;if(!o){var l=this.getNodeModelById(a);l&&(o=l.getData());var p=this.getEdgeModelById(a);p&&(o=p.textPosition)}var g=o,x=g.x,w=g.y;n.focusOn(x,w,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(t){this.graphModel.setTheme(t)}},{key:"resize",value:function(t,n){this.graphModel.resize(t,n),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(t){this.graphModel.setDefaultEdgeType(t)}},{key:"updateText",value:function(t,n){this.graphModel.updateText(t,n)}},{key:"deleteElement",value:function(t){var n,o,a,l=this.getModelById(t);if(!l)return!1;var p=(n={},Lt(n,Gt.NODE,this.deleteNode),Lt(n,Gt.EDGE,this.deleteEdge),n),g=l.BaseType;return(o=(a=p[g])===null||a===void 0?void 0:a.call(this,t))!==null&&o!==void 0?o:!1}},{key:"getModelById",value:function(t){return this.graphModel.getElement(t)}},{key:"getDataById",value:function(t){return this.graphModel.getElement(t).getData()}},{key:"changeNodeType",value:function(t,n){this.graphModel.changeNodeType(t,n)}},{key:"changeEdgeType",value:function(t,n){this.graphModel.changeEdgeType(t,n)}},{key:"getNodeEdges",value:function(t){return this.graphModel.getNodeEdges(t)}},{key:"addNode",value:function(t){return this.graphModel.addNode(t)}},{key:"deleteNode",value:function(t){var n=this.graphModel.getNodeModelById(t);if(!n)return!1;var o=n.getData(),a=this.options.guards,l=a&&a.beforeDelete?a.beforeDelete(o):!0;return l&&this.graphModel.deleteNode(t),l}},{key:"cloneNode",value:function(t){var n=this.graphModel.getNodeModelById(t),o=n.getData(),a=this.options.guards,l=a&&a.beforeClone?a.beforeClone(o):!0;if(l)return this.graphModel.cloneNode(t)}},{key:"changeNodeId",value:function(t,n){return this.graphModel.changeNodeId(t,n)}},{key:"getNodeModelById",value:function(t){return this.graphModel.getNodeModelById(t)}},{key:"getNodeDataById",value:function(t){return this.graphModel.getNodeModelById(t).getData()}},{key:"addEdge",value:function(t){return this.graphModel.addEdge(t)}},{key:"deleteEdge",value:function(t){var n=this.options.guards,o=this.graphModel.edgesMap[t];if(!o)return!1;var a=o.model.getData(),l=n&&n.beforeDelete?n.beforeDelete(a):!0;return l&&this.graphModel.deleteEdgeById(t),l}},{key:"deleteEdgeByNodeId",value:function(t){var n=t.sourceNodeId,o=t.targetNodeId;n&&o?this.graphModel.deleteEdgeBySourceAndTarget(n,o):n?this.graphModel.deleteEdgeBySource(n):o&&this.graphModel.deleteEdgeByTarget(o)}},{key:"changeEdgeId",value:function(t,n){return this.graphModel.changeEdgeId(t,n)}},{key:"getEdgeModelById",value:function(t){var n,o=this.graphModel.edgesMap;return(n=o[t])===null||n===void 0?void 0:n.model}},{key:"getEdgeModels",value:function(t){var n=this.graphModel.edges,o=t.sourceNodeId,a=t.targetNodeId;if(o&&a){var l=[];return n.forEach(function(x){x.sourceNodeId===o&&x.targetNodeId===a&&l.push(x)}),l}if(o){var p=[];return n.forEach(function(x){x.sourceNodeId===o&&p.push(x)}),p}if(a){var g=[];return n.forEach(function(x){x.targetNodeId===a&&g.push(x)}),g}return[]}},{key:"getEdgeDataById",value:function(t){var n;return(n=this.getEdgeModelById(t))===null||n===void 0?void 0:n.getData()}},{key:"getNodeIncomingEdge",value:function(t){return this.graphModel.getNodeIncomingEdge(t)}},{key:"getNodeOutgoingEdge",value:function(t){return this.graphModel.getNodeOutgoingEdge(t)}},{key:"getNodeIncomingNode",value:function(t){return this.graphModel.getNodeIncomingNode(t)}},{key:"getNodeOutgoingNode",value:function(t){return this.graphModel.getNodeOutgoingNode(t)}},{key:"editText",value:function(t){this.graphModel.editText(t)}},{key:"setProperties",value:function(t,n){var o;(o=this.graphModel.getElement(t))===null||o===void 0||o.setProperties(er(n))}},{key:"getProperties",value:function(t){var n;return(n=this.graphModel.getElement(t))===null||n===void 0?void 0:n.getProperties()}},{key:"toFront",value:function(t){this.graphModel.toFront(t)}},{key:"setElementZIndex",value:function(t,n){return this.graphModel.setElementZIndex(t,n)}},{key:"addElements",value:function(t){for(var n=this,o=t.nodes,a=t.edges,l={},p={nodes:[],edges:[]},g=0;g<o.length;g++){var x=o[g],w=x.id,R=this.addNode(x);if(!R)return;w&&(l[w]=R.id),p.nodes.push(R)}return a.forEach(function(B){var $=B.sourceNodeId,Q=B.targetNodeId;l[$]&&(B.sourceNodeId=l[$]),l[Q]&&(B.targetNodeId=l[Q]);var oe=n.graphModel.addEdge(B);p.edges.push(oe)}),p}},{key:"getAreaElement",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.graphModel.getAreaElement(t,n,o,a).map(function(l){return l.getData()})}},{key:"getSelectElements",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.graphModel.getSelectElements(t)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var t=this.graphModel.modelToGraphData();return this.adapterOut?this.adapterOut(t):t}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(t){this.graphModel.editConfigModel.updateEditConfig(t)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(t,n){return this.graphModel.getPointByClient({x:t,y:n})}},{key:"undo",value:function(){if(!!this.history.undoAble()){var t=er(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(t)}}},{key:"redo",value:function(){if(!!this.history.redoAble()){var t=er(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(t)}}},{key:"zoom",value:function(t,n){var o=this.graphModel.transformModel;return o.zoom(t,n)}},{key:"resetZoom",value:function(){var t=this.graphModel.transformModel;t.resetZoom()}},{key:"setZoomMiniSize",value:function(t){var n=this.graphModel.transformModel;n.setZoomMiniSize(t)}},{key:"setZoomMaxSize",value:function(t){var n=this.graphModel.transformModel;n.setZoomMaxSize(t)}},{key:"getTransform",value:function(){var t=this.graphModel.transformModel,n=t.SCALE_X,o=t.SCALE_Y,a=t.TRANSLATE_X,l=t.TRANSLATE_Y;return{SCALE_X:n,SCALE_Y:o,TRANSLATE_X:a,TRANSLATE_Y:l}}},{key:"translate",value:function(t,n){var o=this.graphModel.transformModel;o.translate(t,n)}},{key:"resetTranslate",value:function(){var t=this.graphModel.transformModel,n=t.TRANSLATE_X,o=t.TRANSLATE_Y;this.translate(-n,-o)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(t,n){n===void 0&&(n=t),this.graphModel.fitView(t,n)}},{key:"openEdgeAnimation",value:function(t){this.graphModel.openEdgeAnimation(t)}},{key:"closeEdgeAnimation",value:function(t){this.graphModel.closeEdgeAnimation(t)}},{key:"on",value:function(t,n){this.graphModel.eventCenter.on(t,n)}},{key:"off",value:function(t,n){this.graphModel.eventCenter.off(t,n)}},{key:"once",value:function(t,n){this.graphModel.eventCenter.once(t,n)}},{key:"emit",value:function(t,n){this.graphModel.eventCenter.emit(t,n)}},{key:"installPlugins",value:function(){var t,n=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=(t=this.plugins)!==null&&t!==void 0?t:e.extensions;a.forEach(function(l){var p=l.pluginName||l.name;o.indexOf(p)===-1&&n.installPlugin(l)})}},{key:"installPlugin",value:function(t){if(Fl(t)==="object"){var n=t.install,o=t.render;n&&n.call(t,this,e),o&&this.components.push(o.bind(t)),this.extension[t.pluginName]=t;return}var a=t,l=new a({lf:this,LogicFlow:e});l.render&&this.components.push(l.render.bind(l)),this.extension[a.pluginName]=l}},{key:"updateAttributes",value:function(t,n){this.graphModel.updateAttributes(t,n)}},{key:"createFakerNode",value:function(t){var n=this.graphModel.modelMap.get(t.type);if(!n){console.warn("\u4E0D\u5B58\u5728\u4E3A".concat(t.type,"\u7C7B\u578B\u7684\u8282\u70B9"));return}var o=new n(qc(qc({},t),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(o),o}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(t){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(t)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(t,n){this.viewMap.set(t,n)}},{key:"renderRawData",value:function(t){this.graphModel.graphDataToModel(er(t)),!this.options.isSilentMode&&this.options.history!==!1&&this.history.watch(this.graphModel),Object(ne.j)(Object(ne.g)(bw,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(it.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(t=this.adapterIn(t)),this.renderRawData(t)}}],[{key:"use",value:function(t){var n=t.pluginName;n||(console.warn("\u8BF7\u7ED9\u63D2\u4EF6".concat(t.name||t.constructor.name,"\u6307\u5B9ApluginName!")),n=t.name);var o=this.extensions.get(n);o&&o.destroy&&o.destroy(),this.extensions.set(n,t)}}]),e}();Lt(ed,"extensions",new Map);function Gr(e){return bt(e)}c.default=ed}])})})(Ke,Ke.exports);var Gl=Jm(Ke.exports);const FC=[{type:"bpmn:startEvent",text:"\u5F00\u59CB",class:"bpmn-start"},{type:"bpmn:endEvent",text:"\u7ED3\u675F",class:"bpmn-end"},{type:"bpmn:exclusiveGateway",text:"\u7F51\u5173",class:"bpmn-exclusiveGateway"},{type:"bpmn:userTask",text:"\u7528\u6237",class:"bpmn-user"}];function HC(m,v){return v={exports:{}},m(v,v.exports),v.exports}var GC=HC(function(m){var v=m.exports=function(u,c){if(c||(c=16),u===void 0&&(u=128),u<=0)return"0";for(var i=Math.log(Math.pow(2,u))/Math.log(c),s=2;i===1/0;s*=2)i=Math.log(Math.pow(2,u/s))/Math.log(c)*s;for(var f=i-Math.floor(i),y="",s=0;s<Math.floor(i);s++){var b=Math.floor(Math.random()*c).toString(c);y=b+y}if(f){var E=Math.pow(c,f),b=Math.floor(Math.random()*E).toString(c);y=b+y}var S=parseInt(y,c);return S!==1/0&&S>=Math.pow(2,u)?v(u,c):y};v.rack=function(u,c,i){var s=function(y){var b=0;do{if(b++>10)if(i)u+=i;else throw new Error("too many ID collisions, use more bits");var E=v(u,c)}while(Object.hasOwnProperty.call(f,E));return f[E]=y,E},f=s.hats={};return s.get=function(y){return s.hats[y]},s.set=function(y,b){return s.hats[y]=b,s},s.bits=u||128,s.base=c||16,s}});function an(m){if(!(this instanceof an))return new an(m);m=m||[128,36,1],this._seed=m.length?GC.rack(m[0],m[1],m[2]):m}an.prototype.next=function(m){return this._seed(m||!0)};an.prototype.nextPrefixed=function(m,v){var u;do u=m+this.next(!0);while(this.assigned(u));return this.claim(u,v),u};an.prototype.claim=function(m,v){this._seed.set(m,v||!0)};an.prototype.assigned=function(m){return this._seed.get(m)||!1};an.prototype.unclaim=function(m){delete this._seed.hats[m]};an.prototype.clear=function(){var m=this._seed.hats,v;for(v in m)this.unclaim(v)};var kC=new an([32,32,1]);function qo(){return kC.next()}var nb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),$C=function(m){nb(v,m);function v(u,c){var i=this;return u.id||(u.id="Event_"+qo()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),i=m.call(this,u,c)||this,i}return v.prototype.setAttributes=function(){this.r=18},v.prototype.getConnectedTargetRules=function(){var u=m.prototype.getConnectedTargetRules.call(this),c={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return u.push(c),u},v.extendKey="StartEventModel",v}(Ke.exports.CircleNodeModel),UC=function(m){nb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.extendKey="StartEventNode",v}(Ke.exports.CircleNode),XC={type:"bpmn:startEvent",view:UC,model:$C},ob=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),Ul=globalThis&&globalThis.__assign||function(){return Ul=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Ul.apply(this,arguments)},YC=function(m){ob(v,m);function v(u,c){var i=this;return u.id||(u.id="Event_"+qo()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),i=m.call(this,u,c)||this,i}return v.prototype.setAttributes=function(){this.r=18},v.prototype.getConnectedSourceRules=function(){var u=m.prototype.getConnectedSourceRules.call(this),c={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return u.push(c),u},v.extendKey="EndEventModel",v}(Ke.exports.CircleNodeModel),WC=function(m){ob(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},v.prototype.getShape=function(){var u=this.props.model,c=u.getNodeStyle(),i=u.x,s=u.y,f=u.r,y=m.prototype.getShape.call(this);return Ke.exports.h("g",{},y,Ke.exports.h("circle",Ul(Ul({},c),{cx:i,cy:s,r:f-5})))},v.extendKey="EndEventView",v}(Ke.exports.CircleNode),KC={type:"bpmn:endEvent",view:WC,model:YC},ib=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),Ri=globalThis&&globalThis.__assign||function(){return Ri=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Ri.apply(this,arguments)},VC=function(m){ib(v,m);function v(u,c){var i=this;return u.id||(u.id="Gateway_"+qo()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),i=m.call(this,u,c)||this,i.points=[[25,0],[50,25],[25,50],[0,25]],i}return v.extendKey="ExclusiveGatewayModel",v}(Ke.exports.PolygonNodeModel),ZC=function(m){ib(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getShape=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.points,b=u.getNodeStyle();return Ke.exports.h("g",{transform:"matrix(1 0 0 1 "+(c-s/2)+" "+(i-f/2)+")"},Ke.exports.h("polygon",Ri(Ri({},b),{x:c,y:i,points:y})),Ke.exports.h("path",Ri({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},b)))},v.extendKey="ExclusiveGatewayNode",v}(Ke.exports.PolygonNode),JC={type:"bpmn:exclusiveGateway",view:ZC,model:VC},ab=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),Xl=globalThis&&globalThis.__assign||function(){return Xl=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Xl.apply(this,arguments)},QC=function(m){ab(v,m);function v(u,c){var i=this;return u.id||(u.id="Activity_"+qo()),i=m.call(this,u,c)||this,i}return v.extendKey="UserTaskModel",v}(Ke.exports.RectNodeModel),qC=function(m){ab(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getLabelShape=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.getNodeStyle();return Ke.exports.h("svg",{x:c-s/2+5,y:i-f/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},Ke.exports.h("path",{fill:y.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},v.prototype.getShape=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.radius,b=u.getNodeStyle();return Ke.exports.h("g",{},[Ke.exports.h("rect",Xl(Xl({},b),{x:c-s/2,y:i-f/2,rx:y,ry:y,width:s,height:f})),this.getLabelShape()])},v.extendKey="UserTaskNode",v}(Ke.exports.RectNode),e2={type:"bpmn:userTask",view:qC,model:QC},ub=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),od=globalThis&&globalThis.__assign||function(){return od=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},od.apply(this,arguments)},t2=function(m){ub(v,m);function v(u,c){var i=this;return u.id||(u.id="Activity_"+qo()),i=m.call(this,u,c)||this,i}return v.extendKey="ServiceTaskModel",v}(Ke.exports.RectNodeModel),r2=function(m){ub(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getLabelShape=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.getNodeStyle();return Ke.exports.h("svg",{x:c-s/2+5,y:i-f/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},Ke.exports.h("path",{fill:y.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},v.prototype.getShape=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.radius,b=u.getNodeStyle();return Ke.exports.h("g",{},[Ke.exports.h("rect",od({x:c-s/2,y:i-f/2,rx:y,ry:y,width:s,height:f},b)),this.getLabelShape()])},v.extendKey="ServiceTaskNode",v}(Ke.exports.RectNode),n2={type:"bpmn:serviceTask",view:r2,model:t2},lb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),o2=function(m){lb(v,m);function v(u,c){var i=this;return u.id||(u.id="Flow_"+qo()),i=m.call(this,u,c)||this,i}return v.extendKey="SequenceFlowModel",v}(Ke.exports.PolylineEdgeModel),i2=function(m){lb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.extendKey="SequenceFlowEdge",v}(Ke.exports.PolylineEdge),a2={type:"bpmn:sequenceFlow",view:i2,model:o2},Mm={width:40,height:40},wm={width:40,height:40},Am={width:40,height:40},Nm={width:100,height:80},Dm={width:100,height:80},u2={rect:{radius:5,stroke:"rgb(24, 125, 255)"},circle:{r:18,stroke:"rgb(24, 125, 255)"},polygon:{stroke:"rgb(24, 125, 255)"},polyline:{stroke:"rgb(24, 125, 255)",hoverStroke:"rgb(24, 125, 255)",selectedStroke:"rgb(24, 125, 255)"},edgeText:{background:{fill:"white",height:14,stroke:"transparent",radius:3}}},l2=function(){function m(v){var u=v.lf;u.setTheme(u2),u.register(XC),u.register(KC),u.register(JC),u.register(e2),u.register(n2),u.options.customBpmnEdge||(u.register(a2),u.setDefaultEdgeType("bpmn:sequenceFlow"))}return m.pluginName="bpmnElement",m}(),s2=function(){function m(v){var u=this,c=v.lf;this.lf=c,this.customCssRules="",this.useGlobalRules=!0,c.getSnapshot=function(i,s){u.getSnapshot(i,s)},c.getSnapshotBlob=function(i){return u.getSnapshotBlob(i)},c.getSnapshotBase64=function(i){return u.getSnapshotBase64(i)}}return m.prototype.getSvgRootElement=function(v){var u=this;this.offsetX=Number.MAX_SAFE_INTEGER,this.offsetY=Number.MAX_SAFE_INTEGER,v.graphModel.nodes.forEach(function(i){var s=i.x,f=i.width,y=i.y,b=i.height,E=s-f/2,S=y-b/2;E<u.offsetX&&(u.offsetX=E-5),S<u.offsetY&&(u.offsetY=S-5)}),v.graphModel.edges.forEach(function(i){i.pointsList&&i.pointsList.forEach(function(s){var f=s.x,y=s.y;f<u.offsetX&&(u.offsetX=f-5),y<u.offsetY&&(u.offsetY=y-5)})});var c=v.container.querySelector(".lf-canvas-overlay");return c},m.prototype.triggerDownload=function(v){var u=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),c=document.createElement("a");c.setAttribute("download",this.fileName),c.setAttribute("href",v),c.setAttribute("target","_blank"),c.dispatchEvent(u)},m.prototype.removeAnchor=function(v){for(var u=v.childNodes,c=v.childNodes&&v.childNodes.length,i=0;i<c;i++){var s=u[i],f=s.classList&&Array.from(s.classList)||[];f.indexOf("lf-anchor")>-1&&(v.removeChild(v.childNodes[i]),c--,i--)}},m.prototype.getSnapshot=function(v,u){var c=this;this.fileName=v||"logic-flow."+Date.now()+".png";var i=this.getSvgRootElement(this.lf);this.getCanvasData(i,u).then(function(s){var f=s.toDataURL("image/png").replace("image/png","image/octet-stream");c.triggerDownload(f)})},m.prototype.getSnapshotBase64=function(v){var u=this,c=this.getSvgRootElement(this.lf);return new Promise(function(i){u.getCanvasData(c,v).then(function(s){var f=s.toDataURL("image/png");i({data:f,width:s.width,height:s.height})})})},m.prototype.getSnapshotBlob=function(v){var u=this,c=this.getSvgRootElement(this.lf);return new Promise(function(i){u.getCanvasData(c,v).then(function(s){s.toBlob(function(f){i({data:f,width:s.width,height:s.height})},"image/png")})})},m.prototype.getClassRules=function(){var v="";if(this.useGlobalRules)for(var u=document.styleSheets,c=0;c<u.length;c++)for(var i=u[c],s=0;s<i.cssRules.length;s++)v+=i.cssRules[s].cssText;return this.customCssRules&&(v+=this.customCssRules),v},m.prototype.getCanvasData=function(v,u){var c=this,i=v.cloneNode(!0),s=i.lastChild,f=s.childNodes&&s.childNodes.length;if(f)for(var y=0;y<f;y++){var b=s.childNodes[y],E=b.classList&&Array.from(b.classList);if(E&&E.indexOf("lf-base")<0)s.removeChild(s.childNodes[y]),f--,y--;else{var S=s.childNodes[y];S&&S.childNodes.forEach(function(z){var j=z;c.removeAnchor(j.firstChild)})}}i.lastChild.style.transform="matrix(1, 0, 0, 1, "+(-this.offsetX+10)+", "+(-this.offsetY+10)+")";var M=window.devicePixelRatio||1,T=document.createElement("canvas"),A=this.lf.graphModel.rootEl.querySelector(".lf-base"),I=A.getBoundingClientRect(),_=this.lf.graphModel,L=_.transformModel,H=L.SCALE_X,U=L.SCALE_Y,X=Math.ceil(I.width/H),se=Math.ceil(I.height/U);T.style.width=X+"px",T.style.height=se+"px",T.width=X*M+80,T.height=se*M+80;var ae=T.getContext("2d");ae.clearRect(0,0,T.width,T.height),ae.scale(M,M),u?(ae.fillStyle=u,ae.fillRect(0,0,X*M+80,se*M+80)):ae.clearRect(0,0,X,se);var q=new Image,J=document.createElement("style");J.innerHTML=this.getClassRules();var ie=document.createElement("foreignObject");return ie.appendChild(J),i.appendChild(ie),new Promise(function(z){q.onload=function(){ae.drawImage(q,0,0),z(T)};var j="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(i),N=j.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");q.src=N})},m.pluginName="snapshot",m}(),f2=new an([32,32,1]);function jm(){return f2.next()}var cr=function(){};cr.ObjTree=function(){return this};cr.ObjTree.VERSION="0.23";cr.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  68. `;cr.ObjTree.prototype.attr_prefix="-";cr.ObjTree.prototype.parseXML=function(m){var v;if(window.DOMParser){var u=new DOMParser,c=u.parseFromString(m,"application/xml");if(!c)return;v=c.documentElement}else window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(m),v=u.documentElement);if(!!v)return this.parseDOM(v)};cr.ObjTree.prototype.parseHTTP=function(m,v,u){var c={};for(var i in v)c[i]=v[i];if(c.method||(typeof c.postBody=="undefined"&&typeof c.postbody=="undefined"&&typeof c.parameters=="undefined"?c.method="get":c.method="post"),u){c.asynchronous=!0;var s=this,f=u,y=c.onComplete;c.onComplete=function(S){var M;S&&S.responseXML&&S.responseXML.documentElement&&(M=s.parseDOM(S.responseXML.documentElement)),f(M,S),y&&y(S)}}else c.asynchronous=!1;var b;if(typeof HTTP!="undefined"&&HTTP.Request){c.uri=m;var E=new HTTP.Request(c);E&&(b=E.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var E=new Ajax.Request(m,c);E&&(b=E.transport)}if(u)return b;if(b&&b.responseXML&&b.responseXML.documentElement)return this.parseDOM(b.responseXML.documentElement)};cr.ObjTree.prototype.parseDOM=function(m){if(!!m){if(this.__force_array={},this.force_array)for(var v=0;v<this.force_array.length;v++)this.__force_array[this.force_array[v]]=1;var u=this.parseElement(m);if(this.__force_array[m.nodeName]&&(u=[u]),m.nodeType!=11){var c={};c[m.nodeName]=u,u=c}return u}};cr.ObjTree.prototype.parseElement=function(m){if(m.nodeType!=7){if(m.nodeType==3||m.nodeType==4){var v=m.nodeValue.match(/[^\x00-\x20]/);return v==null?void 0:m.nodeValue}var u,c={};if(m.attributes&&m.attributes.length){u={};for(var i=0;i<m.attributes.length;i++){var s=m.attributes[i].nodeName;if(typeof s=="string"){var f=m.attributes[i].nodeValue;!f||(s=this.attr_prefix+s,typeof c[s]=="undefined"&&(c[s]=0),c[s]++,this.addNode(u,s,c[s],f))}}}if(m.childNodes&&m.childNodes.length){var y=!0;u&&(y=!1);for(var i=0;i<m.childNodes.length&&y;i++){var b=m.childNodes[i].nodeType;b==3||b==4||(y=!1)}if(y){u||(u="");for(var i=0;i<m.childNodes.length;i++)u+=m.childNodes[i].nodeValue}else{u||(u={});for(var i=0;i<m.childNodes.length;i++){var s=m.childNodes[i].nodeName;if(typeof s=="string"){var f=this.parseElement(m.childNodes[i]);!f||(typeof c[s]=="undefined"&&(c[s]=0),c[s]++,this.addNode(u,s,c[s],f))}}}}return u}};cr.ObjTree.prototype.addNode=function(m,v,u,c){this.__force_array[v]?(u==1&&(m[v]=[]),m[v][m[v].length]=c):u==1?m[v]=c:u==2?m[v]=[m[v],c]:m[v][m[v].length]=c};cr.ObjTree.prototype.writeXML=function(m){var v=this.hash_to_xml(null,m);return this.xmlDecl+v};cr.ObjTree.prototype.hash_to_xml=function(m,v){var u=[],c=[];for(var i in v)if(!!v.hasOwnProperty(i)){var s=v[i];i.charAt(0)!=this.attr_prefix?typeof s=="undefined"||s==null?u[u.length]="<"+i+" />":typeof s=="object"&&s.constructor==Array?u[u.length]=this.array_to_xml(i,s):typeof s=="object"?u[u.length]=this.hash_to_xml(i,s):u[u.length]=this.scalar_to_xml(i,s):c[c.length]=" "+i.substring(1)+'="'+this.xml_escape(s)+'"'}var f=c.join(""),y=u.join("");return typeof m=="undefined"||m==null||(u.length>0?y.match(/\n/)?y="<"+m+f+`>
  69. `+y+"</"+m+`>
  70. `:y="<"+m+f+">"+y+"</"+m+`>
  71. `:y="<"+m+f+` />
  72. `),y};cr.ObjTree.prototype.array_to_xml=function(m,v){for(var u=[],c=0;c<v.length;c++){var i=v[c];typeof i=="undefined"||i==null?u[u.length]="<"+m+" />":typeof i=="object"&&i.constructor==Array?u[u.length]=this.array_to_xml(m,i):typeof i=="object"?u[u.length]=this.hash_to_xml(m,i):u[u.length]=this.scalar_to_xml(m,i)}return u.join("")};cr.ObjTree.prototype.scalar_to_xml=function(m,v){return m=="#text"?this.xml_escape(v):"<"+m+">"+this.xml_escape(v)+"</"+m+`>
  73. `};cr.ObjTree.prototype.xml_escape=function(m){return m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var Ql=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s},un;(function(m){m.START="bpmn:startEvent",m.END="bpmn:endEvent",m.GATEWAY="bpmn:exclusiveGateway",m.USER="bpmn:userTask",m.SYSTEM="bpmn:serviceTask",m.FLOW="bpmn:sequenceFlow"})(un||(un={}));var sb=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"];function id(m){var v={};return Object.entries(m).forEach(function(u){var c=Ql(u,2),i=c[0],s=c[1];typeof s!="object"?i.indexOf("-")===0?v[i]=s:v["-"+i]=s:v[i]=id(s)}),v}function sd(m){var v={};return Object.entries(m).forEach(function(u){var c=Ql(u,2),i=c[0],s=c[1];typeof s=="string"?i.indexOf("-")===0?v[i.substr(1)]=s:v[i]=s:typeof s=="object"?v[i]=sd(s):v[i]=s}),v}function c2(m,v){var u=new Map;v.nodes.forEach(function(i){var s,f={"-id":i.id};if(!((s=i.text)===null||s===void 0)&&s.value&&(f["-name"]=i.text.value),i.properties){var y=id(i.properties);Object.assign(f,y)}u.set(i.id,f),m[i.type]?Array.isArray(m[i.type])?m[i.type].push(f):m[i.type]=[m[i.type],f]:m[i.type]=f});var c=v.edges.map(function(i){var s,f,y=u.get(i.targetNodeId);y["bpmn:incoming"]?Array.isArray(y["bpmn:incoming"])?y["bpmn:incoming"].push(i.id):y["bpmn:incoming"]=[y["bpmn:incoming"],i.id]:y["bpmn:incoming"]=i.id;var b=u.get(i.sourceNodeId);b["bpmn:outgoing"]?Array.isArray(b["bpmn:outgoing"])?b["bpmn:outgoing"].push(i.id):b["bpmn:outgoing"]=[b["bpmn:outgoing"],i.id]:b["bpmn:outgoing"]=i.id;var E={"-id":i.id,"-sourceRef":i.sourceNodeId,"-targetRef":i.targetNodeId};if(!((s=i.text)===null||s===void 0)&&s.value&&(E["-name"]=(f=i.text)===null||f===void 0?void 0:f.value),i.properties){var S=id(i.properties);Object.assign(E,S)}return E});m[un.FLOW]=c}function d2(m,v){m["bpmndi:BPMNEdge"]=v.edges.map(function(u){var c,i=u.id,s=u.pointsList.map(function(y){var b=y.x,E=y.y;return{"-x":b,"-y":E}}),f={"-id":i+"_di","-bpmnElement":i,"di:waypoint":s};return!((c=u.text)===null||c===void 0)&&c.value&&(f["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),f}),m["bpmndi:BPMNShape"]=v.nodes.map(function(u){var c,i=u.id,s=100,f=80,y=u.x,b=u.y,E=fo.shapeConfigMap.get(u.type);E&&(s=E.width,f=E.height),y-=s/2,b-=f/2;var S={"-id":i+"_di","-bpmnElement":i,"dc:Bounds":{"-x":y,"-y":b,"-width":s,"-height":f}};return!((c=u.text)===null||c===void 0)&&c.value&&(S["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),S})}function p2(m){var v=[],u=[],c=m["bpmn:definitions"];if(c){var i=c["bpmn:process"];Object.keys(i).forEach(function(s){if(s.indexOf("bpmn:")===0){var f=i[s];if(s===un.FLOW){var y=c["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];u=v2(f,y)}else{var b=c["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];v=v.concat(h2(f,b,s))}}})}return{nodes:v,edges:u}}function h2(m,v,u){var c=[];if(Array.isArray(m))m.forEach(function(f){var y;Array.isArray(v)?y=v.find(function(E){return E["-bpmnElement"]===f["-id"]}):y=v;var b=Cm(y,u,f);c.push(b)});else{var i=void 0;Array.isArray(v)?i=v.find(function(f){return f["-bpmnElement"]===m["-id"]}):i=v;var s=Cm(i,u,m);c.push(s)}return c}function Cm(m,v,u){var c=Number(m["dc:Bounds"]["-x"]),i=Number(m["dc:Bounds"]["-y"]),s=u["-name"],f=fo.shapeConfigMap.get(v);f&&(c+=f.width/2,i+=f.height/2);var y;Object.entries(u).forEach(function(M){var T=Ql(M,2),A=T[0],I=T[1];sb.indexOf(A)===-1&&(y||(y={}),y[A]=I)}),y&&(y=sd(y));var b;if(s&&(b={x:c,y:i,value:s},m["bpmndi:BPMNLabel"]&&m["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=m["bpmndi:BPMNLabel"]["dc:Bounds"];b.x=Number(E["-x"])+Number(E["-width"])/2,b.y=Number(E["-y"])+Number(E["-height"])/2}var S={id:m["-bpmnElement"],type:v,x:c,y:i,properties:y};return b&&(S.text=b),S}function v2(m,v){var u=[];if(Array.isArray(m))m.forEach(function(i){var s;Array.isArray(v)?s=v.find(function(f){return f["-bpmnElement"]===i["-id"]}):s=v,u.push(Rm(s,i))});else{var c=void 0;Array.isArray(v)?c=v.find(function(i){return i["-bpmnElement"]===m["-id"]}):c=v,u.push(Rm(c,m))}return u}function Rm(m,v){var u,c=v["-name"];if(c){var i=m["bpmndi:BPMNLabel"]["dc:Bounds"],s=0;c.split(`
  74. `).forEach(function(b){s<b.length&&(s=b.length)}),u={value:c,x:Number(i["-x"])+s*10/2,y:Number(i["-y"])+7}}var f;Object.entries(v).forEach(function(b){var E=Ql(b,2),S=E[0],M=E[1];sb.indexOf(S)===-1&&(f||(f={}),f[S]=M)}),f&&(f=sd(f));var y={id:v["-id"],type:un.FLOW,pointsList:m["di:waypoint"].map(function(b){return{x:Number(b["-x"]),y:Number(b["-y"])}}),sourceNodeId:v["-sourceRef"],targetNodeId:v["-targetRef"],properties:f};return u&&(y.text=u),y}var fo={pluginName:"bpmn-adapter",install:function(m){m.adapterIn=this.adapterIn,m.adapterOut=this.adapterOut},shapeConfigMap:new Map,setCustomShape:function(m,v){this.shapeConfigMap.set(m,v)},adapterOut:function(m){var v={"-id":"Process_"+jm(),"-isExecutable":"false"};c2(v,m);var u={"-id":"BPMNPlane_1","-bpmnElement":v["-id"]};d2(u,m);var c={"bpmn:definitions":{"-id":"Definitions_"+jm(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://bpmn.io/schema/bpmn","-exporter":"bpmn-js (https://demo.bpmn.io)","-exporterVersion":"7.3.0","bpmn:process":v,"bpmndi:BPMNDiagram":{"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":u}}};return c},adapterIn:function(m){if(m)return p2(m)}};fo.shapeConfigMap.set(un.START,{width:Mm.width,height:Mm.height});fo.shapeConfigMap.set(un.END,{width:wm.width,height:wm.height});fo.shapeConfigMap.set(un.GATEWAY,{width:Am.width,height:Am.height});fo.shapeConfigMap.set(un.SYSTEM,{width:Nm.width,height:Nm.height});fo.shapeConfigMap.set(un.USER,{width:Dm.width,height:Dm.height});var Im=globalThis&&globalThis.__assign||function(){return Im=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Im.apply(this,arguments)};globalThis&&globalThis.__read;var _m;(function(m){m.HORIZONTAL="horizontal",m.VERTICAL="vertical"})(_m||(_m={}));var y2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};globalThis&&globalThis.__spread;var g2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};globalThis&&globalThis.__spread;var m2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s},b2=globalThis&&globalThis.__spread||function(){for(var m=[],v=0;v<arguments.length;v++)m=m.concat(m2(arguments[v]));return m},Ai="lf:defaultNodeMenu",Ni="lf:defaultEdgeMenu",Di="lf:defaultGraphMenu",Bm="lf:defaultSelectionMenu",O2=function(){function m(v){var u=this,c=v.lf;this.__menuDOM=document.createElement("ul"),this.lf=c,this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(i){u.setMenuConfig(i)},this.lf.addMenuConfig=function(i){u.addMenuConfig(i)},this.lf.setMenuByType=function(i){u.setMenuByType(i)}}return m.prototype.init=function(){var v=this,u=[{text:"\u5220\u9664",callback:function(s){v.lf.deleteNode(s.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(s){v.lf.graphModel.editText(s.id)}},{text:"\u590D\u5236",callback:function(s){v.lf.cloneNode(s.id)}}];this.menuTypeMap.set(Ai,u);var c=[{text:"\u5220\u9664",callback:function(s){v.lf.deleteEdge(s.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(s){v.lf.graphModel.editText(s.id)}}];this.menuTypeMap.set(Ni,c),this.menuTypeMap.set(Di,[]);var i=[{text:"\u5220\u9664",callback:function(s){v.lf.clearSelectElements(),s.edges.forEach(function(f){return v.lf.deleteEdge(f.id)}),s.nodes.forEach(function(f){return v.lf.deleteNode(f.id)})}}];this.menuTypeMap.set(Bm,i)},m.prototype.render=function(v,u){var c=this;this.__container=u,this.__currentData=null,this.__menuDOM.className="lf-menu",u.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(i){i.stopPropagation();for(var s=i.target;Array.from(s.classList).indexOf("lf-menu-item")===-1&&Array.from(s.classList).indexOf("lf-menu")===-1;)s=s.parentElement;Array.from(s.classList).indexOf("lf-menu-item")>-1?(s.onclickCallback(c.__currentData),c.__menuDOM.style.display="none",c.__currentData=null):console.warn("\u70B9\u51FB\u533A\u57DF\u4E0D\u5728\u83DC\u5355\u9879\u5185\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801\uFF01")},!0),this.lf.on("node:contextmenu",function(i){var s=i.data,f=i.position,y=f.domOverlayPosition,b=y.x,E=y.y,S=s.id,M=c.lf.graphModel.getNodeModelById(S),T=[],A=c.menuTypeMap.get(M.type);M&&M.menu&&Array.isArray(M.menu)?T=M.menu:A?T=A:T=c.menuTypeMap.get(Ai),c.__currentData=s,c.showMenu(b,E,T)}),this.lf.on("edge:contextmenu",function(i){var s=i.data,f=i.position,y=f.domOverlayPosition,b=y.x,E=y.y,S=s.id,M=c.lf.graphModel.getEdgeModelById(S),T=[],A=c.menuTypeMap.get(M.type);M&&M.menu&&Array.isArray(M.menu)?T=M.menu:A?T=A:T=c.menuTypeMap.get(Ni),c.__currentData=s,c.showMenu(b,E,T)}),this.lf.on("blank:contextmenu",function(i){var s=i.position,f=c.menuTypeMap.get(Di),y=s.domOverlayPosition,b=y.x,E=y.y;c.showMenu(b,E,f)}),this.lf.on("selection:contextmenu",function(i){var s=i.data,f=i.position,y=c.menuTypeMap.get(Bm),b=f.domOverlayPosition,E=b.x,S=b.y;c.__currentData=s,c.showMenu(E,S,y)}),this.lf.on("node:mousedown",function(){c.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){c.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){c.__menuDOM.style.display="none"})},m.prototype.destroy=function(){var v;(v=this===null||this===void 0?void 0:this.__container)===null||v===void 0||v.removeChild(this.__menuDOM),this.__menuDOM=null},m.prototype.showMenu=function(v,u,c){if(!(!c||!c.length)){var i=this.__menuDOM;i.innerHTML="",i.append.apply(i,b2(this.__getMenuDom(c))),i.children.length&&(i.style.display="block",i.style.top=u+"px",i.style.left=v+"px")}},m.prototype.setMenuByType=function(v){!v.type||!v.menu||this.menuTypeMap.set(v.type,v.menu)},m.prototype.__getMenuDom=function(v){var u=[];return v&&v.length>0&&v.forEach(function(c){var i=document.createElement("li");if(c.className?i.className="lf-menu-item "+c.className:i.className="lf-menu-item",c.icon===!0){var s=document.createElement("span");s.className="lf-menu-item-icon",i.appendChild(s)}var f=document.createElement("span");f.className="lf-menu-item-text",c.text&&(f.innerText=c.text),i.appendChild(f),i.onclickCallback=c.callback,u.push(i)}),u},m.prototype.setMenuConfig=function(v){!v||(v.nodeMenu!==void 0&&this.menuTypeMap.set(Ai,v.nodeMenu?v.nodeMenu:[]),v.edgeMenu!==void 0&&this.menuTypeMap.set(Ni,v.edgeMenu?v.edgeMenu:[]),v.graphMenu!==void 0&&this.menuTypeMap.set(Di,v.graphMenu?v.graphMenu:[]))},m.prototype.addMenuConfig=function(v){if(!!v){if(Array.isArray(v.nodeMenu)){var u=this.menuTypeMap.get(Ai);this.menuTypeMap.set(Ai,u.concat(v.nodeMenu))}if(Array.isArray(v.edgeMenu)){var u=this.menuTypeMap.get(Ni);this.menuTypeMap.set(Ni,u.concat(v.edgeMenu))}if(Array.isArray(v.graphMenu)){var u=this.menuTypeMap.get(Di);this.menuTypeMap.set(Di,u.concat(v.graphMenu))}}},m.prototype.changeMenuItem=function(v,u){if(v==="add")this.addMenuConfig(u);else if(v==="reset")this.setMenuConfig(u);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},m.pluginName="menu",m}();globalThis&&globalThis.__read;globalThis&&globalThis.__values;var fb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),ji=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};(function(m){fb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getEdge=function(){for(var u=this.props.model.getEdgeStyle(),c=u.strokeWidth,i=u.stroke,s=u.strokeDashArray,f=this.props.model.points,y=f.split(" ").map(function(P){return P.split(",").map(function(D){return Number(D)})}),b=ji(y[0],2),E=b[0],S=b[1],M="M"+E+" "+S,T=5,A=1;A<y.length-1;A++){var I=ji(y[A-1],2),_=I[0],L=I[1],H=ji(y[A],2),U=H[0],X=H[1],se=ji(y[A+1],2),ae=se[0],q=se[1];if(U===_&&X!==L){var J=X>L?X-T:X+T;M=M+" L "+U+" "+J}if(X===L&&U!==_){var ie=U>_?U-T:U+T;M=M+" L "+ie+" "+X}if(M=M+" Q "+U+" "+X,U===ae&&X!==q){var J=X>q?X-T:X+T;M=M+" "+U+" "+J}if(X===q&&U!==ae){var ie=U>ae?U-T:U+T;M=M+" "+ie+" "+X}}var z=ji(y[y.length-1],2),j=z[0],N=z[1];return M=M+" L "+j+" "+N,Ke.exports.h("path",{d:M,strokeWidth:c,stroke:i,fill:"none",strokeDashArray:s})},v.extendKey="curvedEdge",v})(Ke.exports.PolylineEdge);(function(m){fb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v})(Ke.exports.PolylineEdgeModel);var fd,Ht,cb,Ii,Lm,db={},pb=[],E2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Gn(m,v){for(var u in v)m[u]=v[u];return m}function hb(m){var v=m.parentNode;v&&v.removeChild(m)}function _i(m,v,u){var c,i,s,f={};for(s in v)s=="key"?c=v[s]:s=="ref"?i=v[s]:f[s]=v[s];if(arguments.length>2&&(f.children=arguments.length>3?fd.call(arguments,2):u),typeof m=="function"&&m.defaultProps!=null)for(s in m.defaultProps)f[s]===void 0&&(f[s]=m.defaultProps[s]);return kl(m,f,c,i,null)}function kl(m,v,u,c,i){var s={type:m,props:v,key:u,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++cb:i};return i==null&&Ht.vnode!=null&&Ht.vnode(s),s}function cd(m){return m.children}function Jo(m,v){this.props=m,this.context=v}function Qo(m,v){if(v==null)return m.__?Qo(m.__,m.__.__k.indexOf(m)+1):null;for(var u;v<m.__k.length;v++)if((u=m.__k[v])!=null&&u.__e!=null)return u.__e;return typeof m.type=="function"?Qo(m):null}function vb(m){var v,u;if((m=m.__)!=null&&m.__c!=null){for(m.__e=m.__c.base=null,v=0;v<m.__k.length;v++)if((u=m.__k[v])!=null&&u.__e!=null){m.__e=m.__c.base=u.__e;break}return vb(m)}}function zm(m){(!m.__d&&(m.__d=!0)&&Ii.push(m)&&!Yl.__r++||Lm!==Ht.debounceRendering)&&((Lm=Ht.debounceRendering)||setTimeout)(Yl)}function Yl(){for(var m;Yl.__r=Ii.length;)m=Ii.sort(function(v,u){return v.__v.__b-u.__v.__b}),Ii=[],m.some(function(v){var u,c,i,s,f,y;v.__d&&(f=(s=(u=v).__v).__e,(y=u.__P)&&(c=[],(i=Gn({},s)).__v=s.__v+1,bb(y,s,i,u.__n,y.ownerSVGElement!==void 0,s.__h!=null?[f]:null,c,f==null?Qo(s):f,s.__h),S2(c,s),s.__e!=f&&vb(s)))})}function yb(m,v,u,c,i,s,f,y,b,E){var S,M,T,A,I,_,L,H=c&&c.__k||pb,U=H.length;for(u.__k=[],S=0;S<v.length;S++)if((A=u.__k[S]=(A=v[S])==null||typeof A=="boolean"?null:typeof A=="string"||typeof A=="number"||typeof A=="bigint"?kl(null,A,null,null,A):Array.isArray(A)?kl(cd,{children:A},null,null,null):A.__b>0?kl(A.type,A.props,A.key,null,A.__v):A)!=null){if(A.__=u,A.__b=u.__b+1,(T=H[S])===null||T&&A.key==T.key&&A.type===T.type)H[S]=void 0;else for(M=0;M<U;M++){if((T=H[M])&&A.key==T.key&&A.type===T.type){H[M]=void 0;break}T=null}bb(m,A,T=T||db,i,s,f,y,b,E),I=A.__e,(M=A.ref)&&T.ref!=M&&(L||(L=[]),T.ref&&L.push(T.ref,null,A),L.push(M,A.__c||I,A)),I!=null?(_==null&&(_=I),typeof A.type=="function"&&A.__k===T.__k?A.__d=b=gb(A,b,m):b=mb(m,A,T,H,I,b),typeof u.type=="function"&&(u.__d=b)):b&&T.__e==b&&b.parentNode!=m&&(b=Qo(T))}for(u.__e=_,S=U;S--;)H[S]!=null&&(typeof u.type=="function"&&H[S].__e!=null&&H[S].__e==u.__d&&(u.__d=Qo(c,S+1)),Eb(H[S],H[S]));if(L)for(S=0;S<L.length;S++)Ob(L[S],L[++S],L[++S])}function gb(m,v,u){for(var c,i=m.__k,s=0;i&&s<i.length;s++)(c=i[s])&&(c.__=m,v=typeof c.type=="function"?gb(c,v,u):mb(u,c,c,i,c.__e,v));return v}function mb(m,v,u,c,i,s){var f,y,b;if(v.__d!==void 0)f=v.__d,v.__d=void 0;else if(u==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==m)m.appendChild(i),f=null;else{for(y=s,b=0;(y=y.nextSibling)&&b<c.length;b+=2)if(y==i)break e;m.insertBefore(i,s),f=s}return f!==void 0?f:i.nextSibling}function x2(m,v,u,c,i){var s;for(s in u)s==="children"||s==="key"||s in v||Wl(m,s,null,u[s],c);for(s in v)i&&typeof v[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||u[s]===v[s]||Wl(m,s,v[s],u[s],c)}function Fm(m,v,u){v[0]==="-"?m.setProperty(v,u):m[v]=u==null?"":typeof u!="number"||E2.test(v)?u:u+"px"}function Wl(m,v,u,c,i){var s;e:if(v==="style")if(typeof u=="string")m.style.cssText=u;else{if(typeof c=="string"&&(m.style.cssText=c=""),c)for(v in c)u&&v in u||Fm(m.style,v,"");if(u)for(v in u)c&&u[v]===c[v]||Fm(m.style,v,u[v])}else if(v[0]==="o"&&v[1]==="n")s=v!==(v=v.replace(/Capture$/,"")),v=v.toLowerCase()in m?v.toLowerCase().slice(2):v.slice(2),m.l||(m.l={}),m.l[v+s]=u,u?c||m.addEventListener(v,s?Gm:Hm,s):m.removeEventListener(v,s?Gm:Hm,s);else if(v!=="dangerouslySetInnerHTML"){if(i)v=v.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(v!=="href"&&v!=="list"&&v!=="form"&&v!=="tabIndex"&&v!=="download"&&v in m)try{m[v]=u==null?"":u;break e}catch{}typeof u=="function"||(u!=null&&(u!==!1||v[0]==="a"&&v[1]==="r")?m.setAttribute(v,u):m.removeAttribute(v))}}function Hm(m){this.l[m.type+!1](Ht.event?Ht.event(m):m)}function Gm(m){this.l[m.type+!0](Ht.event?Ht.event(m):m)}function bb(m,v,u,c,i,s,f,y,b){var E,S,M,T,A,I,_,L,H,U,X,se,ae,q=v.type;if(v.constructor!==void 0)return null;u.__h!=null&&(b=u.__h,y=v.__e=u.__e,v.__h=null,s=[y]),(E=Ht.__b)&&E(v);try{e:if(typeof q=="function"){if(L=v.props,H=(E=q.contextType)&&c[E.__c],U=E?H?H.props.value:E.__:c,u.__c?_=(S=v.__c=u.__c).__=S.__E:("prototype"in q&&q.prototype.render?v.__c=S=new q(L,U):(v.__c=S=new Jo(L,U),S.constructor=q,S.render=T2),H&&H.sub(S),S.props=L,S.state||(S.state={}),S.context=U,S.__n=c,M=S.__d=!0,S.__h=[]),S.__s==null&&(S.__s=S.state),q.getDerivedStateFromProps!=null&&(S.__s==S.state&&(S.__s=Gn({},S.__s)),Gn(S.__s,q.getDerivedStateFromProps(L,S.__s))),T=S.props,A=S.state,M)q.getDerivedStateFromProps==null&&S.componentWillMount!=null&&S.componentWillMount(),S.componentDidMount!=null&&S.__h.push(S.componentDidMount);else{if(q.getDerivedStateFromProps==null&&L!==T&&S.componentWillReceiveProps!=null&&S.componentWillReceiveProps(L,U),!S.__e&&S.shouldComponentUpdate!=null&&S.shouldComponentUpdate(L,S.__s,U)===!1||v.__v===u.__v){S.props=L,S.state=S.__s,v.__v!==u.__v&&(S.__d=!1),S.__v=v,v.__e=u.__e,v.__k=u.__k,v.__k.forEach(function(J){J&&(J.__=v)}),S.__h.length&&f.push(S);break e}S.componentWillUpdate!=null&&S.componentWillUpdate(L,S.__s,U),S.componentDidUpdate!=null&&S.__h.push(function(){S.componentDidUpdate(T,A,I)})}if(S.context=U,S.props=L,S.__v=v,S.__P=m,X=Ht.__r,se=0,"prototype"in q&&q.prototype.render)S.state=S.__s,S.__d=!1,X&&X(v),E=S.render(S.props,S.state,S.context);else do S.__d=!1,X&&X(v),E=S.render(S.props,S.state,S.context),S.state=S.__s;while(S.__d&&++se<25);S.state=S.__s,S.getChildContext!=null&&(c=Gn(Gn({},c),S.getChildContext())),M||S.getSnapshotBeforeUpdate==null||(I=S.getSnapshotBeforeUpdate(T,A)),ae=E!=null&&E.type===cd&&E.key==null?E.props.children:E,yb(m,Array.isArray(ae)?ae:[ae],v,u,c,i,s,f,y,b),S.base=v.__e,v.__h=null,S.__h.length&&f.push(S),_&&(S.__E=S.__=null),S.__e=!1}else s==null&&v.__v===u.__v?(v.__k=u.__k,v.__e=u.__e):v.__e=P2(u.__e,v,u,c,i,s,f,b);(E=Ht.diffed)&&E(v)}catch(J){v.__v=null,(b||s!=null)&&(v.__e=y,v.__h=!!b,s[s.indexOf(y)]=null),Ht.__e(J,v,u)}}function S2(m,v){Ht.__c&&Ht.__c(v,m),m.some(function(u){try{m=u.__h,u.__h=[],m.some(function(c){c.call(u)})}catch(c){Ht.__e(c,u.__v)}})}function P2(m,v,u,c,i,s,f,y){var b,E,S,M=u.props,T=v.props,A=v.type,I=0;if(A==="svg"&&(i=!0),s!=null){for(;I<s.length;I++)if((b=s[I])&&"setAttribute"in b==!!A&&(A?b.localName===A:b.nodeType===3)){m=b,s[I]=null;break}}if(m==null){if(A===null)return document.createTextNode(T);m=i?document.createElementNS("http://www.w3.org/2000/svg",A):document.createElement(A,T.is&&T),s=null,y=!1}if(A===null)M===T||y&&m.data===T||(m.data=T);else{if(s=s&&fd.call(m.childNodes),E=(M=u.props||db).dangerouslySetInnerHTML,S=T.dangerouslySetInnerHTML,!y){if(s!=null)for(M={},I=0;I<m.attributes.length;I++)M[m.attributes[I].name]=m.attributes[I].value;(S||E)&&(S&&(E&&S.__html==E.__html||S.__html===m.innerHTML)||(m.innerHTML=S&&S.__html||""))}if(x2(m,T,M,i,y),S)v.__k=[];else if(I=v.props.children,yb(m,Array.isArray(I)?I:[I],v,u,c,i&&A!=="foreignObject",s,f,s?s[0]:u.__k&&Qo(u,0),y),s!=null)for(I=s.length;I--;)s[I]!=null&&hb(s[I]);y||("value"in T&&(I=T.value)!==void 0&&(I!==m.value||A==="progress"&&!I||A==="option"&&I!==M.value)&&Wl(m,"value",I,M.value,!1),"checked"in T&&(I=T.checked)!==void 0&&I!==m.checked&&Wl(m,"checked",I,M.checked,!1))}return m}function Ob(m,v,u){try{typeof m=="function"?m(v):m.current=v}catch(c){Ht.__e(c,u)}}function Eb(m,v,u){var c,i;if(Ht.unmount&&Ht.unmount(m),(c=m.ref)&&(c.current&&c.current!==m.__e||Ob(c,null,v)),(c=m.__c)!=null){if(c.componentWillUnmount)try{c.componentWillUnmount()}catch(s){Ht.__e(s,v)}c.base=c.__P=null}if(c=m.__k)for(i=0;i<c.length;i++)c[i]&&Eb(c[i],v,typeof m.type!="function");u||m.__e==null||hb(m.__e),m.__e=m.__d=void 0}function T2(m,v,u){return this.constructor(m,u)}fd=pb.slice,Ht={__e:function(m,v,u,c){for(var i,s,f;v=v.__;)if((i=v.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(m)),f=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(m,c||{}),f=i.__d),f)return i.__E=i}catch(y){m=y}throw m}},cb=0,Jo.prototype.setState=function(m,v){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gn({},this.state),typeof m=="function"&&(m=m(Gn({},u),this.props)),m&&Gn(u,m),m!=null&&this.__v&&(v&&this.__h.push(v),zm(this))},Jo.prototype.forceUpdate=function(m){this.__v&&(this.__e=!0,m&&this.__h.push(m),zm(this))},Jo.prototype.render=cd,Ii=[],Yl.__r=0;var Bi=globalThis&&globalThis.__assign||function(){return Bi=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Bi.apply(this,arguments)};function dd(m){var v=m.x,u=m.y,c=m.width,i=m.height,s=m.radius,f=m.className,y=v-c/2,b=u-i/2,E=Bi(Bi({width:10,height:10,cx:0,cy:0,rx:s||0,ry:s||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+f},m),{x:y,y:b});return Ke.exports.h("rect",Bi({},E))}dd.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var Zo;(function(m){m.NODE="node",m.CIRCLE_NODE="circle-node",m.POLYGON_NODE="polygon-node",m.RECT_NODE="rect-node",m.HTML_NODE="html-node",m.TEXT_NODE="text-node",m.ELLIPSE_NODE="ellipse-node",m.DIAMOND_NODE="diamond-node",m.EDGE="edge",m.LINE_EDGE="line-edge",m.POLYLINE_EDGE="polyline-edge",m.BEZIER_EDGE="bezier-edge",m.GRAPH="graph"})(Zo||(Zo={}));function $l(m){var v=m.x,u=m.y,c=m.width,i=m.height;return{minX:v-c/2,minY:u-i/2,maxX:v+c/2,maxY:u+i/2}}function km(m){var v=$l(m),u=m.radius,c=v.minX,i=v.minY,s=v.maxX,f=v.maxY;return[{x:c+u,y:i+u},{x:s-u,y:i+u},{x:s-u,y:f-u},{x:c+u,y:f-u}]}function $m(m){var v=m.point,u=m.beforeNode,c=m.afterNode,i=v.x,s=v.y,f={x:i,y:s},y=u.radius,b=$l(u),E=$l(c);if(i===b.minX){f.x=E.minX;var S=(s-u.y)/(u.height/2-y);S?f.y=c.y+(c.height/2-y)*S:f.y=c.y}else if(i===b.maxX){f.x=E.maxX;var S=(s-u.y)/(u.height/2-y);S?f.y=c.y+(c.height/2-y)*S:f.y=c.y}else if(s===b.minY){f.y=E.minY;var S=(i-u.x)/(u.width/2-y);S?f.x=c.x+(c.width/2-y)*S:f.x=c.x}else if(s===b.maxY){f.y=E.maxY;var S=(i-u.x)/(u.width/2-y);S?f.x=c.x+(c.width/2-y)*S:f.x=c.x}else{var M=km(u),T=km(c),A=$l(u),I=A.minX,_=A.minY,L=A.maxX,H=A.maxY,U=-1;if(i-I<y&&s-_<y?U=0:L-i<y&&s-_<y?U=1:L-i<y&&H-s<y?U=2:i-I<y&&_-s<y&&(U=3),U>-1){var X=Math.atan2(s-M[U].y,i-M[U].x);f.x=T[U].x+y*Math.cos(X),f.y=T[U].y+y*Math.sin(X)}}return f}function Um(m){var v=m.point,u=m.beforeNode,c=m.afterNode,i=c.rx,s=c.ry,f=v,y=(v.y-u.y)/(v.x-u.x),b=i,E=s,S,M;return y>=1/0?(S=0,M=E):y<=-1/0?(S=0,M=-E):v.x-u.x>0?(S=b*E/Math.sqrt(E*E+b*b*y*y),M=b*E*y/Math.sqrt(E*E+b*b*y*y)):(S=-(b*E)/Math.sqrt(E*E+b*b*y*y),M=-(b*E*y)/Math.sqrt(E*E+b*b*y*y)),f={x:S+c.x,y:M+c.y},f}function Xm(m){var v=m.point,u=m.beforeNode,c=m.afterNode,i=v,s,f,y=v.x-u.x,b=v.y-u.y,E=u.rx,S=u.ry,M=Math.sqrt((E-Math.abs(y))*(E-Math.abs(y))+b*b)/Math.sqrt(E*E+S*S),T=c.rx,A=c.ry,I=Math.sqrt((T*T+A*A)*M*M*(T*T/(T*T+A*A))),_=I*(A/T);return y>=0?s=T-I:s=I-T,b>0?f=_:f=-_,i={x:s+c.x,y:f+c.y},i}var M2=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),uo=globalThis&&globalThis.__assign||function(){return uo=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},uo.apply(this,arguments)},w2=Ke.exports.LogicFlowUtil.StepDrag,A2=function(m){M2(v,m);function v(u){var c=m.call(this)||this;c.updatePosition=function(f){var y=f.deltaX,b=f.deltaY,E=c.nodeModel,S=E.x,M=E.y;c.nodeModel.x=S+y/2,c.nodeModel.y=M+b/2,c.nodeModel.moveText(y/2,b/2)},c.getResize=function(f){var y=f.index,b=f.deltaX,E=f.deltaY,S=f.width,M=f.height,T=f.pct,A=T===void 0?1:T,I={width:S,height:M};switch(y){case 0:I.width=S-b*A,I.height=M-E*A;break;case 1:I.width=S+b*A,I.height=M-E*A;break;case 2:I.width=S+b,I.height=M+E*A;break;case 3:I.width=S-b*A,I.height=M+E*A;break}return I},c.updateRect=function(f){var y=f.deltaX,b=f.deltaY,E=c.nodeModel,S=E.id,M=E.x,T=E.y,A=E.width,I=E.height,_=E.radius,L=c.index,H=c.getResize({index:L,deltaX:y,deltaY:b,width:A,height:I,pct:1}),U=c.nodeModel,X=U.minWidth,se=U.minHeight,ae=U.maxWidth,q=U.maxHeight;if(H.width<X||H.width>ae||H.height<se||H.height>q){c.dragHandler.cancelDrag();return}c.updatePosition({deltaX:y,deltaY:b}),c.nodeModel.width=H.width,c.nodeModel.height=H.height,c.nodeModel.setProperties({nodeSize:{width:H.width,height:H.height}});var J=c.getNodeEdges(S),ie={x:M,y:T,width:A,height:I,radius:_},z={x:c.nodeModel.x,y:c.nodeModel.y,width:c.nodeModel.width,height:c.nodeModel.height,radius:_},j={point:"",beforeNode:ie,afterNode:z},N;J.sourceEdges.forEach(function(P){j.point=P.startPoint,N=$m(j),P.updateStartPoint(N)}),J.targetEdges.forEach(function(P){j.point=P.endPoint,N=$m(j),P.updateEndPoint(N)}),c.eventEmit({beforeNode:ie,afterNode:z})},c.updateEllipse=function(f){var y=f.deltaX,b=f.deltaY,E=c.nodeModel,S=E.id,M=E.rx,T=E.ry,A=E.x,I=E.y,_=c.index,L=M,H=T,U=c.getResize({index:_,deltaX:y,deltaY:b,width:L,height:H,pct:1/2}),X=c.nodeModel,se=X.minWidth,ae=X.minHeight,q=X.maxWidth,J=X.maxHeight;if(U.width<se/2||U.width>q/2||U.height<ae/2||U.height>J/2){c.dragHandler.cancelDrag();return}c.updatePosition({deltaX:y,deltaY:b}),c.nodeModel.rx=c.nodeModel.rx+y/2,c.nodeModel.ry=c.nodeModel.ry+b/2,c.nodeModel.setProperties({nodeSize:{rx:U.width,ry:U.height}});var ie=c.getNodeEdges(S),z={x:A,y:I},j={rx:U.width,ry:U.height,x:c.nodeModel.x,y:c.nodeModel.y},N={point:{},beforeNode:z,afterNode:j},P;ie.sourceEdges.forEach(function(D){N.point=D.startPoint,P=Um(N),D.updateStartPoint(P)}),ie.targetEdges.forEach(function(D){N.point=D.endPoint,P=Um(N),D.updateEndPoint(P)}),c.eventEmit({beforeNode:uo(uo({},z),{rx:M,ry:T}),afterNode:j})},c.updateDiamond=function(f){var y=f.deltaX,b=f.deltaY,E=c.nodeModel,S=E.id,M=E.rx,T=E.ry,A=E.x,I=E.y,_=c.index,L=M,H=T,U=c.getResize({index:_,deltaX:y,deltaY:b,width:L,height:H,pct:1/2}),X=c.nodeModel,se=X.minWidth,ae=X.minHeight,q=X.maxWidth,J=X.maxHeight;if(U.width<se/2||U.width>q/2||U.height<ae/2||U.height>J/2){c.dragHandler.cancelDrag();return}c.updatePosition({deltaX:y,deltaY:b}),c.nodeModel.rx=c.nodeModel.rx+y/2,c.nodeModel.ry=c.nodeModel.ry+b/2,c.nodeModel.setProperties({nodeSize:{rx:U.width,ry:U.height}});var ie={x:A,y:I,rx:M,ry:T},z={rx:U.width,ry:U.height,x:c.nodeModel.x,y:c.nodeModel.y},j={point:{},beforeNode:ie,afterNode:z},N,P=c.getNodeEdges(S);P.sourceEdges.forEach(function(D){j.point=D.startPoint,N=Xm(j),D.updateStartPoint(N)}),P.targetEdges.forEach(function(D){j.point=D.endPoint,N=Xm(j),D.updateEndPoint(N)}),c.eventEmit({beforeNode:ie,afterNode:z})},c.eventEmit=function(f){var y=f.beforeNode,b=f.afterNode,E=c.nodeModel,S=E.id,M=E.modelType,T=E.type,A=uo({id:S,modelType:M,type:T},y),I=uo({id:S,modelType:M,type:T},b);c.graphModel.eventCenter.emit("node:resize",{oldNodeSize:A,newNodeSize:I})},c.onDraging=function(f){var y=f.deltaX,b=f.deltaY,E=c.nodeModel.modelType;E===Zo.RECT_NODE||E===Zo.HTML_NODE?c.updateRect({deltaX:y,deltaY:b}):E===Zo.ELLIPSE_NODE?c.updateEllipse({deltaX:y,deltaY:b}):E===Zo.DIAMOND_NODE&&c.updateDiamond({deltaX:y,deltaY:b})},c.index=u.index,c.nodeModel=u.model,c.graphModel=u.graphModel;var i=c.graphModel.gridSize,s=2;return i>1&&(s=2*i),c.nodeModel.gridSize&&(s=2*c.nodeModel.gridSize),c.state={},c.dragHandler=new w2({onDraging:c.onDraging,step:s}),c}return v.prototype.getNodeEdges=function(u){for(var c=this.graphModel,i=c.edges,s=[],f=[],y=0;y<i.length;y++){var b=i[y];b.sourceNodeId===u?s.push(b):i[y].targetNodeId===u&&f.push(b)}return{sourceEdges:s,targetEdges:f}},v.prototype.render=function(){var u=this.props,c=u.x,i=u.y,s=u.index,f=u.model,y=f.getControlPointStyle();return _i("g",{className:"lf-resize-control-"+s},_i(dd,uo({className:"lf-node-control"},{x:c,y:i},y,{onMouseDown:this.dragHandler.handleMouseDown})))},v}(Jo),N2=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),Kl=globalThis&&globalThis.__assign||function(){return Kl=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Kl.apply(this,arguments)},ql=function(m){N2(v,m);function v(){var u=m.call(this)||this;return u.state={},u}return v.prototype.getResizeControl=function(){var u=this.props,c=u.model,i=u.graphModel,s=c.x,f=c.y,y=c.width,b=c.height,E={minX:s-y/2,minY:f-b/2,maxX:s+y/2,maxY:f+b/2},S=E.minX,M=E.minY,T=E.maxX,A=E.maxY,I=[{x:S,y:M},{x:T,y:M},{x:T,y:A},{x:S,y:A}];return I.map(function(_,L){return _i(A2,Kl({index:L},_,{model:c,graphModel:i}))})},v.prototype.getGroupSolid=function(){var u=this.props.model,c=u.x,i=u.y,s=u.width,f=u.height,y=u.getResizeOutlineStyle();return _i(dd,Kl({fill:"none"},y,{x:c,y:i,width:s,height:f}))},v.prototype.render=function(){return _i("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},v}(Jo),xb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),D2=function(m){xb(v,m);function v(u,c){var i=m.call(this,u,c)||this,s=i.properties.nodeSize;return s&&(i.width=s.width,i.height=s.height),i}return v.prototype.initNodeData=function(u){m.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},v.prototype.getOutlineStyle=function(){var u=m.prototype.getOutlineStyle.call(this);return u.stroke="none",u.hover&&(u.hover.stroke="none"),u},v.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},v.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},v.prototype.resize=function(u,c){console.log(u,c)},v}(Ke.exports.RectNodeModel),j2=function(m){xb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getControlGroup=function(){var u=this.props,c=u.model,i=u.graphModel;return Ke.exports.h(ql,{model:c,graphModel:i})},v.prototype.getResizeShape=function(){return m.prototype.getShape.call(this)},v.prototype.getShape=function(){var u=this.props.model.isSelected;return Ke.exports.h("g",null,this.getResizeShape(),u?this.getControlGroup():"")},v}(Ke.exports.RectNode),Sb={type:"rect",view:j2,model:D2},Pb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}();(function(m){Pb(v,m);function v(u,c){var i=m.call(this,u,c)||this,s=i.properties.nodeSize;return s&&(i.rx=s.rx,i.ry=s.ry),i}return v.prototype.initNodeData=function(u){m.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},v.prototype.getOutlineStyle=function(){var u=m.prototype.getOutlineStyle.call(this);return u.stroke="none",u.hover&&(u.hover.stroke="none"),u},v.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},v.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},v})(Ke.exports.EllipseNodeModel);(function(m){Pb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getControlGroup=function(){var u=this.props,c=u.model,i=u.graphModel;return Ke.exports.h(ql,{model:c,graphModel:i})},v.prototype.getResizeShape=function(){return m.prototype.getShape.call(this)},v.prototype.getShape=function(){var u=this.props.model;return Ke.exports.h("g",null,this.getResizeShape(),u.isSelected?this.getControlGroup():"")},v})(Ke.exports.EllipseNode);var ad=globalThis&&globalThis.__assign||function(){return ad=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},ad.apply(this,arguments)};function C2(m){var v=m.fillOpacity,u=v===void 0?1:v,c=m.strokeWidth,i=c===void 0?1:c,s=m.strokeOpacity,f=s===void 0?1:s,y=m.fill,b=y===void 0?"transparent":y,E=m.stroke,S=E===void 0?"#000":E,M=m.points,T=m.className,A=T===void 0?"lf-basic-shape":T,I={fill:b,fillOpacity:u,strokeWidth:i,stroke:S,strokeOpacity:f,points:"",className:A};return I.points=M.map(function(_){return _.join(",")}).join(" "),Ke.exports.h("polygon",ad({},I))}var Tb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),ud=globalThis&&globalThis.__assign||function(){return ud=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},ud.apply(this,arguments)};(function(m){Tb(v,m);function v(u,c){var i=m.call(this,u,c)||this,s=i.properties.nodeSize;return s&&(i.rx=s.rx,i.ry=s.ry),i}return v.prototype.initNodeData=function(u){m.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},v.prototype.getOutlineStyle=function(){var u=m.prototype.getOutlineStyle.call(this);return u.stroke="none",u.hover&&(u.hover.stroke="none"),u},v.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},v.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},v})(Ke.exports.DiamondNodeModel);(function(m){Tb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getControlGroup=function(){var u=this.props,c=u.model,i=u.graphModel;return Ke.exports.h(ql,{model:c,graphModel:i})},v.prototype.getResizeShape=function(){var u=this.props.model,c=u.points,i=u.getNodeStyle();return Ke.exports.h("g",null,Ke.exports.h(C2,ud({},i,{points:c})))},v.prototype.getShape=function(){var u=this.props.model.isSelected;return Ke.exports.h("g",null,this.getResizeShape(),u?this.getControlGroup():"")},v})(Ke.exports.DiamondNode);var Mb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}();(function(m){Mb(v,m);function v(u,c){var i=m.call(this,u,c)||this,s=i.properties.nodeSize;return s&&(i.width=s.width,i.height=s.height),i}return v.prototype.initNodeData=function(u){m.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},v.prototype.getOutlineStyle=function(){var u=m.prototype.getOutlineStyle.call(this);return u.stroke="none",u.hover&&(u.hover.stroke="none"),u},v.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},v.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},v})(Ke.exports.HtmlNodeModel);(function(m){Mb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getControlGroup=function(){var u=this.props,c=u.model,i=u.graphModel;return Ke.exports.h(ql,{model:c,graphModel:i})},v.prototype.getResizeShape=function(){return m.prototype.getShape.call(this)},v.prototype.getShape=function(){var u=this.props.model.isSelected;return Ke.exports.h("g",null,this.getResizeShape(),u?this.getControlGroup():"")},v})(Ke.exports.HtmlNode);var wb=globalThis&&globalThis.__extends||function(){var m=function(v,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,i){c.__proto__=i}||function(c,i){for(var s in i)i.hasOwnProperty(s)&&(c[s]=i[s])},m(v,u)};return function(v,u){m(v,u);function c(){this.constructor=v}v.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}(),Vl=globalThis&&globalThis.__assign||function(){return Vl=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Vl.apply(this,arguments)},R2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s},Ym=globalThis&&globalThis.__spread||function(){for(var m=[],v=0;v<arguments.length;v++)m=m.concat(R2(arguments[v]));return m},Wm=500,Km=300;(function(m){wb(v,m);function v(){var u=m!==null&&m.apply(this,arguments)||this;return u.isGroup=!0,u.unfoldedWidth=Wm,u.unfoldedHight=Km,u}return v.prototype.initNodeData=function(u){var c=this;m.prototype.initNodeData.call(this,u);var i=[];Array.isArray(u.children)&&(i=u.children),this.children=new Set(i),this.width=Wm,this.height=Km,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=-1,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){c.isFolded&&c.foldGroup(c.isFolded)})},v.prototype.getResizeOutlineStyle=function(){var u=m.prototype.getResizeOutlineStyle.call(this);return u.stroke="none",u},v.prototype.foldGroup=function(u){var c=this;this.setProperty("isFolded",u),this.isFolded=u,u?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var i=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(s){var f=c.graphModel.getElement(s);f.visible=!u,i=i.concat(f.incoming.edges.concat(f.outgoing.edges))}),this.foldEdge(u,i)},v.prototype.getAnchorStyle=function(u){var c=m.prototype.getAnchorStyle.call(this,u);return c.stroke="transparent",c.fill="transparent",c.hover.fill="transparent",c.hover.stroke="transparent",c},v.prototype.foldEdge=function(u,c){var i=this;c.forEach(function(s,f){var y=s.id,b=s.sourceNodeId,E=s.targetNodeId,S=s.startPoint,M=s.endPoint,T=s.type,A=s.properties,I=s.text,_={id:y+"__"+f,sourceNodeId:b,targetNodeId:E,startPoint:S,endPoint:M,type:T,properties:A,text:I==null?void 0:I.value};s.virtual&&i.graphModel.deleteEdgeById(s.id);var L=i.graphModel.group.getNodeGroup(E);L||(L=i.graphModel.getNodeModelById(E));var H=i.graphModel.group.getNodeGroup(b);H||(H=i.graphModel.getNodeModelById(b)),u&&s.visible!==!1&&(i.children.has(b)||i.id===b?(_.startPoint=void 0,_.sourceNodeId=i.id):(_.endPoint=void 0,_.targetNodeId=i.id),(L.id!==i.id||H.id!==i.id)&&i.createVirtualEdge(_),s.visible=!1),!u&&s.visible===!1&&(L&&L.isGroup&&L.isFolded?(_.targetNodeId=L.id,_.endPoint=void 0,i.createVirtualEdge(_)):H&&H.isGroup&&H.isFolded?(_.sourceNodeId=H.id,_.startPoint=void 0,i.createVirtualEdge(_)):s.visible=!0)})},v.prototype.createVirtualEdge=function(u){u.pointsList=void 0;var c=this.graphModel.addEdge(u);c.virtual=!0,c.getData=function(){return null},c.text.editable=!1,c.isFoldedEdge=!0},v.prototype.isInRange=function(u){var c=u.x1,i=u.y1,s=u.x2,f=u.y2;return c>=this.x-this.width/2&&s<=this.x+this.width/2&&i>=this.y-this.height/2&&f<=this.y+this.height/2},v.prototype.isAllowMoveTo=function(u){var c=u.x1,i=u.y1,s=u.x2,f=u.y2;return{x:c>=this.x-this.width/2&&s<=this.x+this.width/2,y:i>=this.y-this.height/2&&f<=this.y+this.height/2}},v.prototype.setAllowAppendChild=function(u){this.setProperty("groupAddable",u)},v.prototype.addChild=function(u){this.children.add(u)},v.prototype.removeChild=function(u){this.children.delete(u)},v.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},v.prototype.getData=function(){var u=m.prototype.getData.call(this);u.children=Ym(this.children);var c=u.properties;return delete c.groupAddable,delete c.isFolded,u},v.prototype.getHistoryData=function(){var u=m.prototype.getData.call(this);u.children=Ym(this.children);var c=u.properties;return delete c.groupAddable,c.isFolded&&(u.x=u.x+this.unfoldedWidth/2-this.foldedWidth/2,u.y=u.y+this.unfoldedHight/2-this.foldedHeight/2),u},v})(Sb.model);(function(m){wb(v,m);function v(){return m!==null&&m.apply(this,arguments)||this}return v.prototype.getControlGroup=function(){var u=this.props.model,c=u.resizable,i=u.properties;return c&&!i.isFolded?m.prototype.getControlGroup.call(this):null},v.prototype.getAddedableShape=function(){var u=this.props.model,c=u.width,i=u.height,s=u.x,f=u.y,y=u.radius,b=u.properties;if(!b.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,S=this.props.model.getAddableOutlineStyle(),M=c+E+8,T=i+E+8;return Ke.exports.h("rect",Vl(Vl({},S),{width:M,height:T,x:s-M/2,y:f-T/2,rx:y,ry:y}))},v.prototype.getFoldIcon=function(){var u=this.props.model,c=u.x-u.width/2+5,i=u.y-u.height/2+5;if(!u.foldable)return null;var s=Ke.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:u.properties.isFolded?"M "+(c+3)+","+(i+6)+" "+(c+11)+","+(i+6)+" M"+(c+7)+","+(i+2)+" "+(c+7)+","+(i+10):"M "+(c+3)+","+(i+6)+" "+(c+11)+","+(i+6)+" "});return Ke.exports.h("g",{},[Ke.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:u.x-u.width/2+5,y:u.y-u.height/2+5,onClick:function(){u.foldGroup(!u.properties.isFolded)}}),s])},v.prototype.getResizeShape=function(){return Ke.exports.h("g",{},[this.getAddedableShape(),m.prototype.getResizeShape.call(this),this.getFoldIcon()])},v})(Sb.view);var I2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};globalThis&&globalThis.__spread;var _2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};globalThis&&globalThis.__spread;var Vm=globalThis&&globalThis.__assign||function(){return Vm=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Vm.apply(this,arguments)},Zm=globalThis&&globalThis.__assign||function(){return Zm=Object.assign||function(m){for(var v,u=1,c=arguments.length;u<c;u++){v=arguments[u];for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(m[i]=v[i])}return m},Zm.apply(this,arguments)},B2=globalThis&&globalThis.__read||function(m,v){var u=typeof Symbol=="function"&&m[Symbol.iterator];if(!u)return m;var c=u.call(m),i,s=[],f;try{for(;(v===void 0||v-- >0)&&!(i=c.next()).done;)s.push(i.value)}catch(y){f={error:y}}finally{try{i&&!i.done&&(u=c.return)&&u.call(c)}finally{if(f)throw f.error}}return s};globalThis&&globalThis.__spread;const L2={class:"control-container"},z2=["title","onMouseenter"],F2=["disabled","onClick"],H2=Jl({__name:"Control",props:{lf:{type:null,required:!0,default:null},catTurboData:{type:Boolean,required:!1}},emits:["catData"],setup(m,{emit:v}){const u=m,c=Sm("controlButton3",null),i=Sm("controlButton4",null);let s=lo(-1),f=lo([{icon:"icon-zoom-out-hs",text:"\u7F29\u5C0F",size:"18",disabled:!1},{icon:"icon-enlarge-hs",text:"\u653E\u5927",size:"18",disabled:!1},{icon:"icon-full-screen-hs",text:"\u9002\u5E94",size:"15",disabled:!1},{icon:"icon-previous-hs",text:"\u4E0A\u4E00\u6B65",size:"15",disabled:!0},{icon:"icon-next-step-hs",text:"\u4E0B\u4E00\u6B65",size:"17",disabled:!0},{icon:"icon-download-hs",text:"\u4E0B\u8F7D\u56FE\u7247",size:"17",disabled:!1},{icon:"icon-watch-hs",text:"\u67E5\u770B\u6570\u636E",size:"17",disabled:!1}]);const y=(E,S)=>{["zoom","zoom","resetZoom","undo","redo","getSnapshot"].forEach((M,T)=>{let A=u.lf;S===1&&A.zoom(!0),S===6&&v("catData"),S===T&&A[M]()})},b=E=>{s.value=E};return Qm(()=>{u.lf.on("history:change",({data:{undoAble:E,redoAble:S}})=>{zt(f)[3].disabled=zt(c).disabled=!E,zt(f)[4].disabled=zt(i).disabled=!S})}),(E,S)=>{const M=Ci("el-tooltip");return nn(),so("div",L2,[Hn(" \u529F\u80FD\u6309\u94AE "),on("ul",null,[(nn(!0),so(rd,null,qm(zt(f),(T,A)=>(nn(),so("li",{key:A,title:T.text,class:"dark:color-bg_color",onMouseenter:Pm(I=>b(A),["prevent"]),onMouseleave:S[0]||(S[0]=Pm(I=>eb(s)?s.value=-1:s=-1,["prevent"]))},[Ko(M,{content:T.text,visible:zt(s)===A,placement:"right"},{default:Vo(()=>[on("button",{ref_for:!0,ref:"controlButton"+A,disabled:T.disabled,style:Tm({cursor:T.disabled===!1?"pointer":"not-allowed",color:T.disabled===!1?"":"#00000040"}),onClick:I=>y(T,A)},[on("span",{class:tb("iconfont "+T.icon),style:Tm({fontSize:`${T.size}px`})},null,6)],12,F2)]),_:2},1032,["content","visible"])],40,z2))),128))])])}}});var G2=Zl(H2,[["__scopeId","data-v-518de540"],["__file","D:/work/accout-vue3-ui/src/components/ReFlowChart/src/Control.vue"]]);const k2={class:"node-panel"},$2=["onMousedown"],U2={key:0,class:"shape"},X2={class:"node-label"},Y2=Jl({__name:"NodePanel",props:{lf:{type:null,required:!0,default:null},nodeList:{type:Array,required:!0,default:null}},setup(m){const v=m;let u=lo({a:"efrwe",b:"wewe"});const c=i=>{v.lf.dnd.startDrag({type:i.type,properties:zt(u)})};return(i,s)=>(nn(),so(rd,null,[Hn(" \u5DE6\u4FA7bpmn\u5143\u7D20\u9009\u62E9\u5668 "),on("div",k2,[(nn(!0),so(rd,null,qm(v.nodeList,f=>(nn(),so("div",{class:"node-item dark:color-bg_color",key:f.text,onMousedown:y=>c(f)},[on("div",{class:tb(["node-item-icon",f.class])},[f.type==="user"||f.type==="time"?(nn(),so("div",U2)):Hn("v-if",!0)],2),on("span",X2,DC(f.text),1)],40,$2))),128))])],2112))}});var W2=Zl(Y2,[["__scopeId","data-v-7322cbe5"],["__file","D:/work/accout-vue3-ui/src/components/ReFlowChart/src/NodePanel.vue"]]),Ab={exports:{}},K2=jC(CC);(function(m,v){(function(u,c){m.exports=c(K2)})(RC,function(u){return function(){var c={789:function(y){y.exports=u}},i={};function s(y){var b=i[y];if(b!==void 0)return b.exports;var E=i[y]={exports:{}};return c[y](E,E.exports,s),E.exports}s.d=function(y,b){for(var E in b)s.o(b,E)&&!s.o(y,E)&&Object.defineProperty(y,E,{enumerable:!0,get:b[E]})},s.o=function(y,b){return Object.prototype.hasOwnProperty.call(y,b)},s.r=function(y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var f={};return function(){function y(j,N){(N==null||N>j.length)&&(N=j.length);for(var P=0,D=new Array(N);P<N;P++)D[P]=j[P];return D}function b(j,N){if(j){if(typeof j=="string")return y(j,N);var P=Object.prototype.toString.call(j).slice(8,-1);return P==="Object"&&j.constructor&&(P=j.constructor.name),P==="Map"||P==="Set"?Array.from(j):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?y(j,N):void 0}}function E(j,N){return function(P){if(Array.isArray(P))return P}(j)||function(P,D){var Y=P==null?null:typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(Y!=null){var V,ue,Oe=[],me=!0,ce=!1;try{for(Y=Y.call(P);!(me=(V=Y.next()).done)&&(Oe.push(V.value),!D||Oe.length!==D);me=!0);}catch(he){ce=!0,ue=he}finally{try{me||Y.return==null||Y.return()}finally{if(ce)throw ue}}return Oe}}(j,N)||b(j,N)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  75. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function S(j){return function(N){if(Array.isArray(N))return y(N)}(j)||function(N){if(typeof Symbol!="undefined"&&N[Symbol.iterator]!=null||N["@@iterator"]!=null)return Array.from(N)}(j)||b(j)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  76. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function M(j,N,P){return N in j?Object.defineProperty(j,N,{value:P,enumerable:!0,configurable:!0,writable:!0}):j[N]=P,j}s.r(f),s.d(f,{default:function(){return z}});var T=s(789),A=(0,T.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var j=this.data,N=this.onClick;return(0,T.createVNode)("span",{class:"vjs-tree__brackets",onClick:N},[j])}}),I=(0,T.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(j,N){var P=N.emit;return{uiType:(0,T.computed)(function(){return j.isMultiple?"checkbox":"radio"}),model:(0,T.computed)({get:function(){return j.checked},set:function(D){return P("update:modelValue",D)}})}},render:function(){var j=this.uiType,N=this.model,P=this.$emit;return(0,T.createVNode)("label",{class:["vjs-check-controller",N?"is-checked":""],onClick:function(D){return D.stopPropagation()}},[(0,T.createVNode)("span",{class:"vjs-check-controller__inner is-".concat(j)},null),(0,T.createVNode)("input",{checked:N,class:"vjs-check-controller__original is-".concat(j),type:j,onChange:function(){return P("change",N)}},null)])}});function _(j,N){var P=Object.keys(j);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(j);N&&(D=D.filter(function(Y){return Object.getOwnPropertyDescriptor(j,Y).enumerable})),P.push.apply(P,D)}return P}function L(j){for(var N=1;N<arguments.length;N++){var P=arguments[N]!=null?arguments[N]:{};N%2?_(Object(P),!0).forEach(function(D){M(j,D,P[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(P)):_(Object(P)).forEach(function(D){Object.defineProperty(j,D,Object.getOwnPropertyDescriptor(P,D))})}return j}function H(j){return Object.prototype.toString.call(j).slice(8,-1).toLowerCase()}function U(j){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,D=arguments.length>3?arguments[3]:void 0,Y=D||{},V=Y.key,ue=Y.index,Oe=Y.type,me=Oe===void 0?"content":Oe,ce=Y.showComma,he=ce!==void 0&&ce,ve=Y.length,Ee=ve===void 0?1:ve,je=H(j);if(je==="array"){var ze=j.map(function(_e,G,W){return U(_e,"".concat(N,"[").concat(G,"]"),P+1,{index:G,showComma:G!==W.length-1,length:Ee,type:me})}).reduce(function(_e,G){return _e.concat(G)},[]);return[U("[",N,P,{showComma:!1,key:V,length:j.length,type:"arrayStart"})[0]].concat(ze,U("]",N,P,{showComma:he,length:j.length,type:"arrayEnd"})[0])}if(je==="object"){var Re=Object.keys(j),xe=Re.map(function(_e,G,W){return U(j[_e],_e.includes(".")?"".concat(N,'["').concat(_e,'"]'):"".concat(N,".").concat(_e),P+1,{key:_e,showComma:G!==W.length-1,length:Ee,type:me})}).reduce(function(_e,G){return _e.concat(G)},[]);return[U("{",N,P,{showComma:!1,key:V,index:ue,length:Re.length,type:"objectStart"})[0]].concat(xe,U("}",N,P,{showComma:he,length:Re.length,type:"objectEnd"})[0])}var Be=Object.entries({content:j,level:P,key:V,index:ue,path:N,showComma:he,length:Ee,type:me}).reduce(function(_e,G){var W=E(G,2),ee=W[0],ge=W[1];return ge!==void 0?L(L({},_e),{},M({},ee,ge)):_e},{});return[Be]}function X(j,N){var P=Object.keys(j);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(j);N&&(D=D.filter(function(Y){return Object.getOwnPropertyDescriptor(j,Y).enumerable})),P.push.apply(P,D)}return P}function se(j){for(var N=1;N<arguments.length;N++){var P=arguments[N]!=null?arguments[N]:{};N%2?X(Object(P),!0).forEach(function(D){M(j,D,P[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(P)):X(Object(P)).forEach(function(D){Object.defineProperty(j,D,Object.getOwnPropertyDescriptor(P,D))})}return j}var ae={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},customValueFormatter:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},selectOnClickNode:{type:Boolean,default:!0},collapsedOnClickBrackets:{type:Boolean,default:!0},pathSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0}},q=(0,T.defineComponent)({name:"TreeNode",props:se(se({},ae),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,onTreeNodeClick:{type:Function},onBracketsClick:{type:Function},onSelectedChange:{type:Function}}),setup:function(j,N){var P=N.emit,D=(0,T.computed)(function(){return H(j.node.content)}),Y=(0,T.computed)(function(){return"vjs-value vjs-value__".concat(D.value)}),V=(0,T.computed)(function(){return j.showDoubleQuotes?'"'.concat(j.node.key,'"'):j.node.key}),ue=(0,T.computed)(function(){return j.selectableType==="multiple"}),Oe=(0,T.computed)(function(){return j.selectableType==="single"}),me=(0,T.computed)(function(){return j.pathSelectable(j.node.path,j.node.content)&&(ue.value||Oe.value)}),ce=function(ve){var Ee=ve+"";return D.value==="string"&&(Ee='"'.concat(Ee,'"')),Ee},he=j.customValueFormatter?function(ve){var Ee;return(Ee=j.customValueFormatter)===null||Ee===void 0?void 0:Ee.call(j,ve,j.node.key,j.node.path,ce(ve))}:null;return{state:(0,T.reactive)({valueClass:Y,prettyKey:V,isMultiple:ue,selectable:me}),defaultFormatter:ce,customFormatter:he,onBracketsClickHandler:function(){j.collapsedOnClickBrackets&&P("brackets-click",!j.collapsed,j.node.path)},onCheckedChange:function(){P("selected-change",j.node)},onNodeClick:function(){P("tree-node-click",j.node),me.value&&j.selectOnClickNode&&P("selected-change",j.node)}}},render:function(){var j=this.state,N=this.node,P=this.showSelectController,D=this.highlightSelectedNode,Y=this.checked,V=this.showLength,ue=this.collapsed,Oe=this.showLine,me=this.defaultFormatter,ce=this.customFormatter,he=this.onNodeClick,ve=this.onCheckedChange,Ee=this.onBracketsClickHandler;return(0,T.createVNode)("div",{class:{"vjs-tree__node":!0,"has-selector":P,"is-highlight":D&&Y},onClick:he},[P&&j.selectable&&N.type!=="objectEnd"&&N.type!=="arrayEnd"&&(0,T.createVNode)(I,{isMultiple:j.isMultiple,checked:Y,onChange:ve},null),Array.from(Array(N.level)).map(function(je,ze){return(0,T.createVNode)("div",{key:ze,class:{"vjs-tree__indent":!0,"has-line":Oe}},null)}),N.key&&(0,T.createVNode)("span",{class:"vjs-key"},["".concat(j.prettyKey,": ")]),(0,T.createVNode)("span",null,[N.type!=="content"?(0,T.createVNode)(A,{data:N.content,onClick:Ee},null):ce?(0,T.createVNode)("span",{class:j.valueClass,innerHTML:ce(N.content)},null):(0,T.createVNode)("span",{class:j.valueClass},[me(N.content)]),N.showComma&&(0,T.createVNode)("span",null,[","]),V&&ue&&(0,T.createVNode)("span",{class:"vjs-comment"},[(0,T.createTextVNode)(" // "),N.length,(0,T.createTextVNode)(" items ")])])])}});function J(j,N){var P=Object.keys(j);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(j);N&&(D=D.filter(function(Y){return Object.getOwnPropertyDescriptor(j,Y).enumerable})),P.push.apply(P,D)}return P}function ie(j){for(var N=1;N<arguments.length;N++){var P=arguments[N]!=null?arguments[N]:{};N%2?J(Object(P),!0).forEach(function(D){M(j,D,P[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(P)):J(Object(P)).forEach(function(D){Object.defineProperty(j,D,Object.getOwnPropertyDescriptor(P,D))})}return j}var z=(0,T.defineComponent)({name:"Tree",props:ie(ie({},ae),{},{data:{type:Object,default:null},deep:{type:Number,default:1/0},deepCollapseChildren:{type:Boolean,default:!1},collapsePath:{type:RegExp,default:null},path:{type:String,default:"root"},virtual:{type:Boolean,default:!1},virtualLines:{type:Number,default:10},itemHeight:{type:Number,default:20},modelValue:{type:[String,Array],default:function(){return""}}}),emits:["click","change","update:modelValue"],setup:function(j,N){var P=N.emit,D=(0,T.ref)(),Y=(0,T.reactive)({translateY:0,visibleData:null,hiddenPaths:U(j.data,j.path).reduce(function(ce,he){var ve=j.deepCollapseChildren?he.level>=j.deep:he.level===j.deep,Ee=ve||j.collapsePath&&j.collapsePath.test(he.path);return he.type!=="objectStart"&&he.type!=="arrayStart"||!ve&&!Ee?ce:ie(ie({},ce),{},M({},he.path,1))},{})}),V=(0,T.computed)(function(){var ce=null;return U(j.data,j.path).reduce(function(he,ve,Ee){var je=ie(ie({},ve),{},{id:Ee}),ze=Y.hiddenPaths[je.path];if(ce&&ce.path===je.path){var Re=ce.type==="objectStart",xe=ie(ie(ie({},ce),je),{},{content:Re?"{...}":"[...]",type:Re?"objectCollapsed":"arrayCollapsed"});return ce=null,he.concat(xe)}return ze&&!ce?(ce=je,he):ce?he:he.concat(je)},[])}),ue=(0,T.computed)(function(){var ce=j.modelValue;return ce&&j.selectableType==="multiple"&&Array.isArray(ce)?ce:[ce]}),Oe=(0,T.computed)(function(){return!j.selectableType||j.selectOnClickNode||j.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),me=function(ce){if(j.virtual){var he=D.value,ve=j.virtualLines,Ee=he&&he.scrollTop||0,je=Math.floor(Ee/j.itemHeight),ze=je<0?0:je+ve>ce.length?ce.length-ve:je;ze<0&&(ze=0);var Re=ze+ve;Y.translateY=ze*j.itemHeight,Y.visibleData=ce.filter(function(xe,Be){return Be>=ze&&Be<Re})}else Y.visibleData=ce};return(0,T.watchEffect)(function(){Oe.value&&function(ce){throw new Error("[VueJSONPretty] ".concat(ce))}(Oe.value)}),(0,T.watchEffect)(function(){V.value&&me(V.value)}),{tree:D,state:Y,flatData:V,selectedPaths:ue,onTreeScroll:function(){me(V.value)},onSelectedChange:function(ce){var he=ce.path,ve=j.selectableType;if(ve==="multiple"){var Ee=ue.value.findIndex(function(xe){return xe===he}),je=S(ue.value);Ee!==-1?je.splice(Ee,1):je.push(he),P("update:modelValue",je),P("change",je,S(ue.value))}else if(ve==="single"&&ue.value[0]!==he){var ze=E(ue.value,1)[0],Re=he;P("update:modelValue",Re),P("change",Re,ze)}},onTreeNodeClick:function(ce){var he=ce.content,ve=ce.path;P("click",ve,he)},onBracketsClick:function(ce,he){if(ce)Y.hiddenPaths=ie(ie({},Y.hiddenPaths),{},M({},he,1));else{var ve=ie({},Y.hiddenPaths);delete ve[he],Y.hiddenPaths=ve}}}},render:function(){var j=this.virtual,N=this.itemHeight,P=this.customValueFormatter,D=this.showDoubleQuotes,Y=this.showLength,V=this.showLine,ue=this.showSelectController,Oe=this.selectOnClickNode,me=this.pathSelectable,ce=this.highlightSelectedNode,he=this.collapsedOnClickBrackets,ve=this.state,Ee=this.flatData,je=this.selectedPaths,ze=this.selectableType,Re=this.onTreeNodeClick,xe=this.onBracketsClick,Be=this.onSelectedChange,_e=this.onTreeScroll,G=ve.visibleData&&ve.visibleData.map(function(W){return(0,T.createVNode)(q,{key:W.id,node:W,collapsed:!!ve.hiddenPaths[W.path],"custom-value-formatter":P,"show-double-quotes":D,"show-length":Y,"collapsed-on-click-brackets":he,checked:je.includes(W.path),"selectable-type":ze,"show-line":V,"show-select-controller":ue,"select-on-click-node":Oe,"path-selectable":me,"highlight-selected-node":ce,onTreeNodeClick:Re,onBracketsClick:xe,onSelectedChange:Be},null)});return(0,T.createVNode)("div",{ref:"tree",class:{"vjs-tree":!0,"is-virtual":j},onScroll:_e},[j?(0,T.createVNode)("div",{style:{height:"".concat(Ee.length*N,"px")}},[(0,T.createVNode)("div",{style:{transform:"translateY(".concat(ve.translateY,"px)")}},[G])]):G])}})}(),f}()})})(Ab);var V2=Jm(Ab.exports);const Z2=Jl({__name:"DataDialog",props:{graphData:Object},setup(m){const v=m;return(u,c)=>(nn(),nd(zt(V2),{path:"res",deep:3,showLength:!0,data:v.graphData},null,8,["data"]))}});var J2=Zl(Z2,[["__file","D:/work/accout-vue3-ui/src/components/ReFlowChart/src/DataDialog.vue"]]);const Q2=ld(G2),q2=ld(W2),eR=ld(J2),tR={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function rR(m){const{incoming:v,outgoing:u,properties:c,key:i}=m,{text:s,startPoint:f,endPoint:y,pointsList:b,logicFlowType:E}=c,S={id:i,type:E,sourceNodeId:v[0],targetNodeId:u[0],text:s,startPoint:f,endPoint:y,pointsList:b,properties:{}},M=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(m.properties).forEach(T=>{M.indexOf(T)===-1&&(S.properties[T]=m.properties[T])}),S}function nR(m){const{properties:v,key:u}=m,{x:c,y:i,text:s,logicFlowType:f}=v,y={id:u,type:f,x:c,y:i,text:s,properties:{}},b=["x","y","text","logicFlowType"];return Object.keys(m.properties).forEach(E=>{b.indexOf(E)===-1&&(y.properties[E]=m.properties[E])}),y}function oR(m){const v={nodes:[],edges:[]},u=m.flowElementList;return u&&u.length>0&&u.forEach(c=>{if(c.type===tR.SEQUENCE_FLOW){const i=rR(c);v.edges.push(i)}else{const i=nR(c);v.nodes.push(i)}}),v}const iR=m=>(_C("data-v-77d65f48"),m=m(),BC(),m),aR={class:"card-header"},uR={class:"font-medium"},lR=rb(" \u6D41\u7A0B\u56FE\u7EC4\u4EF6\uFF0C\u91C7\u7528\u5F00\u6E90\u7684 "),sR=rb(" LogicFlow "),fR={class:"logic-flow-view"},cR=iR(()=>on("div",{id:"LF-Turbo"},null,-1)),dR={name:"FlowChart"},pR=Jl({...dR,setup(m){let v=lo(null),u=lo(null),c=lo(!1),i=lo({grid:!0,background:{color:"#f7f9ff"},keyboard:{enabled:!0}}),s=FC;function f(){Gl.use(s2),Gl.use(l2),Gl.use(O2);const E=new Gl({...zt(i),container:document.querySelector("#LF-Turbo")});v.value=E,zt(v).setDefaultEdgeType("bpmn:sequenceFlow"),y()}function y(){const E=oR(zC);v.value.render(E)}function b(){u.value=zt(v).getGraphData(),c.value=!0}return Qm(()=>{f()}),(E,S)=>{const M=Ci("el-link"),T=Ci("el-scrollbar"),A=Ci("el-dialog"),I=Ci("el-card");return nn(),nd(I,null,{header:Vo(()=>[on("div",aR,[on("span",uR,[lR,Ko(M,{href:"http://logic-flow.org/",target:"_blank",icon:zt(IC)("set-up"),style:{"font-size":"16px",margin:"0 4px 5px"}},{default:Vo(()=>[sR]),_:1},8,["icon"])])])]),default:Vo(()=>[on("div",fR,[Hn(" \u8F85\u52A9\u5DE5\u5177\u680F "),zt(v)?(nn(),nd(zt(Q2),{key:0,class:"demo-control",lf:zt(v),catTurboData:!1,onCatData:b},null,8,["lf"])):Hn("v-if",!0),Hn(" \u8282\u70B9\u9762\u677F "),Ko(zt(q2),{lf:zt(v),nodeList:zt(s)},null,8,["lf","nodeList"]),Hn(" \u753B\u5E03 "),cR,Hn(" \u6570\u636E\u67E5\u770B\u9762\u677F "),Ko(A,{customClass:"flow-dialog",title:"\u6570\u636E",modelValue:zt(c),"onUpdate:modelValue":S[0]||(S[0]=_=>eb(c)?c.value=_:c=_),width:"50%"},{default:Vo(()=>[Ko(T,null,{default:Vo(()=>[Ko(zt(eR),{graphData:zt(u)},null,8,["graphData"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}});var vR=Zl(pR,[["__scopeId","data-v-77d65f48"],["__file","D:/work/accout-vue3-ui/src/views/flow-chart/index.vue"]]);export{vR as default};