vite-plugin-vue-devtools 7.5.0 → 7.5.1
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.
|
@@ -1163,4 +1163,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1163
1163
|
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 hOt(t,r){var e;if(t){if(typeof t=="string")return CN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CN(t,r)}}function CN(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 Il,Xi,Ds,Ns,fv;function vN(t,r){var e=new yl,n=Zy(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 AN=function(){function t(){we(this,t),Il.set(this,new yl),Xi.set(this,new yl)}return $e(t,[{key:"size",get:function(){return Jt(this,Xi,"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];Jt(this,Xi,"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];Jt(this,Xi,"f").delete(s)}}},{key:"clear",value:function(){Jt(this,Xi,"f").clear()}},{key:"getSelection",value:function(){return ra(Jt(this,Xi,"f"))}},{key:"getChanges",value:function(){return{added:ra(vN(Jt(this,Il,"f"),Jt(this,Xi,"f"))),deleted:ra(vN(Jt(this,Xi,"f"),Jt(this,Il,"f"))),previous:ra(new yl(Jt(this,Il,"f"))),current:ra(new yl(Jt(this,Xi,"f")))}}},{key:"commit",value:function(){var e=this.getChanges();Wy(this,Il,Jt(this,Xi,"f")),Wy(this,Xi,new yl(Jt(this,Il,"f")));var n=Zy(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=Zy(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}();Il=new Qh,Xi=new Qh;var dOt=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};we(this,t),Ds.set(this,new AN),Ns.set(this,new AN),fv.set(this,void 0),Wy(this,fv,r)}return $e(t,[{key:"sizeNodes",get:function(){return Jt(this,Ds,"f").size}},{key:"sizeEdges",get:function(){return Jt(this,Ns,"f").size}},{key:"getNodes",value:function(){return Jt(this,Ds,"f").getSelection()}},{key:"getEdges",value:function(){return Jt(this,Ns,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Jt(this,Ds,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Jt(this,Ns,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Jt(this,Ds,"f").delete(e)}},{key:"deleteEdges",value:function(e){Jt(this,Ns,"f").delete(e)}},{key:"clear",value:function(){Jt(this,Ds,"f").clear(),Jt(this,Ns,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Jt(this,Ds,"f").commit(),edges:Jt(this,Ns,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(e=Jt(this,fv,"f")).call.apply(e,P_(n=[this,i]).call(n,a)),i}}]),t}();Ds=new Qh,Ns=new Qh,fv=new Qh;function IN(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=fOt(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.
|
|
1164
1164
|
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 fOt(t,r){var e;if(t){if(typeof t=="string")return pN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pN(t,r)}}function pN(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 COt=function(){function t(r,e){var n=this;we(this,t),this.body=r,this.canvas=e,this._selectionAccumulator=new dOt,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Wr(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return $e(t,[{key:"setOptions",value:function(e){if(e!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];Dg(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 Oi){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,ra(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 Oi?this.hoverObj.nodes[e.id]=e:this.hoverObj.edges[e.id]=e}},{key:"_removeFromSelection",value:function(e){if(e instanceof Oi){var n;this._selectionAccumulator.deleteNodes(e),(n=this._selectionAccumulator).deleteEdges.apply(n,ra(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 Oi?(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 Oi?(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 Oi&&i.id!=a||i instanceof nu)&&(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 nu&&i.id!=s||i instanceof Oi&&!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 nu&&l===0&&c===0,g=i instanceof Oi&&l===0&&c===0;(o||u||g)&&(o=this.emitHoverEvent(e,n,i)),i instanceof Oi&&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 Ru(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Ru(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=IN(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=IN(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}(),mN=lte,vOt=Math.floor,Ky=function(t,r){var e=t.length,n=vOt(e/2);return e<8?AOt(t,r):IOt(t,Ky(mN(t,0,n),r),Ky(mN(t,n),r),r)},AOt=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},IOt=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},pOt=Ky,mOt=y0,yN=mOt.match(/firefox\/(\d+)/i),yOt=!!yN&&+yN[1],bOt=y0,wOt=/MSIE|Trident/.test(bOt),$Ot=y0,bN=$Ot.match(/AppleWebKit\/(\d+)\./),_Ot=!!bN&&+bN[1],MOt=et,_ne=Ot,zOt=Rc,EOt=_i,wN=vo,SOt=Kte,$N=xa,sM=Tt,TOt=pOt,LOt=Pg,_N=yOt,kOt=wOt,MN=b0,zN=_Ot,n1=[],EN=_ne(n1.sort),OOt=_ne(n1.push),xOt=sM(function(){n1.sort(void 0)}),HOt=sM(function(){n1.sort(null)}),VOt=LOt("sort"),Mne=!sM(function(){if(MN)return MN<70;if(!(_N&&_N>3)){if(kOt)return!0;if(zN)return zN<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++)n1.push({k:e+i,v:n})}for(n1.sort(function(o,a){return a.v-o.v}),i=0;i<n1.length;i++)e=n1[i].k.charAt(0),t.charAt(t.length-1)!==e&&(t+=e);return t!=="DGBEFHACIJK"}}),POt=xOt||!HOt||!VOt||!Mne,ROt=function(t){return function(r,e){return e===void 0?-1:r===void 0?1:t!==void 0?+t(r,e)||0:$N(r)>$N(e)?1:-1}};MOt({target:"Array",proto:!0,forced:POt},{sort:function(r){r!==void 0&&zOt(r);var e=EOt(this);if(Mne)return r===void 0?EN(e):EN(e,r);var n=[],i=wN(e),o,a;for(a=0;a<i;a++)a in e&&OOt(n,e[a]);for(TOt(n,ROt(r)),o=wN(n),a=0;a<o;)e[a]=n[a++];for(;a<i;)SOt(e,a++);return e}});var DOt=bn,NOt=DOt("Array").sort,BOt=Dr,FOt=NOt,w6=Array.prototype,jOt=function(t){var r=t.sort;return t===w6||BOt(w6,t)&&r===w6.sort?FOt:r},UOt=jOt,GOt=UOt,WOt=GOt,Jh=je(WOt),ZOt=Rc,KOt=_i,YOt=z4,XOt=vo,qOt=TypeError,SN=function(t){return function(r,e,n,i){ZOt(e);var o=KOt(r),a=YOt(o),s=XOt(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 qOt("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}},QOt={left:SN(!1),right:SN(!0)},JOt=Sr,ext=zs,txt=ext(JOt.process)==="process",rxt=et,nxt=QOt.left,ixt=Pg,TN=b0,oxt=txt,axt=!oxt&&TN>79&&TN<83,sxt=axt||!ixt("reduce");rxt({target:"Array",proto:!0,forced:sxt},{reduce:function(r){var e=arguments.length;return nxt(this,r,e,e>1?arguments[1]:void 0)}});var lxt=bn,cxt=lxt("Array").reduce,uxt=Dr,gxt=cxt,$6=Array.prototype,hxt=function(t){var r=t.reduce;return t===$6||uxt($6,t)&&r===$6.reduce?gxt:r},dxt=hxt,fxt=dxt,Cxt=fxt,zne=je(Cxt);function Ene(t){var r=vxt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function vxt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var Sne=function(){function t(){we(this,t)}return $e(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}(),Axt=function(t){xt(e,t);var r=Ene(e);function e(n){var i;return we(this,e),i=r.call(this),i.layout=n,i}return $e(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){Jh(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}(Sne),Ixt=function(t){xt(e,t);var r=Ene(e);function e(n){var i;return we(this,e),i=r.call(this),i.layout=n,i}return $e(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){Jh(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}(Sne),pxt=et,mxt=J1.every,yxt=Pg,bxt=yxt("every");pxt({target:"Array",proto:!0,forced:!bxt},{every:function(r){return mxt(this,r,arguments.length>1?arguments[1]:void 0)}});var wxt=bn,$xt=wxt("Array").every,_xt=Dr,Mxt=$xt,_6=Array.prototype,zxt=function(t){var r=t.every;return t===_6||_xt(_6,t)&&r===_6.every?Mxt:r},Ext=zxt,Sxt=Ext,Txt=Sxt,Tne=je(Txt);function Lxt(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=kxt(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.
|
|
1165
1165
|
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 kxt(t,r){var e;if(t){if(typeof t=="string")return LN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LN(t,r)}}function LN(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 Oxt(t,r){var e=new yl;return Zt(t).call(t,function(n){var i;Zt(i=n.edges).call(i,function(o){o.connected&&e.add(o)})}),Zt(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 xxt(t){return Lne(function(r){var e,n;return Tne(e=gi(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 Hxt(t){return Lne(function(r){var e,n;return Tne(e=gi(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 Lne(t,r,e,n){var i,o=Gl(null),a=zne(i=ra(ane(n).call(n))).call(i,function(d,f){return d+1+f.edges.length},0),s=e+"Id",l=e==="to"?1:-1,c=Lxt(n),u;try{var g=function(){var f=yr(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 L,M;if(!n.has(C))return 0;var S=o[p.id]+l;if(Zt(L=gi(M=p.edges).call(M,function(T){return T.connected&&T.to!==T.from&&T[e]!==p&&n.has(T.toId)&&n.has(T.fromId)})).call(L,function(T){var k=T[s],O=o[k];(O==null||r(S,O))&&(o[k]=S,A.push(T[e]))}),I>a)return{v:{v:Oxt(n,o)}};++I},b;p=A.pop();)if(b=m(),b!==0&&b)return b.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 Vxt=function(){function t(){we(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return $e(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}(),Pxt=function(){function t(r){we(this,t),this.body=r,this._resetRNG(Math.random()+":"+kA()),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"}},Wr(this.options,this.defaultOptions),this.bindEventListeners()}return $e(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(Dg(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),Ji(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"),tr(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=K4(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"):Gt(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=Un.getRangeCore(this.body.nodes,this.body.nodeIndices),n=Un.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 Vxt;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,b=0;b<p.length-1;b++){var _=p[b].max-p[b+1].min;m+=_+e.options.hierarchical.treeSpacing,a(b+1,m)}},a=function(p,m){var b=e.hierarchical.trees;for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&b[_]===p&&e.direction.shift(_,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 b=e.hierarchical.childrenReference[p.id];if(b.length>0)for(var _=0;_<b.length;_++)I(e.body.nodes[b[_]],m)}},c=function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,L=1e9,M=-1e9;for(var S in p)if(Object.prototype.hasOwnProperty.call(p,S)){var T=e.body.nodes[S],k=e.hierarchical.levels[T.id],O=e.direction.getPosition(T),P=e._getSpaceAroundNode(T,p),B=yr(P,2),te=B[0],ee=B[1];b=Math.min(te,b),_=Math.min(ee,_),k<=m&&(L=Math.min(O,L),M=Math.max(O,M))}return[L,M,b,_]},u=function(p,m){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(m.id);return Math.min(b,_)},g=function(p,m,b){for(var _=e.hierarchical,L=0;L<m.length;L++){var M=m[L],S=_.distributionOrdering[M];if(S.length>1)for(var T=0;T<S.length-1;T++){var k=S[T],O=S[T+1];_.hasSameParent(k,O)&&_.inSameSubNetwork(k,O)&&p(k,O,b)}}},h=function(p,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),L=e.direction.getPosition(m),M=Math.abs(L-_),S=e.options.hierarchical.nodeSpacing;if(M>S){var T={},k={};l(p,T),l(m,k);var O=u(p,m),P=c(T,O),B=c(k,O),te=P[1],ee=B[0],re=B[2],Me=Math.abs(te-ee);if(Me>S){var He=te-ee+S;He<-re+S&&(He=-re+S),He<0&&(e._shiftBlock(m.id,He),n=!0,b===!0&&e._centerParent(m))}}},d=function(p,m){for(var b=m.id,_=m.edges,L=e.hierarchical.levels[m.id],M=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,S={},T=[],k=0;k<_.length;k++){var O=_[k];if(O.toId!=O.fromId){var P=O.toId==b?O.from:O.to;S[_[k].id]=P,e.hierarchical.levels[P.id]<L&&T.push(O)}}var B=function(De,be){for(var Ne=0,Ue=0;Ue<be.length;Ue++)if(S[be[Ue].id]!==void 0){var ot=e.direction.getPosition(S[be[Ue].id])-De;Ne+=ot/Math.sqrt(ot*ot+M)}return Ne},te=function(De,be){for(var Ne=0,Ue=0;Ue<be.length;Ue++)if(S[be[Ue].id]!==void 0){var ot=e.direction.getPosition(S[be[Ue].id])-De;Ne-=M*Math.pow(ot*ot+M,-1.5)}return Ne},ee=function(De,be){for(var Ne=e.direction.getPosition(m),Ue={},ot=0;ot<De;ot++){var ft=B(Ne,be),Z=te(Ne,be),ie=40,R=Math.max(-ie,Math.min(ie,Math.round(ft/Z)));if(Ne=Ne-R,Ue[Ne]!==void 0)break;Ue[Ne]=ot}return Ne},re=function(De){var be=e.direction.getPosition(m);if(i[m.id]===void 0){var Ne={};l(m,Ne),i[m.id]=Ne}var Ue=c(i[m.id]),ot=Ue[2],ft=Ue[3],Z=De-be,ie=0;Z>0?ie=Math.min(Z,ft-e.options.hierarchical.nodeSpacing):Z<0&&(ie=-Math.min(-Z,ot-e.options.hierarchical.nodeSpacing)),ie!=0&&(e._shiftBlock(m.id,ie),n=!0)},Me=function(De){var be=e.direction.getPosition(m),Ne=e._getSpaceAroundNode(m),Ue=yr(Ne,2),ot=Ue[0],ft=Ue[1],Z=De-be,ie=be;Z>0?ie=Math.min(be+(ft-e.options.hierarchical.nodeSpacing),De):Z<0&&(ie=Math.max(be-(ot-e.options.hierarchical.nodeSpacing),De)),ie!==be&&(e.direction.setPosition(m,ie),n=!0)},He=ee(p,T);re(He),He=ee(p,_),Me(He)},f=function(p){var m=e.hierarchical.getLevels();m=Ul(m).call(m);for(var b=0;b<p;b++){n=!1;for(var _=0;_<m.length;_++)for(var L=m[_],M=e.hierarchical.distributionOrdering[L],S=0;S<M.length;S++)d(1e3,M[S]);if(n!==!0)break}},C=function(p){var m=e.hierarchical.getLevels();m=Ul(m).call(m);for(var b=0;b<p&&(n=!1,g(h,m,!0),n===!0);b++);},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=Ul(p).call(p);for(var m=0;m<p.length;m++)for(var b=p[m],_=e.hierarchical.distributionOrdering[b],L=0;L<_.length;L++)e._centerParent(_[L])};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=yr(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),Jh(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]]);Jh(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 vt(e.edges,function(o){var a;zt(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;vt(i,function(a){var s=e.body.nodes[a],l=e._getActiveEdges(s).length;n[l]=!0});var o=[];return vt(n,function(a){o.push(Number(a))}),Jh(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;vt(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(Un.cloneOptions(s,"node"),Un.cloneOptions(l,"node"),Un.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=zne(e=this.body.nodeIndices).call(e,function(o,a){return o.set(a,n.body.nodes[a]),o},new Yre);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=Hxt(i):this.hierarchical.levels=xxt(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 Axt(this):this.direction=new Ixt(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 Rxt(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=Dxt(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.
|
|
1166
|
-
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 Dxt(t,r){var e;if(t){if(typeof t=="string")return kN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(t,r)}}function kN(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 Nxt=function(){function t(r,e,n,i){var o=this,a,s;we(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}},Wr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",ve(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",ve(s=this._restore).call(s,this))}return $e(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,tr(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,ve(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",ve(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,ve(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",ve(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=tr({},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,ve(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",ve(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",ve(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",ve(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",ve(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",ve(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",Gt(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,ve(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",ve(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",ve(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",ve(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",ve(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=tr({},this.options.controlNodeStyle);i.id="targetNode"+qh(),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={},Ks(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,ve(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Ks(this.editModeDiv),Ks(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=Rxt(rs(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(),Ks(this.manipulationDiv),Ks(this.editModeDiv),Ks(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,ve(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,ve(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,ve(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,ve(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,ve(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,ve(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: "+H0(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 ru(e,{});NA(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=zt(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;rs(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=zt(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var c;rs(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=Wr({},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=Wr({},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"+qh(),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(zt(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(zt(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:qh(),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(Gt(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}(),ye="string",de="boolean",X="number",Ih="array",Fe="object",kne="dom",Bxt="any",M6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],z6={borderWidth:{number:X},borderWidthSelected:{number:X,undefined:"undefined"},brokenImage:{string:ye,undefined:"undefined"},chosen:{label:{boolean:de,function:"function"},node:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{border:{string:ye},background:{string:ye},highlight:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},hover:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},opacity:{number:X,undefined:"undefined"},fixed:{x:{boolean:de},y:{boolean:de},__type__:{object:Fe,boolean:de}},font:{align:{string:ye},color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},group:{string:ye,number:X,undefined:"undefined"},heightConstraint:{minimum:{number:X},valign:{string:ye},__type__:{object:Fe,boolean:de,number:X}},hidden:{boolean:de},icon:{face:{string:ye},code:{string:ye},size:{number:X},color:{string:ye},weight:{string:ye,number:X},__type__:{object:Fe}},id:{string:ye,number:X},image:{selected:{string:ye,undefined:"undefined"},unselected:{string:ye,undefined:"undefined"},__type__:{object:Fe,string:ye}},imagePadding:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},level:{number:X,undefined:"undefined"},margin:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},mass:{number:X},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:de,array:Ih},borderRadius:{number:X},interpolation:{boolean:de},useImageSize:{boolean:de},useBorderWithImage:{boolean:de},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Fe}},size:{number:X},title:{string:ye,dom:kne,undefined:"undefined"},value:{number:X,undefined:"undefined"},widthConstraint:{minimum:{number:X},maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},x:{number:X},y:{number:X},__type__:{object:Fe}},Fxt={configure:{enabled:{boolean:de},filter:{boolean:de,string:ye,array:Ih,function:"function"},container:{dom:kne},showButton:{boolean:de},__type__:{object:Fe,boolean:de,string:ye,array:Ih,function:"function"}},edges:{arrows:{to:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageHeight:{number:X},imageWidth:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},middle:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},from:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},__type__:{string:["from","to","middle"],object:Fe}},endPointOffset:{from:{number:X},to:{number:X},__type__:{object:Fe,number:X}},arrowStrikethrough:{boolean:de},background:{enabled:{boolean:de},color:{string:ye},size:{number:X},dashes:{boolean:de,array:Ih},__type__:{object:Fe,boolean:de}},chosen:{label:{boolean:de,function:"function"},edge:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{color:{string:ye},highlight:{string:ye},hover:{string:ye},inherit:{string:["from","to","both"],boolean:de},opacity:{number:X},__type__:{object:Fe,string:ye}},dashes:{boolean:de,array:Ih},font:{color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},hidden:{boolean:de},hoverWidth:{function:"function",number:X},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},length:{number:X,undefined:"undefined"},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},selectionWidth:{function:"function",number:X},selfReferenceSize:{number:X},selfReference:{size:{number:X},angle:{number:X},renderBehindTheNode:{boolean:de},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},smooth:{enabled:{boolean:de},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:X},forceDirection:{string:["horizontal","vertical","none"],boolean:de},__type__:{object:Fe,boolean:de}},title:{string:ye,undefined:"undefined"},width:{number:X},widthConstraint:{maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},value:{number:X,undefined:"undefined"},__type__:{object:Fe}},groups:{useDefaultGroups:{boolean:de},__any__:z6,__type__:{object:Fe}},interaction:{dragNodes:{boolean:de},dragView:{boolean:de},hideEdgesOnDrag:{boolean:de},hideEdgesOnZoom:{boolean:de},hideNodesOnDrag:{boolean:de},hover:{boolean:de},keyboard:{enabled:{boolean:de},speed:{x:{number:X},y:{number:X},zoom:{number:X},__type__:{object:Fe}},bindToWindow:{boolean:de},autoFocus:{boolean:de},__type__:{object:Fe,boolean:de}},multiselect:{boolean:de},navigationButtons:{boolean:de},selectable:{boolean:de},selectConnectedEdges:{boolean:de},hoverConnectedEdges:{boolean:de},tooltipDelay:{number:X},zoomView:{boolean:de},zoomSpeed:{number:X},__type__:{object:Fe}},layout:{randomSeed:{undefined:"undefined",number:X,string:ye},improvedLayout:{boolean:de},clusterThreshold:{number:X},hierarchical:{enabled:{boolean:de},levelSeparation:{number:X},nodeSpacing:{number:X},treeSpacing:{number:X},blockShifting:{boolean:de},edgeMinimization:{boolean:de},parentCentralization:{boolean:de},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Fe,boolean:de}},__type__:{object:Fe}},manipulation:{enabled:{boolean:de},initiallyActive:{boolean:de},addNode:{boolean:de,function:"function"},addEdge:{boolean:de,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Fe,boolean:de,function:"function"}},deleteNode:{boolean:de,function:"function"},deleteEdge:{boolean:de,function:"function"},controlNodeStyle:z6,__type__:{object:Fe,boolean:de}},nodes:z6,physics:{enabled:{boolean:de},barnesHut:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},forceAtlas2Based:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},repulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},__type__:{object:Fe}},hierarchicalRepulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},maxVelocity:{number:X},minVelocity:{number:X},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:de},iterations:{number:X},updateInterval:{number:X},onlyDynamicEdges:{boolean:de},fit:{boolean:de},__type__:{object:Fe,boolean:de}},timestep:{number:X},adaptiveTimestep:{boolean:de},wind:{x:{number:X},y:{number:X},__type__:{object:Fe}},__type__:{object:Fe,boolean:de}},autoResize:{boolean:de},clickToUse:{boolean:de},locale:{string:ye},locales:{__any__:{any:Bxt},__type__:{object:Fe}},height:{string:ye},width:{string:ye},__type__:{object:Fe}},One={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]}}},jxt=function(r,e,n){var i;return!!(I1(r).call(r,"physics")&&I1(i=One.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},Uxt=function(){function t(){we(this,t)}return $e(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 b=n[m],_=o[b],L=Math.min(p[b],p[C]+v[b]);p[b]=L,_[I]=L}return o}}]),t}(),Gxt=function(){function t(r,e,n){we(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new Uxt}return $e(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=yr(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=yr(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=yr(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=yr(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 b=s,_=l,L=n,M=c,S=i,T=(L/b+S/_)/(_/b-M/_),k=-(_*T+L)/b;a[e].x+=k,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),b=a[d]*(c-I-s[d]*(c-I)*p);o[h]=[m,b],u+=m,g+=b;var _=this.E_sums[d];_[0]+=m-C,_[1]+=b-v}}this.E_sums[e]=[u,g]}}]),t}();function Pe(t,r,e){var n,i,o,a,s=this;if(!(this instanceof Pe))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:F_t,clickToUse:!1},Wr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:ve(n=this.on).call(n,this),off:ve(i=this.off).call(i,this),emit:ve(o=this.emit).call(o,this),once:ve(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 G_t(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new lzt,this.canvas=new _kt(this.body),this.selectionHandler=new COt(this.body,this.canvas),this.interactionHandler=new Lkt(this.body,this.canvas,this.selectionHandler),this.view=new zkt(this.body,this.canvas),this.renderer=new mkt(this.body,this.canvas),this.physics=new ukt(this.body),this.layoutEngine=new Pxt(this.body),this.clustering=new Ikt(this.body),this.manipulation=new Nxt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new ZTt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new ekt(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Gxt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}kee(Pe.prototype);Pe.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=p_t.validate(t,Fxt);e===!0&&console.error("%cErrors have been found in the supplied options object.",Hre);var n=["locale","locales","clickToUse"];if(Dg(n,this.options,t),t.locale!==void 0&&(t.locale=j_t(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 A_t(this,this.body.container,One,this.canvas.pixelRatio,jxt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};tr(i.nodes,this.nodesHandler.options),tr(i.edges,this.edgesHandler.options),tr(i.layout,this.layoutEngine.options),tr(i.interaction,this.selectionHandler.options),tr(i.interaction,this.renderer.options),tr(i.interaction,this.interactionHandler.options),tr(i.manipulation,this.manipulation.options),tr(i.physics,this.physics.options),tr(i.global,this.canvas.options),tr(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new v_t(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")}};Pe.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)}};Pe.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")})};Pe.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=S_t(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=T_t(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")};Pe.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];Ks(this.body.container)};Pe.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)};Pe.prototype.isActive=function(){return!this.activator||this.activator.active};Pe.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Pe.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Pe.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Pe.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Pe.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Pe.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Pe.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Pe.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Pe.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Pe.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Pe.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};Pe.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};Pe.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};Pe.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};Pe.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};Pe.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Pe.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Pe.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Pe.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Pe.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Pe.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Pe.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};Pe.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Pe.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Pe.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Pe.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Pe.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};Pe.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Pe.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Pe.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Pe.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)};Pe.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Pe.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Pe.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Pe.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Pe.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Pe.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Pe.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};Pe.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};Pe.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Pe.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Pe.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Pe.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Pe.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};Pe.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Pe.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Pe.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Pe.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Pe.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Pe.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Pe.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Pe.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Wxt={flex:"~ col",relative:"","h-full":"","of-hidden":"","panel-grids":"",class:"graph-body"},Zxt=ce({__name:"graph",setup(t){async function r(){const s=await Mo.value.getRoot().then(l=>l);Mo.value.getGraphModules().then(l=>{HKe(l,s)})}function e(){r()}hj(()=>{r(),Mo.functions.on("graphModuleUpdated",e)});const n=G(),i=Bi();function o(){const s=n.value,l=i.value=new Pe(s,{nodes:_u,edges:Mu},fx.value);Je(fx,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{RKe(c.nodes[0]),x7(!0)}),l.on("deselectNode",()=>{x7(!1)}),Je(()=>Eu.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}Ii(()=>{o()}),fn(()=>{kKe(),i.value?.destroy(),Mo.functions.off("graphModuleUpdated",e)});const a=G();return(s,l)=>{const c=JKe,u=qKe,g=XKe;return z(),H("div",Wxt,[D(c,{ref_key:"navbarRef",ref:a},null,512),w("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),Kxt={},Yxt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xxt(t,r){return z(),H("svg",Yxt,r[0]||(r[0]=[oF('<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 xne=fI(Kxt,[["render",Xxt]]);function lM(){return of?"electron":ma?"chrome":RN?"iframe":"separate-window"}const qxt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},Qxt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},Jxt={"max-w-190":"","text-lg":""},eHt=ce({__name:"index",setup(t){const r=lM(),e=Cc(),n=dr;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=xne;return y(r)==="chrome"?(z(),H("div",qxt,[a[1]||(a[1]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=w("p",{"max-w-190":"","text-lg":""},[Se(" This new version supports only Vue 3. "),w("span",{op50:""},[Se(" (Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),Se(") ")]),w("br"),Se(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),w("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),Se(". ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[0]||(a[0]=[w("span",null,"Get Started",-1)])),_:1})])):(z(),H("div",Qxt,[a[6]||(a[6]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),w("p",Jxt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=Se(" 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]=w("br",null,null,-1))]),a[7]||(a[7]=w("p",{mb6:"",op50:""},[Se(" Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[5]||(a[5]=[w("span",null,"Get Started",-1)])),_:1})]))}}}),tHt="7.5.0",rHt={"h-full":"","w-full":"",flex:"","of-auto":""},nHt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},iHt={flex:"~ col","mt-20":"","items-center":""},oHt={flex:"~","mt--10":"","items-center":"","justify-center":""},aHt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},sHt={op40:""},lHt={flex:"~ gap2 wrap"},cHt={p4:"","theme-card-green":"",flex:"~ col auto"},uHt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},gHt={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},hHt={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},dHt=ce({__name:"overview",setup(t){const{vueVersion:r}=uo(),e=G(1),n=G(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=Qr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return Hb(()=>{Ae.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,o),Ae.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Qr(s);n.value=i(l)})}),Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,a),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,a),Ae.functions.off(Nt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=xne,u=Vo("RouterLink");return z(),H("div",rHt,[w("div",nHt,[l[29]||(l[29]=w("div",{"flex-auto":""},null,-1)),w("div",iHt,[w("div",oHt,[D(c,{"h-18":""})]),y(ma)?oe("",!0):(z(),H("div",aHt,[l[0]||(l[0]=w("span",{op40:""}," Vue DevTools ",-1)),w("code",sHt,"v"+ze(y(tHt)),1)]))]),w("div",lHt,[w("div",cHt,[l[1]||(l[1]=w("div",{"i-logos-vue":"","text-3xl":""},null,-1)),w("code",null,"v"+ze(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[2]||(l[2]=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),w("div",null,ze(y(e))+" pages",1)]),_:1}),y(n)?(z(),ne(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[3]||(l[3]=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),w("div",null,ze(y(n))+" components",1)]),_:1})):oe("",!0)]),w("div",uHt,[l[5]||(l[5]=w("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),Se(" Star on GitHub ")],-1)),l[6]||(l[6]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),Se(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),Se(" Project Roadmap ")],-1)),l[8]||(l[8]=w("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),Se(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:W(()=>l[4]||(l[4]=[w("div",{"i-carbon-settings":""},null,-1),Se(" Settings ")])),_:1})]),l[30]||(l[30]=w("div",{"flex-auto":""},null,-1)),w("div",gHt,[l[15]||(l[15]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[9]||(l[9]=[Se(" ⌘ Command ")])),_:1}),l[11]||(l[11]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[10]||(l[10]=[Se(" K ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[12]||(l[12]=[Se(" Alt ")])),_:1}),l[14]||(l[14]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[13]||(l[13]=[Se(" K ")])),_:1})],64)),l[16]||(l[16]=Se(" to toggle Command Palette "))]),!y(of)&&!y(ma)?(z(),H("div",hHt,[l[27]||(l[27]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[17]||(l[17]=[Se(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[18]||(l[18]=[Se(" ⌥ Option ")])),_:1}),l[21]||(l[21]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[19]||(l[19]=[Se(" D ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[22]||(l[22]=[Se(" Shift ")])),_:1}),l[25]||(l[25]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[23]||(l[23]=[Se(" Alt ")])),_:1}),l[26]||(l[26]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[24]||(l[24]=[Se(" D ")])),_:1})],64)),l[28]||(l[28]=Se(" to toggle DevTools "))])):oe("",!0)])])}}}),fHt={"p-2":""},CHt={class:"flex items-center justify-between"},vHt=ce({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(z(),H("div",fHt,[w("div",CHt,[e[1]||(e[1]=w("span",{class:"font-500"},"Route meta detail",-1)),w("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(lw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),AHt={block:"","cursor-pointer":""},IHt={p2:""},pHt=["onSubmit"],mHt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},yHt={key:1},bHt=ce({__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=G([]),a=F(()=>i(e.route.path));gn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=F(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=F(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(z(),ne(y(Cu),{key:1},{popper:W(({hide:h})=>[w("div",IHt,[w("form",{flex:"~ col",onSubmit:Wn(()=>{c(),h()},["prevent"])},[y(l)?(z(),H(Ee,{key:0},[g[0]||(g[0]=w("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),w("div",mHt,[(z(!0),H(Ee,null,At(y(a),(d,f)=>(z(),H(Ee,{key:f},[d[0]===":"?(z(),ne(y(as),{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"])):(z(),H("span",yHt,ze(d),1))],64))),128))])],64)):oe("",!0),D(y(ct),{block:"",type:"primary"},{default:W(()=>g[1]||(g[1]=[Se(" Navigate ")])),_:1})],40,pHt)])]),default:W(()=>[w("code",AHt,[(z(!0),H(Ee,null,At(y(a),(h,d)=>(z(),H("span",{key:d,class:Te(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},ze(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(z(),H("button",{key:0,onClick:c},[w("code",null,ze(u.route.path),1)]))}}),wHt={"w-full":""},$Ht={border:"b base","px-3":""},_Ht={key:0,"text-left":""},MHt={"w-20":"","pr-1":""},zHt={flex:"","items-center":"","justify-end":""},EHt={"text-sm":""},SHt={flex:"inline gap3","items-center":""},THt={op0:"","group-hover:op100":"",flex:"~ gap1"},LHt=["onClick"],kHt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},OHt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},xHt=["title","onClick"],HHt=ce({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=F(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=F(()=>iI.value),i=uo();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=F(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=bHt;return z(),H("div",null,[w("table",wHt,[w("thead",$Ht,[w("tr",null,[l[1]||(l[1]=w("th",{"text-left":""},null,-1)),l[2]||(l[2]=w("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=w("th",{"text-left":""}," Name ",-1)),y(a)?(z(),H("th",_Ht," Route Meta ")):oe("",!0)])]),w("tbody",null,[(z(!0),H(Ee,null,At(y(e),u=>(z(),H("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[w("td",MHt,[w("div",zHt,[s.matched.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):oe("",!0)])]),w("td",EHt,[w("div",SHt,[D(c,{route:u,class:Te(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"]),w("div",THt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(z(),H("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(fd)(u.meta?.file)},l[4]||(l[4]=[w("div",{"i-carbon-script-reference":""},null,-1)]),8,LHt)):oe("",!0)])])]),w("td",kHt,ze(u.name),1),y(a)?(z(),H("td",OHt,[w("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},ze(o(u.meta)),9,xHt)])):oe("",!0)]))),128))])])])}}}),VHt={block:"","h-screen":"","of-auto":""},PHt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},RHt={border:"b base",flex:"~ col gap1",px4:"",py3:""},DHt={key:1,op50:""},NHt={key:0,"text-orange":"",op75:""},BHt={key:1,op50:""},FHt=ce({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=F(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();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){Ae.value.navigate(u)}return Hb(()=>{Ae.value.getRouterInfo().then(u=>{s(u)}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,s)}),nU(r,()=>{r.value!==e.value?.path&&Ae.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),fn(()=>{Ae.functions.off(Nt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=HHt,d=aG,f=vHt;return z(),H("div",VHt,[w("div",PHt,[w("div",RHt,[w("div",null,[(z(),H("span",DHt,"Current route"))]),D(y(as),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>qe(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Te(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:dF(l,["enter"])},null,8,["modelValue","class"]),w("div",null,[y(e)?.path!==y(r)?(z(),H(Ee,{key:0},[g[6]||(g[6]=w("span",null,[Se("Press "),w("b",{"font-bold":""},"Enter"),Se(" to navigate")],-1)),y(i).length?oe("",!0):(z(),H("span",NHt," (no match)"))],64)):(z(),H("span",BHt,"Edit path above to navigate"))])]),D(y(R1),{class:"of-hidden"},{default:W(()=>[D(y(hn),{size:"70",class:"of-auto!"},{default:W(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:W(()=>[y(o).length?(z(),ne(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)?(z(),ne(y(hn),{key:0,size:"30",class:"of-auto!"},{default:W(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):oe("",!0)]),_:1})])])}}}),jHt=ce({__name:"pinia",setup(t){return(r,e)=>(z(),ne(y(b9e)))}}),UHt=ce({__name:"router",setup(t){const{registeredInspector:r}=KG(),e=F(()=>r.value?.find(i=>i.packageName==="vue-router")),n=F(()=>e.value?.id);return(i,o)=>(z(),ne(y(D9e),{id:y(n)},null,8,["id"]))}}),GHt=["src","alt"],WHt=["title"],ON="custom-ic-",j0=ce({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=G(r.icon);Je(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(nie)(y(e))?(z(),H("img",Xr({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,GHt)):y(e)?.startsWith(ON)?(z(),ne(y(Md),Xr({key:1,name:y(e).slice(ON.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):(z(),H("div",Xr({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,WHt))}}),ZHt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},KHt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},YHt={flex:"~ col gap-2"},XHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},qHt={capitalize:"",op75:""},QHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},JHt=["onClick"],eVt=["onClick"],tVt=["onClick"],rVt={flex:"~ col gap-2"},nVt={flex:"~ gap2"},iVt={class:"flex items-center gap2 text-sm"},oVt={class:"flex items-center gap2 text-sm"},aVt={class:"flex items-center gap2 text-sm"},sVt={class:"flex items-center gap2 text-sm"},lVt={flex:"~ gap-2"},cVt=ce({__name:"settings",setup(t){const{categorizedTabs:r}=$f(),e=lM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=x6(Rue(dr)),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}=x6(dr.value.tabSettings);function C(L,M){M?d.value=d.value.filter(S=>S!==L):d.value.push(L)}function v(L,M){M?h.value=h.value.filter(S=>S!==L):h.value.push(L)}function A(L){f.value.includes(L)?f.value=f.value.filter(M=>M!==L):f.value.push(L)}function I(L,M){const S=f.value.indexOf(L);if(S===-1)return;const T=S+M;if(T<0||T>=f.value.length)return;const k=[...f.value];k.splice(S,1),k.splice(T,0,L),f.value=k}const p=G(!1);async function m(){n6e(),window.location.reload()}const b=g.map(([L,M])=>({label:L,value:M})),_=F(()=>`${b.find(M=>M.value===s.value)?.label??"Select..."}`);return(L,M)=>{const S=uw,T=j0;return z(),H("div",ZHt,[D(S,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",KHt,[w("div",YHt,[M[12]||(M[12]=w("h3",{"text-lg":""}," Tabs ",-1)),(z(!0),H(Ee,null,At(y(r),([{name:k,hidden:O},P])=>(z(),H(Ee,{key:k},[P.length?(z(),ne(y(V5),{key:0,p3:"",flex:"~ col gap-1",class:Te(O?"op50 grayscale":"")},{default:W(()=>[D(y($8),{"model-value":!y(h).includes(k),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":B=>v(k,B)},{default:W(()=>[w("div",XHt,[w("span",qHt,ze(k),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),M[11]||(M[11]=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(z(!0),H(Ee,null,At(P,B=>(z(),ne(y($8),{key:B.name,class:Te(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",B.hidden?"op35":""]),"model-value":!y(d).includes(B.name),"onUpdate:modelValue":te=>C(B.name,te)},{default:W(()=>[w("div",QHt,[D(T,{"text-xl":"",icon:B.icon,fallback:B.fallbackIcon,title:B.title},null,8,["icon","fallback","title"]),w("span",null,ze(B.title),1),M[10]||(M[10]=w("div",{"flex-auto":""},null,-1)),y(f).includes(B.name)?(z(),H(Ee,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==0&&I(B.name,-1)},["stop"])},M[8]||(M[8]=[w("div",{class:"i-carbon-caret-up"},null,-1)]),8,JHt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==y(f).length-1&&I(B.name,1)},["stop"])},M[9]||(M[9]=[w("div",{class:"i-carbon-caret-down"},null,-1)]),8,eVt)],64)):oe("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(te=>A(B.name),["stop"])},[w("div",{class:Te(y(f).includes(B.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,tVt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):oe("",!0)],64))),128))]),w("div",rVt,[M[25]||(M[25]=w("h3",{"text-lg":""}," Appearance ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",nVt,[D(y(tG),null,{default:W(({isDark:k,toggle:O})=>[D(y(ct),{outlined:"",type:"primary",onClick:O},{default:W(()=>[M[13]||(M[13]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(k?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),M[16]||(M[16]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[17]||(M[17]=w("p",null,"UI Scale",-1)),w("div",null,[D(y(zd),{modelValue:y(i),"onUpdate:modelValue":M[0]||(M[0]=k=>qe(i)?i.value=k:null),options:u.map(([k,O])=>({label:k,value:O})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),M[18]||(M[18]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),w("div",iVt,[D(y(I2),{modelValue:y(l),"onUpdate:modelValue":M[1]||(M[1]=k=>qe(l)?l.value=k:null)},null,8,["modelValue"]),M[14]||(M[14]=w("span",{op75:""},"Expand Sidebar",-1))]),w("div",oVt,[D(y(I2),{modelValue:y(c),"onUpdate:modelValue":M[2]||(M[2]=k=>qe(c)?c.value=k:null)},null,8,["modelValue"]),M[15]||(M[15]=w("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?(z(),H(Ee,{key:0},[M[23]||(M[23]=w("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",aVt,[D(y(I2),{modelValue:y(o),"onUpdate:modelValue":M[3]||(M[3]=k=>qe(o)?o.value=k:null)},null,8,["modelValue"]),M[19]||(M[19]=w("span",{op75:""},"Close DevTools when clicking outside",-1))]),w("div",sVt,[D(y(I2),{modelValue:y(a),"onUpdate:modelValue":M[4]||(M[4]=k=>qe(a)?a.value=k:null)},null,8,["modelValue"]),M[20]||(M[20]=w("span",{op75:""},"Always show the floating panel",-1))]),M[21]||(M[21]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[22]||(M[22]=w("p",null,"Minimize floating panel on inactive",-1)),w("div",null,[D(y(zd),{modelValue:y(s),"onUpdate:modelValue":M[5]||(M[5]=k=>qe(s)?s.value=k:null),"button-props":{outlined:!0},options:y(b),placeholder:y(_)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):oe("",!0),M[26]||(M[26]=w("h3",{mt2:"","text-lg":""}," Debug ",-1)),w("div",lVt,[D(y(ct),{outlined:"",type:"warning",onClick:M[6]||(M[6]=k=>p.value=!0)},{default:W(()=>M[24]||(M[24]=[w("div",{"i-carbon-breaking-change":""},null,-1),Se(" Reset Local Settings & State ")])),_:1}),D(y(K0e),{modelValue:y(p),"onUpdate:modelValue":M[7]||(M[7]=k=>qe(p)?p.value=k: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"])])])])])}}}),uVt={"h-full":"",flex:"","flex-col":"",p2:""},gVt={class:"mb-1 flex justify-end pb-1",border:"b dashed base"},hVt={class:"flex items-center gap-2 px-1"},dVt={key:0,class:"recording recording-btn bg-[#ef4444]"},fVt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},CVt={class:"flex items-center gap1"},vVt={class:"p2"},AVt=["onClick"],IVt=["onClick"],pVt=ce({__name:"TimelineLayers",props:iu({data:{}},{modelValue:{},modelModifiers:{}}),emits:iu(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=uo(),i=F(()=>n.timelineLayersState.value.recordingState),o=F(()=>n.timelineLayersState.value),a=F(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=mf();F(()=>s.value==="dark");const l=XA(t,"modelValue");function c(d){l.value=d,e("select",d),Ae.value.updateTimelineLayersState({selected:d})}Je(()=>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(){Ae.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];Ae.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>(z(),H("div",uVt,[w("div",gVt,[w("div",hVt,[$t((z(),H("div",{class:"flex items-center gap1",onClick:g},[y(i)?(z(),H("span",dVt)):(z(),H("span",fVt))])),[[y(sr),{content:y(a)},void 0,{"bottom-end":!0}]]),$t((z(),H("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(Md),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),$t((z(),H("div",CVt,[D(y(Md),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{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}]])])]),w("ul",vVt,[(z(!0),H(Ee,null,At(d.data,C=>(z(),H("li",{key:C.id,class:Te(["group relative selectable-item",{active:C.id===l.value}]),onClick:v=>c(C.id)},[Se(ze(C.label)+" ",1),w("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:Wn(v=>h(C.id),["stop"])},ze(u(C.id)?"Disabled":"Enabled"),9,IVt)],10,AVt))),128))])]))}}),mVt=fI(pVt,[["__scopeId","data-v-30da13b1"]]),yVt={class:"h-full w-full"},bVt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},wVt={class:"h-full flex flex-col"},$Vt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},_Vt={class:"h-full flex flex-col p2"},MVt=ce({__name:"timeline",setup(t){const r=G(),e=G(),n=G(!1),{width:i}=uU(e),o=F(()=>n.value?i.value<700:!1),a=uo(),s=F(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=F(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=G(a.activeAppRecordId.value);gn(()=>{c.value=a.activeAppRecordId.value});function u(C){Ae.value.toggleApp(C).then(()=>{d()})}const g=G(""),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=mVt;return z(),H("div",yVt,[D(y(R1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:W(()=>[y(s).length>1?(z(),ne(y(hn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[w("div",bVt,[D(y(BG),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>qe(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(hn),{border:"base","h-full":""},{default:W(()=>[w("div",wVt,[w("div",$Vt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>qe(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(hn),{relative:"","h-full":"",size:"65"},{default:W(()=>[w("div",_Vt,[D(y(yI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":""},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function zVt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const Yy=ya(new Map);function EVt(){const{enabledFlattenTabs:t}=$f(),r=Cc(),e=uo();let n=[];const i=F(()=>nW(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:()=>TVt()}],a=F(()=>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 F(()=>zVt([...o,...a.value,...SVt(i.value),...Array.from(Yy.values()).flatMap(s=>rd(s))]))}function xN(t){t?.type==="url"&&window.open(t.src,"_blank")}function SVt(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:()=>{xN(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));xN(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function HN(t){const r=iie();Yy.set(r,t),fn(()=>{Yy.delete(r)})}let E6;const VN={"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 TVt(){return E6||(E6=(await Si(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:VN[r.description]??VN["...others"],action:()=>{window.open(r.url,"_blank")}}))),E6}const LVt={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":""},kVt={border:"b base","flex-none":""},OVt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},xVt=["id","onClick","onMouseover"],HVt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},VVt={"ws-nowrap":""},PVt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},RVt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},DVt={"text-primary":""},NVt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},BVt={"text-xs":"",flex:"~ items-center gap2"},FVt={px1:""},jVt={px1:""},UVt={"text-xs":"",flex:"~ items-center gap2"},GVt={op75:""},WVt={"text-xs":"",flex:"~ items-center gap2"},ZVt={px1:""},KVt=ce({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=EVt(),i=G(),o=F(()=>i.value||n.value),a=F(()=>new pc(o.value,{keys:["id","title"],distance:50})),s=F(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);Je(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 hi("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=j0;return y(r)?(z(),ne(y(cw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:W(()=>[w("div",LVt,[w("header",kVt,[D(y(as),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>qe(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",OVt,[(z(!0),H(Ee,null,At(y(s),(C,v)=>(z(),H("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Te(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"]),w("span",HVt,[w("span",VVt,ze(C.title),1),w("span",PVt,ze(C.description),1)]),y(l)===v?(z(),ne(y(Ut),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):oe("",!0)],2)],40,xVt))),128)),y(s).length?oe("",!0):(z(),H("div",RVt,[D(y(Ut),{icon:"carbon-search",op50:""}),w("div",null,[d[1]||(d[1]=w("span",{op50:""},"No results for",-1)),w("strong",DVt,' "'+ze(y(e))+'" ',1)])]))]),w("footer",NVt,[w("div",BVt,[w("button",FVt,[D(y(Ut),{icon:"i-carbon-arrow-down"})]),w("button",jVt,[D(y(Ut),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=w("span",{op75:""},"to navigate",-1))]),w("div",UVt,[d[3]||(d[3]=w("button",{px1:""}," Esc ",-1)),w("span",GVt,"to "+ze(y(i)?"go back":"close"),1)]),w("div",WVt,[w("button",ZVt,[D(y(Ut),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=w("span",{op75:""},"to select",-1))])])])]),_:1})):oe("",!0)}}}),YVt={flex:"~ items-center gap-3"},XVt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},qVt={"translate-y-0.5px":""},QVt={key:0,hidden:"","lg:block":""},Hne=ce({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=vf(),n=F(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=F(()=>"badge"in r.tab&&r.tab.badge?.()),o=F(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(dr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=j0;return z(),ne(y(iCe),{disabled:!s.minimized,placement:"right",class:Te({"w-full":!s.minimized})},{popper:W(()=>[w("div",null,ze(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(z(),H("div",QVt,[(z(),ne(y1(s.tab.extraTabVNode)))])):oe("",!0)]),default:W(()=>[(z(),ne(y1(s.target==="main"?y(Mj):"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:Te([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:W(()=>[w("div",YVt,[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):(z(),H("span",XVt,ze(s.tab.title),1))]),y(i)?(z(),H("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Te([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",qVt,ze(y(wr)(y(i))),1)],2)):oe("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),JVt={flex:"~ col gap-1","max-w-80":"",py1:""},ePt={key:0,"h-1px":"",border:"b base"},tPt={flex:"~ wrap",px1:""},Vne=ce({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Hne;return z(),H("div",JVt,[(z(!0),H(Ee,null,At(r.categories,([i,o],a)=>(z(),H(Ee,{key:i},[o.length?(z(),H(Ee,{key:0},[a?(z(),H("div",ePt)):oe("",!0),w("div",tPt,[(z(!0),H(Ee,null,At(o,s=>(z(),ne(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))])}}}),rPt={"h-full":"","h-screen":"","of-hidden":""},nPt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},iPt={flex:"","cursor-pointer":"","items-center":"",gap2:""},oPt={capitalize:""},aPt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},sPt={key:3,class:"h-full w-full $ui-fcc"},lPt=ce({__name:"SplitScreen",setup(t){function r(){dr.value.splitScreen.enabled=!1}const e=F(()=>dr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=$f(),o=Cc(),a=vf(),s=Bi(),l=G(null),c=G(null),u=G(null);function g(v){const A=f();return v?v.name===A:!1}const h=F(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=F(()=>f());function f(){return a.path.startsWith(`/${B8}/`)?a.path.slice(B8.length+2):a.path.startsWith(`/${xh}/`)?a.path.slice(xh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Je(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(xh)){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=poe(p):s.value=p},{immediate:!0});const C=G(!1);return(v,A)=>{const I=j0,p=Vne,m=rW;return z(),H("div",rPt,[(y(s)||y(l))&&y(h)?(z(),H("div",nPt,[D(y(Cu),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:W(()=>[w("div",iPt,[A[0]||(A[0]=w("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"]),w("span",oPt,ze(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=w("div",{"flex-auto":""},null,-1)),$t((z(),H("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[w("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(sr),"Close split screen"]])])):oe("",!0),y(l)&&y(h)?(z(),H(Ee,{key:1},[y(u)==="custom-tab"?(z(),ne(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?(z(),ne(y(JG),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):oe("",!0)],64)):y(s)&&y(h)?(z(),H("div",aPt,[(z(),ne(y1(y(s)),{key:`tab-${y(h).name}`}))])):(z(),H("div",sPt,[w("div",null,[A[4]||(A[4]=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(V5),{px4:"",py2:"","bg-base":""},{default:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:W(()=>A[3]||(A[3]=[Se(" Close Split Screen ")])),_:1})])]))])}}}),cPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},uPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},gPt={px3:"",py2:"",flex:"~ gap2"},hPt=ce({__name:"DockingPanel",setup(t){const r=Cc(),e=F({get:()=>dr.value.expandSidebar,set:u=>dr.value.expandSidebar=u}),n=F({get:()=>dr.value.splitScreen.enabled,set:u=>dr.value.splitScreen.enabled=u});function i(){location.reload()}const o=uo(),a=F(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);gn(()=>{s.value=o.activeAppRecordId.value});const l=F(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){Ae.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{fj()})})}return(u,g)=>(z(),H("div",null,[w("div",cPt,[D(y(tG),null,{default:W(({isDark:h,toggle:d})=>[D(y(ct),{outlined:"",type:"primary",onClick:d},{default:W(()=>[g[3]||(g[3]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:W(()=>[D(y(Ut),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),Se(" "+ze(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:W(()=>g[4]||(g[4]=[w("div",{"i-carbon-settings-adjust":""},null,-1),Se(" Settings ")])),_:1})]),w("div",uPt,[D(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:W(()=>[g[5]||(g[5]=w("div",{"i-carbon-split-screen":""},null,-1)),Se(" "+ze(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",gPt,[y(a).length>1?(z(),ne(y(zd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>qe(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(ct),{outlined:"",type:"primary",onClick:i},{default:W(()=>g[6]||(g[6]=[Se(" Refresh Page ")])),_:1})])]))}}),dPt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},fPt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},CPt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},vPt=["flex"],APt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},IPt={"translate-y-0.5px":""},pPt=45,mPt=ce({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=F(()=>dr.value.expandSidebar),c=F(()=>dr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=$f(),{height:h}=zge(),d=F(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/pPt))}),f=F(()=>g.value.slice(0,d.value)),C=F(()=>g.value.slice(d.value)),v=yT(f,u),A=yT(C,u),I=F(()=>c.value||l.value?u.value:v.value);ege(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);jb(p,()=>{m.value=m.value===6?6.01:6});const b=lM();return fge(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:b})}),(_,L)=>{const M=hPt,S=Hne,T=j0,k=Vne;return z(),H("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[w("div",dPt,[D(y(Cu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:W(()=>[D(M)]),default:W(()=>[w("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:Te([y(l)?"rounded pl2.5":"rounded-xl"])},[L[3]||(L[3]=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?(z(),H(Ee,{key:0},[L[0]||(L[0]=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),L[1]||(L[1]=w("div",{"flex-auto":""},null,-1)),L[2]||(L[2]=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):oe("",!0)],2)]),_:1},8,["distance","shown"])]),w("div",fPt,[(z(!0),H(Ee,null,At(y(I),([O,P],B)=>(z(),H(Ee,{key:O},[B?(z(),H("div",CPt)):oe("",!0),(z(!0),H(Ee,null,At(P.filter(te=>!te.hidden),te=>(z(),ne(S,{key:te.name,tab:te,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),L[4]||(L[4]=w("div",{"flex-auto":""},null,-1))]),w("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)?(z(),ne(y(Cu),{key:0,placement:"left-end",distance:6},{popper:W(()=>[D(k,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:W(()=>[w("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}),w("div",APt,[w("span",IPt,ze(y(C).length),1)])],512)]),_:1})):oe("",!0),D(S,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,vPt)],512)}}}),Pne=Bi([]),Rne=G(null);F(()=>Pne.value.find(t=>t.id===Rne.value));const yPt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},bPt=ce({__name:"App",setup(t){mf();const r=Cc(),e=vf(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=uo(),s=dr,l=F(()=>n.value&&i.value),c=F(()=>e.path.startsWith("/__")||e.path==="/"),u=F(()=>s.value.expandSidebar),g=F(()=>s.value.splitScreen.enabled),h=F({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});gn(()=>{const A=dr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),Ga(()=>{gn(()=>{Ae.value.emit("update-client-state",{minimizePanelInteractive:dr.value.minimizePanelInteractive,closeOnOutsideClick:dr.value.interactionCloseOnOutsideClick,showFloatingPanel:dr.value.showPanel})})}),Je(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}),hi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&Ae.value.emit("toggle-panel")}),gn(()=>{Pne.value=a.value,Rne.value=o.value}),Ga(()=>{Ae.value.initDevToolsServerListener(),Ae.value.checkVueInspectorDetected().then(A=>{A&&(iI.value=!0,HN(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{Ae.value.emit("toggle-panel",!1),await Ae.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{fj()})}Hb(()=>{Ae.functions.on(Nt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=CI(),C=Cge({});HN(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{Ae.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),Ii(()=>{Ga(()=>{Ae.value.toggleClientConnected(!0)})}),fn(()=>{Ae.value.toggleClientConnected(!1),Ae.functions.off(Nt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;Ae.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=gCe,m=mPt,b=Vo("RouterView"),_=lPt,L=KVt;return z(),H("main",yPt,[y(l)?(z(),H("div",{key:1,class:Te(["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):(z(),ne(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(R1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=M=>h.value=M.map(S=>S.size))},{default:W(()=>[D(y(hn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:W(()=>[D(b)]),_:1},8,["size"]),!y(c)&&y(g)?(z(),ne(y(hn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:W(()=>[D(_)]),_:1},8,["size"])):oe("",!0)]),_:1})],2)):(z(),ne(p,{key:0})),D(L)])}}}),wPt=[{path:"/",component:eHt},{path:"/overview",component:dHt},{path:"/components",component:N9e},{path:"/pinia",component:jHt},{path:"/router",component:UHt},{path:"/pages",component:FHt},{path:"/timeline",component:MVt},{path:"/assets",component:Ave},{path:"/graph",component:Zxt},{path:"/settings",component:cVt},{path:`/${B8}/:name`,component:i6e},{path:`/${xh}/:name`,component:Z9e}],$Pt=k2e({history:c2e(),routes:wPt}),cM=CF(bPt);cM.use($Pt);cM.use(kce());cM.mount("#app");async function _Pt(){return ma?void 0:(await xce(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function MPt(){const t=await _Pt();return t&&Xle(t),t}MPt().then(t=>{t&&Lce()});DN?Q6(IE,{preset:"broadcast"}):Q6(IE,{preset:"iframe"});
|
|
1166
|
+
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 Dxt(t,r){var e;if(t){if(typeof t=="string")return kN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(t,r)}}function kN(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 Nxt=function(){function t(r,e,n,i){var o=this,a,s;we(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}},Wr(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",ve(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",ve(s=this._restore).call(s,this))}return $e(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,tr(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,ve(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",ve(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,ve(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",ve(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=tr({},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,ve(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",ve(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",ve(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",ve(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",ve(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",ve(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",Gt(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,ve(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",ve(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",ve(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",ve(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",ve(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=tr({},this.options.controlNodeStyle);i.id="targetNode"+qh(),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={},Ks(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,ve(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Ks(this.editModeDiv),Ks(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=Rxt(rs(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(),Ks(this.manipulationDiv),Ks(this.editModeDiv),Ks(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,ve(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,ve(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,ve(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,ve(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,ve(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,ve(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: "+H0(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 ru(e,{});NA(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=zt(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(i!==-1){var o;rs(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=zt(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var c;rs(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=Wr({},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=Wr({},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"+qh(),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(zt(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(zt(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:qh(),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(Gt(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}(),ye="string",de="boolean",X="number",Ih="array",Fe="object",kne="dom",Bxt="any",M6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],z6={borderWidth:{number:X},borderWidthSelected:{number:X,undefined:"undefined"},brokenImage:{string:ye,undefined:"undefined"},chosen:{label:{boolean:de,function:"function"},node:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{border:{string:ye},background:{string:ye},highlight:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},hover:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},opacity:{number:X,undefined:"undefined"},fixed:{x:{boolean:de},y:{boolean:de},__type__:{object:Fe,boolean:de}},font:{align:{string:ye},color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},group:{string:ye,number:X,undefined:"undefined"},heightConstraint:{minimum:{number:X},valign:{string:ye},__type__:{object:Fe,boolean:de,number:X}},hidden:{boolean:de},icon:{face:{string:ye},code:{string:ye},size:{number:X},color:{string:ye},weight:{string:ye,number:X},__type__:{object:Fe}},id:{string:ye,number:X},image:{selected:{string:ye,undefined:"undefined"},unselected:{string:ye,undefined:"undefined"},__type__:{object:Fe,string:ye}},imagePadding:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},level:{number:X,undefined:"undefined"},margin:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},mass:{number:X},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:de,array:Ih},borderRadius:{number:X},interpolation:{boolean:de},useImageSize:{boolean:de},useBorderWithImage:{boolean:de},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Fe}},size:{number:X},title:{string:ye,dom:kne,undefined:"undefined"},value:{number:X,undefined:"undefined"},widthConstraint:{minimum:{number:X},maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},x:{number:X},y:{number:X},__type__:{object:Fe}},Fxt={configure:{enabled:{boolean:de},filter:{boolean:de,string:ye,array:Ih,function:"function"},container:{dom:kne},showButton:{boolean:de},__type__:{object:Fe,boolean:de,string:ye,array:Ih,function:"function"}},edges:{arrows:{to:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageHeight:{number:X},imageWidth:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},middle:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},from:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},__type__:{string:["from","to","middle"],object:Fe}},endPointOffset:{from:{number:X},to:{number:X},__type__:{object:Fe,number:X}},arrowStrikethrough:{boolean:de},background:{enabled:{boolean:de},color:{string:ye},size:{number:X},dashes:{boolean:de,array:Ih},__type__:{object:Fe,boolean:de}},chosen:{label:{boolean:de,function:"function"},edge:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{color:{string:ye},highlight:{string:ye},hover:{string:ye},inherit:{string:["from","to","both"],boolean:de},opacity:{number:X},__type__:{object:Fe,string:ye}},dashes:{boolean:de,array:Ih},font:{color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},hidden:{boolean:de},hoverWidth:{function:"function",number:X},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},length:{number:X,undefined:"undefined"},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},selectionWidth:{function:"function",number:X},selfReferenceSize:{number:X},selfReference:{size:{number:X},angle:{number:X},renderBehindTheNode:{boolean:de},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},smooth:{enabled:{boolean:de},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:X},forceDirection:{string:["horizontal","vertical","none"],boolean:de},__type__:{object:Fe,boolean:de}},title:{string:ye,undefined:"undefined"},width:{number:X},widthConstraint:{maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},value:{number:X,undefined:"undefined"},__type__:{object:Fe}},groups:{useDefaultGroups:{boolean:de},__any__:z6,__type__:{object:Fe}},interaction:{dragNodes:{boolean:de},dragView:{boolean:de},hideEdgesOnDrag:{boolean:de},hideEdgesOnZoom:{boolean:de},hideNodesOnDrag:{boolean:de},hover:{boolean:de},keyboard:{enabled:{boolean:de},speed:{x:{number:X},y:{number:X},zoom:{number:X},__type__:{object:Fe}},bindToWindow:{boolean:de},autoFocus:{boolean:de},__type__:{object:Fe,boolean:de}},multiselect:{boolean:de},navigationButtons:{boolean:de},selectable:{boolean:de},selectConnectedEdges:{boolean:de},hoverConnectedEdges:{boolean:de},tooltipDelay:{number:X},zoomView:{boolean:de},zoomSpeed:{number:X},__type__:{object:Fe}},layout:{randomSeed:{undefined:"undefined",number:X,string:ye},improvedLayout:{boolean:de},clusterThreshold:{number:X},hierarchical:{enabled:{boolean:de},levelSeparation:{number:X},nodeSpacing:{number:X},treeSpacing:{number:X},blockShifting:{boolean:de},edgeMinimization:{boolean:de},parentCentralization:{boolean:de},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Fe,boolean:de}},__type__:{object:Fe}},manipulation:{enabled:{boolean:de},initiallyActive:{boolean:de},addNode:{boolean:de,function:"function"},addEdge:{boolean:de,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Fe,boolean:de,function:"function"}},deleteNode:{boolean:de,function:"function"},deleteEdge:{boolean:de,function:"function"},controlNodeStyle:z6,__type__:{object:Fe,boolean:de}},nodes:z6,physics:{enabled:{boolean:de},barnesHut:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},forceAtlas2Based:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},repulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},__type__:{object:Fe}},hierarchicalRepulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},maxVelocity:{number:X},minVelocity:{number:X},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:de},iterations:{number:X},updateInterval:{number:X},onlyDynamicEdges:{boolean:de},fit:{boolean:de},__type__:{object:Fe,boolean:de}},timestep:{number:X},adaptiveTimestep:{boolean:de},wind:{x:{number:X},y:{number:X},__type__:{object:Fe}},__type__:{object:Fe,boolean:de}},autoResize:{boolean:de},clickToUse:{boolean:de},locale:{string:ye},locales:{__any__:{any:Bxt},__type__:{object:Fe}},height:{string:ye},width:{string:ye},__type__:{object:Fe}},One={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]}}},jxt=function(r,e,n){var i;return!!(I1(r).call(r,"physics")&&I1(i=One.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},Uxt=function(){function t(){we(this,t)}return $e(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 b=n[m],_=o[b],L=Math.min(p[b],p[C]+v[b]);p[b]=L,_[I]=L}return o}}]),t}(),Gxt=function(){function t(r,e,n){we(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new Uxt}return $e(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=yr(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=yr(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=yr(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=yr(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 b=s,_=l,L=n,M=c,S=i,T=(L/b+S/_)/(_/b-M/_),k=-(_*T+L)/b;a[e].x+=k,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),b=a[d]*(c-I-s[d]*(c-I)*p);o[h]=[m,b],u+=m,g+=b;var _=this.E_sums[d];_[0]+=m-C,_[1]+=b-v}}this.E_sums[e]=[u,g]}}]),t}();function Pe(t,r,e){var n,i,o,a,s=this;if(!(this instanceof Pe))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:F_t,clickToUse:!1},Wr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:ve(n=this.on).call(n,this),off:ve(i=this.off).call(i,this),emit:ve(o=this.emit).call(o,this),once:ve(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 G_t(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new lzt,this.canvas=new _kt(this.body),this.selectionHandler=new COt(this.body,this.canvas),this.interactionHandler=new Lkt(this.body,this.canvas,this.selectionHandler),this.view=new zkt(this.body,this.canvas),this.renderer=new mkt(this.body,this.canvas),this.physics=new ukt(this.body),this.layoutEngine=new Pxt(this.body),this.clustering=new Ikt(this.body),this.manipulation=new Nxt(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new ZTt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new ekt(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Gxt(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}kee(Pe.prototype);Pe.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=p_t.validate(t,Fxt);e===!0&&console.error("%cErrors have been found in the supplied options object.",Hre);var n=["locale","locales","clickToUse"];if(Dg(n,this.options,t),t.locale!==void 0&&(t.locale=j_t(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 A_t(this,this.body.container,One,this.canvas.pixelRatio,jxt)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};tr(i.nodes,this.nodesHandler.options),tr(i.edges,this.edgesHandler.options),tr(i.layout,this.layoutEngine.options),tr(i.interaction,this.selectionHandler.options),tr(i.interaction,this.renderer.options),tr(i.interaction,this.interactionHandler.options),tr(i.manipulation,this.manipulation.options),tr(i.physics,this.physics.options),tr(i.global,this.canvas.options),tr(i.global,this.options),this.configurator.setModuleOptions(i)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new v_t(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")}};Pe.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)}};Pe.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")})};Pe.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=S_t(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=T_t(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")};Pe.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];Ks(this.body.container)};Pe.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)};Pe.prototype.isActive=function(){return!this.activator||this.activator.active};Pe.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Pe.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Pe.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Pe.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Pe.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Pe.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Pe.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Pe.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Pe.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Pe.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Pe.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};Pe.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};Pe.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};Pe.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};Pe.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};Pe.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Pe.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Pe.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Pe.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Pe.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Pe.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Pe.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};Pe.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Pe.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Pe.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Pe.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Pe.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};Pe.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Pe.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Pe.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Pe.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)};Pe.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Pe.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Pe.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Pe.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Pe.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Pe.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Pe.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};Pe.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};Pe.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Pe.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};Pe.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Pe.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Pe.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};Pe.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Pe.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Pe.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Pe.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Pe.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Pe.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Pe.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Pe.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Wxt={flex:"~ col",relative:"","h-full":"","of-hidden":"","panel-grids":"",class:"graph-body"},Zxt=ce({__name:"graph",setup(t){async function r(){const s=await Mo.value.getRoot().then(l=>l);Mo.value.getGraphModules().then(l=>{HKe(l,s)})}function e(){r()}hj(()=>{r(),Mo.functions.on("graphModuleUpdated",e)});const n=G(),i=Bi();function o(){const s=n.value,l=i.value=new Pe(s,{nodes:_u,edges:Mu},fx.value);Je(fx,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{RKe(c.nodes[0]),x7(!0)}),l.on("deselectNode",()=>{x7(!1)}),Je(()=>Eu.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}Ii(()=>{o()}),fn(()=>{kKe(),i.value?.destroy(),Mo.functions.off("graphModuleUpdated",e)});const a=G();return(s,l)=>{const c=JKe,u=qKe,g=XKe;return z(),H("div",Wxt,[D(c,{ref_key:"navbarRef",ref:a},null,512),w("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),Kxt={},Yxt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xxt(t,r){return z(),H("svg",Yxt,r[0]||(r[0]=[oF('<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 xne=fI(Kxt,[["render",Xxt]]);function lM(){return of?"electron":ma?"chrome":RN?"iframe":"separate-window"}const qxt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},Qxt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},Jxt={"max-w-190":"","text-lg":""},eHt=ce({__name:"index",setup(t){const r=lM(),e=Cc(),n=dr;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=xne;return y(r)==="chrome"?(z(),H("div",qxt,[a[1]||(a[1]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=w("p",{"max-w-190":"","text-lg":""},[Se(" This new version supports only Vue 3. "),w("span",{op50:""},[Se(" (Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),Se(") ")]),w("br"),Se(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),w("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),Se(". ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[0]||(a[0]=[w("span",null,"Get Started",-1)])),_:1})])):(z(),H("div",Qxt,[a[6]||(a[6]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),w("p",Jxt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=Se(" 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]=w("br",null,null,-1))]),a[7]||(a[7]=w("p",{mb6:"",op50:""},[Se(" Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[5]||(a[5]=[w("span",null,"Get Started",-1)])),_:1})]))}}}),tHt="7.5.1",rHt={"h-full":"","w-full":"",flex:"","of-auto":""},nHt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},iHt={flex:"~ col","mt-20":"","items-center":""},oHt={flex:"~","mt--10":"","items-center":"","justify-center":""},aHt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},sHt={op40:""},lHt={flex:"~ gap2 wrap"},cHt={p4:"","theme-card-green":"",flex:"~ col auto"},uHt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},gHt={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},hHt={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},dHt=ce({__name:"overview",setup(t){const{vueVersion:r}=uo(),e=G(1),n=G(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=Qr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return Hb(()=>{Ae.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,o),Ae.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Qr(s);n.value=i(l)})}),Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,a),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,a),Ae.functions.off(Nt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=xne,u=Vo("RouterLink");return z(),H("div",rHt,[w("div",nHt,[l[29]||(l[29]=w("div",{"flex-auto":""},null,-1)),w("div",iHt,[w("div",oHt,[D(c,{"h-18":""})]),y(ma)?oe("",!0):(z(),H("div",aHt,[l[0]||(l[0]=w("span",{op40:""}," Vue DevTools ",-1)),w("code",sHt,"v"+ze(y(tHt)),1)]))]),w("div",lHt,[w("div",cHt,[l[1]||(l[1]=w("div",{"i-logos-vue":"","text-3xl":""},null,-1)),w("code",null,"v"+ze(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[2]||(l[2]=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),w("div",null,ze(y(e))+" pages",1)]),_:1}),y(n)?(z(),ne(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[3]||(l[3]=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),w("div",null,ze(y(n))+" components",1)]),_:1})):oe("",!0)]),w("div",uHt,[l[5]||(l[5]=w("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),Se(" Star on GitHub ")],-1)),l[6]||(l[6]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),Se(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),Se(" Project Roadmap ")],-1)),l[8]||(l[8]=w("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),Se(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:W(()=>l[4]||(l[4]=[w("div",{"i-carbon-settings":""},null,-1),Se(" Settings ")])),_:1})]),l[30]||(l[30]=w("div",{"flex-auto":""},null,-1)),w("div",gHt,[l[15]||(l[15]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[9]||(l[9]=[Se(" ⌘ Command ")])),_:1}),l[11]||(l[11]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[10]||(l[10]=[Se(" K ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[12]||(l[12]=[Se(" Alt ")])),_:1}),l[14]||(l[14]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[13]||(l[13]=[Se(" K ")])),_:1})],64)),l[16]||(l[16]=Se(" to toggle Command Palette "))]),!y(of)&&!y(ma)?(z(),H("div",hHt,[l[27]||(l[27]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[17]||(l[17]=[Se(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[18]||(l[18]=[Se(" ⌥ Option ")])),_:1}),l[21]||(l[21]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[19]||(l[19]=[Se(" D ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[22]||(l[22]=[Se(" Shift ")])),_:1}),l[25]||(l[25]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[23]||(l[23]=[Se(" Alt ")])),_:1}),l[26]||(l[26]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[24]||(l[24]=[Se(" D ")])),_:1})],64)),l[28]||(l[28]=Se(" to toggle DevTools "))])):oe("",!0)])])}}}),fHt={"p-2":""},CHt={class:"flex items-center justify-between"},vHt=ce({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(z(),H("div",fHt,[w("div",CHt,[e[1]||(e[1]=w("span",{class:"font-500"},"Route meta detail",-1)),w("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(lw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),AHt={block:"","cursor-pointer":""},IHt={p2:""},pHt=["onSubmit"],mHt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},yHt={key:1},bHt=ce({__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=G([]),a=F(()=>i(e.route.path));gn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=F(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=F(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(z(),ne(y(Cu),{key:1},{popper:W(({hide:h})=>[w("div",IHt,[w("form",{flex:"~ col",onSubmit:Wn(()=>{c(),h()},["prevent"])},[y(l)?(z(),H(Ee,{key:0},[g[0]||(g[0]=w("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),w("div",mHt,[(z(!0),H(Ee,null,At(y(a),(d,f)=>(z(),H(Ee,{key:f},[d[0]===":"?(z(),ne(y(as),{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"])):(z(),H("span",yHt,ze(d),1))],64))),128))])],64)):oe("",!0),D(y(ct),{block:"",type:"primary"},{default:W(()=>g[1]||(g[1]=[Se(" Navigate ")])),_:1})],40,pHt)])]),default:W(()=>[w("code",AHt,[(z(!0),H(Ee,null,At(y(a),(h,d)=>(z(),H("span",{key:d,class:Te(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},ze(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(z(),H("button",{key:0,onClick:c},[w("code",null,ze(u.route.path),1)]))}}),wHt={"w-full":""},$Ht={border:"b base","px-3":""},_Ht={key:0,"text-left":""},MHt={"w-20":"","pr-1":""},zHt={flex:"","items-center":"","justify-end":""},EHt={"text-sm":""},SHt={flex:"inline gap3","items-center":""},THt={op0:"","group-hover:op100":"",flex:"~ gap1"},LHt=["onClick"],kHt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},OHt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},xHt=["title","onClick"],HHt=ce({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=F(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=F(()=>iI.value),i=uo();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=F(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=bHt;return z(),H("div",null,[w("table",wHt,[w("thead",$Ht,[w("tr",null,[l[1]||(l[1]=w("th",{"text-left":""},null,-1)),l[2]||(l[2]=w("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=w("th",{"text-left":""}," Name ",-1)),y(a)?(z(),H("th",_Ht," Route Meta ")):oe("",!0)])]),w("tbody",null,[(z(!0),H(Ee,null,At(y(e),u=>(z(),H("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[w("td",MHt,[w("div",zHt,[s.matched.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):oe("",!0)])]),w("td",EHt,[w("div",SHt,[D(c,{route:u,class:Te(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"]),w("div",THt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(z(),H("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(fd)(u.meta?.file)},l[4]||(l[4]=[w("div",{"i-carbon-script-reference":""},null,-1)]),8,LHt)):oe("",!0)])])]),w("td",kHt,ze(u.name),1),y(a)?(z(),H("td",OHt,[w("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},ze(o(u.meta)),9,xHt)])):oe("",!0)]))),128))])])])}}}),VHt={block:"","h-screen":"","of-auto":""},PHt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},RHt={border:"b base",flex:"~ col gap1",px4:"",py3:""},DHt={key:1,op50:""},NHt={key:0,"text-orange":"",op75:""},BHt={key:1,op50:""},FHt=ce({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=F(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();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){Ae.value.navigate(u)}return Hb(()=>{Ae.value.getRouterInfo().then(u=>{s(u)}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,s)}),nU(r,()=>{r.value!==e.value?.path&&Ae.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),fn(()=>{Ae.functions.off(Nt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=HHt,d=aG,f=vHt;return z(),H("div",VHt,[w("div",PHt,[w("div",RHt,[w("div",null,[(z(),H("span",DHt,"Current route"))]),D(y(as),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>qe(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Te(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:dF(l,["enter"])},null,8,["modelValue","class"]),w("div",null,[y(e)?.path!==y(r)?(z(),H(Ee,{key:0},[g[6]||(g[6]=w("span",null,[Se("Press "),w("b",{"font-bold":""},"Enter"),Se(" to navigate")],-1)),y(i).length?oe("",!0):(z(),H("span",NHt," (no match)"))],64)):(z(),H("span",BHt,"Edit path above to navigate"))])]),D(y(R1),{class:"of-hidden"},{default:W(()=>[D(y(hn),{size:"70",class:"of-auto!"},{default:W(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:W(()=>[y(o).length?(z(),ne(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)?(z(),ne(y(hn),{key:0,size:"30",class:"of-auto!"},{default:W(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):oe("",!0)]),_:1})])])}}}),jHt=ce({__name:"pinia",setup(t){return(r,e)=>(z(),ne(y(b9e)))}}),UHt=ce({__name:"router",setup(t){const{registeredInspector:r}=KG(),e=F(()=>r.value?.find(i=>i.packageName==="vue-router")),n=F(()=>e.value?.id);return(i,o)=>(z(),ne(y(D9e),{id:y(n)},null,8,["id"]))}}),GHt=["src","alt"],WHt=["title"],ON="custom-ic-",j0=ce({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=G(r.icon);Je(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(nie)(y(e))?(z(),H("img",Xr({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,GHt)):y(e)?.startsWith(ON)?(z(),ne(y(Md),Xr({key:1,name:y(e).slice(ON.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):(z(),H("div",Xr({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,WHt))}}),ZHt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},KHt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},YHt={flex:"~ col gap-2"},XHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},qHt={capitalize:"",op75:""},QHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},JHt=["onClick"],eVt=["onClick"],tVt=["onClick"],rVt={flex:"~ col gap-2"},nVt={flex:"~ gap2"},iVt={class:"flex items-center gap2 text-sm"},oVt={class:"flex items-center gap2 text-sm"},aVt={class:"flex items-center gap2 text-sm"},sVt={class:"flex items-center gap2 text-sm"},lVt={flex:"~ gap-2"},cVt=ce({__name:"settings",setup(t){const{categorizedTabs:r}=$f(),e=lM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=x6(Rue(dr)),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}=x6(dr.value.tabSettings);function C(L,M){M?d.value=d.value.filter(S=>S!==L):d.value.push(L)}function v(L,M){M?h.value=h.value.filter(S=>S!==L):h.value.push(L)}function A(L){f.value.includes(L)?f.value=f.value.filter(M=>M!==L):f.value.push(L)}function I(L,M){const S=f.value.indexOf(L);if(S===-1)return;const T=S+M;if(T<0||T>=f.value.length)return;const k=[...f.value];k.splice(S,1),k.splice(T,0,L),f.value=k}const p=G(!1);async function m(){n6e(),window.location.reload()}const b=g.map(([L,M])=>({label:L,value:M})),_=F(()=>`${b.find(M=>M.value===s.value)?.label??"Select..."}`);return(L,M)=>{const S=uw,T=j0;return z(),H("div",ZHt,[D(S,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",KHt,[w("div",YHt,[M[12]||(M[12]=w("h3",{"text-lg":""}," Tabs ",-1)),(z(!0),H(Ee,null,At(y(r),([{name:k,hidden:O},P])=>(z(),H(Ee,{key:k},[P.length?(z(),ne(y(V5),{key:0,p3:"",flex:"~ col gap-1",class:Te(O?"op50 grayscale":"")},{default:W(()=>[D(y($8),{"model-value":!y(h).includes(k),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":B=>v(k,B)},{default:W(()=>[w("div",XHt,[w("span",qHt,ze(k),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),M[11]||(M[11]=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(z(!0),H(Ee,null,At(P,B=>(z(),ne(y($8),{key:B.name,class:Te(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",B.hidden?"op35":""]),"model-value":!y(d).includes(B.name),"onUpdate:modelValue":te=>C(B.name,te)},{default:W(()=>[w("div",QHt,[D(T,{"text-xl":"",icon:B.icon,fallback:B.fallbackIcon,title:B.title},null,8,["icon","fallback","title"]),w("span",null,ze(B.title),1),M[10]||(M[10]=w("div",{"flex-auto":""},null,-1)),y(f).includes(B.name)?(z(),H(Ee,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==0&&I(B.name,-1)},["stop"])},M[8]||(M[8]=[w("div",{class:"i-carbon-caret-up"},null,-1)]),8,JHt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==y(f).length-1&&I(B.name,1)},["stop"])},M[9]||(M[9]=[w("div",{class:"i-carbon-caret-down"},null,-1)]),8,eVt)],64)):oe("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(te=>A(B.name),["stop"])},[w("div",{class:Te(y(f).includes(B.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,tVt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):oe("",!0)],64))),128))]),w("div",rVt,[M[25]||(M[25]=w("h3",{"text-lg":""}," Appearance ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",nVt,[D(y(tG),null,{default:W(({isDark:k,toggle:O})=>[D(y(ct),{outlined:"",type:"primary",onClick:O},{default:W(()=>[M[13]||(M[13]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(k?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),M[16]||(M[16]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[17]||(M[17]=w("p",null,"UI Scale",-1)),w("div",null,[D(y(zd),{modelValue:y(i),"onUpdate:modelValue":M[0]||(M[0]=k=>qe(i)?i.value=k:null),options:u.map(([k,O])=>({label:k,value:O})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),M[18]||(M[18]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),w("div",iVt,[D(y(I2),{modelValue:y(l),"onUpdate:modelValue":M[1]||(M[1]=k=>qe(l)?l.value=k:null)},null,8,["modelValue"]),M[14]||(M[14]=w("span",{op75:""},"Expand Sidebar",-1))]),w("div",oVt,[D(y(I2),{modelValue:y(c),"onUpdate:modelValue":M[2]||(M[2]=k=>qe(c)?c.value=k:null)},null,8,["modelValue"]),M[15]||(M[15]=w("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?(z(),H(Ee,{key:0},[M[23]||(M[23]=w("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",aVt,[D(y(I2),{modelValue:y(o),"onUpdate:modelValue":M[3]||(M[3]=k=>qe(o)?o.value=k:null)},null,8,["modelValue"]),M[19]||(M[19]=w("span",{op75:""},"Close DevTools when clicking outside",-1))]),w("div",sVt,[D(y(I2),{modelValue:y(a),"onUpdate:modelValue":M[4]||(M[4]=k=>qe(a)?a.value=k:null)},null,8,["modelValue"]),M[20]||(M[20]=w("span",{op75:""},"Always show the floating panel",-1))]),M[21]||(M[21]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[22]||(M[22]=w("p",null,"Minimize floating panel on inactive",-1)),w("div",null,[D(y(zd),{modelValue:y(s),"onUpdate:modelValue":M[5]||(M[5]=k=>qe(s)?s.value=k:null),"button-props":{outlined:!0},options:y(b),placeholder:y(_)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):oe("",!0),M[26]||(M[26]=w("h3",{mt2:"","text-lg":""}," Debug ",-1)),w("div",lVt,[D(y(ct),{outlined:"",type:"warning",onClick:M[6]||(M[6]=k=>p.value=!0)},{default:W(()=>M[24]||(M[24]=[w("div",{"i-carbon-breaking-change":""},null,-1),Se(" Reset Local Settings & State ")])),_:1}),D(y(K0e),{modelValue:y(p),"onUpdate:modelValue":M[7]||(M[7]=k=>qe(p)?p.value=k: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"])])])])])}}}),uVt={"h-full":"",flex:"","flex-col":"",p2:""},gVt={class:"relative mb-1 w-full flex items-center justify-end pb-1",border:"b dashed base"},hVt={key:0,class:"absolute left-0 text-xs text-gray-300 dark:text-gray-500"},dVt={class:"flex items-center gap-2 px-1"},fVt={key:0,class:"recording recording-btn bg-[#ef4444]"},CVt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},vVt={class:"flex items-center gap1"},AVt={class:"p2"},IVt=["onClick"],pVt=["onClick"],mVt=ce({__name:"TimelineLayers",props:iu({data:{}},{modelValue:{},modelModifiers:{}}),emits:iu(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=uo(),i=F(()=>n.timelineLayersState.value.recordingState),o=F(()=>n.timelineLayersState.value),a=F(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=mf();F(()=>s.value==="dark");const l=XA(t,"modelValue");function c(d){l.value=d,e("select",d),Ae.value.updateTimelineLayersState({selected:d})}Je(()=>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(){Ae.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];Ae.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>(z(),H("div",uVt,[w("div",gVt,[y(i)?oe("",!0):(z(),H("span",hVt,"Not recording")),w("div",dVt,[$t((z(),H("div",{class:"flex items-center gap1",onClick:g},[y(i)?(z(),H("span",fVt)):(z(),H("span",CVt))])),[[y(sr),{content:y(a)},void 0,{"bottom-end":!0}]]),$t((z(),H("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(Md),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),$t((z(),H("div",vVt,[D(y(Md),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{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}]])])]),w("ul",AVt,[(z(!0),H(Ee,null,At(d.data,C=>(z(),H("li",{key:C.id,class:Te(["group relative selectable-item",{active:C.id===l.value}]),onClick:v=>c(C.id)},[Se(ze(C.label)+" ",1),w("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:Wn(v=>h(C.id),["stop"])},ze(u(C.id)?"Disabled":"Enabled"),9,pVt)],10,IVt))),128))])]))}}),yVt=fI(mVt,[["__scopeId","data-v-aac44163"]]),bVt={class:"h-full w-full"},wVt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},$Vt={class:"h-full flex flex-col"},_Vt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},MVt={class:"h-full flex flex-col p2"},zVt=ce({__name:"timeline",setup(t){const r=G(),e=G(),n=G(!1),{width:i}=uU(e),o=F(()=>n.value?i.value<700:!1),a=uo(),s=F(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=F(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=G(a.activeAppRecordId.value);gn(()=>{c.value=a.activeAppRecordId.value});function u(C){Ae.value.toggleApp(C).then(()=>{d()})}const g=G(""),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=yVt;return z(),H("div",bVt,[D(y(R1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:W(()=>[y(s).length>1?(z(),ne(y(hn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[w("div",wVt,[D(y(BG),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>qe(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(hn),{border:"base","h-full":""},{default:W(()=>[w("div",$Vt,[w("div",_Vt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>qe(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(hn),{relative:"","h-full":"",size:"65"},{default:W(()=>[w("div",MVt,[D(y(yI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":""},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function EVt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const Yy=ya(new Map);function SVt(){const{enabledFlattenTabs:t}=$f(),r=Cc(),e=uo();let n=[];const i=F(()=>nW(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:()=>LVt()}],a=F(()=>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 F(()=>EVt([...o,...a.value,...TVt(i.value),...Array.from(Yy.values()).flatMap(s=>rd(s))]))}function xN(t){t?.type==="url"&&window.open(t.src,"_blank")}function TVt(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:()=>{xN(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));xN(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function HN(t){const r=iie();Yy.set(r,t),fn(()=>{Yy.delete(r)})}let E6;const VN={"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 LVt(){return E6||(E6=(await Si(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:VN[r.description]??VN["...others"],action:()=>{window.open(r.url,"_blank")}}))),E6}const kVt={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":""},OVt={border:"b base","flex-none":""},xVt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},HVt=["id","onClick","onMouseover"],VVt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},PVt={"ws-nowrap":""},RVt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},DVt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},NVt={"text-primary":""},BVt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},FVt={"text-xs":"",flex:"~ items-center gap2"},jVt={px1:""},UVt={px1:""},GVt={"text-xs":"",flex:"~ items-center gap2"},WVt={op75:""},ZVt={"text-xs":"",flex:"~ items-center gap2"},KVt={px1:""},YVt=ce({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=SVt(),i=G(),o=F(()=>i.value||n.value),a=F(()=>new pc(o.value,{keys:["id","title"],distance:50})),s=F(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);Je(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 hi("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=j0;return y(r)?(z(),ne(y(cw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:W(()=>[w("div",kVt,[w("header",OVt,[D(y(as),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>qe(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",xVt,[(z(!0),H(Ee,null,At(y(s),(C,v)=>(z(),H("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Te(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"]),w("span",VVt,[w("span",PVt,ze(C.title),1),w("span",RVt,ze(C.description),1)]),y(l)===v?(z(),ne(y(Ut),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):oe("",!0)],2)],40,HVt))),128)),y(s).length?oe("",!0):(z(),H("div",DVt,[D(y(Ut),{icon:"carbon-search",op50:""}),w("div",null,[d[1]||(d[1]=w("span",{op50:""},"No results for",-1)),w("strong",NVt,' "'+ze(y(e))+'" ',1)])]))]),w("footer",BVt,[w("div",FVt,[w("button",jVt,[D(y(Ut),{icon:"i-carbon-arrow-down"})]),w("button",UVt,[D(y(Ut),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=w("span",{op75:""},"to navigate",-1))]),w("div",GVt,[d[3]||(d[3]=w("button",{px1:""}," Esc ",-1)),w("span",WVt,"to "+ze(y(i)?"go back":"close"),1)]),w("div",ZVt,[w("button",KVt,[D(y(Ut),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=w("span",{op75:""},"to select",-1))])])])]),_:1})):oe("",!0)}}}),XVt={flex:"~ items-center gap-3"},qVt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},QVt={"translate-y-0.5px":""},JVt={key:0,hidden:"","lg:block":""},Hne=ce({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=vf(),n=F(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=F(()=>"badge"in r.tab&&r.tab.badge?.()),o=F(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(dr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=j0;return z(),ne(y(iCe),{disabled:!s.minimized,placement:"right",class:Te({"w-full":!s.minimized})},{popper:W(()=>[w("div",null,ze(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(z(),H("div",JVt,[(z(),ne(y1(s.tab.extraTabVNode)))])):oe("",!0)]),default:W(()=>[(z(),ne(y1(s.target==="main"?y(Mj):"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:Te([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:W(()=>[w("div",XVt,[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):(z(),H("span",qVt,ze(s.tab.title),1))]),y(i)?(z(),H("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Te([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",QVt,ze(y(wr)(y(i))),1)],2)):oe("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),ePt={flex:"~ col gap-1","max-w-80":"",py1:""},tPt={key:0,"h-1px":"",border:"b base"},rPt={flex:"~ wrap",px1:""},Vne=ce({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Hne;return z(),H("div",ePt,[(z(!0),H(Ee,null,At(r.categories,([i,o],a)=>(z(),H(Ee,{key:i},[o.length?(z(),H(Ee,{key:0},[a?(z(),H("div",tPt)):oe("",!0),w("div",rPt,[(z(!0),H(Ee,null,At(o,s=>(z(),ne(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))])}}}),nPt={"h-full":"","h-screen":"","of-hidden":""},iPt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},oPt={flex:"","cursor-pointer":"","items-center":"",gap2:""},aPt={capitalize:""},sPt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},lPt={key:3,class:"h-full w-full $ui-fcc"},cPt=ce({__name:"SplitScreen",setup(t){function r(){dr.value.splitScreen.enabled=!1}const e=F(()=>dr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=$f(),o=Cc(),a=vf(),s=Bi(),l=G(null),c=G(null),u=G(null);function g(v){const A=f();return v?v.name===A:!1}const h=F(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=F(()=>f());function f(){return a.path.startsWith(`/${B8}/`)?a.path.slice(B8.length+2):a.path.startsWith(`/${xh}/`)?a.path.slice(xh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Je(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(xh)){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=poe(p):s.value=p},{immediate:!0});const C=G(!1);return(v,A)=>{const I=j0,p=Vne,m=rW;return z(),H("div",nPt,[(y(s)||y(l))&&y(h)?(z(),H("div",iPt,[D(y(Cu),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:W(()=>[w("div",oPt,[A[0]||(A[0]=w("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"]),w("span",aPt,ze(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=w("div",{"flex-auto":""},null,-1)),$t((z(),H("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[w("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(sr),"Close split screen"]])])):oe("",!0),y(l)&&y(h)?(z(),H(Ee,{key:1},[y(u)==="custom-tab"?(z(),ne(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?(z(),ne(y(JG),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):oe("",!0)],64)):y(s)&&y(h)?(z(),H("div",sPt,[(z(),ne(y1(y(s)),{key:`tab-${y(h).name}`}))])):(z(),H("div",lPt,[w("div",null,[A[4]||(A[4]=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(V5),{px4:"",py2:"","bg-base":""},{default:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:W(()=>A[3]||(A[3]=[Se(" Close Split Screen ")])),_:1})])]))])}}}),uPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},gPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},hPt={px3:"",py2:"",flex:"~ gap2"},dPt=ce({__name:"DockingPanel",setup(t){const r=Cc(),e=F({get:()=>dr.value.expandSidebar,set:u=>dr.value.expandSidebar=u}),n=F({get:()=>dr.value.splitScreen.enabled,set:u=>dr.value.splitScreen.enabled=u});function i(){location.reload()}const o=uo(),a=F(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);gn(()=>{s.value=o.activeAppRecordId.value});const l=F(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){Ae.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{fj()})})}return(u,g)=>(z(),H("div",null,[w("div",uPt,[D(y(tG),null,{default:W(({isDark:h,toggle:d})=>[D(y(ct),{outlined:"",type:"primary",onClick:d},{default:W(()=>[g[3]||(g[3]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:W(()=>[D(y(Ut),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),Se(" "+ze(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:W(()=>g[4]||(g[4]=[w("div",{"i-carbon-settings-adjust":""},null,-1),Se(" Settings ")])),_:1})]),w("div",gPt,[D(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:W(()=>[g[5]||(g[5]=w("div",{"i-carbon-split-screen":""},null,-1)),Se(" "+ze(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",hPt,[y(a).length>1?(z(),ne(y(zd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>qe(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(ct),{outlined:"",type:"primary",onClick:i},{default:W(()=>g[6]||(g[6]=[Se(" Refresh Page ")])),_:1})])]))}}),fPt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},CPt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},vPt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},APt=["flex"],IPt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},pPt={"translate-y-0.5px":""},mPt=45,yPt=ce({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=F(()=>dr.value.expandSidebar),c=F(()=>dr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=$f(),{height:h}=zge(),d=F(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/mPt))}),f=F(()=>g.value.slice(0,d.value)),C=F(()=>g.value.slice(d.value)),v=yT(f,u),A=yT(C,u),I=F(()=>c.value||l.value?u.value:v.value);ege(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);jb(p,()=>{m.value=m.value===6?6.01:6});const b=lM();return fge(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:b})}),(_,L)=>{const M=dPt,S=Hne,T=j0,k=Vne;return z(),H("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[w("div",fPt,[D(y(Cu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:W(()=>[D(M)]),default:W(()=>[w("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:Te([y(l)?"rounded pl2.5":"rounded-xl"])},[L[3]||(L[3]=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?(z(),H(Ee,{key:0},[L[0]||(L[0]=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),L[1]||(L[1]=w("div",{"flex-auto":""},null,-1)),L[2]||(L[2]=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):oe("",!0)],2)]),_:1},8,["distance","shown"])]),w("div",CPt,[(z(!0),H(Ee,null,At(y(I),([O,P],B)=>(z(),H(Ee,{key:O},[B?(z(),H("div",vPt)):oe("",!0),(z(!0),H(Ee,null,At(P.filter(te=>!te.hidden),te=>(z(),ne(S,{key:te.name,tab:te,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),L[4]||(L[4]=w("div",{"flex-auto":""},null,-1))]),w("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)?(z(),ne(y(Cu),{key:0,placement:"left-end",distance:6},{popper:W(()=>[D(k,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:W(()=>[w("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}),w("div",IPt,[w("span",pPt,ze(y(C).length),1)])],512)]),_:1})):oe("",!0),D(S,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,APt)],512)}}}),Pne=Bi([]),Rne=G(null);F(()=>Pne.value.find(t=>t.id===Rne.value));const bPt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},wPt=ce({__name:"App",setup(t){mf();const r=Cc(),e=vf(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=uo(),s=dr,l=F(()=>n.value&&i.value),c=F(()=>e.path.startsWith("/__")||e.path==="/"),u=F(()=>s.value.expandSidebar),g=F(()=>s.value.splitScreen.enabled),h=F({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});gn(()=>{const A=dr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),Ga(()=>{gn(()=>{Ae.value.emit("update-client-state",{minimizePanelInteractive:dr.value.minimizePanelInteractive,closeOnOutsideClick:dr.value.interactionCloseOnOutsideClick,showFloatingPanel:dr.value.showPanel})})}),Je(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}),hi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&Ae.value.emit("toggle-panel")}),gn(()=>{Pne.value=a.value,Rne.value=o.value}),Ga(()=>{Ae.value.initDevToolsServerListener(),Ae.value.checkVueInspectorDetected().then(A=>{A&&(iI.value=!0,HN(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{Ae.value.emit("toggle-panel",!1),await Ae.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{fj()})}Hb(()=>{Ae.functions.on(Nt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=CI(),C=Cge({});HN(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{Ae.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),Ii(()=>{Ga(()=>{Ae.value.toggleClientConnected(!0)})}),fn(()=>{Ae.value.toggleClientConnected(!1),Ae.functions.off(Nt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;Ae.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=gCe,m=yPt,b=Vo("RouterView"),_=cPt,L=YVt;return z(),H("main",bPt,[y(l)?(z(),H("div",{key:1,class:Te(["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):(z(),ne(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(R1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=M=>h.value=M.map(S=>S.size))},{default:W(()=>[D(y(hn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:W(()=>[D(b)]),_:1},8,["size"]),!y(c)&&y(g)?(z(),ne(y(hn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:W(()=>[D(_)]),_:1},8,["size"])):oe("",!0)]),_:1})],2)):(z(),ne(p,{key:0})),D(L)])}}}),$Pt=[{path:"/",component:eHt},{path:"/overview",component:dHt},{path:"/components",component:N9e},{path:"/pinia",component:jHt},{path:"/router",component:UHt},{path:"/pages",component:FHt},{path:"/timeline",component:zVt},{path:"/assets",component:Ave},{path:"/graph",component:Zxt},{path:"/settings",component:cVt},{path:`/${B8}/:name`,component:i6e},{path:`/${xh}/:name`,component:Z9e}],_Pt=k2e({history:c2e(),routes:$Pt}),cM=CF(wPt);cM.use(_Pt);cM.use(kce());cM.mount("#app");async function MPt(){return ma?void 0:(await xce(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function zPt(){const t=await MPt();return t&&Xle(t),t}zPt().then(t=>{t&&Lce()});DN?Q6(IE,{preset:"broadcast"}):Q6(IE,{preset:"iframe"});
|