archik 0.12.13 → 0.12.15

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.
@@ -29,7 +29,7 @@ Error generating stack: `+A.message+`
29
29
  `),c.length!=2)throw R(new jn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=V2(W2(c[0])),this.b=V2(W2(c[1]))}catch(o){throw o=Ki(o),K(o,130)?(i=o,R(new jn(WVe+i))):R(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var jr=S(A_,"KVector",8);k(77,67,{3:1,4:1,20:1,31:1,55:1,16:1,67:1,15:1,77:1,411:1},Mo,oP,EOe),s.Nc=function(){return R8n(this)},s.ag=function(n){var t,i,r,c,o,l;r=im(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
30
30
  `),il(this);try{for(i=0,o=0,c=0,l=0;i<r.length;)r[i]!=null&&W2(r[i]).length>0&&(o%2==0?c=V2(r[i]):l=V2(r[i]),o>0&&o%2!=0&&zt(this,new pe(c,l)),++o),++i}catch(a){throw a=Ki(a),K(a,130)?(t=a,R(new jn("The given string does not match the expected format for vectors."+t))):R(a)}},s.Ib=function(){var n,t,i;for(n=new nl("("),t=ft(this,0);t.b!=t.d.c;)i=u(ot(t),8),_t(n,i.a+","+i.b),t.b!=t.d.c&&(n.a+="; ");return(n.a+=")",n).a};var J5e=S(A_,"KVectorChain",77);k(254,22,{3:1,34:1,22:1,254:1},Fj);var Kre,aJ,hJ,kN,jN,dJ,U5e=ct(Es,"Alignment",254,dt,F5n,dmn),Nln;k(972,1,Xa,JH),s.tf=function(n){JKe(n)};var H5e,Zre,Iln,K5e,Z5e,Dln,X5e,$ln,Lln,V5e,W5e,Pln;S(Es,"BoxLayouterOptions",972),k(973,1,{},T$),s.uf=function(){var n;return n=new UM,n},s.vf=function(n){},S(Es,"BoxLayouterOptions/BoxFactory",973),k(297,22,{3:1,34:1,22:1,297:1},qj);var FA,Xre,qA,GA,JA,Vre,Wre=ct(Es,"ContentAlignment",297,dt,q5n,bmn),Rln;k(686,1,Xa,NL),s.tf=function(n){qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,eYe),""),"Layout Algorithm"),"Select a specific layout algorithm."),(ag(),B6)),_e),Je((Eh(),an))))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,nYe),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Fh),URn),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,rpe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Y5e),Oi),U5e),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,B9),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,v2e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Fh),J5e),Je(Bh)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,FF),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),eke),z6),Wre),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,x_),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Mn(),!1)),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Lee),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),nke),Oi),HA),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,C_),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),rke),Oi),ace),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,p2e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,BF),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),uke),Oi),Xke),mi(an,B(z(w1,1),we,170,0,[ur]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,fm),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),pke),Fh),f3e),mi(an,B(z(w1,1),we,170,0,[ur]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,TE),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,GF),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ME),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,eee),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),jke),Oi),Yke),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,qF),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Fh),jr),mi(ur,B(z(w1,1),we,170,0,[Ig,cd]))))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,v_),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Dc),Or),mi(ur,B(z(w1,1),we,170,0,[Bh]))))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,kF),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Dc),Or),Je(an)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,AE),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,gpe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),lke),Fh),J5e),Je(Bh)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,vpe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),ar),Fi),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ype),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),ar),Fi),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,mRn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Fh),WRn),mi(an,B(z(w1,1),we,170,0,[cd]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,tYe),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Gr),Wi),Je(cd)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,jpe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),fke),Fh),l3e),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,tpe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),ar),Fi),mi(ur,B(z(w1,1),we,170,0,[Bh,Ig,cd]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,iYe),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Gr),Wi),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,rYe),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,cYe),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,y_),""),XWe),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),ar),Fi),Je(an)))),Hi(n,y_,ep,null),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,uYe),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,sYe),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Se(100)),Dc),Or),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,oYe),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,lYe),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Se(4e3)),Dc),Or),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,fYe),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Se(400)),Dc),Or),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,aYe),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,hYe),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,dYe),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,bYe),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,m2e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Q5e),Oi),a9e),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,gYe),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),oke),Oi),n9e),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,wYe),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),ske),Oi),Lke),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Jwe),Wa),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Uwe),Wa),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Hwe),Wa),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Kwe),Wa),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,QQ),Wa),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,$ee),Wa),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Zwe),Wa),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Wwe),Wa),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Xwe),Wa),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Vwe),Wa),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,lm),Wa),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Ywe),Wa),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Gr),Wi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Qwe),Wa),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Gr),Wi),mi(an,B(z(w1,1),we,170,0,[ur]))))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,epe),Wa),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Fh),Dfn),mi(ur,B(z(w1,1),we,170,0,[Bh,Ig,cd]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Spe),Wa),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Nke),Fh),l3e),Je(an)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,Ree),vYe),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Dc),Or),mi(an,B(z(w1,1),we,170,0,[ur]))))),Hi(n,Ree,Pee,Vln),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,Pee),vYe),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),mke),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,spe),yYe),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),hke),Fh),f3e),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,q9),yYe),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),dke),z6),Tc),mi(ur,B(z(w1,1),we,170,0,[cd]))))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,fpe),YF),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),yke),Oi),VA),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,ape),YF),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Oi),VA),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,hpe),YF),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Oi),VA),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,dpe),YF),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Oi),VA),Je(ur)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,bpe),YF),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Oi),VA),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,yv),one),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),bke),z6),QA),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,w6),one),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),wke),z6),t9e),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,p6),one),"Node Size Minimum"),"The minimal size to which a node can be reduced."),gke),Fh),jr),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,F9),one),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),ar),Fi),Je(an)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ppe),Dee),"Edge Label Placement"),"Gives a hint on where to put edge labels."),tke),Oi),Pke),Je(cd)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,jF),Dee),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),ar),Fi),Je(cd)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,vRn),"font"),"Font Name"),"Font name used for a label."),B6),_e),Je(cd)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,pYe),"font"),"Font Size"),"Font size used for a label."),Dc),Or),Je(cd)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,kpe),lne),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Fh),jr),Je(Ig)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,mpe),lne),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Dc),Or),Je(Ig)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ipe),lne),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Ake),Oi),dc),Je(Ig)))),qe(n,new De(Be(ze(Fe($e(Re(Le(Pe(new Ie,npe),lne),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Gr),Wi),Je(Ig)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,G9),j2e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Ske),z6),yJ),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ope),j2e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),ar),Fi),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,lpe),j2e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),ar),Fi),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,une),V9),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Se(3)),Dc),Or),Je(an)))),Hi(n,une,sne,ofn),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,y2e),V9),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),Se(4)),Dc),Or),Je(an)))),Hi(n,y2e,une,null),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,k_),V9),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Gr),Wi),Je(an)))),Hi(n,k_,ep,cfn),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,sne),V9),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Fh),HRn),Je(ur)))),Hi(n,sne,ep,ufn),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,j_),V9),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Gr),Wi),mi(an,B(z(w1,1),we,170,0,[ur]))))),Hi(n,j_,ep,null),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,S_),V9),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Gr),Wi),mi(an,B(z(w1,1),we,170,0,[ur]))))),Hi(n,S_,ep,null),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,ep),V9),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Oi),r9e),Je(ur)))),Hi(n,ep,F9,null),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,k2e),V9),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Gr),Wi),Je(an)))),Hi(n,k2e,ep,rfn),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,cpe),kYe),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),ar),Fi),Je(ur)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,upe),kYe),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),ar),Fi),Je(Bh)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,wpe),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Gr),Wi),Je(Bh)))),qe(n,new De(Be(ze(Fe(Ve($e(Re(Le(Pe(new Ie,mYe),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),cke),Oi),Gke),Je(Bh)))),Nj(n,new R4(Tj(sk(uk(new rw,_n),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),Nj(n,new R4(Tj(sk(uk(new rw,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Nj(n,new R4(Tj(sk(uk(new rw,Ns),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),Nj(n,new R4(Tj(sk(uk(new rw,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),Nj(n,new R4(Tj(sk(uk(new rw,IWe),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),Nj(n,new R4(Tj(sk(uk(new rw,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),Nj(n,new R4(Tj(sk(uk(new rw,Bl),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),CKe((new c2,n)),JKe((new JH,n)),nKe((new IL,n))};var F6,zln,Y5e,D8,Bln,Fln,Q5e,$m,Lm,qln,SN,eke,EN,Dg,nke,Yre,Qre,tke,ike,rke,Gln,cke,Jln,Vv,uke,Uln,AN,ece,TN,nce,Hln,ske,Kln,oke,Wv,lke,$8,fke,ake,hke,Yv,dke,$g,bke,Pm,Qv,gke,hb,wke,bJ,MN,p1,pke,Zln,mke,Xln,Vln,vke,yke,tce,ice,rce,cce,kke,Po,UA,jke,uce,sce,Rm,Ske,Eke,ey,Ake,q6,CN,oce,zm,Wln,lce,Yln,Qln,efn,nfn,Tke,Mke,G6,Cke,gJ,xke,Oke,c0,tfn,_ke,Nke,Ike,L8,Bm,P8,J6,ifn,rfn,wJ,cfn,pJ,ufn,sfn,ofn,lfn;S(Es,"CoreOptions",686),k(86,22,{3:1,34:1,22:1,86:1},hx);var nh,Hc,Qc,th,Hl,HA=ct(Es,"Direction",86,dt,n5n,gmn),ffn;k(276,22,{3:1,34:1,22:1,276:1},$P);var mJ,xN,Dke,$ke,Lke=ct(Es,"EdgeCoords",276,dt,E6n,wmn),afn;k(277,22,{3:1,34:1,22:1,277:1},pZ);var R8,Fm,z8,Pke=ct(Es,"EdgeLabelPlacement",277,dt,M4n,pmn),hfn;k(221,22,{3:1,34:1,22:1,221:1},LP);var B8,ON,U6,fce,ace=ct(Es,"EdgeRouting",221,dt,A6n,mmn),dfn;k(324,22,{3:1,34:1,22:1,324:1},Gj);var Rke,zke,Bke,Fke,hce,qke,Gke=ct(Es,"EdgeType",324,dt,B5n,vmn),bfn;k(970,1,Xa,c2),s.tf=function(n){CKe(n)};var Jke,Uke,Hke,Kke,gfn,Zke,KA;S(Es,"FixedLayouterOptions",970),k(971,1,{},M$),s.uf=function(){var n;return n=new _$,n},s.vf=function(n){},S(Es,"FixedLayouterOptions/FixedFactory",971),k(344,22,{3:1,34:1,22:1,344:1},mZ);var u0,vJ,ZA,Xke=ct(Es,"HierarchyHandling",344,dt,O4n,ymn),wfn,HRn=xi(Es,"ITopdownSizeApproximator");k(290,22,{3:1,34:1,22:1,290:1},PP);var m1,db,_N,NN,pfn=ct(Es,"LabelSide",290,dt,S6n,kmn),mfn;k(94,22,{3:1,34:1,22:1,94:1},N3);var ud,ea,kf,na,pl,ta,jf,v1,ia,Tc=ct(Es,"NodeLabelPlacement",94,dt,Ukn,jmn),vfn;k(255,22,{3:1,34:1,22:1,255:1},dx);var Vke,XA,bb,Wke,IN,VA=ct(Es,"PortAlignment",255,dt,g5n,Smn),yfn;k(101,22,{3:1,34:1,22:1,101:1},Jj);var Lg,Xu,y1,F8,ih,gb,Yke=ct(Es,"PortConstraints",101,dt,J5n,Emn),kfn;k(278,22,{3:1,34:1,22:1,278:1},Uj);var WA,YA,sd,DN,wb,H6,yJ=ct(Es,"PortLabelPlacement",278,dt,G5n,Amn),jfn;k(64,22,{3:1,34:1,22:1,64:1},bx);var $n,En,Kl,Zl,Ks,$s,rh,ra,ko,lo,as,jo,Zs,Xs,ca,ml,vl,Sf,Xn,wu,Tn,dc=ct(Es,"PortSide",64,dt,t5n,Tmn),Sfn;k(974,1,Xa,IL),s.tf=function(n){nKe(n)};var Efn,Afn,Qke,Tfn,Mfn;S(Es,"RandomLayouterOptions",974),k(975,1,{},JM),s.uf=function(){var n;return n=new x$,n},s.vf=function(n){},S(Es,"RandomLayouterOptions/RandomFactory",975),k(298,22,{3:1,34:1,22:1,298:1},vZ);var $N,dce,e9e,n9e=ct(Es,"ShapeCoords",298,dt,x4n,Mmn),Cfn;k(378,22,{3:1,34:1,22:1,378:1},RP);var qm,LN,PN,Pg,QA=ct(Es,"SizeConstraint",378,dt,T6n,Cmn),xfn;k(265,22,{3:1,34:1,22:1,265:1},I3);var RN,kJ,q8,bce,zN,eT,jJ,SJ,EJ,t9e=ct(Es,"SizeOptions",265,dt,Qkn,xmn),Ofn;k(279,22,{3:1,34:1,22:1,279:1},yZ);var Gm,i9e,AJ,r9e=ct(Es,"TopdownNodeTypes",279,dt,C4n,Omn),_fn;k(286,22,eq);var c9e,gce,u9e,s9e,BN=ct(Es,"TopdownSizeApproximator",286,dt,C6n,_mn);k(966,286,eq,sNe),s.Rg=function(n){return Pqe(n)},ct(Es,"TopdownSizeApproximator/1",966,BN,null,null),k(967,286,eq,HNe),s.Rg=function(n){var t,i,r,c,o,l,a,b,w,v,E,M,x,N,D,F,H,V,W,ue,be,Ee,Ge,Ue,on;for(t=u(fe(n,(xt(),zm)),142),Ee=(S0(),x=new yj,x),HO(Ee,n),Ge=new nt,o=new Bn((!n.a&&(n.a=new he(St,n,10,11)),n.a));o.e!=o.i.gc();)r=u(Jn(o),26),V=(M=new yj,M),KB(V,Ee),HO(V,r),on=Pqe(r),pw(V,j.Math.max(r.g,on.a),j.Math.max(r.f,on.b)),Us(Ge.f,r,V);for(c=new Bn((!n.a&&(n.a=new he(St,n,10,11)),n.a));c.e!=c.i.gc();)for(r=u(Jn(c),26),v=new Bn((!r.e&&(r.e=new hn(Qi,r,7,4)),r.e));v.e!=v.i.gc();)w=u(Jn(v),85),ue=u(fu(Bc(Ge.f,r)),26),be=u(xn(Ge,Z((!w.c&&(w.c=new hn(it,w,5,8)),w.c),0)),26),W=(E=new y3,E),lt((!W.b&&(W.b=new hn(it,W,4,7)),W.b),ue),lt((!W.c&&(W.c=new hn(it,W,5,8)),W.c),be),HB(W,Ei(ue)),HO(W,w);D=u(Bx(t.f),214);try{D.kf(Ee,new R5),qfe(t.f,D)}catch(dn){throw dn=Ki(dn),K(dn,100)?(N=dn,R(N)):R(dn)}return kh(Ee,Lm)||kh(Ee,$m)||lQ(Ee),b=Y(ee(fe(Ee,Lm))),a=Y(ee(fe(Ee,$m))),l=b/a,i=Y(ee(fe(Ee,Bm)))*j.Math.sqrt((!Ee.a&&(Ee.a=new he(St,Ee,10,11)),Ee.a).i),Ue=u(fe(Ee,p1),103),H=Ue.b+Ue.c+1,F=Ue.d+Ue.a+1,new pe(j.Math.max(H,i),j.Math.max(F,i/l))},ct(Es,"TopdownSizeApproximator/2",967,BN,null,null),k(968,286,eq,sDe),s.Rg=function(n){var t,i,r,c,o,l;return i=Y(ee(fe(n,(xt(),Bm)))),t=i/Y(ee(fe(n,L8))),r=UIn(n),o=u(fe(n,p1),103),c=Y(ee(Me(c0))),Ei(n)&&(c=Y(ee(fe(Ei(n),c0)))),l=D1(new pe(i,t),r),Qt(l,new pe(-(o.b+o.c)-c,-(o.d+o.a)-c))},ct(Es,"TopdownSizeApproximator/3",968,BN,null,null),k(969,286,eq,KNe),s.Rg=function(n){var t,i,r,c,o,l,a,b,w,v;for(l=new Bn((!n.a&&(n.a=new he(St,n,10,11)),n.a));l.e!=l.i.gc();)o=u(Jn(l),26),fe(o,(xt(),pJ))!=null&&(!o.a&&(o.a=new he(St,o,10,11)),!!o.a)&&(!o.a&&(o.a=new he(St,o,10,11)),o.a).i>0?(i=u(fe(o,pJ),519),v=i.Rg(o),w=u(fe(o,p1),103),pw(o,j.Math.max(o.g,v.a+w.b+w.c),j.Math.max(o.f,v.b+w.d+w.a))):(!o.a&&(o.a=new he(St,o,10,11)),o.a).i!=0&&pw(o,Y(ee(fe(o,Bm))),Y(ee(fe(o,Bm)))/Y(ee(fe(o,L8))));t=u(fe(n,(xt(),zm)),142),b=u(Bx(t.f),214);try{b.kf(n,new R5),qfe(t.f,b)}catch(E){throw E=Ki(E),K(E,100)?(a=E,R(a)):R(E)}return si(n,F6,W9),W$e(n),lQ(n),c=Y(ee(fe(n,Lm))),r=Y(ee(fe(n,$m))),new pe(c,r)},ct(Es,"TopdownSizeApproximator/4",969,BN,null,null);var Nfn;k(342,1,{849:1},l4),s.Sg=function(n,t){return WGe(this,n,t)},s.Tg=function(){jJe(this)},s.Ug=function(){return this.q},s.Vg=function(){return this.f?zX(this.f):null},s.Wg=function(){return zX(this.a)},s.Xg=function(){return this.p},s.Yg=function(){return!1},s.Zg=function(){return this.n},s.$g=function(){return this.p!=null&&!this.b},s._g=function(n){var t;this.n&&(t=n,ye(this.f,t))},s.ah=function(n,t){var i,r;this.n&&n&&q4n(this,(i=new fIe,r=qY(i,n),jLn(i),r),(Vz(),pce))},s.bh=function(n){var t;return this.b?null:(t=Ckn(this,this.g),zt(this.a,t),t.i=this,this.d=n,t)},s.dh=function(n){n>0&&!this.b&&xhe(this,n)},s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,S(_u,"BasicProgressMonitor",342),k(703,214,Qw,UM),s.kf=function(n,t){sZe(n,t)},S(_u,"BoxLayoutProvider",703),k(962,1,It,XSe),s.Le=function(n,t){return $On(this,u(n,26),u(t,26))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},s.a=!1,S(_u,"BoxLayoutProvider/1",962),k(162,1,{162:1},Mz,SOe),s.Ib=function(){return this.c?Obe(this.c):Ua(this.b)},S(_u,"BoxLayoutProvider/Group",162),k(323,22,{3:1,34:1,22:1,323:1},zP);var o9e,l9e,f9e,wce,a9e=ct(_u,"BoxLayoutProvider/PackingMode",323,dt,M6n,Nmn),Ifn;k(963,1,It,HM),s.Le=function(n,t){return Kvn(u(n,162),u(t,162))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},S(_u,"BoxLayoutProvider/lambda$0$Type",963),k(964,1,It,C$),s.Le=function(n,t){return Rvn(u(n,162),u(t,162))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},S(_u,"BoxLayoutProvider/lambda$1$Type",964),k(965,1,It,KM),s.Le=function(n,t){return zvn(u(n,162),u(t,162))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},S(_u,"BoxLayoutProvider/lambda$2$Type",965),k(1335,1,{826:1},J7),s.Kg=function(n,t){return gP(),!K(t,173)||ITe((X4(),u(n,173)),t)},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1335),k(1336,1,Pn,VSe),s.Ad=function(n){B8n(this.a,u(n,145))},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1336),k(1337,1,Pn,ZM),s.Ad=function(n){u(n,104),gP()},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1337),k(1341,1,Pn,WSe),s.Ad=function(n){d9n(this.a,u(n,104))},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1341),k(1339,1,Tt,kCe),s.Mb=function(n){return E8n(this.a,this.b,u(n,145))},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1339),k(1338,1,Tt,jCe),s.Mb=function(n){return Rwn(this.a,this.b,u(n,826))},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1338),k(1340,1,Pn,SCe),s.Ad=function(n){$3n(this.a,this.b,u(n,145))},S(_u,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1340),k(927,1,{},wH),s.Kb=function(n){return pxe(n)},s.Fb=function(n){return this===n},S(_u,"ElkUtil/lambda$0$Type",927),k(928,1,Pn,ECe),s.Ad=function(n){qCn(this.a,this.b,u(n,85))},s.a=0,s.b=0,S(_u,"ElkUtil/lambda$1$Type",928),k(929,1,Pn,ACe),s.Ad=function(n){F0n(this.a,this.b,u(n,168))},s.a=0,s.b=0,S(_u,"ElkUtil/lambda$2$Type",929),k(930,1,Pn,TCe),s.Ad=function(n){Dgn(this.a,this.b,u(n,153))},s.a=0,s.b=0,S(_u,"ElkUtil/lambda$3$Type",930),k(931,1,Pn,YSe),s.Ad=function(n){n3n(this.a,u(n,370))},S(_u,"ElkUtil/lambda$4$Type",931),k(328,1,{34:1,328:1},b0n),s.Dd=function(n){return own(this,u(n,241))},s.Fb=function(n){var t;return K(n,328)?(t=u(n,328),this.a==t.a):!1},s.Hb=function(){return Vr(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,S(_u,"ExclusiveBounds/ExclusiveLowerBound",328),k(1085,214,Qw,_$),s.kf=function(n,t){var i,r,c,o,l,a,b,w,v,E,M,x,N,D,F,H,V,W,ue,be,Ee,Ge,Ue;for(t.Sg("Fixed Layout",1),o=u(fe(n,(xt(),ike)),221),E=0,M=0,V=new Bn((!n.a&&(n.a=new he(St,n,10,11)),n.a));V.e!=V.i.gc();){for(F=u(Jn(V),26),Ue=u(fe(F,(Wz(),KA)),8),Ue&&(xl(F,Ue.a,Ue.b),u(fe(F,Uke),181).Gc((Xo(),qm))&&(x=u(fe(F,Kke),8),x.a>0&&x.b>0&&Xw(F,x.a,x.b,!0,!0))),E=j.Math.max(E,F.i+F.g),M=j.Math.max(M,F.j+F.f),w=new Bn((!F.n&&(F.n=new he(pu,F,1,7)),F.n));w.e!=w.i.gc();)a=u(Jn(w),153),Ue=u(fe(a,KA),8),Ue&&xl(a,Ue.a,Ue.b),E=j.Math.max(E,F.i+a.i+a.g),M=j.Math.max(M,F.j+a.j+a.f);for(be=new Bn((!F.c&&(F.c=new he(Ro,F,9,9)),F.c));be.e!=be.i.gc();)for(ue=u(Jn(be),124),Ue=u(fe(ue,KA),8),Ue&&xl(ue,Ue.a,Ue.b),Ee=F.i+ue.i,Ge=F.j+ue.j,E=j.Math.max(E,Ee+ue.g),M=j.Math.max(M,Ge+ue.f),b=new Bn((!ue.n&&(ue.n=new he(pu,ue,1,7)),ue.n));b.e!=b.i.gc();)a=u(Jn(b),153),Ue=u(fe(a,KA),8),Ue&&xl(a,Ue.a,Ue.b),E=j.Math.max(E,Ee+a.i+a.g),M=j.Math.max(M,Ge+a.j+a.f);for(c=new Ln(zn(H0(F).a.Jc(),new re));tt(c);)i=u(Hn(c),85),v=pXe(i),E=j.Math.max(E,v.a),M=j.Math.max(M,v.b);for(r=new Ln(zn(CY(F).a.Jc(),new re));tt(r);)i=u(Hn(r),85),Ei(bY(i))!=n&&(v=pXe(i),E=j.Math.max(E,v.a),M=j.Math.max(M,v.b))}if(o==(V1(),B8))for(H=new Bn((!n.a&&(n.a=new he(St,n,10,11)),n.a));H.e!=H.i.gc();)for(F=u(Jn(H),26),r=new Ln(zn(H0(F).a.Jc(),new re));tt(r);)i=u(Hn(r),85),l=OIn(i),l.b==0?si(i,Wv,null):si(i,Wv,l);Oe(xe(fe(n,(Wz(),Hke))))||(W=u(fe(n,gfn),103),D=E+W.b+W.c,N=M+W.d+W.a,Xw(n,D,N,!0,!0)),t.Tg()},S(_u,"FixedLayoutProvider",1085),k(377,149,{3:1,411:1,377:1,104:1,149:1},P5,tRe),s.ag=function(n){var t,i,r,c,o,l,a,b,w;if(n)try{for(b=im(n,";,;"),o=b,l=0,a=o.length;l<a;++l){if(c=o[l],i=im(c,"\\:"),r=oge(CS(),i[0]),!r)throw R(new jn("Invalid option id: "+i[0]));if(w=uge(r,i[1]),w==null)throw R(new jn("Invalid option value: "+i[1]));w==null?(!this.q&&(this.q=new nt),q4(this.q,r)):(!this.q&&(this.q=new nt),Ht(this.q,r,w))}}catch(v){throw v=Ki(v),K(v,100)?(t=v,R(new qBe(t))):R(v)}},s.Ib=function(){var n;return n=pt(Ho(ms((this.q?this.q:(sn(),sn(),d1)).vc().Mc(),new O$),okn(new B_e,new c5,new Ab,new t7,B(z(mo,1),we,131,0,[])))),n};var Dfn=S(_u,"IndividualSpacings",377);k(961,1,{},O$),s.Kb=function(n){return Hvn(u(n,43))},S(_u,"IndividualSpacings/lambda$0$Type",961),k(705,1,{},SNe),s.c=0,S(_u,"InstancePool",705),k(1805,1,{},cw),S(_u,"LoggedGraph",1805),k(404,22,{3:1,34:1,22:1,404:1},BP);var h9e,pce,d9e,b9e,$fn=ct(_u,"LoggedGraph/Type",404,dt,x6n,Imn),Lfn;k(611,1,{849:1},R5),s.Sg=function(n,t){return!1},s.Tg=function(){},s.Ug=function(){return 0},s.Vg=function(){return null},s.Wg=function(){return null},s.Xg=function(){return null},s.Yg=function(){return!1},s.Zg=function(){return!1},s.$g=function(){return!1},s._g=function(n){},s.ah=function(n,t){},s.bh=function(n){return this},s.dh=function(n){},S(_u,"NullElkProgressMonitor",611),k(47,1,{20:1,47:1},fc),s.Ic=function(n){Yr(this,n)},s.Fb=function(n){var t,i,r;return K(n,47)?(i=u(n,47),t=this.a==null?i.a==null:Yt(this.a,i.a),r=this.b==null?i.b==null:Yt(this.b,i.b),t&&r):!1},s.Hb=function(){var n,t,i,r,c,o;return i=this.a==null?0:gi(this.a),n=i&rr,t=i&-65536,o=this.b==null?0:gi(this.b),r=o&rr,c=o&-65536,n^c>>16&rr|t^r<<16},s.Jc=function(){return new QSe(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+iu(this.b)+")":this.b==null?"pair("+iu(this.a)+",null)":"pair("+iu(this.a)+","+iu(this.b)+")"},S(_u,"Pair",47),k(976,1,xr,QSe),s.Nb=function(n){Fr(this,n)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw R(new ou)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),R(new Ys)},s.b=!1,s.c=!1,S(_u,"Pair/1",976),k(1075,214,Qw,x$),s.kf=function(n,t){var i,r,c,o,l;if(t.Sg("Random Layout",1),(!n.a&&(n.a=new he(St,n,10,11)),n.a).i==0){t.Tg();return}o=u(fe(n,(tde(),Tfn)),17),o&&o.a!=0?c=new cz(o.a):c=new jW,i=HC(ee(fe(n,Efn))),l=HC(ee(fe(n,Mfn))),r=u(fe(n,Afn),103),JLn(n,c,i,l,r),t.Tg()},S(_u,"RandomLayoutProvider",1075),k(239,1,{239:1},eX),s.Fb=function(n){return Gu(this.a,u(n,239).a)&&Gu(this.b,u(n,239).b)&&Gu(this.c,u(n,239).c)},s.Hb=function(){return Yz(B(z(fr,1),fn,1,5,[this.a,this.b,this.c]))},s.Ib=function(){return"("+this.a+Ss+this.b+Ss+this.c+")"},S(_u,"Triple",239);var Pfn;k(548,1,{}),s.Jf=function(){return new pe(this.f.i,this.f.j)},s.mf=function(n){return aDe(n,(xt(),Po))?fe(this.f,Rfn):fe(this.f,n)},s.Kf=function(){return new pe(this.f.g,this.f.f)},s.Lf=function(){return this.g},s.nf=function(n){return kh(this.f,n)},s.Mf=function(n){_o(this.f,n.a),No(this.f,n.b)},s.Nf=function(n){Iw(this.f,n.a),Dw(this.f,n.b)},s.Of=function(n){this.g=n},s.g=0;var Rfn;S(LE,"ElkGraphAdapters/AbstractElkGraphElementAdapter",548),k(550,1,{834:1},XL),s.Pf=function(){var n,t;if(!this.b)for(this.b=nz(_X(this.a).i),t=new Bn(_X(this.a));t.e!=t.i.gc();)n=u(Jn(t),153),ye(this.b,new AK(n));return this.b},s.b=null,S(LE,"ElkGraphAdapters/ElkEdgeAdapter",550),k(259,548,{},y0),s.Qf=function(){return iGe(this)},s.a=null,S(LE,"ElkGraphAdapters/ElkGraphAdapter",259),k(627,548,{187:1},AK),S(LE,"ElkGraphAdapters/ElkLabelAdapter",627),k(549,548,{682:1},iR),s.Pf=function(){return fEn(this)},s.Tf=function(){var n;return n=u(fe(this.f,(xt(),$8)),139),!n&&(n=new vj),n},s.Vf=function(){return aEn(this)},s.Xf=function(n){var t;t=new YZ(n),si(this.f,(xt(),$8),t)},s.Yf=function(n){si(this.f,(xt(),p1),new Ble(n))},s.Rf=function(){return this.d},s.Sf=function(){var n,t;if(!this.a)for(this.a=new ke,t=new Ln(zn(CY(u(this.f,26)).a.Jc(),new re));tt(t);)n=u(Hn(t),85),ye(this.a,new XL(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=new ke,t=new Ln(zn(H0(u(this.f,26)).a.Jc(),new re));tt(t);)n=u(Hn(t),85),ye(this.c,new XL(n));return this.c},s.Wf=function(){return GR(u(this.f,26)).i!=0||Oe(xe(u(this.f,26).mf((xt(),AN))))},s.Zf=function(){lkn(this,(Bb(),Pfn))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,S(LE,"ElkGraphAdapters/ElkNodeAdapter",549),k(1246,548,{833:1},eEe),s.Pf=function(){return mEn(this)},s.Sf=function(){var n,t;if(!this.a)for(this.a=Vh(u(this.f,124).fh().i),t=new Bn(u(this.f,124).fh());t.e!=t.i.gc();)n=u(Jn(t),85),ye(this.a,new XL(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=Vh(u(this.f,124).gh().i),t=new Bn(u(this.f,124).gh());t.e!=t.i.gc();)n=u(Jn(t),85),ye(this.c,new XL(n));return this.c},s.$f=function(){return u(u(this.f,124).mf((xt(),ey)),64)},s._f=function(){var n,t,i,r,c,o,l,a;for(r=$a(u(this.f,124)),i=new Bn(u(this.f,124).gh());i.e!=i.i.gc();)for(n=u(Jn(i),85),a=new Bn((!n.c&&(n.c=new hn(it,n,5,8)),n.c));a.e!=a.i.gc();){if(l=u(Jn(a),84),R2(Wc(l),r))return!0;if(Wc(l)==r&&Oe(xe(fe(n,(xt(),ece)))))return!0}for(t=new Bn(u(this.f,124).fh());t.e!=t.i.gc();)for(n=u(Jn(t),85),o=new Bn((!n.b&&(n.b=new hn(it,n,4,7)),n.b));o.e!=o.i.gc();)if(c=u(Jn(o),84),R2(Wc(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,S(LE,"ElkGraphAdapters/ElkPortAdapter",1246),k(1247,1,It,XM),s.Le=function(n,t){return TNn(u(n,124),u(t,124))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},S(LE,"ElkGraphAdapters/PortComparator",1247);var pb=xi(Fl,"EObject"),G8=xi(Sv,EYe),yl=xi(Sv,AYe),FN=xi(Sv,TYe),qN=xi(Sv,"ElkShape"),it=xi(Sv,MYe),Qi=xi(Sv,E2e),ki=xi(Sv,CYe),GN=xi(Fl,xYe),nT=xi(Fl,"EFactory"),zfn,mce=xi(Fl,OYe),xa=xi(Fl,"EPackage"),Sr,Bfn,Ffn,g9e,TJ,qfn,w9e,p9e,m9e,k1,Gfn,Jfn,pu=xi(Sv,A2e),St=xi(Sv,T2e),Ro=xi(Sv,M2e);k(92,1,_Ye),s.ph=function(){return this.qh(),null},s.qh=function(){return null},s.rh=function(){return this.qh(),!1},s.sh=function(){return!1},s.th=function(n){Vt(this,n)},S(k6,"BasicNotifierImpl",92),k(98,92,$Ye),s.Uh=function(){return qo(this)},s.uh=function(n,t){return n},s.vh=function(){throw R(new bt)},s.wh=function(n){var t;return t=mc(u(ln(this.zh(),this.Bh()),19)),this.Lh().Ph(this,t.n,t.f,n)},s.xh=function(n,t){throw R(new bt)},s.yh=function(n,t,i){return dl(this,n,t,i)},s.zh=function(){var n;return this.vh()&&(n=this.vh().Kk(),n)?n:this.ei()},s.Ah=function(){return TY(this)},s.Bh=function(){throw R(new bt)},s.Ch=function(){var n,t;return t=this.Wh().Lk(),!t&&this.vh().Qk(t=(Dj(),n=rae(Th(this.zh())),n==null?Tce:new yx(this,n))),t},s.Dh=function(n,t){return n},s.Eh=function(n){var t;return t=n.mk(),t?n.Ij():Ai(this.zh(),n)},s.Fh=function(){var n;return n=this.vh(),n?n.Nk():null},s.Gh=function(){return this.vh()?this.vh().Kk():null},s.Hh=function(n,t,i){return yB(this,n,t,i)},s.Ih=function(n){return Pk(this,n)},s.Jh=function(n,t){return hV(this,n,t)},s.Kh=function(){var n;return n=this.vh(),!!n&&n.Ok()},s.Lh=function(){throw R(new bt)},s.Mh=function(){return gB(this)},s.Nh=function(n,t,i,r){return e6(this,n,t,r)},s.Oh=function(n,t,i){var r;return r=u(ln(this.zh(),t),69),r.tk().wk(this,this.di(),t-this.fi(),n,i)},s.Ph=function(n,t,i,r){return ZR(this,n,t,r)},s.Qh=function(n,t,i){var r;return r=u(ln(this.zh(),t),69),r.tk().xk(this,this.di(),t-this.fi(),n,i)},s.Rh=function(){return!!this.vh()&&!!this.vh().Mk()},s.Sh=function(n){return LW(this,n)},s.Th=function(n){return ADe(this,n)},s.Vh=function(n){return tXe(this,n)},s.Wh=function(){throw R(new bt)},s.Xh=function(){return this.vh()?this.vh().Mk():null},s.Yh=function(){return gB(this)},s.Zh=function(n,t){kY(this,n,t)},s.$h=function(n){this.Wh().Pk(n)},s._h=function(n){this.Wh().Sk(n)},s.ai=function(n){this.Wh().Rk(n)},s.bi=function(n,t){var i,r,c,o;return o=this.Fh(),o&&n&&(t=oc(o.Bl(),this,t),o.Fl(this)),r=this.Lh(),r&&((zY(this,this.Lh(),this.Bh()).Bb&ac)!=0?(c=r.Mh(),c&&(n?!o&&c.Fl(this):c.El(this))):(t=(i=this.Bh(),i>=0?this.wh(t):this.Lh().Ph(this,-1-i,null,t)),t=this.yh(null,-1,t))),this._h(n),t},s.ci=function(n){var t,i,r,c,o,l,a,b;if(i=this.zh(),o=Ai(i,n),t=this.fi(),o>=t)return u(n,69).tk().Ak(this,this.di(),o-t);if(o<=-1)if(l=gv((co(),Jr),i,n),l){if(pc(),u(l,69).uk()||(l=z4(qc(Jr,l))),c=(r=this.Eh(l),u(r>=0?this.Hh(r,!0,!0):Hw(this,l,!0),159)),b=l.Fk(),b>1||b==-1)return u(u(c,219).Pl(n,!1),76)}else throw R(new jn(eb+n.ve()+fne));else if(n.Gk())return r=this.Eh(n),u(r>=0?this.Hh(r,!1,!0):Hw(this,n,!1),76);return a=new GCe(this,n),a},s.di=function(){return ahe(this)},s.ei=function(){return(O0(),pn).S},s.fi=function(){return Kn(this.ei())},s.gi=function(n){mY(this,n)},s.Ib=function(){return Jf(this)},S(vn,"BasicEObjectImpl",98);var Ufn;k(117,98,{109:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1}),s.hi=function(n){var t;return t=fhe(this),t[n]},s.ii=function(n,t){var i;i=fhe(this),qi(i,n,t)},s.ji=function(n){var t;t=fhe(this),qi(t,n,null)},s.ph=function(){return u(Sn(this,4),128)},s.qh=function(){throw R(new bt)},s.rh=function(){return(this.Db&4)!=0},s.vh=function(){throw R(new bt)},s.ki=function(n){Q4(this,2,n)},s.xh=function(n,t){this.Db=t<<16|this.Db&255,this.ki(n)},s.zh=function(){return Fs(this)},s.Bh=function(){return this.Db>>16},s.Ch=function(){var n,t;return Dj(),t=rae(Th((n=u(Sn(this,16),29),n||this.ei()))),t==null?Tce:new yx(this,t)},s.sh=function(){return(this.Db&1)==0},s.Fh=function(){return u(Sn(this,128),1983)},s.Gh=function(){return u(Sn(this,16),29)},s.Kh=function(){return(this.Db&32)!=0},s.Lh=function(){return u(Sn(this,2),52)},s.Rh=function(){return(this.Db&64)!=0},s.Wh=function(){throw R(new bt)},s.Xh=function(){return u(Sn(this,64),288)},s.$h=function(n){Q4(this,16,n)},s._h=function(n){Q4(this,128,n)},s.ai=function(n){Q4(this,64,n)},s.di=function(){return Os(this)},s.Db=0,S(vn,"MinimalEObjectImpl",117),k(118,117,{109:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),s.ki=function(n){this.Cb=n},s.Lh=function(){return this.Cb},S(vn,"MinimalEObjectImpl/Container",118),k(2032,118,{109:1,340:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),s.Hh=function(n,t,i){return Ade(this,n,t,i)},s.Qh=function(n,t,i){return b0e(this,n,t,i)},s.Sh=function(n){return mae(this,n)},s.Zh=function(n,t){a1e(this,n,t)},s.ei=function(){return $u(),Jfn},s.gi=function(n){e1e(this,n)},s.lf=function(){return Eqe(this)},s.eh=function(){return!this.o&&(this.o=new io(($u(),k1),s0,this,0)),this.o},s.mf=function(n){return fe(this,n)},s.nf=function(n){return kh(this,n)},s.of=function(n,t){return si(this,n,t)},S(mg,"EMapPropertyHolderImpl",2032),k(557,118,{109:1,370:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},v3),s.Hh=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return yB(this,n,t,i)},s.Sh=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return LW(this,n)},s.Zh=function(n,t){switch(n){case 0:xz(this,Y(ee(t)));return;case 1:Cz(this,Y(ee(t)));return}kY(this,n,t)},s.ei=function(){return $u(),Bfn},s.gi=function(n){switch(n){case 0:xz(this,0);return;case 1:Cz(this,0);return}mY(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?Jf(this):(n=new sf(Jf(this)),n.a+=" (x: ",x3(n,this.a),n.a+=", y: ",x3(n,this.b),n.a+=")",n.a)},s.a=0,s.b=0,S(mg,"ElkBendPointImpl",557),k(724,2032,{109:1,340:1,173:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),s.Hh=function(n,t,i){return _1e(this,n,t,i)},s.Oh=function(n,t,i){return fY(this,n,t,i)},s.Qh=function(n,t,i){return XV(this,n,t,i)},s.Sh=function(n){return Zhe(this,n)},s.Zh=function(n,t){Jde(this,n,t)},s.ei=function(){return $u(),qfn},s.gi=function(n){T1e(this,n)},s.hh=function(){return this.k},s.ih=function(){return _X(this)},s.Ib=function(){return yW(this)},s.k=null,S(mg,"ElkGraphElementImpl",724),k(725,724,{109:1,340:1,173:1,274:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),s.Hh=function(n,t,i){return G1e(this,n,t,i)},s.Sh=function(n){return V1e(this,n)},s.Zh=function(n,t){Ude(this,n,t)},s.ei=function(){return $u(),Gfn},s.gi=function(n){Q1e(this,n)},s.jh=function(){return this.f},s.kh=function(){return this.g},s.lh=function(){return this.i},s.mh=function(){return this.j},s.nh=function(n,t){pw(this,n,t)},s.oh=function(n,t){xl(this,n,t)},s.Ib=function(){return wY(this)},s.f=0,s.g=0,s.i=0,s.j=0,S(mg,"ElkShapeImpl",725),k(726,725,{109:1,340:1,84:1,173:1,274:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),s.Hh=function(n,t,i){return vde(this,n,t,i)},s.Oh=function(n,t,i){return Rde(this,n,t,i)},s.Qh=function(n,t,i){return zde(this,n,t,i)},s.Sh=function(n){return f1e(this,n)},s.Zh=function(n,t){Y0e(this,n,t)},s.ei=function(){return $u(),Ffn},s.gi=function(n){bde(this,n)},s.fh=function(){return!this.d&&(this.d=new hn(Qi,this,8,5)),this.d},s.gh=function(){return!this.e&&(this.e=new hn(Qi,this,7,4)),this.e},S(mg,"ElkConnectableShapeImpl",726),k(269,724,{109:1,340:1,85:1,173:1,269:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},y3),s.wh=function(n){return Dde(this,n)},s.Hh=function(n,t,i){switch(n){case 3:return N2(this);case 4:return!this.b&&(this.b=new hn(it,this,4,7)),this.b;case 5:return!this.c&&(this.c=new hn(it,this,5,8)),this.c;case 6:return!this.a&&(this.a=new he(ki,this,6,6)),this.a;case 7:return Mn(),!this.b&&(this.b=new hn(it,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(it,this,5,8)),this.c.i<=1));case 8:return Mn(),!!iE(this);case 9:return Mn(),!!Uw(this);case 10:return Mn(),!this.b&&(this.b=new hn(it,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(it,this,5,8)),this.c.i!=0)}return _1e(this,n,t,i)},s.Oh=function(n,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?Dde(this,i):this.Cb.Ph(this,-1-r,null,i))),vle(this,u(n,26),i);case 4:return!this.b&&(this.b=new hn(it,this,4,7)),js(this.b,n,i);case 5:return!this.c&&(this.c=new hn(it,this,5,8)),js(this.c,n,i);case 6:return!this.a&&(this.a=new he(ki,this,6,6)),js(this.a,n,i)}return fY(this,n,t,i)},s.Qh=function(n,t,i){switch(t){case 3:return vle(this,null,i);case 4:return!this.b&&(this.b=new hn(it,this,4,7)),oc(this.b,n,i);case 5:return!this.c&&(this.c=new hn(it,this,5,8)),oc(this.c,n,i);case 6:return!this.a&&(this.a=new he(ki,this,6,6)),oc(this.a,n,i)}return XV(this,n,t,i)},s.Sh=function(n){switch(n){case 3:return!!N2(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new hn(it,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(it,this,5,8)),this.c.i<=1));case 8:return iE(this);case 9:return Uw(this);case 10:return!this.b&&(this.b=new hn(it,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(it,this,5,8)),this.c.i!=0)}return Zhe(this,n)},s.Zh=function(n,t){switch(n){case 3:HB(this,u(t,26));return;case 4:!this.b&&(this.b=new hn(it,this,4,7)),ut(this.b),!this.b&&(this.b=new hn(it,this,4,7)),zi(this.b,u(t,16));return;case 5:!this.c&&(this.c=new hn(it,this,5,8)),ut(this.c),!this.c&&(this.c=new hn(it,this,5,8)),zi(this.c,u(t,16));return;case 6:!this.a&&(this.a=new he(ki,this,6,6)),ut(this.a),!this.a&&(this.a=new he(ki,this,6,6)),zi(this.a,u(t,16));return}Jde(this,n,t)},s.ei=function(){return $u(),g9e},s.gi=function(n){switch(n){case 3:HB(this,null);return;case 4:!this.b&&(this.b=new hn(it,this,4,7)),ut(this.b);return;case 5:!this.c&&(this.c=new hn(it,this,5,8)),ut(this.c);return;case 6:!this.a&&(this.a=new he(ki,this,6,6)),ut(this.a);return}T1e(this,n)},s.Ib=function(){return SZe(this)},S(mg,"ElkEdgeImpl",269),k(440,2032,{109:1,340:1,168:1,440:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},gs),s.wh=function(n){return Ode(this,n)},s.Hh=function(n,t,i){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new nr(yl,this,5)),this.a;case 6:return kDe(this);case 7:return t?FW(this):this.i;case 8:return t?BW(this):this.f;case 9:return!this.g&&(this.g=new hn(ki,this,9,10)),this.g;case 10:return!this.e&&(this.e=new hn(ki,this,10,9)),this.e;case 11:return this.d}return Ade(this,n,t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?Ode(this,i):this.Cb.Ph(this,-1-c,null,i))),yle(this,u(n,85),i);case 9:return!this.g&&(this.g=new hn(ki,this,9,10)),js(this.g,n,i);case 10:return!this.e&&(this.e=new hn(ki,this,10,9)),js(this.e,n,i)}return o=u(ln((r=u(Sn(this,16),29),r||($u(),TJ)),t),69),o.tk().wk(this,Os(this),t-Kn(($u(),TJ)),n,i)},s.Qh=function(n,t,i){switch(t){case 5:return!this.a&&(this.a=new nr(yl,this,5)),oc(this.a,n,i);case 6:return yle(this,null,i);case 9:return!this.g&&(this.g=new hn(ki,this,9,10)),oc(this.g,n,i);case 10:return!this.e&&(this.e=new hn(ki,this,10,9)),oc(this.e,n,i)}return b0e(this,n,t,i)},s.Sh=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!kDe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return mae(this,n)},s.Zh=function(n,t){switch(n){case 1:Y3(this,Y(ee(t)));return;case 2:ev(this,Y(ee(t)));return;case 3:Q3(this,Y(ee(t)));return;case 4:W3(this,Y(ee(t)));return;case 5:!this.a&&(this.a=new nr(yl,this,5)),ut(this.a),!this.a&&(this.a=new nr(yl,this,5)),zi(this.a,u(t,16));return;case 6:SHe(this,u(t,85));return;case 7:Lz(this,u(t,84));return;case 8:$z(this,u(t,84));return;case 9:!this.g&&(this.g=new hn(ki,this,9,10)),ut(this.g),!this.g&&(this.g=new hn(ki,this,9,10)),zi(this.g,u(t,16));return;case 10:!this.e&&(this.e=new hn(ki,this,10,9)),ut(this.e),!this.e&&(this.e=new hn(ki,this,10,9)),zi(this.e,u(t,16));return;case 11:Lhe(this,pt(t));return}a1e(this,n,t)},s.ei=function(){return $u(),TJ},s.gi=function(n){switch(n){case 1:Y3(this,0);return;case 2:ev(this,0);return;case 3:Q3(this,0);return;case 4:W3(this,0);return;case 5:!this.a&&(this.a=new nr(yl,this,5)),ut(this.a);return;case 6:SHe(this,null);return;case 7:Lz(this,null);return;case 8:$z(this,null);return;case 9:!this.g&&(this.g=new hn(ki,this,9,10)),ut(this.g);return;case 10:!this.e&&(this.e=new hn(ki,this,10,9)),ut(this.e);return;case 11:Lhe(this,null);return}e1e(this,n)},s.Ib=function(){return DUe(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,S(mg,"ElkEdgeSectionImpl",440),k(157,118,{109:1,93:1,92:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1}),s.Hh=function(n,t,i){var r;return n==0?(!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab):Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Oh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i)):(c=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),c.tk().wk(this,Os(this),t-Kn(this.ei()),n,i))},s.Qh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i)):(c=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),c.tk().xk(this,Os(this),t-Kn(this.ei()),n,i))},s.Sh=function(n){var t;return n==0?!!this.Ab&&this.Ab.i!=0:Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Vh=function(n){return gge(this,n)},s.Zh=function(n,t){var i;if(n===0){!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s._h=function(n){Q4(this,128,n)},s.ei=function(){return cn(),lan},s.gi=function(n){var t;if(n===0){!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.li=function(){this.Bb|=1},s.mi=function(n){return fE(this,n)},s.Bb=0,S(vn,"EModelElementImpl",157),k(707,157,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1},SC),s.ni=function(n,t){return VZe(this,n,t)},s.oi=function(n){var t,i,r,c,o;if(this.a!=ol(n)||(n.Bb&256)!=0)throw R(new jn(hne+n.zb+rp));for(r=Vc(n);Ju(r.a).i!=0;){if(i=u(n_(r,0,(t=u(Z(Ju(r.a),0),87),o=t.c,K(o,88)?u(o,29):(cn(),Mf))),29),Gw(i))return c=ol(i).si().oi(i),u(c,52).$h(n),c;r=Vc(i)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new uNe(n):new ife(n)},s.pi=function(n,t){return Vw(this,n,t)},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.a}return Il(this,n-Kn((cn(),yb)),ln((r=u(Sn(this,16),29),r||yb),n),t,i)},s.Oh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 1:return this.a&&(i=u(this.a,52).Ph(this,4,xa,i)),E1e(this,u(n,240),i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),yb)),t),69),c.tk().wk(this,Os(this),t-Kn((cn(),yb)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 1:return E1e(this,null,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),yb)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),yb)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Nl(this,n-Kn((cn(),yb)),ln((t=u(Sn(this,16),29),t||yb),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:lJe(this,u(t,240));return}Pl(this,n-Kn((cn(),yb)),ln((i=u(Sn(this,16),29),i||yb),n),t)},s.ei=function(){return cn(),yb},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:lJe(this,null);return}Ll(this,n-Kn((cn(),yb)),ln((t=u(Sn(this,16),29),t||yb),n))};var tT,v9e,Hfn;S(vn,"EFactoryImpl",707),k(1015,707,{109:1,2062:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1},pH),s.ni=function(n,t){switch(n.ek()){case 12:return u(t,145).Ng();case 13:return iu(t);default:throw R(new jn(Y9+n.ve()+rp))}},s.oi=function(n){var t,i,r,c,o,l,a,b;switch(n.G==-1&&(n.G=(t=ol(n),t?Hd(t.ri(),n):-1)),n.G){case 4:return o=new Nb,o;case 6:return l=new yj,l;case 7:return a=new bse,a;case 8:return r=new y3,r;case 9:return i=new v3,i;case 10:return c=new gs,c;case 11:return b=new mH,b;default:throw R(new jn(hne+n.zb+rp))}},s.pi=function(n,t){switch(n.ek()){case 13:case 12:return null;default:throw R(new jn(Y9+n.ve()+rp))}},S(mg,"ElkGraphFactoryImpl",1015),k(436,157,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1}),s.Ch=function(){var n,t;return t=(n=u(Sn(this,16),29),rae(Th(n||this.ei()))),t==null?(Dj(),Dj(),Tce):new COe(this,t)},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.ve()}return Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:this.qi(pt(t));return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s.ei=function(){return cn(),fan},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:this.qi(null);return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.ve=function(){return this.zb},s.qi=function(n){ks(this,n)},s.Ib=function(){return BS(this)},s.zb=null,S(vn,"ENamedElementImpl",436),k(184,436,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1},QIe),s.wh=function(n){return vGe(this,n)},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new C2(this,Oa,this)),this.rb;case 6:return!this.vb&&(this.vb=new M4(xa,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,240):null:MDe(this)}return Il(this,n-Kn((cn(),a0)),ln((r=u(Sn(this,16),29),r||a0),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 4:return this.sb&&(i=u(this.sb,52).Ph(this,1,nT,i)),C1e(this,u(n,466),i);case 5:return!this.rb&&(this.rb=new C2(this,Oa,this)),js(this.rb,n,i);case 6:return!this.vb&&(this.vb=new M4(xa,this,6,7)),js(this.vb,n,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?vGe(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,7,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),a0)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),a0)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 4:return C1e(this,null,i);case 5:return!this.rb&&(this.rb=new C2(this,Oa,this)),oc(this.rb,n,i);case 6:return!this.vb&&(this.vb=new M4(xa,this,6,7)),oc(this.vb,n,i);case 7:return dl(this,null,7,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),a0)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),a0)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!MDe(this)}return Nl(this,n-Kn((cn(),a0)),ln((t=u(Sn(this,16),29),t||a0),n))},s.Vh=function(n){var t;return t=UOn(this,n),t||gge(this,n)},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:ks(this,pt(t));return;case 2:Fz(this,pt(t));return;case 3:Bz(this,pt(t));return;case 4:gY(this,u(t,466));return;case 5:!this.rb&&(this.rb=new C2(this,Oa,this)),ut(this.rb),!this.rb&&(this.rb=new C2(this,Oa,this)),zi(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new M4(xa,this,6,7)),ut(this.vb),!this.vb&&(this.vb=new M4(xa,this,6,7)),zi(this.vb,u(t,16));return}Pl(this,n-Kn((cn(),a0)),ln((i=u(Sn(this,16),29),i||a0),n),t)},s.ai=function(n){var t,i;if(n&&this.rb)for(i=new Bn(this.rb);i.e!=i.i.gc();)t=Jn(i),K(t,358)&&(u(t,358).w=null);Q4(this,64,n)},s.ei=function(){return cn(),a0},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:ks(this,null);return;case 2:Fz(this,null);return;case 3:Bz(this,null);return;case 4:gY(this,null);return;case 5:!this.rb&&(this.rb=new C2(this,Oa,this)),ut(this.rb);return;case 6:!this.vb&&(this.vb=new M4(xa,this,6,7)),ut(this.vb);return}Ll(this,n-Kn((cn(),a0)),ln((t=u(Sn(this,16),29),t||a0),n))},s.li=function(){eY(this)},s.ri=function(){return!this.rb&&(this.rb=new C2(this,Oa,this)),this.rb},s.si=function(){return this.sb},s.ti=function(){return this.ub},s.ui=function(){return this.xb},s.vi=function(){return this.yb},s.wi=function(n){this.ub=n},s.Ib=function(){var n;return(this.Db&64)!=0?BS(this):(n=new sf(BS(this)),n.a+=" (nsURI: ",Oc(n,this.yb),n.a+=", nsPrefix: ",Oc(n,this.xb),n.a+=")",n.a)},s.xb=null,s.yb=null,S(vn,"EPackageImpl",184),k(554,184,{109:1,2064:1,554:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1},qUe),s.q=!1,s.r=!1;var Kfn=!1;S(mg,"ElkGraphPackageImpl",554),k(360,725,{109:1,340:1,173:1,153:1,274:1,360:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},Nb),s.wh=function(n){return _de(this,n)},s.Hh=function(n,t,i){switch(n){case 7:return lae(this);case 8:return this.a}return G1e(this,n,t,i)},s.Oh=function(n,t,i){var r;return t===7?(this.Cb&&(i=(r=this.Db>>16,r>=0?_de(this,i):this.Cb.Ph(this,-1-r,null,i))),pfe(this,u(n,173),i)):fY(this,n,t,i)},s.Qh=function(n,t,i){return t==7?pfe(this,null,i):XV(this,n,t,i)},s.Sh=function(n){switch(n){case 7:return!!lae(this);case 8:return!We("",this.a)}return V1e(this,n)},s.Zh=function(n,t){switch(n){case 7:bbe(this,u(t,173));return;case 8:Nhe(this,pt(t));return}Ude(this,n,t)},s.ei=function(){return $u(),w9e},s.gi=function(n){switch(n){case 7:bbe(this,null);return;case 8:Nhe(this,"");return}Q1e(this,n)},s.Ib=function(){return MJe(this)},s.a="",S(mg,"ElkLabelImpl",360),k(206,726,{109:1,340:1,84:1,173:1,26:1,274:1,206:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},yj),s.wh=function(n){return $de(this,n)},s.Hh=function(n,t,i){switch(n){case 9:return!this.c&&(this.c=new he(Ro,this,9,9)),this.c;case 10:return!this.a&&(this.a=new he(St,this,10,11)),this.a;case 11:return Ei(this);case 12:return!this.b&&(this.b=new he(Qi,this,12,3)),this.b;case 13:return Mn(),!this.a&&(this.a=new he(St,this,10,11)),this.a.i>0}return vde(this,n,t,i)},s.Oh=function(n,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new he(Ro,this,9,9)),js(this.c,n,i);case 10:return!this.a&&(this.a=new he(St,this,10,11)),js(this.a,n,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?$de(this,i):this.Cb.Ph(this,-1-r,null,i))),Cle(this,u(n,26),i);case 12:return!this.b&&(this.b=new he(Qi,this,12,3)),js(this.b,n,i)}return Rde(this,n,t,i)},s.Qh=function(n,t,i){switch(t){case 9:return!this.c&&(this.c=new he(Ro,this,9,9)),oc(this.c,n,i);case 10:return!this.a&&(this.a=new he(St,this,10,11)),oc(this.a,n,i);case 11:return Cle(this,null,i);case 12:return!this.b&&(this.b=new he(Qi,this,12,3)),oc(this.b,n,i)}return zde(this,n,t,i)},s.Sh=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Ei(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new he(St,this,10,11)),this.a.i>0}return f1e(this,n)},s.Zh=function(n,t){switch(n){case 9:!this.c&&(this.c=new he(Ro,this,9,9)),ut(this.c),!this.c&&(this.c=new he(Ro,this,9,9)),zi(this.c,u(t,16));return;case 10:!this.a&&(this.a=new he(St,this,10,11)),ut(this.a),!this.a&&(this.a=new he(St,this,10,11)),zi(this.a,u(t,16));return;case 11:KB(this,u(t,26));return;case 12:!this.b&&(this.b=new he(Qi,this,12,3)),ut(this.b),!this.b&&(this.b=new he(Qi,this,12,3)),zi(this.b,u(t,16));return}Y0e(this,n,t)},s.ei=function(){return $u(),p9e},s.gi=function(n){switch(n){case 9:!this.c&&(this.c=new he(Ro,this,9,9)),ut(this.c);return;case 10:!this.a&&(this.a=new he(St,this,10,11)),ut(this.a);return;case 11:KB(this,null);return;case 12:!this.b&&(this.b=new he(Qi,this,12,3)),ut(this.b);return}bde(this,n)},s.Ib=function(){return Obe(this)},S(mg,"ElkNodeImpl",206),k(193,726,{109:1,340:1,84:1,173:1,124:1,274:1,193:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},bse),s.wh=function(n){return Nde(this,n)},s.Hh=function(n,t,i){return n==9?$a(this):vde(this,n,t,i)},s.Oh=function(n,t,i){var r;return t===9?(this.Cb&&(i=(r=this.Db>>16,r>=0?Nde(this,i):this.Cb.Ph(this,-1-r,null,i))),kle(this,u(n,26),i)):Rde(this,n,t,i)},s.Qh=function(n,t,i){return t==9?kle(this,null,i):zde(this,n,t,i)},s.Sh=function(n){return n==9?!!$a(this):f1e(this,n)},s.Zh=function(n,t){if(n===9){lbe(this,u(t,26));return}Y0e(this,n,t)},s.ei=function(){return $u(),m9e},s.gi=function(n){if(n===9){lbe(this,null);return}bde(this,n)},s.Ib=function(){return yKe(this)},S(mg,"ElkPortImpl",193);var Zfn=xi(lc,"BasicEMap/Entry");k(1088,118,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1,117:1,118:1},mH),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.Hb=function(){return yw(this)},s.zi=function(n){Ihe(this,u(n,145))},s.Hh=function(n,t,i){switch(n){case 0:return this.b;case 1:return this.c}return yB(this,n,t,i)},s.Sh=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return LW(this,n)},s.Zh=function(n,t){switch(n){case 0:Ihe(this,u(t,145));return;case 1:Ohe(this,t);return}kY(this,n,t)},s.ei=function(){return $u(),k1},s.gi=function(n){switch(n){case 0:Ihe(this,null);return;case 1:Ohe(this,null);return}mY(this,n)},s.xi=function(){var n;return this.a==-1&&(n=this.b,this.a=n?gi(n):0),this.a},s.kd=function(){return this.c},s.yi=function(n){this.a=n},s.ld=function(n){var t;return t=this.c,Ohe(this,n),t},s.Ib=function(){var n;return(this.Db&64)!=0?Jf(this):(n=new k0,_t(_t(_t(n,this.b?this.b.Ng():Hs),nee),eS(this.c)),n.a)},s.a=-1,s.c=null;var s0=S(mg,"ElkPropertyToValueMapEntryImpl",1088);k(977,1,{},I$),S(Rr,"JsonAdapter",977),k(215,63,Y1,dh),S(Rr,"JsonImportException",215),k(847,1,{},PUe),S(Rr,"JsonImporter",847),k(881,1,{},MCe),s.Ai=function(n){xGe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$0$Type",881),k(882,1,{},CCe),s.Ai=function(n){bUe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$1$Type",882),k(890,1,{},nEe),s.Ai=function(n){IIe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$10$Type",890),k(892,1,{},xCe),s.Ai=function(n){eUe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$11$Type",892),k(893,1,{},OCe),s.Ai=function(n){nUe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$12$Type",893),k(899,1,{},RIe),s.Ai=function(n){SJe(this.a,this.b,this.c,this.d,u(n,138))},S(Rr,"JsonImporter/lambda$13$Type",899),k(898,1,{},zIe),s.Ai=function(n){FKe(this.a,this.b,this.c,this.d,u(n,148))},S(Rr,"JsonImporter/lambda$14$Type",898),k(894,1,{},_Ce),s.Ai=function(n){r_e(this.a,this.b,pt(n))},S(Rr,"JsonImporter/lambda$15$Type",894),k(895,1,{},NCe),s.Ai=function(n){c_e(this.a,this.b,pt(n))},S(Rr,"JsonImporter/lambda$16$Type",895),k(896,1,{},ICe),s.Ai=function(n){fGe(this.b,this.a,u(n,138))},S(Rr,"JsonImporter/lambda$17$Type",896),k(897,1,{},DCe),s.Ai=function(n){aGe(this.b,this.a,u(n,138))},S(Rr,"JsonImporter/lambda$18$Type",897),k(902,1,{},tEe),s.Ai=function(n){gJe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$19$Type",902),k(883,1,{},iEe),s.Ai=function(n){jGe(this.a,u(n,138))},S(Rr,"JsonImporter/lambda$2$Type",883),k(900,1,{},rEe),s.Ai=function(n){Y3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$20$Type",900),k(901,1,{},cEe),s.Ai=function(n){ev(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$21$Type",901),k(905,1,{},uEe),s.Ai=function(n){bJe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$22$Type",905),k(903,1,{},sEe),s.Ai=function(n){Q3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$23$Type",903),k(904,1,{},oEe),s.Ai=function(n){W3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$24$Type",904),k(907,1,{},lEe),s.Ai=function(n){BGe(this.a,u(n,138))},S(Rr,"JsonImporter/lambda$25$Type",907),k(906,1,{},fEe),s.Ai=function(n){DIe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$26$Type",906),k(908,1,Pn,$Ce),s.Ad=function(n){W5n(this.b,this.a,pt(n))},S(Rr,"JsonImporter/lambda$27$Type",908),k(909,1,Pn,LCe),s.Ad=function(n){Y5n(this.b,this.a,pt(n))},S(Rr,"JsonImporter/lambda$28$Type",909),k(910,1,{},PCe),s.Ai=function(n){YUe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$29$Type",910),k(886,1,{},aEe),s.Ai=function(n){LFe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$3$Type",886),k(911,1,{},RCe),s.Ai=function(n){vHe(this.a,this.b,u(n,138))},S(Rr,"JsonImporter/lambda$30$Type",911),k(912,1,{},hEe),s.Ai=function(n){iRe(this.a,ee(n))},S(Rr,"JsonImporter/lambda$31$Type",912),k(913,1,{},dEe),s.Ai=function(n){rRe(this.a,ee(n))},S(Rr,"JsonImporter/lambda$32$Type",913),k(914,1,{},bEe),s.Ai=function(n){cRe(this.a,ee(n))},S(Rr,"JsonImporter/lambda$33$Type",914),k(915,1,{},gEe),s.Ai=function(n){uRe(this.a,ee(n))},S(Rr,"JsonImporter/lambda$34$Type",915),k(916,1,{},wEe),s.Ai=function(n){GTn(this.a,u(n,57))},S(Rr,"JsonImporter/lambda$35$Type",916),k(917,1,{},pEe),s.Ai=function(n){JTn(this.a,u(n,57))},S(Rr,"JsonImporter/lambda$36$Type",917),k(921,1,{},BIe),S(Rr,"JsonImporter/lambda$37$Type",921),k(918,1,Pn,I_e),s.Ad=function(n){p9n(this.a,this.c,this.b,u(n,370))},S(Rr,"JsonImporter/lambda$38$Type",918),k(919,1,Pn,zCe),s.Ad=function(n){ugn(this.a,this.b,u(n,168))},S(Rr,"JsonImporter/lambda$39$Type",919),k(884,1,{},mEe),s.Ai=function(n){Y3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$4$Type",884),k(920,1,Pn,BCe),s.Ad=function(n){sgn(this.a,this.b,u(n,168))},S(Rr,"JsonImporter/lambda$40$Type",920),k(922,1,Pn,__e),s.Ad=function(n){m9n(this.a,this.b,this.c,u(n,8))},S(Rr,"JsonImporter/lambda$41$Type",922),k(885,1,{},vEe),s.Ai=function(n){ev(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$5$Type",885),k(889,1,{},yEe),s.Ai=function(n){PFe(this.a,u(n,148))},S(Rr,"JsonImporter/lambda$6$Type",889),k(887,1,{},kEe),s.Ai=function(n){Q3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$7$Type",887),k(888,1,{},jEe),s.Ai=function(n){W3(this.a,Y(ee(n)))},S(Rr,"JsonImporter/lambda$8$Type",888),k(891,1,{},SEe),s.Ai=function(n){FGe(this.a,u(n,138))},S(Rr,"JsonImporter/lambda$9$Type",891),k(941,1,Pn,EEe),s.Ad=function(n){$4(this.a,new O2(pt(n)))},S(Rr,"JsonMetaDataConverter/lambda$0$Type",941),k(942,1,Pn,AEe),s.Ad=function(n){tvn(this.a,u(n,243))},S(Rr,"JsonMetaDataConverter/lambda$1$Type",942),k(943,1,Pn,TEe),s.Ad=function(n){Gyn(this.a,u(n,142))},S(Rr,"JsonMetaDataConverter/lambda$2$Type",943),k(944,1,Pn,MEe),s.Ad=function(n){ivn(this.a,u(n,170))},S(Rr,"JsonMetaDataConverter/lambda$3$Type",944),k(243,22,{3:1,34:1,22:1,243:1},y4);var MJ,CJ,vce,xJ,OJ,_J,yce,kce,NJ=ct(p_,"GraphFeature",243,dt,Mkn,$mn),Xfn;k(12,1,{34:1,145:1},hi,Ci,Xe,Lr),s.Dd=function(n){return lwn(this,u(n,145))},s.Fb=function(n){return aDe(this,n)},s.Qg=function(){return Me(this)},s.Ng=function(){return this.b},s.Hb=function(){return Bd(this.b)},s.Ib=function(){return this.b},S(p_,"Property",12),k(654,1,It,hK),s.Le=function(n,t){return z7n(this,u(n,104),u(t,104))},s.Fb=function(n){return this===n},s.Me=function(){return new Ct(this)},S(p_,"PropertyHolderComparator",654),k(695,1,xr,Kue),s.Nb=function(n){Fr(this,n)},s.Pb=function(){return Z5n(this)},s.Qb=function(){jTe()},s.Ob=function(){return!!this.a},S(iq,"ElkGraphUtil/AncestorIterator",695);var y9e=xi(lc,"EList");k(70,55,{20:1,31:1,55:1,16:1,15:1,70:1,61:1}),s._c=function(n,t){qS(this,n,t)},s.Ec=function(n){return lt(this,n)},s.ad=function(n,t){return i1e(this,n,t)},s.Fc=function(n){return zi(this,n)},s.Fi=function(){return new A4(this)},s.Gi=function(){return new vx(this)},s.Hi=function(n){return fO(this,n)},s.Ii=function(){return!0},s.Ji=function(n,t){},s.Ki=function(){},s.Li=function(n,t){gV(this,n,t)},s.Mi=function(n,t,i){},s.Ni=function(n,t){},s.Oi=function(n,t,i){},s.Fb=function(n){return rKe(this,n)},s.Hb=function(){return Whe(this)},s.Pi=function(){return!1},s.Jc=function(){return new Bn(this)},s.cd=function(){return new T4(this)},s.dd=function(n){var t;if(t=this.gc(),n<0||n>t)throw R(new A2(n,t));return new kX(this,n)},s.Ri=function(n,t){this.Qi(n,this.bd(t))},s.Kc=function(n){return jz(this,n)},s.Ti=function(n,t){return t},s.fd=function(n,t){return uv(this,n,t)},s.Ib=function(){return Z1e(this)},s.Vi=function(){return!0},s.Wi=function(n,t){return Wk(this,t)},S(lc,"AbstractEList",70),k(66,70,Dh,Vp,Nw,Uhe),s.Bi=function(n,t){return aY(this,n,t)},s.Ci=function(n){return Uqe(this,n)},s.Di=function(n,t){EO(this,n,t)},s.Ei=function(n){Zx(this,n)},s.Xi=function(n){return che(this,n)},s.$b=function(){SS(this)},s.Gc=function(n){return b9(this,n)},s.Xb=function(n){return Z(this,n)},s.Yi=function(n){var t,i,r;++this.j,i=this.g==null?0:this.g.length,n>i&&(r=this.g,t=i+(i/2|0)+4,t<n&&(t=n),this.g=this.Zi(t),r!=null&&Hu(r,0,this.g,0,this.i))},s.bd=function(n){return bGe(this,n)},s.dc=function(){return this.i==0},s.Qi=function(n,t){return EY(this,n,t)},s.Zi=function(n){return ce(fr,fn,1,n,5,1)},s.Si=function(n){return this.g[n]},s.ed=function(n){return n6(this,n)},s.Ui=function(n,t){return TV(this,n,t)},s.gc=function(){return this.i},s.Nc=function(){return Mae(this)},s.Oc=function(n){return ede(this,n)},s.i=0;var k9e=S(lc,"BasicEList",66),j9e=xi(lc,"TreeIterator");k(694,66,Sne),s.Nb=function(n){Fr(this,n)},s.Ob=function(){return this.g==null&&!this.c?oae(this):this.g==null||this.i!=0&&u(this.g[this.i-1],49).Ob()},s.Pb=function(){return GB(this)},s.Qb=function(){if(!this.e)throw R(new zc("There is no valid object to remove."));this.e.Qb()},s.c=!1,S(lc,"AbstractTreeIterator",694),k(601,694,Sne,CZ),s.$i=function(n){var t;return t=u(n,57).Ch().Jc(),K(t,285)&&u(t,285).tl(new Wp),t},S(iq,"ElkGraphUtil/PropertiesSkippingTreeIterator",601),k(945,1,{},Wp),S(iq,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",945);var JN,jce,UN=S(iq,"ElkReflect",null);k(879,1,bm,D$),s.Pg=function(n){return WR(),N4n(u(n,181))},S(iq,"ElkReflect/lambda$0$Type",879);var Rg;xi(lc,"ResourceLocator"),k(1042,1,{}),S(lc,"DelegatingResourceLocator",1042),k(1043,1042,{}),S("org.eclipse.emf.common","EMFPlugin",1043);var Sce=xi(vQe,"Adapter"),KRn=xi(vQe,"Notification");k(1140,1,q2e),s._i=function(){return this.d},s.aj=function(n){},s.bj=function(n){this.d=n},s.cj=function(n){this.d==n&&(this.d=null)},s.d=null,S(k6,"AdapterImpl",1140),k(2042,70,yQe),s.Bi=function(n,t){return W1e(this,n,t)},s.Ci=function(n){var t,i,r;if(++this.j,n.dc())return!1;for(t=this.Bj(),r=n.Jc();r.Ob();)i=r.Pb(),this.oj(this.Wi(t,i)),++t;return!0},s.Di=function(n,t){zOe(this,n,t)},s.Ei=function(n){dIe(this,n)},s.mj=function(){return this.pj()},s.$b=function(){Sx(this,this.Bj(),this.Cj())},s.Gc=function(n){return this.rj(n)},s.Hc=function(n){return this.sj(n)},s.nj=function(n,t){this.yj().Rm()},s.oj=function(n){this.yj().Rm()},s.pj=function(){return this.yj()},s.qj=function(){this.yj().Rm()},s.rj=function(n){return this.yj().Rm()},s.sj=function(n){return this.yj().Rm()},s.tj=function(n){return this.yj().Rm()},s.uj=function(n){return this.yj().Rm()},s.vj=function(){return this.yj().Rm()},s.wj=function(n){return this.yj().Rm()},s.xj=function(){return this.yj().Rm()},s.zj=function(n){return this.yj().Rm()},s.Aj=function(n,t){return this.yj().Rm()},s.Bj=function(){return this.yj().Rm()},s.Cj=function(){return this.yj().Rm()},s.Dj=function(n){return this.yj().Rm()},s.Ej=function(){return this.yj().Rm()},s.Fb=function(n){return this.tj(n)},s.Xb=function(n){return this.Ti(n,this.uj(n))},s.Hb=function(){return this.vj()},s.bd=function(n){return this.wj(n)},s.dc=function(){return this.xj()},s.Qi=function(n,t){return a0e(this,n,t)},s.Si=function(n){return this.uj(n)},s.ed=function(n){return mR(this,n)},s.Kc=function(n){var t;return t=this.bd(n),t>=0?(this.ed(t),!0):!1},s.Ui=function(n,t){return this.Aj(n,this.Wi(n,t))},s.gc=function(){return this.Bj()},s.Nc=function(){return this.Cj()},s.Oc=function(n){return this.Dj(n)},s.Ib=function(){return this.Ej()},S(lc,"DelegatingEList",2042),k(2043,2042,yQe),s.Bi=function(n,t){return Gbe(this,n,t)},s.Ci=function(n){return this.Bi(this.Bj(),n)},s.Di=function(n,t){GUe(this,n,t)},s.Ei=function(n){NUe(this,n)},s.Ii=function(){return!this.Jj()},s.$b=function(){wE(this)},s.Fj=function(n,t,i,r,c){return new oDe(this,n,t,i,r,c)},s.Gj=function(n){Vt(this.gj(),n)},s.Hj=function(){return null},s.Ij=function(){return-1},s.gj=function(){return null},s.Jj=function(){return!1},s.Kj=function(n,t){return t},s.Lj=function(n,t){return t},s.Mj=function(){return!1},s.Nj=function(){return!this.xj()},s.Qi=function(n,t){var i,r;return this.Mj()?(r=this.Nj(),i=a0e(this,n,t),this.Gj(this.Fj(7,Se(t),i,n,r)),i):a0e(this,n,t)},s.ed=function(n){var t,i,r,c;return this.Mj()?(i=null,r=this.Nj(),t=this.Fj(4,c=mR(this,n),null,n,r),this.Jj()&&c?(i=this.Lj(c,i),i?(i.kj(t),i.lj()):this.Gj(t)):i?(i.kj(t),i.lj()):this.Gj(t),c):(c=mR(this,n),this.Jj()&&c&&(i=this.Lj(c,null),i&&i.lj()),c)},s.Ui=function(n,t){return QKe(this,n,t)},S(k6,"DelegatingNotifyingListImpl",2043),k(150,1,I_),s.kj=function(n){return Vde(this,n)},s.lj=function(){kV(this)},s.dj=function(){return this.d},s.Hj=function(){return null},s.Oj=function(){return null},s.ej=function(n){return-1},s.fj=function(){return zHe(this)},s.gj=function(){return null},s.hj=function(){return vbe(this)},s.ij=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.Pj=function(){return!1},s.jj=function(n){var t,i,r,c,o,l,a,b,w,v,E;switch(this.d){case 1:case 2:switch(c=n.dj(),c){case 1:case 2:if(o=n.gj(),ne(o)===ne(this.gj())&&this.ej(null)==n.ej(null))return this.g=n.fj(),n.dj()==1&&(this.d=1),!0}case 4:{switch(c=n.dj(),c){case 4:{if(o=n.gj(),ne(o)===ne(this.gj())&&this.ej(null)==n.ej(null))return w=sge(this),b=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,l=n.ij(),this.d=6,E=new Nw(2),b<=l?(lt(E,this.n),lt(E,n.hj()),this.g=B(z(yt,1),Pt,30,15,[this.o=b,l+1])):(lt(E,n.hj()),lt(E,this.n),this.g=B(z(yt,1),Pt,30,15,[this.o=l,b])),this.n=E,w||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=n.dj(),c){case 4:{if(o=n.gj(),ne(o)===ne(this.gj())&&this.ej(null)==n.ej(null)){for(w=sge(this),l=n.ij(),v=u(this.g,54),r=ce(yt,Pt,30,v.length+1,15,1),t=0;t<v.length&&(a=v[t],a<=l);)r[t++]=a,++l;for(i=u(this.n,15),i._c(t,n.hj()),r[t]=l;++t<r.length;)r[t]=v[t-1];return this.g=r,w||(this.o=-2-r[0]),!0}break}}break}}return!1},s.Ib=function(){var n,t,i,r;switch(r=new sf(Rb(this.Om)+"@"+(t=gi(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{$K(r,this.d);break}}if(TKe(this)&&(r.a+=", touch: true"),r.a+=", position: ",$K(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",Zj(r,this.gj()),r.a+=", feature: ",Zj(r,this.Hj()),r.a+=", oldValue: ",Zj(r,vbe(this)),r.a+=", newValue: ",this.d==6&&K(this.g,54)){for(i=u(this.g,54),r.a+="[",n=0;n<i.length;)r.a+=i[n],++n<i.length&&(r.a+=Ss);r.a+="]"}else Zj(r,zHe(this));return r.a+=", isTouch: ",Cd(r,TKe(this)),r.a+=", wasSet: ",Cd(r,sge(this)),r.a+=")",r.a},s.d=0,s.e=0,s.f=0,s.j=0,s.k=0,s.o=0,s.p=0,S(k6,"NotificationImpl",150),k(1154,150,I_,oDe),s.Hj=function(){return this.a.Hj()},s.ej=function(n){return this.a.Ij()},s.gj=function(){return this.a.gj()},S(k6,"DelegatingNotifyingListImpl/1",1154),k(250,66,Dh,$$,j0),s.Ec=function(n){return zFe(this,u(n,371))},s.kj=function(n){return zFe(this,n)},s.lj=function(){var n,t,i;for(n=0;n<this.i;++n)t=u(this.g[n],371),i=t.gj(),i!=null&&t.dj()!=-1&&u(i,93).th(t)},s.Zi=function(n){return ce(KRn,fn,371,n,0,1)},S(k6,"NotificationChainImpl",250),k(1477,92,_Ye),s.qh=function(){return this.e},s.sh=function(){return(this.f&1)!=0},s.f=1,S(k6,"NotifierImpl",1477),k(2040,66,Dh),s.Bi=function(n,t){return JY(this,n,t)},s.Ci=function(n){return this.Bi(this.i,n)},s.Di=function(n,t){G0e(this,n,t)},s.Ei=function(n){AY(this,n)},s.Ii=function(){return!this.Jj()},s.$b=function(){ut(this)},s.Fj=function(n,t,i,r,c){return new lDe(this,n,t,i,r,c)},s.Gj=function(n){Vt(this.gj(),n)},s.Hj=function(){return null},s.Ij=function(){return-1},s.gj=function(){return null},s.Jj=function(){return!1},s.Qj=function(){return!1},s.Kj=function(n,t){return t},s.Lj=function(n,t){return t},s.Mj=function(){return!1},s.Nj=function(){return this.i!=0},s.Qi=function(n,t){return GS(this,n,t)},s.ed=function(n){return nm(this,n)},s.Ui=function(n,t){return wZe(this,n,t)},s.Rj=function(n,t){return t},s.Sj=function(n,t){return t},s.Tj=function(n,t,i){return i},S(k6,"NotifyingListImpl",2040),k(1153,150,I_,lDe),s.Hj=function(){return this.a.Hj()},s.ej=function(n){return this.a.Ij()},s.gj=function(){return this.a.gj()},S(k6,"NotifyingListImpl/1",1153),k(946,66,Dh,FOe),s.Gc=function(n){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new cS(this),this.a=this.j),ga(this.b,n)):b9(this,n)},s.Vi=function(){return!0},s.a=0,S(lc,"AbstractEList/1",946),k(302,97,wF,A2),S(lc,"AbstractEList/BasicIndexOutOfBoundsException",302),k(42,1,xr,Bn),s.Nb=function(n){Fr(this,n)},s.Uj=function(){if(this.i.j!=this.f)throw R(new Cl)},s.Vj=function(){return Jn(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.Vj()},s.Qb=function(){YS(this)},s.e=0,s.f=0,s.g=-1,S(lc,"AbstractEList/EIterator",42),k(284,42,u1,T4,kX),s.Qb=function(){YS(this)},s.Rb=function(n){XFe(this,n)},s.Wj=function(){var n;try{return n=this.d.Xb(--this.e),this.Uj(),this.g=this.e,n}catch(t){throw t=Ki(t),K(t,97)?(this.Uj(),R(new ou)):R(t)}},s.Xj=function(n){Hqe(this,n)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.Wj()},s.Vb=function(){return this.e-1},s.Wb=function(n){this.Xj(n)},S(lc,"AbstractEList/EListIterator",284),k(353,42,xr,A4),s.Vj=function(){return PW(this)},s.Qb=function(){throw R(new bt)},S(lc,"AbstractEList/NonResolvingEIterator",353),k(389,284,u1,vx,$le),s.Rb=function(n){throw R(new bt)},s.Vj=function(){var n;try{return n=this.c.Si(this.e),this.Uj(),this.g=this.e++,n}catch(t){throw t=Ki(t),K(t,97)?(this.Uj(),R(new ou)):R(t)}},s.Wj=function(){var n;try{return n=this.c.Si(--this.e),this.Uj(),this.g=this.e,n}catch(t){throw t=Ki(t),K(t,97)?(this.Uj(),R(new ou)):R(t)}},s.Qb=function(){throw R(new bt)},s.Wb=function(n){throw R(new bt)},S(lc,"AbstractEList/NonResolvingEListIterator",389),k(2029,70,kQe),s.Bi=function(n,t){var i,r,c,o,l,a,b,w,v,E,M;if(c=t.gc(),c!=0){for(w=u(Sn(this.a,4),128),v=w==null?0:w.length,M=v+c,r=sW(this,M),E=v-n,E>0&&Hu(w,n,r,n+c,E),b=t.Jc(),l=0;l<c;++l)a=b.Pb(),i=n+l,xZ(r,i,Wk(this,a));for(f9(this,r),o=0;o<c;++o)a=r[n],this.Ji(n,a),++n;return!0}else return++this.j,!1},s.Ci=function(n){var t,i,r,c,o,l,a,b,w;if(r=n.gc(),r!=0){for(b=(i=u(Sn(this.a,4),128),i==null?0:i.length),w=b+r,t=sW(this,w),a=n.Jc(),o=b;o<w;++o)l=a.Pb(),xZ(t,o,Wk(this,l));for(f9(this,t),c=b;c<w;++c)l=t[c],this.Ji(c,l);return!0}else return++this.j,!1},s.Di=function(n,t){var i,r,c,o;r=u(Sn(this.a,4),128),c=r==null?0:r.length,i=sW(this,c+1),o=Wk(this,t),n!=c&&Hu(r,n,i,n+1,c-n),qi(i,n,o),f9(this,i),this.Ji(n,t)},s.Ei=function(n){var t,i,r;r=(i=u(Sn(this.a,4),128),i==null?0:i.length),t=sW(this,r+1),xZ(t,r,Wk(this,n)),f9(this,t),this.Ji(r,n)},s.Fi=function(){return new xLe(this)},s.Gi=function(){return new qNe(this)},s.Hi=function(n){var t,i;if(i=(t=u(Sn(this.a,4),128),t==null?0:t.length),n<0||n>i)throw R(new A2(n,i));return new jIe(this,n)},s.$b=function(){var n,t;++this.j,n=u(Sn(this.a,4),128),t=n==null?0:n.length,f9(this,null),gV(this,t,n)},s.Gc=function(n){var t,i,r,c,o;if(t=u(Sn(this.a,4),128),t!=null){if(n!=null){for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],Yt(n,i))return!0}else for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],ne(i)===ne(n))return!0}return!1},s.Xb=function(n){var t,i;if(t=u(Sn(this.a,4),128),i=t==null?0:t.length,n>=i)throw R(new A2(n,i));return t[n]},s.bd=function(n){var t,i,r;if(t=u(Sn(this.a,4),128),t!=null){if(n!=null){for(i=0,r=t.length;i<r;++i)if(Yt(n,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(ne(t[i])===ne(n))return i}return-1},s.dc=function(){return u(Sn(this.a,4),128)==null},s.Jc=function(){return new CLe(this)},s.cd=function(){return new FNe(this)},s.dd=function(n){var t,i;if(i=(t=u(Sn(this.a,4),128),t==null?0:t.length),n<0||n>i)throw R(new A2(n,i));return new kIe(this,n)},s.Qi=function(n,t){var i,r,c;if(i=QFe(this),c=i==null?0:i.length,n>=c)throw R(new ps(kne+n+vg+c));if(t>=c)throw R(new ps(jne+t+vg+c));return r=i[t],n!=t&&(n<t?Hu(i,n,i,n+1,t-n):Hu(i,t+1,i,t,n-t),qi(i,n,r),f9(this,i)),r},s.Si=function(n){return u(Sn(this.a,4),128)[n]},s.ed=function(n){return ZCn(this,n)},s.Ui=function(n,t){var i,r;return i=QFe(this),r=i[n],xZ(i,n,Wk(this,t)),f9(this,i),r},s.gc=function(){var n;return n=u(Sn(this.a,4),128),n==null?0:n.length},s.Nc=function(){var n,t,i;return n=u(Sn(this.a,4),128),i=n==null?0:n.length,t=ce(Sce,Mne,412,i,0,1),i>0&&Hu(n,0,t,0,i),t},s.Oc=function(n){var t,i,r;return t=u(Sn(this.a,4),128),r=t==null?0:t.length,r>0&&(n.length<r&&(i=lO(Ko(n).c,r),n=i),Hu(t,0,n,0,r)),n.length>r&&qi(n,r,null),n};var Vfn;S(lc,"ArrayDelegatingEList",2029),k(1029,42,xr,CLe),s.Uj=function(){if(this.b.j!=this.f||ne(u(Sn(this.b.a,4),128))!==ne(this.a))throw R(new Cl)},s.Qb=function(){YS(this),this.a=u(Sn(this.b.a,4),128)},S(lc,"ArrayDelegatingEList/EIterator",1029),k(709,284,u1,FNe,kIe),s.Uj=function(){if(this.b.j!=this.f||ne(u(Sn(this.b.a,4),128))!==ne(this.a))throw R(new Cl)},s.Xj=function(n){Hqe(this,n),this.a=u(Sn(this.b.a,4),128)},s.Qb=function(){YS(this),this.a=u(Sn(this.b.a,4),128)},S(lc,"ArrayDelegatingEList/EListIterator",709),k(1030,353,xr,xLe),s.Uj=function(){if(this.b.j!=this.f||ne(u(Sn(this.b.a,4),128))!==ne(this.a))throw R(new Cl)},S(lc,"ArrayDelegatingEList/NonResolvingEIterator",1030),k(710,389,u1,qNe,jIe),s.Uj=function(){if(this.b.j!=this.f||ne(u(Sn(this.b.a,4),128))!==ne(this.a))throw R(new Cl)},S(lc,"ArrayDelegatingEList/NonResolvingEListIterator",710),k(602,302,wF,EZ),S(lc,"BasicEList/BasicIndexOutOfBoundsException",602),k(696,66,Dh,Eoe),s._c=function(n,t){throw R(new bt)},s.Ec=function(n){throw R(new bt)},s.ad=function(n,t){throw R(new bt)},s.Fc=function(n){throw R(new bt)},s.$b=function(){throw R(new bt)},s.Yi=function(n){throw R(new bt)},s.Jc=function(){return this.Fi()},s.cd=function(){return this.Gi()},s.dd=function(n){return this.Hi(n)},s.Qi=function(n,t){throw R(new bt)},s.Ri=function(n,t){throw R(new bt)},s.ed=function(n){throw R(new bt)},s.Kc=function(n){throw R(new bt)},s.fd=function(n,t){throw R(new bt)},S(lc,"BasicEList/UnmodifiableEList",696),k(708,1,{3:1,20:1,16:1,15:1,61:1,583:1}),s._c=function(n,t){Wgn(this,n,u(t,43))},s.Ec=function(n){return qwn(this,u(n,43))},s.Ic=function(n){Yr(this,n)},s.Xb=function(n){return u(Z(this.c,n),135)},s.Qi=function(n,t){return u(this.c.Qi(n,t),43)},s.Ri=function(n,t){Ygn(this,n,u(t,43))},s.ed=function(n){return u(this.c.ed(n),43)},s.fd=function(n,t){return evn(this,n,u(t,43))},s.gd=function(n){ng(this,n)},s.Lc=function(){return new tn(this,16)},s.Mc=function(){return new nn(null,new tn(this,16))},s.ad=function(n,t){return this.c.ad(n,t)},s.Fc=function(n){return this.c.Fc(n)},s.$b=function(){this.c.$b()},s.Gc=function(n){return this.c.Gc(n)},s.Hc=function(n){return mO(this.c,n)},s.Yj=function(){var n,t,i;if(this.d==null){for(this.d=ce(k9e,G2e,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)n=u(t.Vj(),135),SB(this,n);this.e=i}},s.Fb=function(n){return y_e(this,n)},s.Hb=function(){return Whe(this.c)},s.bd=function(n){return this.c.bd(n)},s.Zj=function(){this.c=new CEe(this)},s.dc=function(){return this.f==0},s.Jc=function(){return this.c.Jc()},s.cd=function(){return this.c.cd()},s.dd=function(n){return this.c.dd(n)},s.$j=function(){return Wx(this)},s._j=function(n,t,i){return new N_e(n,t,i)},s.ak=function(){return new Ib},s.Kc=function(n){return ize(this,n)},s.gc=function(){return this.f},s.hd=function(n,t){return new N0(this.c,n,t)},s.Nc=function(){return this.c.Nc()},s.Oc=function(n){return this.c.Oc(n)},s.Ib=function(){return Z1e(this.c)},s.e=0,s.f=0,S(lc,"BasicEMap",708),k(Kf,66,Dh,CEe),s.Ji=function(n,t){x0n(this,u(t,135))},s.Mi=function(n,t,i){var r;++(r=this,u(t,135),r).a.e},s.Ni=function(n,t){O0n(this,u(t,135))},s.Oi=function(n,t,i){Twn(this,u(t,135),u(i,135))},s.Li=function(n,t){Xze(this.a)},S(lc,"BasicEMap/1",Kf),k(1025,66,Dh,Ib),s.Zi=function(n){return ce(ZRn,jQe,608,n,0,1)},S(lc,"BasicEMap/2",1025),k(1026,Ka,uo,xEe),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return TW(this.a,n)},s.Jc=function(){return this.a.f==0?(vk(),HN.a):new aTe(this.a)},s.Kc=function(n){var t;return t=this.a.f,dB(this.a,n),this.a.f!=t},s.gc=function(){return this.a.f},S(lc,"BasicEMap/3",1026),k(1027,31,cm,OEe),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return cKe(this.a,n)},s.Jc=function(){return this.a.f==0?(vk(),HN.a):new hTe(this.a)},s.gc=function(){return this.a.f},S(lc,"BasicEMap/4",1027),k(1028,Ka,uo,_Ee),s.$b=function(){this.a.c.$b()},s.Gc=function(n){var t,i,r,c,o,l,a,b,w;if(this.a.f>0&&K(n,43)&&(this.a.Yj(),b=u(n,43),a=b.jd(),c=a==null?0:gi(a),o=mle(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,372),w=t.i,l=0;l<w;++l)if(r=i[l],r.xi()==c&&r.Fb(b))return!0}return!1},s.Jc=function(){return this.a.f==0?(vk(),HN.a):new $X(this.a)},s.Kc=function(n){return ZUe(this,n)},s.gc=function(){return this.a.f},S(lc,"BasicEMap/5",1028),k(609,1,xr,$X),s.Nb=function(n){Fr(this,n)},s.Ob=function(){return this.b!=-1},s.Pb=function(){var n;if(this.f.e!=this.c)throw R(new Cl);if(this.b==-1)throw R(new ou);return this.d=this.a,this.e=this.b,MGe(this),n=u(this.f.d[this.d].g[this.e],135),this.bk(n)},s.Qb=function(){if(this.f.e!=this.c)throw R(new Cl);if(this.e==-1)throw R(new Ys);this.f.c.Kc(Z(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},s.bk=function(n){return n},s.a=0,s.b=-1,s.c=0,s.d=0,s.e=0,S(lc,"BasicEMap/BasicEMapIterator",609),k(1022,609,xr,aTe),s.bk=function(n){return n.jd()},S(lc,"BasicEMap/BasicEMapKeyIterator",1022),k(1023,609,xr,hTe),s.bk=function(n){return n.kd()},S(lc,"BasicEMap/BasicEMapValueIterator",1023),k(1021,1,Ww,NEe),s.wc=function(n){hO(this,n)},s.$b=function(){this.a.c.$b()},s._b=function(n){return qCe(this,n)},s.uc=function(n){return cKe(this.a,n)},s.vc=function(){return M5n(this.a)},s.Fb=function(n){return y_e(this.a,n)},s.xc=function(n){return ka(this.a,n)},s.Hb=function(){return Whe(this.a.c)},s.dc=function(){return this.a.f==0},s.ec=function(){return C5n(this.a)},s.yc=function(n,t){return LO(this.a,n,t)},s.Ac=function(n){return dB(this.a,n)},s.gc=function(){return this.a.f},s.Ib=function(){return Z1e(this.a.c)},s.Bc=function(){return x5n(this.a)},S(lc,"BasicEMap/DelegatingMap",1021),k(608,1,{43:1,135:1,608:1},N_e),s.Fb=function(n){var t;return K(n,43)?(t=u(n,43),(this.b!=null?Yt(this.b,t.jd()):ne(this.b)===ne(t.jd()))&&(this.c!=null?Yt(this.c,t.kd()):ne(this.c)===ne(t.kd()))):!1},s.xi=function(){return this.a},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return this.a^(this.c==null?0:gi(this.c))},s.yi=function(n){this.a=n},s.zi=function(n){throw R(new Lb)},s.ld=function(n){var t;return t=this.c,this.c=n,t},s.Ib=function(){return this.b+"->"+this.c},s.a=0;var ZRn=S(lc,"BasicEMap/EntryImpl",608);k(532,1,{},Yp),S(lc,"BasicEMap/View",532);var HN;k(766,1,{}),s.Fb=function(n){return Q0e((sn(),hc),n)},s.Hb=function(){return o1e((sn(),hc))},s.Ib=function(){return Ua((sn(),hc))},S(lc,"ECollections/BasicEmptyUnmodifiableEList",766),k(1299,1,u1,L$),s.Nb=function(n){Fr(this,n)},s.Rb=function(n){throw R(new bt)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw R(new ou)},s.Tb=function(){return 0},s.Ub=function(){throw R(new ou)},s.Vb=function(){return-1},s.Qb=function(){throw R(new bt)},s.Wb=function(n){throw R(new bt)},S(lc,"ECollections/BasicEmptyUnmodifiableEList/1",1299),k(1297,766,{20:1,16:1,15:1,61:1},xAe),s._c=function(n,t){LTe()},s.Ec=function(n){return PTe()},s.ad=function(n,t){return RTe()},s.Fc=function(n){return $Te()},s.$b=function(){zTe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){Yr(this,n)},s.Xb=function(n){return Moe((sn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Qi=function(n,t){return BTe()},s.Ri=function(n,t){FTe()},s.ed=function(n){return qTe()},s.Kc=function(n){return GTe()},s.fd=function(n,t){return JTe()},s.gc=function(){return 0},s.gd=function(n){ng(this,n)},s.Lc=function(){return new tn(this,16)},s.Mc=function(){return new nn(null,new tn(this,16))},s.hd=function(n,t){return sn(),new N0(hc,n,t)},s.Nc=function(){return kfe((sn(),hc))},s.Oc=function(n){return sn(),ZS(hc,n)},S(lc,"ECollections/EmptyUnmodifiableEList",1297),k(1298,766,{20:1,16:1,15:1,61:1,583:1},OAe),s._c=function(n,t){LTe()},s.Ec=function(n){return PTe()},s.ad=function(n,t){return RTe()},s.Fc=function(n){return $Te()},s.$b=function(){zTe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){Yr(this,n)},s.Xb=function(n){return Moe((sn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Qi=function(n,t){return BTe()},s.Ri=function(n,t){FTe()},s.ed=function(n){return qTe()},s.Kc=function(n){return GTe()},s.fd=function(n,t){return JTe()},s.gc=function(){return 0},s.gd=function(n){ng(this,n)},s.Lc=function(){return new tn(this,16)},s.Mc=function(){return new nn(null,new tn(this,16))},s.hd=function(n,t){return sn(),new N0(hc,n,t)},s.Nc=function(){return kfe((sn(),hc))},s.Oc=function(n){return sn(),ZS(hc,n)},s.$j=function(){return sn(),sn(),d1},S(lc,"ECollections/EmptyUnmodifiableEMap",1298);var S9e=xi(lc,"Enumerator"),IJ;k(288,1,{288:1},DY),s.Fb=function(n){var t;return this===n?!0:K(n,288)?(t=u(n,288),this.f==t.f&&v3n(this.i,t.i)&&sX(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&sX(this.d,t.d)&&sX(this.g,t.g)&&sX(this.e,t.e)&&vSn(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return RKe(this)},s.f=0;var Wfn=0,Yfn=0,Qfn=0,ean=0,E9e=0,A9e=0,T9e=0,M9e=0,C9e=0,nan,iT=0,rT=0,tan=0,ian=0,DJ,x9e;S(lc,"URI",288),k(1087,45,mv,EAe),s.yc=function(n,t){return u(Fc(this,pt(n),u(t,288)),288)},S(lc,"URI/URICache",1087),k(490,66,Dh,VM,TR),s.Pi=function(){return!0},S(lc,"UniqueEList",490),k(575,63,Y1,kz),S(lc,"WrappedException",575);var $t=xi(Fl,AQe),Jm=xi(Fl,TQe),Vs=xi(Fl,MQe),Um=xi(Fl,CQe),Oa=xi(Fl,xQe),Ef=xi(Fl,"EClass"),Ece=xi(Fl,"EDataType"),ran;k(1195,45,mv,AAe),s.xc=function(n){return Er(n)?ts(this,n):fu(Bc(this.f,n))},S(Fl,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1195);var $J=xi(Fl,"EEnum"),od=xi(Fl,OQe),Mc=xi(Fl,_Qe),Af=xi(Fl,NQe),Tf,Ep=xi(Fl,IQe),Hm=xi(Fl,DQe);k(1020,1,{},P$),s.Ib=function(){return"NIL"},S(Fl,"EStructuralFeature/Internal/DynamicValueHolder/1",1020);var can;k(1019,45,mv,TAe),s.xc=function(n){return Er(n)?ts(this,n):fu(Bc(this.f,n))},S(Fl,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1019);var Ls=xi(Fl,$Qe),K6=xi(Fl,"EValidator/PatternMatcher"),O9e,_9e,pn,o0,Km,mb,uan,san,oan,vb,l0,yb,Ap,ch,lan,fan,Mf,f0,aan,a0,Zm,ny,bc,han,dan,Tp,LJ=xi(Si,"FeatureMap/Entry");k(531,1,{74:1},FP),s.Ik=function(){return this.a},s.kd=function(){return this.b},S(vn,"BasicEObjectImpl/1",531),k(1018,1,Cne,GCe),s.Ck=function(n){return hV(this.a,this.b,n)},s.Nj=function(){return ADe(this.a,this.b)},s.Wb=function(n){uae(this.a,this.b,n)},s.Dk=function(){hvn(this.a,this.b)},S(vn,"BasicEObjectImpl/4",1018),k(2030,1,{113:1}),s.Jk=function(n){this.e=n==0?ban:ce(fr,fn,1,n,5,1)},s.hi=function(n){return this.e[n]},s.ii=function(n,t){this.e[n]=t},s.ji=function(n){this.e[n]=null},s.Kk=function(){return this.c},s.Lk=function(){throw R(new bt)},s.Mk=function(){throw R(new bt)},s.Nk=function(){return this.d},s.Ok=function(){return this.e!=null},s.Pk=function(n){this.c=n},s.Qk=function(n){throw R(new bt)},s.Rk=function(n){throw R(new bt)},s.Sk=function(n){this.d=n};var ban;S(vn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2030),k(192,2030,{113:1},cf),s.Lk=function(){return this.a},s.Mk=function(){return this.b},s.Qk=function(n){this.a=n},s.Rk=function(n){this.b=n},S(vn,"BasicEObjectImpl/EPropertiesHolderImpl",192),k(500,98,$Ye,Gy),s.qh=function(){return this.f},s.vh=function(){return this.k},s.xh=function(n,t){this.g=n,this.i=t},s.zh=function(){return(this.j&2)==0?this.ei():this.Wh().Kk()},s.Bh=function(){return this.i},s.sh=function(){return(this.j&1)!=0},s.Lh=function(){return this.g},s.Rh=function(){return(this.j&4)!=0},s.Wh=function(){return!this.k&&(this.k=new cf),this.k},s.$h=function(n){this.Wh().Pk(n),n?this.j|=2:this.j&=-3},s.ai=function(n){this.Wh().Rk(n),n?this.j|=4:this.j&=-5},s.ei=function(){return(O0(),pn).S},s.i=0,s.j=1,S(vn,"EObjectImpl",500),k(781,500,{109:1,93:1,92:1,57:1,113:1,52:1,98:1},ife),s.hi=function(n){return this.e[n]},s.ii=function(n,t){this.e[n]=t},s.ji=function(n){this.e[n]=null},s.zh=function(){return this.d},s.Eh=function(n){return Ai(this.d,n)},s.Gh=function(){return this.d},s.Kh=function(){return this.e!=null},s.Wh=function(){return!this.k&&(this.k=new WM),this.k},s.$h=function(n){this.d=n},s.di=function(){var n;return this.e==null&&(n=Kn(this.d),this.e=n==0?gan:ce(fr,fn,1,n,5,1)),this},s.fi=function(){return 0};var gan;S(vn,"DynamicEObjectImpl",781),k(1475,781,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1},uNe),s.Fb=function(n){return this===n},s.Hb=function(){return yw(this)},s.$h=function(n){this.d=n,this.b=KO(n,"key"),this.c=KO(n,zE)},s.xi=function(){var n;return this.a==-1&&(n=AV(this,this.b),this.a=n==null?0:gi(n)),this.a},s.jd=function(){return AV(this,this.b)},s.kd=function(){return AV(this,this.c)},s.yi=function(n){this.a=n},s.zi=function(n){uae(this,this.b,n)},s.ld=function(n){var t;return t=AV(this,this.c),uae(this,this.c,n),t},s.a=0,S(vn,"DynamicEObjectImpl/BasicEMapEntry",1475),k(1476,1,{113:1},WM),s.Jk=function(n){throw R(new bt)},s.hi=function(n){throw R(new bt)},s.ii=function(n,t){throw R(new bt)},s.ji=function(n){throw R(new bt)},s.Kk=function(){throw R(new bt)},s.Lk=function(){return this.a},s.Mk=function(){return this.b},s.Nk=function(){return this.c},s.Ok=function(){throw R(new bt)},s.Pk=function(n){throw R(new bt)},s.Qk=function(n){this.a=n},s.Rk=function(n){this.b=n},s.Sk=function(n){this.c=n},S(vn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1476),k(503,157,{109:1,93:1,92:1,584:1,154:1,57:1,113:1,52:1,98:1,503:1,157:1,117:1,118:1},z5),s.wh=function(n){return Ide(this,n)},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Jo((cn(),bc),Tu,this)),this.b):(!this.b&&(this.b=new Jo((cn(),bc),Tu,this)),Wx(this.b));case 3:return CDe(this);case 4:return!this.a&&(this.a=new nr(pb,this,4)),this.a;case 5:return!this.c&&(this.c=new F3(pb,this,5)),this.c}return Il(this,n-Kn((cn(),o0)),ln((r=u(Sn(this,16),29),r||o0),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?Ide(this,i):this.Cb.Ph(this,-1-c,null,i))),mfe(this,u(n,154),i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),o0)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),o0)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 2:return!this.b&&(this.b=new Jo((cn(),bc),Tu,this)),sR(this.b,n,i);case 3:return mfe(this,null,i);case 4:return!this.a&&(this.a=new nr(pb,this,4)),oc(this.a,n,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),o0)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),o0)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!CDe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Nl(this,n-Kn((cn(),o0)),ln((t=u(Sn(this,16),29),t||o0),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:r3n(this,pt(t));return;case 2:!this.b&&(this.b=new Jo((cn(),bc),Tu,this)),Gz(this.b,t);return;case 3:MHe(this,u(t,154));return;case 4:!this.a&&(this.a=new nr(pb,this,4)),ut(this.a),!this.a&&(this.a=new nr(pb,this,4)),zi(this.a,u(t,16));return;case 5:!this.c&&(this.c=new F3(pb,this,5)),ut(this.c),!this.c&&(this.c=new F3(pb,this,5)),zi(this.c,u(t,16));return}Pl(this,n-Kn((cn(),o0)),ln((i=u(Sn(this,16),29),i||o0),n),t)},s.ei=function(){return cn(),o0},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:$he(this,null);return;case 2:!this.b&&(this.b=new Jo((cn(),bc),Tu,this)),this.b.c.$b();return;case 3:MHe(this,null);return;case 4:!this.a&&(this.a=new nr(pb,this,4)),ut(this.a);return;case 5:!this.c&&(this.c=new F3(pb,this,5)),ut(this.c);return}Ll(this,n-Kn((cn(),o0)),ln((t=u(Sn(this,16),29),t||o0),n))},s.Ib=function(){return mFe(this)},s.d=null,S(vn,"EAnnotationImpl",503),k(140,708,J2e,io),s.Di=function(n,t){Ign(this,n,u(t,43))},s.Tk=function(n,t){return Dpn(this,u(n,43),t)},s.Xi=function(n){return u(u(this.c,71).Xi(n),135)},s.Fi=function(){return u(this.c,71).Fi()},s.Gi=function(){return u(this.c,71).Gi()},s.Hi=function(n){return u(this.c,71).Hi(n)},s.Uk=function(n,t){return sR(this,n,t)},s.Ck=function(n){return u(this.c,76).Ck(n)},s.Zj=function(){},s.Nj=function(){return u(this.c,76).Nj()},s._j=function(n,t,i){var r;return r=u(ol(this.b).si().oi(this.b),135),r.yi(n),r.zi(t),r.ld(i),r},s.ak=function(){return new Xue(this)},s.Wb=function(n){Gz(this,n)},s.Dk=function(){u(this.c,76).Dk()},S(Si,"EcoreEMap",140),k(167,140,J2e,Jo),s.Yj=function(){var n,t,i,r,c,o;if(this.d==null){for(o=ce(k9e,G2e,66,2*this.f+1,0,1),i=this.c.Jc();i.e!=i.i.gc();)t=u(i.Vj(),135),r=t.xi(),c=(r&Wt)%o.length,n=o[c],!n&&(n=o[c]=new Xue(this)),n.Ec(t);this.d=o}},S(vn,"EAnnotationImpl/1",167),k(291,436,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,467:1,52:1,98:1,157:1,291:1,117:1,118:1}),s.Hh=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),!!this.Gk();case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q}return Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 9:return EX(this,i)}return c=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),c.tk().xk(this,Os(this),t-Kn(this.ei()),n,i)},s.Sh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Gk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0)}return Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Zh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:this.qi(pt(t));return;case 2:Gd(this,Oe(xe(t)));return;case 3:Jd(this,Oe(xe(t)));return;case 4:zd(this,u(t,17).a);return;case 5:this.Wk(u(t,17).a);return;case 8:ug(this,u(t,141));return;case 9:r=Ja(this,u(t,87),null),r&&r.lj();return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s.ei=function(){return cn(),dan},s.gi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:this.qi(null);return;case 2:Gd(this,!0);return;case 3:Jd(this,!0);return;case 4:zd(this,0);return;case 5:this.Wk(1);return;case 8:ug(this,null);return;case 9:i=Ja(this,null,null),i&&i.lj();return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.li=function(){bf(this),this.Bb|=1},s.Ek=function(){return bf(this)},s.Fk=function(){return this.t},s.Gk=function(){var n;return n=this.t,n>1||n==-1},s.Pi=function(){return(this.Bb&512)!=0},s.Vk=function(n,t){return M1e(this,n,t)},s.Wk=function(n){z2(this,n)},s.Ib=function(){return J0e(this)},s.s=0,s.t=1,S(vn,"ETypedElementImpl",291),k(448,291,{109:1,93:1,92:1,154:1,197:1,57:1,178:1,69:1,113:1,467:1,52:1,98:1,157:1,448:1,291:1,117:1,118:1,679:1}),s.wh=function(n){return sGe(this,n)},s.Hh=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),!!this.Gk();case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q;case 10:return Mn(),(this.Bb&Kf)!=0;case 11:return Mn(),(this.Bb&Z0)!=0;case 12:return Mn(),(this.Bb&sm)!=0;case 13:return this.j;case 14:return y9(this);case 15:return Mn(),(this.Bb&oo)!=0;case 16:return Mn(),(this.Bb&Mh)!=0;case 17:return I2(this)}return Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?sGe(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,17,i)}return o=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),o.tk().wk(this,Os(this),t-Kn(this.ei()),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 9:return EX(this,i);case 17:return dl(this,null,17,i)}return c=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),c.tk().xk(this,Os(this),t-Kn(this.ei()),n,i)},s.Sh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Gk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0);case 10:return(this.Bb&Kf)==0;case 11:return(this.Bb&Z0)!=0;case 12:return(this.Bb&sm)!=0;case 13:return this.j!=null;case 14:return y9(this)!=null;case 15:return(this.Bb&oo)!=0;case 16:return(this.Bb&Mh)!=0;case 17:return!!I2(this)}return Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Zh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:VX(this,pt(t));return;case 2:Gd(this,Oe(xe(t)));return;case 3:Jd(this,Oe(xe(t)));return;case 4:zd(this,u(t,17).a);return;case 5:this.Wk(u(t,17).a);return;case 8:ug(this,u(t,141));return;case 9:r=Ja(this,u(t,87),null),r&&r.lj();return;case 10:r9(this,Oe(xe(t)));return;case 11:u9(this,Oe(xe(t)));return;case 12:c9(this,Oe(xe(t)));return;case 13:Soe(this,pt(t));return;case 15:i9(this,Oe(xe(t)));return;case 16:s9(this,Oe(xe(t)));return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s.ei=function(){return cn(),han},s.gi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,88)&&Y2(xo(u(this.Cb,88)),4),ks(this,null);return;case 2:Gd(this,!0);return;case 3:Jd(this,!0);return;case 4:zd(this,0);return;case 5:this.Wk(1);return;case 8:ug(this,null);return;case 9:i=Ja(this,null,null),i&&i.lj();return;case 10:r9(this,!0);return;case 11:u9(this,!1);return;case 12:c9(this,!1);return;case 13:this.i=null,Pz(this,null);return;case 15:i9(this,!1);return;case 16:s9(this,!1);return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.li=function(){Ok(qc((co(),Jr),this)),bf(this),this.Bb|=1},s.mk=function(){return this.f},s.fk=function(){return y9(this)},s.nk=function(){return I2(this)},s.rk=function(){return null},s.Xk=function(){return this.k},s.Ij=function(){return this.n},s.sk=function(){return OB(this)},s.tk=function(){var n,t,i,r,c,o,l,a,b;return this.p||(i=I2(this),(i.i==null&&Th(i),i.i).length,r=this.rk(),r&&Kn(I2(r)),c=bf(this),l=c.hk(),n=l?(l.i&1)!=0?l==zo?Fi:l==yt?Or:l==Vm?u8:l==_r?Wi:l==Cp?up:l==cy?sp:l==fo?j6:VE:l:null,t=y9(this),a=c.fk(),J7n(this),(this.Bb&Mh)!=0&&((o=Bde((co(),Jr),i))&&o!=this||(o=z4(qc(Jr,this))))?this.p=new UCe(this,o):this.Gk()?this.Zk()?r?(this.Bb&oo)!=0?n?this.$k()?this.p=new Zb(47,n,this,r):this.p=new Zb(5,n,this,r):this.$k()?this.p=new eg(46,this,r):this.p=new eg(4,this,r):n?this.$k()?this.p=new Zb(49,n,this,r):this.p=new Zb(7,n,this,r):this.$k()?this.p=new eg(48,this,r):this.p=new eg(6,this,r):(this.Bb&oo)!=0?n?n==jg?this.p=new Id(50,Zfn,this):this.$k()?this.p=new Id(43,n,this):this.p=new Id(1,n,this):this.$k()?this.p=new $d(42,this):this.p=new $d(0,this):n?n==jg?this.p=new Id(41,Zfn,this):this.$k()?this.p=new Id(45,n,this):this.p=new Id(3,n,this):this.$k()?this.p=new $d(44,this):this.p=new $d(2,this):K(c,155)?n==LJ?this.p=new $d(40,this):(this.Bb&512)!=0?(this.Bb&oo)!=0?n?this.p=new Id(9,n,this):this.p=new $d(8,this):n?this.p=new Id(11,n,this):this.p=new $d(10,this):(this.Bb&oo)!=0?n?this.p=new Id(13,n,this):this.p=new $d(12,this):n?this.p=new Id(15,n,this):this.p=new $d(14,this):r?(b=r.t,b>1||b==-1?this.$k()?(this.Bb&oo)!=0?n?this.p=new Zb(25,n,this,r):this.p=new eg(24,this,r):n?this.p=new Zb(27,n,this,r):this.p=new eg(26,this,r):(this.Bb&oo)!=0?n?this.p=new Zb(29,n,this,r):this.p=new eg(28,this,r):n?this.p=new Zb(31,n,this,r):this.p=new eg(30,this,r):this.$k()?(this.Bb&oo)!=0?n?this.p=new Zb(33,n,this,r):this.p=new eg(32,this,r):n?this.p=new Zb(35,n,this,r):this.p=new eg(34,this,r):(this.Bb&oo)!=0?n?this.p=new Zb(37,n,this,r):this.p=new eg(36,this,r):n?this.p=new Zb(39,n,this,r):this.p=new eg(38,this,r)):this.$k()?(this.Bb&oo)!=0?n?this.p=new Id(17,n,this):this.p=new $d(16,this):n?this.p=new Id(19,n,this):this.p=new $d(18,this):(this.Bb&oo)!=0?n?this.p=new Id(21,n,this):this.p=new $d(20,this):n?this.p=new Id(23,n,this):this.p=new $d(22,this):this.Yk()?this.$k()?this.p=new D_e(u(c,29),this,r):this.p=new cae(u(c,29),this,r):K(c,155)?n==LJ?this.p=new $d(40,this):(this.Bb&oo)!=0?n?this.p=new TNe(t,a,this,(MW(),l==yt?R9e:l==zo?I9e:l==Cp?z9e:l==Vm?P9e:l==_r?L9e:l==cy?B9e:l==fo?D9e:l==Xl?$9e:Mce)):this.p=new GIe(u(c,155),t,a,this):n?this.p=new ANe(t,a,this,(MW(),l==yt?R9e:l==zo?I9e:l==Cp?z9e:l==Vm?P9e:l==_r?L9e:l==cy?B9e:l==fo?D9e:l==Xl?$9e:Mce)):this.p=new qIe(u(c,155),t,a,this):this.Zk()?r?(this.Bb&oo)!=0?this.$k()?this.p=new L_e(u(c,29),this,r):this.p=new Hle(u(c,29),this,r):this.$k()?this.p=new $_e(u(c,29),this,r):this.p=new nX(u(c,29),this,r):(this.Bb&oo)!=0?this.$k()?this.p=new OOe(u(c,29),this):this.p=new ole(u(c,29),this):this.$k()?this.p=new xOe(u(c,29),this):this.p=new BZ(u(c,29),this):this.$k()?r?(this.Bb&oo)!=0?this.p=new P_e(u(c,29),this,r):this.p=new Ule(u(c,29),this,r):(this.Bb&oo)!=0?this.p=new _Oe(u(c,29),this):this.p=new lle(u(c,29),this):r?(this.Bb&oo)!=0?this.p=new R_e(u(c,29),this,r):this.p=new Kle(u(c,29),this,r):(this.Bb&oo)!=0?this.p=new NOe(u(c,29),this):this.p=new ER(u(c,29),this)),this.p},s.ok=function(){return(this.Bb&Kf)!=0},s.Yk=function(){return!1},s.Zk=function(){return!1},s.pk=function(){return(this.Bb&Mh)!=0},s.uk=function(){return MV(this)},s.$k=function(){return!1},s.qk=function(){return(this.Bb&oo)!=0},s._k=function(n){this.k=n},s.qi=function(n){VX(this,n)},s.Ib=function(){return eF(this)},s.e=!1,s.n=0,S(vn,"EStructuralFeatureImpl",448),k(332,448,{109:1,93:1,92:1,35:1,154:1,197:1,57:1,178:1,69:1,113:1,467:1,52:1,98:1,332:1,157:1,448:1,291:1,117:1,118:1,679:1},vK),s.Hh=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),!!R0e(this);case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q;case 10:return Mn(),(this.Bb&Kf)!=0;case 11:return Mn(),(this.Bb&Z0)!=0;case 12:return Mn(),(this.Bb&sm)!=0;case 13:return this.j;case 14:return y9(this);case 15:return Mn(),(this.Bb&oo)!=0;case 16:return Mn(),(this.Bb&Mh)!=0;case 17:return I2(this);case 18:return Mn(),(this.Bb&Nu)!=0;case 19:return t?VV(this):FLe(this)}return Il(this,n-Kn((cn(),Km)),ln((r=u(Sn(this,16),29),r||Km),n),t,i)},s.Sh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return R0e(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0);case 10:return(this.Bb&Kf)==0;case 11:return(this.Bb&Z0)!=0;case 12:return(this.Bb&sm)!=0;case 13:return this.j!=null;case 14:return y9(this)!=null;case 15:return(this.Bb&oo)!=0;case 16:return(this.Bb&Mh)!=0;case 17:return!!I2(this);case 18:return(this.Bb&Nu)!=0;case 19:return!!FLe(this)}return Nl(this,n-Kn((cn(),Km)),ln((t=u(Sn(this,16),29),t||Km),n))},s.Zh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:VX(this,pt(t));return;case 2:Gd(this,Oe(xe(t)));return;case 3:Jd(this,Oe(xe(t)));return;case 4:zd(this,u(t,17).a);return;case 5:pTe(this,u(t,17).a);return;case 8:ug(this,u(t,141));return;case 9:r=Ja(this,u(t,87),null),r&&r.lj();return;case 10:r9(this,Oe(xe(t)));return;case 11:u9(this,Oe(xe(t)));return;case 12:c9(this,Oe(xe(t)));return;case 13:Soe(this,pt(t));return;case 15:i9(this,Oe(xe(t)));return;case 16:s9(this,Oe(xe(t)));return;case 18:vW(this,Oe(xe(t)));return}Pl(this,n-Kn((cn(),Km)),ln((i=u(Sn(this,16),29),i||Km),n),t)},s.ei=function(){return cn(),Km},s.gi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,88)&&Y2(xo(u(this.Cb,88)),4),ks(this,null);return;case 2:Gd(this,!0);return;case 3:Jd(this,!0);return;case 4:zd(this,0);return;case 5:this.b=0,z2(this,1);return;case 8:ug(this,null);return;case 9:i=Ja(this,null,null),i&&i.lj();return;case 10:r9(this,!0);return;case 11:u9(this,!1);return;case 12:c9(this,!1);return;case 13:this.i=null,Pz(this,null);return;case 15:i9(this,!1);return;case 16:s9(this,!1);return;case 18:vW(this,!1);return}Ll(this,n-Kn((cn(),Km)),ln((t=u(Sn(this,16),29),t||Km),n))},s.li=function(){VV(this),Ok(qc((co(),Jr),this)),bf(this),this.Bb|=1},s.Gk=function(){return R0e(this)},s.Vk=function(n,t){return this.b=0,this.a=null,M1e(this,n,t)},s.Wk=function(n){pTe(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?eF(this):(n=new sf(eF(this)),n.a+=" (iD: ",Cd(n,(this.Bb&Nu)!=0),n.a+=")",n.a)},s.b=0,S(vn,"EAttributeImpl",332),k(358,436,{109:1,93:1,92:1,141:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,157:1,117:1,118:1,678:1}),s.al=function(n){return n.zh()==this},s.wh=function(n){return QW(this,n)},s.xh=function(n,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=n},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Gw(this);case 4:return this.fk();case 5:return this.F;case 6:return t?ol(this):Ik(this);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),this.A}return Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?QW(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,6,i)}return o=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),o.tk().wk(this,Os(this),t-Kn(this.ei()),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 6:return dl(this,null,6,i);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),oc(this.A,n,i)}return c=u(ln((r=u(Sn(this,16),29),r||this.ei()),t),69),c.tk().xk(this,Os(this),t-Kn(this.ei()),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Gw(this);case 4:return this.fk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Ik(this);case 7:return!!this.A&&this.A.i!=0}return Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:YR(this,pt(t));return;case 2:MZ(this,pt(t));return;case 5:M9(this,pt(t));return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A),!this.A&&(this.A=new Qs(Ls,this,7)),zi(this.A,u(t,16));return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s.ei=function(){return cn(),uan},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,184)&&(u(this.Cb,184).tb=null),ks(this,null);return;case 2:Qk(this,null),qk(this,this.D);return;case 5:M9(this,null);return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A);return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.ek=function(){var n;return this.G==-1&&(this.G=(n=ol(this),n?Hd(n.ri(),this):-1)),this.G},s.fk=function(){return null},s.gk=function(){return ol(this)},s.bl=function(){return this.v},s.hk=function(){return Gw(this)},s.ik=function(){return this.D!=null?this.D:this.B},s.jk=function(){return this.F},s.ck=function(n){return GY(this,n)},s.cl=function(n){this.v=n},s.dl=function(n){Cze(this,n)},s.el=function(n){this.C=n},s.qi=function(n){YR(this,n)},s.Ib=function(){return lB(this)},s.C=null,s.D=null,s.G=-1,S(vn,"EClassifierImpl",358),k(88,358,{109:1,93:1,92:1,29:1,141:1,154:1,197:1,57:1,113:1,52:1,98:1,88:1,358:1,157:1,468:1,117:1,118:1,678:1},sj),s.al=function(n){return vpn(this,n.zh())},s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Gw(this);case 4:return null;case 5:return this.F;case 6:return t?ol(this):Ik(this);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),this.A;case 8:return Mn(),(this.Bb&256)!=0;case 9:return Mn(),(this.Bb&512)!=0;case 10:return Vc(this);case 11:return!this.q&&(this.q=new he(Af,this,11,10)),this.q;case 12:return bv(this);case 13:return dE(this);case 14:return dE(this),this.r;case 15:return bv(this),this.k;case 16:return M0e(this);case 17:return KY(this);case 18:return Th(this);case 19:return UB(this);case 20:return bv(this),this.o;case 21:return!this.s&&(this.s=new he(Vs,this,21,17)),this.s;case 22:return Ju(this);case 23:return IY(this)}return Il(this,n-Kn((cn(),mb)),ln((r=u(Sn(this,16),29),r||mb),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?QW(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,6,i);case 11:return!this.q&&(this.q=new he(Af,this,11,10)),js(this.q,n,i);case 21:return!this.s&&(this.s=new he(Vs,this,21,17)),js(this.s,n,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),mb)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),mb)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 6:return dl(this,null,6,i);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),oc(this.A,n,i);case 11:return!this.q&&(this.q=new he(Af,this,11,10)),oc(this.q,n,i);case 21:return!this.s&&(this.s=new he(Vs,this,21,17)),oc(this.s,n,i);case 22:return oc(Ju(this),n,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),mb)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),mb)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Gw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Ik(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Ju(this.u.a).i!=0&&!(this.n&&qW(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return bv(this).i!=0;case 13:return dE(this).i!=0;case 14:return dE(this),this.r.i!=0;case 15:return bv(this),this.k.i!=0;case 16:return M0e(this).i!=0;case 17:return KY(this).i!=0;case 18:return Th(this).i!=0;case 19:return UB(this).i!=0;case 20:return bv(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&qW(this.n);case 23:return IY(this).i!=0}return Nl(this,n-Kn((cn(),mb)),ln((t=u(Sn(this,16),29),t||mb),n))},s.Vh=function(n){var t;return t=this.i==null||this.q&&this.q.i!=0?null:KO(this,n),t||gge(this,n)},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:YR(this,pt(t));return;case 2:MZ(this,pt(t));return;case 5:M9(this,pt(t));return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A),!this.A&&(this.A=new Qs(Ls,this,7)),zi(this.A,u(t,16));return;case 8:x1e(this,Oe(xe(t)));return;case 9:O1e(this,Oe(xe(t)));return;case 10:wE(Vc(this)),zi(Vc(this),u(t,16));return;case 11:!this.q&&(this.q=new he(Af,this,11,10)),ut(this.q),!this.q&&(this.q=new he(Af,this,11,10)),zi(this.q,u(t,16));return;case 21:!this.s&&(this.s=new he(Vs,this,21,17)),ut(this.s),!this.s&&(this.s=new he(Vs,this,21,17)),zi(this.s,u(t,16));return;case 22:ut(Ju(this)),zi(Ju(this),u(t,16));return}Pl(this,n-Kn((cn(),mb)),ln((i=u(Sn(this,16),29),i||mb),n),t)},s.ei=function(){return cn(),mb},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,184)&&(u(this.Cb,184).tb=null),ks(this,null);return;case 2:Qk(this,null),qk(this,this.D);return;case 5:M9(this,null);return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A);return;case 8:x1e(this,!1);return;case 9:O1e(this,!1);return;case 10:this.u&&wE(this.u);return;case 11:!this.q&&(this.q=new he(Af,this,11,10)),ut(this.q);return;case 21:!this.s&&(this.s=new he(Vs,this,21,17)),ut(this.s);return;case 22:this.n&&ut(this.n);return}Ll(this,n-Kn((cn(),mb)),ln((t=u(Sn(this,16),29),t||mb),n))},s.li=function(){var n,t;if(bv(this),dE(this),M0e(this),KY(this),Th(this),UB(this),IY(this),SS(Fmn(xo(this))),this.s)for(n=0,t=this.s.i;n<t;++n)kx(Z(this.s,n));if(this.q)for(n=0,t=this.q.i;n<t;++n)kx(Z(this.q,n));qd((co(),Jr),this).ve(),this.Bb|=1},s.Ib=function(){return Kde(this)},s.k=null,s.r=null;var cT,wan,Ace;S(vn,"EClassImpl",88),k(2041,2040,RQe),s.Bi=function(n,t){return JY(this,n,t)},s.Ci=function(n){return JY(this,this.i,n)},s.Di=function(n,t){G0e(this,n,t)},s.Ei=function(n){AY(this,n)},s.Tk=function(n,t){return js(this,n,t)},s.Xi=function(n){return che(this,n)},s.Uk=function(n,t){return oc(this,n,t)},s.Ui=function(n,t){return wZe(this,n,t)},s.Fi=function(){return new A4(this)},s.Gi=function(){return new vx(this)},s.Hi=function(n){return fO(this,n)},S(Si,"NotifyingInternalEListImpl",2041),k(620,2041,ru),s.Gc=function(n){return $Ze(this,n)},s.Fj=function(n,t,i,r,c){return pS(this,n,t,i,r,c)},s.Gj=function(n){ik(this,n)},s.Ck=function(n){return this},s.Ik=function(){return ln(this.e.zh(),this.Ij())},s.Hj=function(){return this.Ik()},s.Ij=function(){return Ai(this.e.zh(),this.Ik())},s.fl=function(){return u(this.Ik().Ek(),29).hk()},s.gl=function(){return mc(u(this.Ik(),19)).n},s.gj=function(){return this.e},s.hl=function(){return!0},s.il=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!1},s.bd=function(n){return Hd(this,n)},s.Kj=function(n,t){var i;return i=u(n,52),this.jl()?this.hl()?i.Nh(this.e,this.gl(),this.fl(),t):i.Nh(this.e,Ai(i.zh(),mc(u(this.Ik(),19))),null,t):i.Nh(this.e,-1-this.Ij(),null,t)},s.Lj=function(n,t){var i;return i=u(n,52),this.jl()?this.hl()?i.Ph(this.e,this.gl(),this.fl(),t):i.Ph(this.e,Ai(i.zh(),mc(u(this.Ik(),19))),null,t):i.Ph(this.e,-1-this.Ij(),null,t)},s.Zk=function(){return!1},s.ll=function(){return!0},s.ck=function(n){return Z$e(this.d,n)},s.Mj=function(){return qo(this.e)},s.Nj=function(){return this.i!=0},s.Zi=function(n){return lO(this.d,n)},s.Ti=function(n,t){return this.ll()&&this.kl()?u6(this,n,u(t,57)):t},s.ml=function(n){return n.Rh()?B0(this.e,u(n,52)):n},s.Wb=function(n){zxe(this,n)},s.Nc=function(){return CPe(this)},s.Oc=function(n){var t;if(this.kl())for(t=this.i-1;t>=0;--t)Z(this,t);return ede(this,n)},s.Dk=function(){ut(this)},s.Wi=function(n,t){return YRe(this,n,t)},S(Si,"EcoreEList",620),k(489,620,ru,Nx),s.Ii=function(){return!1},s.Ij=function(){return this.c},s.Jj=function(){return!1},s.ll=function(){return!0},s.Pi=function(){return!0},s.Ti=function(n,t){return t},s.Vi=function(){return!1},s.c=0,S(Si,"EObjectEList",489),k(81,489,ru,nr),s.Jj=function(){return!0},s.jl=function(){return!1},s.Zk=function(){return!0},S(Si,"EObjectContainmentEList",81),k(541,81,ru,YP),s.Ki=function(){this.b=!0},s.Nj=function(){return this.b},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.b,this.b=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.b=!1},s.b=!1,S(Si,"EObjectContainmentEList/Unsettable",541),k(1127,541,ru,MNe),s.Qi=function(n,t){var i,r;return i=u(GS(this,n,t),87),qo(this.e)&&ik(this,new Yx(this.a,7,(cn(),san),Se(t),(r=i.c,K(r,88)?u(r,29):Mf),n)),i},s.Rj=function(n,t){return Ejn(this,u(n,87),t)},s.Sj=function(n,t){return Sjn(this,u(n,87),t)},s.Tj=function(n,t,i){return jAn(this,u(n,87),u(t,87),i)},s.Fj=function(n,t,i,r,c){switch(n){case 3:return pS(this,n,t,i,r,this.i>1);case 5:return pS(this,n,t,i,r,this.i-u(i,15).gc()>0);default:return new G1(this.e,n,this.c,t,i,r,!0)}},s.Qj=function(){return!0},s.Nj=function(){return qW(this)},s.Dk=function(){ut(this)},S(vn,"EClassImpl/1",1127),k(1141,1140,q2e),s.aj=function(n){var t,i,r,c,o,l,a;if(i=n.dj(),i!=8){if(r=uSn(n),r==0)switch(i){case 1:case 9:{a=n.hj(),a!=null&&(t=xo(u(a,468)),!t.c&&(t.c=new aa),jz(t.c,n.gj())),l=n.fj(),l!=null&&(c=u(l,468),(c.Bb&1)==0&&(t=xo(c),!t.c&&(t.c=new aa),lt(t.c,u(n.gj(),29))));break}case 3:{l=n.fj(),l!=null&&(c=u(l,468),(c.Bb&1)==0&&(t=xo(c),!t.c&&(t.c=new aa),lt(t.c,u(n.gj(),29))));break}case 5:{if(l=n.fj(),l!=null)for(o=u(l,16).Jc();o.Ob();)c=u(o.Pb(),468),(c.Bb&1)==0&&(t=xo(c),!t.c&&(t.c=new aa),lt(t.c,u(n.gj(),29)));break}case 4:{a=n.hj(),a!=null&&(c=u(a,468),(c.Bb&1)==0&&(t=xo(c),!t.c&&(t.c=new aa),jz(t.c,n.gj())));break}case 6:{if(a=n.hj(),a!=null)for(o=u(a,16).Jc();o.Ob();)c=u(o.Pb(),468),(c.Bb&1)==0&&(t=xo(c),!t.c&&(t.c=new aa),jz(t.c,n.gj()));break}}this.nl(r)}},s.nl=function(n){hKe(this,n)},s.b=63,S(vn,"ESuperAdapter",1141),k(1142,1141,q2e,IEe),s.nl=function(n){Y2(this,n)},S(vn,"EClassImpl/10",1142),k(1131,696,ru),s.Bi=function(n,t){return aY(this,n,t)},s.Ci=function(n){return Uqe(this,n)},s.Di=function(n,t){EO(this,n,t)},s.Ei=function(n){Zx(this,n)},s.Xi=function(n){return che(this,n)},s.Ui=function(n,t){return TV(this,n,t)},s.Tk=function(n,t){throw R(new bt)},s.Fi=function(){return new A4(this)},s.Gi=function(){return new vx(this)},s.Hi=function(n){return fO(this,n)},s.Uk=function(n,t){throw R(new bt)},s.Ck=function(n){return this},s.Nj=function(){return this.i!=0},s.Wb=function(n){throw R(new bt)},s.Dk=function(){throw R(new bt)},S(Si,"EcoreEList/UnmodifiableEList",1131),k(330,1131,ru,$3),s.Vi=function(){return!1},S(Si,"EcoreEList/UnmodifiableEList/FastCompare",330),k(1134,330,ru,kBe),s.bd=function(n){var t,i,r;if(K(n,178)&&(t=u(n,178),i=t.Ij(),i!=-1)){for(r=this.i;i<r;++i)if(ne(this.g[i])===ne(n))return i}return-1},S(vn,"EClassImpl/1EAllStructuralFeaturesList",1134),k(1128,490,Dh,R$),s.Zi=function(n){return ce(Mc,zQe,87,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/1EGenericSuperTypeEList",1128),k(621,490,Dh,m0),s.Zi=function(n){return ce(Vs,Av,178,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/1EStructuralFeatureUniqueEList",621),k(740,490,Dh,el),s.Zi=function(n){return ce(Hm,Av,19,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/1ReferenceList",740),k(1129,490,Dh,DEe),s.Ji=function(n,t){N3n(this,u(t,35))},s.Zi=function(n){return ce(Um,Av,35,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/2",1129),k(1130,490,Dh,YM),s.Zi=function(n){return ce(Um,Av,35,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/3",1130),k(1132,330,ru,J_e),s.Ec=function(n){return U6n(this,u(n,35))},s.Ei=function(n){Ibn(this,u(n,35))},S(vn,"EClassImpl/4",1132),k(1133,330,ru,U_e),s.Ec=function(n){return H6n(this,u(n,19))},s.Ei=function(n){Dbn(this,u(n,19))},S(vn,"EClassImpl/5",1133),k(1135,490,Dh,z$),s.Zi=function(n){return ce(Af,U2e,62,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/6",1135),k(1136,490,Dh,_f),s.Zi=function(n){return ce(Hm,Av,19,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/7",1136),k(2044,2043,{3:1,4:1,20:1,31:1,55:1,16:1,15:1,70:1,61:1,71:1}),s.Bi=function(n,t){return Gbe(this,n,t)},s.Ci=function(n){return Gbe(this,this.Bj(),n)},s.Di=function(n,t){GUe(this,n,t)},s.Ei=function(n){NUe(this,n)},s.Tk=function(n,t){return VSn(this,n,t)},s.Uk=function(n,t){return ASn(this,n,t)},s.Ui=function(n,t){return QKe(this,n,t)},s.Xi=function(n){return this.uj(n)},s.Fi=function(){return new A4(this)},s.mj=function(){return this.pj()},s.Gi=function(){return new vx(this)},s.Hi=function(n){return fO(this,n)},S(Si,"DelegatingNotifyingInternalEListImpl",2044),k(741,2044,H2e),s.Ii=function(){var n;return n=ln(Fs(this.b),this.Ij()).Ek(),K(n,155)&&!K(n,456)&&(n.hk().i&1)==0},s.Gc=function(n){var t,i,r,c,o,l,a,b;if(this.ll()){if(b=this.Bj(),b>4)if(this.ck(n)){if(this.Zk()){if(r=u(n,52),i=r.Ah(),a=i==this.b&&(this.jl()?r.uh(r.Bh(),u(ln(Fs(this.b),this.Ij()).Ek(),29).hk())==mc(u(ln(Fs(this.b),this.Ij()),19)).n:-1-r.Bh()==this.Ij()),this.kl()&&!a&&!i&&r.Fh()){for(c=0;c<b;++c)if(t=wX(this,this.uj(c)),ne(t)===ne(n))return!0}return a}else if(this.jl()&&!this.il()){if(o=u(n,57).Ih(mc(u(ln(Fs(this.b),this.Ij()),19))),ne(o)===ne(this.b))return!0;if(o==null||!u(o,57).Rh())return!1}}else return!1;if(l=this.rj(n),this.kl()&&!l){for(c=0;c<b;++c)if(r=wX(this,this.uj(c)),ne(r)===ne(n))return!0}return l}else return this.rj(n)},s.Fj=function(n,t,i,r,c){return new G1(this.b,n,this.Ij(),t,i,r,c)},s.Gj=function(n){Vt(this.b,n)},s.Ck=function(n){return this},s.Hj=function(){return ln(Fs(this.b),this.Ij())},s.Ij=function(){return Ai(Fs(this.b),ln(Fs(this.b),this.Ij()))},s.gj=function(){return this.b},s.hl=function(){return!!ln(Fs(this.b),this.Ij()).Ek().hk()},s.Jj=function(){var n,t;return t=ln(Fs(this.b),this.Ij()),K(t,102)?(n=u(t,19),(n.Bb&Nu)!=0||!!mc(u(t,19))):!1},s.il=function(){var n,t,i,r;return t=ln(Fs(this.b),this.Ij()),K(t,102)?(n=u(t,19),i=mc(n),!!i&&(r=i.t,r>1||r==-1)):!1},s.jl=function(){var n,t,i;return t=ln(Fs(this.b),this.Ij()),K(t,102)?(n=u(t,19),i=mc(n),!!i):!1},s.kl=function(){var n,t;return t=ln(Fs(this.b),this.Ij()),K(t,102)?(n=u(t,19),(n.Bb&ac)!=0):!1},s.bd=function(n){var t,i,r,c;if(r=this.wj(n),r>=0)return r;if(this.ll()){for(i=0,c=this.Bj();i<c;++i)if(t=wX(this,this.uj(i)),ne(t)===ne(n))return i}return-1},s.Kj=function(n,t){var i;return i=u(n,52),this.jl()?this.hl()?i.Nh(this.b,mc(u(ln(Fs(this.b),this.Ij()),19)).n,u(ln(Fs(this.b),this.Ij()).Ek(),29).hk(),t):i.Nh(this.b,Ai(i.zh(),mc(u(ln(Fs(this.b),this.Ij()),19))),null,t):i.Nh(this.b,-1-this.Ij(),null,t)},s.Lj=function(n,t){var i;return i=u(n,52),this.jl()?this.hl()?i.Ph(this.b,mc(u(ln(Fs(this.b),this.Ij()),19)).n,u(ln(Fs(this.b),this.Ij()).Ek(),29).hk(),t):i.Ph(this.b,Ai(i.zh(),mc(u(ln(Fs(this.b),this.Ij()),19))),null,t):i.Ph(this.b,-1-this.Ij(),null,t)},s.Zk=function(){var n,t;return t=ln(Fs(this.b),this.Ij()),K(t,102)?(n=u(t,19),(n.Bb&Nu)!=0):!1},s.ll=function(){return K(ln(Fs(this.b),this.Ij()).Ek(),88)},s.ck=function(n){return ln(Fs(this.b),this.Ij()).Ek().ck(n)},s.Mj=function(){return qo(this.b)},s.Nj=function(){return!this.xj()},s.Pi=function(){return ln(Fs(this.b),this.Ij()).Pi()},s.Ti=function(n,t){return n_(this,n,t)},s.Wb=function(n){wE(this),zi(this,u(n,15))},s.Nc=function(){var n;if(this.kl())for(n=this.Bj()-1;n>=0;--n)n_(this,n,this.uj(n));return this.Cj()},s.Oc=function(n){var t;if(this.kl())for(t=this.Bj()-1;t>=0;--t)n_(this,t,this.uj(t));return this.Dj(n)},s.Dk=function(){wE(this)},s.Wi=function(n,t){return APe(this,n,t)},S(Si,"DelegatingEcoreEList",741),k(1137,741,H2e,qOe),s.nj=function(n,t){Zwn(this,n,u(t,29))},s.oj=function(n){$gn(this,u(n,29))},s.uj=function(n){var t,i;return t=u(Z(Ju(this.a),n),87),i=t.c,K(i,88)?u(i,29):(cn(),Mf)},s.zj=function(n){var t,i;return t=u(nm(Ju(this.a),n),87),i=t.c,K(i,88)?u(i,29):(cn(),Mf)},s.Aj=function(n,t){return WSn(this,n,u(t,29))},s.Ii=function(){return!1},s.Fj=function(n,t,i,r,c){return null},s.pj=function(){return new $Ee(this)},s.qj=function(){ut(Ju(this.a))},s.rj=function(n){return yFe(this,n)},s.sj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!yFe(this,t))return!1;return!0},s.tj=function(n){var t,i,r;if(K(n,15)&&(r=u(n,15),r.gc()==Ju(this.a).i)){for(t=r.Jc(),i=new Bn(this);t.Ob();)if(ne(t.Pb())!==ne(Jn(i)))return!1;return!0}return!1},s.vj=function(){var n,t,i,r,c;for(i=1,t=new Bn(Ju(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),r=(c=n.c,K(c,88)?u(c,29):(cn(),Mf)),i=31*i+(r?yw(r):0);return i},s.wj=function(n){var t,i,r,c;for(r=0,i=new Bn(Ju(this.a));i.e!=i.i.gc();){if(t=u(Jn(i),87),ne(n)===ne((c=t.c,K(c,88)?u(c,29):(cn(),Mf))))return r;++r}return-1},s.xj=function(){return Ju(this.a).i==0},s.yj=function(){return null},s.Bj=function(){return Ju(this.a).i},s.Cj=function(){var n,t,i,r,c,o;for(o=Ju(this.a).i,c=ce(fr,fn,1,o,5,1),i=0,t=new Bn(Ju(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),c[i++]=(r=n.c,K(r,88)?u(r,29):(cn(),Mf));return c},s.Dj=function(n){var t,i,r,c,o,l,a;for(a=Ju(this.a).i,n.length<a&&(c=lO(Ko(n).c,a),n=c),n.length>a&&qi(n,a,null),r=0,i=new Bn(Ju(this.a));i.e!=i.i.gc();)t=u(Jn(i),87),o=(l=t.c,K(l,88)?u(l,29):(cn(),Mf)),qi(n,r++,o);return n},s.Ej=function(){var n,t,i,r,c;for(c=new Md,c.a+="[",n=Ju(this.a),t=0,r=Ju(this.a).i;t<r;)Oc(c,eS((i=u(Z(n,t),87).c,K(i,88)?u(i,29):(cn(),Mf)))),++t<r&&(c.a+=Ss);return c.a+="]",c.a},s.Gj=function(n){},s.Ij=function(){return 10},s.hl=function(){return!0},s.Jj=function(){return!1},s.il=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!0},s.Zk=function(){return!1},s.ll=function(){return!0},s.ck=function(n){return K(n,88)},s.Nj=function(){return U4n(this.a)},s.Pi=function(){return!0},s.Vi=function(){return!0},S(vn,"EClassImpl/8",1137),k(1138,2011,I9,$Ee),s.dd=function(n){return fO(this.a,n)},s.gc=function(){return Ju(this.a.a).i},S(vn,"EClassImpl/8/1",1138),k(1139,490,Dh,vH),s.Zi=function(n){return ce(Oa,fn,141,n,0,1)},s.Vi=function(){return!1},S(vn,"EClassImpl/9",1139),k(1126,50,Nge,MAe),S(vn,"EClassImpl/MyHashSet",1126),k(561,358,{109:1,93:1,92:1,141:1,155:1,828:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,157:1,117:1,118:1,678:1},QL),s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Gw(this);case 4:return this.fk();case 5:return this.F;case 6:return t?ol(this):Ik(this);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),this.A;case 8:return Mn(),(this.Bb&256)!=0}return Il(this,n-Kn(this.ei()),ln((r=u(Sn(this,16),29),r||this.ei()),n),t,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Gw(this);case 4:return this.fk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Ik(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Nl(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:YR(this,pt(t));return;case 2:MZ(this,pt(t));return;case 5:M9(this,pt(t));return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A),!this.A&&(this.A=new Qs(Ls,this,7)),zi(this.A,u(t,16));return;case 8:tB(this,Oe(xe(t)));return}Pl(this,n-Kn(this.ei()),ln((i=u(Sn(this,16),29),i||this.ei()),n),t)},s.ei=function(){return cn(),oan},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,184)&&(u(this.Cb,184).tb=null),ks(this,null);return;case 2:Qk(this,null),qk(this,this.D);return;case 5:M9(this,null);return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A);return;case 8:tB(this,!0);return}Ll(this,n-Kn(this.ei()),ln((t=u(Sn(this,16),29),t||this.ei()),n))},s.li=function(){qd((co(),Jr),this).ve(),this.Bb|=1},s.lk=function(){var n,t,i;if(!this.c&&(n=rHe(ol(this)),!n.dc()))for(i=n.Jc();i.Ob();)t=pt(i.Pb()),fE(this,t)&&D7n(this);return this.b},s.fk=function(){var n;if(!this.e){n=null;try{n=Gw(this)}catch(t){if(t=Ki(t),!K(t,100))throw R(t)}this.d=null,n&&(n.i&1)!=0&&(n==zo?this.d=(Mn(),tb):n==yt?this.d=Se(0):n==Vm?this.d=new pi(0):n==_r?this.d=0:n==Cp?this.d=K2(0):n==cy?this.d=t9(0):n==fo?this.d=uO(0):this.d=bO(0)),this.e=!0}return this.d},s.kk=function(){return(this.Bb&256)!=0},s.ol=function(n){n&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},s.dl=function(n){Cze(this,n),this.ol(n)},s.el=function(n){this.C=n,this.e=!1},s.Ib=function(){var n;return(this.Db&64)!=0?lB(this):(n=new sf(lB(this)),n.a+=" (serializable: ",Cd(n,(this.Bb&256)!=0),n.a+=")",n.a)},s.c=!1,s.d=null,s.e=!1,S(vn,"EDataTypeImpl",561),k(456,561,{109:1,93:1,92:1,141:1,155:1,828:1,672:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,456:1,157:1,117:1,118:1,678:1},_Ae),s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Gw(this);case 4:return m1e(this);case 5:return this.F;case 6:return t?ol(this):Ik(this);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),this.A;case 8:return Mn(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new he(od,this,9,5)),this.a}return Il(this,n-Kn((cn(),vb)),ln((r=u(Sn(this,16),29),r||vb),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?QW(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,6,i);case 9:return!this.a&&(this.a=new he(od,this,9,5)),js(this.a,n,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),vb)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),vb)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 6:return dl(this,null,6,i);case 7:return!this.A&&(this.A=new Qs(Ls,this,7)),oc(this.A,n,i);case 9:return!this.a&&(this.a=new he(od,this,9,5)),oc(this.a,n,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),vb)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),vb)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Gw(this);case 4:return!!m1e(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Ik(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Nl(this,n-Kn((cn(),vb)),ln((t=u(Sn(this,16),29),t||vb),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:YR(this,pt(t));return;case 2:MZ(this,pt(t));return;case 5:M9(this,pt(t));return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A),!this.A&&(this.A=new Qs(Ls,this,7)),zi(this.A,u(t,16));return;case 8:tB(this,Oe(xe(t)));return;case 9:!this.a&&(this.a=new he(od,this,9,5)),ut(this.a),!this.a&&(this.a=new he(od,this,9,5)),zi(this.a,u(t,16));return}Pl(this,n-Kn((cn(),vb)),ln((i=u(Sn(this,16),29),i||vb),n),t)},s.ei=function(){return cn(),vb},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,184)&&(u(this.Cb,184).tb=null),ks(this,null);return;case 2:Qk(this,null),qk(this,this.D);return;case 5:M9(this,null);return;case 7:!this.A&&(this.A=new Qs(Ls,this,7)),ut(this.A);return;case 8:tB(this,!0);return;case 9:!this.a&&(this.a=new he(od,this,9,5)),ut(this.a);return}Ll(this,n-Kn((cn(),vb)),ln((t=u(Sn(this,16),29),t||vb),n))},s.li=function(){var n,t;if(this.a)for(n=0,t=this.a.i;n<t;++n)kx(Z(this.a,n));qd((co(),Jr),this).ve(),this.Bb|=1},s.fk=function(){return m1e(this)},s.ck=function(n){return n!=null},s.ol=function(n){},S(vn,"EEnumImpl",456),k(566,436,{109:1,93:1,92:1,1988:1,681:1,154:1,197:1,57:1,113:1,52:1,98:1,566:1,157:1,117:1,118:1},KEe),s.ve=function(){return this.zb},s.wh=function(n){return mGe(this,n)},s.Hh=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Se(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,672):null}return Il(this,n-Kn((cn(),l0)),ln((r=u(Sn(this,16),29),r||l0),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?mGe(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,5,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),l0)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),l0)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 5:return dl(this,null,5,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),l0)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),l0)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,672))}return Nl(this,n-Kn((cn(),l0)),ln((t=u(Sn(this,16),29),t||l0),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:ks(this,pt(t));return;case 2:IV(this,u(t,17).a);return;case 3:SUe(this,u(t,1988));return;case 4:$V(this,pt(t));return}Pl(this,n-Kn((cn(),l0)),ln((i=u(Sn(this,16),29),i||l0),n),t)},s.ei=function(){return cn(),l0},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:ks(this,null);return;case 2:IV(this,0);return;case 3:SUe(this,null);return;case 4:$V(this,null);return}Ll(this,n-Kn((cn(),l0)),ln((t=u(Sn(this,16),29),t||l0),n))},s.Ib=function(){var n;return n=this.c,n??this.zb},s.b=null,s.c=null,s.d=0,S(vn,"EEnumLiteralImpl",566);var XRn=xi(vn,"EFactoryImpl/InternalEDateTimeFormat");k(483,1,{2063:1},GC),S(vn,"EFactoryImpl/1ClientInternalEDateTimeFormat",483),k(246,118,{109:1,93:1,92:1,87:1,57:1,113:1,52:1,98:1,246:1,117:1,118:1},dw),s.yh=function(n,t,i){var r;return i=dl(this,n,t,i),this.e&&K(n,178)&&(r=JB(this,this.e),r!=this.c&&(i=C9(this,r,i))),i},s.Hh=function(n,t,i){var r;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new nr(Mc,this,1)),this.d;case 2:return t?tF(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?UW(this):this.a}return Il(this,n-Kn((cn(),Ap)),ln((r=u(Sn(this,16),29),r||Ap),n),t,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return uFe(this,null,i);case 1:return!this.d&&(this.d=new nr(Mc,this,1)),oc(this.d,n,i);case 3:return cFe(this,null,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),Ap)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),Ap)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Nl(this,n-Kn((cn(),Ap)),ln((t=u(Sn(this,16),29),t||Ap),n))},s.Zh=function(n,t){var i;switch(n){case 0:PGe(this,u(t,87));return;case 1:!this.d&&(this.d=new nr(Mc,this,1)),ut(this.d),!this.d&&(this.d=new nr(Mc,this,1)),zi(this.d,u(t,16));return;case 3:Zde(this,u(t,87));return;case 4:d0e(this,u(t,831));return;case 5:Fk(this,u(t,141));return}Pl(this,n-Kn((cn(),Ap)),ln((i=u(Sn(this,16),29),i||Ap),n),t)},s.ei=function(){return cn(),Ap},s.gi=function(n){var t;switch(n){case 0:PGe(this,null);return;case 1:!this.d&&(this.d=new nr(Mc,this,1)),ut(this.d);return;case 3:Zde(this,null);return;case 4:d0e(this,null);return;case 5:Fk(this,null);return}Ll(this,n-Kn((cn(),Ap)),ln((t=u(Sn(this,16),29),t||Ap),n))},s.Ib=function(){var n;return n=new nl(Jf(this)),n.a+=" (expression: ",YY(this,n),n.a+=")",n.a};var N9e;S(vn,"EGenericTypeImpl",246),k(2016,2011,oq),s.Di=function(n,t){KOe(this,n,t)},s.Tk=function(n,t){return KOe(this,this.gc(),n),t},s.Xi=function(n){return Gf(this.mj(),n)},s.Fi=function(){return this.Gi()},s.mj=function(){return new BEe(this)},s.Gi=function(){return this.Hi(0)},s.Hi=function(n){return this.mj().dd(n)},s.Uk=function(n,t){return U2(this,n,!0),t},s.Qi=function(n,t){var i,r;return r=tY(this,t),i=this.dd(n),i.Rb(r),r},s.Ri=function(n,t){var i;U2(this,t,!0),i=this.dd(n),i.Rb(t)},S(Si,"AbstractSequentialInternalEList",2016),k(480,2016,oq,yx),s.Xi=function(n){return Gf(this.mj(),n)},s.Fi=function(){return this.b==null?(_d(),_d(),KN):this.pl()},s.mj=function(){return new fxe(this.a,this.b)},s.Gi=function(){return this.b==null?(_d(),_d(),KN):this.pl()},s.Hi=function(n){var t,i;if(this.b==null){if(n<0||n>1)throw R(new ps(BE+n+", size=0"));return _d(),_d(),KN}for(i=this.pl(),t=0;t<n;++t)Jz(i);return i},s.dc=function(){var n,t,i,r,c,o;if(this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.sl()||this.a.Th(n)){if(o=this.a.Jh(n,!1),pc(),u(n,69).uk()){for(t=u(o,159),r=0,c=t.gc();r<c;++r)if(aIe(t.Ql(r))&&t.Rl(r)!=null)return!1}else if(n.Gk()){if(!u(o,16).dc())return!1}else if(o!=null)return!1}}return!0},s.Jc=function(){return Rhe(this)},s.dd=function(n){var t,i;if(this.b==null){if(n!=0)throw R(new ps(BE+n+", size=0"));return _d(),_d(),KN}for(i=this.rl()?this.ql():this.pl(),t=0;t<n;++t)Jz(i);return i},s.Qi=function(n,t){throw R(new bt)},s.Ri=function(n,t){throw R(new bt)},s.pl=function(){return new rR(this.a,this.b)},s.ql=function(){return new sle(this.a,this.b)},s.rl=function(){return!0},s.gc=function(){var n,t,i,r,c,o,l;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.sl()||this.a.Th(n))if(l=this.a.Jh(n,!1),pc(),u(n,69).uk())for(t=u(l,159),r=0,o=t.gc();r<o;++r)aIe(t.Ql(r))&&t.Rl(r)!=null&&++c;else n.Gk()?c+=u(l,16).gc():l!=null&&++c}return c},s.sl=function(){return!0};var Tce;S(Si,"EContentsEList",480),k(1143,480,oq,COe),s.pl=function(){return new MOe(this.a,this.b)},s.ql=function(){return new TOe(this.a,this.b)},s.sl=function(){return!1},S(vn,"ENamedElementImpl/1",1143),k(285,1,lq,rR),s.Nb=function(n){Fr(this,n)},s.Rb=function(n){throw R(new bt)},s.tl=function(n){if(this.g!=0||this.e)throw R(new zc("Iterator already in use or already filtered"));this.e=n},s.Ob=function(){var n,t,i,r,c,o;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!DJe(this,this.p):!AUe(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.mk()!=G8||t.Ij()!=0)&&(!this.sl()||this.b.Th(t))){if(o=this.b.Jh(t,this.rl()),this.f=(pc(),u(t,69).uk()),this.f||t.Gk()){if(this.rl()?(r=u(o,15),this.k=r):(r=u(o,71),this.k=this.j=r),K(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Gi():this.k.cd(),this.p?DJe(this,this.p):AUe(this))return c=this.p?this.p.Pb():this.j?this.j.Xi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,74),n.Ik(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.Xi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,74),n.Ik(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}},s.Sb=function(){var n,t,i,r,c,o;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!$Je(this,this.p):!HJe(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.mk()!=G8||t.Ij()!=0)&&(!this.sl()||this.b.Th(t))){if(o=this.b.Jh(t,this.rl()),this.f=(pc(),u(t,69).uk()),this.f||t.Gk()){if(this.rl()?(r=u(o,15),this.k=r):(r=u(o,71),this.k=this.j=r),K(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Hi(this.k.gc()):this.k.dd(this.k.gc()),this.p?$Je(this,this.p):HJe(this))return c=this.p?this.p.Ub():this.j?this.j.Xi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,74),n.Ik(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.Xi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,74),n.Ik(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return Jz(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw R(new ou)},s.Vb=function(){return this.a-1},s.Qb=function(){throw R(new bt)},s.rl=function(){return!1},s.Wb=function(n){throw R(new bt)},s.sl=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var KN;S(Si,"EContentsEList/FeatureIteratorImpl",285),k(697,285,lq,sle),s.rl=function(){return!0},S(Si,"EContentsEList/ResolvingFeatureIteratorImpl",697),k(1144,697,lq,TOe),s.sl=function(){return!1},S(vn,"ENamedElementImpl/1/1",1144),k(1145,285,lq,MOe),s.sl=function(){return!1},S(vn,"ENamedElementImpl/1/2",1145),k(38,150,I_,L2,cV,kr,vV,G1,zf,mhe,u$e,vhe,s$e,Rae,o$e,jhe,l$e,zae,f$e,yhe,a$e,lS,Yx,FX,khe,h$e,Pae,d$e),s.Hj=function(){return the(this)},s.Oj=function(){var n;return n=the(this),n?n.fk():null},s.ej=function(n){return this.b==-1&&this.a&&(this.b=this.c.Dh(this.a.Ij(),this.a.mk())),this.c.uh(this.b,n)},s.gj=function(){return this.c},s.Pj=function(){var n;return n=the(this),n?n.qk():!1},s.b=-1,S(vn,"ENotificationImpl",38),k(401,291,{109:1,93:1,92:1,154:1,197:1,57:1,62:1,113:1,467:1,52:1,98:1,157:1,401:1,291:1,117:1,118:1},yK),s.wh=function(n){return yGe(this,n)},s.Hh=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),o=this.t,o>1||o==-1;case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Qs(Ls,this,11)),this.d;case 12:return!this.c&&(this.c=new he(Ep,this,12,10)),this.c;case 13:return!this.a&&(this.a=new Ex(this,this)),this.a;case 14:return Oo(this)}return Il(this,n-Kn((cn(),f0)),ln((r=u(Sn(this,16),29),r||f0),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?yGe(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,10,i);case 12:return!this.c&&(this.c=new he(Ep,this,12,10)),js(this.c,n,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),f0)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),f0)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 9:return EX(this,i);case 10:return dl(this,null,10,i);case 11:return!this.d&&(this.d=new Qs(Ls,this,11)),oc(this.d,n,i);case 12:return!this.c&&(this.c=new he(Ep,this,12,10)),oc(this.c,n,i);case 14:return oc(Oo(this),n,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),f0)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),f0)),n,i)},s.Sh=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Oo(this.a.a).i!=0&&!(this.b&&GW(this.b));case 14:return!!this.b&&GW(this.b)}return Nl(this,n-Kn((cn(),f0)),ln((t=u(Sn(this,16),29),t||f0),n))},s.Zh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:ks(this,pt(t));return;case 2:Gd(this,Oe(xe(t)));return;case 3:Jd(this,Oe(xe(t)));return;case 4:zd(this,u(t,17).a);return;case 5:z2(this,u(t,17).a);return;case 8:ug(this,u(t,141));return;case 9:r=Ja(this,u(t,87),null),r&&r.lj();return;case 11:!this.d&&(this.d=new Qs(Ls,this,11)),ut(this.d),!this.d&&(this.d=new Qs(Ls,this,11)),zi(this.d,u(t,16));return;case 12:!this.c&&(this.c=new he(Ep,this,12,10)),ut(this.c),!this.c&&(this.c=new he(Ep,this,12,10)),zi(this.c,u(t,16));return;case 13:!this.a&&(this.a=new Ex(this,this)),wE(this.a),!this.a&&(this.a=new Ex(this,this)),zi(this.a,u(t,16));return;case 14:ut(Oo(this)),zi(Oo(this),u(t,16));return}Pl(this,n-Kn((cn(),f0)),ln((i=u(Sn(this,16),29),i||f0),n),t)},s.ei=function(){return cn(),f0},s.gi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:ks(this,null);return;case 2:Gd(this,!0);return;case 3:Jd(this,!0);return;case 4:zd(this,0);return;case 5:z2(this,1);return;case 8:ug(this,null);return;case 9:i=Ja(this,null,null),i&&i.lj();return;case 11:!this.d&&(this.d=new Qs(Ls,this,11)),ut(this.d);return;case 12:!this.c&&(this.c=new he(Ep,this,12,10)),ut(this.c);return;case 13:this.a&&wE(this.a);return;case 14:this.b&&ut(this.b);return}Ll(this,n-Kn((cn(),f0)),ln((t=u(Sn(this,16),29),t||f0),n))},s.li=function(){var n,t;if(this.c)for(n=0,t=this.c.i;n<t;++n)kx(Z(this.c,n));bf(this),this.Bb|=1},S(vn,"EOperationImpl",401),k(497,741,H2e,Ex),s.nj=function(n,t){Kwn(this,n,u(t,141))},s.oj=function(n){Lgn(this,u(n,141))},s.uj=function(n){var t,i;return t=u(Z(Oo(this.a),n),87),i=t.c,i||(cn(),ch)},s.zj=function(n){var t,i;return t=u(nm(Oo(this.a),n),87),i=t.c,i||(cn(),ch)},s.Aj=function(n,t){return Jjn(this,n,u(t,141))},s.Ii=function(){return!1},s.Fj=function(n,t,i,r,c){return null},s.pj=function(){return new LEe(this)},s.qj=function(){ut(Oo(this.a))},s.rj=function(n){return jFe(this,n)},s.sj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!jFe(this,t))return!1;return!0},s.tj=function(n){var t,i,r;if(K(n,15)&&(r=u(n,15),r.gc()==Oo(this.a).i)){for(t=r.Jc(),i=new Bn(this);t.Ob();)if(ne(t.Pb())!==ne(Jn(i)))return!1;return!0}return!1},s.vj=function(){var n,t,i,r,c;for(i=1,t=new Bn(Oo(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),r=(c=n.c,c||(cn(),ch)),i=31*i+(r?gi(r):0);return i},s.wj=function(n){var t,i,r,c;for(r=0,i=new Bn(Oo(this.a));i.e!=i.i.gc();){if(t=u(Jn(i),87),ne(n)===ne((c=t.c,c||(cn(),ch))))return r;++r}return-1},s.xj=function(){return Oo(this.a).i==0},s.yj=function(){return null},s.Bj=function(){return Oo(this.a).i},s.Cj=function(){var n,t,i,r,c,o;for(o=Oo(this.a).i,c=ce(fr,fn,1,o,5,1),i=0,t=new Bn(Oo(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),c[i++]=(r=n.c,r||(cn(),ch));return c},s.Dj=function(n){var t,i,r,c,o,l,a;for(a=Oo(this.a).i,n.length<a&&(c=lO(Ko(n).c,a),n=c),n.length>a&&qi(n,a,null),r=0,i=new Bn(Oo(this.a));i.e!=i.i.gc();)t=u(Jn(i),87),o=(l=t.c,l||(cn(),ch)),qi(n,r++,o);return n},s.Ej=function(){var n,t,i,r,c;for(c=new Md,c.a+="[",n=Oo(this.a),t=0,r=Oo(this.a).i;t<r;)Oc(c,eS((i=u(Z(n,t),87).c,i||(cn(),ch)))),++t<r&&(c.a+=Ss);return c.a+="]",c.a},s.Gj=function(n){},s.Ij=function(){return 13},s.hl=function(){return!0},s.Jj=function(){return!1},s.il=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!0},s.Zk=function(){return!1},s.ll=function(){return!0},s.ck=function(n){return K(n,141)},s.Nj=function(){return J4n(this.a)},s.Pi=function(){return!0},s.Vi=function(){return!0},S(vn,"EOperationImpl/1",497),k(1327,2011,I9,LEe),s.dd=function(n){return fO(this.a,n)},s.gc=function(){return Oo(this.a.a).i},S(vn,"EOperationImpl/1/1",1327),k(1328,541,ru,CNe),s.Qi=function(n,t){var i,r;return i=u(GS(this,n,t),87),qo(this.e)&&ik(this,new Yx(this.a,7,(cn(),aan),Se(t),(r=i.c,r||ch),n)),i},s.Rj=function(n,t){return g7n(this,u(n,87),t)},s.Sj=function(n,t){return b7n(this,u(n,87),t)},s.Tj=function(n,t,i){return iSn(this,u(n,87),u(t,87),i)},s.Fj=function(n,t,i,r,c){switch(n){case 3:return pS(this,n,t,i,r,this.i>1);case 5:return pS(this,n,t,i,r,this.i-u(i,15).gc()>0);default:return new G1(this.e,n,this.c,t,i,r,!0)}},s.Qj=function(){return!0},s.Nj=function(){return GW(this)},s.Dk=function(){ut(this)},S(vn,"EOperationImpl/2",1328),k(491,1,{1986:1,491:1},JCe),S(vn,"EPackageImpl/1",491),k(14,81,ru,he),s.fl=function(){return this.d},s.gl=function(){return this.b},s.jl=function(){return!0},s.b=0,S(Si,"EObjectContainmentWithInverseEList",14),k(359,14,ru,M4),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectContainmentWithInverseEList/Resolving",359),k(310,359,ru,C2),s.Ki=function(){this.a.tb=null},S(vn,"EPackageImpl/2",310),k(1240,1,{},yH),S(vn,"EPackageImpl/3",1240),k(718,45,mv,dse),s._b=function(n){return Er(n)?BX(this,n):!!Bc(this.f,n)},S(vn,"EPackageRegistryImpl",718),k(502,291,{109:1,93:1,92:1,154:1,197:1,57:1,2065:1,113:1,467:1,52:1,98:1,157:1,502:1,291:1,117:1,118:1},kK),s.wh=function(n){return kGe(this,n)},s.Hh=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),o=this.t,o>1||o==-1;case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Il(this,n-Kn((cn(),Zm)),ln((r=u(Sn(this,16),29),r||Zm),n),t,i)},s.Oh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),js(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?kGe(this,i):this.Cb.Ph(this,-1-c,null,i))),dl(this,n,10,i)}return o=u(ln((r=u(Sn(this,16),29),r||(cn(),Zm)),t),69),o.tk().wk(this,Os(this),t-Kn((cn(),Zm)),n,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 9:return EX(this,i);case 10:return dl(this,null,10,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),Zm)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),Zm)),n,i)},s.Sh=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Nl(this,n-Kn((cn(),Zm)),ln((t=u(Sn(this,16),29),t||Zm),n))},s.ei=function(){return cn(),Zm},S(vn,"EParameterImpl",502),k(102,448,{109:1,93:1,92:1,154:1,197:1,57:1,19:1,178:1,69:1,113:1,467:1,52:1,98:1,157:1,102:1,448:1,291:1,117:1,118:1,679:1},ale),s.Hh=function(n,t,i){var r,c,o,l;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Mn(),(this.Bb&256)!=0;case 3:return Mn(),(this.Bb&512)!=0;case 4:return Se(this.s);case 5:return Se(this.t);case 6:return Mn(),l=this.t,l>1||l==-1;case 7:return Mn(),c=this.s,c>=1;case 8:return t?bf(this):this.r;case 9:return this.q;case 10:return Mn(),(this.Bb&Kf)!=0;case 11:return Mn(),(this.Bb&Z0)!=0;case 12:return Mn(),(this.Bb&sm)!=0;case 13:return this.j;case 14:return y9(this);case 15:return Mn(),(this.Bb&oo)!=0;case 16:return Mn(),(this.Bb&Mh)!=0;case 17:return I2(this);case 18:return Mn(),(this.Bb&Nu)!=0;case 19:return Mn(),o=mc(this),!!(o&&(o.Bb&Nu)!=0);case 20:return Mn(),(this.Bb&ac)!=0;case 21:return t?mc(this):this.b;case 22:return t?s1e(this):OLe(this);case 23:return!this.a&&(this.a=new F3(Um,this,23)),this.a}return Il(this,n-Kn((cn(),ny)),ln((r=u(Sn(this,16),29),r||ny),n),t,i)},s.Sh=function(n){var t,i,r,c;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ew(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ew(this.q).i==0);case 10:return(this.Bb&Kf)==0;case 11:return(this.Bb&Z0)!=0;case 12:return(this.Bb&sm)!=0;case 13:return this.j!=null;case 14:return y9(this)!=null;case 15:return(this.Bb&oo)!=0;case 16:return(this.Bb&Mh)!=0;case 17:return!!I2(this);case 18:return(this.Bb&Nu)!=0;case 19:return r=mc(this),!!r&&(r.Bb&Nu)!=0;case 20:return(this.Bb&ac)==0;case 21:return!!this.b;case 22:return!!OLe(this);case 23:return!!this.a&&this.a.i!=0}return Nl(this,n-Kn((cn(),ny)),ln((t=u(Sn(this,16),29),t||ny),n))},s.Zh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:VX(this,pt(t));return;case 2:Gd(this,Oe(xe(t)));return;case 3:Jd(this,Oe(xe(t)));return;case 4:zd(this,u(t,17).a);return;case 5:z2(this,u(t,17).a);return;case 8:ug(this,u(t,141));return;case 9:r=Ja(this,u(t,87),null),r&&r.lj();return;case 10:r9(this,Oe(xe(t)));return;case 11:u9(this,Oe(xe(t)));return;case 12:c9(this,Oe(xe(t)));return;case 13:Soe(this,pt(t));return;case 15:i9(this,Oe(xe(t)));return;case 16:s9(this,Oe(xe(t)));return;case 18:Hyn(this,Oe(xe(t)));return;case 20:L1e(this,Oe(xe(t)));return;case 21:Phe(this,u(t,19));return;case 23:!this.a&&(this.a=new F3(Um,this,23)),ut(this.a),!this.a&&(this.a=new F3(Um,this,23)),zi(this.a,u(t,16));return}Pl(this,n-Kn((cn(),ny)),ln((i=u(Sn(this,16),29),i||ny),n),t)},s.ei=function(){return cn(),ny},s.gi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:K(this.Cb,88)&&Y2(xo(u(this.Cb,88)),4),ks(this,null);return;case 2:Gd(this,!0);return;case 3:Jd(this,!0);return;case 4:zd(this,0);return;case 5:z2(this,1);return;case 8:ug(this,null);return;case 9:i=Ja(this,null,null),i&&i.lj();return;case 10:r9(this,!0);return;case 11:u9(this,!1);return;case 12:c9(this,!1);return;case 13:this.i=null,Pz(this,null);return;case 15:i9(this,!1);return;case 16:s9(this,!1);return;case 18:P1e(this,!1),K(this.Cb,88)&&Y2(xo(u(this.Cb,88)),2);return;case 20:L1e(this,!0);return;case 21:Phe(this,null);return;case 23:!this.a&&(this.a=new F3(Um,this,23)),ut(this.a);return}Ll(this,n-Kn((cn(),ny)),ln((t=u(Sn(this,16),29),t||ny),n))},s.li=function(){s1e(this),Ok(qc((co(),Jr),this)),bf(this),this.Bb|=1},s.rk=function(){return mc(this)},s.Yk=function(){var n;return n=mc(this),!!n&&(n.Bb&Nu)!=0},s.Zk=function(){return(this.Bb&Nu)!=0},s.$k=function(){return(this.Bb&ac)!=0},s.Vk=function(n,t){return this.c=null,M1e(this,n,t)},s.Ib=function(){var n;return(this.Db&64)!=0?eF(this):(n=new sf(eF(this)),n.a+=" (containment: ",Cd(n,(this.Bb&Nu)!=0),n.a+=", resolveProxies: ",Cd(n,(this.Bb&ac)!=0),n.a+=")",n.a)},S(vn,"EReferenceImpl",102),k(547,118,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1,547:1,117:1,118:1},B$),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return yw(this)},s.zi=function(n){c3n(this,pt(n))},s.ld=function(n){return Xmn(this,pt(n))},s.Hh=function(n,t,i){var r;switch(n){case 0:return this.b;case 1:return this.c}return Il(this,n-Kn((cn(),bc)),ln((r=u(Sn(this,16),29),r||bc),n),t,i)},s.Sh=function(n){var t;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Nl(this,n-Kn((cn(),bc)),ln((t=u(Sn(this,16),29),t||bc),n))},s.Zh=function(n,t){var i;switch(n){case 0:u3n(this,pt(t));return;case 1:_he(this,pt(t));return}Pl(this,n-Kn((cn(),bc)),ln((i=u(Sn(this,16),29),i||bc),n),t)},s.ei=function(){return cn(),bc},s.gi=function(n){var t;switch(n){case 0:Dhe(this,null);return;case 1:_he(this,null);return}Ll(this,n-Kn((cn(),bc)),ln((t=u(Sn(this,16),29),t||bc),n))},s.xi=function(){var n;return this.a==-1&&(n=this.b,this.a=n==null?0:Bd(n)),this.a},s.yi=function(n){this.a=n},s.Ib=function(){var n;return(this.Db&64)!=0?Jf(this):(n=new sf(Jf(this)),n.a+=" (key: ",Oc(n,this.b),n.a+=", value: ",Oc(n,this.c),n.a+=")",n.a)},s.a=-1,s.b=null,s.c=null;var Tu=S(vn,"EStringToStringMapEntryImpl",547),pan=xi(Si,"FeatureMap/Entry/Internal");k(560,1,fq),s.ul=function(n){return this.vl(u(n,52))},s.vl=function(n){return this.ul(n)},s.Fb=function(n){var t,i;return this===n?!0:K(n,74)?(t=u(n,74),t.Ik()==this.c?(i=this.kd(),i==null?t.kd()==null:Yt(i,t.kd())):!1):!1},s.Ik=function(){return this.c},s.Hb=function(){var n;return n=this.kd(),gi(this.c)^(n==null?0:gi(n))},s.Ib=function(){var n,t;return n=this.c,t=ol(n.nk()).ui(),n.ve(),(t!=null&&t.length!=0?t+":"+n.ve():n.ve())+"="+this.kd()},S(vn,"EStructuralFeatureImpl/BasicFeatureMapEntry",560),k(774,560,fq,ple),s.vl=function(n){return new ple(this.c,n)},s.kd=function(){return this.a},s.wl=function(n,t,i){return _9n(this,n,this.a,t,i)},s.xl=function(n,t,i){return N9n(this,n,this.a,t,i)},S(vn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",774),k(1301,1,{},UCe),s.vk=function(n,t,i,r,c){var o;return o=u(Pk(n,this.b),219),o.Vl(this.a).Ck(r)},s.wk=function(n,t,i,r,c){var o;return o=u(Pk(n,this.b),219),o.Ml(this.a,r,c)},s.xk=function(n,t,i,r,c){var o;return o=u(Pk(n,this.b),219),o.Nl(this.a,r,c)},s.yk=function(n,t,i){var r;return r=u(Pk(n,this.b),219),r.Vl(this.a).Nj()},s.zk=function(n,t,i,r){var c;c=u(Pk(n,this.b),219),c.Vl(this.a).Wb(r)},s.Ak=function(n,t,i){return u(Pk(n,this.b),219).Vl(this.a)},s.Bk=function(n,t,i){var r;r=u(Pk(n,this.b),219),r.Vl(this.a).Dk()},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1301),k(89,1,{},Id,Zb,$d,eg),s.vk=function(n,t,i,r,c){var o;if(o=t.hi(i),o==null&&t.ii(i,o=aF(this,n)),!c)switch(this.e){case 50:case 41:return u(o,583).$j();case 40:return u(o,219).Sl()}return o},s.wk=function(n,t,i,r,c){var o,l;return l=t.hi(i),l==null&&t.ii(i,l=aF(this,n)),o=u(l,71).Tk(r,c),o},s.xk=function(n,t,i,r,c){var o;return o=t.hi(i),o!=null&&(c=u(o,71).Uk(r,c)),c},s.yk=function(n,t,i){var r;return r=t.hi(i),r!=null&&u(r,76).Nj()},s.zk=function(n,t,i,r){var c;c=u(t.hi(i),76),!c&&t.ii(i,c=aF(this,n)),c.Wb(r)},s.Ak=function(n,t,i){var r,c;return c=t.hi(i),c==null&&t.ii(i,c=aF(this,n)),K(c,76)?u(c,76):(r=u(t.hi(i),15),new PEe(r))},s.Bk=function(n,t,i){var r;r=u(t.hi(i),76),!r&&t.ii(i,r=aF(this,n)),r.Dk()},s.b=0,s.e=0,S(vn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),k(496,1,{}),s.wk=function(n,t,i,r,c){throw R(new bt)},s.xk=function(n,t,i,r,c){throw R(new bt)},s.Ak=function(n,t,i){return new FIe(this,n,t,i)};var j1;S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",496),k(1318,1,Cne,FIe),s.Ck=function(n){return this.a.vk(this.c,this.d,this.b,n,!0)},s.Nj=function(){return this.a.yk(this.c,this.d,this.b)},s.Wb=function(n){this.a.zk(this.c,this.d,this.b,n)},s.Dk=function(){this.a.Bk(this.c,this.d,this.b)},s.b=0,S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1318),k(767,496,{},cae),s.vk=function(n,t,i,r,c){return zY(n,n.Lh(),n.Bh())==this.b?this.$k()&&r?TY(n):n.Lh():null},s.wk=function(n,t,i,r,c){var o,l;return n.Lh()&&(c=(o=n.Bh(),o>=0?n.wh(c):n.Lh().Ph(n,-1-o,null,c))),l=Ai(n.zh(),this.e),n.yh(r,l,c)},s.xk=function(n,t,i,r,c){var o;return o=Ai(n.zh(),this.e),n.yh(null,o,c)},s.yk=function(n,t,i){var r;return r=Ai(n.zh(),this.e),!!n.Lh()&&n.Bh()==r},s.zk=function(n,t,i,r){var c,o,l,a,b;if(r!=null&&!GY(this.a,r))throw R(new rk(aq+(K(r,57)?Kde(u(r,57).zh()):bhe(Ko(r)))+hq+this.a+"'"));if(c=n.Lh(),l=Ai(n.zh(),this.e),ne(r)!==ne(c)||n.Bh()!=l&&r!=null){if(h9(n,u(r,57)))throw R(new jn(RE+n.Ib()));b=null,c&&(b=(o=n.Bh(),o>=0?n.wh(b):n.Lh().Ph(n,-1-o,null,b))),a=u(r,52),a&&(b=a.Nh(n,Ai(a.zh(),this.b),null,b)),b=n.yh(a,l,b),b&&b.lj()}else n.rh()&&n.sh()&&Vt(n,new kr(n,1,l,r,r))},s.Bk=function(n,t,i){var r,c,o,l;r=n.Lh(),r?(l=(c=n.Bh(),c>=0?n.wh(null):n.Lh().Ph(n,-1-c,null,null)),o=Ai(n.zh(),this.e),l=n.yh(null,o,l),l&&l.lj()):n.rh()&&n.sh()&&Vt(n,new lS(n,1,this.e,null,null))},s.$k=function(){return!1},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",767),k(1302,767,{},D_e),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1302),k(558,496,{}),s.vk=function(n,t,i,r,c){var o;return o=t.hi(i),o==null?this.b:ne(o)===ne(j1)?null:o},s.yk=function(n,t,i){var r;return r=t.hi(i),r!=null&&(ne(r)===ne(j1)||!Yt(r,this.b))},s.zk=function(n,t,i,r){var c,o;n.rh()&&n.sh()?(c=(o=t.hi(i),o==null?this.b:ne(o)===ne(j1)?null:o),r==null?this.c!=null?(t.ii(i,null),r=this.b):this.b!=null?t.ii(i,j1):t.ii(i,null):(this.yl(r),t.ii(i,r)),Vt(n,this.d.zl(n,1,this.e,c,r))):r==null?this.c!=null?t.ii(i,null):this.b!=null?t.ii(i,j1):t.ii(i,null):(this.yl(r),t.ii(i,r))},s.Bk=function(n,t,i){var r,c;n.rh()&&n.sh()?(r=(c=t.hi(i),c==null?this.b:ne(c)===ne(j1)?null:c),t.ji(i),Vt(n,this.d.zl(n,1,this.e,r,this.b))):t.ji(i)},s.yl=function(n){throw R(new ZEe)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",558),k(Tv,1,{},ao),s.zl=function(n,t,i,r,c){return new lS(n,t,i,r,c)},s.Al=function(n,t,i,r,c,o){return new FX(n,t,i,r,c,o)};var I9e,D9e,$9e,L9e,P9e,R9e,z9e,Mce,B9e;S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Tv),k(1319,Tv,{},Jh),s.zl=function(n,t,i,r,c){return new Pae(n,t,i,Oe(xe(r)),Oe(xe(c)))},s.Al=function(n,t,i,r,c,o){return new d$e(n,t,i,Oe(xe(r)),Oe(xe(c)),o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1319),k(1320,Tv,{},uw),s.zl=function(n,t,i,r,c){return new mhe(n,t,i,u(r,220).a,u(c,220).a)},s.Al=function(n,t,i,r,c,o){return new u$e(n,t,i,u(r,220).a,u(c,220).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1320),k(1321,Tv,{},F$),s.zl=function(n,t,i,r,c){return new vhe(n,t,i,u(r,179).a,u(c,179).a)},s.Al=function(n,t,i,r,c,o){return new s$e(n,t,i,u(r,179).a,u(c,179).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1321),k(1322,Tv,{},q$),s.zl=function(n,t,i,r,c){return new Rae(n,t,i,Y(ee(r)),Y(ee(c)))},s.Al=function(n,t,i,r,c,o){return new o$e(n,t,i,Y(ee(r)),Y(ee(c)),o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1322),k(1323,Tv,{},G$),s.zl=function(n,t,i,r,c){return new jhe(n,t,i,u(r,160).a,u(c,160).a)},s.Al=function(n,t,i,r,c,o){return new l$e(n,t,i,u(r,160).a,u(c,160).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1323),k(1324,Tv,{},kH),s.zl=function(n,t,i,r,c){return new zae(n,t,i,u(r,17).a,u(c,17).a)},s.Al=function(n,t,i,r,c,o){return new f$e(n,t,i,u(r,17).a,u(c,17).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1324),k(1325,Tv,{},U7),s.zl=function(n,t,i,r,c){return new yhe(n,t,i,u(r,190).a,u(c,190).a)},s.Al=function(n,t,i,r,c,o){return new a$e(n,t,i,u(r,190).a,u(c,190).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1325),k(1326,Tv,{},Uh),s.zl=function(n,t,i,r,c){return new khe(n,t,i,u(r,191).a,u(c,191).a)},s.Al=function(n,t,i,r,c,o){return new h$e(n,t,i,u(r,191).a,u(c,191).a,o)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1326),k(1304,558,{},qIe),s.yl=function(n){if(!this.a.ck(n))throw R(new rk(aq+Ko(n)+hq+this.a+"'"))},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1304),k(1305,558,{},ANe),s.yl=function(n){},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1305),k(768,558,{}),s.yk=function(n,t,i){var r;return r=t.hi(i),r!=null},s.zk=function(n,t,i,r){var c,o;n.rh()&&n.sh()?(c=!0,o=t.hi(i),o==null?(c=!1,o=this.b):ne(o)===ne(j1)&&(o=null),r==null?this.c!=null?(t.ii(i,null),r=this.b):t.ii(i,j1):(this.yl(r),t.ii(i,r)),Vt(n,this.d.Al(n,1,this.e,o,r,!c))):r==null?this.c!=null?t.ii(i,null):t.ii(i,j1):(this.yl(r),t.ii(i,r))},s.Bk=function(n,t,i){var r,c;n.rh()&&n.sh()?(r=!0,c=t.hi(i),c==null?(r=!1,c=this.b):ne(c)===ne(j1)&&(c=null),t.ji(i),Vt(n,this.d.Al(n,2,this.e,c,this.b,r))):t.ji(i)},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",768),k(1306,768,{},GIe),s.yl=function(n){if(!this.a.ck(n))throw R(new rk(aq+Ko(n)+hq+this.a+"'"))},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1306),k(1307,768,{},TNe),s.yl=function(n){},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1307),k(400,496,{},ER),s.vk=function(n,t,i,r,c){var o,l,a,b,w;if(w=t.hi(i),this.qk()&&ne(w)===ne(j1))return null;if(this.$k()&&r&&w!=null){if(a=u(w,52),a.Rh()&&(b=B0(n,a),a!=b)){if(!GY(this.a,b))throw R(new rk(aq+Ko(b)+hq+this.a+"'"));t.ii(i,w=b),this.Zk()&&(o=u(b,52),l=a.Ph(n,this.b?Ai(a.zh(),this.b):-1-Ai(n.zh(),this.e),null,null),!o.Lh()&&(l=o.Nh(n,this.b?Ai(o.zh(),this.b):-1-Ai(n.zh(),this.e),null,l)),l&&l.lj()),n.rh()&&n.sh()&&Vt(n,new lS(n,9,this.e,a,b))}return w}else return w},s.wk=function(n,t,i,r,c){var o,l;return l=t.hi(i),ne(l)===ne(j1)&&(l=null),t.ii(i,r),this.Jj()?ne(l)!==ne(r)&&l!=null&&(o=u(l,52),c=o.Ph(n,Ai(o.zh(),this.b),null,c)):this.Zk()&&l!=null&&(c=u(l,52).Ph(n,-1-Ai(n.zh(),this.e),null,c)),n.rh()&&n.sh()&&(!c&&(c=new j0(4)),c.kj(new lS(n,1,this.e,l,r))),c},s.xk=function(n,t,i,r,c){var o;return o=t.hi(i),ne(o)===ne(j1)&&(o=null),t.ji(i),n.rh()&&n.sh()&&(!c&&(c=new j0(4)),this.qk()?c.kj(new lS(n,2,this.e,o,null)):c.kj(new lS(n,1,this.e,o,null))),c},s.yk=function(n,t,i){var r;return r=t.hi(i),r!=null},s.zk=function(n,t,i,r){var c,o,l,a,b;if(r!=null&&!GY(this.a,r))throw R(new rk(aq+(K(r,57)?Kde(u(r,57).zh()):bhe(Ko(r)))+hq+this.a+"'"));b=t.hi(i),a=b!=null,this.qk()&&ne(b)===ne(j1)&&(b=null),l=null,this.Jj()?ne(b)!==ne(r)&&(b!=null&&(c=u(b,52),l=c.Ph(n,Ai(c.zh(),this.b),null,l)),r!=null&&(c=u(r,52),l=c.Nh(n,Ai(c.zh(),this.b),null,l))):this.Zk()&&ne(b)!==ne(r)&&(b!=null&&(l=u(b,52).Ph(n,-1-Ai(n.zh(),this.e),null,l)),r!=null&&(l=u(r,52).Nh(n,-1-Ai(n.zh(),this.e),null,l))),r==null&&this.qk()?t.ii(i,j1):t.ii(i,r),n.rh()&&n.sh()?(o=new FX(n,1,this.e,b,r,this.qk()&&!a),l?(l.kj(o),l.lj()):Vt(n,o)):l&&l.lj()},s.Bk=function(n,t,i){var r,c,o,l,a;a=t.hi(i),l=a!=null,this.qk()&&ne(a)===ne(j1)&&(a=null),o=null,a!=null&&(this.Jj()?(r=u(a,52),o=r.Ph(n,Ai(r.zh(),this.b),null,o)):this.Zk()&&(o=u(a,52).Ph(n,-1-Ai(n.zh(),this.e),null,o))),t.ji(i),n.rh()&&n.sh()?(c=new FX(n,this.qk()?2:1,this.e,a,null,l),o?(o.kj(c),o.lj()):Vt(n,c)):o&&o.lj()},s.Jj=function(){return!1},s.Zk=function(){return!1},s.$k=function(){return!1},s.qk=function(){return!1},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",400),k(559,400,{},BZ),s.Zk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",559),k(1310,559,{},xOe),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1310),k(770,559,{},ole),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",770),k(1312,770,{},OOe),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1312),k(635,559,{},nX),s.Jj=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",635),k(1311,635,{},$_e),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1311),k(771,635,{},Hle),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",771),k(1313,771,{},L_e),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1313),k(636,400,{},lle),s.$k=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",636),k(1314,636,{},_Oe),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1314),k(772,636,{},Ule),s.Jj=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",772),k(1315,772,{},P_e),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1315),k(1308,400,{},NOe),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1308),k(769,400,{},Kle),s.Jj=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",769),k(1309,769,{},R_e),s.qk=function(){return!0},S(vn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1309),k(773,560,fq,zfe),s.vl=function(n){return new zfe(this.a,this.c,n)},s.kd=function(){return this.b},s.wl=function(n,t,i){return O5n(this,n,this.b,i)},s.xl=function(n,t,i){return _5n(this,n,this.b,i)},S(vn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",773),k(1316,1,Cne,PEe),s.Ck=function(n){return this.a},s.Nj=function(){return K(this.a,96)?u(this.a,96).Nj():!this.a.dc()},s.Wb=function(n){this.a.$b(),this.a.Fc(u(n,15))},s.Dk=function(){K(this.a,96)?u(this.a,96).Dk():this.a.$b()},S(vn,"EStructuralFeatureImpl/SettingMany",1316),k(1317,560,fq,tLe),s.ul=function(n){return new GZ((oi(),oT),this.b.ni(this.a,n))},s.kd=function(){return null},s.wl=function(n,t,i){return i},s.xl=function(n,t,i){return i},S(vn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1317),k(637,560,fq,GZ),s.ul=function(n){return new GZ(this.c,n)},s.kd=function(){return this.a},s.wl=function(n,t,i){return i},s.xl=function(n,t,i){return i},S(vn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",637),k(394,490,Dh,aa),s.Zi=function(n){return ce(Ef,fn,29,n,0,1)},s.Vi=function(){return!1},S(vn,"ESuperAdapter/1",394),k(443,436,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,831:1,52:1,98:1,157:1,443:1,117:1,118:1},H7),s.Hh=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new uS(this,Mc,this)),this.a}return Il(this,n-Kn((cn(),Tp)),ln((r=u(Sn(this,16),29),r||Tp),n),t,i)},s.Qh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new he($t,this,0,3)),oc(this.Ab,n,i);case 2:return!this.a&&(this.a=new uS(this,Mc,this)),oc(this.a,n,i)}return c=u(ln((r=u(Sn(this,16),29),r||(cn(),Tp)),t),69),c.tk().xk(this,Os(this),t-Kn((cn(),Tp)),n,i)},s.Sh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Nl(this,n-Kn((cn(),Tp)),ln((t=u(Sn(this,16),29),t||Tp),n))},s.Zh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab),!this.Ab&&(this.Ab=new he($t,this,0,3)),zi(this.Ab,u(t,16));return;case 1:ks(this,pt(t));return;case 2:!this.a&&(this.a=new uS(this,Mc,this)),ut(this.a),!this.a&&(this.a=new uS(this,Mc,this)),zi(this.a,u(t,16));return}Pl(this,n-Kn((cn(),Tp)),ln((i=u(Sn(this,16),29),i||Tp),n),t)},s.ei=function(){return cn(),Tp},s.gi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new he($t,this,0,3)),ut(this.Ab);return;case 1:ks(this,null);return;case 2:!this.a&&(this.a=new uS(this,Mc,this)),ut(this.a);return}Ll(this,n-Kn((cn(),Tp)),ln((t=u(Sn(this,16),29),t||Tp),n))},S(vn,"ETypeParameterImpl",443),k(444,81,ru,uS),s.Kj=function(n,t){return yTn(this,u(n,87),t)},s.Lj=function(n,t){return kTn(this,u(n,87),t)},S(vn,"ETypeParameterImpl/1",444),k(634,45,mv,mK),s.ec=function(){return new VL(this)},S(vn,"ETypeParameterImpl/2",634),k(555,Ka,uo,VL),s.Ec=function(n){return h_e(this,u(n,87))},s.Fc=function(n){var t,i,r;for(r=!1,i=n.Jc();i.Ob();)t=u(i.Pb(),87),Ht(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){Fu(this.a)},s.Gc=function(n){return xs(this.a,n)},s.Jc=function(){var n;return n=new F2(new X(this.a).a),new WL(n)},s.Kc=function(n){return qLe(this,n)},s.gc=function(){return Cj(this.a)},S(vn,"ETypeParameterImpl/2/1",555),k(556,1,xr,WL),s.Nb=function(n){Fr(this,n)},s.Pb=function(){return u(nv(this.a).jd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){QPe(this.a)},S(vn,"ETypeParameterImpl/2/1/1",556),k(1278,45,mv,CAe),s._b=function(n){return Er(n)?BX(this,n):!!Bc(this.f,n)},s.xc=function(n){var t,i;return t=Er(n)?ts(this,n):fu(Bc(this.f,n)),K(t,832)?(i=u(t,832),t=i.Hk(),Ht(this,u(n,240),t),t):t??(n==null?(BK(),van):null)},S(vn,"EValidatorRegistryImpl",1278),k(1300,707,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,1989:1,52:1,98:1,157:1,117:1,118:1},Hh),s.ni=function(n,t){switch(n.ek()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:iu(t);case 25:return Bkn(t);case 27:return nkn(t);case 28:return tkn(t);case 29:return t==null?null:Ixe(tT[0],u(t,205));case 41:return t==null?"":Rb(u(t,296));case 42:return iu(t);case 50:return pt(t);default:throw R(new jn(Y9+n.ve()+rp))}},s.oi=function(n){var t,i,r,c,o,l,a,b,w,v,E,M,x,N,D,F;switch(n.G==-1&&(n.G=(M=ol(n),M?Hd(M.ri(),n):-1)),n.G){case 0:return i=new vK,i;case 1:return t=new z5,t;case 2:return r=new sj,r;case 4:return c=new QL,c;case 5:return o=new _Ae,o;case 6:return l=new KEe,l;case 7:return a=new SC,a;case 10:return w=new Gy,w;case 11:return v=new yK,v;case 12:return E=new QIe,E;case 13:return x=new kK,x;case 14:return N=new ale,N;case 17:return D=new B$,D;case 18:return b=new dw,b;case 19:return F=new H7,F;default:throw R(new jn(hne+n.zb+rp))}},s.pi=function(n,t){switch(n.ek()){case 20:return t==null?null:new Dse(t);case 21:return t==null?null:new M0(t);case 23:case 22:return t==null?null:Ljn(t);case 26:case 24:return t==null?null:uO(hl(t,-128,127)<<24>>24);case 25:return Dxn(t);case 27:return yEn(t);case 28:return kEn(t);case 29:return BTn(t);case 32:case 31:return t==null?null:V2(t);case 38:case 37:return t==null?null:new hse(t);case 40:case 39:return t==null?null:Se(hl(t,Zr,Wt));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:K2(fF(t));case 49:case 48:return t==null?null:t9(hl(t,dq,32767)<<16>>16);case 50:return t;default:throw R(new jn(Y9+n.ve()+rp))}},S(vn,"EcoreFactoryImpl",1300),k(546,184,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,1987:1,52:1,98:1,157:1,184:1,546:1,117:1,118:1,677:1},AIe),s.gb=!1,s.hb=!1;var F9e,man=!1;S(vn,"EcorePackageImpl",546),k(1196,1,{832:1},J$),s.Hk=function(){return iOe(),yan},S(vn,"EcorePackageImpl/1",1196),k(1205,1,Bt,sw),s.ck=function(n){return K(n,154)},s.dk=function(n){return ce(GN,fn,154,n,0,1)},S(vn,"EcorePackageImpl/10",1205),k(1206,1,Bt,k3),s.ck=function(n){return K(n,197)},s.dk=function(n){return ce(mce,fn,197,n,0,1)},S(vn,"EcorePackageImpl/11",1206),k(1207,1,Bt,ow),s.ck=function(n){return K(n,57)},s.dk=function(n){return ce(pb,fn,57,n,0,1)},S(vn,"EcorePackageImpl/12",1207),k(1208,1,Bt,QM),s.ck=function(n){return K(n,401)},s.dk=function(n){return ce(Af,U2e,62,n,0,1)},S(vn,"EcorePackageImpl/13",1208),k(1209,1,Bt,eC),s.ck=function(n){return K(n,240)},s.dk=function(n){return ce(xa,fn,240,n,0,1)},S(vn,"EcorePackageImpl/14",1209),k(1210,1,Bt,v0),s.ck=function(n){return K(n,502)},s.dk=function(n){return ce(Ep,fn,2065,n,0,1)},S(vn,"EcorePackageImpl/15",1210),k(1211,1,Bt,U$),s.ck=function(n){return K(n,102)},s.dk=function(n){return ce(Hm,Av,19,n,0,1)},S(vn,"EcorePackageImpl/16",1211),k(1212,1,Bt,Jy),s.ck=function(n){return K(n,178)},s.dk=function(n){return ce(Vs,Av,178,n,0,1)},S(vn,"EcorePackageImpl/17",1212),k(1213,1,Bt,B5),s.ck=function(n){return K(n,467)},s.dk=function(n){return ce(Jm,fn,467,n,0,1)},S(vn,"EcorePackageImpl/18",1213),k(1214,1,Bt,F5),s.ck=function(n){return K(n,547)},s.dk=function(n){return ce(Tu,jQe,547,n,0,1)},S(vn,"EcorePackageImpl/19",1214),k(1197,1,Bt,Uy),s.ck=function(n){return K(n,332)},s.dk=function(n){return ce(Um,Av,35,n,0,1)},S(vn,"EcorePackageImpl/2",1197),k(1215,1,Bt,H$),s.ck=function(n){return K(n,246)},s.dk=function(n){return ce(Mc,zQe,87,n,0,1)},S(vn,"EcorePackageImpl/20",1215),k(1216,1,Bt,K$),s.ck=function(n){return K(n,443)},s.dk=function(n){return ce(Ls,fn,831,n,0,1)},S(vn,"EcorePackageImpl/21",1216),k(1217,1,Bt,q5),s.ck=function(n){return m2(n)},s.dk=function(n){return ce(Fi,me,471,n,8,1)},S(vn,"EcorePackageImpl/22",1217),k(1218,1,Bt,Z$),s.ck=function(n){return K(n,195)},s.dk=function(n){return ce(fo,me,195,n,0,2)},S(vn,"EcorePackageImpl/23",1218),k(1219,1,Bt,K7),s.ck=function(n){return K(n,220)},s.dk=function(n){return ce(j6,me,220,n,0,1)},S(vn,"EcorePackageImpl/24",1219),k(1220,1,Bt,X$),s.ck=function(n){return K(n,179)},s.dk=function(n){return ce(VE,me,179,n,0,1)},S(vn,"EcorePackageImpl/25",1220),k(1221,1,Bt,jH),s.ck=function(n){return K(n,205)},s.dk=function(n){return ce(Sq,me,205,n,0,1)},S(vn,"EcorePackageImpl/26",1221),k(1222,1,Bt,SH),s.ck=function(n){return!1},s.dk=function(n){return ce(c8e,fn,2161,n,0,1)},S(vn,"EcorePackageImpl/27",1222),k(1223,1,Bt,Du),s.ck=function(n){return v2(n)},s.dk=function(n){return ce(Wi,me,343,n,7,1)},S(vn,"EcorePackageImpl/28",1223),k(1224,1,Bt,Ms),s.ck=function(n){return K(n,61)},s.dk=function(n){return ce(y9e,om,61,n,0,1)},S(vn,"EcorePackageImpl/29",1224),k(1198,1,Bt,Pc),s.ck=function(n){return K(n,503)},s.dk=function(n){return ce($t,{3:1,4:1,5:1,1982:1},584,n,0,1)},S(vn,"EcorePackageImpl/3",1198),k(1225,1,Bt,Xc),s.ck=function(n){return K(n,566)},s.dk=function(n){return ce(S9e,fn,1988,n,0,1)},S(vn,"EcorePackageImpl/30",1225),k(1226,1,Bt,Yu),s.ck=function(n){return K(n,159)},s.dk=function(n){return ce(H9e,om,159,n,0,1)},S(vn,"EcorePackageImpl/31",1226),k(1227,1,Bt,x1),s.ck=function(n){return K(n,74)},s.dk=function(n){return ce(LJ,ZQe,74,n,0,1)},S(vn,"EcorePackageImpl/32",1227),k(1228,1,Bt,Qp),s.ck=function(n){return K(n,160)},s.dk=function(n){return ce(u8,me,160,n,0,1)},S(vn,"EcorePackageImpl/33",1228),k(1229,1,Bt,Hy),s.ck=function(n){return K(n,17)},s.dk=function(n){return ce(Or,me,17,n,0,1)},S(vn,"EcorePackageImpl/34",1229),k(1230,1,Bt,nC),s.ck=function(n){return K(n,296)},s.dk=function(n){return ce(rme,fn,296,n,0,1)},S(vn,"EcorePackageImpl/35",1230),k(1231,1,Bt,lw),s.ck=function(n){return K(n,190)},s.dk=function(n){return ce(up,me,190,n,0,1)},S(vn,"EcorePackageImpl/36",1231),k(1232,1,Bt,Fo),s.ck=function(n){return K(n,91)},s.dk=function(n){return ce(cme,fn,91,n,0,1)},S(vn,"EcorePackageImpl/37",1232),k(1233,1,Bt,e2),s.ck=function(n){return K(n,585)},s.dk=function(n){return ce(q9e,fn,585,n,0,1)},S(vn,"EcorePackageImpl/38",1233),k(1234,1,Bt,j3),s.ck=function(n){return!1},s.dk=function(n){return ce(u8e,fn,2162,n,0,1)},S(vn,"EcorePackageImpl/39",1234),k(1199,1,Bt,tC),s.ck=function(n){return K(n,88)},s.dk=function(n){return ce(Ef,fn,29,n,0,1)},S(vn,"EcorePackageImpl/4",1199),k(1235,1,Bt,O1),s.ck=function(n){return K(n,191)},s.dk=function(n){return ce(sp,me,191,n,0,1)},S(vn,"EcorePackageImpl/40",1235),k(1236,1,Bt,Ky),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(vn,"EcorePackageImpl/41",1236),k(1237,1,Bt,G5),s.ck=function(n){return K(n,582)},s.dk=function(n){return ce(j9e,fn,582,n,0,1)},S(vn,"EcorePackageImpl/42",1237),k(1238,1,Bt,Kh),s.ck=function(n){return!1},s.dk=function(n){return ce(s8e,me,2163,n,0,1)},S(vn,"EcorePackageImpl/43",1238),k(1239,1,Bt,iC),s.ck=function(n){return K(n,43)},s.dk=function(n){return ce(jg,dF,43,n,0,1)},S(vn,"EcorePackageImpl/44",1239),k(1200,1,Bt,Z7),s.ck=function(n){return K(n,141)},s.dk=function(n){return ce(Oa,fn,141,n,0,1)},S(vn,"EcorePackageImpl/5",1200),k(1201,1,Bt,V$),s.ck=function(n){return K(n,155)},s.dk=function(n){return ce(Ece,fn,155,n,0,1)},S(vn,"EcorePackageImpl/6",1201),k(1202,1,Bt,X7),s.ck=function(n){return K(n,456)},s.dk=function(n){return ce($J,fn,672,n,0,1)},S(vn,"EcorePackageImpl/7",1202),k(1203,1,Bt,V7),s.ck=function(n){return K(n,566)},s.dk=function(n){return ce(od,fn,681,n,0,1)},S(vn,"EcorePackageImpl/8",1203),k(1204,1,Bt,n2),s.ck=function(n){return K(n,466)},s.dk=function(n){return ce(nT,fn,466,n,0,1)},S(vn,"EcorePackageImpl/9",1204),k(1016,2029,kQe,ZAe),s.Ji=function(n,t){m7n(this,u(t,412))},s.Ni=function(n,t){JJe(this,n,u(t,412))},S(vn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1016),k(1017,150,I_,bIe),s.gj=function(){return this.a.a},S(vn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1017),k(1044,1043,{},Exe),S("org.eclipse.emf.ecore.plugin","EcorePlugin",1044);var q9e=xi(XQe,"Resource");k(782,1477,VQe),s.El=function(n){},s.Fl=function(n){},s.Bl=function(){return!this.a&&(this.a=new dK(this)),this.a},s.Cl=function(n){var t,i,r,c,o;if(r=n.length,r>0)if(Cn(0,n.length),n.charCodeAt(0)==47){for(o=new vs(4),c=1,t=1;t<r;++t)Cn(t,n.length),n.charCodeAt(t)==47&&(ye(o,c==t?"":(Pr(c,t,n.length),n.substr(c,t-c))),c=t+1);return ye(o,(Cn(c,n.length+1),n.substr(c))),aAn(this,o)}else Cn(r-1,n.length),n.charCodeAt(r-1)==63&&(i=Dle(n,Js(63),r-2),i>0&&(n=(Pr(0,i,n.length),n.substr(0,i))));return CCn(this,n)},s.Dl=function(){return this.c},s.Ib=function(){var n;return Rb(this.Om)+"@"+(n=gi(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},s.b=!1,S(xne,"ResourceImpl",782),k(1478,782,VQe,zEe),S(xne,"BinaryResourceImpl",1478),k(1156,694,Sne),s.$i=function(n){return K(n,57)?nyn(this,u(n,57)):K(n,585)?new Bn(u(n,585).Bl()):ne(n)===ne(this.f)?u(n,16).Jc():(vk(),HN.a)},s.Ob=function(){return F0e(this)},s.a=!1,S(Si,"EcoreUtil/ContentTreeIterator",1156),k(1479,1156,Sne,UNe),s.$i=function(n){return ne(n)===ne(this.f)?u(n,15).Jc():new I$e(u(n,57))},S(xne,"ResourceImpl/5",1479),k(644,2041,RQe,dK),s.Gc=function(n){return this.i<=4?b9(this,n):K(n,52)&&u(n,52).Fh()==this.a},s.Ji=function(n,t){n==this.i-1&&(this.a.b||(this.a.b=!0))},s.Li=function(n,t){n==0?this.a.b||(this.a.b=!0):gV(this,n,t)},s.Ni=function(n,t){},s.Oi=function(n,t,i){},s.Ij=function(){return 2},s.gj=function(){return this.a},s.Jj=function(){return!0},s.Kj=function(n,t){var i;return i=u(n,52),t=i.bi(this.a,t),t},s.Lj=function(n,t){var i;return i=u(n,52),i.bi(null,t)},s.Mj=function(){return!1},s.Pi=function(){return!0},s.Zi=function(n){return ce(pb,fn,57,n,0,1)},s.Vi=function(){return!1},S(xne,"ResourceImpl/ContentsEList",644),k(950,2011,I9,BEe),s.dd=function(n){return this.a.Hi(n)},s.gc=function(){return this.a.gc()},S(Si,"AbstractSequentialInternalEList/1",950);var G9e,J9e,Jr,U9e;k(622,1,{},Q_e);var PJ,RJ;S(Si,"BasicExtendedMetaData",622),k(1147,1,{},KCe),s.Gl=function(){return null},s.Hl=function(){return this.a==-2&&RC(this,ITn(this.d,this.b)),this.a},s.Il=function(){return null},s.Jl=function(){return sn(),sn(),hc},s.ve=function(){return this.c==t8&&Due(this,hqe(this.d,this.b)),this.c},s.Kl=function(){return 0},s.a=-2,s.c=t8,S(Si,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1147),k(1148,1,{},g$e),s.Gl=function(){return this.a==(Lk(),PJ)&&oK(this,bNn(this.f,this.b)),this.a},s.Hl=function(){return 0},s.Il=function(){return this.c==(Lk(),PJ)&&zC(this,gNn(this.f,this.b)),this.c},s.Jl=function(){return!this.d&&BC(this,XIn(this.f,this.b)),this.d},s.ve=function(){return this.e==t8&&lK(this,hqe(this.f,this.b)),this.e},s.Kl=function(){return this.g==-2&&Q5(this,QAn(this.f,this.b)),this.g},s.e=t8,s.g=-2,S(Si,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1148),k(1146,1,{},ZCe),s.b=!1,s.c=!1,S(Si,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1146),k(1149,1,{},w$e),s.c=-2,s.e=t8,s.f=t8,S(Si,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1149),k(578,620,ru,bR),s.Ij=function(){return this.c},s.ll=function(){return!1},s.Ti=function(n,t){return t},s.c=0,S(Si,"EDataTypeEList",578);var H9e=xi(Si,"FeatureMap");k(75,578,{3:1,4:1,20:1,31:1,55:1,16:1,15:1,59:1,70:1,66:1,61:1,76:1,159:1,219:1,1985:1,71:1,96:1},Bi),s._c=function(n,t){POn(this,n,u(t,74))},s.Ec=function(n){return nOn(this,u(n,74))},s.Ei=function(n){nvn(this,u(n,74))},s.Kj=function(n,t){return Npn(this,u(n,74),t)},s.Lj=function(n,t){return Lle(this,u(n,74),t)},s.Qi=function(n,t){return tIn(this,n,t)},s.Ti=function(n,t){return R$n(this,n,u(t,74))},s.fd=function(n,t){return k_n(this,n,u(t,74))},s.Rj=function(n,t){return Ipn(this,u(n,74),t)},s.Sj=function(n,t){return v_e(this,u(n,74),t)},s.Tj=function(n,t,i){return qAn(this,u(n,74),u(t,74),i)},s.Wi=function(n,t){return oY(this,n,u(t,74))},s.Ll=function(n,t){return $be(this,n,t)},s.ad=function(n,t){var i,r,c,o,l,a,b,w,v;for(w=new Nw(t.gc()),c=t.Jc();c.Ob();)if(r=u(c.Pb(),74),o=r.Ik(),W1(this.e,o))(!o.Pi()||!iz(this,o,r.kd())&&!b9(w,r))&&lt(w,r);else{for(v=_s(this.e.zh(),o),i=u(this.g,122),l=!0,a=0;a<this.i;++a)if(b=i[a],v.Zl(b.Ik())){u(uv(this,a,r),74),l=!1;break}l&&lt(w,r)}return i1e(this,n,w)},s.Fc=function(n){var t,i,r,c,o,l,a,b,w;for(b=new Nw(n.gc()),r=n.Jc();r.Ob();)if(i=u(r.Pb(),74),c=i.Ik(),W1(this.e,c))(!c.Pi()||!iz(this,c,i.kd())&&!b9(b,i))&&lt(b,i);else{for(w=_s(this.e.zh(),c),t=u(this.g,122),o=!0,l=0;l<this.i;++l)if(a=t[l],w.Zl(a.Ik())){u(uv(this,l,i),74),o=!1;break}o&&lt(b,i)}return zi(this,b)},s.Ci=function(n){return this.j=-1,JY(this,this.i,n)},s.Ml=function(n,t,i){return Mbe(this,n,t,i)},s.Uk=function(n,t){return VO(this,n,t)},s.Nl=function(n,t,i){return nge(this,n,t,i)},s.Ol=function(){return this},s.Pl=function(n,t){return QO(this,n,t)},s.Ql=function(n){return u(Z(this,n),74).Ik()},s.Rl=function(n){return u(Z(this,n),74).kd()},s.Sl=function(){return this.b},s.Jj=function(){return!0},s.Qj=function(){return!0},s.Tl=function(n){return!CO(this,n)},s.Zi=function(n){return ce(pan,ZQe,341,n,0,1)},s.ml=function(n){return FZ(this,n)},s.Wb=function(n){$x(this,n)},s.Ul=function(n,t){uF(this,n,t)},s.Vl=function(n){return gze(this,n)},s.Wl=function(n){Xqe(this,n)},S(Si,"BasicFeatureMap",75),k(1909,1,u1),s.Nb=function(n){Fr(this,n)},s.Rb=function(n){if(this.g==-1)throw R(new Ys);OR(this);try{BHe(this.e,this.b,this.a,n),this.d=this.e.j,kB(this)}catch(t){throw t=Ki(t),K(t,97)?R(new Cl):R(t)}},s.Ob=function(){return fW(this)},s.Sb=function(){return GBe(this)},s.Pb=function(){return kB(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(GBe(this))return OR(this),this.g=--this.a,this.rl()&&(n=tE(this.e,this.b,this.c,this.a,this.j),this.j=n),this.i=0,this.j;throw R(new ou)},s.Vb=function(){return this.a-1},s.Qb=function(){if(this.g==-1)throw R(new Ys);OR(this);try{CJe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(n){throw n=Ki(n),K(n,97)?R(new Cl):R(n)}},s.rl=function(){return!1},s.Wb=function(n){if(this.g==-1)throw R(new Ys);OR(this);try{aZe(this.e,this.b,this.g,n),this.d=this.e.j}catch(t){throw t=Ki(t),K(t,97)?R(new Cl):R(t)}},s.a=0,s.c=0,s.d=0,s.f=!1,s.g=0,s.i=0,S(Si,"FeatureMapUtil/BasicFeatureEIterator",1909),k(409,1909,u1,Hk),s.Xl=function(){var n,t,i;for(i=this.e.i,n=u(this.e.g,122);this.c<i;){if(t=n[this.c],this.k.Zl(t.Ik()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},s.Yl=function(){var n,t;for(n=u(this.e.g,122);--this.c>=0;)if(t=n[this.c],this.k.Zl(t.Ik()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},S(Si,"BasicFeatureMap/FeatureEIterator",409),k(663,409,u1,AZ),s.rl=function(){return!0},S(Si,"BasicFeatureMap/ResolvingFeatureEIterator",663),k(948,480,oq,$xe),s.mj=function(){return this},S(Si,"EContentsEList/1",948),k(949,480,oq,fxe),s.rl=function(){return!1},S(Si,"EContentsEList/2",949),k(947,285,lq,Lxe),s.tl=function(n){},s.Ob=function(){return!1},s.Sb=function(){return!1},S(Si,"EContentsEList/FeatureIteratorImpl/1",947),k(821,578,ru,Joe),s.Ki=function(){this.a=!0},s.Nj=function(){return this.a},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.a,this.a=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,S(Si,"EDataTypeEList/Unsettable",821),k(1907,578,ru,Zxe),s.Pi=function(){return!0},S(Si,"EDataTypeUniqueEList",1907),k(1908,821,ru,Xxe),s.Pi=function(){return!0},S(Si,"EDataTypeUniqueEList/Unsettable",1908),k(143,81,ru,Qs),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectContainmentEList/Resolving",143),k(1150,541,ru,Hxe),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectContainmentEList/Unsettable/Resolving",1150),k(750,14,ru,xle),s.Ki=function(){this.a=!0},s.Nj=function(){return this.a},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.a,this.a=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,S(Si,"EObjectContainmentWithInverseEList/Unsettable",750),k(1184,750,ru,u_e),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1184),k(742,489,ru,Goe),s.Ki=function(){this.a=!0},s.Nj=function(){return this.a},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.a,this.a=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,S(Si,"EObjectEList/Unsettable",742),k(336,489,ru,F3),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectResolvingEList",336),k(1814,742,ru,Kxe),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectResolvingEList/Unsettable",1814),k(1480,1,{},rf);var van;S(Si,"EObjectValidator",1480),k(545,489,ru,DR),s.fl=function(){return this.d},s.gl=function(){return this.b},s.Jj=function(){return!0},s.jl=function(){return!0},s.b=0,S(Si,"EObjectWithInverseEList",545),k(1187,545,ru,s_e),s.il=function(){return!0},S(Si,"EObjectWithInverseEList/ManyInverse",1187),k(623,545,ru,HZ),s.Ki=function(){this.a=!0},s.Nj=function(){return this.a},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.a,this.a=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,S(Si,"EObjectWithInverseEList/Unsettable",623),k(1186,623,ru,o_e),s.il=function(){return!0},S(Si,"EObjectWithInverseEList/Unsettable/ManyInverse",1186),k(751,545,ru,Ole),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectWithInverseResolvingEList",751),k(33,751,ru,hn),s.il=function(){return!0},S(Si,"EObjectWithInverseResolvingEList/ManyInverse",33),k(752,623,ru,_le),s.kl=function(){return!0},s.Ti=function(n,t){return u6(this,n,u(t,57))},S(Si,"EObjectWithInverseResolvingEList/Unsettable",752),k(1185,752,ru,l_e),s.il=function(){return!0},S(Si,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1185),k(1151,620,ru),s.Ii=function(){return(this.b&1792)==0},s.Ki=function(){this.b|=1},s.hl=function(){return(this.b&4)!=0},s.Jj=function(){return(this.b&40)!=0},s.il=function(){return(this.b&16)!=0},s.jl=function(){return(this.b&8)!=0},s.kl=function(){return(this.b&Z0)!=0},s.Zk=function(){return(this.b&32)!=0},s.ll=function(){return(this.b&Kf)!=0},s.ck=function(n){return this.d?Z$e(this.d,n):this.Ik().Ek().ck(n)},s.Nj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},s.Pi=function(){return(this.b&128)!=0},s.Dk=function(){var n;ut(this),(this.b&2)!=0&&(qo(this.e)?(n=(this.b&1)!=0,this.b&=-2,ik(this,new zf(this.e,2,Ai(this.e.zh(),this.Ik()),n,!1))):this.b&=-2)},s.Vi=function(){return(this.b&1536)==0},s.b=0,S(Si,"EcoreEList/Generic",1151),k(1152,1151,ru,cDe),s.Ik=function(){return this.a},S(Si,"EcoreEList/Dynamic",1152),k(749,66,Dh,Xue),s.Zi=function(n){return lO(this.a.a,n)},S(Si,"EcoreEMap/1",749),k(748,81,ru,Tfe),s.Ji=function(n,t){SB(this.b,u(t,135))},s.Li=function(n,t){Xze(this.b)},s.Mi=function(n,t,i){var r;++(r=this.b,u(t,135),r).e},s.Ni=function(n,t){pW(this.b,u(t,135))},s.Oi=function(n,t,i){pW(this.b,u(i,135)),ne(i)===ne(t)&&u(i,135).yi(_gn(u(t,135).jd())),SB(this.b,u(t,135))},S(Si,"EcoreEMap/DelegateEObjectContainmentEList",748),k(1182,140,J2e,dze),S(Si,"EcoreEMap/Unsettable",1182),k(1183,748,ru,f_e),s.Ki=function(){this.a=!0},s.Nj=function(){return this.a},s.Dk=function(){var n;ut(this),qo(this.e)?(n=this.a,this.a=!1,Vt(this.e,new zf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,S(Si,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1183),k(1155,222,mv,fIe),s.a=!1,s.b=!1,S(Si,"EcoreUtil/Copier",1155),k(744,1,xr,I$e),s.Nb=function(n){Fr(this,n)},s.Ob=function(){return HFe(this)},s.Pb=function(){var n;return HFe(this),n=this.b,this.b=null,n},s.Qb=function(){this.a.Qb()},S(Si,"EcoreUtil/ProperContentIterator",744),k(1481,1480,{},UH);var yan;S(Si,"EcoreValidator",1481);var kan;xi(Si,"FeatureMapUtil/Validator"),k(1255,1,{1990:1},t2),s.Zl=function(n){return!0},S(Si,"FeatureMapUtil/1",1255),k(757,1,{1990:1},dge),s.Zl=function(n){var t;return this.c==n?!0:(t=xe(xn(this.a,n)),t==null?yNn(this,n)?(ILe(this.a,n,(Mn(),c8)),!0):(ILe(this.a,n,(Mn(),tb)),!1):t==(Mn(),c8))},s.e=!1;var Cce;S(Si,"FeatureMapUtil/BasicValidator",757),k(758,45,mv,Boe),S(Si,"FeatureMapUtil/BasicValidator/Cache",758),k(493,55,{20:1,31:1,55:1,16:1,15:1,61:1,76:1,71:1,96:1},gx),s._c=function(n,t){BHe(this.c,this.b,n,t)},s.Ec=function(n){return $be(this.c,this.b,n)},s.ad=function(n,t){return IDn(this.c,this.b,n,t)},s.Fc=function(n){return Yj(this,n)},s.Di=function(n,t){Okn(this.c,this.b,n,t)},s.Tk=function(n,t){return Mbe(this.c,this.b,n,t)},s.Xi=function(n){return cF(this.c,this.b,n,!1)},s.Fi=function(){return mxe(this.c,this.b)},s.Gi=function(){return Sgn(this.c,this.b)},s.Hi=function(n){return N5n(this.c,this.b,n)},s.Uk=function(n,t){return UOe(this,n,t)},s.$b=function(){f4(this)},s.Gc=function(n){return iz(this.c,this.b,n)},s.Hc=function(n){return x9n(this.c,this.b,n)},s.Xb=function(n){return cF(this.c,this.b,n,!0)},s.Ck=function(n){return this},s.bd=function(n){return F6n(this.c,this.b,n)},s.dc=function(){return GP(this)},s.Nj=function(){return!CO(this.c,this.b)},s.Jc=function(){return bkn(this.c,this.b)},s.cd=function(){return gkn(this.c,this.b)},s.dd=function(n){return P7n(this.c,this.b,n)},s.Qi=function(n,t){return tZe(this.c,this.b,n,t)},s.Ri=function(n,t){I5n(this.c,this.b,n,t)},s.ed=function(n){return CJe(this.c,this.b,n)},s.Kc=function(n){return FNn(this.c,this.b,n)},s.fd=function(n,t){return aZe(this.c,this.b,n,t)},s.Wb=function(n){FB(this.c,this.b),Yj(this,u(n,15))},s.gc=function(){return R7n(this.c,this.b)},s.Nc=function(){return G4n(this.c,this.b)},s.Oc=function(n){return q6n(this.c,this.b,n)},s.Ib=function(){var n,t;for(t=new Md,t.a+="[",n=mxe(this.c,this.b);fW(n);)Oc(t,eS(kB(n))),fW(n)&&(t.a+=Ss);return t.a+="]",t.a},s.Dk=function(){FB(this.c,this.b)},S(Si,"FeatureMapUtil/FeatureEList",493),k(631,38,I_,uV),s.ej=function(n){return FS(this,n)},s.jj=function(n){var t,i,r,c,o,l,a;switch(this.d){case 1:case 2:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return this.g=n.fj(),n.dj()==1&&(this.d=1),!0;break}case 3:{switch(c=n.dj(),c){case 3:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return this.d=5,t=new Nw(2),lt(t,this.g),lt(t,n.fj()),this.g=t,!0;break}}break}case 5:{switch(c=n.dj(),c){case 3:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return i=u(this.g,16),i.Ec(n.fj()),!0;break}}break}case 4:{switch(c=n.dj(),c){case 3:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return this.d=1,this.g=n.fj(),!0;break}case 4:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return this.d=6,a=new Nw(2),lt(a,this.n),lt(a,n.hj()),this.n=a,l=B(z(yt,1),Pt,30,15,[this.o,n.ij()]),this.g=l,!0;break}}break}case 6:{switch(c=n.dj(),c){case 4:{if(o=n.gj(),ne(o)===ne(this.c)&&FS(this,null)==n.ej(null))return i=u(this.n,16),i.Ec(n.hj()),l=u(this.g,54),r=ce(yt,Pt,30,l.length+1,15,1),Hu(l,0,r,0,l.length),r[l.length]=n.ij(),this.g=r,!0;break}}break}}return!1},S(Si,"FeatureMapUtil/FeatureENotificationImpl",631),k(551,493,{20:1,31:1,55:1,16:1,15:1,61:1,76:1,159:1,219:1,1985:1,71:1,96:1},vR),s.Ll=function(n,t){return $be(this.c,n,t)},s.Ml=function(n,t,i){return Mbe(this.c,n,t,i)},s.Nl=function(n,t,i){return nge(this.c,n,t,i)},s.Ol=function(){return this},s.Pl=function(n,t){return QO(this.c,n,t)},s.Ql=function(n){return u(cF(this.c,this.b,n,!1),74).Ik()},s.Rl=function(n){return u(cF(this.c,this.b,n,!1),74).kd()},s.Sl=function(){return this.a},s.Tl=function(n){return!CO(this.c,n)},s.Ul=function(n,t){uF(this.c,n,t)},s.Vl=function(n){return gze(this.c,n)},s.Wl=function(n){Xqe(this.c,n)},S(Si,"FeatureMapUtil/FeatureFeatureMap",551),k(1254,1,Cne,HCe),s.Ck=function(n){return cF(this.b,this.a,-1,n)},s.Nj=function(){return!CO(this.b,this.a)},s.Wb=function(n){uF(this.b,this.a,n)},s.Dk=function(){FB(this.b,this.a)},S(Si,"FeatureMapUtil/FeatureValue",1254);var Z6,xce,Oce,X6,jan,ZN=xi(pq,"AnyType");k(667,63,Y1,xK),S(pq,"InvalidDatatypeValueException",667);var zJ=xi(pq,YQe),XN=xi(pq,QQe),K9e=xi(pq,een),San,Iu,Z9e,zg,Ean,Aan,Tan,Man,Can,xan,Oan,_an,Nan,Ian,Dan,ty,$an,iy,uT,Lan,Mp,VN,WN,Pan,sT,oT;k(825,500,{109:1,93:1,92:1,57:1,52:1,98:1,838:1},gse),s.Hh=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Bi(this,0)),this.c):(!this.c&&(this.c=new Bi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)):(!this.c&&(this.c=new Bi(this,0)),u(u(is(this.c,(oi(),zg)),159),219)).Sl();case 2:return i?(!this.b&&(this.b=new Bi(this,2)),this.b):(!this.b&&(this.b=new Bi(this,2)),this.b.b)}return Il(this,n-Kn(this.ei()),ln((this.j&2)==0?this.ei():(!this.k&&(this.k=new cf),this.k).Kk(),n),t,i)},s.Qh=function(n,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Bi(this,0)),VO(this.c,n,i);case 1:return(!this.c&&(this.c=new Bi(this,0)),u(u(is(this.c,(oi(),zg)),159),71)).Uk(n,i);case 2:return!this.b&&(this.b=new Bi(this,2)),VO(this.b,n,i)}return r=u(ln((this.j&2)==0?this.ei():(!this.k&&(this.k=new cf),this.k).Kk(),t),69),r.tk().xk(this,ahe(this),t-Kn(this.ei()),n,i)},s.Sh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)).dc();case 2:return!!this.b&&this.b.i!=0}return Nl(this,n-Kn(this.ei()),ln((this.j&2)==0?this.ei():(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Zh=function(n,t){switch(n){case 0:!this.c&&(this.c=new Bi(this,0)),$x(this.c,t);return;case 1:(!this.c&&(this.c=new Bi(this,0)),u(u(is(this.c,(oi(),zg)),159),219)).Wb(t);return;case 2:!this.b&&(this.b=new Bi(this,2)),$x(this.b,t);return}Pl(this,n-Kn(this.ei()),ln((this.j&2)==0?this.ei():(!this.k&&(this.k=new cf),this.k).Kk(),n),t)},s.ei=function(){return oi(),Z9e},s.gi=function(n){switch(n){case 0:!this.c&&(this.c=new Bi(this,0)),ut(this.c);return;case 1:(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)).$b();return;case 2:!this.b&&(this.b=new Bi(this,2)),ut(this.b);return}Ll(this,n-Kn(this.ei()),ln((this.j&2)==0?this.ei():(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Jf(this):(n=new sf(Jf(this)),n.a+=" (mixed: ",Zj(n,this.c),n.a+=", anyAttribute: ",Zj(n,this.b),n.a+=")",n.a)},S(cr,"AnyTypeImpl",825),k(668,500,{109:1,93:1,92:1,57:1,52:1,98:1,2068:1,668:1},fw),s.Hh=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return Il(this,n-Kn((oi(),ty)),ln((this.j&2)==0?ty:(!this.k&&(this.k=new cf),this.k).Kk(),n),t,i)},s.Sh=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Nl(this,n-Kn((oi(),ty)),ln((this.j&2)==0?ty:(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Zh=function(n,t){switch(n){case 0:f(this,pt(t));return;case 1:m(this,pt(t));return}Pl(this,n-Kn((oi(),ty)),ln((this.j&2)==0?ty:(!this.k&&(this.k=new cf),this.k).Kk(),n),t)},s.ei=function(){return oi(),ty},s.gi=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}Ll(this,n-Kn((oi(),ty)),ln((this.j&2)==0?ty:(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Jf(this):(n=new sf(Jf(this)),n.a+=" (data: ",Oc(n,this.a),n.a+=", target: ",Oc(n,this.b),n.a+=")",n.a)},s.a=null,s.b=null,S(cr,"ProcessingInstructionImpl",668),k(669,825,{109:1,93:1,92:1,57:1,52:1,98:1,838:1,2069:1,669:1},IAe),s.Hh=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Bi(this,0)),this.c):(!this.c&&(this.c=new Bi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)):(!this.c&&(this.c=new Bi(this,0)),u(u(is(this.c,(oi(),zg)),159),219)).Sl();case 2:return i?(!this.b&&(this.b=new Bi(this,2)),this.b):(!this.b&&(this.b=new Bi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Bi(this,0)),pt(QO(this.c,(oi(),uT),!0));case 4:return Ile(this.a,(!this.c&&(this.c=new Bi(this,0)),pt(QO(this.c,(oi(),uT),!0))));case 5:return this.a}return Il(this,n-Kn((oi(),iy)),ln((this.j&2)==0?iy:(!this.k&&(this.k=new cf),this.k).Kk(),n),t,i)},s.Sh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Bi(this,0)),pt(QO(this.c,(oi(),uT),!0))!=null;case 4:return Ile(this.a,(!this.c&&(this.c=new Bi(this,0)),pt(QO(this.c,(oi(),uT),!0))))!=null;case 5:return!!this.a}return Nl(this,n-Kn((oi(),iy)),ln((this.j&2)==0?iy:(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Zh=function(n,t){switch(n){case 0:!this.c&&(this.c=new Bi(this,0)),$x(this.c,t);return;case 1:(!this.c&&(this.c=new Bi(this,0)),u(u(is(this.c,(oi(),zg)),159),219)).Wb(t);return;case 2:!this.b&&(this.b=new Bi(this,2)),$x(this.b,t);return;case 3:pae(this,pt(t));return;case 4:pae(this,Nle(this.a,t));return;case 5:d(this,u(t,155));return}Pl(this,n-Kn((oi(),iy)),ln((this.j&2)==0?iy:(!this.k&&(this.k=new cf),this.k).Kk(),n),t)},s.ei=function(){return oi(),iy},s.gi=function(n){switch(n){case 0:!this.c&&(this.c=new Bi(this,0)),ut(this.c);return;case 1:(!this.c&&(this.c=new Bi(this,0)),u(is(this.c,(oi(),zg)),159)).$b();return;case 2:!this.b&&(this.b=new Bi(this,2)),ut(this.b);return;case 3:!this.c&&(this.c=new Bi(this,0)),uF(this.c,(oi(),uT),null);return;case 4:pae(this,Nle(this.a,null));return;case 5:this.a=null;return}Ll(this,n-Kn((oi(),iy)),ln((this.j&2)==0?iy:(!this.k&&(this.k=new cf),this.k).Kk(),n))},S(cr,"SimpleAnyTypeImpl",669),k(670,500,{109:1,93:1,92:1,57:1,52:1,98:1,2070:1,670:1},NAe),s.Hh=function(n,t,i){switch(n){case 0:return i?(!this.a&&(this.a=new Bi(this,0)),this.a):(!this.a&&(this.a=new Bi(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new io((cn(),bc),Tu,this,1)),this.b):(!this.b&&(this.b=new io((cn(),bc),Tu,this,1)),Wx(this.b));case 2:return i?(!this.c&&(this.c=new io((cn(),bc),Tu,this,2)),this.c):(!this.c&&(this.c=new io((cn(),bc),Tu,this,2)),Wx(this.c));case 3:return!this.a&&(this.a=new Bi(this,0)),is(this.a,(oi(),VN));case 4:return!this.a&&(this.a=new Bi(this,0)),is(this.a,(oi(),WN));case 5:return!this.a&&(this.a=new Bi(this,0)),is(this.a,(oi(),sT));case 6:return!this.a&&(this.a=new Bi(this,0)),is(this.a,(oi(),oT))}return Il(this,n-Kn((oi(),Mp)),ln((this.j&2)==0?Mp:(!this.k&&(this.k=new cf),this.k).Kk(),n),t,i)},s.Qh=function(n,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Bi(this,0)),VO(this.a,n,i);case 1:return!this.b&&(this.b=new io((cn(),bc),Tu,this,1)),sR(this.b,n,i);case 2:return!this.c&&(this.c=new io((cn(),bc),Tu,this,2)),sR(this.c,n,i);case 5:return!this.a&&(this.a=new Bi(this,0)),UOe(is(this.a,(oi(),sT)),n,i)}return r=u(ln((this.j&2)==0?(oi(),Mp):(!this.k&&(this.k=new cf),this.k).Kk(),t),69),r.tk().xk(this,ahe(this),t-Kn((oi(),Mp)),n,i)},s.Sh=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Bi(this,0)),!GP(is(this.a,(oi(),VN)));case 4:return!this.a&&(this.a=new Bi(this,0)),!GP(is(this.a,(oi(),WN)));case 5:return!this.a&&(this.a=new Bi(this,0)),!GP(is(this.a,(oi(),sT)));case 6:return!this.a&&(this.a=new Bi(this,0)),!GP(is(this.a,(oi(),oT)))}return Nl(this,n-Kn((oi(),Mp)),ln((this.j&2)==0?Mp:(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Zh=function(n,t){switch(n){case 0:!this.a&&(this.a=new Bi(this,0)),$x(this.a,t);return;case 1:!this.b&&(this.b=new io((cn(),bc),Tu,this,1)),Gz(this.b,t);return;case 2:!this.c&&(this.c=new io((cn(),bc),Tu,this,2)),Gz(this.c,t);return;case 3:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),VN))),!this.a&&(this.a=new Bi(this,0)),Yj(is(this.a,VN),u(t,16));return;case 4:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),WN))),!this.a&&(this.a=new Bi(this,0)),Yj(is(this.a,WN),u(t,16));return;case 5:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),sT))),!this.a&&(this.a=new Bi(this,0)),Yj(is(this.a,sT),u(t,16));return;case 6:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),oT))),!this.a&&(this.a=new Bi(this,0)),Yj(is(this.a,oT),u(t,16));return}Pl(this,n-Kn((oi(),Mp)),ln((this.j&2)==0?Mp:(!this.k&&(this.k=new cf),this.k).Kk(),n),t)},s.ei=function(){return oi(),Mp},s.gi=function(n){switch(n){case 0:!this.a&&(this.a=new Bi(this,0)),ut(this.a);return;case 1:!this.b&&(this.b=new io((cn(),bc),Tu,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new io((cn(),bc),Tu,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),VN)));return;case 4:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),WN)));return;case 5:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),sT)));return;case 6:!this.a&&(this.a=new Bi(this,0)),f4(is(this.a,(oi(),oT)));return}Ll(this,n-Kn((oi(),Mp)),ln((this.j&2)==0?Mp:(!this.k&&(this.k=new cf),this.k).Kk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Jf(this):(n=new sf(Jf(this)),n.a+=" (mixed: ",Zj(n,this.a),n.a+=")",n.a)},S(cr,"XMLTypeDocumentRootImpl",670),k(1977,707,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1,2071:1},Zy),s.ni=function(n,t){switch(n.ek()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:iu(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return pt(t);case 6:return Wwn(u(t,195));case 12:case 47:case 49:case 11:return VZe(this,n,t);case 13:return t==null?null:PDn(u(t,245));case 15:case 14:return t==null?null:X3n(Y(ee(t)));case 17:return RGe((oi(),t));case 18:return RGe(t);case 21:case 20:return t==null?null:V3n(u(t,160).a);case 27:return Ywn(u(t,195));case 30:return Vqe((oi(),u(t,15)));case 31:return Vqe(u(t,15));case 40:return Vwn((oi(),t));case 42:return zGe((oi(),t));case 43:return zGe(t);case 59:case 48:return Xwn((oi(),t));default:throw R(new jn(Y9+n.ve()+rp))}},s.oi=function(n){var t,i,r,c,o;switch(n.G==-1&&(n.G=(i=ol(n),i?Hd(i.ri(),n):-1)),n.G){case 0:return t=new gse,t;case 1:return r=new fw,r;case 2:return c=new IAe,c;case 3:return o=new NAe,o;default:throw R(new jn(hne+n.zb+rp))}},s.pi=function(n,t){var i,r,c,o,l,a,b,w,v,E,M,x,N,D,F,H;switch(n.ek()){case 5:case 52:case 4:return t;case 6:return hSn(t);case 8:case 7:return t==null?null:XAn(t);case 9:return t==null?null:uO(hl((r=us(t,!0),r.length>0&&(Cn(0,r.length),r.charCodeAt(0)==43)?(Cn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:uO(hl((c=us(t,!0),c.length>0&&(Cn(0,c.length),c.charCodeAt(0)==43)?(Cn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return pt(Vw(this,(oi(),Tan),t));case 12:return pt(Vw(this,(oi(),Man),t));case 13:return t==null?null:new Dse(us(t,!0));case 15:case 14:return rOn(t);case 16:return pt(Vw(this,(oi(),Can),t));case 17:return eqe((oi(),t));case 18:return eqe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return us(t,!0);case 21:case 20:return bOn(t);case 22:return pt(Vw(this,(oi(),xan),t));case 23:return pt(Vw(this,(oi(),Oan),t));case 24:return pt(Vw(this,(oi(),_an),t));case 25:return pt(Vw(this,(oi(),Nan),t));case 26:return pt(Vw(this,(oi(),Ian),t));case 27:return cSn(t);case 30:return nqe((oi(),t));case 31:return nqe(t);case 32:return t==null?null:Se(hl((v=us(t,!0),v.length>0&&(Cn(0,v.length),v.charCodeAt(0)==43)?(Cn(1,v.length+1),v.substr(1)):v),Zr,Wt));case 33:return t==null?null:new M0((E=us(t,!0),E.length>0&&(Cn(0,E.length),E.charCodeAt(0)==43)?(Cn(1,E.length+1),E.substr(1)):E));case 34:return t==null?null:Se(hl((M=us(t,!0),M.length>0&&(Cn(0,M.length),M.charCodeAt(0)==43)?(Cn(1,M.length+1),M.substr(1)):M),Zr,Wt));case 36:return t==null?null:K2(fF((x=us(t,!0),x.length>0&&(Cn(0,x.length),x.charCodeAt(0)==43)?(Cn(1,x.length+1),x.substr(1)):x)));case 37:return t==null?null:K2(fF((N=us(t,!0),N.length>0&&(Cn(0,N.length),N.charCodeAt(0)==43)?(Cn(1,N.length+1),N.substr(1)):N)));case 40:return QSn((oi(),t));case 42:return tqe((oi(),t));case 43:return tqe(t);case 44:return t==null?null:new M0((D=us(t,!0),D.length>0&&(Cn(0,D.length),D.charCodeAt(0)==43)?(Cn(1,D.length+1),D.substr(1)):D));case 45:return t==null?null:new M0((F=us(t,!0),F.length>0&&(Cn(0,F.length),F.charCodeAt(0)==43)?(Cn(1,F.length+1),F.substr(1)):F));case 46:return us(t,!1);case 47:return pt(Vw(this,(oi(),Dan),t));case 59:case 48:return YSn((oi(),t));case 49:return pt(Vw(this,(oi(),$an),t));case 50:return t==null?null:t9(hl((H=us(t,!0),H.length>0&&(Cn(0,H.length),H.charCodeAt(0)==43)?(Cn(1,H.length+1),H.substr(1)):H),dq,32767)<<16>>16);case 51:return t==null?null:t9(hl((o=us(t,!0),o.length>0&&(Cn(0,o.length),o.charCodeAt(0)==43)?(Cn(1,o.length+1),o.substr(1)):o),dq,32767)<<16>>16);case 53:return pt(Vw(this,(oi(),Lan),t));case 55:return t==null?null:t9(hl((l=us(t,!0),l.length>0&&(Cn(0,l.length),l.charCodeAt(0)==43)?(Cn(1,l.length+1),l.substr(1)):l),dq,32767)<<16>>16);case 56:return t==null?null:t9(hl((a=us(t,!0),a.length>0&&(Cn(0,a.length),a.charCodeAt(0)==43)?(Cn(1,a.length+1),a.substr(1)):a),dq,32767)<<16>>16);case 57:return t==null?null:K2(fF((b=us(t,!0),b.length>0&&(Cn(0,b.length),b.charCodeAt(0)==43)?(Cn(1,b.length+1),b.substr(1)):b)));case 58:return t==null?null:K2(fF((w=us(t,!0),w.length>0&&(Cn(0,w.length),w.charCodeAt(0)==43)?(Cn(1,w.length+1),w.substr(1)):w)));case 60:return t==null?null:Se(hl((i=us(t,!0),i.length>0&&(Cn(0,i.length),i.charCodeAt(0)==43)?(Cn(1,i.length+1),i.substr(1)):i),Zr,Wt));case 61:return t==null?null:Se(hl(us(t,!0),Zr,Wt));default:throw R(new jn(Y9+n.ve()+rp))}};var Ran,X9e,zan,V9e;S(cr,"XMLTypeFactoryImpl",1977),k(579,184,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1,1993:1,579:1},EIe),s.N=!1,s.O=!1;var Ban=!1;S(cr,"XMLTypePackageImpl",579),k(1910,1,{832:1},rC),s.Hk=function(){return Ube(),Xan},S(cr,"XMLTypePackageImpl/1",1910),k(1919,1,Bt,cC),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/10",1919),k(1920,1,Bt,W$),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/11",1920),k(1921,1,Bt,J5),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/12",1921),k(1922,1,Bt,uC),s.ck=function(n){return v2(n)},s.dk=function(n){return ce(Wi,me,343,n,7,1)},S(cr,"XMLTypePackageImpl/13",1922),k(1923,1,Bt,_1),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/14",1923),k(1924,1,Bt,Y$),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/15",1924),k(1925,1,Bt,Zh),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/16",1925),k(1926,1,Bt,Q$),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/17",1926),k(1927,1,Bt,eL),s.ck=function(n){return K(n,160)},s.dk=function(n){return ce(u8,me,160,n,0,1)},S(cr,"XMLTypePackageImpl/18",1927),k(1928,1,Bt,EH),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/19",1928),k(1911,1,Bt,i2),s.ck=function(n){return K(n,838)},s.dk=function(n){return ce(ZN,fn,838,n,0,1)},S(cr,"XMLTypePackageImpl/2",1911),k(1929,1,Bt,W7),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/20",1929),k(1930,1,Bt,sC),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/21",1930),k(1931,1,Bt,Xy),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/22",1931),k(1932,1,Bt,nL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/23",1932),k(1933,1,Bt,tL),s.ck=function(n){return K(n,195)},s.dk=function(n){return ce(fo,me,195,n,0,2)},S(cr,"XMLTypePackageImpl/24",1933),k(1934,1,Bt,iL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/25",1934),k(1935,1,Bt,rL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/26",1935),k(1936,1,Bt,Y7),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/27",1936),k(1937,1,Bt,oC),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/28",1937),k(1938,1,Bt,AH),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/29",1938),k(1912,1,Bt,TH),s.ck=function(n){return K(n,668)},s.dk=function(n){return ce(zJ,fn,2068,n,0,1)},S(cr,"XMLTypePackageImpl/3",1912),k(1939,1,Bt,MH),s.ck=function(n){return K(n,17)},s.dk=function(n){return ce(Or,me,17,n,0,1)},S(cr,"XMLTypePackageImpl/30",1939),k(1940,1,Bt,cL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/31",1940),k(1941,1,Bt,uL),s.ck=function(n){return K(n,190)},s.dk=function(n){return ce(up,me,190,n,0,1)},S(cr,"XMLTypePackageImpl/32",1941),k(1942,1,Bt,Vy),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/33",1942),k(1943,1,Bt,Q7),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/34",1943),k(1944,1,Bt,sL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/35",1944),k(1945,1,Bt,oL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/36",1945),k(1946,1,Bt,lL),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/37",1946),k(1947,1,Bt,fL),s.ck=function(n){return K(n,15)},s.dk=function(n){return ce(Jl,om,15,n,0,1)},S(cr,"XMLTypePackageImpl/38",1947),k(1948,1,Bt,aL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/39",1948),k(1913,1,Bt,hL),s.ck=function(n){return K(n,669)},s.dk=function(n){return ce(XN,fn,2069,n,0,1)},S(cr,"XMLTypePackageImpl/4",1913),k(1949,1,Bt,ej),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/40",1949),k(1950,1,Bt,dL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/41",1950),k(1951,1,Bt,bL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/42",1951),k(1952,1,Bt,Qu),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/43",1952),k(1953,1,Bt,lC),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/44",1953),k(1954,1,Bt,CH),s.ck=function(n){return K(n,191)},s.dk=function(n){return ce(sp,me,191,n,0,1)},S(cr,"XMLTypePackageImpl/45",1954),k(1955,1,Bt,gL),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/46",1955),k(1956,1,Bt,xH),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/47",1956),k(1957,1,Bt,OH),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/48",1957),k(1958,1,Bt,_H),s.ck=function(n){return K(n,191)},s.dk=function(n){return ce(sp,me,191,n,0,1)},S(cr,"XMLTypePackageImpl/49",1958),k(1914,1,Bt,nj),s.ck=function(n){return K(n,670)},s.dk=function(n){return ce(K9e,fn,2070,n,0,1)},S(cr,"XMLTypePackageImpl/5",1914),k(1959,1,Bt,Wy),s.ck=function(n){return K(n,190)},s.dk=function(n){return ce(up,me,190,n,0,1)},S(cr,"XMLTypePackageImpl/50",1959),k(1960,1,Bt,fC),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/51",1960),k(1961,1,Bt,tj),s.ck=function(n){return K(n,17)},s.dk=function(n){return ce(Or,me,17,n,0,1)},S(cr,"XMLTypePackageImpl/52",1961),k(1915,1,Bt,aC),s.ck=function(n){return Er(n)},s.dk=function(n){return ce(_e,me,2,n,6,1)},S(cr,"XMLTypePackageImpl/6",1915),k(1916,1,Bt,r2),s.ck=function(n){return K(n,195)},s.dk=function(n){return ce(fo,me,195,n,0,2)},S(cr,"XMLTypePackageImpl/7",1916),k(1917,1,Bt,Db),s.ck=function(n){return m2(n)},s.dk=function(n){return ce(Fi,me,471,n,8,1)},S(cr,"XMLTypePackageImpl/8",1917),k(1918,1,Bt,U5),s.ck=function(n){return K(n,220)},s.dk=function(n){return ce(j6,me,220,n,0,1)},S(cr,"XMLTypePackageImpl/9",1918);var uh,h0,lT,BJ,G;k(53,63,Y1,jt),S(Qd,"RegEx/ParseException",53),k(817,1,{},wL),s.$l=function(n){return n<this.j&&Hr(this.i,n)==63},s._l=function(){var n,t,i,r,c;if(this.c!=10)throw R(new jt(Et((wt(),cq))));switch(n=this.a,n){case 101:n=27;break;case 102:n=12;break;case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 120:if(Kt(this),this.c!=0)throw R(new jt(Et((wt(),Yd))));if(this.a==123){c=0,i=0;do{if(Kt(this),this.c!=0)throw R(new jt(Et((wt(),Yd))));if((c=lg(this.a))<0)break;if(i>i*16)throw R(new jt(Et((wt(),aQe))));i=i*16+c}while(!0);if(this.a!=125)throw R(new jt(Et((wt(),hQe))));if(i>i8)throw R(new jt(Et((wt(),dQe))));n=i}else{if(c=0,this.c!=0||(c=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(i=c,Kt(this),this.c!=0||(c=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));i=i*16+c,n=i}break;case 117:if(r=0,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));t=t*16+r,n=t;break;case 118:if(Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,Kt(this),this.c!=0||(r=lg(this.a))<0)throw R(new jt(Et((wt(),Yd))));if(t=t*16+r,t>i8)throw R(new jt(Et((wt(),"parser.descappe.4"))));n=t;break;case 65:case 90:case 122:throw R(new jt(Et((wt(),bQe))))}return n},s.am=function(n){var t,i;switch(n){case 100:i=(this.e&32)==32?K0("Nd",!0):(Zt(),FJ);break;case 68:i=(this.e&32)==32?K0("Nd",!1):(Zt(),t8e);break;case 119:i=(this.e&32)==32?K0("IsWord",!0):(Zt(),H8);break;case 87:i=(this.e&32)==32?K0("IsWord",!1):(Zt(),r8e);break;case 115:i=(this.e&32)==32?K0("IsSpace",!0):(Zt(),V6);break;case 83:i=(this.e&32)==32?K0("IsSpace",!1):(Zt(),i8e);break;default:throw R(new lu((t=n,ben+t.toString(16))))}return i},s.bm=function(n){var t,i,r,c,o,l,a,b,w,v,E,M;for(this.b=1,Kt(this),t=null,this.c==0&&this.a==94?(Kt(this),n?v=(Zt(),Zt(),new cl(5)):(t=(Zt(),Zt(),new cl(4)),cs(t,0,i8),v=new cl(4))):v=(Zt(),Zt(),new cl(4)),c=!0;(M=this.c)!=1&&!(M==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,M==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:rm(v,this.am(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.rm(v,i),i<0&&(r=!0);break;case 112:case 80:if(E=z0e(this,i),!E)throw R(new jt(Et((wt(),Ane))));rm(v,E),r=!0;break;default:i=this._l()}else if(M==20){if(l=pk(this.i,58,this.d),l<0)throw R(new jt(Et((wt(),R2e))));if(a=!0,Hr(this.i,this.d)==94&&(++this.d,a=!1),o=lf(this.i,this.d,l),b=SPe(o,a,(this.e&512)==512),!b)throw R(new jt(Et((wt(),uQe))));if(rm(v,b),r=!0,l+1>=this.j||Hr(this.i,l+1)!=93)throw R(new jt(Et((wt(),R2e))));this.d=l+2}if(Kt(this),!r)if(this.c!=0||this.a!=45)cs(v,i,i);else{if(Kt(this),(M=this.c)==1)throw R(new jt(Et((wt(),uq))));M==0&&this.a==93?(cs(v,i,i),cs(v,45,45)):(w=this.a,M==10&&(w=this._l()),Kt(this),cs(v,i,w))}(this.e&Kf)==Kf&&this.c==0&&this.a==44&&Kt(this)}if(this.c==1)throw R(new jt(Et((wt(),uq))));return t&&(pE(t,v),v=t),av(v),gE(v),this.b=0,Kt(this),v},s.cm=function(){var n,t,i,r;for(i=this.bm(!1);(r=this.c)!=7;)if(n=this.a,r==0&&(n==45||n==38)||r==4){if(Kt(this),this.c!=9)throw R(new jt(Et((wt(),oQe))));if(t=this.bm(!1),r==4)rm(i,t);else if(n==45)pE(i,t);else if(n==38)HZe(i,t);else throw R(new lu("ASSERT"))}else throw R(new jt(Et((wt(),lQe))));return Kt(this),i},s.dm=function(){var n,t;return n=this.a-48,t=(Zt(),Zt(),new GX(12,null,n)),!this.g&&(this.g=new nP),eP(this.g,new Vue(n)),Kt(this),t},s.em=function(){return Kt(this),Zt(),Gan},s.fm=function(){return Kt(this),Zt(),qan},s.gm=function(){throw R(new jt(Et((wt(),ql))))},s.hm=function(){throw R(new jt(Et((wt(),ql))))},s.im=function(){return Kt(this),T8n()},s.jm=function(){return Kt(this),Zt(),Uan},s.km=function(){return Kt(this),Zt(),Kan},s.lm=function(){var n;if(this.d>=this.j||((n=Hr(this.i,this.d++))&65504)!=64)throw R(new jt(Et((wt(),iQe))));return Kt(this),Zt(),Zt(),new Yh(0,n-64)},s.mm=function(){return Kt(this),JIn()},s.nm=function(){return Kt(this),Zt(),Zan},s.om=function(){var n;return n=(Zt(),Zt(),new Yh(0,105)),Kt(this),n},s.pm=function(){return Kt(this),Zt(),Han},s.qm=function(){return Kt(this),Zt(),Jan},s.rm=function(n,t){return this._l()},s.sm=function(){return Kt(this),Zt(),e8e},s.tm=function(){var n,t,i,r,c;if(this.d+1>=this.j)throw R(new jt(Et((wt(),eQe))));if(r=-1,t=null,n=Hr(this.i,this.d),49<=n&&n<=57){if(r=n-48,!this.g&&(this.g=new nP),eP(this.g,new Vue(r)),++this.d,Hr(this.i,this.d)!=41)throw R(new jt(Et((wt(),yg))));++this.d}else switch(n==63&&--this.d,Kt(this),t=pge(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw R(new jt(Et((wt(),yg))));break;default:throw R(new jt(Et((wt(),nQe))))}if(Kt(this),c=Fw(this),i=null,c.e==2){if(c.Mm()!=2)throw R(new jt(Et((wt(),tQe))));i=c.Im(1),c=c.Im(0)}if(this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),Zt(),Zt(),new gRe(r,t,c,i)},s.um=function(){return Kt(this),Zt(),n8e},s.vm=function(){var n;if(Kt(this),n=IR(24,Fw(this)),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.wm=function(){var n;if(Kt(this),n=IR(20,Fw(this)),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.xm=function(){var n;if(Kt(this),n=IR(22,Fw(this)),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.ym=function(){var n,t,i,r,c;for(n=0,i=0,t=-1;this.d<this.j&&(t=Hr(this.i,this.d),c=U0e(t),c!=0);)n|=c,++this.d;if(this.d>=this.j)throw R(new jt(Et((wt(),L2e))));if(t==45){for(++this.d;this.d<this.j&&(t=Hr(this.i,this.d),c=U0e(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw R(new jt(Et((wt(),L2e))))}if(t==58){if(++this.d,Kt(this),r=iIe(Fw(this),n,i),this.c!=7)throw R(new jt(Et((wt(),yg))));Kt(this)}else if(t==41)++this.d,Kt(this),r=iIe(Fw(this),n,i);else throw R(new jt(Et((wt(),QYe))));return r},s.zm=function(){var n;if(Kt(this),n=IR(21,Fw(this)),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.Am=function(){var n;if(Kt(this),n=IR(23,Fw(this)),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.Bm=function(){var n,t;if(Kt(this),n=this.f++,t=pX(Fw(this),n),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),t},s.Cm=function(){var n;if(Kt(this),n=pX(Fw(this),0),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.Dm=function(n){return Kt(this),this.c==5?(Kt(this),SR(n,(Zt(),Zt(),new $2(9,n)))):SR(n,(Zt(),Zt(),new $2(3,n)))},s.Em=function(n){var t;return Kt(this),t=(Zt(),Zt(),new Wj(2)),this.c==5?(Kt(this),hg(t,aT),hg(t,n)):(hg(t,n),hg(t,aT)),t},s.Fm=function(n){return Kt(this),this.c==5?(Kt(this),Zt(),Zt(),new $2(9,n)):(Zt(),Zt(),new $2(3,n))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,S(Qd,"RegEx/RegexParser",817),k(1897,817,{},DAe),s.$l=function(n){return!1},s._l=function(){return Sbe(this)},s.am=function(n){return E9(n)},s.bm=function(n){return PXe(this)},s.cm=function(){throw R(new jt(Et((wt(),ql))))},s.dm=function(){throw R(new jt(Et((wt(),ql))))},s.em=function(){throw R(new jt(Et((wt(),ql))))},s.fm=function(){throw R(new jt(Et((wt(),ql))))},s.gm=function(){return Kt(this),E9(67)},s.hm=function(){return Kt(this),E9(73)},s.im=function(){throw R(new jt(Et((wt(),ql))))},s.jm=function(){throw R(new jt(Et((wt(),ql))))},s.km=function(){throw R(new jt(Et((wt(),ql))))},s.lm=function(){return Kt(this),E9(99)},s.mm=function(){throw R(new jt(Et((wt(),ql))))},s.nm=function(){throw R(new jt(Et((wt(),ql))))},s.om=function(){return Kt(this),E9(105)},s.pm=function(){throw R(new jt(Et((wt(),ql))))},s.qm=function(){throw R(new jt(Et((wt(),ql))))},s.rm=function(n,t){return rm(n,E9(t)),-1},s.sm=function(){return Kt(this),Zt(),Zt(),new Yh(0,94)},s.tm=function(){throw R(new jt(Et((wt(),ql))))},s.um=function(){return Kt(this),Zt(),Zt(),new Yh(0,36)},s.vm=function(){throw R(new jt(Et((wt(),ql))))},s.wm=function(){throw R(new jt(Et((wt(),ql))))},s.xm=function(){throw R(new jt(Et((wt(),ql))))},s.ym=function(){throw R(new jt(Et((wt(),ql))))},s.zm=function(){throw R(new jt(Et((wt(),ql))))},s.Am=function(){throw R(new jt(Et((wt(),ql))))},s.Bm=function(){var n;if(Kt(this),n=pX(Fw(this),0),this.c!=7)throw R(new jt(Et((wt(),yg))));return Kt(this),n},s.Cm=function(){throw R(new jt(Et((wt(),ql))))},s.Dm=function(n){return Kt(this),SR(n,(Zt(),Zt(),new $2(3,n)))},s.Em=function(n){var t;return Kt(this),t=(Zt(),Zt(),new Wj(2)),hg(t,n),hg(t,aT),t},s.Fm=function(n){return Kt(this),Zt(),Zt(),new $2(3,n)};var ry=null,J8=null;S(Qd,"RegEx/ParserForXMLSchema",1897),k(121,1,r8,hw),s.Gm=function(n){throw R(new lu("Not supported."))},s.Hm=function(){return-1},s.Im=function(n){return null},s.Jm=function(){return null},s.Km=function(n){},s.Lm=function(n){},s.Mm=function(){return 0},s.Ib=function(){return this.Nm(0)},s.Nm=function(n){return this.e==11?".":""},s.e=0;var W9e,U8,fT,Fan,Y9e,Xm=null,FJ,_ce=null,Q9e,aT,Nce=null,e8e,n8e,t8e,i8e,r8e,qan,V6,Gan,Jan,Uan,Han,H8,Kan,Zan,VRn=S(Qd,"RegEx/Token",121);k(136,121,{3:1,136:1,121:1},cl),s.Nm=function(n){var t,i,r;if(this.e==4)if(this==Q9e)i=".";else if(this==FJ)i="\\d";else if(this==H8)i="\\w";else if(this==V6)i="\\s";else{for(r=new Md,r.a+="[",t=0;t<this.b.length;t+=2)(n&Kf)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Oc(r,YO(this.b[t])):(Oc(r,YO(this.b[t])),r.a+="-",Oc(r,YO(this.b[t+1])));r.a+="]",i=r.a}else if(this==t8e)i="\\D";else if(this==r8e)i="\\W";else if(this==i8e)i="\\S";else{for(r=new Md,r.a+="[^",t=0;t<this.b.length;t+=2)(n&Kf)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Oc(r,YO(this.b[t])):(Oc(r,YO(this.b[t])),r.a+="-",Oc(r,YO(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,S(Qd,"RegEx/RangeToken",136),k(577,1,{577:1},Vue),s.a=0,S(Qd,"RegEx/RegexParser/ReferencePosition",577),k(576,1,{3:1,576:1},UTe),s.Fb=function(n){var t;return n==null||!K(n,576)?!1:(t=u(n,576),We(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return Bd(this.b+"/"+wbe(this.a))},s.Ib=function(){return this.c.Nm(this.a)},s.a=0,S(Qd,"RegEx/RegularExpression",576),k(227,121,r8,Yh),s.Hm=function(){return this.a},s.Nm=function(n){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+UZ(this.a&rr);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=ac?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+lf(i,i.length-6,i.length)):r=""+UZ(this.a&rr)}break;case 8:this==e8e||this==n8e?r=""+UZ(this.a&rr):r="\\"+UZ(this.a&rr);break;default:r=null}return r},s.a=0,S(Qd,"RegEx/Token/CharToken",227),k(320,121,r8,$2),s.Im=function(n){return this.a},s.Km=function(n){this.b=n},s.Lm=function(n){this.c=n},s.Mm=function(){return 1},s.Nm=function(n){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Nm(n)+"*";else if(this.c==this.b)t=this.a.Nm(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Nm(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Nm(n)+"{"+this.c+",}";else throw R(new lu("Token#toString(): CLOSURE "+this.c+Ss+this.b));else if(this.c<0&&this.b<0)t=this.a.Nm(n)+"*?";else if(this.c==this.b)t=this.a.Nm(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Nm(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Nm(n)+"{"+this.c+",}?";else throw R(new lu("Token#toString(): NONGREEDYCLOSURE "+this.c+Ss+this.b));return t},s.b=0,s.c=0,S(Qd,"RegEx/Token/ClosureToken",320),k(818,121,r8,_fe),s.Im=function(n){return n==0?this.a:this.b},s.Mm=function(){return 2},s.Nm=function(n){var t;return this.b.e==3&&this.b.Im(0)==this.a?t=this.a.Nm(n)+"+":this.b.e==9&&this.b.Im(0)==this.a?t=this.a.Nm(n)+"+?":t=this.a.Nm(n)+(""+this.b.Nm(n)),t},S(Qd,"RegEx/Token/ConcatToken",818),k(1895,121,r8,gRe),s.Im=function(n){if(n==0)return this.d;if(n==1)return this.b;throw R(new lu("Internal Error: "+n))},s.Mm=function(){return this.b?2:1},s.Nm=function(n){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,S(Qd,"RegEx/Token/ConditionToken",1895),k(1896,121,r8,WDe),s.Im=function(n){return this.b},s.Mm=function(){return 1},s.Nm=function(n){return"(?"+(this.a==0?"":wbe(this.a))+(this.c==0?"":wbe(this.c))+":"+this.b.Nm(n)+")"},s.a=0,s.c=0,S(Qd,"RegEx/Token/ModifierToken",1896),k(819,121,r8,Ffe),s.Im=function(n){return this.a},s.Mm=function(){return 1},s.Nm=function(n){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Nm(n)+")":t="("+this.a.Nm(n)+")";break;case 20:t="(?="+this.a.Nm(n)+")";break;case 21:t="(?!"+this.a.Nm(n)+")";break;case 22:t="(?<="+this.a.Nm(n)+")";break;case 23:t="(?<!"+this.a.Nm(n)+")";break;case 24:t="(?>"+this.a.Nm(n)+")"}return t},s.b=0,S(Qd,"RegEx/Token/ParenToken",819),k(515,121,{3:1,121:1,515:1},GX),s.Jm=function(){return this.b},s.Nm=function(n){return this.e==12?"\\"+this.a:Uxn(this.b)},s.a=0,S(Qd,"RegEx/Token/StringToken",515),k(463,121,r8,Wj),s.Gm=function(n){hg(this,n)},s.Im=function(n){return u(Aw(this.a,n),121)},s.Mm=function(){return this.a?this.a.a.c.length:0},s.Nm=function(n){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(Aw(this.a,0),121),i=u(Aw(this.a,1),121),i.e==3&&i.Im(0)==t?c=t.Nm(n)+"+":i.e==9&&i.Im(0)==t?c=t.Nm(n)+"+?":c=t.Nm(n)+(""+i.Nm(n));else{for(o=new Md,r=0;r<this.a.a.c.length;r++)Oc(o,u(Aw(this.a,r),121).Nm(n));c=o.a}return c}if(this.a.a.c.length==2&&u(Aw(this.a,1),121).e==7)c=u(Aw(this.a,0),121).Nm(n)+"?";else if(this.a.a.c.length==2&&u(Aw(this.a,0),121).e==7)c=u(Aw(this.a,1),121).Nm(n)+"??";else{for(o=new Md,Oc(o,u(Aw(this.a,0),121).Nm(n)),r=1;r<this.a.a.c.length;r++)o.a+="|",Oc(o,u(Aw(this.a,r),121).Nm(n));c=o.a}return c},S(Qd,"RegEx/Token/UnionToken",463),k(512,1,{586:1},ZC),s.Ib=function(){return this.a.b},S(men,"XMLTypeUtil/PatternMatcherImpl",512),k(1662,1480,{},pL);var Xan;S(men,"XMLTypeValidator",1662),k(268,1,s1,Gb),s.Ic=function(n){Yr(this,n)},s.Jc=function(){return(this.b-this.a)*this.c<0?kb:new C0(this)},s.a=0,s.b=0,s.c=0;var kb;S(ime,"ExclusiveRange",268),k(1051,1,u1,mL),s.Rb=function(n){u(n,17),zgn()},s.Nb=function(n){Fr(this,n)},s.Pb=function(){return Abn()},s.Ub=function(){return Tbn()},s.Wb=function(n){u(n,17),Fgn()},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Tb=function(){return-1},s.Vb=function(){return-1},s.Qb=function(){throw R(new Ad(ken))},S(ime,"ExclusiveRange/1",1051),k(258,1,u1,C0),s.Rb=function(n){u(n,17),Bgn()},s.Nb=function(n){Fr(this,n)},s.Pb=function(){return W8n(this)},s.Ub=function(){return X5n(this)},s.Wb=function(n){u(n,17),qgn()},s.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw R(new Ad(ken))},s.a=0,s.b=0,S(ime,"ExclusiveRange/RangeIterator",258);var Xl=Ck(sq,"C"),yt=Ck(JE,"I"),zo=Ck(o6,"Z"),Cp=Ck(UE,"J"),fo=Ck(FE,"B"),_r=Ck(qE,"D"),Vm=Ck(GE,"F"),cy=Ck(HE,"S"),WRn=xi("org.eclipse.elk.core.labels","ILabelManager"),c8e=xi(lc,"DiagnosticChain"),u8e=xi(XQe,"ResourceSet"),s8e=S(lc,"InvocationTargetException",null),Van=(cP(),f5n),Wan=Wan=IAn;Vkn(A0n),i9n("permProps",[[["locale","default"],[jen,"gecko1_8"]],[["locale","default"],[jen,"safari"]]]),Wan(null,"elk",null)}).call(this)}).call(this,typeof Qan<"u"?Qan:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(p,y,T){function C(yn){"@babel/helpers - typeof";return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Nn){return typeof Nn}:function(Nn){return Nn&&typeof Symbol=="function"&&Nn.constructor===Symbol&&Nn!==Symbol.prototype?"symbol":typeof Nn},C(yn)}function j(yn,Nn,Rn){return Object.defineProperty(yn,"prototype",{writable:!1}),yn}function P(yn,Nn){if(!(yn instanceof Nn))throw new TypeError("Cannot call a class as a function")}function q(yn,Nn,Rn){return Nn=le(Nn),U(yn,ie()?Reflect.construct(Nn,Rn||[],le(yn).constructor):Nn.apply(yn,Rn))}function U(yn,Nn){if(Nn&&(C(Nn)=="object"||typeof Nn=="function"))return Nn;if(Nn!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(yn)}function oe(yn){if(yn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yn}function ie(){try{var yn=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ie=function(){return!!yn})()}function le(yn){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Nn){return Nn.__proto__||Object.getPrototypeOf(Nn)},le(yn)}function Te(yn,Nn){if(typeof Nn!="function"&&Nn!==null)throw new TypeError("Super expression must either be null or a function");yn.prototype=Object.create(Nn&&Nn.prototype,{constructor:{value:yn,writable:!0,configurable:!0}}),Object.defineProperty(yn,"prototype",{writable:!1}),Nn&&Qe(yn,Nn)}function Qe(yn,Nn){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Rn,Vn){return Rn.__proto__=Vn,Rn},Qe(yn,Nn)}var re=p("./elk-api.js").default,rn=(function(yn){function Nn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};P(this,Nn);var Vn=Object.assign({},Rn),Ot=!1;try{p.resolve("web-worker"),Ot=!0}catch{}if(Rn.workerUrl)if(Ot){var Jt=p("web-worker");Vn.workerFactory=function(Ni){return new Jt(Ni)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
31
31
  Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
32
- ... Falling back to non-web worker version.`);if(!Vn.workerFactory){var ei=p("./elk-worker.min.js"),rt=ei.Worker;Vn.workerFactory=function(Ni){return new rt(Ni)}}return q(this,Nn,[Vn])}return Te(Nn,yn),j(Nn)})(re);Object.defineProperty(y.exports,"__esModule",{value:!0}),y.exports=rn,rn.default=rn},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(p,y,T){var C=typeof Worker<"u"?Worker:void 0;y.exports=C},{}]},{},[3])(3)})})(g8e)),g8e.exports}var lzn=ozn();const fzn=g1n(lzn),kT=7.4,t5=5.9,azn=5.9,hzn=14;function Yce(h,g){return h.length*g}function Hg(h,g,p){if(g<=0)return"";const y=Math.floor(g/p);return h.length<=y?h:y<=1?"…":h.slice(0,y-1)+"…"}const w8e={nodeSpacing:60,layerSpacing:100,padding:40};function dzn(h){const g=h.nodeSpacing??w8e.nodeSpacing,p=h.layerSpacing??w8e.layerSpacing,y=h.padding??w8e.padding;return{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.edgeRouting":"ORTHOGONAL","elk.layered.spacing.nodeNodeBetweenLayers":String(p),"elk.spacing.nodeNode":String(g),"elk.padding":`[top=${y}, left=${y}, bottom=${y}, right=${y}]`,"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.edgeLabels.placement":"CENTER","elk.spacing.edgeLabel":"8","elk.spacing.labelLabel":"6","elk.spacing.edgeNode":"20","elk.spacing.edgeEdge":"12","elk.layered.spacing.edgeEdgeBetweenLayers":"12"}}const Wl={width:172,height:82},ahn={width:172,height:90},bzn={service:Wl,function:Wl,worker:Wl,agent:Wl,database:{width:184,height:100},cache:ahn,vectordb:Wl,storage:Wl,queue:{width:188,height:80},topic:Wl,stream:Wl,gateway:Wl,cdn:Wl,route:Wl,interface:Wl,adapter:Wl,port:Wl,llm:Wl,prompt:Wl,tool:Wl,auth:Wl,observability:Wl,cloud:{width:200,height:120},frontend:ahn,page:Wl,component:Wl,store:Wl,hook:Wl,external:{width:184,height:100},module:{width:240,height:130},custom:{width:240,height:130}},Eo={width:152,height:36},hhn={width:200,height:80},gzn={service:Eo,function:Eo,worker:Eo,agent:Eo,database:Eo,cache:Eo,vectordb:Eo,storage:Eo,queue:{width:168,height:36},topic:Eo,stream:Eo,gateway:Eo,cdn:Eo,route:Eo,interface:Eo,adapter:Eo,port:Eo,llm:Eo,prompt:Eo,tool:Eo,auth:Eo,observability:Eo,cloud:Eo,frontend:Eo,page:Eo,component:Eo,store:Eo,hook:Eo,external:{width:168,height:40},module:hhn,custom:hhn},wzn=24,dhn=320;function pzn(h,g,p){if(h.kind==="module"||h.kind==="custom")return g;if(p==="compact"){const P=36+Yce(h.name,t5)+12;return Math.max(g,Math.min(dhn,Math.ceil(P)))}const y=Yce(h.name,kT),T=h.stack!==void 0?Yce(h.stack,t5):0,C=Math.max(y,T)+wzn;return Math.max(g,Math.min(dhn,Math.ceil(C)))}const mzn={top:48,left:18,bottom:18,right:18};function vzn(h,g,p,y){const T=p[h.kind],C={id:h.id,width:pzn(h,T.width,y),height:T.height};if(g.length>0){C.children=g;const j=y==="compact"?{top:30,left:12,bottom:12,right:12}:mzn;C.layoutOptions={"elk.padding":`[top=${j.top}, left=${j.left}, bottom=${j.bottom}, right=${j.right}]`}}return C}function yzn(h,g,p){const y=new Map;for(const P of h.nodes)y.set(P.id,P);const T=new Map;for(const P of h.nodes){const q=T.get(P.parentId)??[];q.push(P),T.set(P.parentId,q)}function C(P){const q=(T.get(P.id)??[]).map(C);return vzn(P,q,g,p)}return{roots:(T.get(void 0)??[]).map(C),byId:y}}function kzn(h){return h.fromFile===void 0&&h.toFile===void 0}function jzn(h){return h.edges.filter(kzn).map(g=>{const p={id:g.id,sources:[g.from],targets:[g.to]};return g.label!==void 0&&g.label.length>0&&(p.labels=[{text:g.label,width:Math.ceil(Yce(g.label,azn)),height:hzn}]),p})}function Sb(h){return h??0}function w1n(h,g){const p=g.get(h.id);if(!p)throw new Error(`ELK returned unknown node id "${h.id}"`);const y=(h.children??[]).map(T=>w1n(T,g));return{...p,x:Sb(h.x),y:Sb(h.y),width:Sb(h.width),height:Sb(h.height),children:y}}function Szn(h,g){const p=new Map,y=new Map,T=(U,oe,ie,le)=>{const Te=oe+Sb(U.x),Qe=ie+Sb(U.y);p.set(U.id,{x:Te,y:Qe}),y.set(U.id,le);const re=[...le,U.id];for(const rn of U.children??[])T(rn,Te,Qe,re)};T(h,0,0,[]);const C=(U,oe)=>{const ie=y.get(U)??[],le=y.get(oe)??[];let Te=0;for(;Te<ie.length&&Te<le.length&&ie[Te]===le[Te];)Te++;const Qe=Te===0?h.id:ie[Te-1];return p.get(Qe)??{x:0,y:0}},j=new Map,P=new Map,q=U=>{for(const oe of U.edges??[]){const ie=oe.sources?.[0]??"",le=oe.targets?.[0]??"",Te=C(ie,le),Qe=yn=>({x:Sb(yn.x)+Te.x,y:Sb(yn.y)+Te.y}),re=(oe.sections??[]).map(yn=>({startPoint:Qe(yn.startPoint),endPoint:Qe(yn.endPoint),bendPoints:(yn.bendPoints??[]).map(Qe)}));j.set(oe.id,re);const rn=(oe.labels??[]).map(yn=>({text:typeof yn.text=="string"?yn.text:"",x:Sb(yn.x)+Te.x,y:Sb(yn.y)+Te.y,width:Sb(yn.width),height:Sb(yn.height)}));P.set(oe.id,rn)}for(const oe of U.children??[])q(oe)};return q(h),g.edges.map(U=>({...U,sections:j.get(U.id)??[],labels:P.get(U.id)??[]}))}const Ezn=new fzn;async function Azn(h,g={}){if(h.nodes.length===0)return{document:h,width:0,height:0,roots:[],edges:[]};const p=g.viewMode==="compact"?"compact":"detailed",y=p==="compact"?gzn:bzn,{roots:T,byId:C}=yzn(h,y,p),j={id:"__root__",layoutOptions:dzn(g),children:T,edges:jzn(h)},P=await Ezn.layout(j),q=(P.children??[]).map(U=>w1n(U,C));return{document:h,width:Sb(P.width),height:Sb(P.height),roots:q,edges:Szn(P,h)}}const Tzn={name:"elk",layout:Azn},Mzn=Tzn;function Czn(h,g){return Mzn.layout(h,g)}const p1n=(...h)=>h.filter((g,p,y)=>!!g&&g.trim()!==""&&y.indexOf(g)===p).join(" ").trim();const xzn=h=>h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ozn=h=>h.replace(/^([A-Z])|[\s-_]+(\w)/g,(g,p,y)=>y?y.toUpperCase():p.toLowerCase());const bhn=h=>{const g=Ozn(h);return g.charAt(0).toUpperCase()+g.slice(1)};var p8e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const _zn=h=>{for(const g in h)if(g.startsWith("aria-")||g==="role"||g==="title")return!0;return!1},Nzn=Nt.createContext({}),Izn=()=>Nt.useContext(Nzn),Dzn=Nt.forwardRef(({color:h,size:g,strokeWidth:p,absoluteStrokeWidth:y,className:T="",children:C,iconNode:j,...P},q)=>{const{size:U=24,strokeWidth:oe=2,absoluteStrokeWidth:ie=!1,color:le="currentColor",className:Te=""}=Izn()??{},Qe=y??ie?Number(p??oe)*24/Number(g??U):p??oe;return Nt.createElement("svg",{ref:q,...p8e,width:g??U??p8e.width,height:g??U??p8e.height,stroke:h??le,strokeWidth:Qe,className:p1n("lucide",Te,T),...!C&&!_zn(P)&&{"aria-hidden":"true"},...P},[...j.map(([re,rn])=>Nt.createElement(re,rn)),...Array.isArray(C)?C:[C]])});const $c=(h,g)=>{const p=Nt.forwardRef(({className:y,...T},C)=>Nt.createElement(Dzn,{ref:C,iconNode:g,className:p1n(`lucide-${xzn(bhn(h))}`,`lucide-${h}`,y),...T}));return p.displayName=bhn(h),p};const $zn=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],Lzn=$c("anchor",$zn);const Pzn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Rzn=$c("arrow-right",Pzn);const zzn=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Bzn=$c("arrow-up-right",zzn);const Fzn=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],qzn=$c("bot",Fzn);const Gzn=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Jzn=$c("box",Gzn);const Uzn=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Hzn=$c("boxes",Uzn);const Kzn=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Zzn=$c("brain",Kzn);const Xzn=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Vzn=$c("cable",Xzn);const Wzn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],m1n=$c("chevron-down",Wzn);const Yzn=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Qzn=$c("cloud",Yzn);const eBn=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],nBn=$c("cog",eBn);const tBn=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],iBn=$c("component",tBn);const rBn=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],cBn=$c("database",rBn);const uBn=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],sBn=$c("door-open",uBn);const oBn=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],lBn=$c("external-link",oBn);const fBn=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],aBn=$c("eye",fBn);const hBn=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],dBn=$c("folder-tree",hBn);const bBn=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],gBn=$c("git-branch",bBn);const wBn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pBn=$c("globe",wBn);const mBn=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],vBn=$c("hard-drive",mBn);const yBn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],kBn=$c("info",yBn);const jBn=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],SBn=$c("layers",jBn);const EBn=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],ABn=$c("layout-grid",EBn);const TBn=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],MBn=$c("layout-template",TBn);const CBn=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],xBn=$c("lock",CBn);const OBn=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],_Bn=$c("message-square",OBn);const NBn=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],IBn=$c("monitor",NBn);const DBn=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],$Bn=$c("package",DBn);const LBn=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],PBn=$c("radio",LBn);const RBn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],zBn=$c("redo-2",RBn);const BBn=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],FBn=$c("route",BBn);const qBn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],GBn=$c("rows-3",qBn);const JBn=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],UBn=$c("send-horizontal",JBn);const HBn=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],KBn=$c("server",HBn);const ZBn=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],XBn=$c("shield",ZBn);const VBn=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],WBn=$c("sparkles",VBn);const YBn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],QBn=$c("square-function",YBn);const eFn=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],nFn=$c("sticky-note",eFn);const tFn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],iFn=$c("undo-2",tFn);const rFn=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],cFn=$c("waves",rFn);const uFn=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],sFn=$c("wrench",uFn),v1n=(h,g,p)=>({width:h,height:h,viewBox:"0 0 24 24",fill:"none",stroke:g,strokeWidth:p,strokeLinecap:"round",strokeLinejoin:"round"});function oFn({size:h=16,color:g="currentColor",strokeWidth:p=1.8}){return J.jsxs("svg",{...v1n(h,g,p),"aria-hidden":"true",children:[J.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3.5",ry:"3.5"}),J.jsx("line",{x1:"9",y1:"9",x2:"9",y2:"13"}),J.jsx("line",{x1:"15",y1:"9",x2:"15",y2:"13"}),J.jsx("circle",{cx:"12",cy:"16.5",r:"1",fill:g,stroke:"none"})]})}function lFn({size:h=16,color:g="currentColor",strokeWidth:p=1.8}){return J.jsxs("svg",{...v1n(h,g,p),"aria-hidden":"true",children:[J.jsx("path",{d:"M 7.5 6 L 3.5 12 L 7.5 18"}),J.jsx("path",{d:"M 16.5 6 L 20.5 12 L 16.5 18"}),J.jsx("circle",{cx:"13",cy:"8.6",r:"0.9",fill:g,stroke:"none"}),J.jsx("line",{x1:"13",y1:"11",x2:"11",y2:"16.5"})]})}const n3={service:{color:"#38bdf8",icon:KBn,description:"Long-running compute that owns business logic."},function:{color:"#22d3ee",icon:QBn,description:"Stateless function-as-a-service / lambda."},worker:{color:"#06b6d4",icon:nBn,description:"Background job processor or consumer loop."},agent:{color:"#14b8a6",icon:qzn,description:"Autonomous AI agent driving tools and actions."},database:{color:"#34d399",icon:cBn,description:"Persistent state — relational, document, key-value."},cache:{color:"#a78bfa",icon:SBn,description:"In-memory store for fast reads."},vectordb:{color:"#c084fc",icon:WBn,description:"Vector store for embeddings / similarity search."},storage:{color:"#84cc16",icon:vBn,description:"Object / blob storage (S3, GCS, etc.)."},queue:{color:"#fbbf24",icon:UBn,description:"Asynchronous work queue with at-least-once delivery."},topic:{color:"#f97316",icon:PBn,description:"Pub/sub topic with multiple consumers."},stream:{color:"#fb923c",icon:cFn,description:"Append-only event log (Kafka, Kinesis)."},gateway:{color:"#6366f1",icon:sBn,description:"API gateway, ingress, edge router."},cdn:{color:"#0ea5e9",icon:pBn,description:"Content delivery network / static edge."},route:{color:"#f59e0b",icon:FBn,description:"HTTP / URL route — path + method mapped to a handler."},interface:{color:"#d946ef",icon:lFn,description:"Abstract contract — the <i> a system commits to."},adapter:{color:"#c026d3",icon:Vzn,description:"Concrete implementation of an interface."},port:{color:"#a21caf",icon:oFn,description:"Hexagonal-architecture port — the socket an adapter plugs into."},llm:{color:"#a855f7",icon:Zzn,description:"Large language model service."},prompt:{color:"#c4b5fd",icon:_Bn,description:"Prompt template / instruction set."},tool:{color:"#fde047",icon:sFn,description:"Tool callable by an agent or LLM."},auth:{color:"#ef4444",icon:xBn,description:"Identity provider, auth service."},observability:{color:"#10b981",icon:aBn,description:"Metrics, logs, traces — operational telemetry."},cloud:{color:"#0284c7",icon:Qzn,description:"Managed cloud service (compute, hosted, etc.)."},frontend:{color:"#f472b6",icon:IBn,description:"User-facing surface — browser, mobile, CLI."},page:{color:"#fb7185",icon:MBn,description:"Route-level UI screen mapped to a URL."},component:{color:"#8b5cf6",icon:iBn,description:"Reusable UI component / view fragment."},store:{color:"#facc15",icon:Hzn,description:"Client-side state container — Redux, Zustand, Pinia."},hook:{color:"#0d9488",icon:Lzn,description:"Reusable client logic — React hook, Vue composable."},external:{color:"#94a3b8",icon:lBn,description:"Third-party system you don't own."},module:{color:"#7dd3fc",icon:$Bn,description:"Module / component grouping (logical container)."},custom:{color:"#64748b",icon:Jzn,description:"Container or anything not in the taxonomy."}},S1=28;function i7e({kind:h,iconAt:g,labelAt:p}){const y=n3[h],T=y.icon,C=14;return J.jsxs(J.Fragment,{children:[J.jsx("g",{transform:`translate(${g.cx-C/2}, ${g.cy-C/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(T,{size:C,color:y.color,strokeWidth:1.8})}),J.jsx("text",{x:p.cx,y:p.cy,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.toUpperCase()})]})}const fFn=24;function aFn({node:h,selected:g}){const p=h.width,y=h.height,T=h.stack!==void 0,C=S1+(y-S1)/2,j=T?C-4:C+4,P=C+14,q=Math.max(0,p-fFn),U=Hg(h.name,q,kT),oe=T?Hg(h.stack,q,t5):"";return J.jsxs("g",{className:`archik-node archik-node--${h.kind}`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:10,ry:10,fill:"var(--archik-node-fill)",stroke:g?"var(--archik-selected)":"var(--archik-node-stroke)",strokeWidth:g?1.8:1.4}),J.jsx("line",{x1:0,y1:S1,x2:p,y2:S1,stroke:"var(--archik-node-stroke)",strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:h.kind,iconAt:{cx:18,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:j,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:U}),T&&J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:oe})]})}function hFn({node:h,selected:g}){const p=h.width,y=h.height,T=Math.min(y/2,28),C=h.stack!==void 0,j=S1+(y-S1)/2,P=C?j-4:j+4,q=j+14,U=Math.max(0,p-2*T-8),oe=Hg(h.name,U,kT),ie=C?Hg(h.stack,U,t5):"",le=g?"var(--archik-selected)":"var(--archik-node-stroke)";return J.jsxs("g",{className:"archik-node archik-node--queue",children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:T,ry:T,fill:"var(--archik-node-fill)",stroke:le,strokeWidth:g?1.8:1.4}),J.jsx("line",{x1:T,y1:S1,x2:p-T,y2:S1,stroke:le,strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:"queue",iconAt:{cx:T+8,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),C&&J.jsx("text",{x:p/2,y:q,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:ie})]})}const dFn=24;function bFn({node:h,selected:g}){const p=h.width,y=h.height,T=h.description!==void 0,C=S1,j=C+(y-C)/2,P=T?j-2:j+4,q=y-12,U=Math.max(0,p-dFn),oe=Hg(h.name,U,kT),ie=T?Hg(h.description,U,t5):"",le=g?"var(--archik-selected)":"var(--archik-node-stroke-soft)";return J.jsxs("g",{className:"archik-node archik-node--external",children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:8,ry:8,fill:"var(--archik-node-fill-tinted)",stroke:le,strokeWidth:g?1.8:1.2,strokeDasharray:g?void 0:"6 4"}),J.jsx("line",{x1:6,y1:S1,x2:p-6,y2:S1,stroke:le,strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:"external",iconAt:{cx:18,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),T&&J.jsx("text",{x:p/2,y:q,textAnchor:"middle",fontSize:10,fill:"var(--archik-node-text-dim)",children:ie})]})}const gFn=28,wFn=10,pFn=22;function mFn({node:h,selected:g}){const p=h.width,y=h.height,T=p/2,C=wFn,j=n3[h.kind],P=j.icon,q=g?"var(--archik-selected)":"var(--archik-node-stroke)",U=g?1.8:1.4,oe=h.stack!==void 0,ie=Math.max(0,p-gFn),le=Hg(h.name,ie,kT),Te=oe?Hg(h.stack,ie,t5):"",Qe=y,re=Qe-pFn,rn=(re+Qe)/2,Rn=(C+8+re)/2,Vn=oe?Rn-4:Rn+4,Ot=Rn+14;return J.jsxs("g",{className:"archik-node archik-node--database",children:[J.jsx("path",{className:g?"archik-selected-glow":void 0,d:yFn(p,y,C),fill:"var(--archik-node-fill)",stroke:q,strokeWidth:U,strokeLinejoin:"round"}),J.jsx("ellipse",{cx:T,cy:C,rx:p/2,ry:C,fill:"var(--archik-node-fill)",stroke:q,strokeWidth:U}),J.jsx("text",{x:T,y:Vn,textAnchor:"middle",fontSize:14,fontWeight:600,fill:"var(--archik-node-text)",children:le}),oe&&J.jsx("text",{x:T,y:Ot,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:Te}),J.jsx("line",{x1:4,y1:re,x2:p-4,y2:re,stroke:q,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(14, ${rn-7})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(P,{size:14,color:j.color,strokeWidth:1.9})}),J.jsx("text",{x:T,y:rn+4,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()})]})}const vFn=10;function yFn(h,g,p){const y=vFn;return[`M 0 ${p}`,`L 0 ${g-y}`,`A ${y} ${y} 0 0 0 ${y} ${g}`,`L ${h-y} ${g}`,`A ${y} ${y} 0 0 0 ${h} ${g-y}`,`L ${h} ${p}`,`A ${h/2} ${p} 0 0 0 0 ${p}`,"Z"].join(" ")}const kFn=36,ghn=18;function jFn({node:h,selected:g}){const p=h.width,y=h.height,T=n3[h.kind],C=T.icon,j=g?"var(--archik-selected)":"var(--archik-node-stroke)",P=g?1.8:1.4,q=h.stack!==void 0,U=Math.max(0,p-kFn),oe=Hg(h.name,U,kT),ie=q?Hg(h.stack,U,t5):"",le=p/2,Te=y*.55,Qe=q?Te-4:Te+4,re=Te+14;return J.jsxs("g",{className:"archik-node archik-node--cloud",children:[J.jsx("path",{className:g?"archik-selected-glow":void 0,d:SFn(p,y),fill:"var(--archik-node-fill)",stroke:j,strokeWidth:P,strokeLinejoin:"round"}),J.jsx("g",{transform:`translate(18, ${ghn-6})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(C,{size:14,color:T.color,strokeWidth:1.9})}),J.jsx("text",{x:le,y:ghn+4,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()}),J.jsx("text",{x:le,y:Qe,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),q&&J.jsx("text",{x:le,y:re,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:ie})]})}function SFn(h,g){const y=g-2,T=g*.62,C=Math.min(g*.18,14),j=h-4,P=g*.5,q=Math.min(j*.15,P*.85),U=Math.min(j*.18,P),oe=Math.min(j*.15,P*.85),ie=2*(q+U+oe),le=Math.max(0,j-ie)/4,Te=2,Qe=h-2,re=Te+le,rn=re+2*q,yn=rn+le,Nn=yn+2*U,Rn=Nn+le,Vn=Rn+2*oe;return[`M ${Te} ${y-C}`,`Q ${Te} ${y} ${Te+C} ${y}`,`L ${Qe-C} ${y}`,`Q ${Qe} ${y} ${Qe} ${y-C}`,`L ${Qe} ${T}`,`L ${Vn} ${T}`,`A ${oe} ${oe} 0 0 0 ${Rn} ${T}`,`L ${Nn} ${T}`,`A ${U} ${U} 0 0 0 ${yn} ${T}`,`L ${rn} ${T}`,`A ${q} ${q} 0 0 0 ${re} ${T}`,`L ${Te} ${T}`,"Z"].join(" ")}const YN=32,Pce=14,m8e=14;function EFn({node:h,selected:g,depth:p=0}){const y=h.width,T=h.height;if(!(h.children.length>0))return J.jsx(TFn,{node:h,selected:!!g});const j=n3[h.kind],P=j.icon,q=Math.min(.04+p*.06,.22),U=Math.min(.55+p*.12,.95),oe=g?"var(--archik-selected)":"var(--archik-container-border)",ie=g?1.8:1.2,le=Math.max(0,y-Pce*2-60),Te=Hg(h.name,le,kT);return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--container`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:8,ry:8,fill:j.color,fillOpacity:q,stroke:oe,strokeWidth:ie,pointerEvents:"none"}),p>=1&&y>8&&T>8&&J.jsx("rect",{x:3,y:3,width:y-6,height:T-6,rx:6,ry:6,fill:"none",stroke:j.color,strokeOpacity:Math.min(.18+(p-1)*.06,.32),strokeWidth:1,pointerEvents:"none"}),J.jsx("path",{d:AFn(y,YN,8),fill:j.color,fillOpacity:U*.18}),J.jsx("line",{x1:0,y1:YN,x2:y,y2:YN,stroke:oe,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(${Pce}, ${YN/2-m8e/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(P,{size:m8e,color:j.color,strokeWidth:1.9})}),J.jsx("text",{x:Pce+m8e+8,y:YN/2+4,fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:Te}),J.jsx("text",{x:y-Pce,y:YN/2+3,textAnchor:"end",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()})]})}function AFn(h,g,p){return`M ${p} 0 H ${h-p} A ${p} ${p} 0 0 1 ${h} ${p} V ${g} H 0 V ${p} A ${p} ${p} 0 0 1 ${p} 0 Z`}function TFn({node:h,selected:g}){const p=h.width,y=h.height,T=n3[h.kind],C=g?"var(--archik-selected)":"var(--archik-node-stroke-soft)";return J.jsxs("g",{className:`archik-node archik-node--${h.kind}`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:8,ry:8,fill:"var(--archik-node-fill-tinted)",stroke:C,strokeWidth:g?1.8:1.2,strokeDasharray:g?void 0:"5 4"}),J.jsx("text",{x:p/2,y:y/2+4,textAnchor:"middle",fontSize:12,fontWeight:600,fill:T.color,children:h.name})]})}const JJ=24,y1n=10,L8e=28;function MFn({node:h,selected:g,depth:p=0}){const y=h.width,T=h.height,C=n3[h.kind],j=C.icon,P=h.kind==="external";if(h.children.length>0)return J.jsx(CFn,{node:h,selected:!!g,depth:p});const q=g?"var(--archik-selected)":P?"var(--archik-node-stroke-soft)":"var(--archik-node-stroke)",U=P?"var(--archik-node-fill-tinted)":"var(--archik-node-fill)",oe=h.kind==="queue"?Math.min(T/2,18):8;return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--compact`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:oe,ry:oe,fill:U,stroke:q,strokeWidth:g?1.8:1.4,strokeDasharray:P&&!g?"5 4":void 0}),J.jsx("g",{transform:`translate(${y1n}, ${T/2-7})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(j,{size:13,color:C.color,strokeWidth:1.9})}),J.jsx("text",{x:L8e,y:T/2+4,fontSize:12,fontWeight:600,fill:"var(--archik-node-text)",children:Hg(h.name,Math.max(0,y-L8e-8),t5)})]})}function CFn({node:h,selected:g,depth:p}){const y=h.width,T=h.height,C=n3[h.kind],j=C.icon,P=Math.min(.04+p*.035,.14),q=Math.min(.55+p*.08,.85),U=g?"var(--archik-selected)":"var(--archik-container-border)",oe=Math.max(0,y-12-22),ie=Hg(h.name,oe,t5);return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--compact archik-node--container`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:6,ry:6,fill:C.color,fillOpacity:P,stroke:U,strokeWidth:g?1.8:1.2}),J.jsx("path",{d:xFn(y,JJ,6),fill:C.color,fillOpacity:q*.18}),J.jsx("line",{x1:0,y1:JJ,x2:y,y2:JJ,stroke:U,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(${y1n}, ${JJ/2-6})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(j,{size:12,color:C.color,strokeWidth:1.9})}),J.jsx("text",{x:L8e,y:JJ/2+4,fontSize:12,fontWeight:600,fill:"var(--archik-node-text)",children:ie})]})}function xFn(h,g,p){return`M ${p} 0 H ${h-p} A ${p} ${p} 0 0 1 ${h} ${p} V ${g} H 0 V ${p} A ${p} ${p} 0 0 1 ${p} 0 Z`}const OFn=12,_Fn=18;function k1n({Icon:h,cx:g,cy:p,size:y=OFn,color:T,strokeWidth:C=1.8}){return J.jsx("g",{transform:`translate(${g-y/2}, ${p-y/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(h,{size:y,color:T??"var(--archik-fg-dim)",strokeWidth:C})})}function NFn(h){return J.jsx(k1n,{Icon:kBn,...h})}function IFn(h){return J.jsx(k1n,{Icon:nFn,...h})}function DFn({cx:h,cy:g,filePath:p,fileLabel:y,onClick:T,size:C=13}){return J.jsxs("g",{transform:`translate(${h-C/2}, ${g-C/2})`,style:{cursor:T?"pointer":"default"},onClick:T,children:[J.jsx("title",{children:`Cross-file edge → ${y} (${p})`}),J.jsx("circle",{cx:C/2,cy:C/2,r:C/2+.5,fill:"var(--archik-fg-dim)",fillOpacity:.12,stroke:"var(--archik-fg-dim)",strokeOpacity:.4,strokeWidth:1}),J.jsx("g",{transform:"translate(1, 1)",pointerEvents:"none",children:J.jsx(Bzn,{size:C-2,color:"var(--archik-fg-muted)",strokeWidth:2.2})})]})}function $Fn({cx:h,cy:g,onClick:p,size:y=14}){return J.jsxs("g",{transform:`translate(${h-y/2}, ${g-y/2})`,style:{cursor:p?"pointer":"default"},onClick:p,children:[J.jsx("title",{children:"Open sub-architecture"}),J.jsx("circle",{cx:y/2,cy:y/2,r:y/2+.5,fill:"var(--archik-accent)",fillOpacity:.16,stroke:"var(--archik-accent)",strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:"translate(1, 1)",pointerEvents:"none",children:J.jsx(m1n,{size:y-2,color:"var(--archik-accent)",strokeWidth:2.2})})]})}function LFn(h,g,p){switch(h){case"queue":{const T=Math.min(p/2,28);return{right:{x:g-T-4,y:14}}}case"database":return{right:{x:g-14,y:p-11}};default:return{right:{x:g-14,y:14}}}}function PFn(h,g){return Array.from({length:g},(p,y)=>({x:h.x-y*_Fn,y:h.y}))}function RFn({node:h,selected:g,viewMode:p,depth:y}){if(p==="compact")return J.jsx(MFn,{node:h,selected:g,depth:y});if(h.children.length>0)return J.jsx(EFn,{node:h,selected:g,depth:y});switch(h.kind){case"queue":return J.jsx(hFn,{node:h,selected:g});case"external":return J.jsx(bFn,{node:h,selected:g});case"database":return J.jsx(mFn,{node:h,selected:g});case"cloud":return J.jsx(jFn,{node:h,selected:g});case"module":case"custom":case"service":case"function":case"worker":case"agent":case"cache":case"vectordb":case"storage":case"topic":case"stream":case"gateway":case"cdn":case"route":case"interface":case"adapter":case"port":case"llm":case"prompt":case"tool":case"auth":case"observability":case"frontend":case"page":case"component":case"store":case"hook":return J.jsx(aFn,{node:h,selected:g});default:throw h.kind,new Error("unreachable node kind")}}function j1n({node:h,selectedNodeIds:g,glowNodeIds:p,onSelectNode:y,onOpenSubFile:T,onCrossFileNavigate:C,crossFileByNode:j,viewMode:P="detailed",depth:q=0}){const U=g?.has(h.id)??!1,oe=p?.has(h.id)??!1,ie=h.children.length>0,le=ie?q+1:q,Te=y?re=>{re.stopPropagation(),y(h.id,re)}:void 0,Qe=h.description!==void 0&&h.description.length>0;return J.jsxs("g",{"data-archik-node-id":h.id,...U?{"data-archik-selected":"true"}:{},...h.status!==void 0&&h.status!=="active"?{"data-archik-status":h.status}:{},...h.stereotype!==void 0?{"data-archik-stereotype":h.stereotype}:{},transform:`translate(${h.x}, ${h.y})`,...Te!==void 0?{onClick:Te}:{},style:y?{cursor:"pointer"}:void 0,children:[h.stereotype!==void 0&&J.jsx("rect",{className:"archik-stereotype-band",x:0,y:0,width:h.width,height:3,rx:1.5}),oe&&J.jsx("rect",{x:-4,y:-4,width:h.width+8,height:h.height+8,rx:10,fill:"none",stroke:"var(--archik-status-proposed)",strokeWidth:2,opacity:.85,style:{pointerEvents:"none"}}),J.jsx(RFn,{node:h,selected:U,viewMode:P,depth:q}),P==="detailed"&&!ie&&(()=>{const re=h.notes!==void 0&&h.notes.length>0,rn=h.archikFile!==void 0&&h.archikFile.length>0,yn=j?.get(h.id),Nn=yn?Array.from(yn).sort():[],Rn=[];rn&&Rn.push("subarch");for(const Jt of Nn)Rn.push({type:"crossfile",path:Jt});if(Qe&&Rn.push("info"),re&&Rn.push("notes"),Rn.length===0)return null;const Vn=LFn(h.kind,h.width,h.height),Ot=PFn(Vn.right,Rn.length);return J.jsx(J.Fragment,{children:Rn.map((Jt,ei)=>{const rt=Ot[ei];if(typeof Jt=="object"&&Jt.type==="crossfile"){const Ni=Jt.path,Vu=Ni.split("/").pop().replace(/\.archik\.yaml$/,""),mu=C??T,sr=mu?Q=>{Q.stopPropagation(),mu(Ni,Vu)}:void 0;return J.jsx(DFn,{cx:rt.x,cy:rt.y,filePath:Ni,fileLabel:Vu,...sr?{onClick:sr}:{}},`xf-${Ni}`)}if(Jt==="subarch"){const Ni=h.archikFile,Vu=T?mu=>{mu.stopPropagation(),T(Ni,h.name)}:void 0;return J.jsx($Fn,{cx:rt.x,cy:rt.y,...Vu?{onClick:Vu}:{}},"subarch")}return Jt==="info"?J.jsx(NFn,{cx:rt.x,cy:rt.y,color:"var(--archik-node-caption)"},"info"):J.jsxs("g",{children:[J.jsx(IFn,{cx:rt.x,cy:rt.y,color:"var(--archik-node-caption)"}),h.notes&&h.notes.length>1&&J.jsx("text",{x:rt.x+7,y:rt.y-5,fontSize:8,fontWeight:700,fill:"var(--archik-accent)",textAnchor:"middle",pointerEvents:"none",children:h.notes.length})]},"notes")})})})(),h.children.map(re=>J.jsx(j1n,{node:re,viewMode:P,depth:le,...g!==void 0?{selectedNodeIds:g}:{},...p!==void 0?{glowNodeIds:p}:{},...y!==void 0?{onSelectNode:y}:{},...T!==void 0?{onOpenSubFile:T}:{},...C!==void 0?{onCrossFileNavigate:C}:{},...j!==void 0?{crossFileByNode:j}:{}},re.id))]})}const Gg="archik-arrow-filled",rI="archik-arrow-open",S1n="archik-arrow-selected",Qm="var(--archik-edge-filled)",UJ="var(--archik-edge-dim)",zFn={http_call:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},grpc:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},invokes:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},routes_to:{stroke:Qm,strokeWidth:1.4,markerId:Gg},websocket:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg,markerStartId:Gg},webhook:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},reads:{stroke:Qm,strokeWidth:1.4,markerId:rI},writes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},publishes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},subscribes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},streams_to:{stroke:Qm,strokeWidth:1.4,markerId:Gg},implements:{stroke:UJ,strokeWidth:1.2,markerId:rI},extends:{stroke:UJ,strokeWidth:1.2,markerId:rI},depends_on:{stroke:UJ,strokeWidth:1.2,markerId:rI},has_a:{stroke:UJ,strokeWidth:1.2,markerId:Gg},uses:{stroke:UJ,strokeWidth:1.2,markerId:rI}};function whn(h){return h.map(g=>`${g.x},${g.y}`).join(" ")}function BFn(h){if(h.length===0)return;const g=Math.floor(h.length/2);if(h.length%2===1)return h[g];const p=h[g-1],y=h[g];return{x:(p.x+y.x)/2,y:(p.y+y.y)/2}}function FFn({edge:h,selectedEdgeIds:g,onSelectEdge:p}){const y=h.sections[0];if(!y)return null;const T=[y.startPoint,...y.bendPoints,y.endPoint],C=zFn[h.relationship],j=h.labels[0],P=j?{x:j.x+j.width/2,y:j.y+j.height/2}:BFn(T),q=g?.has(h.id)??!1,U=h.status==="proposed"?"var(--archik-status-proposed)":h.status==="deprecated"?"var(--archik-status-deprecated)":void 0,oe=q?"var(--archik-selected)":U??h.color??C.stroke,ie=q?C.strokeWidth+.5:C.strokeWidth,le=q?S1n:C.markerId,Te=!q&&C.markerStartId!==void 0?C.markerStartId:void 0,Qe=!q&&C.animated?"archik-edge-flowing":void 0,re=C.strokeDasharray!==void 0?C.strokeDasharray.trim().split(/\s+/).reduce((Nn,Rn)=>Nn+Number(Rn),0):0,rn=Qe!==void 0&&re>0?{"--archik-dash-period":String(re)}:void 0,yn=p?Nn=>{Nn.stopPropagation(),p(h.id,Nn)}:void 0;return J.jsxs("g",{"data-archik-edge-id":h.id,"data-archik-edge-relationship":h.relationship,...q?{"data-archik-selected":"true"}:{},...h.status!==void 0&&h.status!=="active"?{"data-archik-status":h.status}:{},className:`archik-edge archik-edge--${h.relationship}`,...yn!==void 0?{onClick:yn}:{},style:p?{cursor:"pointer"}:void 0,children:[p&&J.jsx("polyline",{"data-archik-edge-hitarea":"",points:whn(T),fill:"none",stroke:"transparent",strokeWidth:14,strokeLinecap:"round",strokeLinejoin:"round"}),J.jsx("polyline",{className:Qe,points:whn(T),fill:"none",stroke:oe,strokeWidth:ie,strokeLinecap:"round",strokeLinejoin:"round",markerEnd:`url(#${le})`,...Te!==void 0?{markerStart:`url(#${Te})`}:{},...C.strokeDasharray!==void 0?{strokeDasharray:C.strokeDasharray}:{},...rn!==void 0?{style:rn}:{}}),h.label!==void 0&&P!==void 0&&J.jsx("g",{transform:`translate(${P.x}, ${j?P.y+4:P.y-6})`,children:J.jsx("text",{textAnchor:"middle",fontSize:11,fontWeight:q?700:500,fill:q?"var(--archik-selected)":"var(--archik-fg-dim)",stroke:"var(--archik-panel)",strokeWidth:q?4:3,paintOrder:"stroke",children:h.label})})]})}const Rce=-3,r7e={added:"var(--archik-success)",removed:"var(--archik-danger)",changed:"var(--archik-warning)"};function qFn(h){const g=[],p=(y,T,C)=>{for(const j of y){const P=T+j.x,q=C+j.y;g.push({...j,absX:P,absY:q}),j.children.length>0&&p(j.children,P,q)}};return p(h,0,0),g}function GFn(h){return h.replace(/[^a-z0-9-]/g,g=>`\\${g}`)}function JFn({statuses:h,scopeClass:g}){const p=[];for(const[T,C]of h.nodes)C==="removed"&&p.push(T);if(p.length===0)return null;const y=p.map(T=>`.${g} [data-archik-node-id="${GFn(T)}"] { opacity: 0.35; }`).join(`
32
+ ... Falling back to non-web worker version.`);if(!Vn.workerFactory){var ei=p("./elk-worker.min.js"),rt=ei.Worker;Vn.workerFactory=function(Ni){return new rt(Ni)}}return q(this,Nn,[Vn])}return Te(Nn,yn),j(Nn)})(re);Object.defineProperty(y.exports,"__esModule",{value:!0}),y.exports=rn,rn.default=rn},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(p,y,T){var C=typeof Worker<"u"?Worker:void 0;y.exports=C},{}]},{},[3])(3)})})(g8e)),g8e.exports}var lzn=ozn();const fzn=g1n(lzn),kT=7.4,t5=5.9,azn=5.9,hzn=14;function Yce(h,g){return h.length*g}function Hg(h,g,p){if(g<=0)return"";const y=Math.floor(g/p);return h.length<=y?h:y<=1?"…":h.slice(0,y-1)+"…"}const w8e={nodeSpacing:60,layerSpacing:100,padding:40};function dzn(h){const g=h.nodeSpacing??w8e.nodeSpacing,p=h.layerSpacing??w8e.layerSpacing,y=h.padding??w8e.padding;return{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.edgeRouting":"ORTHOGONAL","elk.layered.spacing.nodeNodeBetweenLayers":String(p),"elk.spacing.nodeNode":String(g),"elk.padding":`[top=${y}, left=${y}, bottom=${y}, right=${y}]`,"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.edgeLabels.placement":"CENTER","elk.spacing.edgeLabel":"8","elk.spacing.labelLabel":"6","elk.spacing.edgeNode":"20","elk.spacing.edgeEdge":"12","elk.layered.spacing.edgeEdgeBetweenLayers":"12"}}const Wl={width:172,height:82},ahn={width:172,height:90},bzn={service:Wl,function:Wl,worker:Wl,agent:Wl,database:{width:184,height:100},cache:ahn,vectordb:Wl,storage:Wl,queue:{width:188,height:80},topic:Wl,stream:Wl,gateway:Wl,cdn:Wl,route:Wl,interface:Wl,adapter:Wl,port:Wl,llm:Wl,prompt:Wl,tool:Wl,auth:Wl,observability:Wl,cloud:{width:200,height:120},frontend:ahn,page:Wl,component:Wl,store:Wl,hook:Wl,external:{width:184,height:100},module:{width:240,height:130},custom:{width:240,height:130}},Eo={width:152,height:36},hhn={width:200,height:80},gzn={service:Eo,function:Eo,worker:Eo,agent:Eo,database:Eo,cache:Eo,vectordb:Eo,storage:Eo,queue:{width:168,height:36},topic:Eo,stream:Eo,gateway:Eo,cdn:Eo,route:Eo,interface:Eo,adapter:Eo,port:Eo,llm:Eo,prompt:Eo,tool:Eo,auth:Eo,observability:Eo,cloud:Eo,frontend:Eo,page:Eo,component:Eo,store:Eo,hook:Eo,external:{width:168,height:40},module:hhn,custom:hhn},wzn=24,dhn=320;function pzn(h,g,p){if(h.kind==="module"||h.kind==="custom")return g;if(p==="compact"){const P=36+Yce(h.name,t5)+12;return Math.max(g,Math.min(dhn,Math.ceil(P)))}const y=Yce(h.name,kT),T=h.stack!==void 0?Yce(h.stack,t5):0,C=Math.max(y,T)+wzn;return Math.max(g,Math.min(dhn,Math.ceil(C)))}const mzn={top:48,left:18,bottom:18,right:18};function vzn(h,g,p,y){const T=p[h.kind],C={id:h.id,width:pzn(h,T.width,y),height:T.height};if(g.length>0){C.children=g;const j=y==="compact"?{top:30,left:12,bottom:12,right:12}:mzn;C.layoutOptions={"elk.padding":`[top=${j.top}, left=${j.left}, bottom=${j.bottom}, right=${j.right}]`}}return C}function yzn(h,g,p){const y=new Map;for(const P of h.nodes)y.set(P.id,P);const T=new Map;for(const P of h.nodes){const q=T.get(P.parentId)??[];q.push(P),T.set(P.parentId,q)}function C(P){const q=(T.get(P.id)??[]).map(C);return vzn(P,q,g,p)}return{roots:(T.get(void 0)??[]).map(C),byId:y}}function kzn(h){return h.fromFile===void 0&&h.toFile===void 0}function jzn(h){return h.edges.filter(kzn).map(g=>{const p={id:g.id,sources:[g.from],targets:[g.to]};return g.label!==void 0&&g.label.length>0&&(p.labels=[{text:g.label,width:Math.ceil(Yce(g.label,azn)),height:hzn}]),p})}function Sb(h){return h??0}function w1n(h,g){const p=g.get(h.id);if(!p)throw new Error(`ELK returned unknown node id "${h.id}"`);const y=(h.children??[]).map(T=>w1n(T,g));return{...p,x:Sb(h.x),y:Sb(h.y),width:Sb(h.width),height:Sb(h.height),children:y}}function Szn(h,g){const p=new Map,y=new Map,T=(U,oe,ie,le)=>{const Te=oe+Sb(U.x),Qe=ie+Sb(U.y);p.set(U.id,{x:Te,y:Qe}),y.set(U.id,le);const re=[...le,U.id];for(const rn of U.children??[])T(rn,Te,Qe,re)};T(h,0,0,[]);const C=(U,oe)=>{const ie=y.get(U)??[],le=y.get(oe)??[];let Te=0;for(;Te<ie.length&&Te<le.length&&ie[Te]===le[Te];)Te++;const Qe=Te===0?h.id:ie[Te-1];return p.get(Qe)??{x:0,y:0}},j=new Map,P=new Map,q=U=>{for(const oe of U.edges??[]){const ie=oe.sources?.[0]??"",le=oe.targets?.[0]??"",Te=C(ie,le),Qe=yn=>({x:Sb(yn.x)+Te.x,y:Sb(yn.y)+Te.y}),re=(oe.sections??[]).map(yn=>({startPoint:Qe(yn.startPoint),endPoint:Qe(yn.endPoint),bendPoints:(yn.bendPoints??[]).map(Qe)}));j.set(oe.id,re);const rn=(oe.labels??[]).map(yn=>({text:typeof yn.text=="string"?yn.text:"",x:Sb(yn.x)+Te.x,y:Sb(yn.y)+Te.y,width:Sb(yn.width),height:Sb(yn.height)}));P.set(oe.id,rn)}for(const oe of U.children??[])q(oe)};return q(h),g.edges.map(U=>({...U,sections:j.get(U.id)??[],labels:P.get(U.id)??[]}))}const Ezn=new fzn;async function Azn(h,g={}){if(h.nodes.length===0)return{document:h,width:0,height:0,roots:[],edges:[]};const p=g.viewMode==="compact"?"compact":"detailed",y=p==="compact"?gzn:bzn,{roots:T,byId:C}=yzn(h,y,p),j={id:"__root__",layoutOptions:dzn(g),children:T,edges:jzn(h)},P=await Ezn.layout(j),q=(P.children??[]).map(U=>w1n(U,C));return{document:h,width:Sb(P.width),height:Sb(P.height),roots:q,edges:Szn(P,h)}}const Tzn={name:"elk",layout:Azn},Mzn=Tzn;function Czn(h,g){return Mzn.layout(h,g)}const p1n=(...h)=>h.filter((g,p,y)=>!!g&&g.trim()!==""&&y.indexOf(g)===p).join(" ").trim();const xzn=h=>h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ozn=h=>h.replace(/^([A-Z])|[\s-_]+(\w)/g,(g,p,y)=>y?y.toUpperCase():p.toLowerCase());const bhn=h=>{const g=Ozn(h);return g.charAt(0).toUpperCase()+g.slice(1)};var p8e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const _zn=h=>{for(const g in h)if(g.startsWith("aria-")||g==="role"||g==="title")return!0;return!1},Nzn=Nt.createContext({}),Izn=()=>Nt.useContext(Nzn),Dzn=Nt.forwardRef(({color:h,size:g,strokeWidth:p,absoluteStrokeWidth:y,className:T="",children:C,iconNode:j,...P},q)=>{const{size:U=24,strokeWidth:oe=2,absoluteStrokeWidth:ie=!1,color:le="currentColor",className:Te=""}=Izn()??{},Qe=y??ie?Number(p??oe)*24/Number(g??U):p??oe;return Nt.createElement("svg",{ref:q,...p8e,width:g??U??p8e.width,height:g??U??p8e.height,stroke:h??le,strokeWidth:Qe,className:p1n("lucide",Te,T),...!C&&!_zn(P)&&{"aria-hidden":"true"},...P},[...j.map(([re,rn])=>Nt.createElement(re,rn)),...Array.isArray(C)?C:[C]])});const $c=(h,g)=>{const p=Nt.forwardRef(({className:y,...T},C)=>Nt.createElement(Dzn,{ref:C,iconNode:g,className:p1n(`lucide-${xzn(bhn(h))}`,`lucide-${h}`,y),...T}));return p.displayName=bhn(h),p};const $zn=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],Lzn=$c("anchor",$zn);const Pzn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Rzn=$c("arrow-right",Pzn);const zzn=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Bzn=$c("arrow-up-right",zzn);const Fzn=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],qzn=$c("bot",Fzn);const Gzn=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Jzn=$c("box",Gzn);const Uzn=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Hzn=$c("boxes",Uzn);const Kzn=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Zzn=$c("brain",Kzn);const Xzn=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Vzn=$c("cable",Xzn);const Wzn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],m1n=$c("chevron-down",Wzn);const Yzn=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Qzn=$c("cloud",Yzn);const eBn=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],nBn=$c("cog",eBn);const tBn=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],iBn=$c("component",tBn);const rBn=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],cBn=$c("database",rBn);const uBn=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],sBn=$c("door-open",uBn);const oBn=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],lBn=$c("external-link",oBn);const fBn=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],aBn=$c("eye",fBn);const hBn=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],dBn=$c("folder-tree",hBn);const bBn=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],gBn=$c("git-branch",bBn);const wBn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pBn=$c("globe",wBn);const mBn=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],vBn=$c("hard-drive",mBn);const yBn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],kBn=$c("info",yBn);const jBn=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],SBn=$c("layers",jBn);const EBn=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],ABn=$c("layout-grid",EBn);const TBn=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],MBn=$c("layout-template",TBn);const CBn=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],xBn=$c("lock",CBn);const OBn=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],_Bn=$c("message-square",OBn);const NBn=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],IBn=$c("monitor",NBn);const DBn=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],$Bn=$c("package",DBn);const LBn=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],PBn=$c("radio",LBn);const RBn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],zBn=$c("redo-2",RBn);const BBn=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],FBn=$c("route",BBn);const qBn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],GBn=$c("rows-3",qBn);const JBn=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],UBn=$c("send-horizontal",JBn);const HBn=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],KBn=$c("server",HBn);const ZBn=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],XBn=$c("shield",ZBn);const VBn=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],WBn=$c("sparkles",VBn);const YBn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],QBn=$c("square-function",YBn);const eFn=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],nFn=$c("sticky-note",eFn);const tFn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],iFn=$c("undo-2",tFn);const rFn=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],cFn=$c("waves",rFn);const uFn=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],sFn=$c("wrench",uFn),v1n=(h,g,p)=>({width:h,height:h,viewBox:"0 0 24 24",fill:"none",stroke:g,strokeWidth:p,strokeLinecap:"round",strokeLinejoin:"round"});function oFn({size:h=16,color:g="currentColor",strokeWidth:p=1.8}){return J.jsxs("svg",{...v1n(h,g,p),"aria-hidden":"true",children:[J.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3.5",ry:"3.5"}),J.jsx("line",{x1:"9",y1:"9",x2:"9",y2:"13"}),J.jsx("line",{x1:"15",y1:"9",x2:"15",y2:"13"}),J.jsx("circle",{cx:"12",cy:"16.5",r:"1",fill:g,stroke:"none"})]})}function lFn({size:h=16,color:g="currentColor",strokeWidth:p=1.8}){return J.jsxs("svg",{...v1n(h,g,p),"aria-hidden":"true",children:[J.jsx("path",{d:"M 7.5 6 L 3.5 12 L 7.5 18"}),J.jsx("path",{d:"M 16.5 6 L 20.5 12 L 16.5 18"}),J.jsx("circle",{cx:"13",cy:"8.6",r:"0.9",fill:g,stroke:"none"}),J.jsx("line",{x1:"13",y1:"11",x2:"11",y2:"16.5"})]})}const n3={service:{color:"#38bdf8",icon:KBn,description:"Long-running compute that owns business logic."},function:{color:"#22d3ee",icon:QBn,description:"Stateless function-as-a-service / lambda."},worker:{color:"#06b6d4",icon:nBn,description:"Background job processor or consumer loop."},agent:{color:"#14b8a6",icon:qzn,description:"Autonomous AI agent driving tools and actions."},database:{color:"#34d399",icon:cBn,description:"Persistent state — relational, document, key-value."},cache:{color:"#a78bfa",icon:SBn,description:"In-memory store for fast reads."},vectordb:{color:"#c084fc",icon:WBn,description:"Vector store for embeddings / similarity search."},storage:{color:"#84cc16",icon:vBn,description:"Object / blob storage (S3, GCS, etc.)."},queue:{color:"#fbbf24",icon:UBn,description:"Asynchronous work queue with at-least-once delivery."},topic:{color:"#f97316",icon:PBn,description:"Pub/sub topic with multiple consumers."},stream:{color:"#fb923c",icon:cFn,description:"Append-only event log (Kafka, Kinesis)."},gateway:{color:"#6366f1",icon:sBn,description:"API gateway, ingress, edge router."},cdn:{color:"#0ea5e9",icon:pBn,description:"Content delivery network / static edge."},route:{color:"#f59e0b",icon:FBn,description:"HTTP / URL route — path + method mapped to a handler."},interface:{color:"#d946ef",icon:lFn,description:"Abstract contract — the <i> a system commits to."},adapter:{color:"#c026d3",icon:Vzn,description:"Concrete implementation of an interface."},port:{color:"#a21caf",icon:oFn,description:"Hexagonal-architecture port — the socket an adapter plugs into."},llm:{color:"#a855f7",icon:Zzn,description:"Large language model service."},prompt:{color:"#c4b5fd",icon:_Bn,description:"Prompt template / instruction set."},tool:{color:"#fde047",icon:sFn,description:"Tool callable by an agent or LLM."},auth:{color:"#ef4444",icon:xBn,description:"Identity provider, auth service."},observability:{color:"#10b981",icon:aBn,description:"Metrics, logs, traces — operational telemetry."},cloud:{color:"#0284c7",icon:Qzn,description:"Managed cloud service (compute, hosted, etc.)."},frontend:{color:"#f472b6",icon:IBn,description:"User-facing surface — browser, mobile, CLI."},page:{color:"#fb7185",icon:MBn,description:"Route-level UI screen mapped to a URL."},component:{color:"#8b5cf6",icon:iBn,description:"Reusable UI component / view fragment."},store:{color:"#facc15",icon:Hzn,description:"Client-side state container — Redux, Zustand, Pinia."},hook:{color:"#0d9488",icon:Lzn,description:"Reusable client logic — React hook, Vue composable."},external:{color:"#94a3b8",icon:lBn,description:"Third-party system you don't own."},module:{color:"#7dd3fc",icon:$Bn,description:"Module / component grouping (logical container)."},custom:{color:"#64748b",icon:Jzn,description:"Container or anything not in the taxonomy."}},S1=28;function i7e({kind:h,iconAt:g,labelAt:p}){const y=n3[h],T=y.icon,C=14;return J.jsxs(J.Fragment,{children:[J.jsx("g",{transform:`translate(${g.cx-C/2}, ${g.cy-C/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(T,{size:C,color:y.color,strokeWidth:1.8})}),J.jsx("text",{x:p.cx,y:p.cy,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.toUpperCase()})]})}const fFn=24;function aFn({node:h,selected:g}){const p=h.width,y=h.height,T=h.stack!==void 0,C=S1+(y-S1)/2,j=T?C-4:C+4,P=C+14,q=Math.max(0,p-fFn),U=Hg(h.name,q,kT),oe=T?Hg(h.stack,q,t5):"";return J.jsxs("g",{className:`archik-node archik-node--${h.kind}`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:10,ry:10,fill:"var(--archik-node-fill)",stroke:g?"var(--archik-selected)":"var(--archik-node-stroke)",strokeWidth:g?1.8:1.4}),J.jsx("line",{x1:0,y1:S1,x2:p,y2:S1,stroke:"var(--archik-node-stroke)",strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:h.kind,iconAt:{cx:18,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:j,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:U}),T&&J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:oe})]})}function hFn({node:h,selected:g}){const p=h.width,y=h.height,T=Math.min(y/2,28),C=h.stack!==void 0,j=S1+(y-S1)/2,P=C?j-4:j+4,q=j+14,U=Math.max(0,p-2*T-8),oe=Hg(h.name,U,kT),ie=C?Hg(h.stack,U,t5):"",le=g?"var(--archik-selected)":"var(--archik-node-stroke)";return J.jsxs("g",{className:"archik-node archik-node--queue",children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:T,ry:T,fill:"var(--archik-node-fill)",stroke:le,strokeWidth:g?1.8:1.4}),J.jsx("line",{x1:T,y1:S1,x2:p-T,y2:S1,stroke:le,strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:"queue",iconAt:{cx:T+8,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),C&&J.jsx("text",{x:p/2,y:q,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:ie})]})}const dFn=24;function bFn({node:h,selected:g}){const p=h.width,y=h.height,T=h.description!==void 0,C=S1,j=C+(y-C)/2,P=T?j-2:j+4,q=y-12,U=Math.max(0,p-dFn),oe=Hg(h.name,U,kT),ie=T?Hg(h.description,U,t5):"",le=g?"var(--archik-selected)":"var(--archik-node-stroke-soft)";return J.jsxs("g",{className:"archik-node archik-node--external",children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:8,ry:8,fill:"var(--archik-node-fill-tinted)",stroke:le,strokeWidth:g?1.8:1.2,strokeDasharray:g?void 0:"6 4"}),J.jsx("line",{x1:6,y1:S1,x2:p-6,y2:S1,stroke:le,strokeOpacity:.25,strokeWidth:1}),J.jsx(i7e,{kind:"external",iconAt:{cx:18,cy:S1/2},labelAt:{cx:p/2,cy:S1/2+3}}),J.jsx("text",{x:p/2,y:P,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),T&&J.jsx("text",{x:p/2,y:q,textAnchor:"middle",fontSize:10,fill:"var(--archik-node-text-dim)",children:ie})]})}const gFn=28,wFn=10,pFn=22;function mFn({node:h,selected:g}){const p=h.width,y=h.height,T=p/2,C=wFn,j=n3[h.kind],P=j.icon,q=g?"var(--archik-selected)":"var(--archik-node-stroke)",U=g?1.8:1.4,oe=h.stack!==void 0,ie=Math.max(0,p-gFn),le=Hg(h.name,ie,kT),Te=oe?Hg(h.stack,ie,t5):"",Qe=y,re=Qe-pFn,rn=(re+Qe)/2,Rn=(C+8+re)/2,Vn=oe?Rn-4:Rn+4,Ot=Rn+14;return J.jsxs("g",{className:"archik-node archik-node--database",children:[J.jsx("path",{className:g?"archik-selected-glow":void 0,d:yFn(p,y,C),fill:"var(--archik-node-fill)",stroke:q,strokeWidth:U,strokeLinejoin:"round"}),J.jsx("ellipse",{cx:T,cy:C,rx:p/2,ry:C,fill:"var(--archik-node-fill)",stroke:q,strokeWidth:U}),J.jsx("text",{x:T,y:Vn,textAnchor:"middle",fontSize:14,fontWeight:600,fill:"var(--archik-node-text)",children:le}),oe&&J.jsx("text",{x:T,y:Ot,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:Te}),J.jsx("line",{x1:4,y1:re,x2:p-4,y2:re,stroke:q,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(14, ${rn-7})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(P,{size:14,color:j.color,strokeWidth:1.9})}),J.jsx("text",{x:T,y:rn+4,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()})]})}const vFn=10;function yFn(h,g,p){const y=vFn;return[`M 0 ${p}`,`L 0 ${g-y}`,`A ${y} ${y} 0 0 0 ${y} ${g}`,`L ${h-y} ${g}`,`A ${y} ${y} 0 0 0 ${h} ${g-y}`,`L ${h} ${p}`,`A ${h/2} ${p} 0 0 0 0 ${p}`,"Z"].join(" ")}const kFn=36,ghn=18;function jFn({node:h,selected:g}){const p=h.width,y=h.height,T=n3[h.kind],C=T.icon,j=g?"var(--archik-selected)":"var(--archik-node-stroke)",P=g?1.8:1.4,q=h.stack!==void 0,U=Math.max(0,p-kFn),oe=Hg(h.name,U,kT),ie=q?Hg(h.stack,U,t5):"",le=p/2,Te=y*.55,Qe=q?Te-4:Te+4,re=Te+14;return J.jsxs("g",{className:"archik-node archik-node--cloud",children:[J.jsx("path",{className:g?"archik-selected-glow":void 0,d:SFn(p,y),fill:"var(--archik-node-fill)",stroke:j,strokeWidth:P,strokeLinejoin:"round"}),J.jsx("g",{transform:`translate(18, ${ghn-6})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(C,{size:14,color:T.color,strokeWidth:1.9})}),J.jsx("text",{x:le,y:ghn+4,textAnchor:"middle",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()}),J.jsx("text",{x:le,y:Qe,textAnchor:"middle",fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:oe}),q&&J.jsx("text",{x:le,y:re,textAnchor:"middle",fontSize:11,fill:"var(--archik-node-text-dim)",children:ie})]})}function SFn(h,g){const y=g-2,T=g*.62,C=Math.min(g*.18,14),j=h-4,P=g*.5,q=Math.min(j*.15,P*.85),U=Math.min(j*.18,P),oe=Math.min(j*.15,P*.85),ie=2*(q+U+oe),le=Math.max(0,j-ie)/4,Te=2,Qe=h-2,re=Te+le,rn=re+2*q,yn=rn+le,Nn=yn+2*U,Rn=Nn+le,Vn=Rn+2*oe;return[`M ${Te} ${y-C}`,`Q ${Te} ${y} ${Te+C} ${y}`,`L ${Qe-C} ${y}`,`Q ${Qe} ${y} ${Qe} ${y-C}`,`L ${Qe} ${T}`,`L ${Vn} ${T}`,`A ${oe} ${oe} 0 0 0 ${Rn} ${T}`,`L ${Nn} ${T}`,`A ${U} ${U} 0 0 0 ${yn} ${T}`,`L ${rn} ${T}`,`A ${q} ${q} 0 0 0 ${re} ${T}`,`L ${Te} ${T}`,"Z"].join(" ")}const YN=32,Pce=14,m8e=14;function EFn({node:h,selected:g,depth:p=0}){const y=h.width,T=h.height;if(!(h.children.length>0))return J.jsx(TFn,{node:h,selected:!!g});const j=n3[h.kind],P=j.icon,q=Math.min(.04+p*.06,.22),U=Math.min(.55+p*.12,.95),oe=g?"var(--archik-selected)":"var(--archik-container-border)",ie=g?1.8:1.2,le=Math.max(0,y-Pce*2-60),Te=Hg(h.name,le,kT);return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--container`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:8,ry:8,fill:j.color,fillOpacity:q,stroke:oe,strokeWidth:ie,pointerEvents:"none"}),p>=1&&y>8&&T>8&&J.jsx("rect",{x:3,y:3,width:y-6,height:T-6,rx:6,ry:6,fill:"none",stroke:j.color,strokeOpacity:Math.min(.18+(p-1)*.06,.32),strokeWidth:1,pointerEvents:"none"}),J.jsx("path",{d:AFn(y,YN,8),fill:j.color,fillOpacity:U*.18}),J.jsx("line",{x1:0,y1:YN,x2:y,y2:YN,stroke:oe,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(${Pce}, ${YN/2-m8e/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(P,{size:m8e,color:j.color,strokeWidth:1.9})}),J.jsx("text",{x:Pce+m8e+8,y:YN/2+4,fontSize:13,fontWeight:600,fill:"var(--archik-node-text)",children:Te}),J.jsx("text",{x:y-Pce,y:YN/2+3,textAnchor:"end",fontSize:9.5,fontWeight:600,letterSpacing:"0.12em",fill:"var(--archik-node-caption)",children:h.kind.toUpperCase()})]})}function AFn(h,g,p){return`M ${p} 0 H ${h-p} A ${p} ${p} 0 0 1 ${h} ${p} V ${g} H 0 V ${p} A ${p} ${p} 0 0 1 ${p} 0 Z`}function TFn({node:h,selected:g}){const p=h.width,y=h.height,T=n3[h.kind],C=g?"var(--archik-selected)":"var(--archik-node-stroke-soft)";return J.jsxs("g",{className:`archik-node archik-node--${h.kind}`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:p,height:y,rx:8,ry:8,fill:"var(--archik-node-fill-tinted)",stroke:C,strokeWidth:g?1.8:1.2,strokeDasharray:g?void 0:"5 4"}),J.jsx("text",{x:p/2,y:y/2+4,textAnchor:"middle",fontSize:12,fontWeight:600,fill:T.color,children:h.name})]})}const JJ=24,y1n=10,L8e=28;function MFn({node:h,selected:g,depth:p=0}){const y=h.width,T=h.height,C=n3[h.kind],j=C.icon,P=h.kind==="external";if(h.children.length>0)return J.jsx(CFn,{node:h,selected:!!g,depth:p});const q=g?"var(--archik-selected)":P?"var(--archik-node-stroke-soft)":"var(--archik-node-stroke)",U=P?"var(--archik-node-fill-tinted)":"var(--archik-node-fill)",oe=h.kind==="queue"?Math.min(T/2,18):8;return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--compact`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:oe,ry:oe,fill:U,stroke:q,strokeWidth:g?1.8:1.4,strokeDasharray:P&&!g?"5 4":void 0}),J.jsx("g",{transform:`translate(${y1n}, ${T/2-7})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(j,{size:13,color:C.color,strokeWidth:1.9})}),J.jsx("text",{x:L8e,y:T/2+4,fontSize:12,fontWeight:600,fill:"var(--archik-node-text)",children:Hg(h.name,Math.max(0,y-L8e-8),t5)})]})}function CFn({node:h,selected:g,depth:p}){const y=h.width,T=h.height,C=n3[h.kind],j=C.icon,P=Math.min(.04+p*.035,.14),q=Math.min(.55+p*.08,.85),U=g?"var(--archik-selected)":"var(--archik-container-border)",oe=Math.max(0,y-12-22),ie=Hg(h.name,oe,t5);return J.jsxs("g",{className:`archik-node archik-node--${h.kind} archik-node--compact archik-node--container`,children:[J.jsx("rect",{className:g?"archik-selected-glow":void 0,width:y,height:T,rx:6,ry:6,fill:C.color,fillOpacity:P,stroke:U,strokeWidth:g?1.8:1.2}),J.jsx("path",{d:xFn(y,JJ,6),fill:C.color,fillOpacity:q*.18}),J.jsx("line",{x1:0,y1:JJ,x2:y,y2:JJ,stroke:U,strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:`translate(${y1n}, ${JJ/2-6})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(j,{size:12,color:C.color,strokeWidth:1.9})}),J.jsx("text",{x:L8e,y:JJ/2+4,fontSize:12,fontWeight:600,fill:"var(--archik-node-text)",children:ie})]})}function xFn(h,g,p){return`M ${p} 0 H ${h-p} A ${p} ${p} 0 0 1 ${h} ${p} V ${g} H 0 V ${p} A ${p} ${p} 0 0 1 ${p} 0 Z`}const OFn=12,_Fn=18;function k1n({Icon:h,cx:g,cy:p,size:y=OFn,color:T,strokeWidth:C=1.8}){return J.jsx("g",{transform:`translate(${g-y/2}, ${p-y/2})`,pointerEvents:"none","aria-hidden":"true",children:J.jsx(h,{size:y,color:T??"var(--archik-fg-dim)",strokeWidth:C})})}function NFn(h){return J.jsx(k1n,{Icon:kBn,...h})}function IFn(h){return J.jsx(k1n,{Icon:nFn,...h})}function DFn({cx:h,cy:g,filePath:p,fileLabel:y,onClick:T,size:C=13}){return J.jsxs("g",{transform:`translate(${h-C/2}, ${g-C/2})`,style:{cursor:T?"pointer":"default"},onClick:T,children:[J.jsx("title",{children:`Cross-file edge → ${y} (${p})`}),J.jsx("circle",{cx:C/2,cy:C/2,r:C/2+.5,fill:"var(--archik-fg-dim)",fillOpacity:.12,stroke:"var(--archik-fg-dim)",strokeOpacity:.4,strokeWidth:1}),J.jsx("g",{transform:"translate(1, 1)",pointerEvents:"none",children:J.jsx(Bzn,{size:C-2,color:"var(--archik-fg-muted)",strokeWidth:2.2})})]})}function $Fn({cx:h,cy:g,onClick:p,size:y=14}){return J.jsxs("g",{transform:`translate(${h-y/2}, ${g-y/2})`,style:{cursor:p?"pointer":"default"},onClick:p,children:[J.jsx("title",{children:"Open sub-architecture"}),J.jsx("circle",{cx:y/2,cy:y/2,r:y/2+.5,fill:"var(--archik-accent)",fillOpacity:.16,stroke:"var(--archik-accent)",strokeOpacity:.45,strokeWidth:1}),J.jsx("g",{transform:"translate(1, 1)",pointerEvents:"none",children:J.jsx(m1n,{size:y-2,color:"var(--archik-accent)",strokeWidth:2.2})})]})}function LFn(h,g,p){switch(h){case"queue":{const T=Math.min(p/2,28);return{right:{x:g-T-4,y:14}}}case"database":return{right:{x:g-14,y:p-11}};default:return{right:{x:g-14,y:14}}}}function PFn(h,g){return Array.from({length:g},(p,y)=>({x:h.x-y*_Fn,y:h.y}))}function RFn({node:h,selected:g,viewMode:p,depth:y}){if(p==="compact")return J.jsx(MFn,{node:h,selected:g,depth:y});if(h.children.length>0)return J.jsx(EFn,{node:h,selected:g,depth:y});switch(h.kind){case"queue":return J.jsx(hFn,{node:h,selected:g});case"external":return J.jsx(bFn,{node:h,selected:g});case"database":return J.jsx(mFn,{node:h,selected:g});case"cloud":return J.jsx(jFn,{node:h,selected:g});case"module":case"custom":case"service":case"function":case"worker":case"agent":case"cache":case"vectordb":case"storage":case"topic":case"stream":case"gateway":case"cdn":case"route":case"interface":case"adapter":case"port":case"llm":case"prompt":case"tool":case"auth":case"observability":case"frontend":case"page":case"component":case"store":case"hook":return J.jsx(aFn,{node:h,selected:g});default:throw h.kind,new Error("unreachable node kind")}}function j1n({node:h,selectedNodeIds:g,glowNodeIds:p,onSelectNode:y,onOpenSubFile:T,onCrossFileNavigate:C,crossFileByNode:j,viewMode:P="detailed",depth:q=0}){const U=g?.has(h.id)??!1,oe=p?.has(h.id)??!1,ie=h.children.length>0,le=ie?q+1:q,Te=y?re=>{re.stopPropagation(),y(h.id,re)}:void 0,Qe=h.description!==void 0&&h.description.length>0;return J.jsxs("g",{"data-archik-node-id":h.id,...U?{"data-archik-selected":"true"}:{},...h.status!==void 0&&h.status!=="active"?{"data-archik-status":h.status}:{},...h.stereotype!==void 0?{"data-archik-stereotype":h.stereotype}:{},transform:`translate(${h.x}, ${h.y})`,...Te!==void 0?{onClick:Te}:{},style:y?{cursor:"pointer"}:void 0,children:[oe&&J.jsx("rect",{x:-4,y:-4,width:h.width+8,height:h.height+8,rx:10,fill:"none",stroke:"var(--archik-status-proposed)",strokeWidth:2,opacity:.85,style:{pointerEvents:"none"}}),J.jsx(RFn,{node:h,selected:U,viewMode:P,depth:q}),h.stereotype!==void 0&&J.jsxs(J.Fragment,{children:[J.jsx("rect",{className:"archik-stereotype-band",x:0,y:0,width:h.width,height:3,rx:1.5,style:{pointerEvents:"none"}}),J.jsx("text",{className:"archik-stereotype-label",x:h.width/2,y:11,textAnchor:"middle",fontSize:8,fontWeight:700,letterSpacing:"0.08em",style:{pointerEvents:"none",userSelect:"none"},children:h.stereotype.toUpperCase()})]}),P==="detailed"&&!ie&&(()=>{const re=h.notes!==void 0&&h.notes.length>0,rn=h.archikFile!==void 0&&h.archikFile.length>0,yn=j?.get(h.id),Nn=yn?Array.from(yn).sort():[],Rn=[];rn&&Rn.push("subarch");for(const Jt of Nn)Rn.push({type:"crossfile",path:Jt});if(Qe&&Rn.push("info"),re&&Rn.push("notes"),Rn.length===0)return null;const Vn=LFn(h.kind,h.width,h.height),Ot=PFn(Vn.right,Rn.length);return J.jsx(J.Fragment,{children:Rn.map((Jt,ei)=>{const rt=Ot[ei];if(typeof Jt=="object"&&Jt.type==="crossfile"){const Ni=Jt.path,Vu=Ni.split("/").pop().replace(/\.archik\.yaml$/,""),mu=C??T,sr=mu?Q=>{Q.stopPropagation(),mu(Ni,Vu)}:void 0;return J.jsx(DFn,{cx:rt.x,cy:rt.y,filePath:Ni,fileLabel:Vu,...sr?{onClick:sr}:{}},`xf-${Ni}`)}if(Jt==="subarch"){const Ni=h.archikFile,Vu=T?mu=>{mu.stopPropagation(),T(Ni,h.name)}:void 0;return J.jsx($Fn,{cx:rt.x,cy:rt.y,...Vu?{onClick:Vu}:{}},"subarch")}return Jt==="info"?J.jsx(NFn,{cx:rt.x,cy:rt.y,color:"var(--archik-node-caption)"},"info"):J.jsxs("g",{children:[J.jsx(IFn,{cx:rt.x,cy:rt.y,color:"var(--archik-node-caption)"}),h.notes&&h.notes.length>1&&J.jsx("text",{x:rt.x+7,y:rt.y-5,fontSize:8,fontWeight:700,fill:"var(--archik-accent)",textAnchor:"middle",pointerEvents:"none",children:h.notes.length})]},"notes")})})})(),h.children.map(re=>J.jsx(j1n,{node:re,viewMode:P,depth:le,...g!==void 0?{selectedNodeIds:g}:{},...p!==void 0?{glowNodeIds:p}:{},...y!==void 0?{onSelectNode:y}:{},...T!==void 0?{onOpenSubFile:T}:{},...C!==void 0?{onCrossFileNavigate:C}:{},...j!==void 0?{crossFileByNode:j}:{}},re.id))]})}const Gg="archik-arrow-filled",rI="archik-arrow-open",S1n="archik-arrow-selected",Qm="var(--archik-edge-filled)",UJ="var(--archik-edge-dim)",zFn={http_call:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},grpc:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},invokes:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},routes_to:{stroke:Qm,strokeWidth:1.4,markerId:Gg},websocket:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg,markerStartId:Gg},webhook:{stroke:Qm,strokeWidth:1.4,strokeDasharray:"2 6",animated:!0,markerId:Gg},reads:{stroke:Qm,strokeWidth:1.4,markerId:rI},writes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},publishes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},subscribes:{stroke:Qm,strokeWidth:1.4,markerId:Gg},streams_to:{stroke:Qm,strokeWidth:1.4,markerId:Gg},implements:{stroke:UJ,strokeWidth:1.2,markerId:rI},extends:{stroke:UJ,strokeWidth:1.2,markerId:rI},depends_on:{stroke:UJ,strokeWidth:1.2,markerId:rI},has_a:{stroke:UJ,strokeWidth:1.2,markerId:Gg},uses:{stroke:UJ,strokeWidth:1.2,markerId:rI}};function whn(h){return h.map(g=>`${g.x},${g.y}`).join(" ")}function BFn(h){if(h.length===0)return;const g=Math.floor(h.length/2);if(h.length%2===1)return h[g];const p=h[g-1],y=h[g];return{x:(p.x+y.x)/2,y:(p.y+y.y)/2}}function FFn({edge:h,selectedEdgeIds:g,onSelectEdge:p}){const y=h.sections[0];if(!y)return null;const T=[y.startPoint,...y.bendPoints,y.endPoint],C=zFn[h.relationship],j=h.labels[0],P=j?{x:j.x+j.width/2,y:j.y+j.height/2}:BFn(T),q=g?.has(h.id)??!1,U=h.status==="proposed"?"var(--archik-status-proposed)":h.status==="deprecated"?"var(--archik-status-deprecated)":void 0,oe=q?"var(--archik-selected)":U??h.color??C.stroke,ie=q?C.strokeWidth+.5:C.strokeWidth,le=q?S1n:C.markerId,Te=!q&&C.markerStartId!==void 0?C.markerStartId:void 0,Qe=!q&&C.animated?"archik-edge-flowing":void 0,re=C.strokeDasharray!==void 0?C.strokeDasharray.trim().split(/\s+/).reduce((Nn,Rn)=>Nn+Number(Rn),0):0,rn=Qe!==void 0&&re>0?{"--archik-dash-period":String(re)}:void 0,yn=p?Nn=>{Nn.stopPropagation(),p(h.id,Nn)}:void 0;return J.jsxs("g",{"data-archik-edge-id":h.id,"data-archik-edge-relationship":h.relationship,...q?{"data-archik-selected":"true"}:{},...h.status!==void 0&&h.status!=="active"?{"data-archik-status":h.status}:{},className:`archik-edge archik-edge--${h.relationship}`,...yn!==void 0?{onClick:yn}:{},style:p?{cursor:"pointer"}:void 0,children:[p&&J.jsx("polyline",{"data-archik-edge-hitarea":"",points:whn(T),fill:"none",stroke:"transparent",strokeWidth:14,strokeLinecap:"round",strokeLinejoin:"round"}),J.jsx("polyline",{className:Qe,points:whn(T),fill:"none",stroke:oe,strokeWidth:ie,strokeLinecap:"round",strokeLinejoin:"round",markerEnd:`url(#${le})`,...Te!==void 0?{markerStart:`url(#${Te})`}:{},...C.strokeDasharray!==void 0?{strokeDasharray:C.strokeDasharray}:{},...rn!==void 0?{style:rn}:{}}),h.label!==void 0&&P!==void 0&&J.jsx("g",{transform:`translate(${P.x}, ${j?P.y+4:P.y-6})`,children:J.jsx("text",{textAnchor:"middle",fontSize:11,fontWeight:q?700:500,fill:q?"var(--archik-selected)":"var(--archik-fg-dim)",stroke:"var(--archik-panel)",strokeWidth:q?4:3,paintOrder:"stroke",children:h.label})})]})}const Rce=-3,r7e={added:"var(--archik-success)",removed:"var(--archik-danger)",changed:"var(--archik-warning)"};function qFn(h){const g=[],p=(y,T,C)=>{for(const j of y){const P=T+j.x,q=C+j.y;g.push({...j,absX:P,absY:q}),j.children.length>0&&p(j.children,P,q)}};return p(h,0,0),g}function GFn(h){return h.replace(/[^a-z0-9-]/g,g=>`\\${g}`)}function JFn({statuses:h,scopeClass:g}){const p=[];for(const[T,C]of h.nodes)C==="removed"&&p.push(T);if(p.length===0)return null;const y=p.map(T=>`.${g} [data-archik-node-id="${GFn(T)}"] { opacity: 0.35; }`).join(`
33
33
  `);return J.jsx("style",{children:y})}function UFn({positioned:h,statuses:g}){return J.jsx("g",{className:"archik-diff-nodes",pointerEvents:"none",children:qFn(h.roots).map(p=>{const y=g.nodes.get(p.id);return y===void 0||y==="unchanged"?null:J.jsx(HFn,{node:p,status:y},p.id)})})}function HFn({node:h,status:g}){const p=r7e[g],y=h.absX+Rce,T=h.absY+Rce,C=h.width-Rce*2,j=h.height-Rce*2,P=g==="removed"?"5 4":void 0,q=phn(h.kind,y-1,T-1,C+2,j+2),U=phn(h.kind,y,T,C,j);return J.jsxs("g",{children:[J.jsx("path",{d:q,fill:"none",stroke:p,strokeOpacity:.25,strokeWidth:6,strokeLinejoin:"round"}),J.jsx("path",{d:U,fill:"none",stroke:p,strokeWidth:2.2,strokeLinejoin:"round",...P!==void 0?{strokeDasharray:P}:{},opacity:.95}),J.jsx(XFn,{x:y+C-6,y:T-6,status:g})]})}function phn(h,g,p,y,T){switch(h){case"queue":{const C=Math.min(T/2,28);return mhn(g,p,y,T,C)}case"database":return KFn(g,p,y,T,12);case"cloud":return ZFn(g,p,y,T);default:return mhn(g,p,y,T,10)}}function mhn(h,g,p,y,T){const C=Math.min(T,p/2),j=Math.min(T,y/2);return[`M ${h+C} ${g}`,`H ${h+p-C}`,`A ${C} ${j} 0 0 1 ${h+p} ${g+j}`,`V ${g+y-j}`,`A ${C} ${j} 0 0 1 ${h+p-C} ${g+y}`,`H ${h+C}`,`A ${C} ${j} 0 0 1 ${h} ${g+y-j}`,`V ${g+j}`,`A ${C} ${j} 0 0 1 ${h+C} ${g}`,"Z"].join(" ")}function KFn(h,g,p,y,T){return[`M ${h} ${g+T}`,`L ${h} ${g+y-10}`,`A 10 10 0 0 0 ${h+10} ${g+y}`,`L ${h+p-10} ${g+y}`,`A 10 10 0 0 0 ${h+p} ${g+y-10}`,`L ${h+p} ${g+T}`,`A ${p/2} ${T} 0 0 0 ${h} ${g+T}`,"Z"].join(" ")}function ZFn(h,g,p,y){const C=y-2,j=y*.62,P=Math.min(y*.18,14),q=p-4,U=y*.5,oe=Math.min(q*.15,U*.85),ie=Math.min(q*.18,U),le=Math.min(q*.15,U*.85),Te=2*(oe+ie+le),Qe=Math.max(0,q-Te)/4,re=2,rn=p-2,yn=re+Qe,Nn=yn+2*oe,Rn=Nn+Qe,Vn=Rn+2*ie,Ot=Vn+Qe,Jt=Ot+2*le;return[`M ${h+re} ${g+C-P}`,`Q ${h+re} ${g+C} ${h+re+P} ${g+C}`,`L ${h+rn-P} ${g+C}`,`Q ${h+rn} ${g+C} ${h+rn} ${g+C-P}`,`L ${h+rn} ${g+j}`,`L ${h+Jt} ${g+j}`,`A ${le} ${le} 0 0 0 ${h+Ot} ${g+j}`,`L ${h+Vn} ${g+j}`,`A ${ie} ${ie} 0 0 0 ${h+Rn} ${g+j}`,`L ${h+Nn} ${g+j}`,`A ${oe} ${oe} 0 0 0 ${h+yn} ${g+j}`,`L ${h+re} ${g+j}`,"Z"].join(" ")}function XFn({x:h,y:g,status:p}){const y=p==="added"?"+":p==="removed"?"−":"~";return J.jsxs("g",{transform:`translate(${h}, ${g})`,children:[J.jsx("circle",{r:9,fill:r7e[p],stroke:"var(--archik-canvas)",strokeWidth:1.5}),J.jsx("text",{textAnchor:"middle",y:4,fontSize:12,fontWeight:700,fill:"white",children:y})]})}function VFn({positioned:h,statuses:g}){return J.jsx("g",{className:"archik-diff-edges",pointerEvents:"none",children:h.edges.map(p=>{const y=g.edges.get(p.id);return y===void 0||y==="unchanged"?null:J.jsx(WFn,{edge:p,status:y},p.id)})})}function WFn({edge:h,status:g}){const p=h.sections[0];if(!p)return null;const y=[p.startPoint,...p.bendPoints,p.endPoint];return J.jsx("polyline",{points:y.map(T=>`${T.x},${T.y}`).join(" "),fill:"none",stroke:r7e[g],strokeWidth:3,strokeOpacity:.55,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:g==="removed"?"8 4":void 0})}const zce=24;function YFn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"context-stroke"})})}function QFn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 12 12",refX:"11",refY:"6",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 1 1 L 11 6 L 1 11",fill:"none",stroke:"context-stroke",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"})})}function eqn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"var(--archik-selected)"})})}function nqn({positioned:h,viewMode:g="detailed",selectedNodeIds:p,selectedEdgeIds:y,glowNodeIds:T,onSelectNode:C,onSelectEdge:j,onOpenSubFile:P,onCrossFileNavigate:q}){const U=new Map;for(const oe of h.edges){if(oe.toFile!==void 0){const ie=U.get(oe.from)??new Set;ie.add(oe.toFile),U.set(oe.from,ie)}if(oe.fromFile!==void 0){const ie=U.get(oe.to)??new Set;ie.add(oe.fromFile),U.set(oe.to,ie)}}return J.jsxs(J.Fragment,{children:[J.jsxs("defs",{children:[J.jsx(YFn,{id:Gg}),J.jsx(QFn,{id:rI}),J.jsx(eqn,{id:S1n})]}),J.jsx("g",{className:"archik-edges",children:h.edges.map(oe=>J.jsx(FFn,{edge:oe,...y!==void 0?{selectedEdgeIds:y}:{},...j!==void 0?{onSelectEdge:j}:{}},oe.id))}),J.jsx("g",{className:"archik-nodes",children:h.roots.map(oe=>J.jsx(j1n,{node:oe,viewMode:g,crossFileByNode:U,...p!==void 0?{selectedNodeIds:p}:{},...T!==void 0?{glowNodeIds:T}:{},...C!==void 0?{onSelectNode:C}:{},...P!==void 0?{onOpenSubFile:P}:{},...q!==void 0?{onCrossFileNavigate:q}:{}},oe.id))})]})}function tqn(h,g){const p=(y,T,C)=>{for(const j of y){if(j.id===g)return{x:T+j.x+j.width/2,y:C+j.y+j.height/2};const P=p(j.children,T+j.x,C+j.y);if(P)return P}return null};return p(h.roots,0,0)}function iqn({positioned:h,className:g,zoom:p=1,viewMode:y="detailed",svgRef:T,dragGhost:C,selectedNodeIds:j,selectedEdgeIds:P,glowNodeIds:q,onSelectNode:U,onSelectEdge:oe,onSelectNothing:ie,onOpenSubFile:le,onCrossFileNavigate:Te,diffStatuses:Qe,robustnessMode:re}){const rn=Math.max(h.width,1),yn=Math.max(h.height,1),Nn=-zce,Rn=-zce,Vn=rn+zce*2,Ot=yn+zce*2,Jt=C?tqn(h,C.fromId):null;return J.jsxs("svg",{ref:T,className:g,xmlns:"http://www.w3.org/2000/svg",width:Vn*p,height:Ot*p,viewBox:`${Nn} ${Rn} ${Vn} ${Ot}`,preserveAspectRatio:"xMidYMid meet",style:{display:"block",flexShrink:0},onClick:ie,...re?{"data-archik-robustness-mode":"true"}:{},children:[Qe&&J.jsx(JFn,{statuses:Qe,scopeClass:"archik-diff-base"}),J.jsx("g",{className:Qe?"archik-diff-base":void 0,children:J.jsx(nqn,{positioned:h,viewMode:y,...j!==void 0?{selectedNodeIds:j}:{},...P!==void 0?{selectedEdgeIds:P}:{},...q!==void 0?{glowNodeIds:q}:{},...U!==void 0?{onSelectNode:U}:{},...oe!==void 0?{onSelectEdge:oe}:{},...le!==void 0?{onOpenSubFile:le}:{},...Te!==void 0?{onCrossFileNavigate:Te}:{}})}),Qe&&J.jsxs(J.Fragment,{children:[J.jsx(VFn,{positioned:h,statuses:Qe}),J.jsx(UFn,{positioned:h,statuses:Qe})]}),C&&Jt&&J.jsxs("g",{className:"archik-drag-ghost",pointerEvents:"none",children:[J.jsx("line",{x1:Jt.x,y1:Jt.y,x2:C.pointerX,y2:C.pointerY,stroke:"var(--archik-selected)",strokeWidth:1.6,strokeDasharray:"6 4",strokeLinecap:"round",opacity:.85}),J.jsx("circle",{cx:C.pointerX,cy:C.pointerY,r:4,fill:"var(--archik-selected)",opacity:.9})]})]})}const rqn=.25,cqn=4,Bce=1.2,v8e=h=>Math.max(rqn,Math.min(cqn,h)),uqn=5;function sqn(h,g,p){const y=h.createSVGPoint();y.x=g,y.y=p;const T=h.getScreenCTM();if(!T)return{x:0,y:0};const C=y.matrixTransform(T.inverse());return{x:C.x,y:C.y}}function oqn({document:h,className:g,layoutOptions:p,viewMode:y="detailed",selectedNodeIds:T,selectedEdgeIds:C,onSelectNode:j,onSelectEdge:P,onSelectNothing:q,onConnectDrag:U,onOpenSubFile:oe,onCrossFileNavigate:ie,viewKey:le,diffStatuses:Te,glowNodeIds:Qe,robustnessMode:re,svgRef:rn}){const yn=Nt.useMemo(()=>Czn(h,p),[h,p]),[Nn,Rn]=Nt.useState(null),[Vn,Ot]=Nt.useState(1),[Jt,ei]=Nt.useState({type:"idle"}),rt=Nt.useRef(null),Ni=Nt.useRef(null),Vu=rn??Ni,mu=Nt.useRef(Vn);mu.current=Vn;const sr=Nt.useRef(new Map),Q=Nt.useRef(!1);Nt.useEffect(()=>{let et=!1;return yn.then(Ti=>{et||Rn(Ti)}),()=>{et=!0}},[yn]);const Cf=Nn!==null;Nt.useEffect(()=>{if(!Cf)return;const et=rt.current;if(!et)return;const Ti=Br=>{if(!(Br.ctrlKey||Br.metaKey))return;Br.preventDefault();const vc=Br.deltaY<0?Bce:1/Bce;Ot(Ke=>v8e(Ke*vc))};return et.addEventListener("wheel",Ti,{passive:!1}),()=>et.removeEventListener("wheel",Ti)},[Cf]),Nt.useEffect(()=>{const et=rt.current;if(!et)return;const Ti=Br=>{Q.current&&(Q.current=!1,Br.stopImmediatePropagation(),Br.preventDefault())};return et.addEventListener("click",Ti,{capture:!0}),()=>et.removeEventListener("click",Ti,{capture:!0})},[]),Nt.useEffect(()=>{if(le===void 0)return;const et=le;return()=>{const Ti=rt.current;sr.current.set(et,{zoom:mu.current,scrollX:Ti?.scrollLeft??0,scrollY:Ti?.scrollTop??0})}},[le]);const Ps=Nn!==null;Nt.useEffect(()=>{if(le===void 0||!Ps)return;const et=sr.current.get(le);Ot(et?et.zoom:1);const Ti=requestAnimationFrame(()=>{const Br=rt.current;Br&&(Br.scrollLeft=et?.scrollX??0,Br.scrollTop=et?.scrollY??0)});return()=>cancelAnimationFrame(Ti)},[le,Ps]);const qn=et=>{if(et.button!==0||et.metaKey||et.ctrlKey||et.shiftKey||!U)return;const Br=(et.target instanceof Element?et.target:null)?.closest("[data-archik-node-id]");if(!Br)return;const vc=Br.getAttribute("data-archik-node-id");if(!vc)return;const Ke=et.clientX,Wn=et.clientY;let ti=!1;const wi=Rs=>{if(!ti){const ds=Rs.clientX-Ke,oa=Rs.clientY-Wn;if(Math.hypot(ds,oa)<uqn)return;ti=!0}const Wu=Vu.current;if(!Wu)return;const sh=sqn(Wu,Rs.clientX,Rs.clientY);ei({type:"dragging",from:vc,pointerSvgX:sh.x,pointerSvgY:sh.y})},vr=()=>{window.removeEventListener("pointermove",wi),window.removeEventListener("pointerup",Ur),window.removeEventListener("pointercancel",Cc)},Ur=Rs=>{if(vr(),ti){const ds=globalThis.document.elementFromPoint(Rs.clientX,Rs.clientY)?.closest("[data-archik-node-id]")?.getAttribute("data-archik-node-id")??null;ds&&ds!==vc&&U&&U(vc,ds),Q.current=!0}ei({type:"idle"})},Cc=()=>{vr(),ei({type:"idle"})};window.addEventListener("pointermove",wi),window.addEventListener("pointerup",Ur),window.addEventListener("pointercancel",Cc)};return Nn?J.jsxs("div",{className:g,style:{position:"relative",overflow:"hidden"},children:[J.jsx("div",{ref:rt,onPointerDown:qn,onClick:et=>{et.target===et.currentTarget&&q&&q()},style:{width:"100%",height:"100%",overflow:"auto",display:"flex",justifyContent:"safe center",alignItems:"safe center"},children:J.jsx(iqn,{positioned:Nn,zoom:Vn,viewMode:y,svgRef:Vu,dragGhost:Jt.type==="dragging"?{fromId:Jt.from,pointerX:Jt.pointerSvgX,pointerY:Jt.pointerSvgY}:null,...T!==void 0?{selectedNodeIds:T}:{},...C!==void 0?{selectedEdgeIds:C}:{},...j!==void 0?{onSelectNode:j}:{},...P!==void 0?{onSelectEdge:P}:{},...q!==void 0?{onSelectNothing:q}:{},...oe!==void 0?{onOpenSubFile:oe}:{},...ie!==void 0?{onCrossFileNavigate:ie}:{},...Te!==void 0?{diffStatuses:Te}:{},...Qe!==void 0?{glowNodeIds:Qe}:{},...re!==void 0?{robustnessMode:re}:{}})}),J.jsx(lqn,{zoom:Vn,onZoomIn:()=>Ot(et=>v8e(et*Bce)),onZoomOut:()=>Ot(et=>v8e(et/Bce)),onZoomReset:()=>Ot(1)})]}):J.jsx("div",{className:g,role:"status","aria-live":"polite",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",color:"#64748b",fontFamily:"Inter, system-ui, sans-serif",fontSize:13},children:"Laying out…"})}function lqn({zoom:h,onZoomIn:g,onZoomOut:p,onZoomReset:y}){return J.jsxs("div",{style:{position:"absolute",right:12,bottom:12,display:"flex",gap:4,padding:4,background:"var(--archik-panel)",border:"1px solid var(--archik-border)",borderRadius:6,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.18)"},children:[J.jsx("button",{type:"button",onClick:p,title:"Zoom out","aria-label":"Zoom out",className:"archik-btn",style:{minWidth:28,padding:"0 8px",height:24},children:"−"}),J.jsxs("button",{type:"button",onClick:y,title:"Reset zoom (100%)","aria-label":"Reset zoom",className:"archik-btn",style:{minWidth:48,padding:"0 8px",height:24},children:[Math.round(h*100),"%"]}),J.jsx("button",{type:"button",onClick:g,title:"Zoom in","aria-label":"Zoom in",className:"archik-btn",style:{minWidth:28,padding:"0 8px",height:24},children:"+"})]})}const c7e=Symbol.for("yaml.alias"),P8e=Symbol.for("yaml.document"),Z8=Symbol.for("yaml.map"),E1n=Symbol.for("yaml.pair"),fy=Symbol.for("yaml.scalar"),vI=Symbol.for("yaml.seq"),Np=Symbol.for("yaml.node.type"),Y8=h=>!!h&&typeof h=="object"&&h[Np]===c7e,jT=h=>!!h&&typeof h=="object"&&h[Np]===P8e,yI=h=>!!h&&typeof h=="object"&&h[Np]===Z8,jl=h=>!!h&&typeof h=="object"&&h[Np]===E1n,Ao=h=>!!h&&typeof h=="object"&&h[Np]===fy,kI=h=>!!h&&typeof h=="object"&&h[Np]===vI;function Yl(h){if(h&&typeof h=="object")switch(h[Np]){case Z8:case vI:return!0}return!1}function Ql(h){if(h&&typeof h=="object")switch(h[Np]){case c7e:case Z8:case fy:case vI:return!0}return!1}const A1n=h=>(Ao(h)||Yl(h))&&!!h.anchor,Eb=Symbol("break visit"),T1n=Symbol("skip children"),ly=Symbol("remove node");function ST(h,g){const p=M1n(g);jT(h)?cI(null,h.contents,p,Object.freeze([h]))===ly&&(h.contents=null):cI(null,h,p,Object.freeze([]))}ST.BREAK=Eb;ST.SKIP=T1n;ST.REMOVE=ly;function cI(h,g,p,y){const T=C1n(h,g,p,y);if(Ql(T)||jl(T))return x1n(h,y,T),cI(h,T,p,y);if(typeof T!="symbol"){if(Yl(g)){y=Object.freeze(y.concat(g));for(let C=0;C<g.items.length;++C){const j=cI(C,g.items[C],p,y);if(typeof j=="number")C=j-1;else{if(j===Eb)return Eb;j===ly&&(g.items.splice(C,1),C-=1)}}}else if(jl(g)){y=Object.freeze(y.concat(g));const C=cI("key",g.key,p,y);if(C===Eb)return Eb;C===ly&&(g.key=null);const j=cI("value",g.value,p,y);if(j===Eb)return Eb;j===ly&&(g.value=null)}}return T}async function hue(h,g){const p=M1n(g);jT(h)?await uI(null,h.contents,p,Object.freeze([h]))===ly&&(h.contents=null):await uI(null,h,p,Object.freeze([]))}hue.BREAK=Eb;hue.SKIP=T1n;hue.REMOVE=ly;async function uI(h,g,p,y){const T=await C1n(h,g,p,y);if(Ql(T)||jl(T))return x1n(h,y,T),uI(h,T,p,y);if(typeof T!="symbol"){if(Yl(g)){y=Object.freeze(y.concat(g));for(let C=0;C<g.items.length;++C){const j=await uI(C,g.items[C],p,y);if(typeof j=="number")C=j-1;else{if(j===Eb)return Eb;j===ly&&(g.items.splice(C,1),C-=1)}}}else if(jl(g)){y=Object.freeze(y.concat(g));const C=await uI("key",g.key,p,y);if(C===Eb)return Eb;C===ly&&(g.key=null);const j=await uI("value",g.value,p,y);if(j===Eb)return Eb;j===ly&&(g.value=null)}}return T}function M1n(h){return typeof h=="object"&&(h.Collection||h.Node||h.Value)?Object.assign({Alias:h.Node,Map:h.Node,Scalar:h.Node,Seq:h.Node},h.Value&&{Map:h.Value,Scalar:h.Value,Seq:h.Value},h.Collection&&{Map:h.Collection,Seq:h.Collection},h):h}function C1n(h,g,p,y){if(typeof p=="function")return p(h,g,y);if(yI(g))return p.Map?.(h,g,y);if(kI(g))return p.Seq?.(h,g,y);if(jl(g))return p.Pair?.(h,g,y);if(Ao(g))return p.Scalar?.(h,g,y);if(Y8(g))return p.Alias?.(h,g,y)}function x1n(h,g,p){const y=g[g.length-1];if(Yl(y))y.items[h]=p;else if(jl(y))h==="key"?y.key=p:y.value=p;else if(jT(y))y.contents=p;else{const T=Y8(y)?"alias":"scalar";throw new Error(`Cannot replace node with ${T} parent`)}}const fqn={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},aqn=h=>h.replace(/[!,[\]{}]/g,g=>fqn[g]);class w0{constructor(g,p){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},w0.defaultYaml,g),this.tags=Object.assign({},w0.defaultTags,p)}clone(){const g=new w0(this.yaml,this.tags);return g.docStart=this.docStart,g}atDocument(){const g=new w0(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:w0.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},w0.defaultTags);break}return g}add(g,p){this.atNextDocument&&(this.yaml={explicit:w0.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},w0.defaultTags),this.atNextDocument=!1);const y=g.trim().split(/[ \t]+/),T=y.shift();switch(T){case"%TAG":{if(y.length!==2&&(p(0,"%TAG directive should contain exactly two parts"),y.length<2))return!1;const[C,j]=y;return this.tags[C]=j,!0}case"%YAML":{if(this.yaml.explicit=!0,y.length!==1)return p(0,"%YAML directive should contain exactly one part"),!1;const[C]=y;if(C==="1.1"||C==="1.2")return this.yaml.version=C,!0;{const j=/^\d+\.\d+$/.test(C);return p(6,`Unsupported YAML version ${C}`,j),!1}}default:return p(0,`Unknown directive ${T}`,!0),!1}}tagName(g,p){if(g==="!")return"!";if(g[0]!=="!")return p(`Not a valid tag: ${g}`),null;if(g[1]==="<"){const j=g.slice(2,-1);return j==="!"||j==="!!"?(p(`Verbatim tags aren't resolved, so ${g} is invalid.`),null):(g[g.length-1]!==">"&&p("Verbatim tags must end with a >"),j)}const[,y,T]=g.match(/^(.*!)([^!]*)$/s);T||p(`The ${g} tag has no suffix`);const C=this.tags[y];if(C)try{return C+decodeURIComponent(T)}catch(j){return p(String(j)),null}return y==="!"?g:(p(`Could not resolve tag: ${g}`),null)}tagString(g){for(const[p,y]of Object.entries(this.tags))if(g.startsWith(y))return p+aqn(g.substring(y.length));return g[0]==="!"?g:`!<${g}>`}toString(g){const p=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],y=Object.entries(this.tags);let T;if(g&&y.length>0&&Ql(g.contents)){const C={};ST(g.contents,(j,P)=>{Ql(P)&&P.tag&&(C[P.tag]=!0)}),T=Object.keys(C)}else T=[];for(const[C,j]of y)C==="!!"&&j==="tag:yaml.org,2002:"||(!g||T.some(P=>P.startsWith(j)))&&p.push(`%TAG ${C} ${j}`);return p.join(`
34
34
  `)}}w0.defaultYaml={explicit:!1,version:"1.2"};w0.defaultTags={"!!":"tag:yaml.org,2002:"};function O1n(h){if(/[\x00-\x19\s,[\]{}]/.test(h)){const p=`Anchor must not contain whitespace or control characters: ${JSON.stringify(h)}`;throw new Error(p)}return!0}function _1n(h){const g=new Set;return ST(h,{Value(p,y){y.anchor&&g.add(y.anchor)}}),g}function N1n(h,g){for(let p=1;;++p){const y=`${h}${p}`;if(!g.has(y))return y}}function hqn(h,g){const p=[],y=new Map;let T=null;return{onAnchor:C=>{p.push(C),T??(T=_1n(h));const j=N1n(g,T);return T.add(j),j},setAnchors:()=>{for(const C of p){const j=y.get(C);if(typeof j=="object"&&j.anchor&&(Ao(j.node)||Yl(j.node)))j.node.anchor=j.anchor;else{const P=new Error("Failed to resolve repeated object (this should not happen)");throw P.source=C,P}}},sourceObjects:y}}function sI(h,g,p,y){if(y&&typeof y=="object")if(Array.isArray(y))for(let T=0,C=y.length;T<C;++T){const j=y[T],P=sI(h,y,String(T),j);P===void 0?delete y[T]:P!==j&&(y[T]=P)}else if(y instanceof Map)for(const T of Array.from(y.keys())){const C=y.get(T),j=sI(h,y,T,C);j===void 0?y.delete(T):j!==C&&y.set(T,j)}else if(y instanceof Set)for(const T of Array.from(y)){const C=sI(h,y,T,T);C===void 0?y.delete(T):C!==T&&(y.delete(T),y.add(C))}else for(const[T,C]of Object.entries(y)){const j=sI(h,y,T,C);j===void 0?delete y[T]:j!==C&&(y[T]=j)}return h.call(g,p,y)}function _p(h,g,p){if(Array.isArray(h))return h.map((y,T)=>_p(y,String(T),p));if(h&&typeof h.toJSON=="function"){if(!p||!A1n(h))return h.toJSON(g,p);const y={aliasCount:0,count:1,res:void 0};p.anchors.set(h,y),p.onCreate=C=>{y.res=C,delete p.onCreate};const T=h.toJSON(g,p);return p.onCreate&&p.onCreate(T),T}return typeof h=="bigint"&&!p?.keep?Number(h):h}class u7e{constructor(g){Object.defineProperty(this,Np,{value:g})}clone(){const g=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(g.range=this.range.slice()),g}toJS(g,{mapAsMap:p,maxAliasCount:y,onAnchor:T,reviver:C}={}){if(!jT(g))throw new TypeError("A document argument is required");const j={anchors:new Map,doc:g,keep:!0,mapAsMap:p===!0,mapKeyWarned:!1,maxAliasCount:typeof y=="number"?y:100},P=_p(this,"",j);if(typeof T=="function")for(const{count:q,res:U}of j.anchors.values())T(U,q);return typeof C=="function"?sI(C,{"":P},"",P):P}}class due extends u7e{constructor(g){super(c7e),this.source=g,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(g,p){let y;p?.aliasResolveCache?y=p.aliasResolveCache:(y=[],ST(g,{Node:(C,j)=>{(Y8(j)||A1n(j))&&y.push(j)}}),p&&(p.aliasResolveCache=y));let T;for(const C of y){if(C===this)break;C.anchor===this.source&&(T=C)}return T}toJSON(g,p){if(!p)return{source:this.source};const{anchors:y,doc:T,maxAliasCount:C}=p,j=this.resolve(T,p);if(!j){const q=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(q)}let P=y.get(j);if(P||(_p(j,null,p),P=y.get(j)),P?.res===void 0){const q="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(q)}if(C>=0&&(P.count+=1,P.aliasCount===0&&(P.aliasCount=Qce(T,j,y)),P.count*P.aliasCount>C)){const q="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(q)}return P.res}toString(g,p,y){const T=`*${this.source}`;if(g){if(O1n(this.source),g.options.verifyAliasOrder&&!g.anchors.has(this.source)){const C=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(C)}if(g.implicitKey)return`${T} `}return T}}function Qce(h,g,p){if(Y8(g)){const y=g.resolve(h),T=p&&y&&p.get(y);return T?T.count*T.aliasCount:0}else if(Yl(g)){let y=0;for(const T of g.items){const C=Qce(h,T,p);C>y&&(y=C)}return y}else if(jl(g)){const y=Qce(h,g.key,p),T=Qce(h,g.value,p);return Math.max(y,T)}return 1}const I1n=h=>!h||typeof h!="function"&&typeof h!="object";class wc extends u7e{constructor(g){super(fy),this.value=g}toJSON(g,p){return p?.keep?this.value:_p(this.value,g,p)}toString(){return String(this.value)}}wc.BLOCK_FOLDED="BLOCK_FOLDED";wc.BLOCK_LITERAL="BLOCK_LITERAL";wc.PLAIN="PLAIN";wc.QUOTE_DOUBLE="QUOTE_DOUBLE";wc.QUOTE_SINGLE="QUOTE_SINGLE";const dqn="tag:yaml.org,2002:";function bqn(h,g,p){if(g){const y=p.filter(C=>C.tag===g),T=y.find(C=>!C.format)??y[0];if(!T)throw new Error(`Tag ${g} not found`);return T}return p.find(y=>y.identify?.(h)&&!y.format)}function VJ(h,g,p){if(jT(h)&&(h=h.contents),Ql(h))return h;if(jl(h)){const ie=p.schema[Z8].createNode?.(p.schema,null,p);return ie.items.push(h),ie}(h instanceof String||h instanceof Number||h instanceof Boolean||typeof BigInt<"u"&&h instanceof BigInt)&&(h=h.valueOf());const{aliasDuplicateObjects:y,onAnchor:T,onTagObj:C,schema:j,sourceObjects:P}=p;let q;if(y&&h&&typeof h=="object"){if(q=P.get(h),q)return q.anchor??(q.anchor=T(h)),new due(q.anchor);q={anchor:null,node:null},P.set(h,q)}g?.startsWith("!!")&&(g=dqn+g.slice(2));let U=bqn(h,g,j.tags);if(!U){if(h&&typeof h.toJSON=="function"&&(h=h.toJSON()),!h||typeof h!="object"){const ie=new wc(h);return q&&(q.node=ie),ie}U=h instanceof Map?j[Z8]:Symbol.iterator in Object(h)?j[vI]:j[Z8]}C&&(C(U),delete p.onTagObj);const oe=U?.createNode?U.createNode(p.schema,h,p):typeof U?.nodeClass?.from=="function"?U.nodeClass.from(p.schema,h,p):new wc(h);return g?oe.tag=g:U.default||(oe.tag=U.tag),q&&(q.node=oe),oe}function iue(h,g,p){let y=p;for(let T=g.length-1;T>=0;--T){const C=g[T];if(typeof C=="number"&&Number.isInteger(C)&&C>=0){const j=[];j[C]=y,y=j}else y=new Map([[C,y]])}return VJ(y,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:h,sourceObjects:new Map})}const KJ=h=>h==null||typeof h=="object"&&!!h[Symbol.iterator]().next().done;class D1n extends u7e{constructor(g,p){super(g),Object.defineProperty(this,"schema",{value:p,configurable:!0,enumerable:!1,writable:!0})}clone(g){const p=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return g&&(p.schema=g),p.items=p.items.map(y=>Ql(y)||jl(y)?y.clone(g):y),this.range&&(p.range=this.range.slice()),p}addIn(g,p){if(KJ(g))this.add(p);else{const[y,...T]=g,C=this.get(y,!0);if(Yl(C))C.addIn(T,p);else if(C===void 0&&this.schema)this.set(y,iue(this.schema,T,p));else throw new Error(`Expected YAML collection at ${y}. Remaining path: ${T}`)}}deleteIn(g){const[p,...y]=g;if(y.length===0)return this.delete(p);const T=this.get(p,!0);if(Yl(T))return T.deleteIn(y);throw new Error(`Expected YAML collection at ${p}. Remaining path: ${y}`)}getIn(g,p){const[y,...T]=g,C=this.get(y,!0);return T.length===0?!p&&Ao(C)?C.value:C:Yl(C)?C.getIn(T,p):void 0}hasAllNullValues(g){return this.items.every(p=>{if(!jl(p))return!1;const y=p.value;return y==null||g&&Ao(y)&&y.value==null&&!y.commentBefore&&!y.comment&&!y.tag})}hasIn(g){const[p,...y]=g;if(y.length===0)return this.has(p);const T=this.get(p,!0);return Yl(T)?T.hasIn(y):!1}setIn(g,p){const[y,...T]=g;if(T.length===0)this.set(y,p);else{const C=this.get(y,!0);if(Yl(C))C.setIn(T,p);else if(C===void 0&&this.schema)this.set(y,iue(this.schema,T,p));else throw new Error(`Expected YAML collection at ${y}. Remaining path: ${T}`)}}}const gqn=h=>h.replace(/^(?!$)(?: $)?/gm,"#");function e5(h,g){return/^\n+$/.test(h)?h.substring(1):g?h.replace(/^(?! *$)/gm,g):h}const pT=(h,g,p)=>h.endsWith(`
35
35
  `)?e5(p,g):p.includes(`
@@ -220,4 +220,4 @@ ${ZZn(p)}
220
220
  `)}function YZn(h,g){const p=g.get(h.from)?.name??h.from,y=g.get(h.to)?.name??h.to,T=h.label!==void 0?`: ${h.label}`:"",C=h.status&&h.status!=="active"?` _(${h.status})_`:"";return`- ${p} **${h.relationship}** ${y}${T}${C}`}function QZn(h){const g=new Map;for(const y of h.nodes)g.set(y.id,y);const p=[];if(p.push(`# ${h.name}`),h.description!==void 0&&p.push("",h.description),p.push("","## Components"),h.nodes.length===0)p.push("","_No components yet._");else for(const y of h.nodes)p.push("",WZn(y));if(p.push("","## Connections"),h.edges.length===0)p.push("","_No connections yet._");else{p.push("");for(const y of h.edges)p.push(YZn(y,g))}return`${p.join(`
221
221
  `)}
222
222
  `}const eXn={name:"yaml",label:"YAML",extension:".yaml",mime:"application/yaml",export:O7e},nXn={name:"json",label:"JSON",extension:".json",mime:"application/json",export:Vdn},tXn={name:"markdown",label:"Markdown",extension:".md",mime:"text/markdown",export:QZn},iXn=[eXn,nXn,tXn];function t0n({document:h,filename:g,getSvg:p}){const y=async j=>{try{await navigator.clipboard.writeText(j)}catch{}},T=()=>{const j=p?.();j&&t1n(i1n(g,"svg"),XZn(j))},C=async()=>{const j=p?.();if(j)try{const P=await VZn(j);t1n(i1n(g,"png"),P)}catch(P){console.error("PNG export failed:",P)}};return J.jsx(AT,{trigger:j=>J.jsxs("button",{type:"button",className:"archik-btn",children:["Export",J.jsx("span",{style:{opacity:.6},children:j?"▴":"▾"})]}),children:j=>J.jsxs(J.Fragment,{children:[h&&iXn.map(P=>J.jsxs("button",{type:"button",className:"archik-menu-item",onClick:()=>{y(P.export(h)),j()},children:[J.jsx("span",{style:{minWidth:60,color:"var(--archik-fg-dim)"},children:"Copy"}),J.jsx("span",{children:P.label})]},P.name)),h&&J.jsxs(J.Fragment,{children:[J.jsx("hr",{style:{border:0,borderTop:"1px solid var(--archik-border)",margin:"4px 0"}}),J.jsxs("button",{type:"button",className:"archik-menu-item",onClick:()=>{fZn(g,h),j()},children:[J.jsx("span",{style:{minWidth:60,color:"var(--archik-fg-dim)"},children:"Download"}),J.jsx("span",{children:"YAML"})]})]}),p&&J.jsxs(J.Fragment,{children:[J.jsxs("button",{type:"button",className:"archik-menu-item",onClick:()=>{T(),j()},children:[J.jsx("span",{style:{minWidth:60,color:"var(--archik-fg-dim)"},children:"Download"}),J.jsx("span",{children:"SVG"})]}),J.jsxs("button",{type:"button",className:"archik-menu-item",onClick:()=>{C(),j()},children:[J.jsx("span",{style:{minWidth:60,color:"var(--archik-fg-dim)"},children:"Download"}),J.jsx("span",{children:"PNG"})]})]})]})})}const i0n="archik-density",r0n="archik-view-mode",aI=1,O8e="detailed";function rXn(){if(typeof localStorage>"u")return O8e;try{return localStorage.getItem(r0n)==="compact"?"compact":O8e}catch{return O8e}}function cXn(h){if(!(typeof localStorage>"u"))try{localStorage.setItem(r0n,h)}catch{}}function uXn(){if(typeof localStorage>"u")return aI;try{const h=localStorage.getItem(i0n);if(!h)return aI;const g=Number.parseFloat(h);return Number.isFinite(g)?N7e(g):aI}catch{return aI}}function sXn(h){if(!(typeof localStorage>"u"))try{localStorage.setItem(i0n,String(N7e(h)))}catch{}}function N7e(h){return Math.max(.3,Math.min(4,h))}function oXn(h){const g=N7e(h);return{nodeSpacing:Math.round(60*g),layerSpacing:Math.round(100*g),padding:Math.round(40*g)}}function lXn({density:h,onChange:g}){const p=Math.round(h*100);return J.jsx(AT,{align:"end",trigger:y=>J.jsxs("button",{type:"button",className:"archik-btn","aria-expanded":y,title:"Layout density",children:["Spacing",J.jsxs("span",{style:{opacity:.6},children:[p,"%"]})]}),children:()=>J.jsxs("div",{style:{minWidth:240,padding:8},children:[J.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:6},children:[J.jsx("span",{className:"archik-label",style:{margin:0},children:"Node spacing"}),J.jsxs("span",{className:"archik-mono",style:{fontSize:11,color:"var(--archik-fg-dim)"},children:[p,"%"]})]}),J.jsx("input",{type:"range",min:.3,max:4,step:.1,value:h,onChange:y=>g(Number.parseFloat(y.target.value)),style:{width:"100%",accentColor:"var(--archik-accent)"}}),J.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:10,color:"var(--archik-fg-muted)",marginTop:4},children:[J.jsx("span",{children:"tight"}),J.jsx("span",{children:"roomy"})]}),J.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:10},children:J.jsx("button",{type:"button",className:"archik-btn",onClick:()=>g(aI),disabled:h===aI,children:"Reset"})})]})})}function fXn(){return J.jsx(AT,{align:"end",trigger:h=>J.jsxs("button",{type:"button",className:"archik-btn","aria-expanded":h,children:["Legend",J.jsx("span",{style:{opacity:.6},children:h?"▴":"▾"})]}),children:()=>J.jsxs("div",{style:{minWidth:320,maxHeight:"min(70vh, 520px)",overflowY:"auto",padding:6},children:[J.jsx("div",{style:{position:"sticky",top:0,background:"var(--archik-panel)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--archik-fg-muted)",padding:"4px 6px 8px",zIndex:1},children:"Node kinds"}),x7e.map(h=>{const g=n3[h],p=g.icon;return J.jsxs("div",{style:{display:"grid",gridTemplateColumns:"20px 80px 1fr",alignItems:"center",gap:8,padding:"5px 6px",fontSize:12},children:[J.jsx("span",{"aria-hidden":"true",style:{display:"flex",alignItems:"center",justifyContent:"center",color:g.color},children:J.jsx(p,{size:14,strokeWidth:1.8})}),J.jsx("code",{style:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",color:"var(--archik-fg)",fontSize:11},children:h}),J.jsx("span",{style:{color:"var(--archik-fg-dim)"},children:g.description})]},h)}),J.jsx(hXn,{})]})})}const aXn=[{id:"boundary",varName:"--archik-stereotype-boundary",description:"talks to actors / external systems (UIs, adapters)"},{id:"control",varName:"--archik-stereotype-control",description:"orchestration logic between boundaries and entities"},{id:"entity",varName:"--archik-stereotype-entity",description:"long-lived domain state (modules, databases)"}];function hXn(){return J.jsxs(J.Fragment,{children:[J.jsx("div",{style:{position:"sticky",top:0,background:"var(--archik-panel)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--archik-fg-muted)",padding:"12px 6px 8px",marginTop:6,borderTop:"1px solid var(--archik-border)"},children:"Stereotype (ECB)"}),aXn.map(h=>J.jsxs("div",{style:{display:"grid",gridTemplateColumns:"20px 80px 1fr",alignItems:"center",gap:8,padding:"5px 6px",fontSize:12},children:[J.jsx("span",{"aria-hidden":"true",style:{display:"inline-block",width:12,height:12,borderRadius:3,background:`var(${h.varName})`}}),J.jsx("code",{style:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",color:"var(--archik-fg)",fontSize:11},children:h.id}),J.jsx("span",{style:{color:"var(--archik-fg-dim)"},children:h.description})]},h.id))]})}function dXn({size:h=22}){return J.jsxs("svg",{width:h,height:h,viewBox:"0 0 24 24",fill:"none",role:"img","aria-label":"Archik",style:{display:"block"},children:[J.jsx("path",{d:"M 12 5 L 5 18",stroke:"var(--archik-accent)",strokeWidth:"1.4",strokeLinecap:"round"}),J.jsx("path",{d:"M 12 5 L 19 18",stroke:"var(--archik-accent-bright)",strokeWidth:"1.4",strokeLinecap:"round"}),J.jsx("path",{d:"M 5 18 L 19 18",stroke:"var(--archik-magenta)",strokeWidth:"1.2",strokeLinecap:"round",strokeDasharray:"2.5 2.5"}),J.jsx("circle",{cx:"12",cy:"5",r:"2.6",fill:"var(--archik-accent)"}),J.jsx("circle",{cx:"5",cy:"18",r:"2.6",fill:"var(--archik-accent-bright)"}),J.jsx("circle",{cx:"19",cy:"18",r:"2.6",fill:"var(--archik-magenta)"})]})}const bXn="archik-theme";function Q8e(){return typeof document>"u"?"dark":document.documentElement.getAttribute("data-theme")==="light"?"light":"dark"}function gXn(h){if(!(typeof document>"u")){document.documentElement.setAttribute("data-theme",h);try{localStorage.setItem(bXn,h)}catch{}}}function wXn(){const h=Q8e()==="dark"?"light":"dark";return gXn(h),h}function pXn(){const[h,g]=Nt.useState(()=>Q8e());Nt.useEffect(()=>{g(Q8e())},[]);const p=()=>{g(wXn())},y=h==="dark"?"Light theme":"Dark theme",T=h==="dark"?"☀":"☾";return J.jsx("button",{type:"button",onClick:p,title:y,"aria-label":y,className:"archik-btn",style:{minWidth:30,justifyContent:"center"},children:J.jsx("span",{"aria-hidden":"true",children:T})})}const mXn="/__archik/usecases",vXn="/__archik/trace";async function r1n(h,g){const p=await fetch(h,{cache:"no-store",signal:g});if(!p.ok)throw new Error(`HTTP ${p.status} ${p.statusText}`);return await p.json()}function yXn(){return J.jsx(AT,{align:"end",trigger:h=>J.jsxs("button",{type:"button",className:"archik-btn","aria-expanded":h,children:["Use cases",J.jsx("span",{style:{opacity:.6},children:h?"▴":"▾"})]}),children:()=>J.jsx(kXn,{})})}function kXn(){const[h,g]=Nt.useState({status:"loading"});return Nt.useEffect(()=>{let p=!1;const y=new AbortController;return Promise.all([r1n(mXn,y.signal),r1n(vXn,y.signal)]).then(([T,C])=>{p||g({status:"ready",useCases:T.useCases??[],trace:C.rows??[]})}).catch(T=>{p||y.signal.aborted||g({status:"error",message:T instanceof Error?T.message:String(T)})}),()=>{p=!0,y.abort()}},[]),J.jsxs("div",{style:{minWidth:360,maxHeight:"min(70vh, 560px)",overflowY:"auto",padding:6},children:[J.jsx(MXn,{label:"Use cases"}),h.status==="loading"&&J.jsx(_8e,{children:"Loading…"}),h.status==="error"&&J.jsxs(_8e,{tone:"error",children:["Couldn't load: ",h.message]}),h.status==="ready"&&h.useCases.length===0&&J.jsxs(_8e,{children:["No use cases defined. Add a ",J.jsx("code",{children:"*.archik.uc.yaml"})," file under"," ",J.jsx("code",{children:".archik/usecases/"}),"."]}),h.status==="ready"&&h.useCases.length>0&&J.jsx(jXn,{useCases:h.useCases,trace:h.trace})]})}function jXn({useCases:h,trace:g}){const p=Nt.useMemo(()=>{const y=new Map;for(const T of g)y.set(`${T.useCase}/${T.slice}`,T.level);return y},[g]);return J.jsx("div",{children:h.map(y=>J.jsx(SXn,{uc:y,traceByKey:p},y.id))})}function SXn({uc:h,traceByKey:g}){return J.jsxs("div",{style:{padding:"8px 8px 6px",borderTop:"1px solid var(--archik-border)"},children:[J.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:6,marginBottom:2},children:[J.jsx("code",{style:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:12,color:"var(--archik-fg)"},children:h.id}),J.jsx("span",{style:{color:"var(--archik-fg-dim)",fontSize:11},children:h.name}),h.status&&h.status!=="active"&&J.jsx("span",{className:"archik-pill",style:{fontSize:9,marginLeft:"auto"},children:h.status})]}),J.jsxs("div",{style:{color:"var(--archik-fg-muted)",fontSize:11},children:["primary ",J.jsx("code",{children:h.primaryActor}),h.secondaryActors&&h.secondaryActors.length>0&&J.jsxs(J.Fragment,{children:[" ","· secondary"," ",h.secondaryActors.map((p,y)=>J.jsxs("span",{children:[y>0&&", ",J.jsx("code",{children:p})]},p))]})]}),J.jsx("ul",{style:{marginTop:6,listStyle:"none",padding:0},children:h.slices.map(p=>{const y=g.get(`${h.id}/${p.id}`);return J.jsx(EXn,{slice:p,level:y},p.id)})})]})}function EXn({slice:h,level:g}){const[p,y]=Nt.useState(!1);return J.jsxs("li",{style:{padding:"3px 0"},children:[J.jsxs("button",{type:"button",onClick:()=>y(T=>!T),className:"archik-btn",style:{display:"grid",gridTemplateColumns:"16px 1fr",alignItems:"center",gap:8,width:"100%",padding:"4px 6px",background:"transparent",border:"none",textAlign:"left",cursor:"pointer"},"aria-expanded":p,children:[J.jsx(TXn,{level:g}),J.jsxs("span",{style:{fontSize:12,color:"var(--archik-fg)",display:"flex",alignItems:"baseline",gap:6},children:[J.jsx("code",{children:h.id}),h.status&&h.status!=="active"&&J.jsxs("span",{style:{color:"var(--archik-fg-dim)",fontSize:10},children:["[",h.status,"]"]}),J.jsxs("span",{style:{color:"var(--archik-fg-dim)",fontSize:11,marginLeft:"auto"},children:[h.tests?.length??0,"t ",h.realization?"✓ rz":"— rz"]})]})]}),p&&J.jsxs("div",{style:{paddingLeft:24,color:"var(--archik-fg-dim)",fontSize:11,paddingBottom:4},children:[J.jsx("div",{style:{color:"var(--archik-fg)",marginBottom:4,lineHeight:1.4},children:h.description}),h.tests&&h.tests.length>0&&J.jsxs("div",{children:["tests:"," ",h.tests.map((T,C)=>J.jsxs("code",{children:[C>0&&", ",T]},T))]}),h.realization&&J.jsxs("div",{children:["realises: ",J.jsx("code",{children:h.realization.seqFile})]}),!h.tests?.length&&!h.realization&&J.jsx("div",{children:"(no tests, no realisation)"})]})]})}const AXn={full:{glyph:"✓",tone:"var(--archik-status-active, #4ade80)",title:"fully traced"},partial:{glyph:"~",tone:"var(--archik-status-proposed, #fbbf24)",title:"partially traced"},none:{glyph:"✗",tone:"var(--archik-status-deprecated, #f87171)",title:"untraced"},missing:{glyph:"·",tone:"var(--archik-fg-dim)",title:"no trace data"}};function TXn({level:h}){const g=AXn[h??"missing"];return J.jsx("span",{title:g.title,"aria-label":g.title,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,fontSize:11,fontWeight:600,color:g.tone},children:g.glyph})}function MXn({label:h}){return J.jsx("div",{style:{position:"sticky",top:0,background:"var(--archik-panel)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--archik-fg-muted)",padding:"4px 6px 8px",zIndex:1},children:h})}function _8e({children:h,tone:g}){return J.jsx("div",{style:{padding:"8px 8px 12px",fontSize:12,color:g==="error"?"var(--archik-status-deprecated, #f87171)":"var(--archik-fg-dim)"},children:h})}const CXn={idle:"",saving:"archik-pill archik-pill--info",saved:"archik-pill archik-pill--success",error:"archik-pill archik-pill--danger"},xXn={idle:null,saving:"Saving…",saved:"Saved",error:"Save failed"};function OXn({document:h,filename:g="architecture.archik.yaml",commandError:p,reloadError:y,saveStatus:T="idle",saveError:C,isDirty:j=!1,onSave:P,onAddNode:q,connectingFromName:U,onCancelConnect:oe,density:ie,onDensityChange:le,viewMode:Te,onViewModeChange:Qe,canUndo:re=!1,canRedo:rn=!1,onUndo:yn,onRedo:Nn,getSvg:Rn,seqHighlight:Vn,onToggleSeqHighlight:Ot,seqNodeCount:Jt,robustnessMode:ei,onToggleRobustness:rt,stereotypedCount:Ni}){const Vu=xXn[T],mu=typeof navigator<"u"&&/Mac/i.test(navigator.platform)?"⌘S":"Ctrl+S";return J.jsxs("header",{className:"flex items-center gap-3 px-4 py-2.5",style:{background:"var(--archik-panel)",borderBottom:"1px solid var(--archik-border)"},children:[J.jsxs("div",{className:"flex items-center gap-2",children:[J.jsx(dXn,{}),J.jsx("span",{className:"text-sm font-semibold tracking-tight",style:{color:"var(--archik-fg)",letterSpacing:"0.02em"},children:"Archik"})]}),J.jsx("span",{className:"archik-mono",style:{color:"var(--archik-fg-dim)",fontSize:11,opacity:.85},children:h.name}),U!==void 0&&J.jsxs("span",{className:"archik-pill archik-pill--info",children:["Connecting from ",J.jsx("strong",{children:U}),J.jsx("button",{type:"button",onClick:oe,className:"underline hover:no-underline",style:{color:"var(--archik-accent)"},children:"cancel (Esc)"})]}),p!==void 0&&J.jsx("span",{className:"archik-pill archik-pill--danger",children:p}),y!==void 0&&J.jsx("span",{className:"archik-pill archik-pill--warning",title:y,children:"File reload error"}),Vu!==null&&J.jsx("span",{className:CXn[T],...T==="error"&&C!==void 0?{title:C}:{},children:Vu}),T==="error"&&C!==void 0&&J.jsx("span",{className:"archik-pill archik-pill--danger",style:{maxWidth:480,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"ui-monospace, monospace",fontSize:11},title:C,children:_Xn(C)}),J.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[yn!==void 0&&J.jsx("button",{type:"button",onClick:yn,disabled:!re,title:`Undo (${mu.replace("S","Z")})`,"aria-label":"Undo",className:"archik-btn",style:{padding:"5px 8px"},children:J.jsx(iFn,{size:14,strokeWidth:1.8})}),Nn!==void 0&&J.jsx("button",{type:"button",onClick:Nn,disabled:!rn,title:`Redo (${mu.replace("S","⇧Z").replace("Ctrl+","Ctrl+Shift+")})`,"aria-label":"Redo",className:"archik-btn",style:{padding:"5px 8px"},children:J.jsx(zBn,{size:14,strokeWidth:1.8})}),q!==void 0&&J.jsx(LZn,{onAdd:q}),Te!==void 0&&Qe!==void 0&&J.jsx("button",{type:"button",onClick:()=>Qe(Te==="compact"?"detailed":"compact"),title:Te==="compact"?"Switch to detailed view":"Switch to compact view","aria-label":"Toggle view mode",className:"archik-btn",style:{padding:"5px 8px"},children:Te==="compact"?J.jsx(ABn,{size:14,strokeWidth:1.8}):J.jsx(GBn,{size:14,strokeWidth:1.8})}),ie!==void 0&&le!==void 0&&J.jsx(lXn,{density:ie,onChange:le}),Ot!==void 0&&(Jt??0)>0&&J.jsx("button",{type:"button",onClick:Ot,title:Vn?"Hide sequence diagram highlights":`Show ${Jt} node${Jt===1?"":"s"} with sequence diagrams`,"aria-label":"Toggle sequence diagram highlights","aria-pressed":Vn,className:"archik-btn",style:{padding:"5px 8px",...Vn?{background:"var(--archik-status-proposed)",borderColor:"var(--archik-status-proposed)",color:"white"}:{}},children:J.jsx(gBn,{size:14,strokeWidth:1.8})}),rt!==void 0&&(Ni??0)>0&&J.jsx("button",{type:"button",onClick:rt,title:ei?"Exit robustness view":`Robustness view — focus on ${Ni} stereotyped node${Ni===1?"":"s"} (boundary / control / entity)`,"aria-label":"Toggle robustness view","aria-pressed":ei,className:"archik-btn",style:{padding:"5px 8px",...ei?{background:"var(--archik-stereotype-boundary)",borderColor:"var(--archik-stereotype-boundary)",color:"white"}:{}},children:J.jsx(XBn,{size:14,strokeWidth:1.8})}),J.jsx(yXn,{}),J.jsx(BZn,{}),J.jsx(fXn,{}),J.jsx(t0n,{document:h,filename:g,...Rn!==void 0?{getSvg:Rn}:{}}),J.jsx("button",{type:"button",onClick:P,disabled:!j||T==="saving",title:`Save to ${g} (${mu})`,className:"archik-btn archik-btn-primary",children:j?"Save •":"Save"}),J.jsx(pXn,{})]})]})}function _Xn(h){const g=h.indexOf(`
223
- `);return g===-1?h:h.slice(0,g)}function NXn({files:h,currentPath:g,onSwitchFile:p}){const y=h.some(C=>C.hasSuggestion||C.isOrphanSuggestion);if(h.length<=1&&!y)return null;const T=h.find(C=>C.path===g)??h[0];return J.jsx(AT,{align:"start",trigger:C=>J.jsxs("button",{type:"button","aria-label":"Switch architecture file","aria-expanded":C,className:"archik-btn",style:{display:"flex",alignItems:"center",gap:6,padding:"4px 10px",fontSize:12,background:"transparent",color:"var(--archik-fg)"},children:[J.jsx(dBn,{size:13,strokeWidth:1.8}),J.jsx("span",{style:{fontWeight:600},children:T.name}),T.hasSuggestion&&J.jsx(aue,{}),J.jsx(m1n,{size:12,strokeWidth:2,style:{opacity:.6}})]}),children:C=>J.jsxs("div",{style:{minWidth:220,padding:4},children:[J.jsx("div",{style:{fontSize:10,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--archik-fg-muted)",padding:"6px 10px 4px"},children:"Architecture files"}),h.map(j=>{const P=j.path===T.path,q=j.isOrphanSuggestion===!0;return J.jsxs("button",{type:"button",title:q?`Pending sub-architecture (sidecar only — no main file yet). Click to view; accept via \`npx archik suggest accept ${j.path.replace(/\.archik\.suggested\.yaml$/,".archik.yaml")}\` to promote it, or /archik:accept.`:void 0,onClick:()=>{C(),!P&&p(j)},className:"archik-menu-item",style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"6px 10px",fontSize:12,background:P?"var(--archik-surface-hover)":void 0,borderLeft:q?"2px dashed var(--archik-accent)":void 0,paddingLeft:q?8:void 0},children:[J.jsxs("span",{style:{fontWeight:P?600:400,color:"var(--archik-fg)"},children:[j.name,q&&J.jsx("span",{style:{marginLeft:6,fontSize:10,fontWeight:500,color:"var(--archik-accent)",letterSpacing:"0.04em"},children:"(pending)"})]}),j.hasSuggestion&&!q&&J.jsx(aue,{}),J.jsx("span",{style:{flex:1,fontSize:10,fontFamily:"ui-monospace, monospace",color:"var(--archik-fg-muted)",textAlign:"right"},children:j.path})]},j.path)})]})})}function aue(){return J.jsx("span",{"aria-label":"pending suggestion",title:"Pending suggestion",style:{width:6,height:6,borderRadius:3,background:"var(--archik-accent)",flexShrink:0}})}function IXn({stack:h,onGoToFrame:g,suggestionsByPath:p}){return h.length<=1?null:J.jsx("nav",{"aria-label":"Architecture file navigation",style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--archik-fg-muted)"},children:h.map((y,T)=>{const C=T===h.length-1,j=y.archikFile!==null&&p!==void 0&&p.has(y.archikFile);return J.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[C?J.jsxs("span",{style:{color:"var(--archik-fg)",fontWeight:600,display:"inline-flex",alignItems:"center",gap:6},"aria-current":"page",children:[y.label,j&&J.jsx(aue,{})]}):J.jsxs("button",{type:"button",onClick:()=>g(T),className:"archik-btn",style:{padding:"2px 6px",fontSize:12,color:"var(--archik-fg-muted)",background:"transparent",display:"inline-flex",alignItems:"center",gap:6},title:`Back to ${y.label}`,children:[y.label,j&&J.jsx(aue,{})]}),!C&&J.jsx("span",{"aria-hidden":"true",style:{opacity:.5},children:"›"})]},`${T}-${y.archikFile??"root"}`)})})}const DXn="/architecture.archik.yaml",$Xn="/architecture.archik.suggested.yaml",LXn="/__archik/accept-suggestion",PXn=1500,e7e={label:"main",docUrl:DXn,sidecarUrl:$Xn,acceptUrl:LXn,archikFile:null};function c0n(h,g){const p=h.replace(/\.archik\.yaml$/,".archik.suggested.yaml"),y=encodeURIComponent(h),T=encodeURIComponent(p);return{label:g,docUrl:`/__archik/file?path=${y}`,sidecarUrl:`/__archik/file?path=${T}`,acceptUrl:`/__archik/file-accept?path=${y}`,archikFile:h}}function RXn(){if(typeof window>"u")return null;const h=new URLSearchParams(window.location.search).get("file");return h!==null&&h.length>0?h:null}function zXn(h){if(typeof window>"u")return;const g=new URL(window.location.href);h===null||h.length===0?g.searchParams.delete("file"):g.searchParams.set("file",h),window.history.replaceState(null,"",g.toString())}function c1n(){const h=RXn();if(h===null)return[e7e];const p=(h.split("/").pop()??h).replace(/\.archik\.yaml$/i,"")||"main";return[c0n(h,p)]}function BXn(){const[h,g]=Nt.useState({status:"loading"}),[p,y]=Nt.useState(c1n),T=p[p.length-1],[C,j]=Nt.useState([]),P=Nt.useMemo(()=>new Set(C.filter(An=>An.hasSuggestion).map(An=>An.path)),[C]),q=Nt.useMemo(()=>C.find(An=>An.isRoot)??null,[C]),U=T.archikFile===null?q?.path??null:T.archikFile,[oe,ie]=Nt.useState(void 0),[le,Te]=Nt.useState(void 0),[Qe,re]=Nt.useState("idle"),[rn,yn]=Nt.useState(null),[Nn,Rn]=Nt.useState(!1),[Vn,Ot]=Nt.useState(!1),[Jt,ei]=Nt.useState(!1),[rt,Ni]=Nt.useState({status:"none"}),[Vu,mu]=Nt.useState(!1),[sr,Q]=Nt.useState([]),[Cf,Ps]=Nt.useState([]),qn=100,[et,Ti]=Nt.useState(()=>uXn()),Br=An=>{Ti(An),sXn(An)},[vc,Ke]=Nt.useState(()=>rXn()),Wn=An=>{Ke(An),cXn(An)},ti=Nt.useMemo(()=>({...oXn(et),viewMode:vc}),[et,vc]),wi=Nt.useMemo(()=>h.status==="ready"?new Set(h.document.nodes.filter(An=>(An.seqFiles?.length??0)>0).map(An=>An.id)):new Set,[h]),vr=Nt.useMemo(()=>h.status==="ready"?h.document.nodes.filter(An=>An.stereotype!==void 0).length:0,[h]),Ur=Nt.useRef(!1),Cc=Nt.useRef(null),Rs=Nt.useRef(null),Wu=Nt.useCallback(()=>Rs.current,[]),sh=Nt.useRef(null),ds=oy(An=>An.selection),oa=oy(An=>An.connectFrom),r5=oy(An=>An.selectNode),Na=oy(An=>An.selectEdge),hy=oy(An=>An.toggleNode),i3=oy(An=>An.toggleEdge),Ab=oy(An=>An.clearSelection),t7=oy(An=>An.startConnect),cu=oy(An=>An.cancelConnect),Zc=ds.length>0?ds.at(-1)??null:null,c5=Nt.useMemo(()=>new Set(ds.filter(An=>An.type==="node").map(An=>An.id)),[ds]),zs=Nt.useMemo(()=>new Set(ds.filter(An=>An.type==="edge").map(An=>An.id)),[ds]);Nt.useEffect(()=>{const An=p[p.length-1];zXn(An.archikFile)},[p]),Nt.useEffect(()=>{if(typeof window>"u")return;const An=()=>y(c1n());return window.addEventListener("popstate",An),()=>window.removeEventListener("popstate",An)},[]),Nt.useEffect(()=>{let An=!1;Cc.current="",Ur.current=!1;const Lt=()=>{oZn(T.docUrl).then(({document:Mi,text:Dr})=>{if(An||Dr===Cc.current)return;Cc.current=Dr,Ur.current=!0,g({status:"ready",document:Mi}),Rn(!1),typeof window<"u"&&Mi.name&&(window.document.title=`${Mi.name} — Archik`),Te(void 0),Q([]),Ps([]);const El=new Set(Mi.nodes.map(uu=>uu.id)),To=new Set(Mi.edges.map(uu=>uu.id));oy.setState(uu=>({selection:uu.selection.filter(Lc=>Lc.type==="node"?El.has(Lc.id):To.has(Lc.id)),connectFrom:uu.connectFrom!==null&&El.has(uu.connectFrom)?uu.connectFrom:null}))},Mi=>{if(An)return;const Dr=Mi instanceof Error?Mi.message:String(Mi);Ur.current?Te(Dr):g({status:"error",error:Dr})})};g({status:"loading"}),Lt();const Ui=Zhn(Lt);return()=>{An=!0,Ui()}},[T.docUrl]),Nt.useEffect(()=>()=>{sh.current&&clearTimeout(sh.current)},[]),Nt.useEffect(()=>{let An=!1;const Lt=async()=>{try{const Dr=await fetch("/__archik/files",{cache:"no-store"});if(An||!Dr.ok)return;const El=await Dr.json();if(An)return;Array.isArray(El.files)&&j(El.files)}catch{}};Lt();const Ui=Zhn(()=>{Lt()}),Mi=Xhn(()=>{Lt()});return()=>{An=!0,Ui(),Mi()}},[]),Nt.useEffect(()=>{if(h.status!=="ready")return;const An=h.document;let Lt=!1;const Ui=async()=>{if(U!==null&&C.length>0&&C.some(Dr=>Dr.path===U)&&!P.has(U)){Ni({status:"none"});return}try{const Dr=await fetch(T.sidecarUrl,{cache:"no-store"});if(Lt)return;if(Dr.status===404){Ni({status:"none"});return}if(!Dr.ok){Ni({status:"error",message:`Sidecar fetch failed: HTTP ${Dr.status}`});return}const El=await Dr.text();let To;try{To=Xdn(El)}catch(Lc){Ni({status:"error",message:Lc instanceof Error?Lc.message:String(Lc)});return}const uu=W8e(An,To);Ni({status:"pending",added:uu.nodes.added.length+uu.edges.added.length,removed:uu.nodes.removed.length+uu.edges.removed.length,changed:uu.nodes.changed.length+uu.edges.changed.length,doc:To,...To.metadata?.suggestion?.note!==void 0?{note:To.metadata.suggestion.note}:{}})}catch(Dr){if(Lt)return;Ni({status:"error",message:Dr instanceof Error?Dr.message:String(Dr)})}};Ui();const Mi=Xhn(Ui);return()=>{Lt=!0,Mi()}},[h,T.sidecarUrl,U,C,P]);const TT=Nt.useCallback(async()=>{try{const An=await fetch(T.acceptUrl,{method:"POST"});if(!An.ok){const Lt=await An.text();Ni({status:"error",message:`Accept failed: ${Lt||`HTTP ${An.status}`}`});return}Ni({status:"none"}),mu(!1)}catch(An){Ni({status:"error",message:An instanceof Error?An.message:String(An)})}},[T.acceptUrl]),oh=Nt.useCallback(async()=>{try{const An=await fetch(T.sidecarUrl,{method:"DELETE"});if(!An.ok&&An.status!==404){const Lt=await An.text();Ni({status:"error",message:`Reject failed: ${Lt||`HTTP ${An.status}`}`});return}Ni({status:"none"}),mu(!1)}catch(An){Ni({status:"error",message:An instanceof Error?An.message:String(An)})}},[T.sidecarUrl]),MT=Nt.useCallback(()=>{mu(An=>!An)},[]),dy=Nt.useCallback(async()=>{let An=null;if(g(Ui=>(Ui.status==="ready"&&(An=Ui.document),Ui)),!An)return;const Lt=O7e(An);Cc.current=Lt,re("saving"),yn(null);try{await lZn(T.docUrl,An),re("saved");let Ui=!1;g(Mi=>(Mi.status==="ready"&&Mi.document===An&&(Ui=!0),Mi)),Ui&&Rn(!1),sh.current&&clearTimeout(sh.current),sh.current=setTimeout(()=>re("idle"),PXn)}catch(Ui){re("error"),yn(Ui instanceof Error?Ui.message:String(Ui))}},[T.docUrl]),r3=q?.path??null,Zg=Nt.useCallback((An,Lt)=>r3===An?e7e:c0n(An,Lt),[r3]),by=Nt.useCallback((An,Lt)=>An.archikFile===Lt?!0:An.archikFile===null&&r3===Lt,[r3]),i7=Nt.useCallback((An,Lt)=>{y(Ui=>{const Mi=Ui.findIndex(Dr=>by(Dr,An));return Mi>=0?Mi===Ui.length-1?Ui:Ui.slice(0,Mi+1):[...Ui,Zg(An,Lt)]})},[Zg,by]),u5=Nt.useCallback((An,Lt)=>{y(Ui=>{const Mi=Ui[Ui.length-1];return by(Mi,An)?Ui:[Zg(An,Lt)]})},[Zg,by]),CT=Nt.useCallback(An=>{y(Lt=>An<0||An>=Lt.length-1?Lt:Lt.slice(0,An+1))},[]),c3=Nt.useCallback(An=>{An.isRoot?y([e7e]):u5(An.path,An.name)},[u5]),lh=Nt.useCallback((An,Lt)=>{if(oa===null){Lt&&(Lt.metaKey||Lt.ctrlKey||Lt.shiftKey)?hy(An):r5(An);return}if(An===oa){cu();return}let Ui=null;g(Mi=>{if(Mi.status!=="ready"||!Mi.document.nodes.find(Lc=>Lc.id===oa))return Mi;const El=new Set(Mi.document.edges.map(Lc=>Lc.id)),To=C8e(M8e(`${oa}-${An}`),El,"edge"),uu={id:To,from:oa,to:An,relationship:"http_call"};try{const Lc=nI(Mi.document,{type:"connect",edge:uu});return ie(void 0),Rn(!0),Q(zu=>[...zu.slice(-(qn-1)),Mi.document]),Ps([]),Ui=To,{status:"ready",document:Lc}}catch(Lc){const zu=Lc instanceof Error?Lc.message:String(Lc);return ie(zu),Mi}}),cu(),Ui&&Na(Ui)},[oa,cu,r5,hy,Na]),Tb=Nt.useCallback((An,Lt)=>{Lt&&(Lt.metaKey||Lt.ctrlKey||Lt.shiftKey)?i3(An):Na(An)},[Na,i3]),fh=Nt.useCallback((An,Lt)=>{let Ui=null;g(Mi=>{if(Mi.status!=="ready")return Mi;const Dr=Mi.document.nodes.find(zu=>zu.id===An),El=Mi.document.nodes.find(zu=>zu.id===Lt);if(!Dr||!El)return Mi;const To=new Set(Mi.document.edges.map(zu=>zu.id)),uu=C8e(M8e(`${An}-${Lt}`),To,"edge"),Lc={id:uu,from:An,to:Lt,relationship:"http_call"};try{const zu=nI(Mi.document,{type:"connect",edge:Lc});return ie(void 0),Rn(!0),Q(Cb=>[...Cb.slice(-(qn-1)),Mi.document]),Ps([]),Ui=uu,{status:"ready",document:zu}}catch(zu){const Cb=zu instanceof Error?zu.message:String(zu);return ie(Cb),Mi}}),Ui&&Na(Ui)},[Na]),xT=Nt.useCallback((An,Lt,Ui)=>{g(Mi=>{if(Mi.status!=="ready")return Mi;const Dr=new Set(Mi.document.nodes.map(To=>To.id)),El=C8e(M8e(Lt),Dr,An);try{const To=nI(Mi.document,{type:"add_node",node:{id:El,kind:An,name:Lt,description:Ui}});return ie(void 0),Rn(!0),Q(uu=>[...uu.slice(-(qn-1)),Mi.document]),Ps([]),{status:"ready",document:To}}catch(To){const uu=To instanceof Error?To.message:String(To);return ie(uu),Mi}})},[]),r7=Nt.useCallback(An=>{g(Lt=>{if(Lt.status!=="ready")return Lt;try{const Ui=nI(Lt.document,An);return ie(void 0),Rn(!0),Q(Mi=>[...Mi.slice(-(qn-1)),Lt.document]),Ps([]),{status:"ready",document:Ui}}catch(Ui){const Mi=Ui instanceof Error?Ui.message:String(Ui);return ie(Mi),Lt}})},[]),s5=Nt.useCallback(()=>{ds.length!==0&&(g(An=>{if(An.status!=="ready")return An;let Lt=An.document;try{const Ui=ds.filter(Dr=>Dr.type==="edge").map(Dr=>Dr.id);for(const Dr of Ui)Lt.edges.some(El=>El.id===Dr)&&(Lt=nI(Lt,{type:"disconnect",id:Dr}));const Mi=ds.filter(Dr=>Dr.type==="node").map(Dr=>Dr.id);for(const Dr of Mi)Lt.nodes.some(El=>El.id===Dr)&&(Lt=nI(Lt,{type:"remove_node",id:Dr}));return Lt===An.document?An:(ie(void 0),Rn(!0),Q(Dr=>[...Dr.slice(-(qn-1)),An.document]),Ps([]),{status:"ready",document:Lt})}catch(Ui){const Mi=Ui instanceof Error?Ui.message:String(Ui);return ie(Mi),An}}),Ab())},[ds,Ab]),Dp=Nt.useCallback(()=>{if(h.status!=="ready"||sr.length===0)return;const An=sr[sr.length-1];Q(Lt=>Lt.slice(0,-1)),Ps(Lt=>[...Lt,h.document]),g({status:"ready",document:An}),Rn(!0),ie(void 0),Ab()},[h,sr,Ab]),Xg=Nt.useCallback(()=>{if(h.status!=="ready"||Cf.length===0)return;const An=Cf[Cf.length-1];Ps(Lt=>Lt.slice(0,-1)),Q(Lt=>[...Lt,h.document]),g({status:"ready",document:An}),Rn(!0),ie(void 0),Ab()},[h,Cf,Ab]);if(Nt.useEffect(()=>{const An=Lt=>{if((Lt.metaKey||Lt.ctrlKey)&&Lt.key==="s"){Lt.preventDefault(),Nn&&dy();return}if((Lt.metaKey||Lt.ctrlKey)&&(Lt.key==="z"||Lt.key==="Z")){Lt.preventDefault(),Lt.shiftKey?Xg():Dp();return}if((Lt.metaKey||Lt.ctrlKey)&&Lt.key==="y"){Lt.preventDefault(),Xg();return}if(Lt.key==="Escape"){oa&&cu();return}if(Lt.key==="Delete"||Lt.key==="Backspace"){const Ui=Lt.target;if(Ui instanceof HTMLInputElement||Ui instanceof HTMLTextAreaElement||Ui instanceof HTMLSelectElement||Ui instanceof HTMLElement&&Ui.isContentEditable||ds.length===0)return;Lt.preventDefault(),s5()}};return window.addEventListener("keydown",An),()=>window.removeEventListener("keydown",An)},[Nn,dy,oa,cu,ds,s5,Dp,Xg]),h.status==="loading")return J.jsxs(u1n,{children:["Loading ",T.docUrl,"…"]});if(h.status==="error")return J.jsx(u1n,{children:J.jsx("pre",{className:"max-w-3xl whitespace-pre-wrap text-xs text-rose-700",children:h.error})});const Mb=h.document,E1=Vu&&rt.status==="pending",gy=E1&&rt.status==="pending"?pZn(Mb,rt.doc):null,$p=E1&&rt.status==="pending"?Qdn(W8e(Mb,rt.doc)):null,wy=gy??Mb,c7=Zc?.type==="node"?wy.nodes.find(An=>An.id===Zc.id):void 0,o5=Zc?.type==="edge"?wy.edges.find(An=>An.id===Zc.id):void 0,Lp=oa!==null?Mb.nodes.find(An=>An.id===oa):void 0,u7=ds.length>1;return J.jsxs("div",{className:"flex h-full flex-col",style:{background:"var(--archik-canvas)",color:"var(--archik-fg)"},children:[J.jsx(OXn,{document:Mb,commandError:oe,saveStatus:Qe,...rn!==null?{saveError:rn}:{},isDirty:Nn,onSave:()=>{dy()},onAddNode:xT,density:et,onDensityChange:Br,viewMode:vc,onViewModeChange:Wn,canUndo:sr.length>0,canRedo:Cf.length>0,onUndo:Dp,onRedo:Xg,getSvg:Wu,seqHighlight:Vn,onToggleSeqHighlight:()=>Ot(An=>!An),seqNodeCount:wi.size,robustnessMode:Jt,onToggleRobustness:()=>ei(An=>!An),stereotypedCount:vr,...le!==void 0?{reloadError:le}:{},...Lp!==void 0?{connectingFromName:Lp.name,onCancelConnect:cu}:{}}),rt.status==="pending"&&J.jsx(qXn,{added:rt.added,removed:rt.removed,changed:rt.changed,note:rt.note,reviewing:E1,onReview:MT,onAccept:()=>{TT()},onReject:()=>{oh()}}),rt.status==="error"&&J.jsxs("div",{role:"alert",style:{background:"rgba(217, 119, 6, 0.12)",borderBottom:"1px solid rgba(217, 119, 6, 0.45)",color:"var(--archik-warning)",padding:"8px 16px",fontSize:12,display:"flex",alignItems:"center",gap:12},children:[J.jsx("span",{style:{fontWeight:700},children:"SUGGESTION ERROR —"}),J.jsx("span",{style:{flex:1,color:"var(--archik-fg)"},children:rt.message}),J.jsx("button",{type:"button",onClick:()=>Ni({status:"none"}),"aria-label":"Dismiss",style:{background:"transparent",border:"none",color:"var(--archik-fg-dim)",cursor:"pointer",fontSize:16,lineHeight:1},children:"×"})]}),le!==void 0&&J.jsxs("div",{role:"alert",style:{background:"rgba(225, 29, 72, 0.12)",borderBottom:"1px solid rgba(225, 29, 72, 0.45)",color:"var(--archik-danger)",padding:"10px 16px",display:"flex",alignItems:"flex-start",gap:12,fontSize:12,lineHeight:1.5},children:[J.jsx("span",{style:{fontWeight:700,letterSpacing:"0.04em"},children:"FILE INVALID —"}),J.jsx("pre",{style:{margin:0,flex:1,whiteSpace:"pre-wrap",fontFamily:"inherit",color:"var(--archik-fg)"},children:le}),J.jsx("button",{type:"button",onClick:()=>Te(void 0),"aria-label":"Dismiss error",style:{background:"transparent",border:"none",color:"var(--archik-fg-dim)",cursor:"pointer",padding:"0 4px",fontSize:16,lineHeight:1},children:"×"})]}),J.jsxs("main",{className:"flex min-h-0 flex-1 p-4",style:{gap:0},children:[J.jsx("div",{className:"archik-panel",style:{flex:1,minWidth:0,overflow:"hidden"},children:J.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},children:[(C.length>1||p.length>1)&&J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 10px",background:"var(--archik-surface)",borderBottom:"1px solid var(--archik-border)"},children:[J.jsx(NXn,{files:C,currentPath:U,onSwitchFile:c3}),J.jsx(IXn,{stack:p,onGoToFrame:CT,suggestionsByPath:P})]}),J.jsx(oqn,{document:wy,className:"flex-1 archik-grid",layoutOptions:ti,viewMode:vc,selectedNodeIds:c5,selectedEdgeIds:zs,onSelectNode:lh,onSelectEdge:Tb,onSelectNothing:oa===null?Ab:cu,onConnectDrag:fh,onOpenSubFile:i7,onCrossFileNavigate:u5,viewKey:T.docUrl,svgRef:Rs,...$p?{diffStatuses:$p}:{},...Vn&&wi.size>0?{glowNodeIds:wi}:{},...Jt?{robustnessMode:!0}:{}})]})}),J.jsx("aside",{"aria-hidden":ds.length===0,className:`archik-drawer-shell ${ds.length>0?"archik-drawer-shell--open":"archik-drawer-shell--closed"}`,children:J.jsx("div",{className:"archik-panel archik-drawer-content archik-drawer-fade",style:{overflow:"hidden"},children:u7?J.jsx(FXn,{count:ds.length,onDelete:s5,onClear:Ab}):Zc?.type==="edge"?J.jsx(DZn,{edge:o5,dispatch:r7,readOnly:E1}):Zc?.type==="node"?J.jsx(OZn,{node:c7,dispatch:r7,onStartConnect:t7,allNodes:wy.nodes,readOnly:E1,viewKey:T.archikFile??void 0}):null},u7?`multi:${ds.length}`:Zc?`${Zc.type}:${Zc.id}`:"empty")})]})]})}function FXn({count:h,onDelete:g,onClear:p}){return J.jsxs("div",{className:"flex h-full flex-col gap-4 overflow-y-auto p-4 text-sm",children:[J.jsxs("div",{children:[J.jsx("div",{className:"archik-label",children:"Selection"}),J.jsxs("div",{style:{fontSize:18,fontWeight:600,color:"var(--archik-fg)",letterSpacing:"0.01em"},children:[h," items"]}),J.jsx("div",{style:{fontSize:11,color:"var(--archik-fg-dim)",marginTop:4},children:"Hold ⌘ / Ctrl while clicking to add or remove items."})]}),J.jsx("div",{className:"archik-divider"}),J.jsxs("div",{className:"mt-auto flex flex-col gap-2 pt-4",children:[J.jsx("button",{type:"button",onClick:p,className:"archik-btn",style:{justifyContent:"center",padding:"8px 12px"},children:"Clear selection"}),J.jsxs("button",{type:"button",onClick:g,className:"archik-btn archik-btn-danger",style:{justifyContent:"center",padding:"8px 12px"},children:["Delete ",h," items"]})]})]})}function u1n({children:h}){return J.jsx("div",{className:"flex h-full items-center justify-center p-6 text-sm",style:{background:"var(--archik-canvas)",color:"var(--archik-fg-dim)"},children:h})}function qXn({added:h,removed:g,changed:p,note:y,reviewing:T,onReview:C,onAccept:j,onReject:P}){const q=h+g+p;return J.jsxs("div",{role:"region","aria-label":"Pending suggestion",style:{background:"rgba(168, 85, 247, 0.12)",borderBottom:"1px solid rgba(168, 85, 247, 0.45)",padding:"10px 16px",display:"flex",alignItems:"center",gap:14,fontSize:12,lineHeight:1.4},children:[J.jsx("span",{style:{fontWeight:700,letterSpacing:"0.04em",color:"#c4b5fd"},children:"📝 SUGGESTION PENDING"}),J.jsxs("span",{style:{color:"var(--archik-fg)"},children:[q===0?"(identical to current — nothing to apply)":J.jsxs(J.Fragment,{children:[J.jsxs("span",{style:{color:"var(--archik-success)"},children:["+",h]})," ",J.jsxs("span",{style:{color:"var(--archik-danger)"},children:["−",g]})," ",J.jsxs("span",{style:{color:"var(--archik-warning)"},children:["~",p]})]}),y?J.jsxs("span",{style:{marginLeft:10,color:"var(--archik-fg-dim)",fontStyle:"italic"},children:['"',y,'"']}):null]}),J.jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[J.jsx("button",{type:"button",onClick:C,className:"archik-btn",style:{padding:"5px 12px",fontSize:12,...T?{background:"#a855f7",color:"white",borderColor:"#a855f7"}:{}},children:T?"Hide diff":"Review"}),J.jsx("button",{type:"button",onClick:j,className:"archik-btn",title:q===0?"Suggestion already matches the current file — Accept just clears the sidecar.":"Apply the suggestion to the main file.",style:{padding:"5px 12px",fontSize:12,background:"var(--archik-success)",color:"white",borderColor:"var(--archik-success)"},children:"Accept"}),J.jsx("button",{type:"button",onClick:P,className:"archik-btn",style:{padding:"5px 12px",fontSize:12,color:"var(--archik-danger)",borderColor:"var(--archik-danger)"},children:"Reject"})]})]})}const GXn=n7(["sync","async","return","create","destroy"]),JXn=n7(["over","left_of","right_of"]),UXn=n7(["alt","opt","loop","par","break","ref"]),HXn=Kg({id:dd,nodeId:dd,label:hs().min(1).optional(),status:TI.optional()}),KXn=Kg({type:iU("message"),id:dd,from:dd,to:dd,label:hs().min(1),arrow:GXn,activate:mKn().optional(),status:TI.optional()}),ZXn=Kg({type:iU("note"),id:dd,position:JXn,participants:Ug(dd).min(1),text:hs().min(1),status:TI.optional()}),XXn=C7e(()=>Kg({label:hs().optional(),steps:Ug(u0n)})),VXn=C7e(()=>Kg({type:iU("group"),id:dd,kind:UXn,condition:hs().optional(),label:hs().optional(),branches:Ug(XXn).optional(),seqFile:Udn.optional(),participants:Ug(dd).optional(),status:TI.optional()})),u0n=C7e(()=>Fdn([KXn,ZXn,VXn]));function s0n(h,g){const p=[];for(const y of h)if(g.has(y.id)?p.push(y.id):g.add(y.id),y.type==="group"&&y.branches)for(const T of y.branches)p.push(...s0n(T.steps,g));return p}const WXn=Kg({useCase:dd,slice:dd}),YXn=Kg({version:iU("1.0"),name:hs().min(1),description:hs().optional(),realizes:WXn.optional(),participants:Ug(HXn).min(1),steps:Ug(u0n)}).superRefine((h,g)=>{const p=new Set;for(let C=0;C<h.participants.length;C++){const j=h.participants[C];p.has(j.id)&&g.addIssue({code:jb.custom,path:["participants",C,"id"],message:`duplicate participant id "${j.id}"`}),p.add(j.id)}const y=new Set,T=s0n(h.steps,y);for(const C of T)g.addIssue({code:jb.custom,path:["steps"],message:`duplicate step id "${C}"`})}),rU=56,QXn=160,eVn=40,n7e=56,nVn=24,N8e=12,s1n=48,Vce=32,o1n=24,l1n=8,o0n="seq-arrow-filled",l0n="seq-arrow-open";function tVn(h){return Math.max(QXn,h.length*8+eVn*2)}function f0n(h,g,p,y,T){let C=p;const j=[];for(const P of h)if(P.type==="message"){const q=g.get(P.from),U=g.get(P.to),oe=q?.cx??y,ie=U?.cx??y;j.push({type:"message",id:P.id,fromCx:oe,toCx:ie,y:C,label:P.label,arrow:P.arrow,activate:P.activate??!1,isSelf:P.from===P.to,...P.status!==void 0?{status:P.status}:{}}),C+=P.from===P.to?n7e*1.5:n7e}else if(P.type==="note"){const q=P.participants.map(Te=>g.get(Te)?.cx).filter(Te=>Te!==void 0).sort((Te,Qe)=>Te-Qe),U=q[0]??y,oe=q[q.length-1]??T,ie=Math.max(P.text.length*7.5+24,oe-U+16,80);let le;P.position==="left_of"?le=U-ie-8:P.position==="right_of"?le=oe+8:le=(U+oe)/2-ie/2,j.push({type:"note",id:P.id,x:le,y:C,width:ie,height:s1n,text:P.text,...P.status!==void 0?{status:P.status}:{}}),C+=s1n+8}else if(P.type==="group"){const q=y-N8e,U=T-y+N8e*2,oe=C;C+=nVn;const ie=[];if(P.branches)for(let le=0;le<P.branches.length;le++){const Te=P.branches[le],Qe=C,{items:re,endY:rn}=f0n(Te.steps,g,C,y,T);C=rn,ie.push({...Te.label!==void 0?{label:Te.label}:{},startY:Qe,...le<P.branches.length-1?{dividerY:C}:{},steps:re}),le<P.branches.length-1&&(C+=4)}C+=N8e,j.push({type:"group",id:P.id,kind:P.kind,...P.condition!==void 0?{condition:P.condition}:{},...P.label!==void 0?{label:P.label}:{},...P.seqFile!==void 0?{seqFile:P.seqFile}:{},x:q,y:oe,width:U,height:C-oe,branches:ie,...P.status!==void 0?{status:P.status}:{}})}return{items:j,endY:C}}function a0n(h){const g=new Map;for(const p of h)if(p.type==="message"&&p.arrow==="destroy"&&g.set(p.toCx,p.y+rU+20),p.type==="group")for(const y of p.branches)for(const[T,C]of a0n(y.steps))g.set(T,C);return g}function iVn(h){const g=[],p=new Map;function y(T){for(const C of T)if(C.type==="message"){if(C.activate&&C.arrow==="sync"&&!C.isSelf){const j=p.get(C.toCx)??[];j.push(C.y),p.set(C.toCx,j)}if(C.arrow==="return"&&!C.isSelf){const j=p.get(C.fromCx);if(j&&j.length>0){const P=j.pop();g.push({cx:C.fromCx,startY:P,endY:C.y}),j.length===0&&p.delete(C.fromCx)}}}else if(C.type==="group")for(const j of C.branches)y(j.steps)}y(h);for(const[T,C]of p)for(const j of C)g.push({cx:T,startY:j,endY:j+n7e/2});return g}function rVn(h,g){const p=h.participants.map(rn=>tVn(rn.label??rn.nodeId));let y=Vce;const T=h.participants.map((rn,yn)=>{const Nn=p[yn],Rn=y+Nn/2;y+=Nn;const Vn=g?.get(rn.nodeId);return{id:rn.id,nodeId:rn.nodeId,label:rn.label??rn.nodeId,cx:Rn,colWidth:Nn,...Vn!==void 0?{kind:Vn}:{},...rn.status!==void 0?{status:rn.status}:{},lifelineEndY:0}}),C=y+Vce,j=new Map(T.map(rn=>[rn.id,rn])),P=T[0]?.cx??Vce,q=T[T.length-1]?.cx??C-Vce,U=o1n,{items:oe,endY:ie}=f0n(h.steps,j,U,P,q),le=rU+ie+o1n,Te=a0n(oe),Qe=T.map(rn=>({...rn,lifelineEndY:Te.get(rn.cx)??le})),re=iVn(oe);return{participants:Qe,steps:oe,activations:re,totalWidth:C,totalHeight:le}}const Wce=36,cVn=128,uVn=7,f1n=20,a1n=24;function sVn({participant:h,nodeKind:g}){const p=g?n3[g]:void 0,y=p?.color??"var(--archik-fg-muted)",T=(rU-Wce)/2,C=p?.icon,j=Math.max(cVn,h.label.length*uVn+a1n+(C?f1n:0)),P=j/2,q=C?P+f1n/2:P,U=h.status,oe=U==="proposed"?.55:U==="deprecated"?.35:1,ie=U==="proposed"||U==="deprecated"?"4 3":void 0;return J.jsxs("g",{transform:`translate(${h.cx-P}, ${T})`,opacity:oe,children:[J.jsx("rect",{width:j,height:Wce,rx:8,fill:"var(--archik-node-fill)",stroke:y,strokeWidth:1.4,...ie!==void 0?{strokeDasharray:ie}:{}}),C&&J.jsx("g",{transform:`translate(${a1n/2}, ${(Wce-14)/2})`,children:J.jsx(C,{size:14,color:y,strokeWidth:1.5})}),J.jsx("text",{x:q,y:Wce/2+4,textAnchor:"middle",fontSize:12,fontWeight:500,fill:"var(--archik-fg)",fontFamily:"inherit",children:h.label})]})}function oVn({participant:h}){const g=h.status,p=g==="proposed"?.3:g==="deprecated"?.2:.5;return J.jsx("line",{x1:h.cx,y1:rU,x2:h.cx,y2:h.lifelineEndY,stroke:"var(--archik-node-stroke)",strokeWidth:1,strokeDasharray:"4 4",opacity:p})}const I8e=32,D8e=20,lVn=-6;function fVn({msg:h}){const g=h.arrow==="return",p=h.arrow==="async",y=h.arrow==="create",T=g||y,C=h.arrow==="destroy",j=g||p?l0n:o0n,P=h.status==="proposed"?.5:h.status==="deprecated"?.35:1;if(h.isSelf){const ie=h.fromCx,le=h.y,Te=`M ${ie} ${le} L ${ie+I8e} ${le} L ${ie+I8e} ${le+D8e} L ${ie} ${le+D8e}`;return J.jsxs("g",{opacity:P,children:[J.jsx("path",{d:Te,fill:"none",stroke:"var(--archik-edge-filled)",strokeWidth:1.4,markerEnd:`url(#${j})`}),J.jsx("text",{x:ie+I8e+6,y:le+D8e/2+4,fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:h.label})]})}const U=h.fromCx<h.toCx?h.toCx-6:h.toCx+6,oe=(h.fromCx+h.toCx)/2;return J.jsxs("g",{opacity:P,children:[J.jsx("line",{x1:h.fromCx,y1:h.y,x2:U,y2:h.y,stroke:"var(--archik-edge-filled)",strokeWidth:1.4,strokeDasharray:T?"4 4":void 0,markerEnd:C?void 0:`url(#${j})`}),J.jsxs("text",{x:oe,y:h.y+lVn,textAnchor:"middle",fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:[y&&"«create» ",h.label]}),h.arrow==="destroy"&&J.jsxs("g",{transform:`translate(${h.toCx-6}, ${h.y-6})`,children:[J.jsx("line",{x1:0,y1:0,x2:12,y2:12,stroke:"var(--archik-fg-muted)",strokeWidth:1.5}),J.jsx("line",{x1:12,y1:0,x2:0,y2:12,stroke:"var(--archik-fg-muted)",strokeWidth:1.5})]})]})}const aVn={alt:"#6366f1",opt:"#0ea5e9",loop:"#10b981",par:"#f59e0b",break:"#ef4444",ref:"#8b5cf6"},h1n=36,$8e=18;function hVn({group:h,renderStep:g,onRefClick:p}){const y=aVn[h.kind]??"var(--archik-fg-muted)",T=h.status==="proposed"?.55:h.status==="deprecated"?.35:1,C=h.kind==="ref"&&h.seqFile!==void 0&&p!==void 0;return J.jsxs("g",{opacity:T,onClick:C?()=>p(h.seqFile):void 0,style:C?{cursor:"pointer"}:void 0,children:[J.jsx("rect",{x:h.x,y:h.y,width:h.width,height:h.height,rx:4,fill:"none",stroke:y,strokeWidth:1.2,opacity:.6}),J.jsx("rect",{x:h.x,y:h.y,width:h1n,height:$8e,rx:4,fill:y,opacity:.8}),J.jsx("text",{x:h.x+6,y:h.y+$8e-5,fontSize:10,fontWeight:600,fill:"#fff",fontFamily:"inherit",children:h.kind}),(h.condition??h.label)&&J.jsx("text",{x:h.x+h1n+6,y:h.y+$8e-5,fontSize:10,fill:y,fontFamily:"inherit",children:h.condition??h.label}),h.branches.map((j,P)=>J.jsxs("g",{children:[j.label&&J.jsx("text",{x:h.x+6,y:j.startY+12,fontSize:10,fill:y,fontFamily:"inherit",children:j.label}),j.steps.map(q=>g(q)),j.dividerY!==void 0&&J.jsx("line",{x1:h.x,y1:j.dividerY,x2:h.x+h.width,y2:j.dividerY,stroke:y,strokeWidth:1,strokeDasharray:"4 2",opacity:.5})]},P))]})}const iI=10;function dVn({note:h}){const{x:g,y:p,width:y,height:T,text:C}=h,j=h.status==="proposed"?.55:h.status==="deprecated"?.35:1;return J.jsxs("g",{opacity:j,children:[J.jsx("path",{d:`M ${g} ${p} L ${g+y-iI} ${p} L ${g+y} ${p+iI} L ${g+y} ${p+T} L ${g} ${p+T} Z`,fill:"var(--archik-node-fill)",stroke:"var(--archik-node-stroke)",strokeWidth:1.2}),J.jsx("path",{d:`M ${g+y-iI} ${p} L ${g+y-iI} ${p+iI} L ${g+y} ${p+iI}`,fill:"none",stroke:"var(--archik-node-stroke)",strokeWidth:1.2}),J.jsx("text",{x:g+8,y:p+8+11,fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:C})]})}function bVn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"context-stroke"})})}function gVn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 12 12",refX:"11",refY:"6",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 1 1 L 11 6 L 1 11",fill:"none",stroke:"context-stroke",strokeWidth:"1.5",strokeLinejoin:"round"})})}function h0n({step:h,onRefClick:g}){return h.type==="message"?J.jsx(fVn,{msg:h}):h.type==="note"?J.jsx(dVn,{note:h}):h.type==="group"?J.jsx(hVn,{group:h,...g!==void 0?{onRefClick:g}:{},renderStep:p=>J.jsx(h0n,{step:p,...g!==void 0?{onRefClick:g}:{}},p.id)}):null}function wVn({laid:h,svgRef:g,onRefClick:p}){const{participants:y,steps:T,activations:C,totalWidth:j,totalHeight:P}=h;return J.jsxs("svg",{ref:g,width:j,height:P,viewBox:`0 0 ${j} ${P}`,xmlns:"http://www.w3.org/2000/svg",style:{fontFamily:"var(--archik-font, system-ui)"},children:[J.jsxs("defs",{children:[J.jsx(bVn,{id:o0n}),J.jsx(gVn,{id:l0n})]}),y.map(q=>J.jsx(oVn,{participant:q},q.id)),y.map(q=>J.jsx(sVn,{participant:q,...q.kind!==void 0?{nodeKind:q.kind}:{}},q.id)),J.jsxs("g",{transform:`translate(0, ${rU})`,children:[C.map(q=>J.jsx("rect",{x:q.cx-l1n/2,y:q.startY,width:l1n,height:q.endY-q.startY,fill:"var(--archik-node-fill)",stroke:"var(--archik-node-stroke)",strokeWidth:1,rx:2},`${q.cx}-${q.startY}`)),T.map(q=>J.jsx(h0n,{step:q,...p!==void 0?{onRefClick:p}:{}},q.id))]})]})}function pVn({path:h,fromViewKey:g}){const[p,y]=Nt.useState({status:"loading"}),[T,C]=Nt.useState(void 0),j=Nt.useRef(null);Nt.useEffect(()=>{fetch("/__archik/node-kinds").then(ie=>ie.ok?ie.json():null).then(ie=>{ie&&C(new Map(Object.entries(ie)))}).catch(()=>{})},[]),Nt.useEffect(()=>{y({status:"loading"});const ie=encodeURIComponent(h);fetch(`/__archik/seq-file?path=${ie}`).then(async le=>{if(!le.ok)throw new Error(`${le.status} ${le.statusText}`);return le.text()}).then(le=>{const Te=y7e.parse(le),Qe=YXn.safeParse(Te);if(!Qe.success)throw new Error(Qe.error.issues.map(re=>re.message).join("; "));y({status:"ready",doc:Qe.data})}).catch(le=>{y({status:"error",message:le instanceof Error?le.message:String(le)})})},[h]);const P=g?`/?file=${encodeURIComponent(g)}`:"/";if(p.status==="loading")return J.jsx("div",{className:"flex h-screen items-center justify-center",style:{color:"var(--archik-fg-muted)"},children:"Loading sequence diagram…"});if(p.status==="error")return J.jsxs("div",{className:"flex h-screen flex-col items-center justify-center gap-4",children:[J.jsx("div",{style:{color:"var(--archik-fg-error, #ef4444)"},children:p.message}),J.jsx("a",{href:P,style:{color:"var(--archik-fg-muted)",fontSize:13},children:"← Architecture"})]});const q=rVn(p.doc,T),U=h.replace(/^.*\//,"").replace(/\.archik\.seq\.yaml$/,""),oe=ie=>{const le=`?path=${encodeURIComponent(ie)}&from=${encodeURIComponent(h)}`;window.location.href=`/seq${le}`};return J.jsxs("div",{className:"flex h-screen flex-col",style:{background:"var(--archik-bg)"},children:[J.jsxs("div",{className:"flex items-center gap-3 px-4",style:{height:48,borderBottom:"1px solid var(--archik-node-stroke)",background:"var(--archik-toolbar-bg, var(--archik-node-fill))"},children:[J.jsx("a",{href:P,style:{color:"var(--archik-fg-muted)",fontSize:13,textDecoration:"none"},children:"← Architecture"}),J.jsx("span",{style:{color:"var(--archik-node-stroke)"},children:"|"}),J.jsx("span",{style:{fontWeight:500,fontSize:14,color:"var(--archik-fg)"},children:p.doc.name}),J.jsx("div",{className:"ml-auto",children:J.jsx(t0n,{filename:U,getSvg:()=>j.current})})]}),J.jsx("div",{className:"flex-1 overflow-auto p-6",children:J.jsx(wVn,{laid:q,svgRef:j,onRefClick:oe})})]})}const d0n=document.getElementById("root");if(!d0n)throw new Error("#root not found");const d1n=new URLSearchParams(window.location.search),mVn=window.location.pathname==="/__archik/seq"||window.location.pathname.startsWith("/__archik/seq/"),b1n=szn.createRoot(d0n);if(mVn){const h=d1n.get("path")??"",g=d1n.get("from");b1n.render(J.jsx(Nt.StrictMode,{children:J.jsx(pVn,{path:h,fromViewKey:g})}))}else b1n.render(J.jsx(Nt.StrictMode,{children:J.jsx(BXn,{})}));
223
+ `);return g===-1?h:h.slice(0,g)}function NXn({files:h,currentPath:g,onSwitchFile:p}){const y=h.some(C=>C.hasSuggestion||C.isOrphanSuggestion);if(h.length<=1&&!y)return null;const T=h.find(C=>C.path===g)??h[0];return J.jsx(AT,{align:"start",trigger:C=>J.jsxs("button",{type:"button","aria-label":"Switch architecture file","aria-expanded":C,className:"archik-btn",style:{display:"flex",alignItems:"center",gap:6,padding:"4px 10px",fontSize:12,background:"transparent",color:"var(--archik-fg)"},children:[J.jsx(dBn,{size:13,strokeWidth:1.8}),J.jsx("span",{style:{fontWeight:600},children:T.name}),T.hasSuggestion&&J.jsx(aue,{}),J.jsx(m1n,{size:12,strokeWidth:2,style:{opacity:.6}})]}),children:C=>J.jsxs("div",{style:{minWidth:220,padding:4},children:[J.jsx("div",{style:{fontSize:10,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--archik-fg-muted)",padding:"6px 10px 4px"},children:"Architecture files"}),h.map(j=>{const P=j.path===T.path,q=j.isOrphanSuggestion===!0;return J.jsxs("button",{type:"button",title:q?`Pending sub-architecture (sidecar only — no main file yet). Click to view; accept via \`npx archik suggest accept ${j.path.replace(/\.archik\.suggested\.yaml$/,".archik.yaml")}\` to promote it, or /archik:accept.`:void 0,onClick:()=>{C(),!P&&p(j)},className:"archik-menu-item",style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"6px 10px",fontSize:12,background:P?"var(--archik-surface-hover)":void 0,borderLeft:q?"2px dashed var(--archik-accent)":void 0,paddingLeft:q?8:void 0},children:[J.jsxs("span",{style:{fontWeight:P?600:400,color:"var(--archik-fg)"},children:[j.name,q&&J.jsx("span",{style:{marginLeft:6,fontSize:10,fontWeight:500,color:"var(--archik-accent)",letterSpacing:"0.04em"},children:"(pending)"})]}),j.hasSuggestion&&!q&&J.jsx(aue,{}),J.jsx("span",{style:{flex:1,fontSize:10,fontFamily:"ui-monospace, monospace",color:"var(--archik-fg-muted)",textAlign:"right"},children:j.path})]},j.path)})]})})}function aue(){return J.jsx("span",{"aria-label":"pending suggestion",title:"Pending suggestion",style:{width:6,height:6,borderRadius:3,background:"var(--archik-accent)",flexShrink:0}})}function IXn({stack:h,onGoToFrame:g,suggestionsByPath:p}){return h.length<=1?null:J.jsx("nav",{"aria-label":"Architecture file navigation",style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--archik-fg-muted)"},children:h.map((y,T)=>{const C=T===h.length-1,j=y.archikFile!==null&&p!==void 0&&p.has(y.archikFile);return J.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[C?J.jsxs("span",{style:{color:"var(--archik-fg)",fontWeight:600,display:"inline-flex",alignItems:"center",gap:6},"aria-current":"page",children:[y.label,j&&J.jsx(aue,{})]}):J.jsxs("button",{type:"button",onClick:()=>g(T),className:"archik-btn",style:{padding:"2px 6px",fontSize:12,color:"var(--archik-fg-muted)",background:"transparent",display:"inline-flex",alignItems:"center",gap:6},title:`Back to ${y.label}`,children:[y.label,j&&J.jsx(aue,{})]}),!C&&J.jsx("span",{"aria-hidden":"true",style:{opacity:.5},children:"›"})]},`${T}-${y.archikFile??"root"}`)})})}const DXn="/architecture.archik.yaml",$Xn="/architecture.archik.suggested.yaml",LXn="/__archik/accept-suggestion",PXn=1500,e7e={label:"main",docUrl:DXn,sidecarUrl:$Xn,acceptUrl:LXn,archikFile:null};function c0n(h,g){const p=h.replace(/\.archik\.yaml$/,".archik.suggested.yaml"),y=encodeURIComponent(h),T=encodeURIComponent(p);return{label:g,docUrl:`/__archik/file?path=${y}`,sidecarUrl:`/__archik/file?path=${T}`,acceptUrl:`/__archik/file-accept?path=${y}`,archikFile:h}}function RXn(){if(typeof window>"u")return null;const h=new URLSearchParams(window.location.search).get("file");return h!==null&&h.length>0?h:null}function zXn(h){if(typeof window>"u")return;const g=new URL(window.location.href);h===null||h.length===0?g.searchParams.delete("file"):g.searchParams.set("file",h),window.history.replaceState(null,"",g.toString())}function c1n(){const h=RXn();if(h===null)return[e7e];const p=(h.split("/").pop()??h).replace(/\.archik\.yaml$/i,"")||"main";return[c0n(h,p)]}function BXn(){const[h,g]=Nt.useState({status:"loading"}),[p,y]=Nt.useState(c1n),T=p[p.length-1],[C,j]=Nt.useState([]),P=Nt.useMemo(()=>new Set(C.filter(An=>An.hasSuggestion).map(An=>An.path)),[C]),q=Nt.useMemo(()=>C.find(An=>An.isRoot)??null,[C]),U=T.archikFile===null?q?.path??null:T.archikFile,[oe,ie]=Nt.useState(void 0),[le,Te]=Nt.useState(void 0),[Qe,re]=Nt.useState("idle"),[rn,yn]=Nt.useState(null),[Nn,Rn]=Nt.useState(!1),[Vn,Ot]=Nt.useState(!1),[Jt,ei]=Nt.useState(!1),[rt,Ni]=Nt.useState({status:"none"}),[Vu,mu]=Nt.useState(!1),[sr,Q]=Nt.useState([]),[Cf,Ps]=Nt.useState([]),qn=100,[et,Ti]=Nt.useState(()=>uXn()),Br=An=>{Ti(An),sXn(An)},[vc,Ke]=Nt.useState(()=>rXn()),Wn=An=>{Ke(An),cXn(An)},ti=Nt.useMemo(()=>({...oXn(et),viewMode:vc}),[et,vc]),wi=Nt.useMemo(()=>h.status==="ready"?new Set(h.document.nodes.filter(An=>(An.seqFiles?.length??0)>0).map(An=>An.id)):new Set,[h]),vr=Nt.useMemo(()=>h.status==="ready"?h.document.nodes.filter(An=>An.stereotype!==void 0).length:0,[h]),Ur=Nt.useRef(!1),Cc=Nt.useRef(null),Rs=Nt.useRef(null),Wu=Nt.useCallback(()=>Rs.current,[]),sh=Nt.useRef(null),ds=oy(An=>An.selection),oa=oy(An=>An.connectFrom),r5=oy(An=>An.selectNode),Na=oy(An=>An.selectEdge),hy=oy(An=>An.toggleNode),i3=oy(An=>An.toggleEdge),Ab=oy(An=>An.clearSelection),t7=oy(An=>An.startConnect),cu=oy(An=>An.cancelConnect),Zc=ds.length>0?ds.at(-1)??null:null,c5=Nt.useMemo(()=>new Set(ds.filter(An=>An.type==="node").map(An=>An.id)),[ds]),zs=Nt.useMemo(()=>new Set(ds.filter(An=>An.type==="edge").map(An=>An.id)),[ds]);Nt.useEffect(()=>{const An=p[p.length-1];zXn(An.archikFile)},[p]),Nt.useEffect(()=>{if(typeof window>"u")return;const An=()=>y(c1n());return window.addEventListener("popstate",An),()=>window.removeEventListener("popstate",An)},[]),Nt.useEffect(()=>{let An=!1;Cc.current="",Ur.current=!1;const Lt=()=>{oZn(T.docUrl).then(({document:Mi,text:Dr})=>{if(An||Dr===Cc.current)return;Cc.current=Dr,Ur.current=!0,g({status:"ready",document:Mi}),Rn(!1),typeof window<"u"&&Mi.name&&(window.document.title=`${Mi.name} — Archik`),Te(void 0),Q([]),Ps([]);const El=new Set(Mi.nodes.map(uu=>uu.id)),To=new Set(Mi.edges.map(uu=>uu.id));oy.setState(uu=>({selection:uu.selection.filter(Lc=>Lc.type==="node"?El.has(Lc.id):To.has(Lc.id)),connectFrom:uu.connectFrom!==null&&El.has(uu.connectFrom)?uu.connectFrom:null}))},Mi=>{if(An)return;const Dr=Mi instanceof Error?Mi.message:String(Mi);Ur.current?Te(Dr):g({status:"error",error:Dr})})};g({status:"loading"}),Lt();const Ui=Zhn(Lt);return()=>{An=!0,Ui()}},[T.docUrl]),Nt.useEffect(()=>()=>{sh.current&&clearTimeout(sh.current)},[]),Nt.useEffect(()=>{let An=!1;const Lt=async()=>{try{const Dr=await fetch("/__archik/files",{cache:"no-store"});if(An||!Dr.ok)return;const El=await Dr.json();if(An)return;Array.isArray(El.files)&&j(El.files)}catch{}};Lt();const Ui=Zhn(()=>{Lt()}),Mi=Xhn(()=>{Lt()});return()=>{An=!0,Ui(),Mi()}},[]),Nt.useEffect(()=>{if(h.status!=="ready")return;const An=h.document;let Lt=!1;const Ui=async()=>{if(U!==null&&C.length>0&&C.some(Dr=>Dr.path===U)&&!P.has(U)){Ni({status:"none"});return}try{const Dr=await fetch(T.sidecarUrl,{cache:"no-store"});if(Lt)return;if(Dr.status===404){Ni({status:"none"});return}if(!Dr.ok){Ni({status:"error",message:`Sidecar fetch failed: HTTP ${Dr.status}`});return}const El=await Dr.text();let To;try{To=Xdn(El)}catch(Lc){Ni({status:"error",message:Lc instanceof Error?Lc.message:String(Lc)});return}const uu=W8e(An,To);Ni({status:"pending",added:uu.nodes.added.length+uu.edges.added.length,removed:uu.nodes.removed.length+uu.edges.removed.length,changed:uu.nodes.changed.length+uu.edges.changed.length,doc:To,...To.metadata?.suggestion?.note!==void 0?{note:To.metadata.suggestion.note}:{}})}catch(Dr){if(Lt)return;Ni({status:"error",message:Dr instanceof Error?Dr.message:String(Dr)})}};Ui();const Mi=Xhn(Ui);return()=>{Lt=!0,Mi()}},[h,T.sidecarUrl,U,C,P]);const TT=Nt.useCallback(async()=>{try{const An=await fetch(T.acceptUrl,{method:"POST"});if(!An.ok){const Lt=await An.text();Ni({status:"error",message:`Accept failed: ${Lt||`HTTP ${An.status}`}`});return}Ni({status:"none"}),mu(!1)}catch(An){Ni({status:"error",message:An instanceof Error?An.message:String(An)})}},[T.acceptUrl]),oh=Nt.useCallback(async()=>{try{const An=await fetch(T.sidecarUrl,{method:"DELETE"});if(!An.ok&&An.status!==404){const Lt=await An.text();Ni({status:"error",message:`Reject failed: ${Lt||`HTTP ${An.status}`}`});return}Ni({status:"none"}),mu(!1)}catch(An){Ni({status:"error",message:An instanceof Error?An.message:String(An)})}},[T.sidecarUrl]),MT=Nt.useCallback(()=>{mu(An=>!An)},[]),dy=Nt.useCallback(async()=>{let An=null;if(g(Ui=>(Ui.status==="ready"&&(An=Ui.document),Ui)),!An)return;const Lt=O7e(An);Cc.current=Lt,re("saving"),yn(null);try{await lZn(T.docUrl,An),re("saved");let Ui=!1;g(Mi=>(Mi.status==="ready"&&Mi.document===An&&(Ui=!0),Mi)),Ui&&Rn(!1),sh.current&&clearTimeout(sh.current),sh.current=setTimeout(()=>re("idle"),PXn)}catch(Ui){re("error"),yn(Ui instanceof Error?Ui.message:String(Ui))}},[T.docUrl]),r3=q?.path??null,Zg=Nt.useCallback((An,Lt)=>r3===An?e7e:c0n(An,Lt),[r3]),by=Nt.useCallback((An,Lt)=>An.archikFile===Lt?!0:An.archikFile===null&&r3===Lt,[r3]),i7=Nt.useCallback((An,Lt)=>{y(Ui=>{const Mi=Ui.findIndex(Dr=>by(Dr,An));return Mi>=0?Mi===Ui.length-1?Ui:Ui.slice(0,Mi+1):[...Ui,Zg(An,Lt)]})},[Zg,by]),u5=Nt.useCallback((An,Lt)=>{y(Ui=>{const Mi=Ui[Ui.length-1];return by(Mi,An)?Ui:[Zg(An,Lt)]})},[Zg,by]),CT=Nt.useCallback(An=>{y(Lt=>An<0||An>=Lt.length-1?Lt:Lt.slice(0,An+1))},[]),c3=Nt.useCallback(An=>{An.isRoot?y([e7e]):u5(An.path,An.name)},[u5]),lh=Nt.useCallback((An,Lt)=>{if(oa===null){Lt&&(Lt.metaKey||Lt.ctrlKey||Lt.shiftKey)?hy(An):r5(An);return}if(An===oa){cu();return}let Ui=null;g(Mi=>{if(Mi.status!=="ready"||!Mi.document.nodes.find(Lc=>Lc.id===oa))return Mi;const El=new Set(Mi.document.edges.map(Lc=>Lc.id)),To=C8e(M8e(`${oa}-${An}`),El,"edge"),uu={id:To,from:oa,to:An,relationship:"http_call"};try{const Lc=nI(Mi.document,{type:"connect",edge:uu});return ie(void 0),Rn(!0),Q(zu=>[...zu.slice(-(qn-1)),Mi.document]),Ps([]),Ui=To,{status:"ready",document:Lc}}catch(Lc){const zu=Lc instanceof Error?Lc.message:String(Lc);return ie(zu),Mi}}),cu(),Ui&&Na(Ui)},[oa,cu,r5,hy,Na]),Tb=Nt.useCallback((An,Lt)=>{Lt&&(Lt.metaKey||Lt.ctrlKey||Lt.shiftKey)?i3(An):Na(An)},[Na,i3]),fh=Nt.useCallback((An,Lt)=>{let Ui=null;g(Mi=>{if(Mi.status!=="ready")return Mi;const Dr=Mi.document.nodes.find(zu=>zu.id===An),El=Mi.document.nodes.find(zu=>zu.id===Lt);if(!Dr||!El)return Mi;const To=new Set(Mi.document.edges.map(zu=>zu.id)),uu=C8e(M8e(`${An}-${Lt}`),To,"edge"),Lc={id:uu,from:An,to:Lt,relationship:"http_call"};try{const zu=nI(Mi.document,{type:"connect",edge:Lc});return ie(void 0),Rn(!0),Q(Cb=>[...Cb.slice(-(qn-1)),Mi.document]),Ps([]),Ui=uu,{status:"ready",document:zu}}catch(zu){const Cb=zu instanceof Error?zu.message:String(zu);return ie(Cb),Mi}}),Ui&&Na(Ui)},[Na]),xT=Nt.useCallback((An,Lt,Ui)=>{g(Mi=>{if(Mi.status!=="ready")return Mi;const Dr=new Set(Mi.document.nodes.map(To=>To.id)),El=C8e(M8e(Lt),Dr,An);try{const To=nI(Mi.document,{type:"add_node",node:{id:El,kind:An,name:Lt,description:Ui}});return ie(void 0),Rn(!0),Q(uu=>[...uu.slice(-(qn-1)),Mi.document]),Ps([]),{status:"ready",document:To}}catch(To){const uu=To instanceof Error?To.message:String(To);return ie(uu),Mi}})},[]),r7=Nt.useCallback(An=>{g(Lt=>{if(Lt.status!=="ready")return Lt;try{const Ui=nI(Lt.document,An);return ie(void 0),Rn(!0),Q(Mi=>[...Mi.slice(-(qn-1)),Lt.document]),Ps([]),{status:"ready",document:Ui}}catch(Ui){const Mi=Ui instanceof Error?Ui.message:String(Ui);return ie(Mi),Lt}})},[]),s5=Nt.useCallback(()=>{ds.length!==0&&(g(An=>{if(An.status!=="ready")return An;let Lt=An.document;try{const Ui=ds.filter(Dr=>Dr.type==="edge").map(Dr=>Dr.id);for(const Dr of Ui)Lt.edges.some(El=>El.id===Dr)&&(Lt=nI(Lt,{type:"disconnect",id:Dr}));const Mi=ds.filter(Dr=>Dr.type==="node").map(Dr=>Dr.id);for(const Dr of Mi)Lt.nodes.some(El=>El.id===Dr)&&(Lt=nI(Lt,{type:"remove_node",id:Dr}));return Lt===An.document?An:(ie(void 0),Rn(!0),Q(Dr=>[...Dr.slice(-(qn-1)),An.document]),Ps([]),{status:"ready",document:Lt})}catch(Ui){const Mi=Ui instanceof Error?Ui.message:String(Ui);return ie(Mi),An}}),Ab())},[ds,Ab]),Dp=Nt.useCallback(()=>{if(h.status!=="ready"||sr.length===0)return;const An=sr[sr.length-1];Q(Lt=>Lt.slice(0,-1)),Ps(Lt=>[...Lt,h.document]),g({status:"ready",document:An}),Rn(!0),ie(void 0),Ab()},[h,sr,Ab]),Xg=Nt.useCallback(()=>{if(h.status!=="ready"||Cf.length===0)return;const An=Cf[Cf.length-1];Ps(Lt=>Lt.slice(0,-1)),Q(Lt=>[...Lt,h.document]),g({status:"ready",document:An}),Rn(!0),ie(void 0),Ab()},[h,Cf,Ab]);if(Nt.useEffect(()=>{const An=Lt=>{if((Lt.metaKey||Lt.ctrlKey)&&Lt.key==="s"){Lt.preventDefault(),Nn&&dy();return}if((Lt.metaKey||Lt.ctrlKey)&&(Lt.key==="z"||Lt.key==="Z")){Lt.preventDefault(),Lt.shiftKey?Xg():Dp();return}if((Lt.metaKey||Lt.ctrlKey)&&Lt.key==="y"){Lt.preventDefault(),Xg();return}if(Lt.key==="Escape"){oa&&cu();return}if(Lt.key==="Delete"||Lt.key==="Backspace"){const Ui=Lt.target;if(Ui instanceof HTMLInputElement||Ui instanceof HTMLTextAreaElement||Ui instanceof HTMLSelectElement||Ui instanceof HTMLElement&&Ui.isContentEditable||ds.length===0)return;Lt.preventDefault(),s5()}};return window.addEventListener("keydown",An),()=>window.removeEventListener("keydown",An)},[Nn,dy,oa,cu,ds,s5,Dp,Xg]),h.status==="loading")return J.jsxs(u1n,{children:["Loading ",T.docUrl,"…"]});if(h.status==="error")return J.jsx(u1n,{children:J.jsx("pre",{className:"max-w-3xl whitespace-pre-wrap text-xs text-rose-700",children:h.error})});const Mb=h.document,E1=Vu&&rt.status==="pending",gy=E1&&rt.status==="pending"?pZn(Mb,rt.doc):null,$p=E1&&rt.status==="pending"?Qdn(W8e(Mb,rt.doc)):null,wy=gy??Mb,c7=Zc?.type==="node"?wy.nodes.find(An=>An.id===Zc.id):void 0,o5=Zc?.type==="edge"?wy.edges.find(An=>An.id===Zc.id):void 0,Lp=oa!==null?Mb.nodes.find(An=>An.id===oa):void 0,u7=ds.length>1;return J.jsxs("div",{className:"flex h-full flex-col",style:{background:"var(--archik-canvas)",color:"var(--archik-fg)"},children:[J.jsx(OXn,{document:Mb,commandError:oe,saveStatus:Qe,...rn!==null?{saveError:rn}:{},isDirty:Nn,onSave:()=>{dy()},onAddNode:xT,density:et,onDensityChange:Br,viewMode:vc,onViewModeChange:Wn,canUndo:sr.length>0,canRedo:Cf.length>0,onUndo:Dp,onRedo:Xg,getSvg:Wu,seqHighlight:Vn,onToggleSeqHighlight:()=>Ot(An=>!An),seqNodeCount:wi.size,robustnessMode:Jt,onToggleRobustness:()=>ei(An=>!An),stereotypedCount:vr,...le!==void 0?{reloadError:le}:{},...Lp!==void 0?{connectingFromName:Lp.name,onCancelConnect:cu}:{}}),rt.status==="pending"&&J.jsx(qXn,{added:rt.added,removed:rt.removed,changed:rt.changed,note:rt.note,reviewing:E1,onReview:MT,onAccept:()=>{TT()},onReject:()=>{oh()}}),rt.status==="error"&&J.jsxs("div",{role:"alert",style:{background:"rgba(217, 119, 6, 0.12)",borderBottom:"1px solid rgba(217, 119, 6, 0.45)",color:"var(--archik-warning)",padding:"8px 16px",fontSize:12,display:"flex",alignItems:"center",gap:12},children:[J.jsx("span",{style:{fontWeight:700},children:"SUGGESTION ERROR —"}),J.jsx("span",{style:{flex:1,color:"var(--archik-fg)"},children:rt.message}),J.jsx("button",{type:"button",onClick:()=>Ni({status:"none"}),"aria-label":"Dismiss",style:{background:"transparent",border:"none",color:"var(--archik-fg-dim)",cursor:"pointer",fontSize:16,lineHeight:1},children:"×"})]}),le!==void 0&&J.jsxs("div",{role:"alert",style:{background:"rgba(225, 29, 72, 0.12)",borderBottom:"1px solid rgba(225, 29, 72, 0.45)",color:"var(--archik-danger)",padding:"10px 16px",display:"flex",alignItems:"flex-start",gap:12,fontSize:12,lineHeight:1.5},children:[J.jsx("span",{style:{fontWeight:700,letterSpacing:"0.04em"},children:"FILE INVALID —"}),J.jsx("pre",{style:{margin:0,flex:1,whiteSpace:"pre-wrap",fontFamily:"inherit",color:"var(--archik-fg)"},children:le}),J.jsx("button",{type:"button",onClick:()=>Te(void 0),"aria-label":"Dismiss error",style:{background:"transparent",border:"none",color:"var(--archik-fg-dim)",cursor:"pointer",padding:"0 4px",fontSize:16,lineHeight:1},children:"×"})]}),J.jsxs("main",{className:"flex min-h-0 flex-1 p-4",style:{gap:0},children:[J.jsx("div",{className:"archik-panel",style:{flex:1,minWidth:0,overflow:"hidden"},children:J.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},children:[(C.length>1||p.length>1)&&J.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 10px",background:"var(--archik-surface)",borderBottom:"1px solid var(--archik-border)"},children:[J.jsx(NXn,{files:C,currentPath:U,onSwitchFile:c3}),J.jsx(IXn,{stack:p,onGoToFrame:CT,suggestionsByPath:P})]}),J.jsx(oqn,{document:wy,className:"flex-1 archik-grid",layoutOptions:ti,viewMode:vc,selectedNodeIds:c5,selectedEdgeIds:zs,onSelectNode:lh,onSelectEdge:Tb,onSelectNothing:oa===null?Ab:cu,onConnectDrag:fh,onOpenSubFile:i7,onCrossFileNavigate:u5,viewKey:T.docUrl,svgRef:Rs,...$p?{diffStatuses:$p}:{},...Vn&&wi.size>0?{glowNodeIds:wi}:{},...Jt?{robustnessMode:!0}:{}})]})}),J.jsx("aside",{"aria-hidden":ds.length===0,className:`archik-drawer-shell ${ds.length>0?"archik-drawer-shell--open":"archik-drawer-shell--closed"}`,children:J.jsx("div",{className:"archik-panel archik-drawer-content archik-drawer-fade",style:{overflow:"hidden"},children:u7?J.jsx(FXn,{count:ds.length,onDelete:s5,onClear:Ab}):Zc?.type==="edge"?J.jsx(DZn,{edge:o5,dispatch:r7,readOnly:E1}):Zc?.type==="node"?J.jsx(OZn,{node:c7,dispatch:r7,onStartConnect:t7,allNodes:wy.nodes,readOnly:E1,viewKey:T.archikFile??void 0}):null},u7?`multi:${ds.length}`:Zc?`${Zc.type}:${Zc.id}`:"empty")})]})]})}function FXn({count:h,onDelete:g,onClear:p}){return J.jsxs("div",{className:"flex h-full flex-col gap-4 overflow-y-auto p-4 text-sm",children:[J.jsxs("div",{children:[J.jsx("div",{className:"archik-label",children:"Selection"}),J.jsxs("div",{style:{fontSize:18,fontWeight:600,color:"var(--archik-fg)",letterSpacing:"0.01em"},children:[h," items"]}),J.jsx("div",{style:{fontSize:11,color:"var(--archik-fg-dim)",marginTop:4},children:"Hold ⌘ / Ctrl while clicking to add or remove items."})]}),J.jsx("div",{className:"archik-divider"}),J.jsxs("div",{className:"mt-auto flex flex-col gap-2 pt-4",children:[J.jsx("button",{type:"button",onClick:p,className:"archik-btn",style:{justifyContent:"center",padding:"8px 12px"},children:"Clear selection"}),J.jsxs("button",{type:"button",onClick:g,className:"archik-btn archik-btn-danger",style:{justifyContent:"center",padding:"8px 12px"},children:["Delete ",h," items"]})]})]})}function u1n({children:h}){return J.jsx("div",{className:"flex h-full items-center justify-center p-6 text-sm",style:{background:"var(--archik-canvas)",color:"var(--archik-fg-dim)"},children:h})}function qXn({added:h,removed:g,changed:p,note:y,reviewing:T,onReview:C,onAccept:j,onReject:P}){const q=h+g+p;return J.jsxs("div",{role:"region","aria-label":"Pending suggestion",style:{background:"rgba(168, 85, 247, 0.12)",borderBottom:"1px solid rgba(168, 85, 247, 0.45)",padding:"10px 16px",display:"flex",alignItems:"center",gap:14,fontSize:12,lineHeight:1.4},children:[J.jsx("span",{style:{fontWeight:700,letterSpacing:"0.04em",color:"#c4b5fd"},children:"📝 SUGGESTION PENDING"}),J.jsxs("span",{style:{color:"var(--archik-fg)"},children:[q===0?"(identical to current — nothing to apply)":J.jsxs(J.Fragment,{children:[J.jsxs("span",{style:{color:"var(--archik-success)"},children:["+",h]})," ",J.jsxs("span",{style:{color:"var(--archik-danger)"},children:["−",g]})," ",J.jsxs("span",{style:{color:"var(--archik-warning)"},children:["~",p]})]}),y?J.jsxs("span",{style:{marginLeft:10,color:"var(--archik-fg-dim)",fontStyle:"italic"},children:['"',y,'"']}):null]}),J.jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[J.jsx("button",{type:"button",onClick:C,className:"archik-btn",style:{padding:"5px 12px",fontSize:12,...T?{background:"#a855f7",color:"white",borderColor:"#a855f7"}:{}},children:T?"Hide diff":"Review"}),J.jsx("button",{type:"button",onClick:j,className:"archik-btn",title:q===0?"Suggestion already matches the current file — Accept just clears the sidecar.":"Apply the suggestion to the main file.",style:{padding:"5px 12px",fontSize:12,background:"var(--archik-success)",color:"white",borderColor:"var(--archik-success)"},children:"Accept"}),J.jsx("button",{type:"button",onClick:P,className:"archik-btn",style:{padding:"5px 12px",fontSize:12,color:"var(--archik-danger)",borderColor:"var(--archik-danger)"},children:"Reject"})]})]})}const GXn=n7(["sync","async","return","create","destroy"]),JXn=n7(["over","left_of","right_of"]),UXn=n7(["alt","opt","loop","par","break","ref"]),HXn=Kg({id:dd,nodeId:dd,label:hs().min(1).optional(),status:TI.optional()}),KXn=Kg({type:iU("message"),id:dd,from:dd,to:dd,label:hs().min(1),arrow:GXn,activate:mKn().optional(),status:TI.optional()}),ZXn=Kg({type:iU("note"),id:dd,position:JXn,participants:Ug(dd).min(1),text:hs().min(1),status:TI.optional()}),XXn=C7e(()=>Kg({label:hs().optional(),steps:Ug(u0n)})),VXn=C7e(()=>Kg({type:iU("group"),id:dd,kind:UXn,condition:hs().optional(),label:hs().optional(),branches:Ug(XXn).optional(),seqFile:Udn.optional(),participants:Ug(dd).optional(),status:TI.optional()})),u0n=C7e(()=>Fdn([KXn,ZXn,VXn]));function s0n(h,g){const p=[];for(const y of h)if(g.has(y.id)?p.push(y.id):g.add(y.id),y.type==="group"&&y.branches)for(const T of y.branches)p.push(...s0n(T.steps,g));return p}const WXn=Kg({useCase:dd,slice:dd}),YXn=Kg({version:iU("1.0"),name:hs().min(1),description:hs().optional(),realizes:WXn.optional(),participants:Ug(HXn).min(1),steps:Ug(u0n)}).superRefine((h,g)=>{const p=new Set;for(let C=0;C<h.participants.length;C++){const j=h.participants[C];p.has(j.id)&&g.addIssue({code:jb.custom,path:["participants",C,"id"],message:`duplicate participant id "${j.id}"`}),p.add(j.id)}const y=new Set,T=s0n(h.steps,y);for(const C of T)g.addIssue({code:jb.custom,path:["steps"],message:`duplicate step id "${C}"`})}),rU=56,QXn=160,eVn=40,n7e=56,nVn=24,N8e=12,s1n=64,Vce=32,o1n=24,l1n=8,o0n="seq-arrow-filled",l0n="seq-arrow-open";function tVn(h){return Math.max(QXn,h.length*8+eVn*2)}function f0n(h,g,p,y,T){let C=p;const j=[];for(const P of h)if(P.type==="message"){const q=g.get(P.from),U=g.get(P.to),oe=q?.cx??y,ie=U?.cx??y;j.push({type:"message",id:P.id,fromCx:oe,toCx:ie,y:C,label:P.label,arrow:P.arrow,activate:P.activate??!1,isSelf:P.from===P.to,...P.status!==void 0?{status:P.status}:{}}),C+=P.from===P.to?n7e*1.5:n7e}else if(P.type==="note"){const q=P.participants.map(Te=>g.get(Te)?.cx).filter(Te=>Te!==void 0).sort((Te,Qe)=>Te-Qe),U=q[0]??y,oe=q[q.length-1]??T,ie=Math.min(Math.max(P.text.length*7.5+24,oe-U+16,80),400);let le;P.position==="left_of"?le=U-ie-8:P.position==="right_of"?le=oe+8:le=(U+oe)/2-ie/2,le=Math.max(0,le),j.push({type:"note",id:P.id,x:le,y:C,width:ie,height:s1n,text:P.text,...P.status!==void 0?{status:P.status}:{}}),C+=s1n+8}else if(P.type==="group"){C+=8;const q=y-N8e,U=T-y+N8e*2,oe=C;C+=nVn;const ie=[];if(P.branches)for(let le=0;le<P.branches.length;le++){const Te=P.branches[le],Qe=C,{items:re,endY:rn}=f0n(Te.steps,g,C,y,T);C=rn,ie.push({...Te.label!==void 0?{label:Te.label}:{},startY:Qe,...le<P.branches.length-1?{dividerY:C}:{},steps:re}),le<P.branches.length-1&&(C+=4)}C+=N8e,j.push({type:"group",id:P.id,kind:P.kind,...P.condition!==void 0?{condition:P.condition}:{},...P.label!==void 0?{label:P.label}:{},...P.seqFile!==void 0?{seqFile:P.seqFile}:{},x:q,y:oe,width:U,height:C-oe,branches:ie,...P.status!==void 0?{status:P.status}:{}})}return{items:j,endY:C}}function a0n(h){const g=new Map;for(const p of h)if(p.type==="message"&&p.arrow==="destroy"&&g.set(p.toCx,p.y+rU+20),p.type==="group")for(const y of p.branches)for(const[T,C]of a0n(y.steps))g.set(T,C);return g}function iVn(h){const g=[],p=new Map;function y(T){for(const C of T)if(C.type==="message"){if(C.activate&&C.arrow==="sync"&&!C.isSelf){const j=p.get(C.toCx)??[];j.push(C.y),p.set(C.toCx,j)}if(C.arrow==="return"&&!C.isSelf){const j=p.get(C.fromCx);if(j&&j.length>0){const P=j.pop();g.push({cx:C.fromCx,startY:P,endY:C.y}),j.length===0&&p.delete(C.fromCx)}}}else if(C.type==="group")for(const j of C.branches)y(j.steps)}y(h);for(const[T,C]of p)for(const j of C)g.push({cx:T,startY:j,endY:j+n7e/2});return g}function rVn(h,g){const p=h.participants.map(rn=>tVn(rn.label??rn.nodeId));let y=Vce;const T=h.participants.map((rn,yn)=>{const Nn=p[yn],Rn=y+Nn/2;y+=Nn;const Vn=g?.get(rn.nodeId);return{id:rn.id,nodeId:rn.nodeId,label:rn.label??rn.nodeId,cx:Rn,colWidth:Nn,...Vn!==void 0?{kind:Vn}:{},...rn.status!==void 0?{status:rn.status}:{},lifelineEndY:0}}),C=y+Vce,j=new Map(T.map(rn=>[rn.id,rn])),P=T[0]?.cx??Vce,q=T[T.length-1]?.cx??C-Vce,U=o1n,{items:oe,endY:ie}=f0n(h.steps,j,U,P,q),le=rU+ie+o1n,Te=a0n(oe),Qe=T.map(rn=>({...rn,lifelineEndY:Te.get(rn.cx)??le})),re=iVn(oe);return{participants:Qe,steps:oe,activations:re,totalWidth:C,totalHeight:le}}const Wce=36,cVn=128,uVn=7,f1n=20,a1n=24;function sVn({participant:h,nodeKind:g}){const p=g?n3[g]:void 0,y=p?.color??"var(--archik-fg-muted)",T=(rU-Wce)/2,C=p?.icon,j=Math.max(cVn,h.label.length*uVn+a1n+(C?f1n:0)),P=j/2,q=C?P+f1n/2:P,U=h.status,oe=U==="proposed"?.55:U==="deprecated"?.35:1,ie=U==="proposed"||U==="deprecated"?"4 3":void 0;return J.jsxs("g",{transform:`translate(${h.cx-P}, ${T})`,opacity:oe,children:[J.jsx("rect",{width:j,height:Wce,rx:8,fill:"var(--archik-node-fill)",stroke:y,strokeWidth:1.4,...ie!==void 0?{strokeDasharray:ie}:{}}),C&&J.jsx("g",{transform:`translate(${a1n/2}, ${(Wce-14)/2})`,children:J.jsx(C,{size:14,color:y,strokeWidth:1.5})}),J.jsx("text",{x:q,y:Wce/2+4,textAnchor:"middle",fontSize:12,fontWeight:500,fill:"var(--archik-fg)",fontFamily:"inherit",children:h.label})]})}function oVn({participant:h}){const g=h.status,p=g==="proposed"?.3:g==="deprecated"?.2:.5;return J.jsx("line",{x1:h.cx,y1:rU,x2:h.cx,y2:h.lifelineEndY,stroke:"var(--archik-node-stroke)",strokeWidth:1,strokeDasharray:"4 4",opacity:p})}const I8e=32,D8e=20,lVn=-6;function fVn({msg:h}){const g=h.arrow==="return",p=h.arrow==="async",y=h.arrow==="create",T=g||y,C=h.arrow==="destroy",j=g||p?l0n:o0n,P=h.status==="proposed"?.5:h.status==="deprecated"?.35:1;if(h.isSelf){const ie=h.fromCx,le=h.y,Te=`M ${ie} ${le} L ${ie+I8e} ${le} L ${ie+I8e} ${le+D8e} L ${ie} ${le+D8e}`;return J.jsxs("g",{opacity:P,children:[J.jsx("path",{d:Te,fill:"none",stroke:"var(--archik-edge-filled)",strokeWidth:1.4,markerEnd:`url(#${j})`}),J.jsx("text",{x:ie+I8e+6,y:le+D8e/2+4,fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:h.label})]})}const U=h.fromCx<h.toCx?h.toCx-6:h.toCx+6,oe=(h.fromCx+h.toCx)/2;return J.jsxs("g",{opacity:P,children:[J.jsx("line",{x1:h.fromCx,y1:h.y,x2:U,y2:h.y,stroke:"var(--archik-edge-filled)",strokeWidth:1.4,strokeDasharray:T?"4 4":void 0,markerEnd:C?void 0:`url(#${j})`}),J.jsxs("text",{x:oe,y:h.y+lVn,textAnchor:"middle",fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:[y&&"«create» ",h.label]}),h.arrow==="destroy"&&J.jsxs("g",{transform:`translate(${h.toCx-6}, ${h.y-6})`,children:[J.jsx("line",{x1:0,y1:0,x2:12,y2:12,stroke:"var(--archik-fg-muted)",strokeWidth:1.5}),J.jsx("line",{x1:12,y1:0,x2:0,y2:12,stroke:"var(--archik-fg-muted)",strokeWidth:1.5})]})]})}const aVn={alt:"#6366f1",opt:"#0ea5e9",loop:"#10b981",par:"#f59e0b",break:"#ef4444",ref:"#8b5cf6"},h1n=36,$8e=18;function hVn({group:h,renderStep:g,onRefClick:p}){const y=aVn[h.kind]??"var(--archik-fg-muted)",T=h.status==="proposed"?.55:h.status==="deprecated"?.35:1,C=h.kind==="ref"&&h.seqFile!==void 0&&p!==void 0;return J.jsxs("g",{opacity:T,onClick:C?()=>p(h.seqFile):void 0,style:C?{cursor:"pointer"}:void 0,children:[J.jsx("rect",{x:h.x,y:h.y,width:h.width,height:h.height,rx:4,fill:"none",stroke:y,strokeWidth:1.2,opacity:.6}),J.jsx("rect",{x:h.x,y:h.y,width:h1n,height:$8e,rx:4,fill:y,opacity:.8}),J.jsx("text",{x:h.x+6,y:h.y+$8e-5,fontSize:10,fontWeight:600,fill:"#fff",fontFamily:"inherit",children:h.kind}),(h.condition??h.label)&&J.jsx("text",{x:h.x+h1n+6,y:h.y+$8e-5,fontSize:10,fill:y,fontFamily:"inherit",children:h.condition??h.label}),h.branches.map((j,P)=>J.jsxs("g",{children:[j.label&&J.jsx("text",{x:h.x+6,y:j.startY+12,fontSize:10,fill:y,fontFamily:"inherit",children:j.label}),j.steps.map(q=>g(q)),j.dividerY!==void 0&&J.jsx("line",{x1:h.x,y1:j.dividerY,x2:h.x+h.width,y2:j.dividerY,stroke:y,strokeWidth:1,strokeDasharray:"4 2",opacity:.5})]},P))]})}const iI=10;function dVn(h,g){const p=Math.max(10,Math.floor(g/6.5));if(h.length<=p)return[h];const y=h.split(" "),T=[];let C="";for(const j of y)(C+(C?" ":"")+j).length>p&&C?(T.push(C),C=j):C=C?C+" "+j:j;return C&&T.push(C),T.slice(0,3)}function bVn({note:h}){const{x:g,y:p,width:y,height:T,text:C}=h,j=h.status==="proposed"?.55:h.status==="deprecated"?.35:1;return J.jsxs("g",{opacity:j,children:[J.jsx("path",{d:`M ${g} ${p} L ${g+y-iI} ${p} L ${g+y} ${p+iI} L ${g+y} ${p+T} L ${g} ${p+T} Z`,fill:"var(--archik-node-fill)",stroke:"var(--archik-node-stroke)",strokeWidth:1.2}),J.jsx("path",{d:`M ${g+y-iI} ${p} L ${g+y-iI} ${p+iI} L ${g+y} ${p+iI}`,fill:"none",stroke:"var(--archik-node-stroke)",strokeWidth:1.2}),dVn(C,y-16).map((P,q)=>J.jsx("text",{x:g+8,y:p+8+11+q*13,fontSize:11,fill:"var(--archik-fg)",fontFamily:"inherit",children:P},q))]})}function gVn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"context-stroke"})})}function wVn({id:h}){return J.jsx("marker",{id:h,viewBox:"0 0 12 12",refX:"11",refY:"6",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:J.jsx("path",{d:"M 1 1 L 11 6 L 1 11",fill:"none",stroke:"context-stroke",strokeWidth:"1.5",strokeLinejoin:"round"})})}function h0n({step:h,onRefClick:g}){return h.type==="message"?J.jsx(fVn,{msg:h}):h.type==="note"?J.jsx(bVn,{note:h}):h.type==="group"?J.jsx(hVn,{group:h,...g!==void 0?{onRefClick:g}:{},renderStep:p=>J.jsx(h0n,{step:p,...g!==void 0?{onRefClick:g}:{}},p.id)}):null}function pVn({laid:h,svgRef:g,onRefClick:p}){const{participants:y,steps:T,activations:C,totalWidth:j,totalHeight:P}=h;return J.jsxs("svg",{ref:g,width:j,height:P,viewBox:`0 0 ${j} ${P}`,xmlns:"http://www.w3.org/2000/svg",style:{fontFamily:"var(--archik-font, system-ui)"},children:[J.jsxs("defs",{children:[J.jsx(gVn,{id:o0n}),J.jsx(wVn,{id:l0n})]}),y.map(q=>J.jsx(oVn,{participant:q},q.id)),y.map(q=>J.jsx(sVn,{participant:q,...q.kind!==void 0?{nodeKind:q.kind}:{}},q.id)),J.jsxs("g",{transform:`translate(0, ${rU})`,children:[C.map(q=>J.jsx("rect",{x:q.cx-l1n/2,y:q.startY,width:l1n,height:q.endY-q.startY,fill:"var(--archik-node-fill)",stroke:"var(--archik-node-stroke)",strokeWidth:1,rx:2},`${q.cx}-${q.startY}`)),T.map(q=>J.jsx(h0n,{step:q,...p!==void 0?{onRefClick:p}:{}},q.id))]})]})}function mVn({path:h,fromViewKey:g}){const[p,y]=Nt.useState({status:"loading"}),[T,C]=Nt.useState(void 0),j=Nt.useRef(null);Nt.useEffect(()=>{fetch("/__archik/node-kinds").then(ie=>ie.ok?ie.json():null).then(ie=>{ie&&C(new Map(Object.entries(ie)))}).catch(()=>{})},[]),Nt.useEffect(()=>{y({status:"loading"});const ie=encodeURIComponent(h);fetch(`/__archik/seq-file?path=${ie}`).then(async le=>{if(!le.ok)throw new Error(`${le.status} ${le.statusText}`);return le.text()}).then(le=>{const Te=y7e.parse(le),Qe=YXn.safeParse(Te);if(!Qe.success)throw new Error(Qe.error.issues.map(re=>re.message).join("; "));y({status:"ready",doc:Qe.data})}).catch(le=>{y({status:"error",message:le instanceof Error?le.message:String(le)})})},[h]);const P=g?`/?file=${encodeURIComponent(g)}`:"/";if(p.status==="loading")return J.jsx("div",{className:"flex h-screen items-center justify-center",style:{color:"var(--archik-fg-muted)"},children:"Loading sequence diagram…"});if(p.status==="error")return J.jsxs("div",{className:"flex h-screen flex-col items-center justify-center gap-4",children:[J.jsx("div",{style:{color:"var(--archik-fg-error, #ef4444)"},children:p.message}),J.jsx("a",{href:P,style:{color:"var(--archik-fg-muted)",fontSize:13},children:"← Architecture"})]});const q=rVn(p.doc,T),U=h.replace(/^.*\//,"").replace(/\.archik\.seq\.yaml$/,""),oe=ie=>{const le=`?path=${encodeURIComponent(ie)}&from=${encodeURIComponent(h)}`;window.location.href=`/seq${le}`};return J.jsxs("div",{className:"flex h-screen flex-col",style:{background:"var(--archik-bg)"},children:[J.jsxs("div",{className:"flex items-center gap-3 px-4",style:{height:48,borderBottom:"1px solid var(--archik-node-stroke)",background:"var(--archik-toolbar-bg, var(--archik-node-fill))"},children:[J.jsx("a",{href:P,style:{color:"var(--archik-fg-muted)",fontSize:13,textDecoration:"none"},children:"← Architecture"}),J.jsx("span",{style:{color:"var(--archik-node-stroke)"},children:"|"}),J.jsx("span",{style:{fontWeight:500,fontSize:14,color:"var(--archik-fg)"},children:p.doc.name}),J.jsx("div",{className:"ml-auto",children:J.jsx(t0n,{filename:U,getSvg:()=>j.current})})]}),J.jsx("div",{className:"flex-1 overflow-auto p-6",children:J.jsx(pVn,{laid:q,svgRef:j,onRefClick:oe})})]})}const d0n=document.getElementById("root");if(!d0n)throw new Error("#root not found");const d1n=new URLSearchParams(window.location.search),vVn=window.location.pathname==="/__archik/seq"||window.location.pathname.startsWith("/__archik/seq/"),b1n=szn.createRoot(d0n);if(vVn){const h=d1n.get("path")??"",g=d1n.get("from");b1n.render(J.jsx(Nt.StrictMode,{children:J.jsx(mVn,{path:h,fromViewKey:g})}))}else b1n.render(J.jsx(Nt.StrictMode,{children:J.jsx(BXn,{})}));