vite-plugin-vue-devtools 7.6.6 → 7.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1159,4 +1159,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1159
1159
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function VHt(t,r){var e;if(t){if(typeof t=="string")return oF(t,r);var n=Ln(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return t2(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(t,r)}}function oF(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var kl,io,Ys,Xs,Ev;function aF(t,r){var e=new xl,n=bb(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;t.has(o)||e.add(o)}}catch(a){n.e(a)}finally{n.f()}return e}var sF=function(){function t(){_e(this,t),kl.set(this,new xl),io.set(this,new xl)}return Me(t,[{key:"size",get:function(){return or(this,io,"f").size}},{key:"add",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];or(this,io,"f").add(s)}}},{key:"delete",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];or(this,io,"f").delete(s)}}},{key:"clear",value:function(){or(this,io,"f").clear()}},{key:"getSelection",value:function(){return ha(or(this,io,"f"))}},{key:"getChanges",value:function(){return{added:ha(aF(or(this,kl,"f"),or(this,io,"f"))),deleted:ha(aF(or(this,io,"f"),or(this,kl,"f"))),previous:ha(new xl(or(this,kl,"f"))),current:ha(new xl(or(this,io,"f")))}}},{key:"commit",value:function(){var e=this.getChanges();yb(this,kl,or(this,io,"f")),yb(this,io,new xl(or(this,kl,"f")));var n=bb(e.added),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o.select()}}catch(c){n.e(c)}finally{n.f()}var a=bb(e.deleted),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;l.unselect()}}catch(c){a.e(c)}finally{a.f()}return e}}]),t}();kl=new dd,io=new dd;var PHt=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};_e(this,t),Ys.set(this,new sF),Xs.set(this,new sF),Ev.set(this,void 0),yb(this,Ev,r)}return Me(t,[{key:"sizeNodes",get:function(){return or(this,Ys,"f").size}},{key:"sizeEdges",get:function(){return or(this,Xs,"f").size}},{key:"getNodes",value:function(){return or(this,Ys,"f").getSelection()}},{key:"getEdges",value:function(){return or(this,Xs,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=or(this,Ys,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=or(this,Xs,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){or(this,Ys,"f").delete(e)}},{key:"deleteEdges",value:function(e){or(this,Xs,"f").delete(e)}},{key:"clear",value:function(){or(this,Ys,"f").clear(),or(this,Xs,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:or(this,Ys,"f").commit(),edges:or(this,Xs,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(e=or(this,Ev,"f")).call.apply(e,fM(n=[this,i]).call(n,a)),i}}]),t}();Ys=new dd,Xs=new dd,Ev=new dd;function lF(t,r){var e=typeof hl<"u"&&r2(t)||t["@@iterator"];if(!e){if(Kt(t)||(e=RHt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1160
1160
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function RHt(t,r){var e;if(t){if(typeof t=="string")return cF(t,r);var n=Ln(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return t2(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cF(t,r)}}function cF(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var DHt=function(){function t(r,e){var n=this;_e(this,t),this.body=r,this.canvas=e,this._selectionAccumulator=new PHt,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Yr(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return Me(t,[{key:"setOptions",value:function(e){if(e!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];eh(n,this.options,e)}}},{key:"selectOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(n=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return n}},{key:"selectAdditionalOnPoint",value:function(e){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(n=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return n}},{key:"_initBaseEvent",value:function(e,n){var i={};return i.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},i.event=e,i}},{key:"generateClickEvent",value:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Ri){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,ha(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}return n}},{key:"_pointerToPositionObject",value:function(e){var n=this.canvas.DOMtoCanvas(e);return{left:n.x-1,top:n.y+1,right:n.x+1,bottom:n.y-1}}},{key:"getNodeAt",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o<this.body.edgeIndices.length;o++){var a=this.body.edgeIndices[o];i[a].isOverlappingWith(e)&&n.push(a)}}},{key:"_getAllEdgesOverlappingWith",value:function(e){var n=[];return this._getEdgesOverlappingWith(e,n),n}},{key:"getEdgeAt",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l<this.body.edgeIndices.length;l++){var c=this.body.edgeIndices[l],u=s[c];if(u.connected){var g=u.from.x,h=u.from.y,d=u.to.x,f=u.to.y,C=u.edgeType.getDistanceToEdge(g,h,d,f,i.x,i.y);C<o&&(a=c,o=C)}}if(a!==null)return n===!0?this.body.edges[a]:a}},{key:"_addToHover",value:function(e){e instanceof Ri?this.hoverObj.nodes[e.id]=e:this.hoverObj.edges[e.id]=e}},{key:"_removeFromSelection",value:function(e){if(e instanceof Ri){var n;this._selectionAccumulator.deleteNodes(e),(n=this._selectionAccumulator).deleteEdges.apply(n,ha(e.edges))}else this._selectionAccumulator.deleteEdges(e)}},{key:"unselectAll",value:function(){this._selectionAccumulator.clear()}},{key:"getSelectedNodeCount",value:function(){return this._selectionAccumulator.sizeNodes}},{key:"getSelectedEdgeCount",value:function(){return this._selectionAccumulator.sizeEdges}},{key:"_hoverConnectedEdges",value:function(e){for(var n=0;n<e.edges.length;n++){var i=e.edges[n];i.hover=!0,this._addToHover(i)}}},{key:"emitBlurEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n);i.hover===!0&&(i.hover=!1,i instanceof Ri?(o.node=i.id,this.body.emitter.emit("blurNode",o)):(o.edge=i.id,this.body.emitter.emit("blurEdge",o)))}},{key:"emitHoverEvent",value:function(e,n,i){var o=this._initBaseEvent(e,n),a=!1;return i.hover===!1&&(i.hover=!0,this._addToHover(i),a=!0,i instanceof Ri?(o.node=i.id,this.body.emitter.emit("hoverNode",o)):(o.edge=i.id,this.body.emitter.emit("hoverEdge",o))),a}},{key:"hoverObject",value:function(e,n){var i=this.getNodeAt(n);i===void 0&&(i=this.getEdgeAt(n));var o=!1;for(var a in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,a)&&(i===void 0||i instanceof Ri&&i.id!=a||i instanceof mu)&&(this.emitBlurEvent(e,n,this.hoverObj.nodes[a]),delete this.hoverObj.nodes[a],o=!0);for(var s in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,s)&&(o===!0?(this.hoverObj.edges[s].hover=!1,delete this.hoverObj.edges[s]):(i===void 0||i instanceof mu&&i.id!=s||i instanceof Ri&&!i.hover)&&(this.emitBlurEvent(e,n,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],o=!0));if(i!==void 0){var l=Mr(this.hoverObj.edges).length,c=Mr(this.hoverObj.nodes).length,u=i instanceof mu&&l===0&&c===0,g=i instanceof Ri&&l===0&&c===0;(o||u||g)&&(o=this.emitHoverEvent(e,n,i)),i instanceof Ri&&this.options.hoverConnectedEdges===!0&&this._hoverConnectedEdges(i)}o===!0&&this.body.emitter.emit("_requestRedraw")}},{key:"commitWithoutEmitting",value:function(){this._selectionAccumulator.commit()}},{key:"commitAndEmit",value:function(e,n){var i=!1,o=this._selectionAccumulator.commit(),a={nodes:o.nodes.previous,edges:o.edges.previous};o.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Ju(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Ju(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=lF(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=lF(e.edges),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=this.body.edges[u];if(!g)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(g)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],c=l.getItemsOnPoint(n);i.push.apply(i,c)}for(var u=this.body.edgeIndices,g=this.body.edges,h=u.length-1;h>=0;h--){var d=g[u[h]],f=d.getItemsOnPoint(n);i.push.apply(i,f)}return i}}]),t}(),uF=Mre,NHt=Math.floor,wb=function(t,r){var e=t.length,n=NHt(e/2);return e<8?FHt(t,r):BHt(t,wb(uF(t,0,n),r),wb(uF(t,n),r),r)},FHt=function(t,r){for(var e=t.length,n=1,i,o;n<e;){for(o=n,i=t[n];o&&r(t[o-1],i)>0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},BHt=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(r[a],e[s])<=0?r[a++]:e[s++]:a<i?r[a++]:e[s++];return t},jHt=wb,GHt=x0,gF=GHt.match(/firefox\/(\d+)/i),UHt=!!gF&&+gF[1],WHt=x0,ZHt=/MSIE|Trident/.test(WHt),KHt=x0,hF=KHt.match(/AppleWebKit\/(\d+)\./),YHt=!!hF&&+hF[1],XHt=it,jie=Dt,qHt=Qc,QHt=Ti,dF=wo,JHt=hne,fF=ja,RM=Vt,eVt=jHt,tVt=Qg,CF=UHt,rVt=ZHt,vF=H0,AF=YHt,h1=[],IF=jie(h1.sort),nVt=jie(h1.push),iVt=RM(function(){h1.sort(void 0)}),oVt=RM(function(){h1.sort(null)}),aVt=tVt("sort"),Gie=!RM(function(){if(vF)return vF<70;if(!(CF&&CF>3)){if(rVt)return!0;if(AF)return AF<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)h1.push({k:e+i,v:n})}for(h1.sort(function(o,a){return a.v-o.v}),i=0;i<h1.length;i++)e=h1[i].k.charAt(0),t.charAt(t.length-1)!==e&&(t+=e);return t!=="DGBEFHACIJK"}}),sVt=iVt||!oVt||!aVt||!Gie,lVt=function(t){return function(r,e){return e===void 0?-1:r===void 0?1:t!==void 0?+t(r,e)||0:fF(r)>fF(e)?1:-1}};XHt({target:"Array",proto:!0,forced:sVt},{sort:function(r){r!==void 0&&qHt(r);var e=QHt(this);if(Gie)return r===void 0?IF(e):IF(e,r);var n=[],i=dF(e),o,a;for(a=0;a<i;a++)a in e&&nVt(n,e[a]);for(eVt(n,lVt(r)),o=dF(n),a=0;a<o;)e[a]=n[a++];for(;a<i;)JHt(e,a++);return e}});var cVt=zn,uVt=cVt("Array").sort,gVt=Gr,hVt=uVt,W6=Array.prototype,dVt=function(t){var r=t.sort;return t===W6||gVt(W6,t)&&r===W6.sort?hVt:r},fVt=dVt,CVt=fVt,vVt=CVt,fd=Ge(vVt),AVt=Qc,IVt=Ti,pVt=Yp,mVt=wo,yVt=TypeError,pF=function(t){return function(r,e,n,i){AVt(e);var o=IVt(r),a=pVt(o),s=mVt(o),l=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,t?l<0:s<=l)throw new yVt("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},bVt={left:pF(!1),right:pF(!0)},wVt=xr,$Vt=Ps,_Vt=$Vt(wVt.process)==="process",MVt=it,zVt=bVt.left,EVt=Qg,mF=H0,SVt=_Vt,TVt=!SVt&&mF>79&&mF<83,kVt=TVt||!EVt("reduce");MVt({target:"Array",proto:!0,forced:kVt},{reduce:function(r){var e=arguments.length;return zVt(this,r,e,e>1?arguments[1]:void 0)}});var LVt=zn,OVt=LVt("Array").reduce,xVt=Gr,HVt=OVt,Z6=Array.prototype,VVt=function(t){var r=t.reduce;return t===Z6||xVt(Z6,t)&&r===Z6.reduce?HVt:r},PVt=VVt,RVt=PVt,DVt=RVt,Uie=Ge(DVt);function Wie(t){var r=NVt();return function(){var n=Pe(t),i;if(r){var o=Pe(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Yt(this,i)}}function NVt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var Zie=function(){function t(){_e(this,t)}return Me(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),FVt=function(t){Nt(e,t);var r=Wie(e);function e(n){var i;return _e(this,e),i=r.call(this),i.layout=n,i}return Me(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){fd(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(Zie),BVt=function(t){Nt(e,t);var r=Wie(e);function e(n){var i;return _e(this,e),i=r.call(this),i.layout=n,i}return Me(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){fd(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(Zie),jVt=it,GVt=gl.every,UVt=Qg,WVt=UVt("every");jVt({target:"Array",proto:!0,forced:!WVt},{every:function(r){return GVt(this,r,arguments.length>1?arguments[1]:void 0)}});var ZVt=zn,KVt=ZVt("Array").every,YVt=Gr,XVt=KVt,K6=Array.prototype,qVt=function(t){var r=t.every;return t===K6||YVt(K6,t)&&r===K6.every?XVt:r},QVt=qVt,JVt=QVt,ePt=JVt,Kie=Ge(ePt);function tPt(t,r){var e=typeof hl<"u"&&r2(t)||t["@@iterator"];if(!e){if(Kt(t)||(e=rPt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1161
1161
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function rPt(t,r){var e;if(t){if(typeof t=="string")return yF(t,r);var n=Ln(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return t2(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yF(t,r)}}function yF(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function nPt(t,r){var e=new xl;return Jt(t).call(t,function(n){var i;Jt(i=n.edges).call(i,function(o){o.connected&&e.add(o)})}),Jt(e).call(e,function(n){var i=n.from.id,o=n.to.id;r[i]==null&&(r[i]=0),(r[o]==null||r[i]>=r[o])&&(r[o]=r[i]+1)}),r}function iPt(t){return Yie(function(r){var e,n;return Kie(e=Ai(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function oPt(t){return Yie(function(r){var e,n;return Kie(e=Ai(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return e<r},"to",t)}function Yie(t,r,e,n){var i,o=ic(null),a=Uie(i=ha($ie(n).call(n))).call(i,function(d,f){return d+1+f.edges.length},0),s=e+"Id",l=e==="to"?1:-1,c=tPt(n),u;try{var g=function(){var f=zr(u.value,2),C=f[0],v=f[1];if(!n.has(C)||!t(v))return 0;o[C]=0;for(var A=[v],I=0,p,m=function(){var k,S;if(!n.has(C))return 0;var E=o[p.id]+l;if(Jt(k=Ai(S=p.edges).call(S,function(T){return T.connected&&T.to!==T.from&&T[e]!==p&&n.has(T.toId)&&n.has(T.fromId)})).call(k,function(T){var H=T[s],P=o[H];(P==null||r(E,P))&&(o[H]=E,A.push(T[e]))}),I>a)return{v:{v:nPt(n,o)}};++I},w;p=A.pop();)if(w=m(),w!==0&&w)return w.v},h;for(c.s();!(u=c.n()).done;)if(h=g(),h!==0&&h)return h.v}catch(d){c.e(d)}finally{c.f()}return o}var aPt=function(){function t(){_e(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Me(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var c=n.childrenReference[s];if(c.length>0)for(var u=0;u<c.length;u++)l=Math.max(l,a(c[u]))}return i[s]=l,l};return o(e)}},{key:"levelDownstream",value:function(e,n){this.levels[n.id]===void 0&&(this.levels[e.id]===void 0&&(this.levels[e.id]=0),this.levels[n.id]=this.levels[e.id]+1)}},{key:"setMinLevelToZero",value:function(e){var n=1e9;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.levels[i]!==void 0&&(n=Math.min(this.levels[i],n));for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.levels[o]!==void 0&&(this.levels[o]-=n)}},{key:"getTreeSize",value:function(e,n){var i=1e9,o=-1e9,a=1e9,s=-1e9;for(var l in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,l)&&this.trees[l]===n){var c=e[l];i=Math.min(c.x,i),o=Math.max(c.x,o),a=Math.min(c.y,a),s=Math.max(c.y,s)}return{min_x:i,max_x:o,min_y:a,max_y:s}}},{key:"hasSameParent",value:function(e,n){var i=this.parentReference[e.id],o=this.parentReference[n.id];if(i===void 0||o===void 0)return!1;for(var a=0;a<i.length;a++)for(var s=0;s<o.length;s++)if(i[a]==o[s])return!0;return!1}},{key:"inSameSubNetwork",value:function(e,n){return this.trees[e.id]===this.trees[n.id]}},{key:"getLevels",value:function(){return Mr(this.distributionOrdering)}},{key:"addToOrdering",value:function(e,n){this.distributionOrdering[n]===void 0&&(this.distributionOrdering[n]=[]);var i=!1,o=this.distributionOrdering[n];for(var a in o)if(o[a]===e){i=!0;break}i||(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1)}}]),t}(),sPt=function(){function t(r){_e(this,t),this.body=r,this._resetRNG(Math.random()+":"+qA()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},Yr(this.options,this.defaultOptions),this.bindEventListeners()}return Me(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",function(){if(e.options.hierarchical.enabled===!0){var n=e.direction.curveType();e.body.emitter.emit("_forceDisableDynamicCurves",n,!1)}})}},{key:"setOptions",value:function(e,n){if(e!==void 0){var i=this.options.hierarchical,o=i.enabled;if(eh(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),so(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return o===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),sr(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=v4(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):qt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;i<e.length;i++){var o=e[i],a=2*Math.PI*this._rng();o.x===void 0&&(o.x=n*Math.cos(a)),o.y===void 0&&(o.y=n*Math.sin(a))}}}},{key:"layoutNetwork",value:function(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){for(var e=this.body.nodeIndices,n=0,i=0;i<e.length;i++){var o=this.body.nodes[e[i]];o.predefinedPosition===!0&&(n+=1)}if(n<.5*e.length){var a=10,s=0,l=this.options.clusterThreshold,c={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(e.length>l){for(var u=e.length;e.length>l&&s<=a;){s+=1;var g=e.length;s%3===0?this.body.modules.clustering.clusterBridges(c):this.body.modules.clustering.clusterOutliers(c);var h=e.length;if(g==h&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=70,f=0;f<e.length;f++){var C=this.body.nodes[e[f]];C.predefinedPosition===!1&&(C.x+=(.5-this._rng())*d,C.y+=(.5-this._rng())*d)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var e=Xn.getRangeCore(this.body.nodes,this.body.nodeIndices),n=Xn.findCenter(e),i=0;i<this.body.nodeIndices.length;i++){var o=this.body.nodes[this.body.nodeIndices[i]];o.x-=n.x,o.y-=n.y}}},{key:"_declusterAll",value:function(){for(var e=!0;e===!0;){e=!1;for(var n=0;n<this.body.nodeIndices.length;n++)this.body.nodes[this.body.nodeIndices[n]].isCluster===!0&&(e=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[n],{},!1));e===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new aPt;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),m=0,w=0;w<p.length-1;w++){var M=p[w].max-p[w+1].min;m+=M+e.options.hierarchical.treeSpacing,a(w+1,m)}},a=function(p,m){var w=e.hierarchical.trees;for(var M in w)Object.prototype.hasOwnProperty.call(w,M)&&w[M]===p&&e.direction.shift(M,m)},s=function(){for(var p=[],m=0;m<e.hierarchical.numTrees();m++)p.push(e.direction.getTreeSize(m));return p},l=function I(p,m){if(!m[p.id]&&(m[p.id]=!0,e.hierarchical.childrenReference[p.id])){var w=e.hierarchical.childrenReference[p.id];if(w.length>0)for(var M=0;M<w.length;M++)I(e.body.nodes[w[M]],m)}},c=function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,w=1e9,M=1e9,k=1e9,S=-1e9;for(var E in p)if(Object.prototype.hasOwnProperty.call(p,E)){var T=e.body.nodes[E],H=e.hierarchical.levels[T.id],P=e.direction.getPosition(T),R=e._getSpaceAroundNode(T,p),N=zr(R,2),U=N[0],G=N[1];w=Math.min(U,w),M=Math.min(G,M),H<=m&&(k=Math.min(P,k),S=Math.max(P,S))}return[k,S,w,M]},u=function(p,m){var w=e.hierarchical.getMaxLevel(p.id),M=e.hierarchical.getMaxLevel(m.id);return Math.min(w,M)},g=function(p,m,w){for(var M=e.hierarchical,k=0;k<m.length;k++){var S=m[k],E=M.distributionOrdering[S];if(E.length>1)for(var T=0;T<E.length-1;T++){var H=E[T],P=E[T+1];M.hasSameParent(H,P)&&M.inSameSubNetwork(H,P)&&p(H,P,w)}}},h=function(p,m){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,M=e.direction.getPosition(p),k=e.direction.getPosition(m),S=Math.abs(k-M),E=e.options.hierarchical.nodeSpacing;if(S>E){var T={},H={};l(p,T),l(m,H);var P=u(p,m),R=c(T,P),N=c(H,P),U=R[1],G=N[0],K=N[2],te=Math.abs(U-G);if(te>E){var ze=U-G+E;ze<-K+E&&(ze=-K+E),ze<0&&(e._shiftBlock(m.id,ze),n=!0,w===!0&&e._centerParent(m))}}},d=function(p,m){for(var w=m.id,M=m.edges,k=e.hierarchical.levels[m.id],S=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},T=[],H=0;H<M.length;H++){var P=M[H];if(P.toId!=P.fromId){var R=P.toId==w?P.from:P.to;E[M[H].id]=R,e.hierarchical.levels[R.id]<k&&T.push(P)}}var N=function(De,$e){for(var Fe=0,We=0;We<$e.length;We++)if(E[$e[We].id]!==void 0){var st=e.direction.getPosition(E[$e[We].id])-De;Fe+=st/Math.sqrt(st*st+S)}return Fe},U=function(De,$e){for(var Fe=0,We=0;We<$e.length;We++)if(E[$e[We].id]!==void 0){var st=e.direction.getPosition(E[$e[We].id])-De;Fe-=S*Math.pow(st*st+S,-1.5)}return Fe},G=function(De,$e){for(var Fe=e.direction.getPosition(m),We={},st=0;st<De;st++){var bt=N(Fe,$e),X=U(Fe,$e),se=40,V=Math.max(-se,Math.min(se,Math.round(bt/X)));if(Fe=Fe-V,We[Fe]!==void 0)break;We[Fe]=st}return Fe},K=function(De){var $e=e.direction.getPosition(m);if(i[m.id]===void 0){var Fe={};l(m,Fe),i[m.id]=Fe}var We=c(i[m.id]),st=We[2],bt=We[3],X=De-$e,se=0;X>0?se=Math.min(X,bt-e.options.hierarchical.nodeSpacing):X<0&&(se=-Math.min(-X,st-e.options.hierarchical.nodeSpacing)),se!=0&&(e._shiftBlock(m.id,se),n=!0)},te=function(De){var $e=e.direction.getPosition(m),Fe=e._getSpaceAroundNode(m),We=zr(Fe,2),st=We[0],bt=We[1],X=De-$e,se=$e;X>0?se=Math.min($e+(bt-e.options.hierarchical.nodeSpacing),De):X<0&&(se=Math.max($e-(st-e.options.hierarchical.nodeSpacing),De)),se!==$e&&(e.direction.setPosition(m,se),n=!0)},ze=G(p,T);K(ze),ze=G(p,M),te(ze)},f=function(p){var m=e.hierarchical.getLevels();m=nc(m).call(m);for(var w=0;w<p;w++){n=!1;for(var M=0;M<m.length;M++)for(var k=m[M],S=e.hierarchical.distributionOrdering[k],E=0;E<S.length;E++)d(1e3,S[E]);if(n!==!0)break}},C=function(p){var m=e.hierarchical.getLevels();m=nc(m).call(m);for(var w=0;w<p&&(n=!1,g(h,m,!0),n===!0);w++);},v=function(){for(var p in e.body.nodes)Object.prototype.hasOwnProperty.call(e.body.nodes,p)&&e._centerParent(e.body.nodes[p])},A=function(){var p=e.hierarchical.getLevels();p=nc(p).call(p);for(var m=0;m<p.length;m++)for(var w=p[m],M=e.hierarchical.distributionOrdering[w],k=0;k<M.length;k++)e._centerParent(M[k])};this.options.hierarchical.blockShifting===!0&&(C(5),v()),this.options.hierarchical.edgeMinimization===!0&&f(20),this.options.hierarchical.parentCentralization===!0&&A(),o()}},{key:"_getSpaceAroundNode",value:function(e,n){var i=!0;n===void 0&&(i=!1);var o=this.hierarchical.levels[e.id];if(o!==void 0){var a=this.hierarchical.distributionIndex[e.id],s=this.direction.getPosition(e),l=this.hierarchical.distributionOrdering[o],c=1e9,u=1e9;if(a!==0){var g=l[a-1];if(i===!0&&n[g.id]===void 0||i===!1){var h=this.direction.getPosition(g);c=s-h}}if(a!=l.length-1){var d=l[a+1];if(i===!0&&n[d.id]===void 0||i===!1){var f=this.direction.getPosition(d);u=Math.min(u,f-s)}}return[c,u]}else return[0,0]}},{key:"_centerParent",value:function(e){if(this.hierarchical.parentReference[e.id])for(var n=this.hierarchical.parentReference[e.id],i=0;i<n.length;i++){var o=n[i],a=this.body.nodes[o],s=this.hierarchical.childrenReference[o];if(s!==void 0){var l=this._getCenterPosition(s),c=this.direction.getPosition(a),u=this._getSpaceAroundNode(a),g=zr(u,2),h=g[0],d=g[1],f=c-l;(f<0&&Math.abs(f)<d-this.options.hierarchical.nodeSpacing||f>0&&Math.abs(f)<h-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(a,l)}}}},{key:"_placeNodesByHierarchy",value:function(e){this.positionedNodes={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i,o=Mr(e[n]);o=this._indexArrayToNodes(o),fd(i=this.direction).call(i,o);for(var a=0,s=0;s<o.length;s++){var l=o[s];if(this.positionedNodes[l.id]===void 0){var c=this.options.hierarchical.nodeSpacing,u=c*a;a>0&&(u=this.direction.getPosition(o[s-1])+c),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;s<o.length;s++)a.push(this.body.nodes[o[s]]);fd(i=this.direction).call(i,a);for(var l=0;l<a.length;l++){var c=a[l],u=this.hierarchical.levels[c.id];if(u>n&&this.positionedNodes[c.id]===void 0){var g=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(a[l-1])+g,this.direction.setPosition(c,h,u),this._validatePositionAndContinue(c,u,h)}else return}var d=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-o<this.options.hierarchical.nodeSpacing){var a=o+this.options.hierarchical.nodeSpacing-i,s=this._findCommonParent(this.lastNodeOnLevel[n],e.id);this._shiftBlock(s.withChild,a)}}this.lastNodeOnLevel[n]=e.id,this.positionedNodes[e.id]=!0,this._placeBranchNodes(e.id,n)}}},{key:"_indexArrayToNodes",value:function(e){for(var n=[],i=0;i<e.length;i++)n.push(this.body.nodes[e[i]]);return n}},{key:"_getDistribution",value:function(){var e={},n,i;for(n in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,n)){i=this.body.nodes[n];var o=this.hierarchical.levels[n]===void 0?0:this.hierarchical.levels[n];this.direction.fix(i,o),e[o]===void 0&&(e[o]={}),e[o][n]=i}return e}},{key:"_getActiveEdges",value:function(e){var n=this,i=[];return pt(e.edges,function(o){var a;Ot(a=n.body.edgeIndices).call(a,o.id)!==-1&&i.push(o)}),i}},{key:"_getHubSizes",value:function(){var e=this,n={},i=this.body.nodeIndices;pt(i,function(a){var s=e.body.nodes[a],l=e._getActiveEdges(s).length;n[l]=!0});var o=[];return pt(n,function(a){o.push(Number(a))}),fd(o).call(o,function(a,s){return s-a}),o}},{key:"_determineLevelsByHubsize",value:function(){for(var e=this,n=function(l,c){e.hierarchical.levelDownstream(l,c)},i=this._getHubSizes(),o=function(){var l=i[a];if(l===0)return 1;pt(e.body.nodeIndices,function(c){var u=e.body.nodes[c];l===e._getActiveEdges(u).length&&e._crawlNetwork(n,c)})},a=0;a<i.length&&!o();++a);}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,n=1e5,i=function(s,l,c){},o=function(s,l,c){var u=e.hierarchical.levels[s.id];u===void 0&&(u=e.hierarchical.levels[s.id]=n);var g=i(Xn.cloneOptions(s,"node"),Xn.cloneOptions(l,"node"),Xn.cloneOptions(c,"edge"));e.hierarchical.levels[l.id]=u+g};this._crawlNetwork(o),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var e,n=this,i=Uie(e=this.body.nodeIndices).call(e,function(o,a){return o.set(a,n.body.nodes[a]),o},new die);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=oPt(i):this.hierarchical.levels=iPt(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var e=this,n=function(o,a){e.hierarchical.levels[a.id]>e.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var C,v=e._getActiveEdges(d),A=0;A<v.length;A++){var I=v[A];I.connected===!0&&(I.toId==d.id?C=I.from:C=I.to,d.id!=C.id&&(n(d,C,I),h(C,f)))}}};if(i===void 0)for(var s=0,l=0;l<this.body.nodeIndices.length;l++){var c=this.body.nodeIndices[l];if(o[c]===void 0){var u=this.body.nodes[c];a(u,s),s+=1}}else{var g=this.body.nodes[i];if(g===void 0){console.error("Node not found:",i);return}a(g)}}},{key:"_shiftBlock",value:function(e,n){var i=this,o={},a=function s(l){if(!o[l]){o[l]=!0,i.direction.shift(l,n);var c=i.hierarchical.childrenReference[l];if(c!==void 0)for(var u=0;u<c.length;u++)s(c[u])}};a(e)}},{key:"_findCommonParent",value:function(e,n){var i=this,o={},a=function l(c,u){var g=i.hierarchical.parentReference[u];if(g!==void 0)for(var h=0;h<g.length;h++){var d=g[h];c[d]=!0,l(c,d)}},s=function l(c,u){var g=i.hierarchical.parentReference[u];if(g!==void 0)for(var h=0;h<g.length;h++){var d=g[h];if(c[d]!==void 0)return{foundParent:d,withChild:u};var f=l(c,d);if(f.foundParent!==null)return f}return{foundParent:null,withChild:u}};return a(o,e),s(o,n)}},{key:"setDirectionStrategy",value:function(){var e=this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU";e?this.direction=new FVt(this):this.direction=new BVt(this)}},{key:"_getCenterPosition",value:function(e){for(var n=1e9,i=-1e9,o=0;o<e.length;o++){var a=void 0;if(e[o].id!==void 0)a=e[o];else{var s=e[o];a=this.body.nodes[s]}var l=this.direction.getPosition(a);n=Math.min(n,l),i=Math.max(i,l)}return .5*(n+i)}}]),t}();function lPt(t,r){var e=typeof hl<"u"&&r2(t)||t["@@iterator"];if(!e){if(Kt(t)||(e=cPt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1162
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function cPt(t,r){var e;if(t){if(typeof t=="string")return bF(t,r);var n=Ln(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return t2(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bF(t,r)}}function bF(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var uPt=function(){function t(r,e,n,i){var o=this,a,s;_e(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Yr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",Ie(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",Ie(s=this._restore).call(s,this))}return Me(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,i){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=i.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,sr(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler.getSelectedNodeCount(),o=this.selectionHandler.getSelectedEdgeCount(),a=i+o,s=this.options.locales[this.options.locale],l=!1;this.options.addNode!==!1&&(this._createAddNodeButton(s),l=!0),this.options.addEdge!==!1&&(l===!0?this._createSeperator(1):l=!0,this._createAddEdgeButton(s)),i===1&&typeof this.options.editNode=="function"?(l===!0?this._createSeperator(2):l=!0,this._createEditNodeButton(s)):o===1&&i===0&&this.options.editEdge!==!1&&(l===!0?this._createSeperator(3):l=!0,this._createEditEdgeButton(s)),a!==0&&(i>0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,Ie(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Ie(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Ie(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Ie(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=sr({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Ie(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",Ie(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Ie(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Ie(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",Ie(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",Ie(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",qt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Ie(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,c=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(c.from.x,c.from.y),g=this._getNewTargetNode(c.to.x,c.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(g.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[g.id]=g,this.body.nodeIndices.push(g.id),this._temporaryBindUI("onTouch",Ie(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Ie(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",Ie(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",Ie(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=c.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),g.selected===!1&&(g.x=d.to.x,g.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a<n.length;a++)if(this.body.nodes[n[a]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(o=this.options.deleteNode)}else i.length>0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var i=sr({},this.options.controlNodeStyle);i.id="targetNode"+hd(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},i1(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,Ie(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(i1(this.editModeDiv),i1(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=lPt(hs(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),i1(this.manipulationDiv),i1(this.editModeDiv),i1(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Ie(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+K0(Mr(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,i=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,i)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var i=new pu(e,{});oI(i,n),this._domEventListenerCleanupQueue.push(function(){i.destroy()});var o=function(s){var l=s.keyCode,c=s.key;(c==="Enter"||c===" "||l===13||l===32)&&n()};e.addEventListener("keyup",o,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",o,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var i=Ot(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;hs(o=this.body.edgeIndices).call(o,i,1)}}for(var a=0;a<this.temporaryIds.nodes.length;a++){var s;delete this.body.nodes[this.temporaryIds.nodes[a]];var l=Ot(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var c;hs(c=this.body.nodeIndices).call(c,l,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Yr({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),i=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],a=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var s=i.isOverlappingWith(n),l=o.isOverlappingWith(n);s===!0?(this.selectedControlNode=i,a.edgeType.from=i):l===!0&&(this.selectedControlNode=o,a.edgeType.to=o),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),i=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var c=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===c.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Yr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+hd(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Ot(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Ot(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:hd(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(qt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),we="string",Ce="boolean",J="number",Oh="array",je="object",Xie="dom",gPt="any",Y6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],X6={borderWidth:{number:J},borderWidthSelected:{number:J,undefined:"undefined"},brokenImage:{string:we,undefined:"undefined"},chosen:{label:{boolean:Ce,function:"function"},node:{boolean:Ce,function:"function"},__type__:{object:je,boolean:Ce}},color:{border:{string:we},background:{string:we},highlight:{border:{string:we},background:{string:we},__type__:{object:je,string:we}},hover:{border:{string:we},background:{string:we},__type__:{object:je,string:we}},__type__:{object:je,string:we}},opacity:{number:J,undefined:"undefined"},fixed:{x:{boolean:Ce},y:{boolean:Ce},__type__:{object:je,boolean:Ce}},font:{align:{string:we},color:{string:we},size:{number:J},face:{string:we},background:{string:we},strokeWidth:{number:J},strokeColor:{string:we},vadjust:{number:J},multi:{boolean:Ce,string:we},bold:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},boldital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},ital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},mono:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},__type__:{object:je,string:we}},group:{string:we,number:J,undefined:"undefined"},heightConstraint:{minimum:{number:J},valign:{string:we},__type__:{object:je,boolean:Ce,number:J}},hidden:{boolean:Ce},icon:{face:{string:we},code:{string:we},size:{number:J},color:{string:we},weight:{string:we,number:J},__type__:{object:je}},id:{string:we,number:J},image:{selected:{string:we,undefined:"undefined"},unselected:{string:we,undefined:"undefined"},__type__:{object:je,string:we}},imagePadding:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:je,number:J}},label:{string:we,undefined:"undefined"},labelHighlightBold:{boolean:Ce},level:{number:J,undefined:"undefined"},margin:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:je,number:J}},mass:{number:J},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:je,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:je}},shadow:{enabled:{boolean:Ce},color:{string:we},size:{number:J},x:{number:J},y:{number:J},__type__:{object:je,boolean:Ce}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Ce,array:Oh},borderRadius:{number:J},interpolation:{boolean:Ce},useImageSize:{boolean:Ce},useBorderWithImage:{boolean:Ce},coordinateOrigin:{string:["center","top-left"]},__type__:{object:je}},size:{number:J},title:{string:we,dom:Xie,undefined:"undefined"},value:{number:J,undefined:"undefined"},widthConstraint:{minimum:{number:J},maximum:{number:J},__type__:{object:je,boolean:Ce,number:J}},x:{number:J},y:{number:J},__type__:{object:je}},hPt={configure:{enabled:{boolean:Ce},filter:{boolean:Ce,string:we,array:Oh,function:"function"},container:{dom:Xie},showButton:{boolean:Ce},__type__:{object:je,boolean:Ce,string:we,array:Oh,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageHeight:{number:J},imageWidth:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},middle:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageWidth:{number:J},imageHeight:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},from:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageWidth:{number:J},imageHeight:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},__type__:{string:["from","to","middle"],object:je}},endPointOffset:{from:{number:J},to:{number:J},__type__:{object:je,number:J}},arrowStrikethrough:{boolean:Ce},background:{enabled:{boolean:Ce},color:{string:we},size:{number:J},dashes:{boolean:Ce,array:Oh},__type__:{object:je,boolean:Ce}},chosen:{label:{boolean:Ce,function:"function"},edge:{boolean:Ce,function:"function"},__type__:{object:je,boolean:Ce}},color:{color:{string:we},highlight:{string:we},hover:{string:we},inherit:{string:["from","to","both"],boolean:Ce},opacity:{number:J},__type__:{object:je,string:we}},dashes:{boolean:Ce,array:Oh},font:{color:{string:we},size:{number:J},face:{string:we},background:{string:we},strokeWidth:{number:J},strokeColor:{string:we},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:J},multi:{boolean:Ce,string:we},bold:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},boldital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},ital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},mono:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},__type__:{object:je,string:we}},hidden:{boolean:Ce},hoverWidth:{function:"function",number:J},label:{string:we,undefined:"undefined"},labelHighlightBold:{boolean:Ce},length:{number:J,undefined:"undefined"},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:je,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:je}},selectionWidth:{function:"function",number:J},selfReferenceSize:{number:J},selfReference:{size:{number:J},angle:{number:J},renderBehindTheNode:{boolean:Ce},__type__:{object:je}},shadow:{enabled:{boolean:Ce},color:{string:we},size:{number:J},x:{number:J},y:{number:J},__type__:{object:je,boolean:Ce}},smooth:{enabled:{boolean:Ce},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:J},forceDirection:{string:["horizontal","vertical","none"],boolean:Ce},__type__:{object:je,boolean:Ce}},title:{string:we,undefined:"undefined"},width:{number:J},widthConstraint:{maximum:{number:J},__type__:{object:je,boolean:Ce,number:J}},value:{number:J,undefined:"undefined"},__type__:{object:je}},groups:{useDefaultGroups:{boolean:Ce},__any__:X6,__type__:{object:je}},interaction:{dragNodes:{boolean:Ce},dragView:{boolean:Ce},hideEdgesOnDrag:{boolean:Ce},hideEdgesOnZoom:{boolean:Ce},hideNodesOnDrag:{boolean:Ce},hover:{boolean:Ce},keyboard:{enabled:{boolean:Ce},speed:{x:{number:J},y:{number:J},zoom:{number:J},__type__:{object:je}},bindToWindow:{boolean:Ce},autoFocus:{boolean:Ce},__type__:{object:je,boolean:Ce}},multiselect:{boolean:Ce},navigationButtons:{boolean:Ce},selectable:{boolean:Ce},selectConnectedEdges:{boolean:Ce},hoverConnectedEdges:{boolean:Ce},tooltipDelay:{number:J},zoomView:{boolean:Ce},zoomSpeed:{number:J},__type__:{object:je}},layout:{randomSeed:{undefined:"undefined",number:J,string:we},improvedLayout:{boolean:Ce},clusterThreshold:{number:J},hierarchical:{enabled:{boolean:Ce},levelSeparation:{number:J},nodeSpacing:{number:J},treeSpacing:{number:J},blockShifting:{boolean:Ce},edgeMinimization:{boolean:Ce},parentCentralization:{boolean:Ce},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:je,boolean:Ce}},__type__:{object:je}},manipulation:{enabled:{boolean:Ce},initiallyActive:{boolean:Ce},addNode:{boolean:Ce,function:"function"},addEdge:{boolean:Ce,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:je,boolean:Ce,function:"function"}},deleteNode:{boolean:Ce,function:"function"},deleteEdge:{boolean:Ce,function:"function"},controlNodeStyle:X6,__type__:{object:je,boolean:Ce}},nodes:X6,physics:{enabled:{boolean:Ce},barnesHut:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},forceAtlas2Based:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},repulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},__type__:{object:je}},hierarchicalRepulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},maxVelocity:{number:J},minVelocity:{number:J},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Ce},iterations:{number:J},updateInterval:{number:J},onlyDynamicEdges:{boolean:Ce},fit:{boolean:Ce},__type__:{object:je,boolean:Ce}},timestep:{number:J},adaptiveTimestep:{boolean:Ce},wind:{x:{number:J},y:{number:J},__type__:{object:je}},__type__:{object:je,boolean:Ce}},autoResize:{boolean:Ce},clickToUse:{boolean:Ce},locale:{string:we},locales:{__any__:{any:gPt},__type__:{object:je}},height:{string:we},width:{string:we},__type__:{object:je}},qie={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},dPt=function(r,e,n){var i;return!!(E1(r).call(r,"physics")&&E1(i=qie.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},fPt=function(){function t(){_e(this,t)}return Me(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s<n.length;s++){var l=n[s],c={};o[l]=c;for(var u=0;u<n.length;u++)c[n[u]]=s==u?0:1e9}for(var g=0;g<i.length;g++){var h=a[i[g]];h.connected===!0&&o[h.fromId]!==void 0&&o[h.toId]!==void 0&&(o[h.fromId][h.toId]=1,o[h.toId][h.fromId]=1)}for(var d=n.length,f=0;f<d;f++)for(var C=n[f],v=o[C],A=0;A<d-1;A++)for(var I=n[A],p=o[I],m=A+1;m<d;m++){var w=n[m],M=o[w],k=Math.min(p[w],p[C]+v[w]);p[w]=k,M[I]=k}return o}}]),t}(),CPt=function(){function t(r,e,n){_e(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new fPt}return Me(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,c=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,g=1e9,h=0,d=0,f=0,C=0,v=0;g>a&&l<c;){l+=1;var A=this._getHighestEnergyNode(i),I=zr(A,4);for(h=I[0],g=I[1],d=I[2],f=I[3],C=g,v=0;C>s&&v<u;){v+=1,this._moveNode(h,d,f);var p=this._getEnergy(h),m=zr(p,3);C=m[0],d=m[1],f=m[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=0,a=n[0],s=0,l=0,c=0;c<n.length;c++){var u=n[c];if(i[u].predefinedPosition!==!0||i[u].isCluster===!0&&e===!0||i[u].options.fixed.x!==!0||i[u].options.fixed.y!==!0){var g=this._getEnergy(u),h=zr(g,3),d=h[0],f=h[1],C=h[2];o<d&&(o=d,a=u,s=f,l=C)}}return[a,o,s,l]}},{key:"_getEnergy",value:function(e){var n=zr(this.E_sums[e],2),i=n[0],o=n[1],a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return[a,i,o]}},{key:"_moveNode",value:function(e,n,i){for(var o=this.body.nodeIndices,a=this.body.nodes,s=0,l=0,c=0,u=a[e].x,g=a[e].y,h=this.K_matrix[e],d=this.L_matrix[e],f=0;f<o.length;f++){var C=o[f];if(C!==e){var v=a[C].x,A=a[C].y,I=h[C],p=d[C],m=1/Math.pow(Math.pow(u-v,2)+Math.pow(g-A,2),1.5);s+=I*(1-p*Math.pow(g-A,2)*m),l+=I*(p*(u-v)*(g-A)*m),c+=I*(1-p*Math.pow(u-v,2)*m)}}var w=s,M=l,k=n,S=c,E=i,T=(k/w+E/M)/(M/w-S/M),H=-(M*T+k)/w;a[e].x+=H,a[e].y+=T,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var o=0;o<n.length;o++){this.L_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.L_matrix[n[o]][n[a]]=i*e[n[o]][n[a]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var o=0;o<n.length;o++){this.K_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.K_matrix[n[o]][n[a]]=i*Math.pow(e[n[o]][n[a]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<e.length;i++)this.E_matrix[e[i]]=[];for(var o=0;o<e.length;o++){for(var a=e[o],s=n[a].x,l=n[a].y,c=0,u=0,g=o;g<e.length;g++){var h=e[g];if(h!==a){var d=n[h].x,f=n[h].y,C=1/Math.sqrt(Math.pow(s-d,2)+Math.pow(l-f,2));this.E_matrix[a][g]=[this.K_matrix[a][h]*(s-d-this.L_matrix[a][h]*(s-d)*C),this.K_matrix[a][h]*(l-f-this.L_matrix[a][h]*(l-f)*C)],this.E_matrix[h][o]=this.E_matrix[a][g],c+=this.E_matrix[a][g][0],u+=this.E_matrix[a][g][1]}}this.E_sums[a]=[c,u]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=this.E_matrix[e],a=this.K_matrix[e],s=this.L_matrix[e],l=i[e].x,c=i[e].y,u=0,g=0,h=0;h<n.length;h++){var d=n[h];if(d!==e){var f=o[h],C=f[0],v=f[1],A=i[d].x,I=i[d].y,p=1/Math.sqrt(Math.pow(l-A,2)+Math.pow(c-I,2)),m=a[d]*(l-A-s[d]*(l-A)*p),w=a[d]*(c-I-s[d]*(c-I)*p);o[h]=[m,w],u+=m,g+=w;var M=this.E_sums[d];M[0]+=m-C,M[1]+=w-v}}this.E_sums[e]=[u,g]}}]),t}();function Re(t,r,e){var n,i,o,a,s=this;if(!(this instanceof Re))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:hEt,clickToUse:!1},Yr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Ie(n=this.on).call(n,this),off:Ie(i=this.off).call(i,this),emit:Ie(o=this.emit).call(o,this),once:Ie(a=this.once).call(a,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new CEt(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new LSt,this.canvas=new Yxt(this.body),this.selectionHandler=new DHt(this.body,this.canvas),this.interactionHandler=new tHt(this.body,this.canvas,this.selectionHandler),this.view=new qxt(this.body,this.canvas),this.renderer=new Gxt(this.body,this.canvas),this.physics=new xxt(this.body),this.layoutEngine=new sPt(this.body),this.clustering=new Bxt(this.body),this.manipulation=new uPt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new AOt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new $xt(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new CPt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}Xte(Re.prototype);Re.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=jzt.validate(t,hPt);e===!0&&console.error("%cErrors have been found in the supplied options object.",Jne);var n=["locale","locales","clickToUse"];if(eh(n,this.options,t),t.locale!==void 0&&(t.locale=dEt(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new Fzt(this,this.body.container,qie,this.canvas.pixelRatio,dPt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};sr(i.nodes,this.nodesHandler.options),sr(i.edges,this.edgesHandler.options),sr(i.layout,this.layoutEngine.options),sr(i.interaction,this.selectionHandler.options),sr(i.interaction,this.renderer.options),sr(i.interaction,this.interactionHandler.options),sr(i.manipulation,this.manipulation.options),sr(i.physics,this.physics.options),sr(i.global,this.canvas.options),sr(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new Nzt(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};Re.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n],o=t[i.fromId],a=t[i.toId],s=o!==void 0&&a!==void 0,l=!this.clustering._isClusteredEdge(n)&&i.options.hidden===!1&&s&&o.options.hidden===!1&&a.options.hidden===!1;l&&this.body.edgeIndices.push(i.id)}};Re.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};Re.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=Jzt(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=eEt(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};Re.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];i1(this.body.container)};Re.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,i=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r].getValue();o!==void 0&&(e=e===void 0?o:Math.min(o,e),n=n===void 0?o:Math.max(o,n),i+=o)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,i)};Re.prototype.isActive=function(){return!this.activator||this.activator.active};Re.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Re.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Re.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Re.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Re.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Re.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Re.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Re.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Re.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Re.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Re.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};Re.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};Re.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};Re.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};Re.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};Re.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Re.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Re.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Re.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Re.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Re.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Re.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};Re.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Re.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Re.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Re.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Re.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};Re.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Re.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Re.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Re.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};Re.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Re.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Re.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Re.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Re.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Re.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Re.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};Re.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};Re.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Re.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Re.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Re.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Re.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};Re.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Re.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Re.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Re.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Re.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Re.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Re.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Re.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const vPt={flex:"~ col",relative:"","h-full":"","of-hidden":"","panel-grids":"",class:"graph-body"},APt=he({__name:"graph",setup(t){async function r(){const s=await Oo.value.getRoot().then(l=>l);Oo.value.getGraphModules().then(l=>{oqe(l,s)})}function e(){r()}tG(()=>{r(),Oo.functions.on("graphModuleUpdated",e)});const n=Z(),i=Zi();function o(){const s=n.value,l=i.value=new Re(s,{nodes:Nu,edges:Fu},iH.value);Qe(iH,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{lqe(c.nodes[0]),cy(!0)}),l.on("deselectNode",()=>{cy(!1)}),Qe(()=>ju.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}wi(()=>{o()}),pn(()=>{rqe(),i.value?.destroy(),Oo.functions.off("graphModuleUpdated",e)});const a=Z();return(s,l)=>{const c=wqe,u=yqe,g=mqe;return $(),L("div",vPt,[D(c,{ref_key:"navbarRef",ref:a},null,512),b("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),IPt={},pPt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mPt(t,r){return $(),L("svg",pPt,r[0]||(r[0]=[XB('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2)]))}const Qie=VI(IPt,[["render",mPt]]);function DM(){return If?"electron":Sa?"chrome":EF?"iframe":"separate-window"}const yPt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},bPt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},wPt={"max-w-190":"","text-lg":""},$Pt=he({__name:"index",setup(t){const r=DM(),e=Sc(),n=Ir;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=Qie;return y(r)==="chrome"?($(),L("div",yPt,[a[1]||(a[1]=b("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=b("p",{"max-w-190":"","text-lg":""},[Ee(" This new version supports only Vue 3. "),b("span",{op50:""},[Ee(" (Learn more at "),b("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),Ee(") ")]),b("br"),Ee(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),b("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),Ee(". ")],-1)),D(y(ht),{type:"primary",onClick:i},{default:Y(()=>a[0]||(a[0]=[b("span",null,"Get Started",-1)])),_:1})])):($(),L("div",bPt,[a[6]||(a[6]=b("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),b("p",wPt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=Ee(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!")),a[4]||(a[4]=b("br",null,null,-1))]),a[7]||(a[7]=b("p",{mb6:"",op50:""},[Ee(" Learn more at "),b("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ht),{type:"primary",onClick:i},{default:Y(()=>a[5]||(a[5]=[b("span",null,"Get Started",-1)])),_:1})]))}}}),_Pt="7.6.6",MPt={"h-full":"","w-full":"",flex:"","of-auto":""},zPt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},EPt={flex:"~ col","mt-20":"","items-center":""},SPt={flex:"~","mt--10":"","items-center":"","justify-center":""},TPt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},kPt={op40:""},LPt={flex:"~ gap2 wrap"},OPt={p4:"","theme-card-green":"",flex:"~ col auto"},xPt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},HPt={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},VPt={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},PPt=he({__name:"overview",setup(t){const{vueVersion:r}=Yi(),e=Z(1),n=Z(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=rn(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return gw(()=>{ge.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),ge.functions.on(Zt.ROUTER_INFO_UPDATED,o),ge.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=rn(s);n.value=i(l)})}),ge.functions.on(Zt.INSPECTOR_TREE_UPDATED,a),pn(()=>{ge.functions.off(Zt.INSPECTOR_TREE_UPDATED,a),ge.functions.off(Zt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=Qie,u=Uo("RouterLink");return $(),L("div",MPt,[b("div",zPt,[l[29]||(l[29]=b("div",{"flex-auto":""},null,-1)),b("div",EPt,[b("div",SPt,[D(c,{"h-18":""})]),y(Sa)?oe("",!0):($(),L("div",TPt,[l[0]||(l[0]=b("span",{op40:""}," Vue DevTools ",-1)),b("code",kPt,"v"+Te(y(_Pt)),1)]))]),b("div",LPt,[b("div",OPt,[l[1]||(l[1]=b("div",{"i-logos-vue":"","text-3xl":""},null,-1)),b("code",null,"v"+Te(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[2]||(l[2]=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),b("div",null,Te(y(e))+" pages",1)]),_:1}),y(n)?($(),ae(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[3]||(l[3]=b("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),b("div",null,Te(y(n))+" components",1)]),_:1})):oe("",!0)]),b("div",xPt,[l[5]||(l[5]=b("a",{href:"https://github.com/vuejs/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),Ee(" Star on GitHub ")],-1)),l[6]||(l[6]=b("a",{href:"https://github.com/vuejs/devtools/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-data-enrichment":""}),Ee(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=b("a",{href:"https://github.com/vuejs/devtools/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[b("div",{"i-carbon-plan":""}),Ee(" Project Roadmap ")],-1)),l[8]||(l[8]=b("a",{href:"https://github.com/vuejs/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[b("div",{"i-carbon-debug":""}),Ee(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:Y(()=>l[4]||(l[4]=[b("div",{"i-carbon-settings":""},null,-1),Ee(" Settings ")])),_:1})]),l[30]||(l[30]=b("div",{"flex-auto":""},null,-1)),b("div",HPt,[l[15]||(l[15]=Ee(" Press ")),y(GM)()?($(),L(ke,{key:0},[D(y(ht),null,{default:Y(()=>l[9]||(l[9]=[Ee(" ⌘ Command ")])),_:1}),l[11]||(l[11]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[10]||(l[10]=[Ee(" K ")])),_:1})],64)):($(),L(ke,{key:1},[D(y(ht),null,{default:Y(()=>l[12]||(l[12]=[Ee(" Alt ")])),_:1}),l[14]||(l[14]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[13]||(l[13]=[Ee(" K ")])),_:1})],64)),l[16]||(l[16]=Ee(" to toggle Command Palette "))]),!y(If)&&!y(Sa)?($(),L("div",VPt,[l[27]||(l[27]=Ee(" Press ")),y(GM)()?($(),L(ke,{key:0},[D(y(ht),null,{default:Y(()=>l[17]||(l[17]=[Ee(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[18]||(l[18]=[Ee(" ⌥ Option ")])),_:1}),l[21]||(l[21]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[19]||(l[19]=[Ee(" D ")])),_:1})],64)):($(),L(ke,{key:1},[D(y(ht),null,{default:Y(()=>l[22]||(l[22]=[Ee(" Shift ")])),_:1}),l[25]||(l[25]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[23]||(l[23]=[Ee(" Alt ")])),_:1}),l[26]||(l[26]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[24]||(l[24]=[Ee(" D ")])),_:1})],64)),l[28]||(l[28]=Ee(" to toggle DevTools "))])):oe("",!0)])])}}}),RPt={"p-2":""},DPt={class:"flex items-center justify-between"},NPt=he({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>($(),L("div",RPt,[b("div",DPt,[e[1]||(e[1]=b("span",{class:"font-500"},"Route meta detail",-1)),b("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(Pw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),FPt={block:"","cursor-pointer":""},BPt={p2:""},jPt=["onSubmit"],GPt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},UPt={key:1},WPt=he({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=Z([]),a=W(()=>i(e.route.path));vn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=W(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=W(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?($(),ae(y(Tu),{key:1},{popper:Y(({hide:h})=>[b("div",BPt,[b("form",{flex:"~ col",onSubmit:Qn(()=>{c(),h()},["prevent"])},[y(l)?($(),L(ke,{key:0},[g[0]||(g[0]=b("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),b("div",GPt,[($(!0),L(ke,null,yt(y(a),(d,f)=>($(),L(ke,{key:f},[d[0]===":"?($(),ae(y(Ki),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):($(),L("span",UPt,Te(d),1))],64))),128))])],64)):oe("",!0),D(y(ht),{block:"",type:"primary"},{default:Y(()=>g[1]||(g[1]=[Ee(" Navigate ")])),_:1})],40,jPt)])]),default:Y(()=>[b("code",FPt,[($(!0),L(ke,null,yt(y(a),(h,d)=>($(),L("span",{key:d,class:Le(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},Te(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):($(),L("button",{key:0,onClick:c},[b("code",null,Te(u.route.path),1)]))}}),ZPt={"w-full":""},KPt={border:"b base","px-3":""},YPt={key:0,"text-left":""},XPt={"w-20":"","pr-1":""},qPt={flex:"","items-center":"","justify-end":""},QPt={"text-sm":""},JPt={flex:"inline gap3","items-center":""},eRt={op0:"","group-hover:op100":"",flex:"~ gap1"},tRt=["onClick"],rRt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},nRt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},iRt=["title","onClick"],oRt=he({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=W(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=W(()=>wI.value),i=Yi();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=W(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=WPt;return $(),L("div",null,[b("table",ZPt,[b("thead",KPt,[b("tr",null,[l[1]||(l[1]=b("th",{"text-left":""},null,-1)),l[2]||(l[2]=b("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=b("th",{"text-left":""}," Name ",-1)),y(a)?($(),L("th",YPt," Route Meta ")):oe("",!0)])]),b("tbody",null,[($(!0),L(ke,null,yt(y(e),u=>($(),L("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[b("td",XPt,[b("div",qPt,[s.matched.find(g=>g.name===u.name)?($(),ae(y(yT),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?($(),ae(y(yT),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):oe("",!0)])]),b("td",QPt,[b("div",JPt,[D(c,{route:u,class:Le(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),b("div",eRt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?($(),L("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(Sd)(u.meta?.file)},l[4]||(l[4]=[b("div",{"i-carbon-script-reference":""},null,-1)]),8,tRt)):oe("",!0)])])]),b("td",rRt,Te(u.name),1),y(a)?($(),L("td",nRt,[b("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},Te(o(u.meta)),9,iRt)])):oe("",!0)]))),128))])])])}}}),aRt={block:"","h-screen":"","of-auto":""},sRt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},lRt={border:"b base",flex:"~ col gap1",px4:"",py3:""},cRt={key:1,op50:""},uRt={key:0,"text-orange":"",op75:""},gRt={key:1,op50:""},hRt=he({__name:"pages",setup(t){const r=Z(""),e=Z(null),n=Z([]),i=W(()=>r.value===e.value?.path?[]:n.value),o=Z([]),a=Z();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){ge.value.navigate(u)}return gw(()=>{ge.value.getRouterInfo().then(u=>{s(u)}),ge.functions.on(Zt.ROUTER_INFO_UPDATED,s)}),WG(r,()=>{r.value!==e.value?.path&&ge.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),pn(()=>{ge.functions.off(Zt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=oRt,d=bW,f=NPt;return $(),L("div",aRt,[b("div",sRt,[b("div",lRt,[b("div",null,[($(),L("span",cRt,"Current route"))]),D(y(Ki),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>rt(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Le(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:ij(l,["enter"])},null,8,["modelValue","class"]),b("div",null,[y(e)?.path!==y(r)?($(),L(ke,{key:0},[g[6]||(g[6]=b("span",null,[Ee("Press "),b("b",{"font-bold":""},"Enter"),Ee(" to navigate")],-1)),y(i).length?oe("",!0):($(),L("span",uRt," (no match)"))],64)):($(),L("span",gRt,"Edit path above to navigate"))])]),D(y(Y1),{class:"of-hidden"},{default:Y(()=>[D(y(An),{size:"70",class:"of-auto!"},{default:Y(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:Y(()=>[y(o).length?($(),ae(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):oe("",!0)]),_:1},8,["description"])]),_:1}),y(a)?($(),ae(y(An),{key:0,size:"30",class:"of-auto!"},{default:Y(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):oe("",!0)]),_:1})])])}}}),dRt=he({__name:"pinia",setup(t){return(r,e)=>($(),ae(y(G8e)))}}),fRt=he({__name:"router",setup(t){const{registeredInspector:r}=hZ(),e=W(()=>r.value?.find(i=>i.packageName==="vue-router")),n=W(()=>e.value?.id);return(i,o)=>($(),ae(y(l7e),{id:y(n)},null,8,["id"]))}}),CRt=["src","alt"],vRt=["title"],wF="custom-ic-",rC=he({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=Z(r.icon);Qe(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(yoe)(y(e))?($(),L("img",en({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,CRt)):y(e)?.startsWith(wF)?($(),ae(y(hc),en({key:1,name:y(e).slice(wF.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):($(),L("div",en({key:2,style:{width:"1em",height:"1em"}},i.$attrs,{class:y(e)||"i-carbon-bring-forward",title:i.showTitle?i.title:void 0}),null,16,vRt))}}),ARt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},IRt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},pRt={flex:"~ col gap-2"},mRt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},yRt={capitalize:"",op75:""},bRt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},wRt=["onClick"],$Rt=["onClick"],_Rt=["onClick"],MRt={flex:"~ col gap-2"},zRt={flex:"~ gap2"},ERt={class:"flex items-center gap2 text-sm"},SRt={class:"flex items-center gap2 text-sm"},TRt={class:"flex items-center gap2 text-sm"},kRt={class:"flex items-center gap2 text-sm"},LRt={flex:"~ gap-2"},ORt=he({__name:"settings",setup(t){const{categorizedTabs:r}=Pf(),e=DM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=n8(rhe(Ir)),u=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],g=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:d,pinnedTabs:f}=n8(Ir.value.tabSettings);function C(k,S){S?d.value=d.value.filter(E=>E!==k):d.value.push(k)}function v(k,S){S?h.value=h.value.filter(E=>E!==k):h.value.push(k)}function A(k){f.value.includes(k)?f.value=f.value.filter(S=>S!==k):f.value.push(k)}function I(k,S){const E=f.value.indexOf(k);if(E===-1)return;const T=E+S;if(T<0||T>=f.value.length)return;const H=[...f.value];H.splice(E,1),H.splice(T,0,k),f.value=H}const p=Z(!1);async function m(){z7e(),window.location.reload()}const w=g.map(([k,S])=>({label:k,value:S})),M=W(()=>`${w.find(S=>S.value===s.value)?.label??"Select..."}`);return(k,S)=>{const E=Dw,T=rC;return $(),L("div",ARt,[D(E,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),b("div",IRt,[b("div",pRt,[S[12]||(S[12]=b("h3",{"text-lg":""}," Tabs ",-1)),($(!0),L(ke,null,yt(y(r),([{name:H,hidden:P},R])=>($(),L(ke,{key:H},[R.length?($(),ae(y(X5),{key:0,p3:"",flex:"~ col gap-1",class:Le(P?"op50 grayscale":"")},{default:Y(()=>[D(y(J8),{"model-value":!y(h).includes(H),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":N=>v(H,N)},{default:Y(()=>[b("div",mRt,[b("span",yRt,Te(H),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),S[11]||(S[11]=b("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),($(!0),L(ke,null,yt(R,N=>($(),ae(y(J8),{key:N.name,class:Le(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",N.hidden?"op35":""]),"model-value":!y(d).includes(N.name),"onUpdate:modelValue":U=>C(N.name,U)},{default:Y(()=>[b("div",bRt,[D(T,{"text-xl":"",icon:N.icon,fallback:N.fallbackIcon,title:N.title},null,8,["icon","fallback","title"]),b("span",null,Te(N.title),1),S[10]||(S[10]=b("div",{"flex-auto":""},null,-1)),y(f).includes(N.name)?($(),L(ke,{key:0},[b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(()=>{y(f).indexOf(N.name)!==0&&I(N.name,-1)},["stop"])},S[8]||(S[8]=[b("div",{class:"i-carbon-caret-up"},null,-1)]),8,wRt),b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(()=>{y(f).indexOf(N.name)!==y(f).length-1&&I(N.name,1)},["stop"])},S[9]||(S[9]=[b("div",{class:"i-carbon-caret-down"},null,-1)]),8,$Rt)],64)):oe("",!0),b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(U=>A(N.name),["stop"])},[b("div",{class:Le(y(f).includes(N.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,_Rt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):oe("",!0)],64))),128))]),b("div",MRt,[S[25]||(S[25]=b("h3",{"text-lg":""}," Appearance ",-1)),D(y(X5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[b("div",zRt,[D(y(AW),null,{default:Y(({isDark:H,toggle:P})=>[D(y(ht),{outlined:"",type:"primary",onClick:P},{default:Y(()=>[S[13]||(S[13]=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Ee(" "+Te(H?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),S[16]||(S[16]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),S[17]||(S[17]=b("p",null,"UI Scale",-1)),b("div",null,[D(y(Fd),{modelValue:y(i),"onUpdate:modelValue":S[0]||(S[0]=H=>rt(i)?i.value=H:null),options:u.map(([H,P])=>({label:H,value:P})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),S[18]||(S[18]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),b("div",ERt,[D(y(O2),{modelValue:y(l),"onUpdate:modelValue":S[1]||(S[1]=H=>rt(l)?l.value=H:null)},null,8,["modelValue"]),S[14]||(S[14]=b("span",{op75:""},"Expand Sidebar",-1))]),b("div",SRt,[D(y(O2),{modelValue:y(c),"onUpdate:modelValue":S[2]||(S[2]=H=>rt(c)?c.value=H:null)},null,8,["modelValue"]),S[15]||(S[15]=b("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?($(),L(ke,{key:0},[S[23]||(S[23]=b("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(X5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[b("div",TRt,[D(y(O2),{modelValue:y(o),"onUpdate:modelValue":S[3]||(S[3]=H=>rt(o)?o.value=H:null)},null,8,["modelValue"]),S[19]||(S[19]=b("span",{op75:""},"Close DevTools when clicking outside",-1))]),b("div",kRt,[D(y(O2),{modelValue:y(a),"onUpdate:modelValue":S[4]||(S[4]=H=>rt(a)?a.value=H:null)},null,8,["modelValue"]),S[20]||(S[20]=b("span",{op75:""},"Always show the floating panel",-1))]),S[21]||(S[21]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),S[22]||(S[22]=b("p",null,"Minimize floating panel on inactive",-1)),b("div",null,[D(y(Fd),{modelValue:y(s),"onUpdate:modelValue":S[5]||(S[5]=H=>rt(s)?s.value=H:null),"button-props":{outlined:!0},options:y(w),placeholder:y(M)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):oe("",!0),S[26]||(S[26]=b("h3",{mt2:"","text-lg":""}," Debug ",-1)),b("div",LRt,[D(y(ht),{outlined:"",type:"warning",onClick:S[6]||(S[6]=H=>p.value=!0)},{default:Y(()=>S[24]||(S[24]=[b("div",{"i-carbon-breaking-change":""},null,-1),Ee(" Reset Local Settings & State ")])),_:1}),D(y(sve),{modelValue:y(p),"onUpdate:modelValue":S[7]||(S[7]=H=>rt(p)?p.value=H:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:m},null,8,["modelValue"])])])])])}}}),xRt={"h-full":"",flex:"","flex-col":"",p2:""},HRt={class:"relative mb-1 w-full flex items-center justify-end pb-1",border:"b dashed base"},VRt={key:0,class:"absolute left-0 text-xs text-gray-300 dark:text-gray-500"},PRt={class:"flex items-center gap-2 px-1"},RRt={key:0,class:"recording recording-btn bg-[#ef4444]"},DRt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},NRt={class:"flex items-center gap1"},FRt={class:"p2"},BRt=["onClick"],jRt=["onClick"],GRt=he({__name:"TimelineLayers",props:cc({data:{}},{modelValue:{},modelModifiers:{}}),emits:cc(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=Yi(),i=W(()=>n.timelineLayersState.value.recordingState),o=W(()=>n.timelineLayersState.value),a=W(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=Of();W(()=>s.value==="dark");const l=CI(t,"modelValue");function c(d){l.value=d,e("select",d),ge.value.updateTimelineLayersState({selected:d})}Qe(()=>o.value.selected,d=>{l.value=d},{immediate:!0});function u(d){return{mouse:o.value.mouseEventEnabled,keyboard:o.value.keyboardEventEnabled,"component-event":o.value.componentEventEnabled,performance:o.value.performanceEventEnabled}[d]}function g(){ge.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];ge.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>($(),L("div",xRt,[b("div",HRt,[y(i)?oe("",!0):($(),L("span",VRt,"Not recording")),b("div",PRt,[mt(($(),L("div",{class:"flex items-center gap1",onClick:g},[y(i)?($(),L("span",RRt)):($(),L("span",DRt))])),[[y(Bt),{content:y(a)},void 0,{"bottom-end":!0}]]),mt(($(),L("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(hc),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Bt),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),mt(($(),L("div",NRt,[D(y(hc),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Bt),{content:"<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>",html:!0},void 0,{"bottom-end":!0}]])])]),b("ul",FRt,[($(!0),L(ke,null,yt(d.data,C=>($(),L("li",{key:C.id,class:Le(["group relative selectable-item",{active:C.id===l.value,op60:!u(C.id)}]),onClick:v=>c(C.id)},[Ee(Te(C.label)+" ",1),b("span",{class:"absolute right-2 rounded-1 bg-primary-500 px1 text-3 text-white op0 [.active_&]:bg-primary-400 [.active_&]:dark:bg-gray-600 group-hover:op80 hover:op100!",onClick:Qn(v=>h(C.id),["stop"])},Te(u(C.id)?"Disable":"Enable"),9,jRt)],10,BRt))),128))])]))}}),URt=VI(GRt,[["__scopeId","data-v-ba7472d9"]]),WRt={class:"h-full w-full"},ZRt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},KRt={class:"h-full flex flex-col"},YRt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},XRt={class:"h-full flex flex-col p2"},qRt=he({__name:"timeline",setup(t){const r=Z(),e=Z(),n=Z(!1),{width:i}=JG(e),o=W(()=>n.value?i.value<700:!1),a=Yi(),s=W(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=W(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=Z(a.activeAppRecordId.value);vn(()=>{c.value=a.activeAppRecordId.value});function u(C){ge.value.toggleApp(C).then(()=>{d()})}const g=Z(""),h=[{label:"Mouse",id:"mouse"},{label:"Keyboard",id:"keyboard"},{label:"Component events",id:"component-event"},{label:"Performance",id:"performance"}];function d(){r.value?.clear()}function f(){d()}return(C,v)=>{const A=URt;return $(),L("div",WRt,[D(y(Y1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:Y(()=>[y(s).length>1?($(),ae(y(An),{key:0,border:"base h-full",size:"20"},{default:Y(()=>[b("div",ZRt,[D(y(nZ),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>rt(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(An),{border:"base","h-full":""},{default:Y(()=>[b("div",KRt,[b("div",YRt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>rt(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(An),{relative:"","h-full":"",size:"65"},{default:Y(()=>[b("div",XRt,[D(y(jI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":"","plugin-id":"","switcher-visible":!1},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function QRt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const $b=Ta(new Map);function JRt(){const{enabledFlattenTabs:t}=Pf(),r=Sc(),e=Yi();let n=[];const i=W(()=>yZ(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>tDt()}],a=W(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return W(()=>QRt([...o,...a.value,...eDt(i.value),...Array.from($b.values()).flatMap(s=>Ad(s))]))}function $F(t){t?.type==="url"&&window.open(t.src,"_blank")}function eDt(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{$F(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));$F(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function _F(t){const r=boe();$b.set(r,t),pn(()=>{$b.delete(r)})}let q6;const MF={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function tDt(){return q6||(q6=(await xi(()=>import("./vue-apis-DJBctb31.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:MF[r.description]??MF["...others"],action:()=>{window.open(r.url,"_blank")}}))),q6}const rDt={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},nDt={border:"b base","flex-none":""},iDt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},oDt=["id","onClick","onMouseover"],aDt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},sDt={"ws-nowrap":""},lDt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},cDt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},uDt={"text-primary":""},gDt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},hDt={"text-xs":"",flex:"~ items-center gap2"},dDt={px1:""},fDt={px1:""},CDt={"text-xs":"",flex:"~ items-center gap2"},vDt={op75:""},ADt={"text-xs":"",flex:"~ items-center gap2"},IDt={px1:""},pDt=he({__name:"CommandPalette",setup(t){const r=Z(!1),e=Z(""),n=JRt(),i=Z(),o=W(()=>i.value||n.value),a=W(()=>new xc(o.value,{keys:["id","title"],distance:50})),s=W(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=Z(0);Qe(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return Ii("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=rC;return y(r)?($(),ae(y(Rw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:Y(()=>[b("div",rDt,[b("header",nDt,[D(y(Ki),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>rt(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),b("div",iDt,[($(!0),L(ke,null,yt(y(s),(C,v)=>($(),L("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[b("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Le(y(l)===v?"op100 saturate-100 bg-active":"op80")},[D(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),b("span",aDt,[b("span",sDt,Te(C.title),1),b("span",lDt,Te(C.description),1)]),y(l)===v?($(),ae(y(Xt),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):oe("",!0)],2)],40,oDt))),128)),y(s).length?oe("",!0):($(),L("div",cDt,[D(y(Xt),{icon:"carbon-search",op50:""}),b("div",null,[d[1]||(d[1]=b("span",{op50:""},"No results for",-1)),b("strong",uDt,' "'+Te(y(e))+'" ',1)])]))]),b("footer",gDt,[b("div",hDt,[b("button",dDt,[D(y(Xt),{icon:"i-carbon-arrow-down"})]),b("button",fDt,[D(y(Xt),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=b("span",{op75:""},"to navigate",-1))]),b("div",CDt,[d[3]||(d[3]=b("button",{px1:""}," Esc ",-1)),b("span",vDt,"to "+Te(y(i)?"go back":"close"),1)]),b("div",ADt,[b("button",IDt,[D(y(Xt),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=b("span",{op75:""},"to select",-1))])])])]),_:1})):oe("",!0)}}}),mDt={flex:"~ items-center gap-3"},yDt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},bDt={"translate-y-0.5px":""},wDt={key:0,hidden:"","lg:block":""},Jie=he({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=Ef(),n=W(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=W(()=>"badge"in r.tab&&r.tab.badge?.()),o=W(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(Ir.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=rC;return $(),ae(y(Ave),{disabled:!s.minimized,placement:"right",class:Le({"w-full":!s.minimized})},{popper:Y(()=>[b("div",null,Te(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?($(),L("div",wDt,[($(),ae(k1(s.tab.extraTabVNode)))])):oe("",!0)]),default:Y(()=>[($(),ae(k1(s.target==="main"?y(CG):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Le([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:Y(()=>[b("div",mDt,[D(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?oe("",!0):($(),L("span",yDt,Te(s.tab.title),1))]),y(i)?($(),L("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Le([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[b("span",bDt,Te(y(pr)(y(i))),1)],2)):oe("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),$Dt={flex:"~ col gap-1","max-w-80":"",py1:""},_Dt={key:0,"h-1px":"",border:"b base"},MDt={flex:"~ wrap",px1:""},eoe=he({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Jie;return $(),L("div",$Dt,[($(!0),L(ke,null,yt(r.categories,([i,o],a)=>($(),L(ke,{key:i},[o.length?($(),L(ke,{key:0},[a?($(),L("div",_Dt)):oe("",!0),b("div",MDt,[($(!0),L(ke,null,yt(o,s=>($(),ae(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):oe("",!0)],64))),128))])}}}),zDt={"h-full":"","h-screen":"","of-hidden":""},EDt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},SDt={flex:"","cursor-pointer":"","items-center":"",gap2:""},TDt={capitalize:""},kDt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},LDt={key:3,class:"h-full w-full $ui-fcc"},ODt=he({__name:"SplitScreen",setup(t){function r(){Ir.value.splitScreen.enabled=!1}const e=W(()=>Ir.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=Pf(),o=Sc(),a=Ef(),s=Zi(),l=Z(null),c=Z(null),u=Z(null);function g(v){const A=f();return v?v.name===A:!1}const h=W(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=W(()=>f());function f(){return a.path.startsWith(`/${v7}/`)?a.path.slice(v7.length+2):a.path.startsWith(`/${Yh}/`)?a.path.slice(Yh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Qe(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(Yh)){l.value=v.name,c.value=v.pluginId,u.value="custom-inspector";return}l.value=null;const p=o.getRoutes().find(m=>m.path===`/${v.path}`)?.components?.default;typeof p=="function"?s.value=Hae(p):s.value=p},{immediate:!0});const C=Z(!1);return(v,A)=>{const I=rC,p=eoe,m=mZ;return $(),L("div",zDt,[(y(s)||y(l))&&y(h)?($(),L("div",EDt,[D(y(Tu),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:Y(()=>[b("div",SDt,[A[0]||(A[0]=b("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1)),D(I,{"text-xl":"",icon:y(h)?.icon,title:y(h).name,fallback:y(h).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),b("span",TDt,Te(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=b("div",{"flex-auto":""},null,-1)),mt(($(),L("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[b("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(Bt),"Close split screen"]])])):oe("",!0),y(l)&&y(h)?($(),L(ke,{key:1},[y(u)==="custom-tab"?($(),ae(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?($(),ae(y(vZ),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):oe("",!0)],64)):y(s)&&y(h)?($(),L("div",kDt,[($(),ae(k1(y(s)),{key:`tab-${y(h).name}`}))])):($(),L("div",LDt,[b("div",null,[A[4]||(A[4]=b("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(X5),{px4:"",py2:"","bg-base":""},{default:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ht),{type:"warning",outlined:"",mt2:"",onClick:r},{default:Y(()=>A[3]||(A[3]=[Ee(" Close Split Screen ")])),_:1})])]))])}}}),xDt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},HDt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},VDt={px3:"",py2:"",flex:"~ gap2"},PDt=he({__name:"DockingPanel",setup(t){const r=Sc(),e=W({get:()=>Ir.value.expandSidebar,set:u=>Ir.value.expandSidebar=u}),n=W({get:()=>Ir.value.splitScreen.enabled,set:u=>Ir.value.splitScreen.enabled=u});function i(){location.reload()}const o=Yi(),a=W(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=Z(o.activeAppRecordId.value);vn(()=>{s.value=o.activeAppRecordId.value});const l=W(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){ge.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{nG()})})}return(u,g)=>($(),L("div",null,[b("div",xDt,[D(y(AW),null,{default:Y(({isDark:h,toggle:d})=>[D(y(ht),{outlined:"",type:"primary",onClick:d},{default:Y(()=>[g[3]||(g[3]=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Ee(" "+Te(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ht),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:Y(()=>[D(y(Xt),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),Ee(" "+Te(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ht),{to:"/settings",outlined:"",type:"primary"},{default:Y(()=>g[4]||(g[4]=[b("div",{"i-carbon-settings-adjust":""},null,-1),Ee(" Settings ")])),_:1})]),b("div",HDt,[D(y(ht),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:Y(()=>[g[5]||(g[5]=b("div",{"i-carbon-split-screen":""},null,-1)),Ee(" "+Te(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),b("div",VDt,[y(a).length>1?($(),ae(y(Fd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>rt(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):oe("",!0),D(y(ht),{outlined:"",type:"primary",onClick:i},{default:Y(()=>g[6]||(g[6]=[Ee(" Refresh Page ")])),_:1})])]))}}),RDt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},DDt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},NDt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},FDt=["flex"],BDt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},jDt={"translate-y-0.5px":""},GDt=45,UDt=he({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=Z(!1),i=Z(!1),o=Z(),a=Z(),s=Z(),l=W(()=>Ir.value.expandSidebar),c=W(()=>Ir.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=Pf(),{height:h}=Uhe(),d=W(()=>{const M=h.value-130;return Math.max(0,Math.floor(M/GDt))}),f=W(()=>g.value.slice(0,d.value)),C=W(()=>g.value.slice(d.value)),v=gk(f,u),A=gk(C,u),I=W(()=>c.value||l.value?u.value:v.value);Ihe(o,M=>{a.value&&M.composedPath().includes(a.value)||s.value&&M.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=Z(),m=Z(6);pw(p,()=>{m.value=m.value===6?6.01:6});const w=DM();return Lhe(p,([{isIntersecting:M}])=>{e("toggleDevtoolsClientVisible",{visible:M,host:w})}),(M,k)=>{const S=PDt,E=Jie,T=rC,H=eoe;return $(),L("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[b("div",RDt,[D(y(Tu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:Y(()=>[D(S)]),default:Y(()=>[b("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Le([y(l)?"rounded pl2.5":"rounded-xl"])},[k[3]||(k[3]=b("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?($(),L(ke,{key:0},[k[0]||(k[0]=b("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),k[1]||(k[1]=b("div",{"flex-auto":""},null,-1)),k[2]||(k[2]=b("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):oe("",!0)],2)]),_:1},8,["distance","shown"])]),b("div",DDt,[($(!0),L(ke,null,yt(y(I),([P,R],N)=>($(),L(ke,{key:P},[N?($(),L("div",NDt)):oe("",!0),($(!0),L(ke,null,yt(R.filter(U=>!U.hidden),U=>($(),ae(E,{key:U.name,tab:U,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),k[4]||(k[4]=b("div",{"flex-auto":""},null,-1))]),b("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?($(),ae(y(Tu),{key:0,placement:"left-end",distance:6},{popper:Y(()=>[D(H,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:Y(()=>[b("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[D(T,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),b("div",BDt,[b("span",jDt,Te(y(C).length),1)])],512)]),_:1})):oe("",!0),D(E,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,FDt)],512)}}}),toe=Zi([]),roe=Z(null);W(()=>toe.value.find(t=>t.id===roe.value));const WDt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},ZDt=he({__name:"App",setup(t){Of();const r=Sc(),e=Ef(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=Yi(),s=Ir,l=W(()=>n.value&&i.value),c=W(()=>e.path.startsWith("/__")||e.path==="/"),u=W(()=>s.value.expandSidebar),g=W(()=>s.value.splitScreen.enabled),h=W({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});vn(()=>{const A=Ir.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),es(()=>{vn(()=>{ge.value.emit("update-client-state",{minimizePanelInteractive:Ir.value.minimizePanelInteractive,closeOnOutsideClick:Ir.value.interactionCloseOnOutsideClick,showFloatingPanel:Ir.value.showPanel})})}),Qe(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),Ii("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&ge.value.emit("toggle-panel")}),vn(()=>{toe.value=a.value,roe.value=o.value}),es(()=>{ge.value.initDevToolsServerListener(),ge.value.checkVueInspectorDetected().then(A=>{A&&(wI.value=!0,_F(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{ge.value.emit("toggle-panel",!1),await ge.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{nG()})}gw(()=>{ge.functions.on(Zt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=PI(),C=Ohe({});_F(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{ge.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),wi(()=>{es(()=>{ge.value.toggleClientConnected(!0)})}),pn(()=>{ge.value.toggleClientConnected(!1),ge.functions.off(Zt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;ge.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=$ve,m=UDt,w=Uo("RouterView"),M=ODt,k=pDt;return $(),L("main",WDt,[y(l)?($(),L("div",{key:1,class:Le(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?oe("",!0):($(),ae(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(Y1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=S=>h.value=S.map(E=>E.size))},{default:Y(()=>[D(y(An),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:Y(()=>[D(w)]),_:1},8,["size"]),!y(c)&&y(g)?($(),ae(y(An),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:Y(()=>[D(M)]),_:1},8,["size"])):oe("",!0)]),_:1})],2)):($(),ae(p,{key:0})),D(k)])}}}),KDt=[{path:"/",component:$Pt},{path:"/overview",component:PPt},{path:"/components",component:c7e},{path:"/pinia",component:dRt},{path:"/router",component:fRt},{path:"/pages",component:hRt},{path:"/timeline",component:qRt},{path:"/assets",component:TIe},{path:"/graph",component:APt},{path:"/settings",component:ORt},{path:`/${v7}/:name`,component:E7e},{path:`/${Yh}/:name`,component:v7e}],YDt=Yue({history:_ue(),routes:KDt}),NM=aj(ZDt);NM.use(YDt);NM.use(K2e());NM.mount("#app");async function XDt(){return Sa?void 0:(await X2e(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function qDt(){const t=await XDt();return t&&g2e(t),t}qDt().then(t=>{t&&Z2e()});SF?y8(XE,{preset:"broadcast"}):y8(XE,{preset:"iframe"});
|
|
1162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function cPt(t,r){var e;if(t){if(typeof t=="string")return bF(t,r);var n=Ln(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return t2(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bF(t,r)}}function bF(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var uPt=function(){function t(r,e,n,i){var o=this,a,s;_e(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Yr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",Ie(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",Ie(s=this._restore).call(s,this))}return Me(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,i){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=i.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,sr(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler.getSelectedNodeCount(),o=this.selectionHandler.getSelectedEdgeCount(),a=i+o,s=this.options.locales[this.options.locale],l=!1;this.options.addNode!==!1&&(this._createAddNodeButton(s),l=!0),this.options.addEdge!==!1&&(l===!0?this._createSeperator(1):l=!0,this._createAddEdgeButton(s)),i===1&&typeof this.options.editNode=="function"?(l===!0?this._createSeperator(2):l=!0,this._createEditNodeButton(s)):o===1&&i===0&&this.options.editEdge!==!1&&(l===!0?this._createSeperator(3):l=!0,this._createEditEdgeButton(s)),a!==0&&(i>0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,Ie(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Ie(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Ie(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Ie(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=sr({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Ie(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",Ie(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Ie(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Ie(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",Ie(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",Ie(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",qt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Ie(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,c=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(c.from.x,c.from.y),g=this._getNewTargetNode(c.to.x,c.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(g.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[g.id]=g,this.body.nodeIndices.push(g.id),this._temporaryBindUI("onTouch",Ie(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Ie(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",Ie(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",Ie(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=c.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),g.selected===!1&&(g.x=d.to.x,g.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a<n.length;a++)if(this.body.nodes[n[a]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(o=this.options.deleteNode)}else i.length>0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var i=sr({},this.options.controlNodeStyle);i.id="targetNode"+hd(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},i1(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,Ie(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(i1(this.editModeDiv),i1(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=lPt(hs(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),i1(this.manipulationDiv),i1(this.editModeDiv),i1(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Ie(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+K0(Mr(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,i=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,i)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var i=new pu(e,{});oI(i,n),this._domEventListenerCleanupQueue.push(function(){i.destroy()});var o=function(s){var l=s.keyCode,c=s.key;(c==="Enter"||c===" "||l===13||l===32)&&n()};e.addEventListener("keyup",o,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",o,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var i=Ot(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;hs(o=this.body.edgeIndices).call(o,i,1)}}for(var a=0;a<this.temporaryIds.nodes.length;a++){var s;delete this.body.nodes[this.temporaryIds.nodes[a]];var l=Ot(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var c;hs(c=this.body.nodeIndices).call(c,l,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Yr({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),i=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],a=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var s=i.isOverlappingWith(n),l=o.isOverlappingWith(n);s===!0?(this.selectedControlNode=i,a.edgeType.from=i):l===!0&&(this.selectedControlNode=o,a.edgeType.to=o),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),i=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var c=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===c.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Yr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+hd(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Ot(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Ot(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:hd(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(qt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),we="string",Ce="boolean",J="number",Oh="array",je="object",Xie="dom",gPt="any",Y6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],X6={borderWidth:{number:J},borderWidthSelected:{number:J,undefined:"undefined"},brokenImage:{string:we,undefined:"undefined"},chosen:{label:{boolean:Ce,function:"function"},node:{boolean:Ce,function:"function"},__type__:{object:je,boolean:Ce}},color:{border:{string:we},background:{string:we},highlight:{border:{string:we},background:{string:we},__type__:{object:je,string:we}},hover:{border:{string:we},background:{string:we},__type__:{object:je,string:we}},__type__:{object:je,string:we}},opacity:{number:J,undefined:"undefined"},fixed:{x:{boolean:Ce},y:{boolean:Ce},__type__:{object:je,boolean:Ce}},font:{align:{string:we},color:{string:we},size:{number:J},face:{string:we},background:{string:we},strokeWidth:{number:J},strokeColor:{string:we},vadjust:{number:J},multi:{boolean:Ce,string:we},bold:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},boldital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},ital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},mono:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},__type__:{object:je,string:we}},group:{string:we,number:J,undefined:"undefined"},heightConstraint:{minimum:{number:J},valign:{string:we},__type__:{object:je,boolean:Ce,number:J}},hidden:{boolean:Ce},icon:{face:{string:we},code:{string:we},size:{number:J},color:{string:we},weight:{string:we,number:J},__type__:{object:je}},id:{string:we,number:J},image:{selected:{string:we,undefined:"undefined"},unselected:{string:we,undefined:"undefined"},__type__:{object:je,string:we}},imagePadding:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:je,number:J}},label:{string:we,undefined:"undefined"},labelHighlightBold:{boolean:Ce},level:{number:J,undefined:"undefined"},margin:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:je,number:J}},mass:{number:J},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:je,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:je}},shadow:{enabled:{boolean:Ce},color:{string:we},size:{number:J},x:{number:J},y:{number:J},__type__:{object:je,boolean:Ce}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Ce,array:Oh},borderRadius:{number:J},interpolation:{boolean:Ce},useImageSize:{boolean:Ce},useBorderWithImage:{boolean:Ce},coordinateOrigin:{string:["center","top-left"]},__type__:{object:je}},size:{number:J},title:{string:we,dom:Xie,undefined:"undefined"},value:{number:J,undefined:"undefined"},widthConstraint:{minimum:{number:J},maximum:{number:J},__type__:{object:je,boolean:Ce,number:J}},x:{number:J},y:{number:J},__type__:{object:je}},hPt={configure:{enabled:{boolean:Ce},filter:{boolean:Ce,string:we,array:Oh,function:"function"},container:{dom:Xie},showButton:{boolean:Ce},__type__:{object:je,boolean:Ce,string:we,array:Oh,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageHeight:{number:J},imageWidth:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},middle:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageWidth:{number:J},imageHeight:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},from:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:Y6},imageWidth:{number:J},imageHeight:{number:J},src:{string:we},__type__:{object:je,boolean:Ce}},__type__:{string:["from","to","middle"],object:je}},endPointOffset:{from:{number:J},to:{number:J},__type__:{object:je,number:J}},arrowStrikethrough:{boolean:Ce},background:{enabled:{boolean:Ce},color:{string:we},size:{number:J},dashes:{boolean:Ce,array:Oh},__type__:{object:je,boolean:Ce}},chosen:{label:{boolean:Ce,function:"function"},edge:{boolean:Ce,function:"function"},__type__:{object:je,boolean:Ce}},color:{color:{string:we},highlight:{string:we},hover:{string:we},inherit:{string:["from","to","both"],boolean:Ce},opacity:{number:J},__type__:{object:je,string:we}},dashes:{boolean:Ce,array:Oh},font:{color:{string:we},size:{number:J},face:{string:we},background:{string:we},strokeWidth:{number:J},strokeColor:{string:we},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:J},multi:{boolean:Ce,string:we},bold:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},boldital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},ital:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},mono:{color:{string:we},size:{number:J},face:{string:we},mod:{string:we},vadjust:{number:J},__type__:{object:je,string:we}},__type__:{object:je,string:we}},hidden:{boolean:Ce},hoverWidth:{function:"function",number:J},label:{string:we,undefined:"undefined"},labelHighlightBold:{boolean:Ce},length:{number:J,undefined:"undefined"},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:je,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:je}},selectionWidth:{function:"function",number:J},selfReferenceSize:{number:J},selfReference:{size:{number:J},angle:{number:J},renderBehindTheNode:{boolean:Ce},__type__:{object:je}},shadow:{enabled:{boolean:Ce},color:{string:we},size:{number:J},x:{number:J},y:{number:J},__type__:{object:je,boolean:Ce}},smooth:{enabled:{boolean:Ce},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:J},forceDirection:{string:["horizontal","vertical","none"],boolean:Ce},__type__:{object:je,boolean:Ce}},title:{string:we,undefined:"undefined"},width:{number:J},widthConstraint:{maximum:{number:J},__type__:{object:je,boolean:Ce,number:J}},value:{number:J,undefined:"undefined"},__type__:{object:je}},groups:{useDefaultGroups:{boolean:Ce},__any__:X6,__type__:{object:je}},interaction:{dragNodes:{boolean:Ce},dragView:{boolean:Ce},hideEdgesOnDrag:{boolean:Ce},hideEdgesOnZoom:{boolean:Ce},hideNodesOnDrag:{boolean:Ce},hover:{boolean:Ce},keyboard:{enabled:{boolean:Ce},speed:{x:{number:J},y:{number:J},zoom:{number:J},__type__:{object:je}},bindToWindow:{boolean:Ce},autoFocus:{boolean:Ce},__type__:{object:je,boolean:Ce}},multiselect:{boolean:Ce},navigationButtons:{boolean:Ce},selectable:{boolean:Ce},selectConnectedEdges:{boolean:Ce},hoverConnectedEdges:{boolean:Ce},tooltipDelay:{number:J},zoomView:{boolean:Ce},zoomSpeed:{number:J},__type__:{object:je}},layout:{randomSeed:{undefined:"undefined",number:J,string:we},improvedLayout:{boolean:Ce},clusterThreshold:{number:J},hierarchical:{enabled:{boolean:Ce},levelSeparation:{number:J},nodeSpacing:{number:J},treeSpacing:{number:J},blockShifting:{boolean:Ce},edgeMinimization:{boolean:Ce},parentCentralization:{boolean:Ce},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:je,boolean:Ce}},__type__:{object:je}},manipulation:{enabled:{boolean:Ce},initiallyActive:{boolean:Ce},addNode:{boolean:Ce,function:"function"},addEdge:{boolean:Ce,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:je,boolean:Ce,function:"function"}},deleteNode:{boolean:Ce,function:"function"},deleteEdge:{boolean:Ce,function:"function"},controlNodeStyle:X6,__type__:{object:je,boolean:Ce}},nodes:X6,physics:{enabled:{boolean:Ce},barnesHut:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},forceAtlas2Based:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},repulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},__type__:{object:je}},hierarchicalRepulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:je}},maxVelocity:{number:J},minVelocity:{number:J},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Ce},iterations:{number:J},updateInterval:{number:J},onlyDynamicEdges:{boolean:Ce},fit:{boolean:Ce},__type__:{object:je,boolean:Ce}},timestep:{number:J},adaptiveTimestep:{boolean:Ce},wind:{x:{number:J},y:{number:J},__type__:{object:je}},__type__:{object:je,boolean:Ce}},autoResize:{boolean:Ce},clickToUse:{boolean:Ce},locale:{string:we},locales:{__any__:{any:gPt},__type__:{object:je}},height:{string:we},width:{string:we},__type__:{object:je}},qie={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},dPt=function(r,e,n){var i;return!!(E1(r).call(r,"physics")&&E1(i=qie.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},fPt=function(){function t(){_e(this,t)}return Me(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s<n.length;s++){var l=n[s],c={};o[l]=c;for(var u=0;u<n.length;u++)c[n[u]]=s==u?0:1e9}for(var g=0;g<i.length;g++){var h=a[i[g]];h.connected===!0&&o[h.fromId]!==void 0&&o[h.toId]!==void 0&&(o[h.fromId][h.toId]=1,o[h.toId][h.fromId]=1)}for(var d=n.length,f=0;f<d;f++)for(var C=n[f],v=o[C],A=0;A<d-1;A++)for(var I=n[A],p=o[I],m=A+1;m<d;m++){var w=n[m],M=o[w],k=Math.min(p[w],p[C]+v[w]);p[w]=k,M[I]=k}return o}}]),t}(),CPt=function(){function t(r,e,n){_e(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new fPt}return Me(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,c=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,g=1e9,h=0,d=0,f=0,C=0,v=0;g>a&&l<c;){l+=1;var A=this._getHighestEnergyNode(i),I=zr(A,4);for(h=I[0],g=I[1],d=I[2],f=I[3],C=g,v=0;C>s&&v<u;){v+=1,this._moveNode(h,d,f);var p=this._getEnergy(h),m=zr(p,3);C=m[0],d=m[1],f=m[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=0,a=n[0],s=0,l=0,c=0;c<n.length;c++){var u=n[c];if(i[u].predefinedPosition!==!0||i[u].isCluster===!0&&e===!0||i[u].options.fixed.x!==!0||i[u].options.fixed.y!==!0){var g=this._getEnergy(u),h=zr(g,3),d=h[0],f=h[1],C=h[2];o<d&&(o=d,a=u,s=f,l=C)}}return[a,o,s,l]}},{key:"_getEnergy",value:function(e){var n=zr(this.E_sums[e],2),i=n[0],o=n[1],a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return[a,i,o]}},{key:"_moveNode",value:function(e,n,i){for(var o=this.body.nodeIndices,a=this.body.nodes,s=0,l=0,c=0,u=a[e].x,g=a[e].y,h=this.K_matrix[e],d=this.L_matrix[e],f=0;f<o.length;f++){var C=o[f];if(C!==e){var v=a[C].x,A=a[C].y,I=h[C],p=d[C],m=1/Math.pow(Math.pow(u-v,2)+Math.pow(g-A,2),1.5);s+=I*(1-p*Math.pow(g-A,2)*m),l+=I*(p*(u-v)*(g-A)*m),c+=I*(1-p*Math.pow(u-v,2)*m)}}var w=s,M=l,k=n,S=c,E=i,T=(k/w+E/M)/(M/w-S/M),H=-(M*T+k)/w;a[e].x+=H,a[e].y+=T,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var o=0;o<n.length;o++){this.L_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.L_matrix[n[o]][n[a]]=i*e[n[o]][n[a]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var o=0;o<n.length;o++){this.K_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.K_matrix[n[o]][n[a]]=i*Math.pow(e[n[o]][n[a]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<e.length;i++)this.E_matrix[e[i]]=[];for(var o=0;o<e.length;o++){for(var a=e[o],s=n[a].x,l=n[a].y,c=0,u=0,g=o;g<e.length;g++){var h=e[g];if(h!==a){var d=n[h].x,f=n[h].y,C=1/Math.sqrt(Math.pow(s-d,2)+Math.pow(l-f,2));this.E_matrix[a][g]=[this.K_matrix[a][h]*(s-d-this.L_matrix[a][h]*(s-d)*C),this.K_matrix[a][h]*(l-f-this.L_matrix[a][h]*(l-f)*C)],this.E_matrix[h][o]=this.E_matrix[a][g],c+=this.E_matrix[a][g][0],u+=this.E_matrix[a][g][1]}}this.E_sums[a]=[c,u]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,i=this.body.nodes,o=this.E_matrix[e],a=this.K_matrix[e],s=this.L_matrix[e],l=i[e].x,c=i[e].y,u=0,g=0,h=0;h<n.length;h++){var d=n[h];if(d!==e){var f=o[h],C=f[0],v=f[1],A=i[d].x,I=i[d].y,p=1/Math.sqrt(Math.pow(l-A,2)+Math.pow(c-I,2)),m=a[d]*(l-A-s[d]*(l-A)*p),w=a[d]*(c-I-s[d]*(c-I)*p);o[h]=[m,w],u+=m,g+=w;var M=this.E_sums[d];M[0]+=m-C,M[1]+=w-v}}this.E_sums[e]=[u,g]}}]),t}();function Re(t,r,e){var n,i,o,a,s=this;if(!(this instanceof Re))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:hEt,clickToUse:!1},Yr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Ie(n=this.on).call(n,this),off:Ie(i=this.off).call(i,this),emit:Ie(o=this.emit).call(o,this),once:Ie(a=this.once).call(a,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new CEt(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new LSt,this.canvas=new Yxt(this.body),this.selectionHandler=new DHt(this.body,this.canvas),this.interactionHandler=new tHt(this.body,this.canvas,this.selectionHandler),this.view=new qxt(this.body,this.canvas),this.renderer=new Gxt(this.body,this.canvas),this.physics=new xxt(this.body),this.layoutEngine=new sPt(this.body),this.clustering=new Bxt(this.body),this.manipulation=new uPt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new AOt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new $xt(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new CPt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}Xte(Re.prototype);Re.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=jzt.validate(t,hPt);e===!0&&console.error("%cErrors have been found in the supplied options object.",Jne);var n=["locale","locales","clickToUse"];if(eh(n,this.options,t),t.locale!==void 0&&(t.locale=dEt(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new Fzt(this,this.body.container,qie,this.canvas.pixelRatio,dPt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};sr(i.nodes,this.nodesHandler.options),sr(i.edges,this.edgesHandler.options),sr(i.layout,this.layoutEngine.options),sr(i.interaction,this.selectionHandler.options),sr(i.interaction,this.renderer.options),sr(i.interaction,this.interactionHandler.options),sr(i.manipulation,this.manipulation.options),sr(i.physics,this.physics.options),sr(i.global,this.canvas.options),sr(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new Nzt(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};Re.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n],o=t[i.fromId],a=t[i.toId],s=o!==void 0&&a!==void 0,l=!this.clustering._isClusteredEdge(n)&&i.options.hidden===!1&&s&&o.options.hidden===!1&&a.options.hidden===!1;l&&this.body.edgeIndices.push(i.id)}};Re.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};Re.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=Jzt(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=eEt(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};Re.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];i1(this.body.container)};Re.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,i=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r].getValue();o!==void 0&&(e=e===void 0?o:Math.min(o,e),n=n===void 0?o:Math.max(o,n),i+=o)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,i)};Re.prototype.isActive=function(){return!this.activator||this.activator.active};Re.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Re.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Re.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Re.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Re.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Re.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Re.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Re.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Re.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Re.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Re.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};Re.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};Re.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};Re.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};Re.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};Re.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Re.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Re.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Re.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Re.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Re.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Re.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};Re.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Re.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Re.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Re.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Re.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};Re.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Re.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Re.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Re.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};Re.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Re.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Re.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Re.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Re.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Re.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Re.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};Re.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};Re.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Re.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Re.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Re.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Re.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};Re.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Re.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Re.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Re.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Re.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Re.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Re.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Re.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const vPt={flex:"~ col",relative:"","h-full":"","of-hidden":"","panel-grids":"",class:"graph-body"},APt=he({__name:"graph",setup(t){async function r(){const s=await Oo.value.getRoot().then(l=>l);Oo.value.getGraphModules().then(l=>{oqe(l,s)})}function e(){r()}tG(()=>{r(),Oo.functions.on("graphModuleUpdated",e)});const n=Z(),i=Zi();function o(){const s=n.value,l=i.value=new Re(s,{nodes:Nu,edges:Fu},iH.value);Qe(iH,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{lqe(c.nodes[0]),cy(!0)}),l.on("deselectNode",()=>{cy(!1)}),Qe(()=>ju.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}wi(()=>{o()}),pn(()=>{rqe(),i.value?.destroy(),Oo.functions.off("graphModuleUpdated",e)});const a=Z();return(s,l)=>{const c=wqe,u=yqe,g=mqe;return $(),L("div",vPt,[D(c,{ref_key:"navbarRef",ref:a},null,512),b("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),IPt={},pPt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mPt(t,r){return $(),L("svg",pPt,r[0]||(r[0]=[XB('<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>',2)]))}const Qie=VI(IPt,[["render",mPt]]);function DM(){return If?"electron":Sa?"chrome":EF?"iframe":"separate-window"}const yPt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},bPt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},wPt={"max-w-190":"","text-lg":""},$Pt=he({__name:"index",setup(t){const r=DM(),e=Sc(),n=Ir;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=Qie;return y(r)==="chrome"?($(),L("div",yPt,[a[1]||(a[1]=b("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=b("p",{"max-w-190":"","text-lg":""},[Ee(" This new version supports only Vue 3. "),b("span",{op50:""},[Ee(" (Learn more at "),b("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),Ee(") ")]),b("br"),Ee(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),b("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),Ee(". ")],-1)),D(y(ht),{type:"primary",onClick:i},{default:Y(()=>a[0]||(a[0]=[b("span",null,"Get Started",-1)])),_:1})])):($(),L("div",bPt,[a[6]||(a[6]=b("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),b("p",wPt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=Ee(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!")),a[4]||(a[4]=b("br",null,null,-1))]),a[7]||(a[7]=b("p",{mb6:"",op50:""},[Ee(" Learn more at "),b("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ht),{type:"primary",onClick:i},{default:Y(()=>a[5]||(a[5]=[b("span",null,"Get Started",-1)])),_:1})]))}}}),_Pt="7.6.7",MPt={"h-full":"","w-full":"",flex:"","of-auto":""},zPt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},EPt={flex:"~ col","mt-20":"","items-center":""},SPt={flex:"~","mt--10":"","items-center":"","justify-center":""},TPt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},kPt={op40:""},LPt={flex:"~ gap2 wrap"},OPt={p4:"","theme-card-green":"",flex:"~ col auto"},xPt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},HPt={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},VPt={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},PPt=he({__name:"overview",setup(t){const{vueVersion:r}=Yi(),e=Z(1),n=Z(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=rn(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return gw(()=>{ge.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),ge.functions.on(Zt.ROUTER_INFO_UPDATED,o),ge.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=rn(s);n.value=i(l)})}),ge.functions.on(Zt.INSPECTOR_TREE_UPDATED,a),pn(()=>{ge.functions.off(Zt.INSPECTOR_TREE_UPDATED,a),ge.functions.off(Zt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=Qie,u=Uo("RouterLink");return $(),L("div",MPt,[b("div",zPt,[l[29]||(l[29]=b("div",{"flex-auto":""},null,-1)),b("div",EPt,[b("div",SPt,[D(c,{"h-18":""})]),y(Sa)?oe("",!0):($(),L("div",TPt,[l[0]||(l[0]=b("span",{op40:""}," Vue DevTools ",-1)),b("code",kPt,"v"+Te(y(_Pt)),1)]))]),b("div",LPt,[b("div",OPt,[l[1]||(l[1]=b("div",{"i-logos-vue":"","text-3xl":""},null,-1)),b("code",null,"v"+Te(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[2]||(l[2]=b("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),b("div",null,Te(y(e))+" pages",1)]),_:1}),y(n)?($(),ae(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[3]||(l[3]=b("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),b("div",null,Te(y(n))+" components",1)]),_:1})):oe("",!0)]),b("div",xPt,[l[5]||(l[5]=b("a",{href:"https://github.com/vuejs/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[b("div",{"i-carbon-star":""}),Ee(" Star on GitHub ")],-1)),l[6]||(l[6]=b("a",{href:"https://github.com/vuejs/devtools/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[b("div",{"i-carbon-data-enrichment":""}),Ee(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=b("a",{href:"https://github.com/vuejs/devtools/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[b("div",{"i-carbon-plan":""}),Ee(" Project Roadmap ")],-1)),l[8]||(l[8]=b("a",{href:"https://github.com/vuejs/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[b("div",{"i-carbon-debug":""}),Ee(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:Y(()=>l[4]||(l[4]=[b("div",{"i-carbon-settings":""},null,-1),Ee(" Settings ")])),_:1})]),l[30]||(l[30]=b("div",{"flex-auto":""},null,-1)),b("div",HPt,[l[15]||(l[15]=Ee(" Press ")),y(GM)()?($(),L(ke,{key:0},[D(y(ht),null,{default:Y(()=>l[9]||(l[9]=[Ee(" ⌘ Command ")])),_:1}),l[11]||(l[11]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[10]||(l[10]=[Ee(" K ")])),_:1})],64)):($(),L(ke,{key:1},[D(y(ht),null,{default:Y(()=>l[12]||(l[12]=[Ee(" Alt ")])),_:1}),l[14]||(l[14]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[13]||(l[13]=[Ee(" K ")])),_:1})],64)),l[16]||(l[16]=Ee(" to toggle Command Palette "))]),!y(If)&&!y(Sa)?($(),L("div",VPt,[l[27]||(l[27]=Ee(" Press ")),y(GM)()?($(),L(ke,{key:0},[D(y(ht),null,{default:Y(()=>l[17]||(l[17]=[Ee(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[18]||(l[18]=[Ee(" ⌥ Option ")])),_:1}),l[21]||(l[21]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[19]||(l[19]=[Ee(" D ")])),_:1})],64)):($(),L(ke,{key:1},[D(y(ht),null,{default:Y(()=>l[22]||(l[22]=[Ee(" Shift ")])),_:1}),l[25]||(l[25]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[23]||(l[23]=[Ee(" Alt ")])),_:1}),l[26]||(l[26]=b("span",null,"+",-1)),D(y(ht),null,{default:Y(()=>l[24]||(l[24]=[Ee(" D ")])),_:1})],64)),l[28]||(l[28]=Ee(" to toggle DevTools "))])):oe("",!0)])])}}}),RPt={"p-2":""},DPt={class:"flex items-center justify-between"},NPt=he({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>($(),L("div",RPt,[b("div",DPt,[e[1]||(e[1]=b("span",{class:"font-500"},"Route meta detail",-1)),b("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(Pw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),FPt={block:"","cursor-pointer":""},BPt={p2:""},jPt=["onSubmit"],GPt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},UPt={key:1},WPt=he({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=Z([]),a=W(()=>i(e.route.path));vn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=W(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=W(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?($(),ae(y(Tu),{key:1},{popper:Y(({hide:h})=>[b("div",BPt,[b("form",{flex:"~ col",onSubmit:Qn(()=>{c(),h()},["prevent"])},[y(l)?($(),L(ke,{key:0},[g[0]||(g[0]=b("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),b("div",GPt,[($(!0),L(ke,null,yt(y(a),(d,f)=>($(),L(ke,{key:f},[d[0]===":"?($(),ae(y(Ki),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):($(),L("span",UPt,Te(d),1))],64))),128))])],64)):oe("",!0),D(y(ht),{block:"",type:"primary"},{default:Y(()=>g[1]||(g[1]=[Ee(" Navigate ")])),_:1})],40,jPt)])]),default:Y(()=>[b("code",FPt,[($(!0),L(ke,null,yt(y(a),(h,d)=>($(),L("span",{key:d,class:Le(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},Te(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):($(),L("button",{key:0,onClick:c},[b("code",null,Te(u.route.path),1)]))}}),ZPt={"w-full":""},KPt={border:"b base","px-3":""},YPt={key:0,"text-left":""},XPt={"w-20":"","pr-1":""},qPt={flex:"","items-center":"","justify-end":""},QPt={"text-sm":""},JPt={flex:"inline gap3","items-center":""},eRt={op0:"","group-hover:op100":"",flex:"~ gap1"},tRt=["onClick"],rRt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},nRt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},iRt=["title","onClick"],oRt=he({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=W(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=W(()=>wI.value),i=Yi();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=W(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=WPt;return $(),L("div",null,[b("table",ZPt,[b("thead",KPt,[b("tr",null,[l[1]||(l[1]=b("th",{"text-left":""},null,-1)),l[2]||(l[2]=b("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=b("th",{"text-left":""}," Name ",-1)),y(a)?($(),L("th",YPt," Route Meta ")):oe("",!0)])]),b("tbody",null,[($(!0),L(ke,null,yt(y(e),u=>($(),L("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[b("td",XPt,[b("div",qPt,[s.matched.find(g=>g.name===u.name)?($(),ae(y(yT),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?($(),ae(y(yT),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):oe("",!0)])]),b("td",QPt,[b("div",JPt,[D(c,{route:u,class:Le(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),b("div",eRt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?($(),L("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(Sd)(u.meta?.file)},l[4]||(l[4]=[b("div",{"i-carbon-script-reference":""},null,-1)]),8,tRt)):oe("",!0)])])]),b("td",rRt,Te(u.name),1),y(a)?($(),L("td",nRt,[b("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},Te(o(u.meta)),9,iRt)])):oe("",!0)]))),128))])])])}}}),aRt={block:"","h-screen":"","of-auto":""},sRt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},lRt={border:"b base",flex:"~ col gap1",px4:"",py3:""},cRt={key:1,op50:""},uRt={key:0,"text-orange":"",op75:""},gRt={key:1,op50:""},hRt=he({__name:"pages",setup(t){const r=Z(""),e=Z(null),n=Z([]),i=W(()=>r.value===e.value?.path?[]:n.value),o=Z([]),a=Z();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){ge.value.navigate(u)}return gw(()=>{ge.value.getRouterInfo().then(u=>{s(u)}),ge.functions.on(Zt.ROUTER_INFO_UPDATED,s)}),WG(r,()=>{r.value!==e.value?.path&&ge.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),pn(()=>{ge.functions.off(Zt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=oRt,d=bW,f=NPt;return $(),L("div",aRt,[b("div",sRt,[b("div",lRt,[b("div",null,[($(),L("span",cRt,"Current route"))]),D(y(Ki),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>rt(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Le(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:ij(l,["enter"])},null,8,["modelValue","class"]),b("div",null,[y(e)?.path!==y(r)?($(),L(ke,{key:0},[g[6]||(g[6]=b("span",null,[Ee("Press "),b("b",{"font-bold":""},"Enter"),Ee(" to navigate")],-1)),y(i).length?oe("",!0):($(),L("span",uRt," (no match)"))],64)):($(),L("span",gRt,"Edit path above to navigate"))])]),D(y(Y1),{class:"of-hidden"},{default:Y(()=>[D(y(An),{size:"70",class:"of-auto!"},{default:Y(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:Y(()=>[y(o).length?($(),ae(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):oe("",!0)]),_:1},8,["description"])]),_:1}),y(a)?($(),ae(y(An),{key:0,size:"30",class:"of-auto!"},{default:Y(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):oe("",!0)]),_:1})])])}}}),dRt=he({__name:"pinia",setup(t){return(r,e)=>($(),ae(y(G8e)))}}),fRt=he({__name:"router",setup(t){const{registeredInspector:r}=hZ(),e=W(()=>r.value?.find(i=>i.packageName==="vue-router")),n=W(()=>e.value?.id);return(i,o)=>($(),ae(y(l7e),{id:y(n)},null,8,["id"]))}}),CRt=["src","alt"],vRt=["title"],wF="custom-ic-",rC=he({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=Z(r.icon);Qe(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(yoe)(y(e))?($(),L("img",en({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,CRt)):y(e)?.startsWith(wF)?($(),ae(y(hc),en({key:1,name:y(e).slice(wF.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):($(),L("div",en({key:2,style:{width:"1em",height:"1em"}},i.$attrs,{class:y(e)||"i-carbon-bring-forward",title:i.showTitle?i.title:void 0}),null,16,vRt))}}),ARt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},IRt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},pRt={flex:"~ col gap-2"},mRt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},yRt={capitalize:"",op75:""},bRt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},wRt=["onClick"],$Rt=["onClick"],_Rt=["onClick"],MRt={flex:"~ col gap-2"},zRt={flex:"~ gap2"},ERt={class:"flex items-center gap2 text-sm"},SRt={class:"flex items-center gap2 text-sm"},TRt={class:"flex items-center gap2 text-sm"},kRt={class:"flex items-center gap2 text-sm"},LRt={flex:"~ gap-2"},ORt=he({__name:"settings",setup(t){const{categorizedTabs:r}=Pf(),e=DM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=n8(rhe(Ir)),u=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],g=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:d,pinnedTabs:f}=n8(Ir.value.tabSettings);function C(k,S){S?d.value=d.value.filter(E=>E!==k):d.value.push(k)}function v(k,S){S?h.value=h.value.filter(E=>E!==k):h.value.push(k)}function A(k){f.value.includes(k)?f.value=f.value.filter(S=>S!==k):f.value.push(k)}function I(k,S){const E=f.value.indexOf(k);if(E===-1)return;const T=E+S;if(T<0||T>=f.value.length)return;const H=[...f.value];H.splice(E,1),H.splice(T,0,k),f.value=H}const p=Z(!1);async function m(){z7e(),window.location.reload()}const w=g.map(([k,S])=>({label:k,value:S})),M=W(()=>`${w.find(S=>S.value===s.value)?.label??"Select..."}`);return(k,S)=>{const E=Dw,T=rC;return $(),L("div",ARt,[D(E,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),b("div",IRt,[b("div",pRt,[S[12]||(S[12]=b("h3",{"text-lg":""}," Tabs ",-1)),($(!0),L(ke,null,yt(y(r),([{name:H,hidden:P},R])=>($(),L(ke,{key:H},[R.length?($(),ae(y(X5),{key:0,p3:"",flex:"~ col gap-1",class:Le(P?"op50 grayscale":"")},{default:Y(()=>[D(y(J8),{"model-value":!y(h).includes(H),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":N=>v(H,N)},{default:Y(()=>[b("div",mRt,[b("span",yRt,Te(H),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),S[11]||(S[11]=b("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),($(!0),L(ke,null,yt(R,N=>($(),ae(y(J8),{key:N.name,class:Le(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",N.hidden?"op35":""]),"model-value":!y(d).includes(N.name),"onUpdate:modelValue":U=>C(N.name,U)},{default:Y(()=>[b("div",bRt,[D(T,{"text-xl":"",icon:N.icon,fallback:N.fallbackIcon,title:N.title},null,8,["icon","fallback","title"]),b("span",null,Te(N.title),1),S[10]||(S[10]=b("div",{"flex-auto":""},null,-1)),y(f).includes(N.name)?($(),L(ke,{key:0},[b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(()=>{y(f).indexOf(N.name)!==0&&I(N.name,-1)},["stop"])},S[8]||(S[8]=[b("div",{class:"i-carbon-caret-up"},null,-1)]),8,wRt),b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(()=>{y(f).indexOf(N.name)!==y(f).length-1&&I(N.name,1)},["stop"])},S[9]||(S[9]=[b("div",{class:"i-carbon-caret-down"},null,-1)]),8,$Rt)],64)):oe("",!0),b("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Qn(U=>A(N.name),["stop"])},[b("div",{class:Le(y(f).includes(N.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,_Rt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):oe("",!0)],64))),128))]),b("div",MRt,[S[25]||(S[25]=b("h3",{"text-lg":""}," Appearance ",-1)),D(y(X5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[b("div",zRt,[D(y(AW),null,{default:Y(({isDark:H,toggle:P})=>[D(y(ht),{outlined:"",type:"primary",onClick:P},{default:Y(()=>[S[13]||(S[13]=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Ee(" "+Te(H?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),S[16]||(S[16]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),S[17]||(S[17]=b("p",null,"UI Scale",-1)),b("div",null,[D(y(Fd),{modelValue:y(i),"onUpdate:modelValue":S[0]||(S[0]=H=>rt(i)?i.value=H:null),options:u.map(([H,P])=>({label:H,value:P})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),S[18]||(S[18]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),b("div",ERt,[D(y(O2),{modelValue:y(l),"onUpdate:modelValue":S[1]||(S[1]=H=>rt(l)?l.value=H:null)},null,8,["modelValue"]),S[14]||(S[14]=b("span",{op75:""},"Expand Sidebar",-1))]),b("div",SRt,[D(y(O2),{modelValue:y(c),"onUpdate:modelValue":S[2]||(S[2]=H=>rt(c)?c.value=H:null)},null,8,["modelValue"]),S[15]||(S[15]=b("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?($(),L(ke,{key:0},[S[23]||(S[23]=b("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(X5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[b("div",TRt,[D(y(O2),{modelValue:y(o),"onUpdate:modelValue":S[3]||(S[3]=H=>rt(o)?o.value=H:null)},null,8,["modelValue"]),S[19]||(S[19]=b("span",{op75:""},"Close DevTools when clicking outside",-1))]),b("div",kRt,[D(y(O2),{modelValue:y(a),"onUpdate:modelValue":S[4]||(S[4]=H=>rt(a)?a.value=H:null)},null,8,["modelValue"]),S[20]||(S[20]=b("span",{op75:""},"Always show the floating panel",-1))]),S[21]||(S[21]=b("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),S[22]||(S[22]=b("p",null,"Minimize floating panel on inactive",-1)),b("div",null,[D(y(Fd),{modelValue:y(s),"onUpdate:modelValue":S[5]||(S[5]=H=>rt(s)?s.value=H:null),"button-props":{outlined:!0},options:y(w),placeholder:y(M)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):oe("",!0),S[26]||(S[26]=b("h3",{mt2:"","text-lg":""}," Debug ",-1)),b("div",LRt,[D(y(ht),{outlined:"",type:"warning",onClick:S[6]||(S[6]=H=>p.value=!0)},{default:Y(()=>S[24]||(S[24]=[b("div",{"i-carbon-breaking-change":""},null,-1),Ee(" Reset Local Settings & State ")])),_:1}),D(y(sve),{modelValue:y(p),"onUpdate:modelValue":S[7]||(S[7]=H=>rt(p)?p.value=H:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:m},null,8,["modelValue"])])])])])}}}),xRt={"h-full":"",flex:"","flex-col":"",p2:""},HRt={class:"relative mb-1 w-full flex items-center justify-end pb-1",border:"b dashed base"},VRt={key:0,class:"absolute left-0 text-xs text-gray-300 dark:text-gray-500"},PRt={class:"flex items-center gap-2 px-1"},RRt={key:0,class:"recording recording-btn bg-[#ef4444]"},DRt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},NRt={class:"flex items-center gap1"},FRt={class:"p2"},BRt=["onClick"],jRt=["onClick"],GRt=he({__name:"TimelineLayers",props:cc({data:{}},{modelValue:{},modelModifiers:{}}),emits:cc(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=Yi(),i=W(()=>n.timelineLayersState.value.recordingState),o=W(()=>n.timelineLayersState.value),a=W(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=Of();W(()=>s.value==="dark");const l=CI(t,"modelValue");function c(d){l.value=d,e("select",d),ge.value.updateTimelineLayersState({selected:d})}Qe(()=>o.value.selected,d=>{l.value=d},{immediate:!0});function u(d){return{mouse:o.value.mouseEventEnabled,keyboard:o.value.keyboardEventEnabled,"component-event":o.value.componentEventEnabled,performance:o.value.performanceEventEnabled}[d]}function g(){ge.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];ge.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>($(),L("div",xRt,[b("div",HRt,[y(i)?oe("",!0):($(),L("span",VRt,"Not recording")),b("div",PRt,[mt(($(),L("div",{class:"flex items-center gap1",onClick:g},[y(i)?($(),L("span",RRt)):($(),L("span",DRt))])),[[y(Bt),{content:y(a)},void 0,{"bottom-end":!0}]]),mt(($(),L("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(hc),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Bt),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),mt(($(),L("div",NRt,[D(y(hc),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Bt),{content:"<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>",html:!0},void 0,{"bottom-end":!0}]])])]),b("ul",FRt,[($(!0),L(ke,null,yt(d.data,C=>($(),L("li",{key:C.id,class:Le(["group relative selectable-item",{active:C.id===l.value,op60:!u(C.id)}]),onClick:v=>c(C.id)},[Ee(Te(C.label)+" ",1),b("span",{class:"absolute right-2 rounded-1 bg-primary-500 px1 text-3 text-white op0 [.active_&]:bg-primary-400 [.active_&]:dark:bg-gray-600 group-hover:op80 hover:op100!",onClick:Qn(v=>h(C.id),["stop"])},Te(u(C.id)?"Disable":"Enable"),9,jRt)],10,BRt))),128))])]))}}),URt=VI(GRt,[["__scopeId","data-v-ba7472d9"]]),WRt={class:"h-full w-full"},ZRt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},KRt={class:"h-full flex flex-col"},YRt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},XRt={class:"h-full flex flex-col p2"},qRt=he({__name:"timeline",setup(t){const r=Z(),e=Z(),n=Z(!1),{width:i}=JG(e),o=W(()=>n.value?i.value<700:!1),a=Yi(),s=W(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=W(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=Z(a.activeAppRecordId.value);vn(()=>{c.value=a.activeAppRecordId.value});function u(C){ge.value.toggleApp(C).then(()=>{d()})}const g=Z(""),h=[{label:"Mouse",id:"mouse"},{label:"Keyboard",id:"keyboard"},{label:"Component events",id:"component-event"},{label:"Performance",id:"performance"}];function d(){r.value?.clear()}function f(){d()}return(C,v)=>{const A=URt;return $(),L("div",WRt,[D(y(Y1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:Y(()=>[y(s).length>1?($(),ae(y(An),{key:0,border:"base h-full",size:"20"},{default:Y(()=>[b("div",ZRt,[D(y(nZ),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>rt(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(An),{border:"base","h-full":""},{default:Y(()=>[b("div",KRt,[b("div",YRt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>rt(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(An),{relative:"","h-full":"",size:"65"},{default:Y(()=>[b("div",XRt,[D(y(jI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":"","plugin-id":"","switcher-visible":!1},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function QRt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const $b=Ta(new Map);function JRt(){const{enabledFlattenTabs:t}=Pf(),r=Sc(),e=Yi();let n=[];const i=W(()=>yZ(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>tDt()}],a=W(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return W(()=>QRt([...o,...a.value,...eDt(i.value),...Array.from($b.values()).flatMap(s=>Ad(s))]))}function $F(t){t?.type==="url"&&window.open(t.src,"_blank")}function eDt(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{$F(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));$F(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function _F(t){const r=boe();$b.set(r,t),pn(()=>{$b.delete(r)})}let q6;const MF={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function tDt(){return q6||(q6=(await xi(()=>import("./vue-apis-DJBctb31.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:MF[r.description]??MF["...others"],action:()=>{window.open(r.url,"_blank")}}))),q6}const rDt={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},nDt={border:"b base","flex-none":""},iDt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},oDt=["id","onClick","onMouseover"],aDt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},sDt={"ws-nowrap":""},lDt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},cDt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},uDt={"text-primary":""},gDt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},hDt={"text-xs":"",flex:"~ items-center gap2"},dDt={px1:""},fDt={px1:""},CDt={"text-xs":"",flex:"~ items-center gap2"},vDt={op75:""},ADt={"text-xs":"",flex:"~ items-center gap2"},IDt={px1:""},pDt=he({__name:"CommandPalette",setup(t){const r=Z(!1),e=Z(""),n=JRt(),i=Z(),o=W(()=>i.value||n.value),a=W(()=>new xc(o.value,{keys:["id","title"],distance:50})),s=W(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=Z(0);Qe(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return Ii("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=rC;return y(r)?($(),ae(y(Rw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:Y(()=>[b("div",rDt,[b("header",nDt,[D(y(Ki),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>rt(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),b("div",iDt,[($(!0),L(ke,null,yt(y(s),(C,v)=>($(),L("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[b("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Le(y(l)===v?"op100 saturate-100 bg-active":"op80")},[D(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),b("span",aDt,[b("span",sDt,Te(C.title),1),b("span",lDt,Te(C.description),1)]),y(l)===v?($(),ae(y(Xt),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):oe("",!0)],2)],40,oDt))),128)),y(s).length?oe("",!0):($(),L("div",cDt,[D(y(Xt),{icon:"carbon-search",op50:""}),b("div",null,[d[1]||(d[1]=b("span",{op50:""},"No results for",-1)),b("strong",uDt,' "'+Te(y(e))+'" ',1)])]))]),b("footer",gDt,[b("div",hDt,[b("button",dDt,[D(y(Xt),{icon:"i-carbon-arrow-down"})]),b("button",fDt,[D(y(Xt),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=b("span",{op75:""},"to navigate",-1))]),b("div",CDt,[d[3]||(d[3]=b("button",{px1:""}," Esc ",-1)),b("span",vDt,"to "+Te(y(i)?"go back":"close"),1)]),b("div",ADt,[b("button",IDt,[D(y(Xt),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=b("span",{op75:""},"to select",-1))])])])]),_:1})):oe("",!0)}}}),mDt={flex:"~ items-center gap-3"},yDt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},bDt={"translate-y-0.5px":""},wDt={key:0,hidden:"","lg:block":""},Jie=he({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=Ef(),n=W(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=W(()=>"badge"in r.tab&&r.tab.badge?.()),o=W(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(Ir.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=rC;return $(),ae(y(Ave),{disabled:!s.minimized,placement:"right",class:Le({"w-full":!s.minimized})},{popper:Y(()=>[b("div",null,Te(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?($(),L("div",wDt,[($(),ae(k1(s.tab.extraTabVNode)))])):oe("",!0)]),default:Y(()=>[($(),ae(k1(s.target==="main"?y(CG):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Le([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:Y(()=>[b("div",mDt,[D(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?oe("",!0):($(),L("span",yDt,Te(s.tab.title),1))]),y(i)?($(),L("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Le([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[b("span",bDt,Te(y(pr)(y(i))),1)],2)):oe("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),$Dt={flex:"~ col gap-1","max-w-80":"",py1:""},_Dt={key:0,"h-1px":"",border:"b base"},MDt={flex:"~ wrap",px1:""},eoe=he({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Jie;return $(),L("div",$Dt,[($(!0),L(ke,null,yt(r.categories,([i,o],a)=>($(),L(ke,{key:i},[o.length?($(),L(ke,{key:0},[a?($(),L("div",_Dt)):oe("",!0),b("div",MDt,[($(!0),L(ke,null,yt(o,s=>($(),ae(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):oe("",!0)],64))),128))])}}}),zDt={"h-full":"","h-screen":"","of-hidden":""},EDt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},SDt={flex:"","cursor-pointer":"","items-center":"",gap2:""},TDt={capitalize:""},kDt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},LDt={key:3,class:"h-full w-full $ui-fcc"},ODt=he({__name:"SplitScreen",setup(t){function r(){Ir.value.splitScreen.enabled=!1}const e=W(()=>Ir.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=Pf(),o=Sc(),a=Ef(),s=Zi(),l=Z(null),c=Z(null),u=Z(null);function g(v){const A=f();return v?v.name===A:!1}const h=W(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=W(()=>f());function f(){return a.path.startsWith(`/${v7}/`)?a.path.slice(v7.length+2):a.path.startsWith(`/${Yh}/`)?a.path.slice(Yh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Qe(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(Yh)){l.value=v.name,c.value=v.pluginId,u.value="custom-inspector";return}l.value=null;const p=o.getRoutes().find(m=>m.path===`/${v.path}`)?.components?.default;typeof p=="function"?s.value=Hae(p):s.value=p},{immediate:!0});const C=Z(!1);return(v,A)=>{const I=rC,p=eoe,m=mZ;return $(),L("div",zDt,[(y(s)||y(l))&&y(h)?($(),L("div",EDt,[D(y(Tu),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:Y(()=>[b("div",SDt,[A[0]||(A[0]=b("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1)),D(I,{"text-xl":"",icon:y(h)?.icon,title:y(h).name,fallback:y(h).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),b("span",TDt,Te(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=b("div",{"flex-auto":""},null,-1)),mt(($(),L("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[b("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(Bt),"Close split screen"]])])):oe("",!0),y(l)&&y(h)?($(),L(ke,{key:1},[y(u)==="custom-tab"?($(),ae(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?($(),ae(y(vZ),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):oe("",!0)],64)):y(s)&&y(h)?($(),L("div",kDt,[($(),ae(k1(y(s)),{key:`tab-${y(h).name}`}))])):($(),L("div",LDt,[b("div",null,[A[4]||(A[4]=b("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(X5),{px4:"",py2:"","bg-base":""},{default:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ht),{type:"warning",outlined:"",mt2:"",onClick:r},{default:Y(()=>A[3]||(A[3]=[Ee(" Close Split Screen ")])),_:1})])]))])}}}),xDt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},HDt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},VDt={px3:"",py2:"",flex:"~ gap2"},PDt=he({__name:"DockingPanel",setup(t){const r=Sc(),e=W({get:()=>Ir.value.expandSidebar,set:u=>Ir.value.expandSidebar=u}),n=W({get:()=>Ir.value.splitScreen.enabled,set:u=>Ir.value.splitScreen.enabled=u});function i(){location.reload()}const o=Yi(),a=W(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=Z(o.activeAppRecordId.value);vn(()=>{s.value=o.activeAppRecordId.value});const l=W(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){ge.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{nG()})})}return(u,g)=>($(),L("div",null,[b("div",xDt,[D(y(AW),null,{default:Y(({isDark:h,toggle:d})=>[D(y(ht),{outlined:"",type:"primary",onClick:d},{default:Y(()=>[g[3]||(g[3]=b("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Ee(" "+Te(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ht),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:Y(()=>[D(y(Xt),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),Ee(" "+Te(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ht),{to:"/settings",outlined:"",type:"primary"},{default:Y(()=>g[4]||(g[4]=[b("div",{"i-carbon-settings-adjust":""},null,-1),Ee(" Settings ")])),_:1})]),b("div",HDt,[D(y(ht),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:Y(()=>[g[5]||(g[5]=b("div",{"i-carbon-split-screen":""},null,-1)),Ee(" "+Te(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),b("div",VDt,[y(a).length>1?($(),ae(y(Fd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>rt(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):oe("",!0),D(y(ht),{outlined:"",type:"primary",onClick:i},{default:Y(()=>g[6]||(g[6]=[Ee(" Refresh Page ")])),_:1})])]))}}),RDt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},DDt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},NDt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},FDt=["flex"],BDt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},jDt={"translate-y-0.5px":""},GDt=45,UDt=he({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=Z(!1),i=Z(!1),o=Z(),a=Z(),s=Z(),l=W(()=>Ir.value.expandSidebar),c=W(()=>Ir.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=Pf(),{height:h}=Uhe(),d=W(()=>{const M=h.value-130;return Math.max(0,Math.floor(M/GDt))}),f=W(()=>g.value.slice(0,d.value)),C=W(()=>g.value.slice(d.value)),v=gk(f,u),A=gk(C,u),I=W(()=>c.value||l.value?u.value:v.value);Ihe(o,M=>{a.value&&M.composedPath().includes(a.value)||s.value&&M.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=Z(),m=Z(6);pw(p,()=>{m.value=m.value===6?6.01:6});const w=DM();return Lhe(p,([{isIntersecting:M}])=>{e("toggleDevtoolsClientVisible",{visible:M,host:w})}),(M,k)=>{const S=PDt,E=Jie,T=rC,H=eoe;return $(),L("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[b("div",RDt,[D(y(Tu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:Y(()=>[D(S)]),default:Y(()=>[b("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Le([y(l)?"rounded pl2.5":"rounded-xl"])},[k[3]||(k[3]=b("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?($(),L(ke,{key:0},[k[0]||(k[0]=b("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),k[1]||(k[1]=b("div",{"flex-auto":""},null,-1)),k[2]||(k[2]=b("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):oe("",!0)],2)]),_:1},8,["distance","shown"])]),b("div",DDt,[($(!0),L(ke,null,yt(y(I),([P,R],N)=>($(),L(ke,{key:P},[N?($(),L("div",NDt)):oe("",!0),($(!0),L(ke,null,yt(R.filter(U=>!U.hidden),U=>($(),ae(E,{key:U.name,tab:U,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),k[4]||(k[4]=b("div",{"flex-auto":""},null,-1))]),b("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?($(),ae(y(Tu),{key:0,placement:"left-end",distance:6},{popper:Y(()=>[D(H,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:Y(()=>[b("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[D(T,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),b("div",BDt,[b("span",jDt,Te(y(C).length),1)])],512)]),_:1})):oe("",!0),D(E,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,FDt)],512)}}}),toe=Zi([]),roe=Z(null);W(()=>toe.value.find(t=>t.id===roe.value));const WDt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},ZDt=he({__name:"App",setup(t){Of();const r=Sc(),e=Ef(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=Yi(),s=Ir,l=W(()=>n.value&&i.value),c=W(()=>e.path.startsWith("/__")||e.path==="/"),u=W(()=>s.value.expandSidebar),g=W(()=>s.value.splitScreen.enabled),h=W({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});vn(()=>{const A=Ir.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),es(()=>{vn(()=>{ge.value.emit("update-client-state",{minimizePanelInteractive:Ir.value.minimizePanelInteractive,closeOnOutsideClick:Ir.value.interactionCloseOnOutsideClick,showFloatingPanel:Ir.value.showPanel})})}),Qe(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),Ii("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&ge.value.emit("toggle-panel")}),vn(()=>{toe.value=a.value,roe.value=o.value}),es(()=>{ge.value.initDevToolsServerListener(),ge.value.checkVueInspectorDetected().then(A=>{A&&(wI.value=!0,_F(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{ge.value.emit("toggle-panel",!1),await ge.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{nG()})}gw(()=>{ge.functions.on(Zt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=PI(),C=Ohe({});_F(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{ge.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),wi(()=>{es(()=>{ge.value.toggleClientConnected(!0)})}),pn(()=>{ge.value.toggleClientConnected(!1),ge.functions.off(Zt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;ge.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=$ve,m=UDt,w=Uo("RouterView"),M=ODt,k=pDt;return $(),L("main",WDt,[y(l)?($(),L("div",{key:1,class:Le(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?oe("",!0):($(),ae(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(Y1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=S=>h.value=S.map(E=>E.size))},{default:Y(()=>[D(y(An),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:Y(()=>[D(w)]),_:1},8,["size"]),!y(c)&&y(g)?($(),ae(y(An),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:Y(()=>[D(M)]),_:1},8,["size"])):oe("",!0)]),_:1})],2)):($(),ae(p,{key:0})),D(k)])}}}),KDt=[{path:"/",component:$Pt},{path:"/overview",component:PPt},{path:"/components",component:c7e},{path:"/pinia",component:dRt},{path:"/router",component:fRt},{path:"/pages",component:hRt},{path:"/timeline",component:qRt},{path:"/assets",component:TIe},{path:"/graph",component:APt},{path:"/settings",component:ORt},{path:`/${v7}/:name`,component:E7e},{path:`/${Yh}/:name`,component:v7e}],YDt=Yue({history:_ue(),routes:KDt}),NM=aj(ZDt);NM.use(YDt);NM.use(K2e());NM.mount("#app");async function XDt(){return Sa?void 0:(await X2e(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function qDt(){const t=await XDt();return t&&g2e(t),t}qDt().then(t=>{t&&Z2e()});SF?y8(XE,{preset:"broadcast"}):y8(XE,{preset:"iframe"});
|