agentic-mermaid 0.3.2 → 0.4.0
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.
- package/CHANGELOG.md +102 -0
- package/dist/agent-core.d.ts +2 -2
- package/dist/agent-core.js +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +4 -4
- package/dist/agentic-mermaid-mcp.js +5 -5
- package/dist/am.js +6 -6
- package/dist/browser-lazy/chunks/{architecture-WMSX5L4P.js → architecture-NUJTDJJ7.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-TBZAU7KC.js → chunk-2W3BS3M3.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-TEH2PRKN.js → chunk-4RLZTVJP.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-W6Q4PHPC.js → chunk-4ZURJQXD.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-32FWKUUV.js → chunk-55F5M5XA.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-QMZ4Y6I7.js → chunk-5QI4P3EJ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-AOCFMYYH.js → chunk-6LBHOBXT.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-TDGTBGV3.js → chunk-ASPYKC6M.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-EX6TP7QM.js → chunk-DQHK4JCG.js} +2 -2
- package/dist/browser-lazy/chunks/{chunk-RLS545DI.js → chunk-EKHEVTE2.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-QYJMRNS3.js → chunk-HO5GDIPN.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-WN7SFUCZ.js → chunk-N2K2BPQT.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-CCTZFX43.js → chunk-OLQF6DTZ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-ZZECLXC3.js → chunk-TCPK32QH.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-ANTNEVJC.js → chunk-UO3RFEMI.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-EBPTM2RP.js → chunk-ZMPTJUXS.js} +1 -1
- package/dist/browser-lazy/chunks/{class-7JRALQIM.js → class-ABIOBAFL.js} +1 -1
- package/dist/browser-lazy/chunks/{er-UDCGHKBX.js → er-CX3NGEC2.js} +1 -1
- package/dist/browser-lazy/chunks/{flowchart-5FP7RRIK.js → flowchart-ML54IJ7F.js} +1 -1
- package/dist/browser-lazy/chunks/{gantt-NTOIC5CW.js → gantt-ZMOMOTF6.js} +1 -1
- package/dist/browser-lazy/chunks/{gitgraph-JYAPXUIJ.js → gitgraph-OBTCRWCA.js} +1 -1
- package/dist/browser-lazy/chunks/{journey-646EFIB6.js → journey-RJBHWLRG.js} +1 -1
- package/dist/browser-lazy/chunks/{mindmap-2SBTQHQO.js → mindmap-YXHLCHOO.js} +1 -1
- package/dist/browser-lazy/chunks/{pie-7FDXZ24K.js → pie-TN2QOLSL.js} +1 -1
- package/dist/browser-lazy/chunks/{quadrant-72UT4XAW.js → quadrant-QE5JZ4H2.js} +1 -1
- package/dist/browser-lazy/chunks/{radar-SU7BO56J.js → radar-ZPV6O27I.js} +1 -1
- package/dist/browser-lazy/chunks/{render-core-Q2JWXDDL.js → render-core-VPMAH3HT.js} +1 -1
- package/dist/browser-lazy/chunks/{sequence-5O5ET264.js → sequence-4AERT525.js} +1 -1
- package/dist/browser-lazy/chunks/{state-IWPLFQ6R.js → state-67TZ7USF.js} +1 -1
- package/dist/browser-lazy/chunks/{timeline-WJWYHH5Y.js → timeline-AHOAT7ZL.js} +1 -1
- package/dist/browser-lazy/chunks/{xychart-HHQVQA5O.js → xychart-YUY3CPT2.js} +1 -1
- package/dist/browser-lazy/index.js +1 -1
- package/dist/browser.global.js +5 -5
- package/dist/{chunk-GX7UT56Q.js → chunk-M3VTTD3Q.js} +2 -2
- package/dist/{chunk-3D4EHVQ4.js → chunk-PG4PTPJL.js} +7 -7
- package/dist/{chunk-R5U67OIW.js → chunk-QWCD67AZ.js} +4 -4
- package/dist/{chunk-IVN6KP3W.js → chunk-SDJYD4OP.js} +2 -2
- package/dist/{chunk-YWKCUBQN.js → chunk-UKLKEZBJ.js} +2 -2
- package/dist/{chunk-NE6JBHSE.js → chunk-WMFFVZ4Q.js} +35 -44
- package/dist/{index-BFg_LoZS.d.ts → index-BoqfBufn.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-cli-YOAFIAVD.js +17 -0
- package/docs/style-authoring.md +1 -1
- package/package.json +12 -1
- package/server.json +2 -2
- package/skills/agentic-mermaid-diagram-workflow/SKILL.md +64 -1
- package/skills/agentic-mermaid-diagram-workflow/references/hosted-mcp.md +110 -0
- package/dist/mcp-cli-XGZP6CMW.js +0 -17
package/dist/browser.global.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
`),l.length!=2)throw Q(new Vt("Exactly two numbers are expected, "+l.length+" were found."));try{this.a=hx(gx(l[0])),this.b=hx(gx(l[1]))}catch(h){throw h=ki(h),fe(h,133)?(o=h,Q(new Vt(uyt+o))):Q(h)}},g.Ib=function(){return"("+this.a+","+this.b+")"},g.a=0,g.b=0;var to=I(ED,"KVector",8);T(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},yl,$_,nQe),g.Nc=function(){return Urn(this)},g.ag=function(t){var n,o,a,l,h,b;a=xx(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|
22
22
|
`),Bl(this);try{for(o=0,h=0,l=0,b=0;o<a.length;)a[o]!=null&&gx(a[o]).length>0&&(h%2==0?l=hx(a[o]):b=hx(a[o]),h>0&&h%2!=0&&ir(this,new We(l,b)),++h),++o}catch(w){throw w=ki(w),fe(w,133)?(n=w,Q(new Vt("The given string does not match the expected format for vectors."+n))):Q(w)}},g.Ib=function(){var t,n,o;for(t=new Zl("("),n=Bn(this,0);n.b!=n.d.c;)o=d(_n(n),8),rr(t,o.a+","+o.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var _Ie=I(ED,"KVectorChain",79);T(259,23,{3:1,34:1,23:1,259:1},F$);var Lie,Hz,Uz,C5,M5,Jz,jIe=En(cc,"Alignment",259,Rn,Ven,hVt),_It;T(984,1,Bd,bze),g.tf=function(t){Xmt(t)};var BIe,Die,jIt,GIe,zIe,BIt,WIe,GIt,zIt,HIe,UIe,WIt,krr=I(cc,"BoxLayouterOptions",984);T(985,1,{},_je),g.uf=function(){var t;return t=new Gje,t},g.vf=function(t){};var Srr=I(cc,"BoxLayouterOptions/BoxFactory",985);T(300,23,{3:1,34:1,23:1,300:1},_$);var J3,Fie,q3,V3,Y3,_ie,jie=En(cc,"ContentAlignment",300,Rn,qen,gVt),HIt;T(696,1,Bd,zue),g.tf=function(t){pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,A0t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(ub(),eE)),ot),At((Gf(),_t))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,v0t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),eh),kxn),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,OAe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),JIe),Qr),jIe),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,zM),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,t2e),""),"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."),eh),_Ie),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,w7),""),"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."),VIe),ZS),jie),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,$D),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Ut(),!1)),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,XZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),YIe),Qr),Q3),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,ID),""),"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."),QIe),Qr),Qie),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Zve),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,y7),""),"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`."),e$e),Qr),W$e),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,T0),""),"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."),d$e),eh),Jke),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,WM),""),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,A7),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,HM),""),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,e7),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),p$e),Qr),J$e),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,x7),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),eh),to),_r(pi,re(ne(Zf,1),Fe,161,0,[gp,sm]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,yD),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Lo),Fi),_r(pi,re(ne(Zf,1),Fe,161,0,[xf]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,ZB),""),"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)."),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,SP),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,UAe),""),"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."),r$e),eh),_Ie),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,YAe),""),"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),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,XAe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,k0t),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),eh),Ixn),_r(_t,re(ne(Zf,1),Fe,161,0,[sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,S0t),""),"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),bo),Ci),At(sm)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,ZZ),""),"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."),i$e),eh),Uke),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,PAe),""),"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),_i),ci),_r(pi,re(ne(Zf,1),Fe,161,0,[xf,gp,sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,E0t),""),"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),bo),Ci),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,C0t),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,M0t),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,xD),""),p0t),"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),_i),ci),At(_t)))),ri(t,xD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,T0t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,I0t),""),"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'."),Ge(100)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,$0t),""),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,R0t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ge(4e3)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,P0t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ge(400)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,N0t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,O0t),""),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,L0t),""),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,D0t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,e2e),"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."),qIe),Qr),oRe),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,F0t),"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."),n$e),Qr),Y$e),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,_0t),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),t$e),Qr),$$e),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,xAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,AAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,vAe),Yf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,kAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,aZ),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,YZ),Yf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,SAe),Yf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,MAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,EAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,CAe),Yf),"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),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,M0),Yf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,TAe),Yf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,IAe),Yf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,$Ae),Yf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),eh),B$t),_r(pi,re(ne(Zf,1),Fe,161,0,[xf,gp,sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,QAe),Yf),"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."),C$e),eh),Uke),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,QZ),z0t),"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)."),Lo),Fi),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,QZ,KZ,n$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,KZ),z0t),"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."),f$e),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,FAe),W0t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),s$e),eh),Jke),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,JM),W0t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),a$e),ZS),ss),_r(pi,re(ne(Zf,1),Fe,161,0,[sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,BAe),I7),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),g$e),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,GAe),I7),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,zAe),I7),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,WAe),I7),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,HAe),I7),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Wv),Cee),"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."),c$e),ZS),oN),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,TS),Cee),"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."),u$e),ZS),X$e),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,IS),Cee),"Node Size Minimum"),"The minimal size to which a node can be reduced."),l$e),eh),to),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,UM),Cee),"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),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,qAe),VZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),XIe),Qr),R$e),At(sm)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,wD),VZ),"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),_i),ci),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,j0t),"font"),"Font Name"),"Font name used for a label."),eE),ot),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,B0t),"font"),"Font Size"),"Font size used for a label."),Lo),Fi),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,KAe),Mee),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),eh),to),At(gp)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,VAe),Mee),"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."),Lo),Fi),At(gp)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,NAe),Mee),"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."),w$e),Qr),qo),At(gp)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,RAe),Mee),"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."),bo),Ci),At(gp)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,qM),i2e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),b$e),ZS),eW),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,_Ae),i2e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,jAe),i2e),"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),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,See),nT),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Ge(3)),Lo),Fi),At(_t)))),ri(t,See,Eee,g$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,n2e),nT),"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."),Ge(4)),Lo),Fi),At(_t)))),ri(t,n2e,See,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,AD),nT),"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),bo),Ci),At(_t)))),ri(t,AD,I0,d$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Eee),nT),"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),eh),Sxn),At(pi)))),ri(t,Eee,I0,f$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,vD),nT),"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),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,vD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,kD),nT),"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),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,kD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,I0),nT),"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),Qr),Q$e),At(pi)))),ri(t,I0,UM,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,r2e),nT),"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),bo),Ci),At(_t)))),ri(t,r2e,I0,u$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,LAe),H0t),"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),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,DAe),H0t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),_i),ci),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,JAe),"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),bo),Ci),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,G0t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),ZIe),Qr),F$e),At(xf)))),T$(t,new Jk(v$(lC(cC(new hk,Xt),"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.'))),T$(t,new Jk(v$(lC(cC(new hk,"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.`))),T$(t,new Jk(v$(lC(cC(new hk,wc),"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."))),T$(t,new Jk(v$(lC(cC(new hk,"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."))),T$(t,new Jk(v$(lC(cC(new hk,dve),"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."))),T$(t,new Jk(v$(lC(cC(new hk,"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."))),T$(t,new Jk(v$(lC(cC(new hk,Lu),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Omt((new yze,t)),Xmt((new bze,t)),omt((new wze,t))};var tE,UIt,JIe,BT,JIt,qIt,qIe,Zx,eA,VIt,T5,VIe,I5,sy,YIe,qz,Bie,XIe,KIe,QIe,YIt,ZIe,XIt,A2,e$e,KIt,$5,Gie,X3,zie,QIt,t$e,ZIt,n$e,v2,r$e,am,i$e,o$e,s$e,k2,a$e,ay,c$e,tA,S2,l$e,$b,u$e,Vz,K3,th,d$e,e$t,f$e,t$t,n$t,h$e,g$e,Wie,Hie,Uie,Jie,m$e,Ml,GT,p$e,qie,Vie,nA,b$e,y$e,E2,w$e,nE,R5,Yie,rA,r$t,Xie,i$t,o$t,s$t,a$t,x$e,A$e,rE,v$e,Yz,k$e,S$e,Af,c$t,E$e,C$e,M$e,zT,iA,WT,iE,l$t,u$t,Xz,d$t,Kz,f$t,h$t,g$t,m$t,Err=I(cc,"CoreOptions",696);T(87,23,{3:1,34:1,23:1,87:1},f4);var nh,Cs,Ps,rh,Bu,Q3=En(cc,"Direction",87,Rn,ren,mVt),p$t;T(280,23,{3:1,34:1,23:1,280:1},l8);var Qz,P5,T$e,I$e,$$e=En(cc,"EdgeCoords",280,Rn,MZt,pVt),b$t;T(281,23,{3:1,34:1,23:1,281:1},Cq);var HT,oA,UT,R$e=En(cc,"EdgeLabelPlacement",281,Rn,MQt,bVt),y$t;T(225,23,{3:1,34:1,23:1,225:1},u8);var JT,N5,oE,Kie,Qie=En(cc,"EdgeRouting",225,Rn,TZt,yVt),w$t;T(328,23,{3:1,34:1,23:1,328:1},j$);var P$e,N$e,O$e,L$e,Zie,D$e,F$e=En(cc,"EdgeType",328,Rn,Jen,wVt),x$t;T(982,1,Bd,yze),g.tf=function(t){Omt(t)};var _$e,j$e,B$e,G$e,A$t,z$e,Z3,Crr=I(cc,"FixedLayouterOptions",982);T(983,1,{},jje),g.uf=function(){var t;return t=new Vje,t},g.vf=function(t){};var Mrr=I(cc,"FixedLayouterOptions/FixedFactory",983);T(348,23,{3:1,34:1,23:1,348:1},Mq);var mp,Zz,eN,W$e=En(cc,"HierarchyHandling",348,Rn,IQt,xVt),v$t,Sxn=ni(cc,"ITopdownSizeApproximator");T(293,23,{3:1,34:1,23:1,293:1},d8);var mg,Rb,O5,L5,k$t=En(cc,"LabelSide",293,Rn,IZt,AVt),S$t;T(96,23,{3:1,34:1,23:1,96:1},iv);var cm,Jd,fd,qd,gu,Vd,hd,pg,Yd,ss=En(cc,"NodeLabelPlacement",96,Rn,Ktn,vVt),E$t;T(260,23,{3:1,34:1,23:1,260:1},h4);var H$e,tN,Pb,U$e,D5,nN=En(cc,"PortAlignment",260,Rn,yen,kVt),C$t;T(103,23,{3:1,34:1,23:1,103:1},B$);var cy,Oa,bg,qT,ih,Nb,J$e=En(cc,"PortConstraints",103,Rn,Yen,SVt),M$t;T(282,23,{3:1,34:1,23:1,282:1},G$);var rN,iN,lm,F5,Ob,sE,eW=En(cc,"PortLabelPlacement",282,Rn,Xen,EVt),T$t;T(64,23,{3:1,34:1,23:1,64:1},g4);var un,rn,Gu,zu,Fc,vc,oh,Xd,ul,el,Va,dl,_c,jc,Kd,mu,pu,gd,kn,Ys,on,qo=En(cc,"PortSide",64,Rn,ien,MVt),I$t;T(986,1,Bd,wze),g.tf=function(t){omt(t)};var $$t,R$t,q$e,P$t,N$t,Trr=I(cc,"RandomLayouterOptions",986);T(987,1,{},Bje),g.uf=function(){var t;return t=new Qje,t},g.vf=function(t){};var Irr=I(cc,"RandomLayouterOptions/RandomFactory",987);T(301,23,{3:1,34:1,23:1,301:1},Tq);var _5,eoe,V$e,Y$e=En(cc,"ShapeCoords",301,Rn,CQt,CVt),O$t;T(381,23,{3:1,34:1,23:1,381:1},f8);var sA,j5,B5,ly,oN=En(cc,"SizeConstraint",381,Rn,$Zt,TVt),L$t;T(267,23,{3:1,34:1,23:1,267:1},ov);var G5,tW,VT,toe,z5,sN,nW,rW,iW,X$e=En(cc,"SizeOptions",267,Rn,inn,IVt),D$t;T(283,23,{3:1,34:1,23:1,283:1},Iq);var aA,K$e,oW,Q$e=En(cc,"TopdownNodeTypes",283,Rn,TQt,$Vt),F$t;T(290,23,R7);var Z$e,noe,eRe,tRe,W5=En(cc,"TopdownSizeApproximator",290,Rn,RZt,RVt);T(978,290,R7,GZe),g.Sg=function(t){return _ut(t)};var $rr=En(cc,"TopdownSizeApproximator/1",978,W5,null,null);T(979,290,R7,Met),g.Sg=function(t){var n,o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se,le,pe,Re,Ie,tt,wt,xt,Bt;for(n=d(Pe(t,(Gn(),rA)),144),tt=(jp(),D=new p$,D),UL(tt,t),wt=new Cn,h=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));h.e!=h.i.gc();)a=d(bn(h),19),le=(O=new p$,O),EB(le,tt),UL(le,a),Bt=_ut(a),Jy(le,m.Math.max(a.g,Bt.a),m.Math.max(a.f,Bt.b)),Nc(wt.f,a,le);for(l=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));l.e!=l.i.gc();)for(a=d(bn(l),19),C=new fn((!a.e&&(a.e=new Rt(zr,a,7,4)),a.e));C.e!=C.i.gc();)k=d(bn(C),74),Re=d(Gs(xs(wt.f,a)),19),Ie=d(Qt(wt,ue((!k.c&&(k.c=new Rt(Mn,k,5,8)),k.c),0)),19),pe=($=new oJ,$),jn((!pe.b&&(pe.b=new Rt(Mn,pe,4,7)),pe.b),Re),jn((!pe.c&&(pe.c=new Rt(Mn,pe,5,8)),pe.c),Ie),SB(pe,Zr(Re)),UL(pe,k);U=d(j4(n.f),207);try{U.kf(tt,new iJ),mme(n.f,U)}catch(Ft){throw Ft=ki(Ft),fe(Ft,102)?(G=Ft,Q(G)):Q(Ft)}return Cu(tt,eA)||Cu(tt,Zx)||bQ(tt),A=he(be(Pe(tt,eA))),w=he(be(Pe(tt,Zx))),b=A/w,o=he(be(Pe(tt,iA)))*m.Math.sqrt((!tt.a&&(tt.a=new Le(Dn,tt,10,11)),tt.a).i),xt=d(Pe(tt,th),100),se=xt.b+xt.c+1,te=xt.d+xt.a+1,new We(m.Math.max(se,o),m.Math.max(te,o/b))};var Rrr=En(cc,"TopdownSizeApproximator/2",979,W5,null,null);T(980,290,R7,ent),g.Sg=function(t){var n,o,a,l,h,b;return o=he(be(Pe(t,(Gn(),iA)))),n=o/he(be(Pe(t,zT))),a=hbn(t),h=d(Pe(t,th),100),l=he(be(et(Af))),Zr(t)&&(l=he(be(Pe(Zr(t),Af)))),b=Ng(new We(o,n),a),Mr(b,new We(-(h.b+h.c)-l,-(h.d+h.a)-l))};var Prr=En(cc,"TopdownSizeApproximator/3",980,W5,null,null);T(981,290,R7,Tet),g.Sg=function(t){var n,o,a,l,h,b,w,A,k,C;for(b=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));b.e!=b.i.gc();)h=d(bn(b),19),Pe(h,(Gn(),Kz))!=null&&(!h.a&&(h.a=new Le(Dn,h,10,11)),!!h.a)&&(!h.a&&(h.a=new Le(Dn,h,10,11)),h.a).i>0?(o=d(Pe(h,Kz),525),C=o.Sg(h),k=d(Pe(h,th),100),Jy(h,m.Math.max(h.g,C.a+k.b+k.c),m.Math.max(h.f,C.b+k.d+k.a))):(!h.a&&(h.a=new Le(Dn,h,10,11)),h.a).i!=0&&Jy(h,he(be(Pe(h,iA))),he(be(Pe(h,iA)))/he(be(Pe(h,zT))));n=d(Pe(t,(Gn(),rA)),144),A=d(j4(n.f),207);try{A.kf(t,new iJ),mme(n.f,A)}catch($){throw $=ki($),fe($,102)?(w=$,Q(w)):Q($)}return or(t,tE,rT),Vrt(t),bQ(t),l=he(be(Pe(t,eA))),a=he(be(Pe(t,Zx))),new We(l,a)};var Nrr=En(cc,"TopdownSizeApproximator/4",981,W5,null,null),_$t;T(346,1,{861:1},wk),g.Tg=function(t,n){return Qdt(this,t,n)},g.Ug=function(){Cft(this)},g.Vg=function(){return this.q},g.Wg=function(){return this.f?w9(this.f):null},g.Xg=function(){return w9(this.a)},g.Yg=function(){return this.p},g.Zg=function(){return!1},g.$g=function(){return this.n},g._g=function(){return this.p!=null&&!this.b},g.ah=function(t){var n;this.n&&(n=t,Ve(this.f,n))},g.bh=function(t,n){var o,a;this.n&&t&&qQt(this,(o=new Jet,a=XK(o,t),t0n(o),a),(Cj(),ioe))},g.dh=function(t){var n;return this.b?null:(n=Ltn(this,this.g),ir(this.a,n),n.i=this,this.d=t,n)},g.eh=function(t){t>0&&!this.b&&dbe(this,t)},g.b=!1,g.c=0,g.d=-1,g.e=null,g.f=null,g.g=-1,g.j=!1,g.k=!1,g.n=!1,g.o=0,g.q=0,g.r=0;var Orr=I(ga,"BasicProgressMonitor",346);T(713,207,G1,Gje),g.kf=function(t,n){gpt(t,n)};var Lrr=I(ga,"BoxLayoutProvider",713);T(974,1,tr,SUe),g.Le=function(t,n){return Qhn(this,d(t,19),d(n,19))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)},g.a=!1;var Drr=I(ga,"BoxLayoutProvider/1",974);T(168,1,{168:1},rj,rQe),g.Ib=function(){return this.c?iwe(this.c):Hf(this.b)};var Frr=I(ga,"BoxLayoutProvider/Group",168);T(327,23,{3:1,34:1,23:1,327:1},h8);var nRe,rRe,iRe,roe,oRe=En(ga,"BoxLayoutProvider/PackingMode",327,Rn,PZt,PVt),j$t;T(975,1,tr,zje),g.Le=function(t,n){return QXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var _rr=I(ga,"BoxLayoutProvider/lambda$0$Type",975);T(976,1,tr,Wje),g.Le=function(t,n){return GXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var jrr=I(ga,"BoxLayoutProvider/lambda$1$Type",976);T(977,1,tr,Hje),g.Le=function(t,n){return zXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var Brr=I(ga,"BoxLayoutProvider/lambda$2$Type",977);T(1350,1,{837:1},Uje),g.Lg=function(t,n){return F_(),!fe(n,176)||cVe((rS(),d(t,176)),n)};var Grr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350);T(1351,1,mn,EUe),g.Ad=function(t){Jrn(this.a,d(t,149))};var zrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351);T(1352,1,mn,Jje),g.Ad=function(t){d(t,105),F_()};var Wrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352);T(1356,1,mn,CUe),g.Ad=function(t){ynn(this.a,d(t,105))};var Hrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356);T(1354,1,Xn,VYe),g.Mb=function(t){return $rn(this.a,this.b,d(t,149))};var Urr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354);T(1353,1,Xn,YYe),g.Mb=function(t){return TUt(this.a,this.b,d(t,837))};var Jrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353);T(1355,1,mn,XYe),g.Ad=function(t){LYt(this.a,this.b,d(t,149))};var qrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355);T(939,1,{},qje),g.Kb=function(t){return YXe(t)},g.Fb=function(t){return this===t};var Vrr=I(ga,"ElkUtil/lambda$0$Type",939);T(940,1,mn,KYe),g.Ad=function(t){Zdn(this.a,this.b,d(t,74))},g.a=0,g.b=0;var Yrr=I(ga,"ElkUtil/lambda$1$Type",940);T(941,1,mn,QYe),g.Ad=function(t){Rzt(this.a,this.b,d(t,171))},g.a=0,g.b=0;var Xrr=I(ga,"ElkUtil/lambda$2$Type",941);T(942,1,mn,ZYe),g.Ad=function(t){SHt(this.a,this.b,d(t,158))},g.a=0,g.b=0;var Krr=I(ga,"ElkUtil/lambda$3$Type",942);T(943,1,mn,MUe),g.Ad=function(t){rYt(this.a,d(t,373))};var Qrr=I(ga,"ElkUtil/lambda$4$Type",943);T(332,1,{34:1,332:1},f$),g.Dd=function(t){return XHt(this,d(t,245))},g.Fb=function(t){var n;return fe(t,332)?(n=d(t,332),this.a==n.a):!1},g.Hb=function(){return $o(this.a)},g.Ib=function(){return this.a+" (exclusive)"},g.a=0;var Zrr=I(ga,"ExclusiveBounds/ExclusiveLowerBound",332);T(1100,207,G1,Vje),g.kf=function(t,n){var o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se,le,pe,Re,Ie,tt,wt,xt;for(n.Tg("Fixed Layout",1),h=d(Pe(t,(Gn(),KIe)),225),$=0,O=0,le=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));le.e!=le.i.gc();){for(te=d(bn(le),19),xt=d(Pe(te,(Mj(),Z3)),8),xt&&(vu(te,xt.a,xt.b),d(Pe(te,j$e),185).Gc((Ul(),sA))&&(D=d(Pe(te,G$e),8),D.a>0&&D.b>0&&k0(te,D.a,D.b,!0,!0))),$=m.Math.max($,te.i+te.g),O=m.Math.max(O,te.j+te.f),k=new fn((!te.n&&(te.n=new Le(Xs,te,1,7)),te.n));k.e!=k.i.gc();)w=d(bn(k),158),xt=d(Pe(w,Z3),8),xt&&vu(w,xt.a,xt.b),$=m.Math.max($,te.i+w.i+w.g),O=m.Math.max(O,te.j+w.j+w.f);for(Ie=new fn((!te.c&&(te.c=new Le(Tl,te,9,9)),te.c));Ie.e!=Ie.i.gc();)for(Re=d(bn(Ie),127),xt=d(Pe(Re,Z3),8),xt&&vu(Re,xt.a,xt.b),tt=te.i+Re.i,wt=te.j+Re.j,$=m.Math.max($,tt+Re.g),O=m.Math.max(O,wt+Re.f),A=new fn((!Re.n&&(Re.n=new Le(Xs,Re,1,7)),Re.n));A.e!=A.i.gc();)w=d(bn(A),158),xt=d(Pe(w,Z3),8),xt&&vu(w,xt.a,xt.b),$=m.Math.max($,tt+w.i+w.g),O=m.Math.max(O,wt+w.j+w.f);for(l=new Yt(tn(Yg(te).a.Jc(),new j));xn(l);)o=d(dn(l),74),C=$bt(o),$=m.Math.max($,C.a),O=m.Math.max(O,C.b);for(a=new Yt(tn(AB(te).a.Jc(),new j));xn(a);)o=d(dn(a),74),Zr(kK(o))!=t&&(C=$bt(o),$=m.Math.max($,C.a),O=m.Math.max(O,C.b))}if(h==(qg(),JT))for(se=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));se.e!=se.i.gc();)for(te=d(bn(se),19),a=new Yt(tn(Yg(te).a.Jc(),new j));xn(a);)o=d(dn(a),74),b=Qpn(o),b.b==0?or(o,v2,null):or(o,v2,b);it(rt(Pe(t,(Mj(),B$e))))||(pe=d(Pe(t,A$t),100),U=$+pe.b+pe.c,G=O+pe.d+pe.a,k0(t,U,G,!0,!0)),n.Ug()};var eir=I(ga,"FixedLayoutProvider",1100);T(380,151,{3:1,419:1,380:1,105:1,151:1},rJ,tst),g.ag=function(t){var n,o,a,l,h,b,w,A,k;if(t)try{for(A=xx(t,";,;"),h=A,b=0,w=h.length;b<w;++b){if(l=h[b],o=xx(l,"\\:"),a=Fwe(SR(),o[0]),!a)throw Q(new Vt("Invalid option id: "+o[0]));if(k=Lwe(a,o[1]),k==null)throw Q(new Vt("Invalid option value: "+o[1]));k==null?(!this.q&&(this.q=new Cn),Xk(this.q,a)):(!this.q&&(this.q=new Cn),cr(this.q,a,k))}}catch(C){throw C=ki(C),fe(C,102)?(n=C,Q(new Wct(n))):Q(C)}},g.Ib=function(){var t;return t=Jn(il(nc((this.q?this.q:(Pt(),Pt(),dg)).vc().Mc(),new Yje),utn(new xZe,new Lr,new Ue,new Wt,re(ne(Dc,1),Fe,132,0,[])))),t};var B$t=I(ga,"IndividualSpacings",380);T(973,1,{},Yje),g.Kb=function(t){return KXt(d(t,45))};var tir=I(ga,"IndividualSpacings/lambda$0$Type",973);T(715,1,{},ret),g.c=0;var nir=I(ga,"InstancePool",715);T(1833,1,{},Xje);var rir=I(ga,"LoggedGraph",1833);T(412,23,{3:1,34:1,23:1,412:1},g8);var sRe,ioe,aRe,cRe,G$t=En(ga,"LoggedGraph/Type",412,Rn,NZt,NVt),z$t;T(621,1,{861:1},iJ),g.Tg=function(t,n){return!1},g.Ug=function(){},g.Vg=function(){return 0},g.Wg=function(){return null},g.Xg=function(){return null},g.Yg=function(){return null},g.Zg=function(){return!1},g.$g=function(){return!1},g._g=function(){return!1},g.ah=function(t){},g.bh=function(t,n){},g.dh=function(t){return this},g.eh=function(t){};var iir=I(ga,"NullElkProgressMonitor",621);T(49,1,{22:1,49:1},Kje,Uo),g.Ic=function(t){Mo(this,t)},g.Fb=function(t){var n,o,a;return fe(t,49)?(o=d(t,49),n=this.a==null?o.a==null:Er(this.a,o.a),a=this.b==null?o.b==null:Er(this.b,o.b),n&&a):!1},g.Hb=function(){var t,n,o,a,l,h;return o=this.a==null?0:Wr(this.a),t=o&Li,n=o&-65536,h=this.b==null?0:Wr(this.b),a=h&Li,l=h&-65536,t^l>>16&Li|n^a<<16},g.Jc=function(){return new TUe(this)},g.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Ds(this.b)+")":this.b==null?"pair("+Ds(this.a)+",null)":"pair("+Ds(this.a)+","+Ds(this.b)+")"};var oir=I(ga,"Pair",49);T(988,1,co,TUe),g.Nb=function(t){ko(this,t)},g.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},g.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 Q(new js)},g.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Q(new Hc)},g.b=!1,g.c=!1;var sir=I(ga,"Pair/1",988);T(1089,207,G1,Qje),g.kf=function(t,n){var o,a,l,h,b;if(n.Tg("Random Layout",1),(!t.a&&(t.a=new Le(Dn,t,10,11)),t.a).i==0){n.Ug();return}h=d(Pe(t,($1e(),P$t)),15),h&&h.a!=0?l=new F9(h.a):l=new $X,o=JO(be(Pe(t,$$t))),b=JO(be(Pe(t,N$t))),a=d(Pe(t,R$t),100),v0n(t,l,o,b,a),n.Ug()};var air=I(ga,"RandomLayoutProvider",1089);T(243,1,{243:1},cV),g.Fb=function(t){return Ca(this.a,d(t,243).a)&&Ca(this.b,d(t,243).b)&&Ca(this.c,d(t,243).c)},g.Hb=function(){return Tj(re(ne(Wi,1),zt,1,5,[this.a,this.b,this.c]))},g.Ib=function(){return"("+this.a+ac+this.b+ac+this.c+")"};var cir=I(ga,"Triple",243),W$t;T(554,1,{}),g.Jf=function(){return new We(this.f.i,this.f.j)},g.mf=function(t){return Ktt(t,(Gn(),Ml))?Pe(this.f,H$t):Pe(this.f,t)},g.Kf=function(){return new We(this.f.g,this.f.f)},g.Lf=function(){return this.g},g.nf=function(t){return Cu(this.f,t)},g.Mf=function(t){Ga(this.f,t.a),Yc(this.f,t.b)},g.Nf=function(t){E1(this.f,t.a),S1(this.f,t.b)},g.Of=function(t){this.g=t},g.g=0;var H$t,lir=I(OP,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554);T(556,1,{845:1},p_),g.Pf=function(){var t,n;if(!this.b)for(this.b=I9(jV(this.a).i),n=new fn(jV(this.a));n.e!=n.i.gc();)t=d(bn(n),158),Ve(this.b,new LJ(t));return this.b},g.b=null;var uir=I(OP,"ElkGraphAdapters/ElkEdgeAdapter",556);T(250,554,{},Om),g.Qf=function(){return idt(this)},g.a=null;var dir=I(OP,"ElkGraphAdapters/ElkGraphAdapter",250);T(637,554,{190:1},LJ);var fir=I(OP,"ElkGraphAdapters/ElkLabelAdapter",637);T(555,554,{692:1},$8),g.Pf=function(){return xan(this)},g.Tf=function(){var t;return t=d(Pe(this.f,(Gn(),am)),125),!t&&(t=new m$),t},g.Vf=function(){return Aan(this)},g.Xf=function(t){var n;n=new sV(t),or(this.f,(Gn(),am),n)},g.Yf=function(t){or(this.f,(Gn(),th),new gge(t))},g.Rf=function(){return this.d},g.Sf=function(){var t,n;if(!this.a)for(this.a=new qe,n=new Yt(tn(AB(d(this.f,19)).a.Jc(),new j));xn(n);)t=d(dn(n),74),Ve(this.a,new p_(t));return this.a},g.Uf=function(){var t,n;if(!this.c)for(this.c=new qe,n=new Yt(tn(Yg(d(this.f,19)).a.Jc(),new j));xn(n);)t=d(dn(n),74),Ve(this.c,new p_(t));return this.c},g.Wf=function(){return b9(d(this.f,19)).i!=0||it(rt(d(this.f,19).mf((Gn(),$5))))},g.Zf=function(){mtn(this,(Bp(),W$t))},g.a=null,g.b=null,g.c=null,g.d=null,g.e=null;var hir=I(OP,"ElkGraphAdapters/ElkNodeAdapter",555);T(1261,554,{844:1},IUe),g.Pf=function(){return Tan(this)},g.Sf=function(){var t,n;if(!this.a)for(this.a=Vh(d(this.f,127).gh().i),n=new fn(d(this.f,127).gh());n.e!=n.i.gc();)t=d(bn(n),74),Ve(this.a,new p_(t));return this.a},g.Uf=function(){var t,n;if(!this.c)for(this.c=Vh(d(this.f,127).hh().i),n=new fn(d(this.f,127).hh());n.e!=n.i.gc();)t=d(bn(n),74),Ve(this.c,new p_(t));return this.c},g.$f=function(){return d(d(this.f,127).mf((Gn(),E2)),64)},g._f=function(){var t,n,o,a,l,h,b,w;for(a=Lf(d(this.f,127)),o=new fn(d(this.f,127).hh());o.e!=o.i.gc();)for(t=d(bn(o),74),w=new fn((!t.c&&(t.c=new Rt(Mn,t,5,8)),t.c));w.e!=w.i.gc();){if(b=d(bn(w),83),tx(gs(b),a))return!0;if(gs(b)==a&&it(rt(Pe(t,(Gn(),Gie)))))return!0}for(n=new fn(d(this.f,127).gh());n.e!=n.i.gc();)for(t=d(bn(n),74),h=new fn((!t.b&&(t.b=new Rt(Mn,t,4,7)),t.b));h.e!=h.i.gc();)if(l=d(bn(h),83),tx(gs(l),a))return!0;return!1},g.a=null,g.b=null,g.c=null;var gir=I(OP,"ElkGraphAdapters/ElkPortAdapter",1261);T(1262,1,tr,Zje),g.Le=function(t,n){return Hmn(d(t,127),d(n,127))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var mir=I(OP,"ElkGraphAdapters/PortComparator",1262),Lb=ni(Du,"EObject"),YT=ni(qv,q0t),bu=ni(qv,V0t),H5=ni(qv,Y0t),U5=ni(qv,"ElkShape"),Mn=ni(qv,X0t),zr=ni(qv,s2e),Vr=ni(qv,K0t),J5=ni(Du,Q0t),aN=ni(Du,"EFactory"),U$t,ooe=ni(Du,Z0t),vf=ni(Du,"EPackage"),no,J$t,q$t,lRe,sW,V$t,uRe,dRe,fRe,yg,Y$t,X$t,Xs=ni(qv,a2e),Dn=ni(qv,c2e),Tl=ni(qv,l2e);T(94,1,ewt),g.qh=function(){return this.rh(),null},g.rh=function(){return null},g.sh=function(){return this.rh(),!1},g.th=function(){return!1},g.uh=function(t){kr(this,t)};var pir=I(PS,"BasicNotifierImpl",94);T(101,94,iwt),g.Vh=function(){return Ll(this)},g.vh=function(t,n){return t},g.wh=function(){throw Q(new Hn)},g.xh=function(t){var n;return n=Ko(d(jt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,n.n,n.f,t)},g.yh=function(t,n){throw Q(new Hn)},g.zh=function(t,n,o){return lu(this,t,n,o)},g.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},g.Bh=function(){return LK(this)},g.Ch=function(){throw Q(new Hn)},g.Dh=function(){var t,n;return n=this.Xh().Mk(),!n&&this.wh().Rk(n=($$(),t=$me(vh(this.Ah())),t==null?hoe:new x4(this,t))),n},g.Eh=function(t,n){return t},g.Fh=function(t){var n;return n=t.nk(),n?t.Jj():ei(this.Ah(),t)},g.Gh=function(){var t;return t=this.wh(),t?t.Ok():null},g.Hh=function(){return this.wh()?this.wh().Lk():null},g.Ih=function(t,n,o){return Xj(this,t,n,o)},g.Jh=function(t){return jC(this,t)},g.Kh=function(t,n){return wY(this,t,n)},g.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},g.Mh=function(){throw Q(new Hn)},g.Nh=function(){return Uj(this)},g.Oh=function(t,n,o,a){return lS(this,t,n,a)},g.Ph=function(t,n,o){var a;return a=d(jt(this.Ah(),n),69),a.uk().xk(this,this.ei(),n-this.gi(),t,o)},g.Qh=function(t,n,o,a){return v9(this,t,n,a)},g.Rh=function(t,n,o){var a;return a=d(jt(this.Ah(),n),69),a.uk().yk(this,this.ei(),n-this.gi(),t,o)},g.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},g.Th=function(t){return UX(this,t)},g.Uh=function(t){return hnt(this,t)},g.Wh=function(t){return fbt(this,t)},g.Xh=function(){throw Q(new Hn)},g.Yh=function(){return this.wh()?this.wh().Nk():null},g.Zh=function(){return Uj(this)},g.$h=function(t,n){$K(this,t,n)},g._h=function(t){this.Xh().Qk(t)},g.ai=function(t){this.Xh().Tk(t)},g.bi=function(t){this.Xh().Sk(t)},g.ci=function(t,n){var o,a,l,h;return h=this.Gh(),h&&t&&(n=Go(h.Cl(),this,n),h.Gl(this)),a=this.Mh(),a&&((qK(this,this.Mh(),this.Ch()).Bb&Jo)!=0?(l=a.Nh(),l&&(t?!h&&l.Gl(this):l.Fl(this))):(n=(o=this.Ch(),o>=0?this.xh(n):this.Mh().Qh(this,-1-o,null,n)),n=this.zh(null,-1,n))),this.ai(t),n},g.di=function(t){var n,o,a,l,h,b,w,A;if(o=this.Ah(),h=ei(o,t),n=this.gi(),h>=n)return d(t,69).uk().Bk(this,this.ei(),h-n);if(h<=-1)if(b=_v((Kc(),So),o,t),b){if(Xo(),d(b,69).vk()||(b=qk(vs(So,b))),l=(a=this.Fh(b),d(a>=0?this.Ih(a,!0,!0):x0(this,b,!0),164)),A=b.Gk(),A>1||A==-1)return d(d(l,222).Ql(t,!1),78)}else throw Q(new Vt(bb+t.ve()+Tee));else if(t.Hk())return a=this.Fh(t),d(a>=0?this.Ih(a,!1,!0):x0(this,t,!1),78);return w=new AXe(this,t),w},g.ei=function(){return _pe(this)},g.fi=function(){return(Jp(),Kt).S},g.gi=function(){return vn(this.fi())},g.hi=function(t){MK(this,t)},g.Ib=function(){return Fd(this)};var bir=I(en,"BasicEObjectImpl",101),K$t;T(118,101,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1}),g.ii=function(t){var n;return n=Fpe(this),n[t]},g.ji=function(t,n){var o;o=Fpe(this),yi(o,t,n)},g.ki=function(t){var n;n=Fpe(this),yi(n,t,null)},g.qh=function(){return d(nn(this,4),131)},g.rh=function(){throw Q(new Hn)},g.sh=function(){return(this.Db&4)!=0},g.wh=function(){throw Q(new Hn)},g.li=function(t){sS(this,2,t)},g.yh=function(t,n){this.Db=n<<16|this.Db&255,this.li(t)},g.Ah=function(){return Ic(this)},g.Ch=function(){return this.Db>>16},g.Dh=function(){var t,n;return $$(),n=$me(vh((t=d(nn(this,16),29),t||this.fi()))),n==null?hoe:new x4(this,n)},g.th=function(){return(this.Db&1)==0},g.Gh=function(){return d(nn(this,128),2013)},g.Hh=function(){return d(nn(this,16),29)},g.Lh=function(){return(this.Db&32)!=0},g.Mh=function(){return d(nn(this,2),52)},g.Sh=function(){return(this.Db&64)!=0},g.Xh=function(){throw Q(new Hn)},g.Yh=function(){return d(nn(this,64),291)},g._h=function(t){sS(this,16,t)},g.ai=function(t){sS(this,128,t)},g.bi=function(t){sS(this,64,t)},g.ei=function(){return bc(this)},g.Db=0;var yir=I(en,"MinimalEObjectImpl",118);T(119,118,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.li=function(t){this.Cb=t},g.Mh=function(){return this.Cb};var wir=I(en,"MinimalEObjectImpl/Container",119);T(2062,119,{110:1,344:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return Z1e(this,t,n,o)},g.Rh=function(t,n,o){return zye(this,t,n,o)},g.Th=function(t){return Hme(this,t)},g.$h=function(t,n){_be(this,t,n)},g.fi=function(){return wa(),X$t},g.hi=function(t){Mbe(this,t)},g.lf=function(){return Sut(this)},g.fh=function(){return!this.o&&(this.o=new Vc((wa(),yg),pp,this,0)),this.o},g.mf=function(t){return Pe(this,t)},g.nf=function(t){return Cu(this,t)},g.of=function(t,n){return or(this,t,n)};var xir=I(H1,"EMapPropertyHolderImpl",2062);T(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},s_),g.Ih=function(t,n,o){switch(t){case 0:return this.a;case 1:return this.b}return Xj(this,t,n,o)},g.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return UX(this,t)},g.$h=function(t,n){switch(t){case 0:oj(this,he(be(n)));return;case 1:ij(this,he(be(n)));return}$K(this,t,n)},g.fi=function(){return wa(),J$t},g.hi=function(t){switch(t){case 0:oj(this,0);return;case 1:ij(this,0);return}MK(this,t)},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (x: ",ev(t,this.a),t.a+=", y: ",ev(t,this.b),t.a+=")",t.a)},g.a=0,g.b=0;var Air=I(H1,"ElkBendPointImpl",566);T(734,2062,{110:1,344:1,176:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return i1e(this,t,n,o)},g.Ph=function(t,n,o){return wK(this,t,n,o)},g.Rh=function(t,n,o){return nX(this,t,n,o)},g.Th=function(t){return xbe(this,t)},g.$h=function(t,n){yye(this,t,n)},g.fi=function(){return wa(),V$t},g.hi=function(t){e1e(this,t)},g.ih=function(){return this.k},g.jh=function(){return jV(this)},g.Ib=function(){return IX(this)},g.k=null;var vir=I(H1,"ElkGraphElementImpl",734);T(735,734,{110:1,344:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return p1e(this,t,n,o)},g.Th=function(t){return C1e(this,t)},g.$h=function(t,n){wye(this,t,n)},g.fi=function(){return wa(),Y$t},g.hi=function(t){M1e(this,t)},g.kh=function(){return this.f},g.lh=function(){return this.g},g.mh=function(){return this.i},g.nh=function(){return this.j},g.oh=function(t,n){Jy(this,t,n)},g.ph=function(t,n){vu(this,t,n)},g.Ib=function(){return EK(this)},g.f=0,g.g=0,g.i=0,g.j=0;var kir=I(H1,"ElkShapeImpl",735);T(736,735,{110:1,344:1,83:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return q1e(this,t,n,o)},g.Ph=function(t,n,o){return fye(this,t,n,o)},g.Rh=function(t,n,o){return hye(this,t,n,o)},g.Th=function(t){return Pbe(this,t)},g.$h=function(t,n){C0e(this,t,n)},g.fi=function(){return wa(),q$t},g.hi=function(t){z1e(this,t)},g.gh=function(){return!this.d&&(this.d=new Rt(zr,this,8,5)),this.d},g.hh=function(){return!this.e&&(this.e=new Rt(zr,this,7,4)),this.e};var Sir=I(H1,"ElkConnectableShapeImpl",736);T(273,734,{110:1,344:1,74:1,176:1,273:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},oJ),g.xh=function(t){return cye(this,t)},g.Ih=function(t,n,o){switch(t){case 3:return Vw(this);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),this.a;case 7:return Ut(),!this.b&&(this.b=new Rt(Mn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i<=1));case 8:return Ut(),!!tP(this);case 9:return Ut(),!!w0(this);case 10:return Ut(),!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i!=0)}return i1e(this,t,n,o)},g.Ph=function(t,n,o){var a;switch(n){case 3:return this.Cb&&(o=(a=this.Db>>16,a>=0?cye(this,o):this.Cb.Qh(this,-1-a,null,o))),Whe(this,d(t,19),o);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),sc(this.b,t,o);case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),sc(this.c,t,o);case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),sc(this.a,t,o)}return wK(this,t,n,o)},g.Rh=function(t,n,o){switch(n){case 3:return Whe(this,null,o);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),Go(this.b,t,o);case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),Go(this.c,t,o);case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),Go(this.a,t,o)}return nX(this,t,n,o)},g.Th=function(t){switch(t){case 3:return!!Vw(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 Rt(Mn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i<=1));case 8:return tP(this);case 9:return w0(this);case 10:return!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i!=0)}return xbe(this,t)},g.$h=function(t,n){switch(t){case 3:SB(this,d(n,19));return;case 4:!this.b&&(this.b=new Rt(Mn,this,4,7)),Ln(this.b),!this.b&&(this.b=new Rt(Mn,this,4,7)),gi(this.b,d(n,18));return;case 5:!this.c&&(this.c=new Rt(Mn,this,5,8)),Ln(this.c),!this.c&&(this.c=new Rt(Mn,this,5,8)),gi(this.c,d(n,18));return;case 6:!this.a&&(this.a=new Le(Vr,this,6,6)),Ln(this.a),!this.a&&(this.a=new Le(Vr,this,6,6)),gi(this.a,d(n,18));return}yye(this,t,n)},g.fi=function(){return wa(),lRe},g.hi=function(t){switch(t){case 3:SB(this,null);return;case 4:!this.b&&(this.b=new Rt(Mn,this,4,7)),Ln(this.b);return;case 5:!this.c&&(this.c=new Rt(Mn,this,5,8)),Ln(this.c);return;case 6:!this.a&&(this.a=new Le(Vr,this,6,6)),Ln(this.a);return}e1e(this,t)},g.Ib=function(){return Rpt(this)};var Eir=I(H1,"ElkEdgeImpl",273);T(446,2062,{110:1,344:1,171:1,446:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},o_),g.xh=function(t){return iye(this,t)},g.Ih=function(t,n,o){switch(t){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 Ni(bu,this,5)),this.a;case 6:return lnt(this);case 7:return n?XX(this):this.i;case 8:return n?YX(this):this.f;case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),this.e;case 11:return this.d}return Z1e(this,t,n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?iye(this,o):this.Cb.Qh(this,-1-l,null,o))),Hhe(this,d(t,74),o);case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),sc(this.g,t,o);case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),sc(this.e,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(wa(),sW)),n),69),h.uk().xk(this,bc(this),n-vn((wa(),sW)),t,o)},g.Rh=function(t,n,o){switch(n){case 5:return!this.a&&(this.a=new Ni(bu,this,5)),Go(this.a,t,o);case 6:return Hhe(this,null,o);case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),Go(this.g,t,o);case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),Go(this.e,t,o)}return zye(this,t,n,o)},g.Th=function(t){switch(t){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!!lnt(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 Hme(this,t)},g.$h=function(t,n){switch(t){case 1:l0(this,he(be(n)));return;case 2:u0(this,he(be(n)));return;case 3:a0(this,he(be(n)));return;case 4:c0(this,he(be(n)));return;case 5:!this.a&&(this.a=new Ni(bu,this,5)),Ln(this.a),!this.a&&(this.a=new Ni(bu,this,5)),gi(this.a,d(n,18));return;case 6:Cgt(this,d(n,74));return;case 7:fj(this,d(n,83));return;case 8:dj(this,d(n,83));return;case 9:!this.g&&(this.g=new Rt(Vr,this,9,10)),Ln(this.g),!this.g&&(this.g=new Rt(Vr,this,9,10)),gi(this.g,d(n,18));return;case 10:!this.e&&(this.e=new Rt(Vr,this,10,9)),Ln(this.e),!this.e&&(this.e=new Rt(Vr,this,10,9)),gi(this.e,d(n,18));return;case 11:lbe(this,Jn(n));return}_be(this,t,n)},g.fi=function(){return wa(),sW},g.hi=function(t){switch(t){case 1:l0(this,0);return;case 2:u0(this,0);return;case 3:a0(this,0);return;case 4:c0(this,0);return;case 5:!this.a&&(this.a=new Ni(bu,this,5)),Ln(this.a);return;case 6:Cgt(this,null);return;case 7:fj(this,null);return;case 8:dj(this,null);return;case 9:!this.g&&(this.g=new Rt(Vr,this,9,10)),Ln(this.g);return;case 10:!this.e&&(this.e=new Rt(Vr,this,10,9)),Ln(this.e);return;case 11:lbe(this,null);return}Mbe(this,t)},g.Ib=function(){return Fht(this)},g.b=0,g.c=0,g.d=null,g.j=0,g.k=0;var Cir=I(H1,"ElkEdgeSectionImpl",446);T(162,119,{110:1,95:1,94:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),g.Ih=function(t,n,o){var a;return t==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab):Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l;return n==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o)):(l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().xk(this,bc(this),n-vn(this.fi()),t,o))},g.Rh=function(t,n,o){var a,l;return n==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o)):(l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o))},g.Th=function(t){var n;return t==0?!!this.Ab&&this.Ab.i!=0:Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.Wh=function(t){return Hwe(this,t)},g.$h=function(t,n){var o;if(t===0){!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.ai=function(t){sS(this,128,t)},g.fi=function(){return Nt(),pRt},g.hi=function(t){var n;if(t===0){!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){this.Bb|=1},g.ni=function(t){return cP(this,t)},g.Bb=0;var Mir=I(en,"EModelElementImpl",162);T(717,162,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},Wue),g.oi=function(t,n){return obt(this,t,n)},g.pi=function(t){var n,o,a,l,h;if(this.a!=iu(t)||(t.Bb&256)!=0)throw Q(new Vt($ee+t.zb+L0));for(a=Rs(t);Ma(a.a).i!=0;){if(o=d(eD(a,0,(n=d(ue(Ma(a.a),0),88),h=n.c,fe(h,89)?d(h,29):(Nt(),yd))),29),y0(o))return l=iu(o).ti().pi(o),d(l,52)._h(t),l;a=Rs(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new BZe(t):new $ge(t)},g.qi=function(t,n){return S0(this,t,n)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.a}return Mu(this,t-vn((Nt(),jb)),jt((a=d(nn(this,16),29),a||jb),t),n,o)},g.Ph=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 1:return this.a&&(o=d(this.a,52).Qh(this,4,vf,o)),Kbe(this,d(t,244),o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),jb)),n),69),l.uk().xk(this,bc(this),n-vn((Nt(),jb)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 1:return Kbe(this,null,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),jb)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),jb)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Eu(this,t-vn((Nt(),jb)),jt((n=d(nn(this,16),29),n||jb),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:dft(this,d(n,244));return}Nu(this,t-vn((Nt(),jb)),jt((o=d(nn(this,16),29),o||jb),t),n)},g.fi=function(){return Nt(),jb},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:dft(this,null);return}Pu(this,t-vn((Nt(),jb)),jt((n=d(nn(this,16),29),n||jb),t))};var cN,hRe,Q$t,Tir=I(en,"EFactoryImpl",717);T(1029,717,{110:1,2092:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},tBe),g.oi=function(t,n){switch(t.fk()){case 12:return d(n,149).Og();case 13:return Ds(n);default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h,b,w,A;switch(t.G==-1&&(t.G=(n=iu(t),n?ep(n.si(),t):-1)),t.G){case 4:return h=new _ue,h;case 6:return b=new p$,b;case 7:return w=new Lde,w;case 8:return a=new oJ,a;case 9:return o=new s_,o;case 10:return l=new o_,l;case 11:return A=new nBe,A;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){switch(t.fk()){case 13:case 12:return null;default:throw Q(new Vt(iT+t.ve()+L0))}};var Iir=I(H1,"ElkGraphFactoryImpl",1029);T(444,162,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),g.Dh=function(){var t,n;return n=(t=d(nn(this,16),29),$me(vh(t||this.fi()))),n==null?($$(),$$(),hoe):new oQe(this,n)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.ve()}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:this.ri(Jn(n));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),bRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:this.ri(null);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.ve=function(){return this.zb},g.ri=function(t){oc(this,t)},g.Ib=function(){return LR(this)},g.zb=null;var $ir=I(en,"ENamedElementImpl",444);T(187,444,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},Gtt),g.xh=function(t){return xdt(this,t)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,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 Hw(this,kf,this)),this.rb;case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?d(this.Cb,244):null:ynt(this)}return Mu(this,t-vn((Nt(),xp)),jt((a=d(nn(this,16),29),a||xp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 4:return this.sb&&(o=d(this.sb,52).Qh(this,1,aN,o)),t1e(this,d(t,472),o);case 5:return!this.rb&&(this.rb=new Hw(this,kf,this)),sc(this.rb,t,o);case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),sc(this.vb,t,o);case 7:return this.Cb&&(o=(l=this.Db>>16,l>=0?xdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,7,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),xp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),xp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 4:return t1e(this,null,o);case 5:return!this.rb&&(this.rb=new Hw(this,kf,this)),Go(this.rb,t,o);case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),Go(this.vb,t,o);case 7:return lu(this,null,7,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),xp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),xp)),t,o)},g.Th=function(t){var n;switch(t){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!!ynt(this)}return Eu(this,t-vn((Nt(),xp)),jt((n=d(nn(this,16),29),n||xp),t))},g.Wh=function(t){var n;return n=cgn(this,t),n||Hwe(this,t)},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:bj(this,Jn(n));return;case 3:pj(this,Jn(n));return;case 4:SK(this,d(n,472));return;case 5:!this.rb&&(this.rb=new Hw(this,kf,this)),Ln(this.rb),!this.rb&&(this.rb=new Hw(this,kf,this)),gi(this.rb,d(n,18));return;case 6:!this.vb&&(this.vb=new Lk(vf,this,6,7)),Ln(this.vb),!this.vb&&(this.vb=new Lk(vf,this,6,7)),gi(this.vb,d(n,18));return}Nu(this,t-vn((Nt(),xp)),jt((o=d(nn(this,16),29),o||xp),t),n)},g.bi=function(t){var n,o;if(t&&this.rb)for(o=new fn(this.rb);o.e!=o.i.gc();)n=bn(o),fe(n,361)&&(d(n,361).w=null);sS(this,64,t)},g.fi=function(){return Nt(),xp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:bj(this,null);return;case 3:pj(this,null);return;case 4:SK(this,null);return;case 5:!this.rb&&(this.rb=new Hw(this,kf,this)),Ln(this.rb);return;case 6:!this.vb&&(this.vb=new Lk(vf,this,6,7)),Ln(this.vb);return}Pu(this,t-vn((Nt(),xp)),jt((n=d(nn(this,16),29),n||xp),t))},g.mi=function(){lK(this)},g.si=function(){return!this.rb&&(this.rb=new Hw(this,kf,this)),this.rb},g.ti=function(){return this.sb},g.ui=function(){return this.ub},g.vi=function(){return this.xb},g.wi=function(){return this.yb},g.xi=function(t){this.ub=t},g.Ib=function(){var t;return(this.Db&64)!=0?LR(this):(t=new Zu(LR(this)),t.a+=" (nsURI: ",ds(t,this.yb),t.a+=", nsPrefix: ",ds(t,this.xb),t.a+=")",t.a)},g.xb=null,g.yb=null;var Z$t,Rir=I(en,"EPackageImpl",187);T(563,187,{110:1,2094:1,563:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},Uht),g.q=!1,g.r=!1;var eRt=!1,Pir=I(H1,"ElkGraphPackageImpl",563);T(363,735,{110:1,344:1,176:1,158:1,278:1,363:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},_ue),g.xh=function(t){return oye(this,t)},g.Ih=function(t,n,o){switch(t){case 7:return Lme(this);case 8:return this.a}return p1e(this,t,n,o)},g.Ph=function(t,n,o){var a;return n===7?(this.Cb&&(o=(a=this.Db>>16,a>=0?oye(this,o):this.Cb.Qh(this,-1-a,null,o))),Hge(this,d(t,176),o)):wK(this,t,n,o)},g.Rh=function(t,n,o){return n==7?Hge(this,null,o):nX(this,t,n,o)},g.Th=function(t){switch(t){case 7:return!!Lme(this);case 8:return!Mt("",this.a)}return C1e(this,t)},g.$h=function(t,n){switch(t){case 7:z0e(this,d(n,176));return;case 8:sbe(this,Jn(n));return}wye(this,t,n)},g.fi=function(){return wa(),uRe},g.hi=function(t){switch(t){case 7:z0e(this,null);return;case 8:sbe(this,"");return}M1e(this,t)},g.Ib=function(){return Rft(this)},g.a="";var Nir=I(H1,"ElkLabelImpl",363);T(209,736,{110:1,344:1,83:1,176:1,19:1,278:1,209:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},p$),g.xh=function(t){return lye(this,t)},g.Ih=function(t,n,o){switch(t){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),this.a;case 11:return Zr(this);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),this.b;case 13:return Ut(),!this.a&&(this.a=new Le(Dn,this,10,11)),this.a.i>0}return q1e(this,t,n,o)},g.Ph=function(t,n,o){var a;switch(n){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),sc(this.c,t,o);case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),sc(this.a,t,o);case 11:return this.Cb&&(o=(a=this.Db>>16,a>=0?lye(this,o):this.Cb.Qh(this,-1-a,null,o))),tge(this,d(t,19),o);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),sc(this.b,t,o)}return fye(this,t,n,o)},g.Rh=function(t,n,o){switch(n){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),Go(this.c,t,o);case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),Go(this.a,t,o);case 11:return tge(this,null,o);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),Go(this.b,t,o)}return hye(this,t,n,o)},g.Th=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Zr(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Le(Dn,this,10,11)),this.a.i>0}return Pbe(this,t)},g.$h=function(t,n){switch(t){case 9:!this.c&&(this.c=new Le(Tl,this,9,9)),Ln(this.c),!this.c&&(this.c=new Le(Tl,this,9,9)),gi(this.c,d(n,18));return;case 10:!this.a&&(this.a=new Le(Dn,this,10,11)),Ln(this.a),!this.a&&(this.a=new Le(Dn,this,10,11)),gi(this.a,d(n,18));return;case 11:EB(this,d(n,19));return;case 12:!this.b&&(this.b=new Le(zr,this,12,3)),Ln(this.b),!this.b&&(this.b=new Le(zr,this,12,3)),gi(this.b,d(n,18));return}C0e(this,t,n)},g.fi=function(){return wa(),dRe},g.hi=function(t){switch(t){case 9:!this.c&&(this.c=new Le(Tl,this,9,9)),Ln(this.c);return;case 10:!this.a&&(this.a=new Le(Dn,this,10,11)),Ln(this.a);return;case 11:EB(this,null);return;case 12:!this.b&&(this.b=new Le(zr,this,12,3)),Ln(this.b);return}z1e(this,t)},g.Ib=function(){return iwe(this)};var Oir=I(H1,"ElkNodeImpl",209);T(196,736,{110:1,344:1,83:1,176:1,127:1,278:1,196:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},Lde),g.xh=function(t){return sye(this,t)},g.Ih=function(t,n,o){return t==9?Lf(this):q1e(this,t,n,o)},g.Ph=function(t,n,o){var a;return n===9?(this.Cb&&(o=(a=this.Db>>16,a>=0?sye(this,o):this.Cb.Qh(this,-1-a,null,o))),Uhe(this,d(t,19),o)):fye(this,t,n,o)},g.Rh=function(t,n,o){return n==9?Uhe(this,null,o):hye(this,t,n,o)},g.Th=function(t){return t==9?!!Lf(this):Pbe(this,t)},g.$h=function(t,n){if(t===9){F0e(this,d(n,19));return}C0e(this,t,n)},g.fi=function(){return wa(),fRe},g.hi=function(t){if(t===9){F0e(this,null);return}z1e(this,t)},g.Ib=function(){return Emt(this)};var Lir=I(H1,"ElkPortImpl",196),tRt=ni(zo,"BasicEMap/Entry");T(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},nBe),g.Fb=function(t){return this===t},g.jd=function(){return this.b},g.Hb=function(){return Vy(this)},g.Ai=function(t){nbe(this,d(t,149))},g.Ih=function(t,n,o){switch(t){case 0:return this.b;case 1:return this.c}return Xj(this,t,n,o)},g.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return UX(this,t)},g.$h=function(t,n){switch(t){case 0:nbe(this,d(n,149));return;case 1:rbe(this,n);return}$K(this,t,n)},g.fi=function(){return wa(),yg},g.hi=function(t){switch(t){case 0:nbe(this,null);return;case 1:rbe(this,null);return}MK(this,t)},g.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Wr(t):0),this.a},g.kd=function(){return this.c},g.zi=function(t){this.a=t},g.ld=function(t){var n;return n=this.c,rbe(this,t),n},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Fp,rr(rr(rr(t,this.b?this.b.Og():Oc),lZ),X$(this.c)),t.a)},g.a=-1,g.c=null;var pp=I(H1,"ElkPropertyToValueMapEntryImpl",1103);T(989,1,{},rBe);var Dir=I(xo,"JsonAdapter",989);T(218,63,Qg,dh);var Fir=I(xo,"JsonImportException",218);T(859,1,{},Bht);var _ir=I(xo,"JsonImporter",859);T(893,1,{},sXe),g.Bi=function(t){$dt(this.a,this.b,d(t,142))};var jir=I(xo,"JsonImporter/lambda$0$Type",893);T(894,1,{},aXe),g.Bi=function(t){bht(this.a,this.b,d(t,142))};var Bir=I(xo,"JsonImporter/lambda$1$Type",894);T(902,1,{},$Ue),g.Bi=function(t){btt(this.a,d(t,150))};var Gir=I(xo,"JsonImporter/lambda$10$Type",902);T(904,1,{},cXe),g.Bi=function(t){rht(this.a,this.b,d(t,142))};var zir=I(xo,"JsonImporter/lambda$11$Type",904);T(905,1,{},lXe),g.Bi=function(t){iht(this.a,this.b,d(t,142))};var Wir=I(xo,"JsonImporter/lambda$12$Type",905);T(911,1,{},Mtt),g.Bi=function(t){Mft(this.a,this.b,this.c,this.d,d(t,142))};var Hir=I(xo,"JsonImporter/lambda$13$Type",911);T(910,1,{},Ttt),g.Bi=function(t){qmt(this.a,this.b,this.c,this.d,d(t,150))};var Uir=I(xo,"JsonImporter/lambda$14$Type",910);T(906,1,{},uXe),g.Bi=function(t){FQe(this.a,this.b,Jn(t))};var Jir=I(xo,"JsonImporter/lambda$15$Type",906);T(907,1,{},dXe),g.Bi=function(t){_Qe(this.a,this.b,Jn(t))};var qir=I(xo,"JsonImporter/lambda$16$Type",907);T(908,1,{},pXe),g.Bi=function(t){ddt(this.b,this.a,d(t,142))};var Vir=I(xo,"JsonImporter/lambda$17$Type",908);T(909,1,{},bXe),g.Bi=function(t){fdt(this.b,this.a,d(t,142))};var Yir=I(xo,"JsonImporter/lambda$18$Type",909);T(914,1,{},RUe),g.Bi=function(t){bft(this.a,d(t,150))};var Xir=I(xo,"JsonImporter/lambda$19$Type",914);T(895,1,{},PUe),g.Bi=function(t){kdt(this.a,d(t,142))};var Kir=I(xo,"JsonImporter/lambda$2$Type",895);T(912,1,{},NUe),g.Bi=function(t){l0(this.a,he(be(t)))};var Qir=I(xo,"JsonImporter/lambda$20$Type",912);T(913,1,{},OUe),g.Bi=function(t){u0(this.a,he(be(t)))};var Zir=I(xo,"JsonImporter/lambda$21$Type",913);T(917,1,{},LUe),g.Bi=function(t){pft(this.a,d(t,150))};var eor=I(xo,"JsonImporter/lambda$22$Type",917);T(915,1,{},DUe),g.Bi=function(t){a0(this.a,he(be(t)))};var tor=I(xo,"JsonImporter/lambda$23$Type",915);T(916,1,{},FUe),g.Bi=function(t){c0(this.a,he(be(t)))};var nor=I(xo,"JsonImporter/lambda$24$Type",916);T(919,1,{},_Ue),g.Bi=function(t){Gdt(this.a,d(t,142))};var ror=I(xo,"JsonImporter/lambda$25$Type",919);T(918,1,{},jUe),g.Bi=function(t){ytt(this.a,d(t,150))};var ior=I(xo,"JsonImporter/lambda$26$Type",918);T(920,1,mn,yXe),g.Ad=function(t){Qen(this.b,this.a,Jn(t))};var oor=I(xo,"JsonImporter/lambda$27$Type",920);T(921,1,mn,wXe),g.Ad=function(t){Zen(this.b,this.a,Jn(t))};var sor=I(xo,"JsonImporter/lambda$28$Type",921);T(922,1,{},fXe),g.Bi=function(t){Zht(this.a,this.b,d(t,142))};var aor=I(xo,"JsonImporter/lambda$29$Type",922);T(898,1,{},BUe),g.Bi=function(t){Nlt(this.a,d(t,150))};var cor=I(xo,"JsonImporter/lambda$3$Type",898);T(923,1,{},hXe),g.Bi=function(t){vgt(this.a,this.b,d(t,142))};var lor=I(xo,"JsonImporter/lambda$30$Type",923);T(924,1,{},GUe),g.Bi=function(t){nst(this.a,be(t))};var uor=I(xo,"JsonImporter/lambda$31$Type",924);T(925,1,{},zUe),g.Bi=function(t){rst(this.a,be(t))};var dor=I(xo,"JsonImporter/lambda$32$Type",925);T(926,1,{},WUe),g.Bi=function(t){ist(this.a,be(t))};var hor=I(xo,"JsonImporter/lambda$33$Type",926);T(927,1,{},HUe),g.Bi=function(t){ost(this.a,be(t))};var gor=I(xo,"JsonImporter/lambda$34$Type",927);T(928,1,{},UUe),g.Bi=function(t){tun(this.a,d(t,57))};var mor=I(xo,"JsonImporter/lambda$35$Type",928);T(929,1,{},JUe),g.Bi=function(t){nun(this.a,d(t,57))};var por=I(xo,"JsonImporter/lambda$36$Type",929);T(933,1,{},Ctt);var bor=I(xo,"JsonImporter/lambda$37$Type",933);T(930,1,mn,lZe),g.Ad=function(t){$nn(this.a,this.c,this.b,d(t,373))};var yor=I(xo,"JsonImporter/lambda$38$Type",930);T(931,1,mn,gXe),g.Ad=function(t){YWt(this.a,this.b,d(t,171))};var wor=I(xo,"JsonImporter/lambda$39$Type",931);T(896,1,{},qUe),g.Bi=function(t){l0(this.a,he(be(t)))};var xor=I(xo,"JsonImporter/lambda$4$Type",896);T(932,1,mn,mXe),g.Ad=function(t){XWt(this.a,this.b,d(t,171))};var Aor=I(xo,"JsonImporter/lambda$40$Type",932);T(934,1,mn,uZe),g.Ad=function(t){Rnn(this.a,this.b,this.c,d(t,8))};var vor=I(xo,"JsonImporter/lambda$41$Type",934);T(897,1,{},VUe),g.Bi=function(t){u0(this.a,he(be(t)))};var kor=I(xo,"JsonImporter/lambda$5$Type",897);T(901,1,{},YUe),g.Bi=function(t){Olt(this.a,d(t,150))};var Sor=I(xo,"JsonImporter/lambda$6$Type",901);T(899,1,{},XUe),g.Bi=function(t){a0(this.a,he(be(t)))};var Eor=I(xo,"JsonImporter/lambda$7$Type",899);T(900,1,{},KUe),g.Bi=function(t){c0(this.a,he(be(t)))};var Cor=I(xo,"JsonImporter/lambda$8$Type",900);T(903,1,{},QUe),g.Bi=function(t){zdt(this.a,d(t,142))};var Mor=I(xo,"JsonImporter/lambda$9$Type",903);T(953,1,mn,ZUe),g.Ad=function(t){Wk(this.a,new Jw(Jn(t)))};var Tor=I(xo,"JsonMetaDataConverter/lambda$0$Type",953);T(954,1,mn,eJe),g.Ad=function(t){XYt(this.a,d(t,235))};var Ior=I(xo,"JsonMetaDataConverter/lambda$1$Type",954);T(955,1,mn,tJe),g.Ad=function(t){YKt(this.a,d(t,144))};var $or=I(xo,"JsonMetaDataConverter/lambda$2$Type",955);T(956,1,mn,nJe),g.Ad=function(t){KYt(this.a,d(t,161))};var Ror=I(xo,"JsonMetaDataConverter/lambda$3$Type",956);T(235,23,{3:1,34:1,23:1,235:1},Tk);var aW,cW,soe,q5,lW,V5,aoe,coe,Y5=En(pD,"GraphFeature",235,Rn,Rtn,OVt),nRt;T(11,1,{34:1,149:1},dr,qr,vt,Ki),g.Dd=function(t){return KHt(this,d(t,149))},g.Fb=function(t){return Ktt(this,t)},g.Rg=function(){return et(this)},g.Og=function(){return this.b},g.Hb=function(){return Ym(this.b)},g.Ib=function(){return this.b};var Por=I(pD,"Property",11);T(664,1,tr,xJ),g.Le=function(t,n){return Win(this,d(t,105),d(n,105))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var Nor=I(pD,"PropertyHolderComparator",664);T(705,1,co,xde),g.Nb=function(t){ko(this,t)},g.Pb=function(){return rtn(this)},g.Qb=function(){Vqe()},g.Ob=function(){return!!this.a};var Oor=I(O7,"ElkGraphUtil/AncestorIterator",705),gRe=ni(zo,"EList");T(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),g._c=function(t,n){_R(this,t,n)},g.Ec=function(t){return jn(this,t)},g.ad=function(t,n){return Ibe(this,t,n)},g.Fc=function(t){return gi(this,t)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)},g.Ji=function(){return!0},g.Ki=function(t,n){},g.Li=function(){},g.Mi=function(t,n){SY(this,t,n)},g.Ni=function(t,n,o){},g.Oi=function(t,n){},g.Pi=function(t,n,o){},g.Fb=function(t){return cmt(this,t)},g.Hb=function(){return Sbe(this)},g.Qi=function(){return!1},g.Jc=function(){return new fn(this)},g.cd=function(){return new Ok(this)},g.dd=function(t){var n;if(n=this.gc(),t<0||t>n)throw Q(new Bw(t,n));return new $V(this,t)},g.Si=function(t,n){this.Ri(t,this.bd(n))},g.Kc=function(t){return Q9(this,t)},g.Ui=function(t,n){return n},g.fd=function(t,n){return Iv(this,t,n)},g.Ib=function(){return A1e(this)},g.Wi=function(){return!0},g.Xi=function(t,n){return eM(this,n)};var Lor=I(zo,"AbstractEList",71);T(67,71,$h,a_,s0,bbe),g.Ci=function(t,n){return xK(this,t,n)},g.Di=function(t){return Jut(this,t)},g.Ei=function(t,n){vL(this,t,n)},g.Fi=function(t){J4(this,t)},g.Yi=function(t){return Npe(this,t)},g.$b=function(){xR(this)},g.Gc=function(t){return pM(this,t)},g.Xb=function(t){return ue(this,t)},g.Zi=function(t){var n,o,a;++this.j,o=this.g==null?0:this.g.length,t>o&&(a=this.g,n=o+(o/2|0)+4,n<t&&(n=t),this.g=this.$i(n),a!=null&&$a(a,0,this.g,0,this.i))},g.bd=function(t){return mdt(this,t)},g.dc=function(){return this.i==0},g.Ri=function(t,n){return NK(this,t,n)},g.$i=function(t){return Te(Wi,zt,1,t,5,1)},g.Ti=function(t){return this.g[t]},g.ed=function(t){return uS(this,t)},g.Vi=function(t,n){return OY(this,t,n)},g.gc=function(){return this.i},g.Nc=function(){return Zme(this)},g.Oc=function(t){return I1e(this,t)},g.i=0;var mRe=I(zo,"BasicEList",67),pRe=ni(zo,"TreeIterator");T(704,67,Gee),g.Nb=function(t){ko(this,t)},g.Ob=function(){return this.g==null&&!this.c?Ome(this):this.g==null||this.i!=0&&d(this.g[this.i-1],51).Ob()},g.Pb=function(){return xB(this)},g.Qb=function(){if(!this.e)throw Q(new ws("There is no valid object to remove."));this.e.Qb()},g.c=!1;var Dor=I(zo,"AbstractTreeIterator",704);T(611,704,Gee,Oq),g._i=function(t){var n;return n=d(t,57).Dh().Jc(),fe(n,289)&&d(n,289).ul(new iBe),n};var For=I(O7,"ElkGraphUtil/PropertiesSkippingTreeIterator",611);T(957,1,{},iBe);var _or=I(O7,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",957),X5,loe,K5=I(O7,"ElkReflect",null);T(891,1,Ix,oBe),g.Qg=function(t){return C9(),FQt(d(t,185))};var jor=I(O7,"ElkReflect/lambda$0$Type",891),Db,Bor=ni(zo,"ResourceLocator");T(1056,1,{});var Gor=I(zo,"DelegatingResourceLocator",1056);T(1057,1056,{});var zor=I("org.eclipse.emf.common","EMFPlugin",1057),uoe=ni(zwt,"Adapter"),Exn=ni(zwt,"Notification");T(1155,1,S2e),g.aj=function(){return this.d},g.bj=function(t){},g.cj=function(t){this.d=t},g.dj=function(t){this.d==t&&(this.d=null)},g.d=null;var Wor=I(PS,"AdapterImpl",1155);T(2072,71,Wwt),g.Ci=function(t,n){return S1e(this,t,n)},g.Di=function(t){var n,o,a;if(++this.j,t.dc())return!1;for(n=this.Cj(),a=t.Jc();a.Ob();)o=a.Pb(),this.pj(this.Xi(n,o)),++n;return!0},g.Ei=function(t,n){wQe(this,t,n)},g.Fi=function(t){Qet(this,t)},g.nj=function(){return this.qj()},g.$b=function(){k4(this,this.Cj(),this.Dj())},g.Gc=function(t){return this.sj(t)},g.Hc=function(t){return this.tj(t)},g.oj=function(t,n){this.zj().Sm()},g.pj=function(t){this.zj().Sm()},g.qj=function(){return this.zj()},g.rj=function(){this.zj().Sm()},g.sj=function(t){return this.zj().Sm()},g.tj=function(t){return this.zj().Sm()},g.uj=function(t){return this.zj().Sm()},g.vj=function(t){return this.zj().Sm()},g.wj=function(){return this.zj().Sm()},g.xj=function(t){return this.zj().Sm()},g.yj=function(){return this.zj().Sm()},g.Aj=function(t){return this.zj().Sm()},g.Bj=function(t,n){return this.zj().Sm()},g.Cj=function(){return this.zj().Sm()},g.Dj=function(){return this.zj().Sm()},g.Ej=function(t){return this.zj().Sm()},g.Fj=function(){return this.zj().Sm()},g.Fb=function(t){return this.uj(t)},g.Xb=function(t){return this.Ui(t,this.vj(t))},g.Hb=function(){return this.wj()},g.bd=function(t){return this.xj(t)},g.dc=function(){return this.yj()},g.Ri=function(t,n){return jye(this,t,n)},g.Ti=function(t){return this.vj(t)},g.ed=function(t){return q8(this,t)},g.Kc=function(t){var n;return n=this.bd(t),n>=0?(this.ed(n),!0):!1},g.Vi=function(t,n){return this.Bj(t,this.Xi(t,n))},g.gc=function(){return this.Cj()},g.Nc=function(){return this.Dj()},g.Oc=function(t){return this.Ej(t)},g.Ib=function(){return this.Fj()};var Hor=I(zo,"DelegatingEList",2072);T(2073,2072,Wwt),g.Ci=function(t,n){return ywe(this,t,n)},g.Di=function(t){return this.Ci(this.Cj(),t)},g.Ei=function(t,n){Jht(this,t,n)},g.Fi=function(t){Lht(this,t)},g.Ji=function(){return!this.Kj()},g.$b=function(){gP(this)},g.Gj=function(t,n,o,a,l){return new Ytt(this,t,n,o,a,l)},g.Hj=function(t){kr(this.hj(),t)},g.Ij=function(){return null},g.Jj=function(){return-1},g.hj=function(){return null},g.Kj=function(){return!1},g.Lj=function(t,n){return n},g.Mj=function(t,n){return n},g.Nj=function(){return!1},g.Oj=function(){return!this.yj()},g.Ri=function(t,n){var o,a;return this.Nj()?(a=this.Oj(),o=jye(this,t,n),this.Hj(this.Gj(7,Ge(n),o,t,a)),o):jye(this,t,n)},g.ed=function(t){var n,o,a,l;return this.Nj()?(o=null,a=this.Oj(),n=this.Gj(4,l=q8(this,t),null,t,a),this.Kj()&&l?(o=this.Mj(l,o),o?(o.lj(n),o.mj()):this.Hj(n)):o?(o.lj(n),o.mj()):this.Hj(n),l):(l=q8(this,t),this.Kj()&&l&&(o=this.Mj(l,null),o&&o.mj()),l)},g.Vi=function(t,n){return opt(this,t,n)};var Uor=I(PS,"DelegatingNotifyingListImpl",2073);T(152,1,OD),g.lj=function(t){return Sye(this,t)},g.mj=function(){IY(this)},g.ej=function(){return this.d},g.Ij=function(){return null},g.Pj=function(){return null},g.fj=function(t){return-1},g.gj=function(){return Wgt(this)},g.hj=function(){return null},g.ij=function(){return q0e(this)},g.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},g.Qj=function(){return!1},g.kj=function(t){var n,o,a,l,h,b,w,A,k,C,$;switch(this.d){case 1:case 2:switch(l=t.ej(),l){case 1:case 2:if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null))return k=Dwe(this),A=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,b=t.jj(),this.d=6,$=new s0(2),A<=b?(jn($,this.n),jn($,t.ij()),this.g=re(ne(qn,1),ur,30,15,[this.o=A,b+1])):(jn($,t.ij()),jn($,this.n),this.g=re(ne(qn,1),ur,30,15,[this.o=b,A])),this.n=$,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null)){for(k=Dwe(this),b=t.jj(),C=d(this.g,54),a=Te(qn,ur,30,C.length+1,15,1),n=0;n<C.length&&(w=C[n],w<=b);)a[n++]=w,++b;for(o=d(this.n,16),o._c(n,t.ij()),a[n]=b;++n<a.length;)a[n]=C[n-1];return this.g=a,k||(this.o=-2-a[0]),!0}break}}break}}return!1},g.Ib=function(){var t,n,o,a;switch(a=new Zu(c1(this.Pm)+"@"+(n=Wr(this)>>>0,n.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{HJ(a,this.d);break}}if(Pmt(this)&&(a.a+=", touch: true"),a.a+=", position: ",HJ(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",H$(a,this.hj()),a.a+=", feature: ",H$(a,this.Ij()),a.a+=", oldValue: ",H$(a,q0e(this)),a.a+=", newValue: ",this.d==6&&fe(this.g,54)){for(o=d(this.g,54),a.a+="[",t=0;t<o.length;)a.a+=o[t],++t<o.length&&(a.a+=ac);a.a+="]"}else H$(a,Wgt(this));return a.a+=", isTouch: ",Fm(a,Pmt(this)),a.a+=", wasSet: ",Fm(a,Dwe(this)),a.a+=")",a.a},g.d=0,g.e=0,g.f=0,g.j=0,g.k=0,g.o=0,g.p=0;var Jor=I(PS,"NotificationImpl",152);T(1169,152,OD,Ytt),g.Ij=function(){return this.a.Ij()},g.fj=function(t){return this.a.Jj()},g.hj=function(){return this.a.hj()};var qor=I(PS,"DelegatingNotifyingListImpl/1",1169);T(255,67,$h,sBe,_p),g.Ec=function(t){return jlt(this,d(t,374))},g.lj=function(t){return jlt(this,t)},g.mj=function(){var t,n,o;for(t=0;t<this.i;++t)n=d(this.g[t],374),o=n.hj(),o!=null&&n.ej()!=-1&&d(o,95).uh(n)},g.$i=function(t){return Te(Exn,zt,374,t,0,1)};var Vor=I(PS,"NotificationChainImpl",255);T(1502,94,ewt),g.rh=function(){return this.e},g.th=function(){return(this.f&1)!=0},g.f=1;var Yor=I(PS,"NotifierImpl",1502);T(2070,67,$h),g.Ci=function(t,n){return QK(this,t,n)},g.Di=function(t){return this.Ci(this.i,t)},g.Ei=function(t,n){b0e(this,t,n)},g.Fi=function(t){OK(this,t)},g.Ji=function(){return!this.Kj()},g.$b=function(){Ln(this)},g.Gj=function(t,n,o,a,l){return new Xtt(this,t,n,o,a,l)},g.Hj=function(t){kr(this.hj(),t)},g.Ij=function(){return null},g.Jj=function(){return-1},g.hj=function(){return null},g.Kj=function(){return!1},g.Rj=function(){return!1},g.Lj=function(t,n){return n},g.Mj=function(t,n){return n},g.Nj=function(){return!1},g.Oj=function(){return this.i!=0},g.Ri=function(t,n){return jR(this,t,n)},g.ed=function(t){return yx(this,t)},g.Vi=function(t,n){return kpt(this,t,n)},g.Sj=function(t,n){return n},g.Tj=function(t,n){return n},g.Uj=function(t,n,o){return o};var Xor=I(PS,"NotifyingListImpl",2070);T(1168,152,OD,Xtt),g.Ij=function(){return this.a.Ij()},g.fj=function(t){return this.a.Jj()},g.hj=function(){return this.a.hj()};var Kor=I(PS,"NotifyingListImpl/1",1168);T(958,67,$h,AQe),g.Gc=function(t){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new Gw(this),this.a=this.j),Qu(this.b,t)):pM(this,t)},g.Wi=function(){return!0},g.a=0;var Qor=I(zo,"AbstractEList/1",958);T(306,99,VB,Bw);var Zor=I(zo,"AbstractEList/BasicIndexOutOfBoundsException",306);T(39,1,co,fn),g.Nb=function(t){ko(this,t)},g.Vj=function(){if(this.i.j!=this.f)throw Q(new Au)},g.Wj=function(){return bn(this)},g.Ob=function(){return this.e!=this.i.gc()},g.Pb=function(){return this.Wj()},g.Qb=function(){YR(this)},g.e=0,g.f=0,g.g=-1;var esr=I(zo,"AbstractEList/EIterator",39);T(288,39,og,Ok,$V),g.Qb=function(){YR(this)},g.Rb=function(t){Ylt(this,t)},g.Xj=function(){var t;try{return t=this.d.Xb(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Yj=function(t){qut(this,t)},g.Sb=function(){return this.e!=0},g.Tb=function(){return this.e},g.Ub=function(){return this.Xj()},g.Vb=function(){return this.e-1},g.Wb=function(t){this.Yj(t)};var tsr=I(zo,"AbstractEList/EListIterator",288);T(356,39,co,Nk),g.Wj=function(){return JX(this)},g.Qb=function(){throw Q(new Hn)};var nsr=I(zo,"AbstractEList/NonResolvingEIterator",356);T(393,288,og,w4,cge),g.Rb=function(t){throw Q(new Hn)},g.Wj=function(){var t;try{return t=this.c.Ti(this.e),this.Vj(),this.g=this.e++,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Xj=function(){var t;try{return t=this.c.Ti(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Qb=function(){throw Q(new Hn)},g.Wb=function(t){throw Q(new Hn)};var rsr=I(zo,"AbstractEList/NonResolvingEListIterator",393);T(2059,71,Hwt),g.Ci=function(t,n){var o,a,l,h,b,w,A,k,C,$,O;if(l=n.gc(),l!=0){for(k=d(nn(this.a,4),131),C=k==null?0:k.length,O=C+l,a=mX(this,O),$=C-t,$>0&&$a(k,t,a,t+l,$),A=n.Jc(),b=0;b<l;++b)w=A.Pb(),o=t+b,_q(a,o,eM(this,w));for(hM(this,a),h=0;h<l;++h)w=a[t],this.Ki(t,w),++t;return!0}else return++this.j,!1},g.Di=function(t){var n,o,a,l,h,b,w,A,k;if(a=t.gc(),a!=0){for(A=(o=d(nn(this.a,4),131),o==null?0:o.length),k=A+a,n=mX(this,k),w=t.Jc(),h=A;h<k;++h)b=w.Pb(),_q(n,h,eM(this,b));for(hM(this,n),l=A;l<k;++l)b=n[l],this.Ki(l,b);return!0}else return++this.j,!1},g.Ei=function(t,n){var o,a,l,h;a=d(nn(this.a,4),131),l=a==null?0:a.length,o=mX(this,l+1),h=eM(this,n),t!=l&&$a(a,t,o,t+1,l-t),yi(o,t,h),hM(this,o),this.Ki(t,n)},g.Fi=function(t){var n,o,a;a=(o=d(nn(this.a,4),131),o==null?0:o.length),n=mX(this,a+1),_q(n,a,eM(this,t)),hM(this,n),this.Ki(a,t)},g.Gi=function(){return new Cit(this)},g.Hi=function(){return new Ret(this)},g.Ii=function(t){var n,o;if(o=(n=d(nn(this.a,4),131),n==null?0:n.length),t<0||t>o)throw Q(new Bw(t,o));return new att(this,t)},g.$b=function(){var t,n;++this.j,t=d(nn(this.a,4),131),n=t==null?0:t.length,hM(this,null),SY(this,n,t)},g.Gc=function(t){var n,o,a,l,h;if(n=d(nn(this.a,4),131),n!=null){if(t!=null){for(a=n,l=0,h=a.length;l<h;++l)if(o=a[l],Er(t,o))return!0}else for(a=n,l=0,h=a.length;l<h;++l)if(o=a[l],Ee(o)===Ee(t))return!0}return!1},g.Xb=function(t){var n,o;if(n=d(nn(this.a,4),131),o=n==null?0:n.length,t>=o)throw Q(new Bw(t,o));return n[t]},g.bd=function(t){var n,o,a;if(n=d(nn(this.a,4),131),n!=null){if(t!=null){for(o=0,a=n.length;o<a;++o)if(Er(t,n[o]))return o}else for(o=0,a=n.length;o<a;++o)if(Ee(n[o])===Ee(t))return o}return-1},g.dc=function(){return d(nn(this.a,4),131)==null},g.Jc=function(){return new Eit(this)},g.cd=function(){return new $et(this)},g.dd=function(t){var n,o;if(o=(n=d(nn(this.a,4),131),n==null?0:n.length),t<0||t>o)throw Q(new Bw(t,o));return new stt(this,t)},g.Ri=function(t,n){var o,a,l;if(o=nut(this),l=o==null?0:o.length,t>=l)throw Q(new ec(jee+t+U1+l));if(n>=l)throw Q(new ec(Bee+n+U1+l));return a=o[n],t!=n&&(t<n?$a(o,t,o,t+1,n-t):$a(o,n+1,o,n,t-n),yi(o,t,a),hM(this,o)),a},g.Ti=function(t){return d(nn(this.a,4),131)[t]},g.ed=function(t){return ofn(this,t)},g.Vi=function(t,n){var o,a;return o=nut(this),a=o[t],_q(o,t,eM(this,n)),hM(this,o),a},g.gc=function(){var t;return t=d(nn(this.a,4),131),t==null?0:t.length},g.Nc=function(){var t,n,o;return t=d(nn(this.a,4),131),o=t==null?0:t.length,n=Te(uoe,Uee,420,o,0,1),o>0&&$a(t,0,n,0,o),n},g.Oc=function(t){var n,o,a;return n=d(nn(this.a,4),131),a=n==null?0:n.length,a>0&&(t.length<a&&(o=cL(zl(t).c,a),t=o),$a(n,0,t,0,a)),t.length>a&&yi(t,a,null),t};var rRt,isr=I(zo,"ArrayDelegatingEList",2059);T(1043,39,co,Eit),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)},g.Qb=function(){YR(this),this.a=d(nn(this.b.a,4),131)};var osr=I(zo,"ArrayDelegatingEList/EIterator",1043);T(719,288,og,$et,stt),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)},g.Yj=function(t){qut(this,t),this.a=d(nn(this.b.a,4),131)},g.Qb=function(){YR(this),this.a=d(nn(this.b.a,4),131)};var ssr=I(zo,"ArrayDelegatingEList/EListIterator",719);T(1044,356,co,Cit),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)};var asr=I(zo,"ArrayDelegatingEList/NonResolvingEIterator",1044);T(720,393,og,Ret,att),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)};var csr=I(zo,"ArrayDelegatingEList/NonResolvingEListIterator",720);T(612,306,VB,Rq);var lsr=I(zo,"BasicEList/BasicIndexOutOfBoundsException",612);T(706,67,$h,Yfe),g._c=function(t,n){throw Q(new Hn)},g.Ec=function(t){throw Q(new Hn)},g.ad=function(t,n){throw Q(new Hn)},g.Fc=function(t){throw Q(new Hn)},g.$b=function(){throw Q(new Hn)},g.Zi=function(t){throw Q(new Hn)},g.Jc=function(){return this.Gi()},g.cd=function(){return this.Hi()},g.dd=function(t){return this.Ii(t)},g.Ri=function(t,n){throw Q(new Hn)},g.Si=function(t,n){throw Q(new Hn)},g.ed=function(t){throw Q(new Hn)},g.Kc=function(t){throw Q(new Hn)},g.fd=function(t,n){throw Q(new Hn)};var usr=I(zo,"BasicEList/UnmodifiableEList",706);T(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),g._c=function(t,n){jHt(this,t,d(n,45))},g.Ec=function(t){return FUt(this,d(t,45))},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return d(ue(this.c,t),138)},g.Ri=function(t,n){return d(this.c.Ri(t,n),45)},g.Si=function(t,n){BHt(this,t,d(n,45))},g.ed=function(t){return d(this.c.ed(t),45)},g.fd=function(t,n){return QYt(this,t,d(n,45))},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.ad=function(t,n){return this.c.ad(t,n)},g.Fc=function(t){return this.c.Fc(t)},g.$b=function(){this.c.$b()},g.Gc=function(t){return this.c.Gc(t)},g.Hc=function(t){return bL(this.c,t)},g.Zj=function(){var t,n,o;if(this.d==null){for(this.d=Te(mRe,E2e,67,2*this.f+1,0,1),o=this.e,this.f=0,n=this.c.Jc();n.e!=n.i.gc();)t=d(n.Wj(),138),Zj(this,t);this.e=o}},g.Fb=function(t){return KQe(this,t)},g.Hb=function(){return Sbe(this.c)},g.bd=function(t){return this.c.bd(t)},g.$j=function(){this.c=new rJe(this)},g.dc=function(){return this.f==0},g.Jc=function(){return this.c.Jc()},g.cd=function(){return this.c.cd()},g.dd=function(t){return this.c.dd(t)},g._j=function(){return Y4(this)},g.ak=function(t,n,o){return new dZe(t,n,o)},g.bk=function(){return new cBe},g.Kc=function(t){return Zst(this,t)},g.gc=function(){return this.f},g.hd=function(t,n){return new ph(this.c,t,n)},g.Nc=function(){return this.c.Nc()},g.Oc=function(t){return this.c.Oc(t)},g.Ib=function(){return A1e(this.c)},g.e=0,g.f=0;var dsr=I(zo,"BasicEMap",718);T(1038,67,$h,rJe),g.Ki=function(t,n){vzt(this,d(n,138))},g.Ni=function(t,n,o){var a;++(a=this,d(n,138),a).a.e},g.Oi=function(t,n){kzt(this,d(n,138))},g.Pi=function(t,n,o){yUt(this,d(n,138),d(o,138))},g.Mi=function(t,n){Jat(this.a)};var fsr=I(zo,"BasicEMap/1",1038);T(1039,67,$h,cBe),g.$i=function(t){return Te(Cxn,Uwt,618,t,0,1)};var hsr=I(zo,"BasicEMap/2",1039);T(1040,Jf,Qc,iJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){return OX(this.a,t)},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new zqe(this.a)},g.Kc=function(t){var n;return n=this.a.f,Wj(this.a,t),this.a.f!=n},g.gc=function(){return this.a.f};var gsr=I(zo,"BasicEMap/3",1040);T(1041,32,vx,oJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){return lmt(this.a,t)},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new Wqe(this.a)},g.gc=function(){return this.a.f};var msr=I(zo,"BasicEMap/4",1041);T(1042,Jf,Qc,sJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){var n,o,a,l,h,b,w,A,k;if(this.a.f>0&&fe(t,45)&&(this.a.Zj(),A=d(t,45),w=A.jd(),l=w==null?0:Wr(w),h=Jhe(this.a,l),n=this.a.d[h],n)){for(o=d(n.g,375),k=n.i,b=0;b<k;++b)if(a=o[b],a.yi()==l&&a.Fb(A))return!0}return!1},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new JV(this.a)},g.Kc=function(t){return Kht(this,t)},g.gc=function(){return this.a.f};var psr=I(zo,"BasicEMap/5",1042);T(619,1,co,JV),g.Nb=function(t){ko(this,t)},g.Ob=function(){return this.b!=-1},g.Pb=function(){var t;if(this.f.e!=this.c)throw Q(new Au);if(this.b==-1)throw Q(new js);return this.d=this.a,this.e=this.b,Tdt(this),t=d(this.f.d[this.d].g[this.e],138),this.ck(t)},g.Qb=function(){if(this.f.e!=this.c)throw Q(new Au);if(this.e==-1)throw Q(new Hc);this.f.c.Kc(ue(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},g.ck=function(t){return t},g.a=0,g.b=-1,g.c=0,g.d=0,g.e=0;var bsr=I(zo,"BasicEMap/BasicEMapIterator",619);T(1036,619,co,zqe),g.ck=function(t){return t.jd()};var ysr=I(zo,"BasicEMap/BasicEMapKeyIterator",1036);T(1037,619,co,Wqe),g.ck=function(t){return t.kd()};var wsr=I(zo,"BasicEMap/BasicEMapValueIterator",1037);T(1035,1,E0,aJe),g.wc=function(t){dL(this,t)},g.$b=function(){this.a.c.$b()},g._b=function(t){return MXe(this,t)},g.uc=function(t){return lmt(this.a,t)},g.vc=function(){return Den(this.a)},g.Fb=function(t){return KQe(this.a,t)},g.xc=function(t){return ff(this.a,t)},g.Hb=function(){return Sbe(this.a.c)},g.dc=function(){return this.a.f==0},g.ec=function(){return Oen(this.a)},g.yc=function(t,n){return LL(this.a,t,n)},g.Ac=function(t){return Wj(this.a,t)},g.gc=function(){return this.a.f},g.Ib=function(){return A1e(this.a.c)},g.Bc=function(){return Len(this.a)};var xsr=I(zo,"BasicEMap/DelegatingMap",1035);T(618,1,{45:1,138:1,618:1},dZe),g.Fb=function(t){var n;return fe(t,45)?(n=d(t,45),(this.b!=null?Er(this.b,n.jd()):Ee(this.b)===Ee(n.jd()))&&(this.c!=null?Er(this.c,n.kd()):Ee(this.c)===Ee(n.kd()))):!1},g.yi=function(){return this.a},g.jd=function(){return this.b},g.kd=function(){return this.c},g.Hb=function(){return this.a^(this.c==null?0:Wr(this.c))},g.zi=function(t){this.a=t},g.Ai=function(t){throw Q(new s1)},g.ld=function(t){var n;return n=this.c,this.c=t,n},g.Ib=function(){return this.b+"->"+this.c},g.a=0;var Cxn=I(zo,"BasicEMap/EntryImpl",618);T(538,1,{},c_);var Asr=I(zo,"BasicEMap/View",538),Q5;T(776,1,{}),g.Fb=function(t){return M0e((Pt(),Oo),t)},g.Hb=function(){return Dbe((Pt(),Oo))},g.Ib=function(){return Hf((Pt(),Oo))};var vsr=I(zo,"ECollections/BasicEmptyUnmodifiableEList",776);T(1314,1,og,aBe),g.Nb=function(t){ko(this,t)},g.Rb=function(t){throw Q(new Hn)},g.Ob=function(){return!1},g.Sb=function(){return!1},g.Pb=function(){throw Q(new js)},g.Tb=function(){return 0},g.Ub=function(){throw Q(new js)},g.Vb=function(){return-1},g.Qb=function(){throw Q(new Hn)},g.Wb=function(t){throw Q(new Hn)};var ksr=I(zo,"ECollections/BasicEmptyUnmodifiableEList/1",1314);T(1312,776,{22:1,18:1,16:1,61:1},YJe),g._c=function(t,n){dVe()},g.Ec=function(t){return fVe()},g.ad=function(t,n){return hVe()},g.Fc=function(t){return gVe()},g.$b=function(){mVe()},g.Gc=function(t){return!1},g.Hc=function(t){return!1},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return Zfe((Pt(),t)),null},g.bd=function(t){return-1},g.dc=function(){return!0},g.Jc=function(){return this.a},g.cd=function(){return this.a},g.dd=function(t){return this.a},g.Ri=function(t,n){return pVe()},g.Si=function(t,n){bVe()},g.ed=function(t){return yVe()},g.Kc=function(t){return wVe()},g.fd=function(t,n){return xVe()},g.gc=function(){return 0},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.hd=function(t,n){return Pt(),new ph(Oo,t,n)},g.Nc=function(){return qge((Pt(),Oo))},g.Oc=function(t){return Pt(),UR(Oo,t)};var Ssr=I(zo,"ECollections/EmptyUnmodifiableEList",1312);T(1313,776,{22:1,18:1,16:1,61:1,593:1},XJe),g._c=function(t,n){dVe()},g.Ec=function(t){return fVe()},g.ad=function(t,n){return hVe()},g.Fc=function(t){return gVe()},g.$b=function(){mVe()},g.Gc=function(t){return!1},g.Hc=function(t){return!1},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return Zfe((Pt(),t)),null},g.bd=function(t){return-1},g.dc=function(){return!0},g.Jc=function(){return this.a},g.cd=function(){return this.a},g.dd=function(t){return this.a},g.Ri=function(t,n){return pVe()},g.Si=function(t,n){bVe()},g.ed=function(t){return yVe()},g.Kc=function(t){return wVe()},g.fd=function(t,n){return xVe()},g.gc=function(){return 0},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.hd=function(t,n){return Pt(),new ph(Oo,t,n)},g.Nc=function(){return qge((Pt(),Oo))},g.Oc=function(t){return Pt(),UR(Oo,t)},g._j=function(){return Pt(),Pt(),dg};var Esr=I(zo,"ECollections/EmptyUnmodifiableEMap",1313),bRe=ni(zo,"Enumerator"),uW;T(291,1,{291:1},zK),g.Fb=function(t){var n;return this===t?!0:fe(t,291)?(n=d(t,291),this.f==n.f&&xYt(this.i,n.i)&&bV(this.a,(this.f&256)!=0?(n.f&256)!=0?n.a:null:(n.f&256)!=0?null:n.a)&&bV(this.d,n.d)&&bV(this.g,n.g)&&bV(this.e,n.e)&&Isn(this,n)):!1},g.Hb=function(){return this.f},g.Ib=function(){return Hmt(this)},g.f=0;var iRt=0,oRt=0,sRt=0,aRt=0,yRe=0,wRe=0,xRe=0,ARe=0,vRe=0,cRt,lN=0,uN=0,lRt=0,uRt=0,dW,kRe,Csr=I(zo,"URI",291);T(1102,44,Gv,KJe),g.yc=function(t,n){return d(As(this,Jn(t),d(n,291)),291)};var Msr=I(zo,"URI/URICache",1102);T(495,67,$h,lBe,Q8),g.Qi=function(){return!0};var Tsr=I(zo,"UniqueEList",495);T(585,63,Qg,Y9);var Isr=I(zo,"WrappedException",585),ar=ni(Du,Vwt),cA=ni(Du,Ywt),Bc=ni(Du,Xwt),lA=ni(Du,Kwt),kf=ni(Du,Qwt),md=ni(Du,"EClass"),doe=ni(Du,"EDataType"),dRt;T(1210,44,Gv,QJe),g.xc=function(t){return io(t)?ja(this,t):Gs(xs(this.f,t))};var $sr=I(Du,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210),fW=ni(Du,"EEnum"),um=ni(Du,Zwt),as=ni(Du,ext),pd=ni(Du,txt),bd,Q0=ni(Du,nxt),uA=ni(Du,rxt);T(1034,1,{},uBe),g.Ib=function(){return"NIL"};var Rsr=I(Du,"EStructuralFeature/Internal/DynamicValueHolder/1",1034),fRt;T(1033,44,Gv,ZJe),g.xc=function(t){return io(t)?ja(this,t):Gs(xs(this.f,t))};var Psr=I(Du,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033),kc=ni(Du,ixt),aE=ni(Du,"EValidator/PatternMatcher"),SRe,ERe,Kt,bp,dA,Fb,hRt,gRt,mRt,_b,yp,jb,Z0,sh,pRt,bRt,yd,wp,yRt,xp,fA,C2,Vo,wRt,xRt,ew,hW=ni(Kr,"FeatureMap/Entry");T(537,1,{76:1},m8),g.Jk=function(){return this.a},g.kd=function(){return this.b};var Nsr=I(en,"BasicEObjectImpl/1",537);T(1032,1,Jee,AXe),g.Dk=function(t){return wY(this.a,this.b,t)},g.Oj=function(){return hnt(this.a,this.b)},g.Wb=function(t){Nme(this.a,this.b,t)},g.Ek=function(){gXt(this.a,this.b)};var Osr=I(en,"BasicEObjectImpl/4",1032);T(2060,1,{115:1}),g.Kk=function(t){this.e=t==0?ARt:Te(Wi,zt,1,t,5,1)},g.ii=function(t){return this.e[t]},g.ji=function(t,n){this.e[t]=n},g.ki=function(t){this.e[t]=null},g.Lk=function(){return this.c},g.Mk=function(){throw Q(new Hn)},g.Nk=function(){throw Q(new Hn)},g.Ok=function(){return this.d},g.Pk=function(){return this.e!=null},g.Qk=function(t){this.c=t},g.Rk=function(t){throw Q(new Hn)},g.Sk=function(t){throw Q(new Hn)},g.Tk=function(t){this.d=t};var ARt,Lsr=I(en,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060);T(195,2060,{115:1},of),g.Mk=function(){return this.a},g.Nk=function(){return this.b},g.Rk=function(t){this.a=t},g.Sk=function(t){this.b=t};var Dsr=I(en,"BasicEObjectImpl/EPropertiesHolderImpl",195);T(505,101,iwt,l_),g.rh=function(){return this.f},g.wh=function(){return this.k},g.yh=function(t,n){this.g=t,this.i=n},g.Ah=function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},g.Ch=function(){return this.i},g.th=function(){return(this.j&1)!=0},g.Mh=function(){return this.g},g.Sh=function(){return(this.j&4)!=0},g.Xh=function(){return!this.k&&(this.k=new of),this.k},g._h=function(t){this.Xh().Qk(t),t?this.j|=2:this.j&=-3},g.bi=function(t){this.Xh().Sk(t),t?this.j|=4:this.j&=-5},g.fi=function(){return(Jp(),Kt).S},g.i=0,g.j=1;var Fsr=I(en,"EObjectImpl",505);T(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},$ge),g.ii=function(t){return this.e[t]},g.ji=function(t,n){this.e[t]=n},g.ki=function(t){this.e[t]=null},g.Ah=function(){return this.d},g.Fh=function(t){return ei(this.d,t)},g.Hh=function(){return this.d},g.Lh=function(){return this.e!=null},g.Xh=function(){return!this.k&&(this.k=new dBe),this.k},g._h=function(t){this.d=t},g.ei=function(){var t;return this.e==null&&(t=vn(this.d),this.e=t==0?vRt:Te(Wi,zt,1,t,5,1)),this},g.gi=function(){return 0};var vRt,_sr=I(en,"DynamicEObjectImpl",792);T(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},BZe),g.Fb=function(t){return this===t},g.Hb=function(){return Vy(this)},g._h=function(t){this.d=t,this.b=qL(t,"key"),this.c=qL(t,FP)},g.yi=function(){var t;return this.a==-1&&(t=NY(this,this.b),this.a=t==null?0:Wr(t)),this.a},g.jd=function(){return NY(this,this.b)},g.kd=function(){return NY(this,this.c)},g.zi=function(t){this.a=t},g.Ai=function(t){Nme(this,this.b,t)},g.ld=function(t){var n;return n=NY(this,this.c),Nme(this,this.c,t),n},g.a=0;var jsr=I(en,"DynamicEObjectImpl/BasicEMapEntry",1500);T(1501,1,{115:1},dBe),g.Kk=function(t){throw Q(new Hn)},g.ii=function(t){throw Q(new Hn)},g.ji=function(t,n){throw Q(new Hn)},g.ki=function(t){throw Q(new Hn)},g.Lk=function(){throw Q(new Hn)},g.Mk=function(){return this.a},g.Nk=function(){return this.b},g.Ok=function(){return this.c},g.Pk=function(){throw Q(new Hn)},g.Qk=function(t){throw Q(new Hn)},g.Rk=function(t){this.a=t},g.Sk=function(t){this.b=t},g.Tk=function(t){this.c=t};var Bsr=I(en,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501);T(508,162,{110:1,95:1,94:1,594:1,159:1,57:1,115:1,52:1,101:1,508:1,162:1,118:1,119:1},jue),g.xh=function(t){return aye(this,t)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.d;case 2:return o?(!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),this.b):(!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),Y4(this.b));case 3:return wnt(this);case 4:return!this.a&&(this.a=new Ni(Lb,this,4)),this.a;case 5:return!this.c&&(this.c=new hv(Lb,this,5)),this.c}return Mu(this,t-vn((Nt(),bp)),jt((a=d(nn(this,16),29),a||bp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 3:return this.Cb&&(o=(l=this.Db>>16,l>=0?aye(this,o):this.Cb.Qh(this,-1-l,null,o))),Uge(this,d(t,159),o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),bp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),bp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 2:return!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),L8(this.b,t,o);case 3:return Uge(this,null,o);case 4:return!this.a&&(this.a=new Ni(Lb,this,4)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),bp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),bp)),t,o)},g.Th=function(t){var n;switch(t){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!!wnt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Eu(this,t-vn((Nt(),bp)),jt((n=d(nn(this,16),29),n||bp),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:iYt(this,Jn(n));return;case 2:!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),wj(this.b,n);return;case 3:Rgt(this,d(n,159));return;case 4:!this.a&&(this.a=new Ni(Lb,this,4)),Ln(this.a),!this.a&&(this.a=new Ni(Lb,this,4)),gi(this.a,d(n,18));return;case 5:!this.c&&(this.c=new hv(Lb,this,5)),Ln(this.c),!this.c&&(this.c=new hv(Lb,this,5)),gi(this.c,d(n,18));return}Nu(this,t-vn((Nt(),bp)),jt((o=d(nn(this,16),29),o||bp),t),n)},g.fi=function(){return Nt(),bp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:obe(this,null);return;case 2:!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),this.b.c.$b();return;case 3:Rgt(this,null);return;case 4:!this.a&&(this.a=new Ni(Lb,this,4)),Ln(this.a);return;case 5:!this.c&&(this.c=new hv(Lb,this,5)),Ln(this.c);return}Pu(this,t-vn((Nt(),bp)),jt((n=d(nn(this,16),29),n||bp),t))},g.Ib=function(){return plt(this)},g.d=null;var Gsr=I(en,"EAnnotationImpl",508);T(145,718,C2e,Vc),g.Ei=function(t,n){kHt(this,t,d(n,45))},g.Uk=function(t,n){return EJt(this,d(t,45),n)},g.Yi=function(t){return d(d(this.c,72).Yi(t),138)},g.Gi=function(){return d(this.c,72).Gi()},g.Hi=function(){return d(this.c,72).Hi()},g.Ii=function(t){return d(this.c,72).Ii(t)},g.Vk=function(t,n){return L8(this,t,n)},g.Dk=function(t){return d(this.c,78).Dk(t)},g.$j=function(){},g.Oj=function(){return d(this.c,78).Oj()},g.ak=function(t,n,o){var a;return a=d(iu(this.b).ti().pi(this.b),138),a.zi(t),a.Ai(n),a.ld(o),a},g.bk=function(){return new vde(this)},g.Wb=function(t){wj(this,t)},g.Ek=function(){d(this.c,78).Ek()};var zsr=I(Kr,"EcoreEMap",145);T(170,145,C2e,Fl),g.Zj=function(){var t,n,o,a,l,h;if(this.d==null){for(h=Te(mRe,E2e,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)n=d(o.Wj(),138),a=n.yi(),l=(a&pr)%h.length,t=h[l],!t&&(t=h[l]=new vde(this)),t.Ec(n);this.d=h}};var Wsr=I(en,"EAnnotationImpl/1",170);T(294,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,473:1,52:1,101:1,162:1,294:1,118:1,119:1}),g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!this.Hk();case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n,o;switch(t){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.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0)}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:this.ri(Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:this.Xk(d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),xRt},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:this.ri(null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.Xk(1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){od(this),this.Bb|=1},g.Fk=function(){return od(this)},g.Gk=function(){return this.t},g.Hk=function(){var t;return t=this.t,t>1||t==-1},g.Qi=function(){return(this.Bb&512)!=0},g.Wk=function(t,n){return n1e(this,t,n)},g.Xk=function(t){nx(this,t)},g.Ib=function(){return y0e(this)},g.s=0,g.t=1;var Hsr=I(en,"ETypedElementImpl",294);T(454,294,{110:1,95:1,94:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,454:1,294:1,118:1,119:1,689:1}),g.xh=function(t){return cdt(this,t)},g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!this.Hk();case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this)}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 17:return this.Cb&&(o=(l=this.Db>>16,l>=0?cdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,17,o)}return h=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),h.uk().xk(this,bc(this),n-vn(this.fi()),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 17:return lu(this,null,17,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n,o;switch(t){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.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this)}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:this.Xk(d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),wRt},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.Xk(1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.nk=function(){return this.f},g.gk=function(){return AM(this)},g.ok=function(){return Yw(this)},g.sk=function(){return null},g.Yk=function(){return this.k},g.Jj=function(){return this.n},g.tk=function(){return aB(this)},g.uk=function(){var t,n,o,a,l,h,b,w,A;return this.p||(o=Yw(this),(o.i==null&&vh(o),o.i).length,a=this.sk(),a&&vn(Yw(a)),l=od(this),b=l.ik(),t=b?(b.i&1)!=0?b==Gc?ci:b==qn?Fi:b==gA?fT:b==lo?Ci:b==nw?F0:b==$2?_0:b==tl?NS:VP:b:null,n=AM(this),w=l.gk(),Qin(this),(this.Bb&kh)!=0&&((h=gye((Kc(),So),o))&&h!=this||(h=qk(vs(So,this))))?this.p=new kXe(this,h):this.Hk()?this.$k()?a?(this.Bb&Zc)!=0?t?this._k()?this.p=new b1(47,t,this,a):this.p=new b1(5,t,this,a):this._k()?this.p=new k1(46,this,a):this.p=new k1(4,this,a):t?this._k()?this.p=new b1(49,t,this,a):this.p=new b1(7,t,this,a):this._k()?this.p=new k1(48,this,a):this.p=new k1(6,this,a):(this.Bb&Zc)!=0?t?t==V1?this.p=new zm(50,tRt,this):this._k()?this.p=new zm(43,t,this):this.p=new zm(1,t,this):this._k()?this.p=new Hm(42,this):this.p=new Hm(0,this):t?t==V1?this.p=new zm(41,tRt,this):this._k()?this.p=new zm(45,t,this):this.p=new zm(3,t,this):this._k()?this.p=new Hm(44,this):this.p=new Hm(2,this):fe(l,160)?t==hW?this.p=new Hm(40,this):(this.Bb&512)!=0?(this.Bb&Zc)!=0?t?this.p=new zm(9,t,this):this.p=new Hm(8,this):t?this.p=new zm(11,t,this):this.p=new Hm(10,this):(this.Bb&Zc)!=0?t?this.p=new zm(13,t,this):this.p=new Hm(12,this):t?this.p=new zm(15,t,this):this.p=new Hm(14,this):a?(A=a.t,A>1||A==-1?this._k()?(this.Bb&Zc)!=0?t?this.p=new b1(25,t,this,a):this.p=new k1(24,this,a):t?this.p=new b1(27,t,this,a):this.p=new k1(26,this,a):(this.Bb&Zc)!=0?t?this.p=new b1(29,t,this,a):this.p=new k1(28,this,a):t?this.p=new b1(31,t,this,a):this.p=new k1(30,this,a):this._k()?(this.Bb&Zc)!=0?t?this.p=new b1(33,t,this,a):this.p=new k1(32,this,a):t?this.p=new b1(35,t,this,a):this.p=new k1(34,this,a):(this.Bb&Zc)!=0?t?this.p=new b1(37,t,this,a):this.p=new k1(36,this,a):t?this.p=new b1(39,t,this,a):this.p=new k1(38,this,a)):this._k()?(this.Bb&Zc)!=0?t?this.p=new zm(17,t,this):this.p=new Hm(16,this):t?this.p=new zm(19,t,this):this.p=new Hm(18,this):(this.Bb&Zc)!=0?t?this.p=new zm(21,t,this):this.p=new Hm(20,this):t?this.p=new zm(23,t,this):this.p=new Hm(22,this):this.Zk()?this._k()?this.p=new gZe(d(l,29),this,a):this.p=new Pme(d(l,29),this,a):fe(l,160)?t==hW?this.p=new Hm(40,this):(this.Bb&Zc)!=0?t?this.p=new fet(n,w,this,(DX(),b==qn?PRe:b==Gc?MRe:b==nw?NRe:b==gA?RRe:b==lo?$Re:b==$2?ORe:b==tl?TRe:b==Wu?IRe:goe)):this.p=new $tt(d(l,160),n,w,this):t?this.p=new det(n,w,this,(DX(),b==qn?PRe:b==Gc?MRe:b==nw?NRe:b==gA?RRe:b==lo?$Re:b==$2?ORe:b==tl?TRe:b==Wu?IRe:goe)):this.p=new Itt(d(l,160),n,w,this):this.$k()?a?(this.Bb&Zc)!=0?this._k()?this.p=new pZe(d(l,29),this,a):this.p=new xge(d(l,29),this,a):this._k()?this.p=new mZe(d(l,29),this,a):this.p=new lV(d(l,29),this,a):(this.Bb&Zc)!=0?this._k()?this.p=new lQe(d(l,29),this):this.p=new Lhe(d(l,29),this):this._k()?this.p=new cQe(d(l,29),this):this.p=new Vq(d(l,29),this):this._k()?a?(this.Bb&Zc)!=0?this.p=new bZe(d(l,29),this,a):this.p=new yge(d(l,29),this,a):(this.Bb&Zc)!=0?this.p=new dQe(d(l,29),this):this.p=new Dhe(d(l,29),this):a?(this.Bb&Zc)!=0?this.p=new yZe(d(l,29),this,a):this.p=new wge(d(l,29),this,a):(this.Bb&Zc)!=0?this.p=new uQe(d(l,29),this):this.p=new Z8(d(l,29),this)),this.p},g.pk=function(){return(this.Bb&sd)!=0},g.Zk=function(){return!1},g.$k=function(){return!1},g.qk=function(){return(this.Bb&kh)!=0},g.vk=function(){return LY(this)},g._k=function(){return!1},g.rk=function(){return(this.Bb&Zc)!=0},g.al=function(t){this.k=t},g.ri=function(t){oY(this,t)},g.Ib=function(){return RB(this)},g.e=!1,g.n=0;var Usr=I(en,"EStructuralFeatureImpl",454);T(336,454,{110:1,95:1,94:1,38:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,336:1,162:1,454:1,294:1,118:1,119:1,689:1},MJ),g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!f0e(this);case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this);case 18:return Ut(),(this.Bb&ma)!=0;case 19:return n?rX(this):_it(this)}return Mu(this,t-vn((Nt(),dA)),jt((a=d(nn(this,16),29),a||dA),t),n,o)},g.Th=function(t){var n,o;switch(t){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 f0e(this);case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this);case 18:return(this.Bb&ma)!=0;case 19:return!!_it(this)}return Eu(this,t-vn((Nt(),dA)),jt((n=d(nn(this,16),29),n||dA),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:Hqe(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return;case 18:MX(this,it(rt(n)));return}Nu(this,t-vn((Nt(),dA)),jt((o=d(nn(this,16),29),o||dA),t),n)},g.fi=function(){return Nt(),dA},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.b=0,nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return;case 18:MX(this,!1);return}Pu(this,t-vn((Nt(),dA)),jt((n=d(nn(this,16),29),n||dA),t))},g.mi=function(){rX(this),NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.Hk=function(){return f0e(this)},g.Wk=function(t,n){return this.b=0,this.a=null,n1e(this,t,n)},g.Xk=function(t){Hqe(this,t)},g.Ib=function(){var t;return(this.Db&64)!=0?RB(this):(t=new Zu(RB(this)),t.a+=" (iD: ",Fm(t,(this.Bb&ma)!=0),t.a+=")",t.a)},g.b=0;var Jsr=I(en,"EAttributeImpl",336);T(361,444,{110:1,95:1,94:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1}),g.bl=function(t){return t.Ah()==this},g.xh=function(t){return cK(this,t)},g.yh=function(t,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=t},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return this.gk();case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o)}return h=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),h.uk().xk(this,bc(this),n-vn(this.fi()),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n;switch(t){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!!y0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),hRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.fk=function(){var t;return this.G==-1&&(this.G=(t=iu(this),t?ep(t.si(),this):-1)),this.G},g.gk=function(){return null},g.hk=function(){return iu(this)},g.cl=function(){return this.v},g.ik=function(){return y0(this)},g.jk=function(){return this.D!=null?this.D:this.B},g.kk=function(){return this.F},g.dk=function(t){return KK(this,t)},g.dl=function(t){this.v=t},g.el=function(t){Sat(this,t)},g.fl=function(t){this.C=t},g.ri=function(t){M9(this,t)},g.Ib=function(){return jj(this)},g.C=null,g.D=null,g.G=-1;var qsr=I(en,"EClassifierImpl",361);T(89,361,{110:1,95:1,94:1,29:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,89:1,361:1,162:1,474:1,118:1,119:1,688:1},Hue),g.bl=function(t){return uJt(this,t.Ah())},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return null;case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0;case 9:return Ut(),(this.Bb&512)!=0;case 10:return Rs(this);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),this.q;case 12:return Fv(this);case 13:return dP(this);case 14:return dP(this),this.r;case 15:return Fv(this),this.k;case 16:return t0e(this);case 17:return tQ(this);case 18:return vh(this);case 19:return kB(this);case 20:return Fv(this),this.o;case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),this.s;case 22:return Ma(this);case 23:return GK(this)}return Mu(this,t-vn((Nt(),Fb)),jt((a=d(nn(this,16),29),a||Fb),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),sc(this.q,t,o);case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),sc(this.s,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),Fb)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),Fb)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),Go(this.q,t,o);case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),Go(this.s,t,o);case 22:return Go(Ma(this),t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),Fb)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),Fb)),t,o)},g.Th=function(t){var n;switch(t){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!!y0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(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&&Ma(this.u.a).i!=0&&!(this.n&&KX(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Fv(this).i!=0;case 13:return dP(this).i!=0;case 14:return dP(this),this.r.i!=0;case 15:return Fv(this),this.k.i!=0;case 16:return t0e(this).i!=0;case 17:return tQ(this).i!=0;case 18:return vh(this).i!=0;case 19:return kB(this).i!=0;case 20:return Fv(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&KX(this.n);case 23:return GK(this).i!=0}return Eu(this,t-vn((Nt(),Fb)),jt((n=d(nn(this,16),29),n||Fb),t))},g.Wh=function(t){var n;return n=this.i==null||this.q&&this.q.i!=0?null:qL(this,t),n||Hwe(this,t)},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:o1e(this,it(rt(n)));return;case 9:s1e(this,it(rt(n)));return;case 10:gP(Rs(this)),gi(Rs(this),d(n,18));return;case 11:!this.q&&(this.q=new Le(pd,this,11,10)),Ln(this.q),!this.q&&(this.q=new Le(pd,this,11,10)),gi(this.q,d(n,18));return;case 21:!this.s&&(this.s=new Le(Bc,this,21,17)),Ln(this.s),!this.s&&(this.s=new Le(Bc,this,21,17)),gi(this.s,d(n,18));return;case 22:Ln(Ma(this)),gi(Ma(this),d(n,18));return}Nu(this,t-vn((Nt(),Fb)),jt((o=d(nn(this,16),29),o||Fb),t),n)},g.fi=function(){return Nt(),Fb},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:o1e(this,!1);return;case 9:s1e(this,!1);return;case 10:this.u&&gP(this.u);return;case 11:!this.q&&(this.q=new Le(pd,this,11,10)),Ln(this.q);return;case 21:!this.s&&(this.s=new Le(Bc,this,21,17)),Ln(this.s);return;case 22:this.n&&Ln(this.n);return}Pu(this,t-vn((Nt(),Fb)),jt((n=d(nn(this,16),29),n||Fb),t))},g.mi=function(){var t,n;if(Fv(this),dP(this),t0e(this),tQ(this),vh(this),kB(this),GK(this),xR(BVt(xl(this))),this.s)for(t=0,n=this.s.i;t<n;++t)A4(ue(this.s,t));if(this.q)for(t=0,n=this.q.i;t<n;++t)A4(ue(this.q,t));Km((Kc(),So),this).ve(),this.Bb|=1},g.Ib=function(){return Aye(this)},g.k=null,g.r=null;var dN,kRt,foe,Vsr=I(en,"EClassImpl",89);T(2071,2070,axt),g.Ci=function(t,n){return QK(this,t,n)},g.Di=function(t){return QK(this,this.i,t)},g.Ei=function(t,n){b0e(this,t,n)},g.Fi=function(t){OK(this,t)},g.Uk=function(t,n){return sc(this,t,n)},g.Yi=function(t){return Npe(this,t)},g.Vk=function(t,n){return Go(this,t,n)},g.Vi=function(t,n){return kpt(this,t,n)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)};var Ysr=I(Kr,"NotifyingInternalEListImpl",2071);T(630,2071,Fs),g.Gc=function(t){return Hpt(this,t)},g.Gj=function(t,n,o,a,l){return gR(this,t,n,o,a,l)},g.Hj=function(t){oC(this,t)},g.Dk=function(t){return this},g.Jk=function(){return jt(this.e.Ah(),this.Jj())},g.Ij=function(){return this.Jk()},g.Jj=function(){return ei(this.e.Ah(),this.Jk())},g.gl=function(){return d(this.Jk().Fk(),29).ik()},g.hl=function(){return Ko(d(this.Jk(),20)).n},g.hj=function(){return this.e},g.il=function(){return!0},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!1},g.bd=function(t){return ep(this,t)},g.Lj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Oh(this.e,this.hl(),this.gl(),n):o.Oh(this.e,ei(o.Ah(),Ko(d(this.Jk(),20))),null,n):o.Oh(this.e,-1-this.Jj(),null,n)},g.Mj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Qh(this.e,this.hl(),this.gl(),n):o.Qh(this.e,ei(o.Ah(),Ko(d(this.Jk(),20))),null,n):o.Qh(this.e,-1-this.Jj(),null,n)},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return Brt(this.d,t)},g.Nj=function(){return Ll(this.e)},g.Oj=function(){return this.i!=0},g.$i=function(t){return cL(this.d,t)},g.Ui=function(t,n){return this.ml()&&this.ll()?bS(this,t,d(n,57)):n},g.nl=function(t){return t.Sh()?ib(this.e,d(t,52)):t},g.Wb=function(t){gKe(this,t)},g.Nc=function(){return Aot(this)},g.Oc=function(t){var n;if(this.ll())for(n=this.i-1;n>=0;--n)ue(this,n);return I1e(this,t)},g.Ek=function(){Ln(this)},g.Xi=function(t,n){return Qst(this,t,n)};var Xsr=I(Kr,"EcoreEList",630);T(494,630,Fs,P4),g.Ji=function(){return!1},g.Jj=function(){return this.c},g.Kj=function(){return!1},g.ml=function(){return!0},g.Qi=function(){return!0},g.Ui=function(t,n){return n},g.Wi=function(){return!1},g.c=0;var Ksr=I(Kr,"EObjectEList",494);T(82,494,Fs,Ni),g.Kj=function(){return!0},g.kl=function(){return!1},g.$k=function(){return!0};var Qsr=I(Kr,"EObjectContainmentEList",82);T(547,82,Fs,C8),g.Li=function(){this.b=!0},g.Oj=function(){return this.b},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.b,this.b=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.b=!1},g.b=!1;var Zsr=I(Kr,"EObjectContainmentEList/Unsettable",547);T(1142,547,Fs,cet),g.Ri=function(t,n){var o,a;return o=d(jR(this,t,n),88),Ll(this.e)&&oC(this,new X4(this.a,7,(Nt(),gRt),Ge(n),(a=o.c,fe(a,89)?d(a,29):yd),t)),o},g.Sj=function(t,n){return Pon(this,d(t,88),n)},g.Tj=function(t,n){return Ron(this,d(t,88),n)},g.Uj=function(t,n,o){return Lcn(this,d(t,88),d(n,88),o)},g.Gj=function(t,n,o,a,l){switch(t){case 3:return gR(this,t,n,o,a,this.i>1);case 5:return gR(this,t,n,o,a,this.i-d(o,16).gc()>0);default:return new Gg(this.e,t,this.c,n,o,a,!0)}},g.Rj=function(){return!0},g.Oj=function(){return KX(this)},g.Ek=function(){Ln(this)};var ear=I(en,"EClassImpl/1",1142);T(1156,1155,S2e),g.bj=function(t){var n,o,a,l,h,b,w;if(o=t.ej(),o!=8){if(a=hsn(t),a==0)switch(o){case 1:case 9:{w=t.ij(),w!=null&&(n=xl(d(w,474)),!n.c&&(n.c=new ZE),Q9(n.c,t.hj())),b=t.gj(),b!=null&&(l=d(b,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29))));break}case 3:{b=t.gj(),b!=null&&(l=d(b,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29))));break}case 5:{if(b=t.gj(),b!=null)for(h=d(b,18).Jc();h.Ob();)l=d(h.Pb(),474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29)));break}case 4:{w=t.ij(),w!=null&&(l=d(w,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),Q9(n.c,t.hj())));break}case 6:{if(w=t.ij(),w!=null)for(h=d(w,18).Jc();h.Ob();)l=d(h.Pb(),474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),Q9(n.c,t.hj()));break}}this.ol(a)}},g.ol=function(t){bmt(this,t)},g.b=63;var tar=I(en,"ESuperAdapter",1156);T(1157,1156,S2e,cJe),g.ol=function(t){mx(this,t)};var nar=I(en,"EClassImpl/10",1157);T(1146,706,Fs),g.Ci=function(t,n){return xK(this,t,n)},g.Di=function(t){return Jut(this,t)},g.Ei=function(t,n){vL(this,t,n)},g.Fi=function(t){J4(this,t)},g.Yi=function(t){return Npe(this,t)},g.Vi=function(t,n){return OY(this,t,n)},g.Uk=function(t,n){throw Q(new Hn)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)},g.Vk=function(t,n){throw Q(new Hn)},g.Dk=function(t){return this},g.Oj=function(){return this.i!=0},g.Wb=function(t){throw Q(new Hn)},g.Ek=function(){throw Q(new Hn)};var rar=I(Kr,"EcoreEList/UnmodifiableEList",1146);T(334,1146,Fs,av),g.Wi=function(){return!1};var iar=I(Kr,"EcoreEList/UnmodifiableEList/FastCompare",334);T(1149,334,Fs,bct),g.bd=function(t){var n,o,a;if(fe(t,182)&&(n=d(t,182),o=n.Jj(),o!=-1)){for(a=this.i;o<a;++o)if(Ee(this.g[o])===Ee(t))return o}return-1};var oar=I(en,"EClassImpl/1EAllStructuralFeaturesList",1149);T(1143,495,$h,fBe),g.$i=function(t){return Te(as,cxt,88,t,0,1)},g.Wi=function(){return!1};var sar=I(en,"EClassImpl/1EGenericSuperTypeEList",1143);T(631,495,$h,sJ),g.$i=function(t){return Te(Bc,Yv,182,t,0,1)},g.Wi=function(){return!1};var aar=I(en,"EClassImpl/1EStructuralFeatureUniqueEList",631);T(750,495,$h,Bue),g.$i=function(t){return Te(uA,Yv,20,t,0,1)},g.Wi=function(){return!1};var car=I(en,"EClassImpl/1ReferenceList",750);T(1144,495,$h,lJe),g.Ki=function(t,n){CYt(this,d(n,38))},g.$i=function(t){return Te(lA,Yv,38,t,0,1)},g.Wi=function(){return!1};var lar=I(en,"EClassImpl/2",1144);T(1145,495,$h,hBe),g.$i=function(t){return Te(lA,Yv,38,t,0,1)},g.Wi=function(){return!1};var uar=I(en,"EClassImpl/3",1145);T(1147,334,Fs,SZe),g.Ec=function(t){return ZZt(this,d(t,38))},g.Fi=function(t){CWt(this,d(t,38))};var dar=I(en,"EClassImpl/4",1147);T(1148,334,Fs,EZe),g.Ec=function(t){return een(this,d(t,20))},g.Fi=function(t){MWt(this,d(t,20))};var far=I(en,"EClassImpl/5",1148);T(1150,495,$h,gBe),g.$i=function(t){return Te(pd,M2e,62,t,0,1)},g.Wi=function(){return!1};var har=I(en,"EClassImpl/6",1150);T(1151,495,$h,mBe),g.$i=function(t){return Te(uA,Yv,20,t,0,1)},g.Wi=function(){return!1};var gar=I(en,"EClassImpl/7",1151);T(2074,2073,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,72:1}),g.Ci=function(t,n){return ywe(this,t,n)},g.Di=function(t){return ywe(this,this.Cj(),t)},g.Ei=function(t,n){Jht(this,t,n)},g.Fi=function(t){Lht(this,t)},g.Uk=function(t,n){return oan(this,t,n)},g.Vk=function(t,n){return Osn(this,t,n)},g.Vi=function(t,n){return opt(this,t,n)},g.Yi=function(t){return this.vj(t)},g.Gi=function(){return new Nk(this)},g.nj=function(){return this.qj()},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)};var mar=I(Kr,"DelegatingNotifyingInternalEListImpl",2074);T(751,2074,T2e),g.Ji=function(){var t;return t=jt(Ic(this.b),this.Jj()).Fk(),fe(t,160)&&!fe(t,462)&&(t.ik().i&1)==0},g.Gc=function(t){var n,o,a,l,h,b,w,A;if(this.ml()){if(A=this.Cj(),A>4)if(this.dk(t)){if(this.$k()){if(a=d(t,52),o=a.Bh(),w=o==this.b&&(this.kl()?a.vh(a.Ch(),d(jt(Ic(this.b),this.Jj()).Fk(),29).ik())==Ko(d(jt(Ic(this.b),this.Jj()),20)).n:-1-a.Ch()==this.Jj()),this.ll()&&!w&&!o&&a.Gh()){for(l=0;l<A;++l)if(n=EV(this,this.vj(l)),Ee(n)===Ee(t))return!0}return w}else if(this.kl()&&!this.jl()){if(h=d(t,57).Jh(Ko(d(jt(Ic(this.b),this.Jj()),20))),Ee(h)===Ee(this.b))return!0;if(h==null||!d(h,57).Sh())return!1}}else return!1;if(b=this.sj(t),this.ll()&&!b){for(l=0;l<A;++l)if(a=EV(this,this.vj(l)),Ee(a)===Ee(t))return!0}return b}else return this.sj(t)},g.Gj=function(t,n,o,a,l){return new Gg(this.b,t,this.Jj(),n,o,a,l)},g.Hj=function(t){kr(this.b,t)},g.Dk=function(t){return this},g.Ij=function(){return jt(Ic(this.b),this.Jj())},g.Jj=function(){return ei(Ic(this.b),jt(Ic(this.b),this.Jj()))},g.hj=function(){return this.b},g.il=function(){return!!jt(Ic(this.b),this.Jj()).Fk().ik()},g.Kj=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&ma)!=0||!!Ko(d(n,20))):!1},g.jl=function(){var t,n,o,a;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),o=Ko(t),!!o&&(a=o.t,a>1||a==-1)):!1},g.kl=function(){var t,n,o;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),o=Ko(t),!!o):!1},g.ll=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&Jo)!=0):!1},g.bd=function(t){var n,o,a,l;if(a=this.xj(t),a>=0)return a;if(this.ml()){for(o=0,l=this.Cj();o<l;++o)if(n=EV(this,this.vj(o)),Ee(n)===Ee(t))return o}return-1},g.Lj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Oh(this.b,Ko(d(jt(Ic(this.b),this.Jj()),20)).n,d(jt(Ic(this.b),this.Jj()).Fk(),29).ik(),n):o.Oh(this.b,ei(o.Ah(),Ko(d(jt(Ic(this.b),this.Jj()),20))),null,n):o.Oh(this.b,-1-this.Jj(),null,n)},g.Mj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Qh(this.b,Ko(d(jt(Ic(this.b),this.Jj()),20)).n,d(jt(Ic(this.b),this.Jj()).Fk(),29).ik(),n):o.Qh(this.b,ei(o.Ah(),Ko(d(jt(Ic(this.b),this.Jj()),20))),null,n):o.Qh(this.b,-1-this.Jj(),null,n)},g.$k=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&ma)!=0):!1},g.ml=function(){return fe(jt(Ic(this.b),this.Jj()).Fk(),89)},g.dk=function(t){return jt(Ic(this.b),this.Jj()).Fk().dk(t)},g.Nj=function(){return Ll(this.b)},g.Oj=function(){return!this.yj()},g.Qi=function(){return jt(Ic(this.b),this.Jj()).Qi()},g.Ui=function(t,n){return eD(this,t,n)},g.Wb=function(t){gP(this),gi(this,d(t,16))},g.Nc=function(){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)eD(this,t,this.vj(t));return this.Dj()},g.Oc=function(t){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)eD(this,n,this.vj(n));return this.Ej(t)},g.Ek=function(){gP(this)},g.Xi=function(t,n){return xot(this,t,n)};var par=I(Kr,"DelegatingEcoreEList",751);T(1152,751,T2e,vQe),g.oj=function(t,n){NUt(this,t,d(n,29))},g.pj=function(t){EHt(this,d(t,29))},g.vj=function(t){var n,o;return n=d(ue(Ma(this.a),t),88),o=n.c,fe(o,89)?d(o,29):(Nt(),yd)},g.Aj=function(t){var n,o;return n=d(yx(Ma(this.a),t),88),o=n.c,fe(o,89)?d(o,29):(Nt(),yd)},g.Bj=function(t,n){return san(this,t,d(n,29))},g.Ji=function(){return!1},g.Gj=function(t,n,o,a,l){return null},g.qj=function(){return new uJe(this)},g.rj=function(){Ln(Ma(this.a))},g.sj=function(t){return blt(this,t)},g.tj=function(t){var n,o;for(o=t.Jc();o.Ob();)if(n=o.Pb(),!blt(this,n))return!1;return!0},g.uj=function(t){var n,o,a;if(fe(t,16)&&(a=d(t,16),a.gc()==Ma(this.a).i)){for(n=a.Jc(),o=new fn(this);n.Ob();)if(Ee(n.Pb())!==Ee(bn(o)))return!1;return!0}return!1},g.wj=function(){var t,n,o,a,l;for(o=1,n=new fn(Ma(this.a));n.e!=n.i.gc();)t=d(bn(n),88),a=(l=t.c,fe(l,89)?d(l,29):(Nt(),yd)),o=31*o+(a?Vy(a):0);return o},g.xj=function(t){var n,o,a,l;for(a=0,o=new fn(Ma(this.a));o.e!=o.i.gc();){if(n=d(bn(o),88),Ee(t)===Ee((l=n.c,fe(l,89)?d(l,29):(Nt(),yd))))return a;++a}return-1},g.yj=function(){return Ma(this.a).i==0},g.zj=function(){return null},g.Cj=function(){return Ma(this.a).i},g.Dj=function(){var t,n,o,a,l,h;for(h=Ma(this.a).i,l=Te(Wi,zt,1,h,5,1),o=0,n=new fn(Ma(this.a));n.e!=n.i.gc();)t=d(bn(n),88),l[o++]=(a=t.c,fe(a,89)?d(a,29):(Nt(),yd));return l},g.Ej=function(t){var n,o,a,l,h,b,w;for(w=Ma(this.a).i,t.length<w&&(l=cL(zl(t).c,w),t=l),t.length>w&&yi(t,w,null),a=0,o=new fn(Ma(this.a));o.e!=o.i.gc();)n=d(bn(o),88),h=(b=n.c,fe(b,89)?d(b,29):(Nt(),yd)),yi(t,a++,h);return t},g.Fj=function(){var t,n,o,a,l;for(l=new Dm,l.a+="[",t=Ma(this.a),n=0,a=Ma(this.a).i;n<a;)ds(l,X$((o=d(ue(t,n),88).c,fe(o,89)?d(o,29):(Nt(),yd)))),++n<a&&(l.a+=ac);return l.a+="]",l.a},g.Hj=function(t){},g.Jj=function(){return 10},g.il=function(){return!0},g.Kj=function(){return!1},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!0},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return fe(t,89)},g.Oj=function(){return JQt(this.a)},g.Qi=function(){return!0},g.Wi=function(){return!0};var bar=I(en,"EClassImpl/8",1152);T(1153,2041,LM,uJe),g.dd=function(t){return lL(this.a,t)},g.gc=function(){return Ma(this.a.a).i};var yar=I(en,"EClassImpl/8/1",1153);T(1154,495,$h,pBe),g.$i=function(t){return Te(kf,zt,146,t,0,1)},g.Wi=function(){return!1};var war=I(en,"EClassImpl/9",1154);T(1141,47,axe,eqe);var xar=I(en,"EClassImpl/MyHashSet",1141);T(570,361,{110:1,95:1,94:1,146:1,160:1,839:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1},x_),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return this.gk();case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Th=function(t){var n;switch(t){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!!y0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:Pj(this,it(rt(n)));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),mRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:Pj(this,!0);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){Km((Kc(),So),this).ve(),this.Bb|=1},g.mk=function(){var t,n,o;if(!this.c&&(t=sgt(iu(this)),!t.dc()))for(o=t.Jc();o.Ob();)n=Jn(o.Pb()),cP(this,n)&&jin(this);return this.b},g.gk=function(){var t;if(!this.e){t=null;try{t=y0(this)}catch(n){if(n=ki(n),!fe(n,102))throw Q(n)}this.d=null,t&&(t.i&1)!=0&&(t==Gc?this.d=(Ut(),wb):t==qn?this.d=Ge(0):t==gA?this.d=new zO(0):t==lo?this.d=0:t==nw?this.d=ux(0):t==$2?this.d=iM(0):t==tl?this.d=rL(0):this.d=hL(0)),this.e=!0}return this.d},g.lk=function(){return(this.Bb&256)!=0},g.pl=function(t){t&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},g.el=function(t){Sat(this,t),this.pl(t)},g.fl=function(t){this.C=t,this.e=!1},g.Ib=function(){var t;return(this.Db&64)!=0?jj(this):(t=new Zu(jj(this)),t.a+=" (serializable: ",Fm(t,(this.Bb&256)!=0),t.a+=")",t.a)},g.c=!1,g.d=null,g.e=!1;var Aar=I(en,"EDataTypeImpl",570);T(462,570,{110:1,95:1,94:1,146:1,160:1,839:1,682:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,462:1,162:1,118:1,119:1,688:1},tqe),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return Jbe(this);case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new Le(um,this,9,5)),this.a}return Mu(this,t-vn((Nt(),_b)),jt((a=d(nn(this,16),29),a||_b),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o);case 9:return!this.a&&(this.a=new Le(um,this,9,5)),sc(this.a,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),_b)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),_b)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o);case 9:return!this.a&&(this.a=new Le(um,this,9,5)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),_b)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),_b)),t,o)},g.Th=function(t){var n;switch(t){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!!y0(this);case 4:return!!Jbe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(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 Eu(this,t-vn((Nt(),_b)),jt((n=d(nn(this,16),29),n||_b),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:Pj(this,it(rt(n)));return;case 9:!this.a&&(this.a=new Le(um,this,9,5)),Ln(this.a),!this.a&&(this.a=new Le(um,this,9,5)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),_b)),jt((o=d(nn(this,16),29),o||_b),t),n)},g.fi=function(){return Nt(),_b},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:Pj(this,!0);return;case 9:!this.a&&(this.a=new Le(um,this,9,5)),Ln(this.a);return}Pu(this,t-vn((Nt(),_b)),jt((n=d(nn(this,16),29),n||_b),t))},g.mi=function(){var t,n;if(this.a)for(t=0,n=this.a.i;t<n;++t)A4(ue(this.a,t));Km((Kc(),So),this).ve(),this.Bb|=1},g.gk=function(){return Jbe(this)},g.dk=function(t){return t!=null},g.pl=function(t){};var kar=I(en,"EEnumImpl",462);T(575,444,{110:1,95:1,94:1,2018:1,691:1,159:1,199:1,57:1,115:1,52:1,101:1,575:1,162:1,118:1,119:1},yJe),g.ve=function(){return this.zb},g.xh=function(t){return wdt(this,t)},g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ge(this.d);case 3:return this.b?this.b:this.a;case 4:return l=this.c,l??this.zb;case 5:return this.Db>>16==5?d(this.Cb,682):null}return Mu(this,t-vn((Nt(),yp)),jt((a=d(nn(this,16),29),a||yp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 5:return this.Cb&&(o=(l=this.Db>>16,l>=0?wdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,5,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),yp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),yp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 5:return lu(this,null,5,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),yp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),yp)),t,o)},g.Th=function(t){var n;switch(t){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&&d(this.Cb,682))}return Eu(this,t-vn((Nt(),yp)),jt((n=d(nn(this,16),29),n||yp),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:GY(this,d(n,15).a);return;case 3:Cht(this,d(n,2018));return;case 4:WY(this,Jn(n));return}Nu(this,t-vn((Nt(),yp)),jt((o=d(nn(this,16),29),o||yp),t),n)},g.fi=function(){return Nt(),yp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:GY(this,0);return;case 3:Cht(this,null);return;case 4:WY(this,null);return}Pu(this,t-vn((Nt(),yp)),jt((n=d(nn(this,16),29),n||yp),t))},g.Ib=function(){var t;return t=this.c,t??this.zb},g.b=null,g.c=null,g.d=0;var Sar=I(en,"EEnumLiteralImpl",575),Mxn=ni(en,"EFactoryImpl/InternalEDateTimeFormat");T(488,1,{2093:1},WO);var Ear=I(en,"EFactoryImpl/1ClientInternalEDateTimeFormat",488);T(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Fy),g.zh=function(t,n,o){var a;return o=lu(this,t,n,o),this.e&&fe(t,182)&&(a=vB(this,this.e),a!=this.c&&(o=$M(this,a,o))),o},g.Ih=function(t,n,o){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new Ni(as,this,1)),this.d;case 2:return n?NB(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?eK(this):this.a}return Mu(this,t-vn((Nt(),Z0)),jt((a=d(nn(this,16),29),a||Z0),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return ilt(this,null,o);case 1:return!this.d&&(this.d=new Ni(as,this,1)),Go(this.d,t,o);case 3:return rlt(this,null,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),Z0)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),Z0)),t,o)},g.Th=function(t){var n;switch(t){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 Eu(this,t-vn((Nt(),Z0)),jt((n=d(nn(this,16),29),n||Z0),t))},g.$h=function(t,n){var o;switch(t){case 0:_dt(this,d(n,88));return;case 1:!this.d&&(this.d=new Ni(as,this,1)),Ln(this.d),!this.d&&(this.d=new Ni(as,this,1)),gi(this.d,d(n,18));return;case 3:vye(this,d(n,88));return;case 4:Gye(this,d(n,842));return;case 5:WC(this,d(n,146));return}Nu(this,t-vn((Nt(),Z0)),jt((o=d(nn(this,16),29),o||Z0),t),n)},g.fi=function(){return Nt(),Z0},g.hi=function(t){var n;switch(t){case 0:_dt(this,null);return;case 1:!this.d&&(this.d=new Ni(as,this,1)),Ln(this.d);return;case 3:vye(this,null);return;case 4:Gye(this,null);return;case 5:WC(this,null);return}Pu(this,t-vn((Nt(),Z0)),jt((n=d(nn(this,16),29),n||Z0),t))},g.Ib=function(){var t;return t=new Zl(Fd(this)),t.a+=" (expression: ",sQ(this,t),t.a+=")",t.a};var CRe,Car=I(en,"EGenericTypeImpl",251);T(2046,2041,j7),g.Ei=function(t,n){xQe(this,t,n)},g.Uk=function(t,n){return xQe(this,this.gc(),t),n},g.Yi=function(t){return Ta(this.nj(),t)},g.Gi=function(){return this.Hi()},g.nj=function(){return new mJe(this)},g.Hi=function(){return this.Ii(0)},g.Ii=function(t){return this.nj().dd(t)},g.Vk=function(t,n){return cx(this,t,!0),n},g.Ri=function(t,n){var o,a;return a=dK(this,n),o=this.dd(t),o.Rb(a),a},g.Si=function(t,n){var o;cx(this,n,!0),o=this.dd(t),o.Rb(n)};var Mar=I(Kr,"AbstractSequentialInternalEList",2046);T(485,2046,j7,x4),g.Yi=function(t){return Ta(this.nj(),t)},g.Gi=function(){return this.b==null?(Bm(),Bm(),Z5):this.ql()},g.nj=function(){return new BXe(this.a,this.b)},g.Hi=function(){return this.b==null?(Bm(),Bm(),Z5):this.ql()},g.Ii=function(t){var n,o;if(this.b==null){if(t<0||t>1)throw Q(new ec(_P+t+", size=0"));return Bm(),Bm(),Z5}for(o=this.ql(),n=0;n<t;++n)Aj(o);return o},g.dc=function(){var t,n,o,a,l,h;if(this.b!=null){for(o=0;o<this.b.length;++o)if(t=this.b[o],!this.tl()||this.a.Uh(t)){if(h=this.a.Kh(t,!1),Xo(),d(t,69).vk()){for(n=d(h,164),a=0,l=n.gc();a<l;++a)if(Yet(n.Rl(a))&&n.Sl(a)!=null)return!1}else if(t.Hk()){if(!d(h,18).dc())return!1}else if(h!=null)return!1}}return!0},g.Jc=function(){return cbe(this)},g.dd=function(t){var n,o;if(this.b==null){if(t!=0)throw Q(new ec(_P+t+", size=0"));return Bm(),Bm(),Z5}for(o=this.sl()?this.rl():this.ql(),n=0;n<t;++n)Aj(o);return o},g.Ri=function(t,n){throw Q(new Hn)},g.Si=function(t,n){throw Q(new Hn)},g.ql=function(){return new R8(this.a,this.b)},g.rl=function(){return new Ohe(this.a,this.b)},g.sl=function(){return!0},g.gc=function(){var t,n,o,a,l,h,b;if(l=0,this.b!=null){for(o=0;o<this.b.length;++o)if(t=this.b[o],!this.tl()||this.a.Uh(t))if(b=this.a.Kh(t,!1),Xo(),d(t,69).vk())for(n=d(b,164),a=0,h=n.gc();a<h;++a)Yet(n.Rl(a))&&n.Sl(a)!=null&&++l;else t.Hk()?l+=d(b,18).gc():b!=null&&++l}return l},g.tl=function(){return!0};var hoe,Tar=I(Kr,"EContentsEList",485);T(1158,485,j7,oQe),g.ql=function(){return new sQe(this.a,this.b)},g.rl=function(){return new aQe(this.a,this.b)},g.tl=function(){return!1};var Iar=I(en,"ENamedElementImpl/1",1158);T(289,1,B7,R8),g.Nb=function(t){ko(this,t)},g.Rb=function(t){throw Q(new Hn)},g.ul=function(t){if(this.g!=0||this.e)throw Q(new ws("Iterator already in use or already filtered"));this.e=t},g.Ob=function(){var t,n,o,a,l,h;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?!_ft(this,this.p):!Tht(this))){for(;this.d<this.c.length;)if(n=this.c[this.d++],(!this.e||n.nk()!=YT||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(h=this.b.Kh(n,this.sl()),this.f=(Xo(),d(n,69).vk()),this.f||n.Hk()){if(this.sl()?(a=d(h,16),this.k=a):(a=d(h,72),this.k=this.j=a),fe(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?_ft(this,this.p):Tht(this))return l=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=3,!0}else if(h!=null)return this.k=null,this.p=null,o=h,this.i=o,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return l=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=3,!0}},g.Sb=function(){var t,n,o,a,l,h;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?!jft(this,this.p):!Yft(this))){for(;this.d>0;)if(n=this.c[--this.d],(!this.e||n.nk()!=YT||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(h=this.b.Kh(n,this.sl()),this.f=(Xo(),d(n,69).vk()),this.f||n.Hk()){if(this.sl()?(a=d(h,16),this.k=a):(a=d(h,72),this.k=this.j=a),fe(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?jft(this,this.p):Yft(this))return l=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=-3,!0}else if(h!=null)return this.k=null,this.p=null,o=h,this.i=o,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return l=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=-3,!0}},g.Pb=function(){return Aj(this)},g.Tb=function(){return this.a},g.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw Q(new js)},g.Vb=function(){return this.a-1},g.Qb=function(){throw Q(new Hn)},g.sl=function(){return!1},g.Wb=function(t){throw Q(new Hn)},g.tl=function(){return!0},g.a=0,g.d=0,g.f=!1,g.g=0,g.n=0,g.o=0;var Z5,$ar=I(Kr,"EContentsEList/FeatureIteratorImpl",289);T(707,289,B7,Ohe),g.sl=function(){return!0};var Rar=I(Kr,"EContentsEList/ResolvingFeatureIteratorImpl",707);T(1159,707,B7,aQe),g.tl=function(){return!1};var Par=I(en,"ENamedElementImpl/1/1",1159);T(1160,289,B7,sQe),g.tl=function(){return!1};var Nar=I(en,"ENamedElementImpl/1/2",1160);T(40,152,OD,Zw,hY,Qi,MY,Gg,Rd,Upe,Ynt,Jpe,Xnt,upe,Knt,Ype,Qnt,dpe,Znt,qpe,ert,oR,X4,qV,Vpe,trt,fpe,nrt),g.Ij=function(){return Mpe(this)},g.Pj=function(){var t;return t=Mpe(this),t?t.gk():null},g.fj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,t)},g.hj=function(){return this.c},g.Qj=function(){var t;return t=Mpe(this),t?t.rk():!1},g.b=-1;var Oar=I(en,"ENotificationImpl",40);T(408,294,{110:1,95:1,94:1,159:1,199:1,57:1,62:1,115:1,473:1,52:1,101:1,162:1,408:1,294:1,118:1,119:1},TJ),g.xh=function(t){return Adt(this,t)},g.Ih=function(t,n,o){var a,l,h;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),h=this.t,h>1||h==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?d(this.Cb,29):null;case 11:return!this.d&&(this.d=new Uc(kc,this,11)),this.d;case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new S4(this,this)),this.a;case 14:return vl(this)}return Mu(this,t-vn((Nt(),wp)),jt((a=d(nn(this,16),29),a||wp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 10:return this.Cb&&(o=(l=this.Db>>16,l>=0?Adt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,10,o);case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),sc(this.c,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),wp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),wp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 10:return lu(this,null,10,o);case 11:return!this.d&&(this.d=new Uc(kc,this,11)),Go(this.d,t,o);case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),Go(this.c,t,o);case 14:return Go(vl(this),t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),wp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),wp)),t,o)},g.Th=function(t){var n,o,a;switch(t){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 a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return!!(this.Db>>16==10&&d(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&&vl(this.a.a).i!=0&&!(this.b&&QX(this.b));case 14:return!!this.b&&QX(this.b)}return Eu(this,t-vn((Nt(),wp)),jt((n=d(nn(this,16),29),n||wp),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:nx(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 11:!this.d&&(this.d=new Uc(kc,this,11)),Ln(this.d),!this.d&&(this.d=new Uc(kc,this,11)),gi(this.d,d(n,18));return;case 12:!this.c&&(this.c=new Le(Q0,this,12,10)),Ln(this.c),!this.c&&(this.c=new Le(Q0,this,12,10)),gi(this.c,d(n,18));return;case 13:!this.a&&(this.a=new S4(this,this)),gP(this.a),!this.a&&(this.a=new S4(this,this)),gi(this.a,d(n,18));return;case 14:Ln(vl(this)),gi(vl(this),d(n,18));return}Nu(this,t-vn((Nt(),wp)),jt((o=d(nn(this,16),29),o||wp),t),n)},g.fi=function(){return Nt(),wp},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 11:!this.d&&(this.d=new Uc(kc,this,11)),Ln(this.d);return;case 12:!this.c&&(this.c=new Le(Q0,this,12,10)),Ln(this.c);return;case 13:this.a&&gP(this.a);return;case 14:this.b&&Ln(this.b);return}Pu(this,t-vn((Nt(),wp)),jt((n=d(nn(this,16),29),n||wp),t))},g.mi=function(){var t,n;if(this.c)for(t=0,n=this.c.i;t<n;++t)A4(ue(this.c,t));od(this),this.Bb|=1};var Lar=I(en,"EOperationImpl",408);T(503,751,T2e,S4),g.oj=function(t,n){_Ut(this,t,d(n,146))},g.pj=function(t){CHt(this,d(t,146))},g.vj=function(t){var n,o;return n=d(ue(vl(this.a),t),88),o=n.c,o||(Nt(),sh)},g.Aj=function(t){var n,o;return n=d(yx(vl(this.a),t),88),o=n.c,o||(Nt(),sh)},g.Bj=function(t,n){return tsn(this,t,d(n,146))},g.Ji=function(){return!1},g.Gj=function(t,n,o,a,l){return null},g.qj=function(){return new dJe(this)},g.rj=function(){Ln(vl(this.a))},g.sj=function(t){return xlt(this,t)},g.tj=function(t){var n,o;for(o=t.Jc();o.Ob();)if(n=o.Pb(),!xlt(this,n))return!1;return!0},g.uj=function(t){var n,o,a;if(fe(t,16)&&(a=d(t,16),a.gc()==vl(this.a).i)){for(n=a.Jc(),o=new fn(this);n.Ob();)if(Ee(n.Pb())!==Ee(bn(o)))return!1;return!0}return!1},g.wj=function(){var t,n,o,a,l;for(o=1,n=new fn(vl(this.a));n.e!=n.i.gc();)t=d(bn(n),88),a=(l=t.c,l||(Nt(),sh)),o=31*o+(a?Wr(a):0);return o},g.xj=function(t){var n,o,a,l;for(a=0,o=new fn(vl(this.a));o.e!=o.i.gc();){if(n=d(bn(o),88),Ee(t)===Ee((l=n.c,l||(Nt(),sh))))return a;++a}return-1},g.yj=function(){return vl(this.a).i==0},g.zj=function(){return null},g.Cj=function(){return vl(this.a).i},g.Dj=function(){var t,n,o,a,l,h;for(h=vl(this.a).i,l=Te(Wi,zt,1,h,5,1),o=0,n=new fn(vl(this.a));n.e!=n.i.gc();)t=d(bn(n),88),l[o++]=(a=t.c,a||(Nt(),sh));return l},g.Ej=function(t){var n,o,a,l,h,b,w;for(w=vl(this.a).i,t.length<w&&(l=cL(zl(t).c,w),t=l),t.length>w&&yi(t,w,null),a=0,o=new fn(vl(this.a));o.e!=o.i.gc();)n=d(bn(o),88),h=(b=n.c,b||(Nt(),sh)),yi(t,a++,h);return t},g.Fj=function(){var t,n,o,a,l;for(l=new Dm,l.a+="[",t=vl(this.a),n=0,a=vl(this.a).i;n<a;)ds(l,X$((o=d(ue(t,n),88).c,o||(Nt(),sh)))),++n<a&&(l.a+=ac);return l.a+="]",l.a},g.Hj=function(t){},g.Jj=function(){return 13},g.il=function(){return!0},g.Kj=function(){return!1},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!0},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return fe(t,146)},g.Oj=function(){return XQt(this.a)},g.Qi=function(){return!0},g.Wi=function(){return!0};var Dar=I(en,"EOperationImpl/1",503);T(1342,2041,LM,dJe),g.dd=function(t){return lL(this.a,t)},g.gc=function(){return vl(this.a.a).i};var Far=I(en,"EOperationImpl/1/1",1342);T(1343,547,Fs,uet),g.Ri=function(t,n){var o,a;return o=d(jR(this,t,n),88),Ll(this.e)&&oC(this,new X4(this.a,7,(Nt(),yRt),Ge(n),(a=o.c,a||sh),t)),o},g.Sj=function(t,n){return Ain(this,d(t,88),n)},g.Tj=function(t,n){return vin(this,d(t,88),n)},g.Uj=function(t,n,o){return gsn(this,d(t,88),d(n,88),o)},g.Gj=function(t,n,o,a,l){switch(t){case 3:return gR(this,t,n,o,a,this.i>1);case 5:return gR(this,t,n,o,a,this.i-d(o,16).gc()>0);default:return new Gg(this.e,t,this.c,n,o,a,!0)}},g.Rj=function(){return!0},g.Oj=function(){return QX(this)},g.Ek=function(){Ln(this)};var _ar=I(en,"EOperationImpl/2",1343);T(496,1,{2016:1,496:1},vXe);var jar=I(en,"EPackageImpl/1",496);T(14,82,Fs,Le),g.gl=function(){return this.d},g.hl=function(){return this.b},g.kl=function(){return!0},g.b=0;var Bar=I(Kr,"EObjectContainmentWithInverseEList",14);T(362,14,Fs,Lk),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var Gar=I(Kr,"EObjectContainmentWithInverseEList/Resolving",362);T(313,362,Fs,Hw),g.Li=function(){this.a.tb=null};var zar=I(en,"EPackageImpl/2",313);T(1255,1,{},bBe);var War=I(en,"EPackageImpl/3",1255);T(728,44,Gv,Dde),g._b=function(t){return io(t)?YV(this,t):!!xs(this.f,t)};var Har=I(en,"EPackageRegistryImpl",728);T(507,294,{110:1,95:1,94:1,159:1,199:1,57:1,2095:1,115:1,473:1,52:1,101:1,162:1,507:1,294:1,118:1,119:1},IJ),g.xh=function(t){return vdt(this,t)},g.Ih=function(t,n,o){var a,l,h;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),h=this.t,h>1||h==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?d(this.Cb,62):null}return Mu(this,t-vn((Nt(),fA)),jt((a=d(nn(this,16),29),a||fA),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 10:return this.Cb&&(o=(l=this.Db>>16,l>=0?vdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,10,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),fA)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),fA)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 10:return lu(this,null,10,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),fA)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),fA)),t,o)},g.Th=function(t){var n,o,a;switch(t){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 a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return!!(this.Db>>16==10&&d(this.Cb,62))}return Eu(this,t-vn((Nt(),fA)),jt((n=d(nn(this,16),29),n||fA),t))},g.fi=function(){return Nt(),fA};var Uar=I(en,"EParameterImpl",507);T(104,454,{110:1,95:1,94:1,159:1,199:1,57:1,20:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,104:1,454:1,294:1,118:1,119:1,689:1},jhe),g.Ih=function(t,n,o){var a,l,h,b;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),b=this.t,b>1||b==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this);case 18:return Ut(),(this.Bb&ma)!=0;case 19:return Ut(),h=Ko(this),!!(h&&(h.Bb&ma)!=0);case 20:return Ut(),(this.Bb&Jo)!=0;case 21:return n?Ko(this):this.b;case 22:return n?Obe(this):kit(this);case 23:return!this.a&&(this.a=new hv(lA,this,23)),this.a}return Mu(this,t-vn((Nt(),C2)),jt((a=d(nn(this,16),29),a||C2),t),n,o)},g.Th=function(t){var n,o,a,l;switch(t){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 l=this.t,l>1||l==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this);case 18:return(this.Bb&ma)!=0;case 19:return a=Ko(this),!!a&&(a.Bb&ma)!=0;case 20:return(this.Bb&Jo)==0;case 21:return!!this.b;case 22:return!!kit(this);case 23:return!!this.a&&this.a.i!=0}return Eu(this,t-vn((Nt(),C2)),jt((n=d(nn(this,16),29),n||C2),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:nx(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return;case 18:VKt(this,it(rt(n)));return;case 20:f1e(this,it(rt(n)));return;case 21:ube(this,d(n,20));return;case 23:!this.a&&(this.a=new hv(lA,this,23)),Ln(this.a),!this.a&&(this.a=new hv(lA,this,23)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),C2)),jt((o=d(nn(this,16),29),o||C2),t),n)},g.fi=function(){return Nt(),C2},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return;case 18:h1e(this,!1),fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),2);return;case 20:f1e(this,!0);return;case 21:ube(this,null);return;case 23:!this.a&&(this.a=new hv(lA,this,23)),Ln(this.a);return}Pu(this,t-vn((Nt(),C2)),jt((n=d(nn(this,16),29),n||C2),t))},g.mi=function(){Obe(this),NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.sk=function(){return Ko(this)},g.Zk=function(){var t;return t=Ko(this),!!t&&(t.Bb&ma)!=0},g.$k=function(){return(this.Bb&ma)!=0},g._k=function(){return(this.Bb&Jo)!=0},g.Wk=function(t,n){return this.c=null,n1e(this,t,n)},g.Ib=function(){var t;return(this.Db&64)!=0?RB(this):(t=new Zu(RB(this)),t.a+=" (containment: ",Fm(t,(this.Bb&ma)!=0),t.a+=", resolveProxies: ",Fm(t,(this.Bb&Jo)!=0),t.a+=")",t.a)};var Jar=I(en,"EReferenceImpl",104);T(553,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,553:1,118:1,119:1},yBe),g.Fb=function(t){return this===t},g.jd=function(){return this.b},g.kd=function(){return this.c},g.Hb=function(){return Vy(this)},g.Ai=function(t){oYt(this,Jn(t))},g.ld=function(t){return VVt(this,Jn(t))},g.Ih=function(t,n,o){var a;switch(t){case 0:return this.b;case 1:return this.c}return Mu(this,t-vn((Nt(),Vo)),jt((a=d(nn(this,16),29),a||Vo),t),n,o)},g.Th=function(t){var n;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return Eu(this,t-vn((Nt(),Vo)),jt((n=d(nn(this,16),29),n||Vo),t))},g.$h=function(t,n){var o;switch(t){case 0:sYt(this,Jn(n));return;case 1:ibe(this,Jn(n));return}Nu(this,t-vn((Nt(),Vo)),jt((o=d(nn(this,16),29),o||Vo),t),n)},g.fi=function(){return Nt(),Vo},g.hi=function(t){var n;switch(t){case 0:abe(this,null);return;case 1:ibe(this,null);return}Pu(this,t-vn((Nt(),Vo)),jt((n=d(nn(this,16),29),n||Vo),t))},g.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:Ym(t)),this.a},g.zi=function(t){this.a=t},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (key: ",ds(t,this.b),t.a+=", value: ",ds(t,this.c),t.a+=")",t.a)},g.a=-1,g.b=null,g.c=null;var la=I(en,"EStringToStringMapEntryImpl",553),SRt=ni(Kr,"FeatureMap/Entry/Internal");T(569,1,G7),g.vl=function(t){return this.wl(d(t,52))},g.wl=function(t){return this.vl(t)},g.Fb=function(t){var n,o;return this===t?!0:fe(t,76)?(n=d(t,76),n.Jk()==this.c?(o=this.kd(),o==null?n.kd()==null:Er(o,n.kd())):!1):!1},g.Jk=function(){return this.c},g.Hb=function(){var t;return t=this.kd(),Wr(this.c)^(t==null?0:Wr(t))},g.Ib=function(){var t,n;return t=this.c,n=iu(t.ok()).vi(),t.ve(),(n!=null&&n.length!=0?n+":"+t.ve():t.ve())+"="+this.kd()};var qar=I(en,"EStructuralFeatureImpl/BasicFeatureMapEntry",569);T(784,569,G7,Qhe),g.wl=function(t){return new Qhe(this.c,t)},g.kd=function(){return this.a},g.xl=function(t,n,o){return jnn(this,t,this.a,n,o)},g.yl=function(t,n,o){return Bnn(this,t,this.a,n,o)};var Var=I(en,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784);T(1316,1,{},kXe),g.wk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Wl(this.a).Dk(a)},g.xk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Nl(this.a,a,l)},g.yk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Ol(this.a,a,l)},g.zk=function(t,n,o){var a;return a=d(jC(t,this.b),222),a.Wl(this.a).Oj()},g.Ak=function(t,n,o,a){var l;l=d(jC(t,this.b),222),l.Wl(this.a).Wb(a)},g.Bk=function(t,n,o){return d(jC(t,this.b),222).Wl(this.a)},g.Ck=function(t,n,o){var a;a=d(jC(t,this.b),222),a.Wl(this.a).Ek()};var Yar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316);T(90,1,{},zm,b1,Hm,k1),g.wk=function(t,n,o,a,l){var h;if(h=n.ii(o),h==null&&n.ji(o,h=WB(this,t)),!l)switch(this.e){case 50:case 41:return d(h,593)._j();case 40:return d(h,222).Tl()}return h},g.xk=function(t,n,o,a,l){var h,b;return b=n.ii(o),b==null&&n.ji(o,b=WB(this,t)),h=d(b,72).Uk(a,l),h},g.yk=function(t,n,o,a,l){var h;return h=n.ii(o),h!=null&&(l=d(h,72).Vk(a,l)),l},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null&&d(a,78).Oj()},g.Ak=function(t,n,o,a){var l;l=d(n.ii(o),78),!l&&n.ji(o,l=WB(this,t)),l.Wb(a)},g.Bk=function(t,n,o){var a,l;return l=n.ii(o),l==null&&n.ji(o,l=WB(this,t)),fe(l,78)?d(l,78):(a=d(n.ii(o),16),new hJe(a))},g.Ck=function(t,n,o){var a;a=d(n.ii(o),78),!a&&n.ji(o,a=WB(this,t)),a.Ek()},g.b=0,g.e=0;var Xar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateMany",90);T(502,1,{}),g.xk=function(t,n,o,a,l){throw Q(new Hn)},g.yk=function(t,n,o,a,l){throw Q(new Hn)},g.Bk=function(t,n,o){return new Ett(this,t,n,o)};var wg,Kar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502);T(1333,1,Jee,Ett),g.Dk=function(t){return this.a.wk(this.c,this.d,this.b,t,!0)},g.Oj=function(){return this.a.zk(this.c,this.d,this.b)},g.Wb=function(t){this.a.Ak(this.c,this.d,this.b,t)},g.Ek=function(){this.a.Ck(this.c,this.d,this.b)},g.b=0;var Qar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333);T(777,502,{},Pme),g.wk=function(t,n,o,a,l){return qK(t,t.Mh(),t.Ch())==this.b?this._k()&&a?LK(t):t.Mh():null},g.xk=function(t,n,o,a,l){var h,b;return t.Mh()&&(l=(h=t.Ch(),h>=0?t.xh(l):t.Mh().Qh(t,-1-h,null,l))),b=ei(t.Ah(),this.e),t.zh(a,b,l)},g.yk=function(t,n,o,a,l){var h;return h=ei(t.Ah(),this.e),t.zh(null,h,l)},g.zk=function(t,n,o){var a;return a=ei(t.Ah(),this.e),!!t.Mh()&&t.Ch()==a},g.Ak=function(t,n,o,a){var l,h,b,w,A;if(a!=null&&!KK(this.a,a))throw Q(new sC(z7+(fe(a,57)?Aye(d(a,57).Ah()):Gpe(zl(a)))+W7+this.a+"'"));if(l=t.Mh(),b=ei(t.Ah(),this.e),Ee(a)!==Ee(l)||t.Ch()!=b&&a!=null){if(gM(t,d(a,57)))throw Q(new Vt(DP+t.Ib()));A=null,l&&(A=(h=t.Ch(),h>=0?t.xh(A):t.Mh().Qh(t,-1-h,null,A))),w=d(a,52),w&&(A=w.Oh(t,ei(w.Ah(),this.b),null,A)),A=t.zh(w,b,A),A&&A.mj()}else t.sh()&&t.th()&&kr(t,new Qi(t,1,b,a,a))},g.Ck=function(t,n,o){var a,l,h,b;a=t.Mh(),a?(b=(l=t.Ch(),l>=0?t.xh(null):t.Mh().Qh(t,-1-l,null,null)),h=ei(t.Ah(),this.e),b=t.zh(null,h,b),b&&b.mj()):t.sh()&&t.th()&&kr(t,new oR(t,1,this.e,null,null))},g._k=function(){return!1};var Zar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777);T(1317,777,{},gZe),g._k=function(){return!0};var ecr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317);T(567,502,{}),g.wk=function(t,n,o,a,l){var h;return h=n.ii(o),h==null?this.b:Ee(h)===Ee(wg)?null:h},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null&&(Ee(a)===Ee(wg)||!Er(a,this.b))},g.Ak=function(t,n,o,a){var l,h;t.sh()&&t.th()?(l=(h=n.ii(o),h==null?this.b:Ee(h)===Ee(wg)?null:h),a==null?this.c!=null?(n.ji(o,null),a=this.b):this.b!=null?n.ji(o,wg):n.ji(o,null):(this.zl(a),n.ji(o,a)),kr(t,this.d.Al(t,1,this.e,l,a))):a==null?this.c!=null?n.ji(o,null):this.b!=null?n.ji(o,wg):n.ji(o,null):(this.zl(a),n.ji(o,a))},g.Ck=function(t,n,o){var a,l;t.sh()&&t.th()?(a=(l=n.ii(o),l==null?this.b:Ee(l)===Ee(wg)?null:l),n.ki(o),kr(t,this.d.Al(t,1,this.e,a,this.b))):n.ki(o)},g.zl=function(t){throw Q(new kJe)};var tcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567);T(Xv,1,{},wBe),g.Al=function(t,n,o,a,l){return new oR(t,n,o,a,l)},g.Bl=function(t,n,o,a,l,h){return new qV(t,n,o,a,l,h)};var MRe,TRe,IRe,$Re,RRe,PRe,NRe,goe,ORe,ncr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Xv);T(1334,Xv,{},xBe),g.Al=function(t,n,o,a,l){return new fpe(t,n,o,it(rt(a)),it(rt(l)))},g.Bl=function(t,n,o,a,l,h){return new nrt(t,n,o,it(rt(a)),it(rt(l)),h)};var rcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334);T(1335,Xv,{},ABe),g.Al=function(t,n,o,a,l){return new Upe(t,n,o,d(a,224).a,d(l,224).a)},g.Bl=function(t,n,o,a,l,h){return new Ynt(t,n,o,d(a,224).a,d(l,224).a,h)};var icr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335);T(1336,Xv,{},vBe),g.Al=function(t,n,o,a,l){return new Jpe(t,n,o,d(a,183).a,d(l,183).a)},g.Bl=function(t,n,o,a,l,h){return new Xnt(t,n,o,d(a,183).a,d(l,183).a,h)};var ocr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336);T(1337,Xv,{},kBe),g.Al=function(t,n,o,a,l){return new upe(t,n,o,he(be(a)),he(be(l)))},g.Bl=function(t,n,o,a,l,h){return new Knt(t,n,o,he(be(a)),he(be(l)),h)};var scr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337);T(1338,Xv,{},SBe),g.Al=function(t,n,o,a,l){return new Ype(t,n,o,d(a,165).a,d(l,165).a)},g.Bl=function(t,n,o,a,l,h){return new Qnt(t,n,o,d(a,165).a,d(l,165).a,h)};var acr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338);T(1339,Xv,{},EBe),g.Al=function(t,n,o,a,l){return new dpe(t,n,o,d(a,15).a,d(l,15).a)},g.Bl=function(t,n,o,a,l,h){return new Znt(t,n,o,d(a,15).a,d(l,15).a,h)};var ccr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339);T(1340,Xv,{},CBe),g.Al=function(t,n,o,a,l){return new qpe(t,n,o,d(a,192).a,d(l,192).a)},g.Bl=function(t,n,o,a,l,h){return new ert(t,n,o,d(a,192).a,d(l,192).a,h)};var lcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340);T(1341,Xv,{},MBe),g.Al=function(t,n,o,a,l){return new Vpe(t,n,o,d(a,193).a,d(l,193).a)},g.Bl=function(t,n,o,a,l,h){return new trt(t,n,o,d(a,193).a,d(l,193).a,h)};var ucr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341);T(1319,567,{},Itt),g.zl=function(t){if(!this.a.dk(t))throw Q(new sC(z7+zl(t)+W7+this.a+"'"))};var dcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319);T(1320,567,{},det),g.zl=function(t){};var fcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320);T(778,567,{}),g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null},g.Ak=function(t,n,o,a){var l,h;t.sh()&&t.th()?(l=!0,h=n.ii(o),h==null?(l=!1,h=this.b):Ee(h)===Ee(wg)&&(h=null),a==null?this.c!=null?(n.ji(o,null),a=this.b):n.ji(o,wg):(this.zl(a),n.ji(o,a)),kr(t,this.d.Bl(t,1,this.e,h,a,!l))):a==null?this.c!=null?n.ji(o,null):n.ji(o,wg):(this.zl(a),n.ji(o,a))},g.Ck=function(t,n,o){var a,l;t.sh()&&t.th()?(a=!0,l=n.ii(o),l==null?(a=!1,l=this.b):Ee(l)===Ee(wg)&&(l=null),n.ki(o),kr(t,this.d.Bl(t,2,this.e,l,this.b,a))):n.ki(o)};var hcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778);T(1321,778,{},$tt),g.zl=function(t){if(!this.a.dk(t))throw Q(new sC(z7+zl(t)+W7+this.a+"'"))};var gcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321);T(1322,778,{},fet),g.zl=function(t){};var mcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322);T(407,502,{},Z8),g.wk=function(t,n,o,a,l){var h,b,w,A,k;if(k=n.ii(o),this.rk()&&Ee(k)===Ee(wg))return null;if(this._k()&&a&&k!=null){if(w=d(k,52),w.Sh()&&(A=ib(t,w),w!=A)){if(!KK(this.a,A))throw Q(new sC(z7+zl(A)+W7+this.a+"'"));n.ji(o,k=A),this.$k()&&(h=d(A,52),b=w.Qh(t,this.b?ei(w.Ah(),this.b):-1-ei(t.Ah(),this.e),null,null),!h.Mh()&&(b=h.Oh(t,this.b?ei(h.Ah(),this.b):-1-ei(t.Ah(),this.e),null,b)),b&&b.mj()),t.sh()&&t.th()&&kr(t,new oR(t,9,this.e,w,A))}return k}else return k},g.xk=function(t,n,o,a,l){var h,b;return b=n.ii(o),Ee(b)===Ee(wg)&&(b=null),n.ji(o,a),this.Kj()?Ee(b)!==Ee(a)&&b!=null&&(h=d(b,52),l=h.Qh(t,ei(h.Ah(),this.b),null,l)):this.$k()&&b!=null&&(l=d(b,52).Qh(t,-1-ei(t.Ah(),this.e),null,l)),t.sh()&&t.th()&&(!l&&(l=new _p(4)),l.lj(new oR(t,1,this.e,b,a))),l},g.yk=function(t,n,o,a,l){var h;return h=n.ii(o),Ee(h)===Ee(wg)&&(h=null),n.ki(o),t.sh()&&t.th()&&(!l&&(l=new _p(4)),this.rk()?l.lj(new oR(t,2,this.e,h,null)):l.lj(new oR(t,1,this.e,h,null))),l},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null},g.Ak=function(t,n,o,a){var l,h,b,w,A;if(a!=null&&!KK(this.a,a))throw Q(new sC(z7+(fe(a,57)?Aye(d(a,57).Ah()):Gpe(zl(a)))+W7+this.a+"'"));A=n.ii(o),w=A!=null,this.rk()&&Ee(A)===Ee(wg)&&(A=null),b=null,this.Kj()?Ee(A)!==Ee(a)&&(A!=null&&(l=d(A,52),b=l.Qh(t,ei(l.Ah(),this.b),null,b)),a!=null&&(l=d(a,52),b=l.Oh(t,ei(l.Ah(),this.b),null,b))):this.$k()&&Ee(A)!==Ee(a)&&(A!=null&&(b=d(A,52).Qh(t,-1-ei(t.Ah(),this.e),null,b)),a!=null&&(b=d(a,52).Oh(t,-1-ei(t.Ah(),this.e),null,b))),a==null&&this.rk()?n.ji(o,wg):n.ji(o,a),t.sh()&&t.th()?(h=new qV(t,1,this.e,A,a,this.rk()&&!w),b?(b.lj(h),b.mj()):kr(t,h)):b&&b.mj()},g.Ck=function(t,n,o){var a,l,h,b,w;w=n.ii(o),b=w!=null,this.rk()&&Ee(w)===Ee(wg)&&(w=null),h=null,w!=null&&(this.Kj()?(a=d(w,52),h=a.Qh(t,ei(a.Ah(),this.b),null,h)):this.$k()&&(h=d(w,52).Qh(t,-1-ei(t.Ah(),this.e),null,h))),n.ki(o),t.sh()&&t.th()?(l=new qV(t,this.rk()?2:1,this.e,w,null,b),h?(h.lj(l),h.mj()):kr(t,l)):h&&h.mj()},g.Kj=function(){return!1},g.$k=function(){return!1},g._k=function(){return!1},g.rk=function(){return!1};var pcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407);T(568,407,{},Vq),g.$k=function(){return!0};var bcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568);T(1325,568,{},cQe),g._k=function(){return!0};var ycr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325);T(780,568,{},Lhe),g.rk=function(){return!0};var wcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780);T(1327,780,{},lQe),g._k=function(){return!0};var xcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327);T(645,568,{},lV),g.Kj=function(){return!0};var Acr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645);T(1326,645,{},mZe),g._k=function(){return!0};var vcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326);T(781,645,{},xge),g.rk=function(){return!0};var kcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781);T(1328,781,{},pZe),g._k=function(){return!0};var Scr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328);T(646,407,{},Dhe),g._k=function(){return!0};var Ecr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646);T(1329,646,{},dQe),g.rk=function(){return!0};var Ccr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329);T(782,646,{},yge),g.Kj=function(){return!0};var Mcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782);T(1330,782,{},bZe),g.rk=function(){return!0};var Tcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330);T(1323,407,{},uQe),g.rk=function(){return!0};var Icr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323);T(779,407,{},wge),g.Kj=function(){return!0};var $cr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779);T(1324,779,{},yZe),g.rk=function(){return!0};var Rcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324);T(783,569,G7,dme),g.wl=function(t){return new dme(this.a,this.c,t)},g.kd=function(){return this.b},g.xl=function(t,n,o){return Fen(this,t,this.b,o)},g.yl=function(t,n,o){return _en(this,t,this.b,o)};var Pcr=I(en,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783);T(1331,1,Jee,hJe),g.Dk=function(t){return this.a},g.Oj=function(){return fe(this.a,98)?d(this.a,98).Oj():!this.a.dc()},g.Wb=function(t){this.a.$b(),this.a.Fc(d(t,16))},g.Ek=function(){fe(this.a,98)?d(this.a,98).Ek():this.a.$b()};var Ncr=I(en,"EStructuralFeatureImpl/SettingMany",1331);T(1332,569,G7,Yrt),g.vl=function(t){return new Zq((Nr(),gN),this.b.oi(this.a,t))},g.kd=function(){return null},g.xl=function(t,n,o){return o},g.yl=function(t,n,o){return o};var Ocr=I(en,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332);T(647,569,G7,Zq),g.vl=function(t){return new Zq(this.c,t)},g.kd=function(){return this.a},g.xl=function(t,n,o){return o},g.yl=function(t,n,o){return o};var Lcr=I(en,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647);T(399,495,$h,ZE),g.$i=function(t){return Te(md,zt,29,t,0,1)},g.Wi=function(){return!1};var Dcr=I(en,"ESuperAdapter/1",399);T(449,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,842:1,52:1,101:1,162:1,449:1,118:1,119:1},aJ),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new tR(this,as,this)),this.a}return Mu(this,t-vn((Nt(),ew)),jt((a=d(nn(this,16),29),a||ew),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 2:return!this.a&&(this.a=new tR(this,as,this)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),ew)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),ew)),t,o)},g.Th=function(t){var n;switch(t){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 Eu(this,t-vn((Nt(),ew)),jt((n=d(nn(this,16),29),n||ew),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:!this.a&&(this.a=new tR(this,as,this)),Ln(this.a),!this.a&&(this.a=new tR(this,as,this)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),ew)),jt((o=d(nn(this,16),29),o||ew),t),n)},g.fi=function(){return Nt(),ew},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:!this.a&&(this.a=new tR(this,as,this)),Ln(this.a);return}Pu(this,t-vn((Nt(),ew)),jt((n=d(nn(this,16),29),n||ew),t))};var Fcr=I(en,"ETypeParameterImpl",449);T(450,82,Fs,tR),g.Lj=function(t,n){return Pln(this,d(t,88),n)},g.Mj=function(t,n){return Nln(this,d(t,88),n)};var _cr=I(en,"ETypeParameterImpl/1",450);T(644,44,Gv,$J),g.ec=function(){return new y_(this)};var jcr=I(en,"ETypeParameterImpl/2",644);T(564,Jf,Qc,y_),g.Ec=function(t){return UQe(this,d(t,88))},g.Fc=function(t){var n,o,a;for(a=!1,o=t.Jc();o.Ob();)n=d(o.Pb(),88),cr(this.a,n,"")==null&&(a=!0);return a},g.$b=function(){ya(this.a)},g.Gc=function(t){return _a(this.a,t)},g.Jc=function(){var t;return t=new ix(new Cw(this.a).a),new w_(t)},g.Kc=function(t){return Fit(this,t)},g.gc=function(){return S$(this.a)};var Bcr=I(en,"ETypeParameterImpl/2/1",564);T(565,1,co,w_),g.Nb=function(t){ko(this,t)},g.Pb=function(){return d(kv(this.a).jd(),88)},g.Ob=function(){return this.a.b},g.Qb=function(){Yot(this.a)};var Gcr=I(en,"ETypeParameterImpl/2/1/1",565);T(1293,44,Gv,nqe),g._b=function(t){return io(t)?YV(this,t):!!xs(this.f,t)},g.xc=function(t){var n,o;return n=io(t)?ja(this,t):Gs(xs(this.f,t)),fe(n,843)?(o=d(n,843),n=o.Ik(),cr(this,d(t,244),n),n):n??(t==null?(YJ(),CRt):null)};var zcr=I(en,"EValidatorRegistryImpl",1293);T(1315,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,2019:1,52:1,101:1,162:1,118:1,119:1},TBe),g.oi=function(t,n){switch(t.fk()){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 n==null?null:Ds(n);case 25:return qtn(n);case 27:return ctn(n);case 28:return ltn(n);case 29:return n==null?null:hKe(cN[0],d(n,208));case 41:return n==null?"":c1(d(n,299));case 42:return Ds(n);case 50:return Jn(n);default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h,b,w,A,k,C,$,O,D,G,U,te;switch(t.G==-1&&(t.G=(O=iu(t),O?ep(O.si(),t):-1)),t.G){case 0:return o=new MJ,o;case 1:return n=new jue,n;case 2:return a=new Hue,a;case 4:return l=new x_,l;case 5:return h=new tqe,h;case 6:return b=new yJe,b;case 7:return w=new Wue,w;case 10:return k=new l_,k;case 11:return C=new TJ,C;case 12:return $=new Gtt,$;case 13:return D=new IJ,D;case 14:return G=new jhe,G;case 17:return U=new yBe,U;case 18:return A=new Fy,A;case 19:return te=new aJ,te;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){switch(t.fk()){case 20:return n==null?null:new ife(n);case 21:return n==null?null:new Hp(n);case 23:case 22:return n==null?null:Jon(n);case 26:case 24:return n==null?null:rL(cu(n,-128,127)<<24>>24);case 25:return Vfn(n);case 27:return $an(n);case 28:return Ran(n);case 29:return Qln(n);case 32:case 31:return n==null?null:hx(n);case 38:case 37:return n==null?null:new Mde(n);case 40:case 39:return n==null?null:Ge(cu(n,po,pr));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:ux(zB(n));case 49:case 48:return n==null?null:iM(cu(n,H7,32767)<<16>>16);case 50:return n;default:throw Q(new Vt(iT+t.ve()+L0))}};var Wcr=I(en,"EcoreFactoryImpl",1315);T(552,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,2017:1,52:1,101:1,162:1,187:1,552:1,118:1,119:1,687:1},ctt),g.gb=!1,g.hb=!1;var LRe,ERt=!1,Hcr=I(en,"EcorePackageImpl",552);T(1211,1,{843:1},IBe),g.Ik=function(){return GKe(),MRt};var Ucr=I(en,"EcorePackageImpl/1",1211);T(1220,1,hr,$Be),g.dk=function(t){return fe(t,159)},g.ek=function(t){return Te(J5,zt,159,t,0,1)};var Jcr=I(en,"EcorePackageImpl/10",1220);T(1221,1,hr,RBe),g.dk=function(t){return fe(t,199)},g.ek=function(t){return Te(ooe,zt,199,t,0,1)};var qcr=I(en,"EcorePackageImpl/11",1221);T(1222,1,hr,PBe),g.dk=function(t){return fe(t,57)},g.ek=function(t){return Te(Lb,zt,57,t,0,1)};var Vcr=I(en,"EcorePackageImpl/12",1222);T(1223,1,hr,NBe),g.dk=function(t){return fe(t,408)},g.ek=function(t){return Te(pd,M2e,62,t,0,1)};var Ycr=I(en,"EcorePackageImpl/13",1223);T(1224,1,hr,OBe),g.dk=function(t){return fe(t,244)},g.ek=function(t){return Te(vf,zt,244,t,0,1)};var Xcr=I(en,"EcorePackageImpl/14",1224);T(1225,1,hr,LBe),g.dk=function(t){return fe(t,507)},g.ek=function(t){return Te(Q0,zt,2095,t,0,1)};var Kcr=I(en,"EcorePackageImpl/15",1225);T(1226,1,hr,DBe),g.dk=function(t){return fe(t,104)},g.ek=function(t){return Te(uA,Yv,20,t,0,1)};var Qcr=I(en,"EcorePackageImpl/16",1226);T(1227,1,hr,FBe),g.dk=function(t){return fe(t,182)},g.ek=function(t){return Te(Bc,Yv,182,t,0,1)};var Zcr=I(en,"EcorePackageImpl/17",1227);T(1228,1,hr,_Be),g.dk=function(t){return fe(t,473)},g.ek=function(t){return Te(cA,zt,473,t,0,1)};var elr=I(en,"EcorePackageImpl/18",1228);T(1229,1,hr,jBe),g.dk=function(t){return fe(t,553)},g.ek=function(t){return Te(la,Uwt,553,t,0,1)};var tlr=I(en,"EcorePackageImpl/19",1229);T(1212,1,hr,BBe),g.dk=function(t){return fe(t,336)},g.ek=function(t){return Te(lA,Yv,38,t,0,1)};var nlr=I(en,"EcorePackageImpl/2",1212);T(1230,1,hr,GBe),g.dk=function(t){return fe(t,251)},g.ek=function(t){return Te(as,cxt,88,t,0,1)};var rlr=I(en,"EcorePackageImpl/20",1230);T(1231,1,hr,zBe),g.dk=function(t){return fe(t,449)},g.ek=function(t){return Te(kc,zt,842,t,0,1)};var ilr=I(en,"EcorePackageImpl/21",1231);T(1232,1,hr,WBe),g.dk=function(t){return Nw(t)},g.ek=function(t){return Te(ci,He,476,t,8,1)};var olr=I(en,"EcorePackageImpl/22",1232);T(1233,1,hr,HBe),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var slr=I(en,"EcorePackageImpl/23",1233);T(1234,1,hr,UBe),g.dk=function(t){return fe(t,224)},g.ek=function(t){return Te(NS,He,224,t,0,1)};var alr=I(en,"EcorePackageImpl/24",1234);T(1235,1,hr,JBe),g.dk=function(t){return fe(t,183)},g.ek=function(t){return Te(VP,He,183,t,0,1)};var clr=I(en,"EcorePackageImpl/25",1235);T(1236,1,hr,qBe),g.dk=function(t){return fe(t,208)},g.ek=function(t){return Te(eG,He,208,t,0,1)};var llr=I(en,"EcorePackageImpl/26",1236);T(1237,1,hr,VBe),g.dk=function(t){return!1},g.ek=function(t){return Te(ZRe,zt,2191,t,0,1)};var ulr=I(en,"EcorePackageImpl/27",1237);T(1238,1,hr,YBe),g.dk=function(t){return Ow(t)},g.ek=function(t){return Te(Ci,He,347,t,7,1)};var dlr=I(en,"EcorePackageImpl/28",1238);T(1239,1,hr,XBe),g.dk=function(t){return fe(t,61)},g.ek=function(t){return Te(gRe,Ex,61,t,0,1)};var flr=I(en,"EcorePackageImpl/29",1239);T(1213,1,hr,KBe),g.dk=function(t){return fe(t,508)},g.ek=function(t){return Te(ar,{3:1,4:1,5:1,2012:1},594,t,0,1)};var hlr=I(en,"EcorePackageImpl/3",1213);T(1240,1,hr,QBe),g.dk=function(t){return fe(t,575)},g.ek=function(t){return Te(bRe,zt,2018,t,0,1)};var glr=I(en,"EcorePackageImpl/30",1240);T(1241,1,hr,ZBe),g.dk=function(t){return fe(t,164)},g.ek=function(t){return Te(BRe,Ex,164,t,0,1)};var mlr=I(en,"EcorePackageImpl/31",1241);T(1242,1,hr,e7e),g.dk=function(t){return fe(t,76)},g.ek=function(t){return Te(hW,bxt,76,t,0,1)};var plr=I(en,"EcorePackageImpl/32",1242);T(1243,1,hr,t7e),g.dk=function(t){return fe(t,165)},g.ek=function(t){return Te(fT,He,165,t,0,1)};var blr=I(en,"EcorePackageImpl/33",1243);T(1244,1,hr,n7e),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var ylr=I(en,"EcorePackageImpl/34",1244);T(1245,1,hr,r7e),g.dk=function(t){return fe(t,299)},g.ek=function(t){return Te(B2e,zt,299,t,0,1)};var wlr=I(en,"EcorePackageImpl/35",1245);T(1246,1,hr,i7e),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var xlr=I(en,"EcorePackageImpl/36",1246);T(1247,1,hr,o7e),g.dk=function(t){return fe(t,93)},g.ek=function(t){return Te(G2e,zt,93,t,0,1)};var Alr=I(en,"EcorePackageImpl/37",1247);T(1248,1,hr,s7e),g.dk=function(t){return fe(t,595)},g.ek=function(t){return Te(DRe,zt,595,t,0,1)};var vlr=I(en,"EcorePackageImpl/38",1248);T(1249,1,hr,a7e),g.dk=function(t){return!1},g.ek=function(t){return Te(ePe,zt,2192,t,0,1)};var klr=I(en,"EcorePackageImpl/39",1249);T(1214,1,hr,c7e),g.dk=function(t){return fe(t,89)},g.ek=function(t){return Te(md,zt,29,t,0,1)};var Slr=I(en,"EcorePackageImpl/4",1214);T(1250,1,hr,l7e),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Elr=I(en,"EcorePackageImpl/40",1250);T(1251,1,hr,u7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Clr=I(en,"EcorePackageImpl/41",1251);T(1252,1,hr,d7e),g.dk=function(t){return fe(t,592)},g.ek=function(t){return Te(pRe,zt,592,t,0,1)};var Mlr=I(en,"EcorePackageImpl/42",1252);T(1253,1,hr,f7e),g.dk=function(t){return!1},g.ek=function(t){return Te(tPe,He,2193,t,0,1)};var Tlr=I(en,"EcorePackageImpl/43",1253);T(1254,1,hr,h7e),g.dk=function(t){return fe(t,45)},g.ek=function(t){return Te(V1,UB,45,t,0,1)};var Ilr=I(en,"EcorePackageImpl/44",1254);T(1215,1,hr,g7e),g.dk=function(t){return fe(t,146)},g.ek=function(t){return Te(kf,zt,146,t,0,1)};var $lr=I(en,"EcorePackageImpl/5",1215);T(1216,1,hr,m7e),g.dk=function(t){return fe(t,160)},g.ek=function(t){return Te(doe,zt,160,t,0,1)};var Rlr=I(en,"EcorePackageImpl/6",1216);T(1217,1,hr,p7e),g.dk=function(t){return fe(t,462)},g.ek=function(t){return Te(fW,zt,682,t,0,1)};var Plr=I(en,"EcorePackageImpl/7",1217);T(1218,1,hr,b7e),g.dk=function(t){return fe(t,575)},g.ek=function(t){return Te(um,zt,691,t,0,1)};var Nlr=I(en,"EcorePackageImpl/8",1218);T(1219,1,hr,y7e),g.dk=function(t){return fe(t,472)},g.ek=function(t){return Te(aN,zt,472,t,0,1)};var Olr=I(en,"EcorePackageImpl/9",1219);T(1030,2059,Hwt,Cqe),g.Ki=function(t,n){Ein(this,d(n,420))},g.Oi=function(t,n){qft(this,t,d(n,420))};var Llr=I(en,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030);T(1031,152,OD,Ket),g.hj=function(){return this.a.a};var Dlr=I(en,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031);T(1058,1057,{},iKe);var Flr=I("org.eclipse.emf.ecore.plugin","EcorePlugin",1058),DRe=ni(yxt,"Resource");T(793,1502,wxt),g.Fl=function(t){},g.Gl=function(t){},g.Cl=function(){return!this.a&&(this.a=new AJ(this)),this.a},g.Dl=function(t){var n,o,a,l,h;if(a=t.length,a>0)if(sn(0,t.length),t.charCodeAt(0)==47){for(h=new rc(4),l=1,n=1;n<a;++n)sn(n,t.length),t.charCodeAt(n)==47&&(Ve(h,l==n?"":(wo(l,n,t.length),t.substr(l,n-l))),l=n+1);return Ve(h,(sn(l,t.length+1),t.substr(l))),Scn(this,h)}else sn(a-1,t.length),t.charCodeAt(a-1)==63&&(o=age(t,Pc(63),a-2),o>0&&(t=(wo(0,o,t.length),t.substr(0,o))));return jdn(this,t)},g.El=function(){return this.c},g.Ib=function(){var t;return c1(this.Pm)+"@"+(t=Wr(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},g.b=!1;var _lr=I(qee,"ResourceImpl",793);T(1503,793,wxt,gJe);var jlr=I(qee,"BinaryResourceImpl",1503);T(1171,704,Gee),g._i=function(t){return fe(t,57)?aKt(this,d(t,57)):fe(t,595)?new fn(d(t,595).Cl()):Ee(t)===Ee(this.f)?d(t,18).Jc():(AC(),Q5.a)},g.Ob=function(){return m0e(this)},g.a=!1;var Blr=I(Kr,"EcoreUtil/ContentTreeIterator",1171);T(1504,1171,Gee,Cet),g._i=function(t){return Ee(t)===Ee(this.f)?d(t,16).Jc():new Prt(d(t,57))};var Glr=I(qee,"ResourceImpl/5",1504);T(654,2071,axt,AJ),g.Gc=function(t){return this.i<=4?pM(this,t):fe(t,52)&&d(t,52).Gh()==this.a},g.Ki=function(t,n){t==this.i-1&&(this.a.b||(this.a.b=!0))},g.Mi=function(t,n){t==0?this.a.b||(this.a.b=!0):SY(this,t,n)},g.Oi=function(t,n){},g.Pi=function(t,n,o){},g.Jj=function(){return 2},g.hj=function(){return this.a},g.Kj=function(){return!0},g.Lj=function(t,n){var o;return o=d(t,52),n=o.ci(this.a,n),n},g.Mj=function(t,n){var o;return o=d(t,52),o.ci(null,n)},g.Nj=function(){return!1},g.Qi=function(){return!0},g.$i=function(t){return Te(Lb,zt,57,t,0,1)},g.Wi=function(){return!1};var zlr=I(qee,"ResourceImpl/ContentsEList",654);T(962,2041,LM,mJe),g.dd=function(t){return this.a.Ii(t)},g.gc=function(){return this.a.gc()};var Wlr=I(Kr,"AbstractSequentialInternalEList/1",962),FRe,_Re,So,jRe;T(632,1,{},NZe);var gW,mW,Hlr=I(Kr,"BasicExtendedMetaData",632);T(1162,1,{},SXe),g.Hl=function(){return null},g.Il=function(){return this.a==-2&&UGt(this,Uln(this.d,this.b)),this.a},g.Jl=function(){return null},g.Kl=function(){return Pt(),Pt(),Oo},g.ve=function(){return this.c==cT&&JGt(this,dut(this.d,this.b)),this.c},g.Ll=function(){return 0},g.a=-2,g.c=cT;var Ulr=I(Kr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162);T(1163,1,{},irt),g.Hl=function(){return this.a==(_C(),gW)&&YGt(this,Nmn(this.f,this.b)),this.a},g.Il=function(){return 0},g.Jl=function(){return this.c==(_C(),gW)&&qGt(this,Omn(this.f,this.b)),this.c},g.Kl=function(){return!this.d&&KGt(this,bbn(this.f,this.b)),this.d},g.ve=function(){return this.e==cT&&ZGt(this,dut(this.f,this.b)),this.e},g.Ll=function(){return this.g==-2&&tzt(this,dln(this.f,this.b)),this.g},g.e=cT,g.g=-2;var Jlr=I(Kr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163);T(1161,1,{},CXe),g.b=!1,g.c=!1;var qlr=I(Kr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161);T(1164,1,{},ort),g.c=-2,g.e=cT,g.f=cT;var Vlr=I(Kr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164);T(588,630,Fs,z8),g.Jj=function(){return this.c},g.ml=function(){return!1},g.Ui=function(t,n){return n},g.c=0;var Ylr=I(Kr,"EDataTypeEList",588),BRe=ni(Kr,"FeatureMap");T(77,588,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},mi),g._c=function(t,n){egn(this,t,d(n,76))},g.Ec=function(t){return bhn(this,d(t,76))},g.Fi=function(t){lXt(this,d(t,76))},g.Lj=function(t,n){return CJt(this,d(t,76),n)},g.Mj=function(t,n){return lge(this,d(t,76),n)},g.Ri=function(t,n){return Spn(this,t,n)},g.Ui=function(t,n){return gyn(this,t,d(n,76))},g.fd=function(t,n){return jgn(this,t,d(n,76))},g.Sj=function(t,n){return MJt(this,d(t,76),n)},g.Tj=function(t,n){return QQe(this,d(t,76),n)},g.Uj=function(t,n,o){return tln(this,d(t,76),d(n,76),o)},g.Xi=function(t,n){return bK(this,t,d(n,76))},g.Ml=function(t,n){return lwe(this,t,n)},g.ad=function(t,n){var o,a,l,h,b,w,A,k,C;for(k=new s0(n.gc()),l=n.Jc();l.Ob();)if(a=d(l.Pb(),76),h=a.Jk(),Xg(this.e,h))(!h.Qi()||!P9(this,h,a.kd())&&!pM(k,a))&&jn(k,a);else{for(C=yc(this.e.Ah(),h),o=d(this.g,123),b=!0,w=0;w<this.i;++w)if(A=o[w],C.$l(A.Jk())){d(Iv(this,w,a),76),b=!1;break}b&&jn(k,a)}return Ibe(this,t,k)},g.Fc=function(t){var n,o,a,l,h,b,w,A,k;for(A=new s0(t.gc()),a=t.Jc();a.Ob();)if(o=d(a.Pb(),76),l=o.Jk(),Xg(this.e,l))(!l.Qi()||!P9(this,l,o.kd())&&!pM(A,o))&&jn(A,o);else{for(k=yc(this.e.Ah(),l),n=d(this.g,123),h=!0,b=0;b<this.i;++b)if(w=n[b],k.$l(w.Jk())){d(Iv(this,b,o),76),h=!1;break}h&&jn(A,o)}return gi(this,A)},g.Di=function(t){return this.j=-1,QK(this,this.i,t)},g.Nl=function(t,n,o){return twe(this,t,n,o)},g.Vk=function(t,n){return XL(this,t,n)},g.Ol=function(t,n,o){return $we(this,t,n,o)},g.Pl=function(){return this},g.Ql=function(t,n){return ZL(this,t,n)},g.Rl=function(t){return d(ue(this,t),76).Jk()},g.Sl=function(t){return d(ue(this,t),76).kd()},g.Tl=function(){return this.b},g.Kj=function(){return!0},g.Rj=function(){return!0},g.Ul=function(t){return!ML(this,t)},g.$i=function(t){return Te(SRt,bxt,345,t,0,1)},g.nl=function(t){return Yq(this,t)},g.Wb=function(t){L4(this,t)},g.Vl=function(t,n){_B(this,t,n)},g.Wl=function(t){return fat(this,t)},g.Xl=function(t){Xut(this,t)};var Xlr=I(Kr,"BasicFeatureMap",77);T(1939,1,og),g.Nb=function(t){ko(this,t)},g.Rb=function(t){if(this.g==-1)throw Q(new Hc);i9(this);try{Hgt(this.e,this.b,this.a,t),this.d=this.e.j,Kj(this)}catch(n){throw n=ki(n),fe(n,99)?Q(new Au):Q(n)}},g.Ob=function(){return gX(this)},g.Sb=function(){return Hct(this)},g.Pb=function(){return Kj(this)},g.Tb=function(){return this.a},g.Ub=function(){var t;if(Hct(this))return i9(this),this.g=--this.a,this.sl()&&(t=eP(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw Q(new js)},g.Vb=function(){return this.a-1},g.Qb=function(){if(this.g==-1)throw Q(new Hc);i9(this);try{Pft(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(t){throw t=ki(t),fe(t,99)?Q(new Au):Q(t)}},g.sl=function(){return!1},g.Wb=function(t){if(this.g==-1)throw Q(new Hc);i9(this);try{ypt(this.e,this.b,this.g,t),this.d=this.e.j}catch(n){throw n=ki(n),fe(n,99)?Q(new Au):Q(n)}},g.a=0,g.c=0,g.d=0,g.f=!1,g.g=0,g.i=0;var Klr=I(Kr,"FeatureMapUtil/BasicFeatureEIterator",1939);T(417,1939,og,YC),g.Yl=function(){var t,n,o;for(o=this.e.i,t=d(this.e.g,123);this.c<o;){if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},g.Zl=function(){var t,n;for(t=d(this.e.g,123);--this.c>=0;)if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1};var Qlr=I(Kr,"BasicFeatureMap/FeatureEIterator",417);T(673,417,og,Pq),g.sl=function(){return!0};var Zlr=I(Kr,"BasicFeatureMap/ResolvingFeatureEIterator",673);T(960,485,j7,bKe),g.nj=function(){return this};var eur=I(Kr,"EContentsEList/1",960);T(961,485,j7,BXe),g.sl=function(){return!1};var tur=I(Kr,"EContentsEList/2",961);T(959,289,B7,yKe),g.ul=function(t){},g.Ob=function(){return!1},g.Sb=function(){return!1};var nur=I(Kr,"EContentsEList/FeatureIteratorImpl/1",959);T(832,588,Fs,phe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var rur=I(Kr,"EDataTypeEList/Unsettable",832);T(1937,588,Fs,CKe),g.Qi=function(){return!0};var iur=I(Kr,"EDataTypeUniqueEList",1937);T(1938,832,Fs,SKe),g.Qi=function(){return!0};var our=I(Kr,"EDataTypeUniqueEList/Unsettable",1938);T(147,82,Fs,Uc),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var sur=I(Kr,"EObjectContainmentEList/Resolving",147);T(1165,547,Fs,kKe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var aur=I(Kr,"EObjectContainmentEList/Unsettable/Resolving",1165);T(760,14,Fs,nge),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var cur=I(Kr,"EObjectContainmentWithInverseEList/Unsettable",760);T(1199,760,Fs,jQe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var lur=I(Kr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199);T(752,494,Fs,mhe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var uur=I(Kr,"EObjectEList/Unsettable",752);T(340,494,Fs,hv),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var dur=I(Kr,"EObjectResolvingEList",340);T(1842,752,Fs,EKe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var fur=I(Kr,"EObjectResolvingEList/Unsettable",1842);T(1505,1,{},w7e);var CRt,hur=I(Kr,"EObjectValidator",1505);T(551,494,Fs,a9),g.gl=function(){return this.d},g.hl=function(){return this.b},g.Kj=function(){return!0},g.kl=function(){return!0},g.b=0;var gur=I(Kr,"EObjectWithInverseEList",551);T(1202,551,Fs,BQe),g.jl=function(){return!0};var mur=I(Kr,"EObjectWithInverseEList/ManyInverse",1202);T(633,551,Fs,eV),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var pur=I(Kr,"EObjectWithInverseEList/Unsettable",633);T(1201,633,Fs,GQe),g.jl=function(){return!0};var bur=I(Kr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201);T(761,551,Fs,rge),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var yur=I(Kr,"EObjectWithInverseResolvingEList",761);T(31,761,Fs,Rt),g.jl=function(){return!0};var wur=I(Kr,"EObjectWithInverseResolvingEList/ManyInverse",31);T(762,633,Fs,ige),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var xur=I(Kr,"EObjectWithInverseResolvingEList/Unsettable",762);T(1200,762,Fs,zQe),g.jl=function(){return!0};var Aur=I(Kr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200);T(1166,630,Fs),g.Ji=function(){return(this.b&1792)==0},g.Li=function(){this.b|=1},g.il=function(){return(this.b&4)!=0},g.Kj=function(){return(this.b&40)!=0},g.jl=function(){return(this.b&16)!=0},g.kl=function(){return(this.b&8)!=0},g.ll=function(){return(this.b&Kg)!=0},g.$k=function(){return(this.b&32)!=0},g.ml=function(){return(this.b&sd)!=0},g.dk=function(t){return this.d?Brt(this.d,t):this.Jk().Fk().dk(t)},g.Oj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},g.Qi=function(){return(this.b&128)!=0},g.Ek=function(){var t;Ln(this),(this.b&2)!=0&&(Ll(this.e)?(t=(this.b&1)!=0,this.b&=-2,oC(this,new Rd(this.e,2,ei(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},g.Wi=function(){return(this.b&1536)==0},g.b=0;var vur=I(Kr,"EcoreEList/Generic",1166);T(1167,1166,Fs,Btt),g.Jk=function(){return this.a};var kur=I(Kr,"EcoreEList/Dynamic",1167);T(759,67,$h,vde),g.$i=function(t){return cL(this.a.a,t)};var Sur=I(Kr,"EcoreEMap/1",759);T(758,82,Fs,Qge),g.Ki=function(t,n){Zj(this.b,d(n,138))},g.Mi=function(t,n){Jat(this.b)},g.Ni=function(t,n,o){var a;++(a=this.b,d(n,138),a).e},g.Oi=function(t,n){EX(this.b,d(n,138))},g.Pi=function(t,n,o){EX(this.b,d(o,138)),Ee(o)===Ee(n)&&d(o,138).zi(PHt(d(n,138).jd())),Zj(this.b,d(n,138))};var Eur=I(Kr,"EcoreEMap/DelegateEObjectContainmentEList",758);T(1197,145,C2e,nat);var Cur=I(Kr,"EcoreEMap/Unsettable",1197);T(1198,758,Fs,WQe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var Mur=I(Kr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198);T(1170,226,Gv,Jet),g.a=!1,g.b=!1;var Tur=I(Kr,"EcoreUtil/Copier",1170);T(754,1,co,Prt),g.Nb=function(t){ko(this,t)},g.Ob=function(){return Ult(this)},g.Pb=function(){var t;return Ult(this),t=this.b,this.b=null,t},g.Qb=function(){this.a.Qb()};var Iur=I(Kr,"EcoreUtil/ProperContentIterator",754);T(1506,1505,{},xze);var MRt,$ur=I(Kr,"EcoreValidator",1506),TRt,Rur=ni(Kr,"FeatureMapUtil/Validator");T(1270,1,{2020:1},x7e),g.$l=function(t){return!0};var Pur=I(Kr,"FeatureMapUtil/1",1270);T(767,1,{2020:1},zwe),g.$l=function(t){var n;return this.c==t?!0:(n=rt(Qt(this.a,t)),n==null?jmn(this,t)?(Tit(this.a,t,(Ut(),dT)),!0):(Tit(this.a,t,(Ut(),wb)),!1):n==(Ut(),dT))},g.e=!1;var moe,Nur=I(Kr,"FeatureMapUtil/BasicValidator",767);T(768,44,Gv,fhe);var Our=I(Kr,"FeatureMapUtil/BasicValidator/Cache",768);T(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},m4),g._c=function(t,n){Hgt(this.c,this.b,t,n)},g.Ec=function(t){return lwe(this.c,this.b,t)},g.ad=function(t,n){return s1n(this.c,this.b,t,n)},g.Fc=function(t){return V$(this,t)},g.Ei=function(t,n){Ntn(this.c,this.b,t,n)},g.Uk=function(t,n){return twe(this.c,this.b,t,n)},g.Yi=function(t){return FB(this.c,this.b,t,!1)},g.Gi=function(){return eKe(this.c,this.b)},g.Hi=function(){return mHt(this.c,this.b)},g.Ii=function(t){return jen(this.c,this.b,t)},g.Vk=function(t,n){return EQe(this,t,n)},g.$b=function(){bk(this)},g.Gc=function(t){return P9(this.c,this.b,t)},g.Hc=function(t){return Fnn(this.c,this.b,t)},g.Xb=function(t){return FB(this.c,this.b,t,!0)},g.Dk=function(t){return this},g.bd=function(t){return YZt(this.c,this.b,t)},g.dc=function(){return p8(this)},g.Oj=function(){return!ML(this.c,this.b)},g.Jc=function(){return wtn(this.c,this.b)},g.cd=function(){return xtn(this.c,this.b)},g.dd=function(t){return Gin(this.c,this.b,t)},g.Ri=function(t,n){return cpt(this.c,this.b,t,n)},g.Si=function(t,n){Gen(this.c,this.b,t,n)},g.ed=function(t){return Pft(this.c,this.b,t)},g.Kc=function(t){return lpn(this.c,this.b,t)},g.fd=function(t,n){return ypt(this.c,this.b,t,n)},g.Wb=function(t){yB(this.c,this.b),V$(this,d(t,16))},g.gc=function(){return zin(this.c,this.b)},g.Nc=function(){return VQt(this.c,this.b)},g.Oc=function(t){return XZt(this.c,this.b,t)},g.Ib=function(){var t,n;for(n=new Dm,n.a+="[",t=eKe(this.c,this.b);gX(t);)ds(n,X$(Kj(t))),gX(t)&&(n.a+=ac);return n.a+="]",n.a},g.Ek=function(){yB(this.c,this.b)};var Lur=I(Kr,"FeatureMapUtil/FeatureEList",499);T(641,40,OD,gY),g.fj=function(t){return FR(this,t)},g.kj=function(t){var n,o,a,l,h,b,w;switch(this.d){case 1:case 2:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=5,n=new s0(2),jn(n,this.g),jn(n,t.gj()),this.g=n,!0;break}}break}case 5:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return o=d(this.g,18),o.Ec(t.gj()),!0;break}}break}case 4:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=6,w=new s0(2),jn(w,this.n),jn(w,t.ij()),this.n=w,b=re(ne(qn,1),ur,30,15,[this.o,t.jj()]),this.g=b,!0;break}}break}case 6:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return o=d(this.n,18),o.Ec(t.ij()),b=d(this.g,54),a=Te(qn,ur,30,b.length+1,15,1),$a(b,0,a,0,b.length),a[b.length]=t.jj(),this.g=a,!0;break}}break}}return!1};var Dur=I(Kr,"FeatureMapUtil/FeatureENotificationImpl",641);T(560,499,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},J8),g.Ml=function(t,n){return lwe(this.c,t,n)},g.Nl=function(t,n,o){return twe(this.c,t,n,o)},g.Ol=function(t,n,o){return $we(this.c,t,n,o)},g.Pl=function(){return this},g.Ql=function(t,n){return ZL(this.c,t,n)},g.Rl=function(t){return d(FB(this.c,this.b,t,!1),76).Jk()},g.Sl=function(t){return d(FB(this.c,this.b,t,!1),76).kd()},g.Tl=function(){return this.a},g.Ul=function(t){return!ML(this.c,t)},g.Vl=function(t,n){_B(this.c,t,n)},g.Wl=function(t){return fat(this.c,t)},g.Xl=function(t){Xut(this.c,t)};var Fur=I(Kr,"FeatureMapUtil/FeatureFeatureMap",560);T(1269,1,Jee,EXe),g.Dk=function(t){return FB(this.b,this.a,-1,t)},g.Oj=function(){return!ML(this.b,this.a)},g.Wb=function(t){_B(this.b,this.a,t)},g.Ek=function(){yB(this.b,this.a)};var _ur=I(Kr,"FeatureMapUtil/FeatureValue",1269),cE,poe,boe,lE,IRt,eF=ni(V7,"AnyType");T(677,63,Qg,FJ);var jur=I(V7,"InvalidDatatypeValueException",677),pW=ni(V7,Axt),tF=ni(V7,vxt),GRe=ni(V7,kxt),$Rt,pa,zRe,uy,RRt,PRt,NRt,ORt,LRt,DRt,FRt,_Rt,jRt,BRt,GRt,M2,zRt,T2,fN,WRt,tw,nF,rF,HRt,hN,gN;T(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Fde),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.c&&(this.c=new mi(this,0)),this.c):(!this.c&&(this.c=new mi(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)):(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new mi(this,2)),this.b):(!this.b&&(this.b=new mi(this,2)),this.b.b)}return Mu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Rh=function(t,n,o){var a;switch(n){case 0:return!this.c&&(this.c=new mi(this,0)),XL(this.c,t,o);case 1:return(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),72)).Vk(t,o);case 2:return!this.b&&(this.b=new mi(this,2)),XL(this.b,t,o)}return a=d(jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),n),69),a.uk().yk(this,_pe(this),n-vn(this.fi()),t,o)},g.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return Eu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),L4(this.c,n);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new mi(this,2)),L4(this.b,n);return}Nu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),zRe},g.hi=function(t){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),Ln(this.c);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).$b();return;case 2:!this.b&&(this.b=new mi(this,2)),Ln(this.b);return}Pu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (mixed: ",H$(t,this.c),t.a+=", anyAttribute: ",H$(t,this.b),t.a+=")",t.a)};var Bur=I(Di,"AnyTypeImpl",836);T(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},P7e),g.Ih=function(t,n,o){switch(t){case 0:return this.a;case 1:return this.b}return Mu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Th=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return Eu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:izt(this,Jn(n));return;case 1:szt(this,Jn(n));return}Nu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),M2},g.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Pu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (data: ",ds(t,this.a),t.a+=", target: ",ds(t,this.b),t.a+=")",t.a)},g.a=null,g.b=null;var Gur=I(Di,"ProcessingInstructionImpl",678);T(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},rqe),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.c&&(this.c=new mi(this,0)),this.c):(!this.c&&(this.c=new mi(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)):(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new mi(this,2)),this.b):(!this.b&&(this.b=new mi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0));case 4:return sge(this.a,(!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))));case 5:return this.a}return Mu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))!=null;case 4:return sge(this.a,(!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))))!=null;case 5:return!!this.a}return Eu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),L4(this.c,n);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new mi(this,2)),L4(this.b,n);return;case 3:Jme(this,Jn(n));return;case 4:Jme(this,oge(this.a,n));return;case 5:ozt(this,d(n,160));return}Nu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),T2},g.hi=function(t){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),Ln(this.c);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).$b();return;case 2:!this.b&&(this.b=new mi(this,2)),Ln(this.b);return;case 3:!this.c&&(this.c=new mi(this,0)),_B(this.c,(Nr(),fN),null);return;case 4:Jme(this,oge(this.a,null));return;case 5:this.a=null;return}Pu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t))};var zur=I(Di,"SimpleAnyTypeImpl",679);T(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},iqe),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.a&&(this.a=new mi(this,0)),this.a):(!this.a&&(this.a=new mi(this,0)),this.a.b);case 1:return o?(!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),this.b):(!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),Y4(this.b));case 2:return o?(!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),this.c):(!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),Y4(this.c));case 3:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),nF));case 4:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),rF));case 5:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),hN));case 6:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),gN))}return Mu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Rh=function(t,n,o){var a;switch(n){case 0:return!this.a&&(this.a=new mi(this,0)),XL(this.a,t,o);case 1:return!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),L8(this.b,t,o);case 2:return!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),L8(this.c,t,o);case 5:return!this.a&&(this.a=new mi(this,0)),EQe(Ba(this.a,(Nr(),hN)),t,o)}return a=d(jt((this.j&2)==0?(Nr(),tw):(!this.k&&(this.k=new of),this.k).Lk(),n),69),a.uk().yk(this,_pe(this),n-vn((Nr(),tw)),t,o)},g.Th=function(t){switch(t){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 mi(this,0)),!p8(Ba(this.a,(Nr(),nF)));case 4:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),rF)));case 5:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),hN)));case 6:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),gN)))}return Eu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.a&&(this.a=new mi(this,0)),L4(this.a,n);return;case 1:!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),wj(this.b,n);return;case 2:!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),wj(this.c,n);return;case 3:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),nF))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,nF),d(n,18));return;case 4:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),rF))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,rF),d(n,18));return;case 5:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),hN))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,hN),d(n,18));return;case 6:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),gN))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,gN),d(n,18));return}Nu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),tw},g.hi=function(t){switch(t){case 0:!this.a&&(this.a=new mi(this,0)),Ln(this.a);return;case 1:!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),nF)));return;case 4:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),rF)));return;case 5:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),hN)));return;case 6:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),gN)));return}Pu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (mixed: ",H$(t,this.a),t.a+=")",t.a)};var Wur=I(Di,"XMLTypeDocumentRootImpl",680);T(2007,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1,2101:1},A7e),g.oi=function(t,n){switch(t.fk()){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 n==null?null:Ds(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Jn(n);case 6:return WUt(d(n,198));case 12:case 47:case 49:case 11:return obt(this,t,n);case 13:return n==null?null:f1n(d(n,249));case 15:case 14:return n==null?null:eXt(he(be(n)));case 17:return jdt((Nr(),n));case 18:return jdt(n);case 21:case 20:return n==null?null:tXt(d(n,165).a);case 27:return HUt(d(n,198));case 30:return Kut((Nr(),d(n,16)));case 31:return Kut(d(n,16));case 40:return zUt((Nr(),n));case 42:return Bdt((Nr(),n));case 43:return Bdt(n);case 59:case 48:return GUt((Nr(),n));default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h;switch(t.G==-1&&(t.G=(o=iu(t),o?ep(o.si(),t):-1)),t.G){case 0:return n=new Fde,n;case 1:return a=new P7e,a;case 2:return l=new rqe,l;case 3:return h=new iqe,h;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){var o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se;switch(t.fk()){case 5:case 52:case 4:return n;case 6:return Asn(n);case 8:case 7:return n==null?null:aln(n);case 9:return n==null?null:rL(cu((a=Ha(n,!0),a.length>0&&(sn(0,a.length),a.charCodeAt(0)==43)?(sn(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return n==null?null:rL(cu((l=Ha(n,!0),l.length>0&&(sn(0,l.length),l.charCodeAt(0)==43)?(sn(1,l.length+1),l.substr(1)):l),-128,127)<<24>>24);case 11:return Jn(S0(this,(Nr(),NRt),n));case 12:return Jn(S0(this,(Nr(),ORt),n));case 13:return n==null?null:new ife(Ha(n,!0));case 15:case 14:return xhn(n);case 16:return Jn(S0(this,(Nr(),LRt),n));case 17:return Zlt((Nr(),n));case 18:return Zlt(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ha(n,!0);case 21:case 20:return $hn(n);case 22:return Jn(S0(this,(Nr(),DRt),n));case 23:return Jn(S0(this,(Nr(),FRt),n));case 24:return Jn(S0(this,(Nr(),_Rt),n));case 25:return Jn(S0(this,(Nr(),jRt),n));case 26:return Jn(S0(this,(Nr(),BRt),n));case 27:return dsn(n);case 30:return eut((Nr(),n));case 31:return eut(n);case 32:return n==null?null:Ge(cu((C=Ha(n,!0),C.length>0&&(sn(0,C.length),C.charCodeAt(0)==43)?(sn(1,C.length+1),C.substr(1)):C),po,pr));case 33:return n==null?null:new Hp(($=Ha(n,!0),$.length>0&&(sn(0,$.length),$.charCodeAt(0)==43)?(sn(1,$.length+1),$.substr(1)):$));case 34:return n==null?null:Ge(cu((O=Ha(n,!0),O.length>0&&(sn(0,O.length),O.charCodeAt(0)==43)?(sn(1,O.length+1),O.substr(1)):O),po,pr));case 36:return n==null?null:ux(zB((D=Ha(n,!0),D.length>0&&(sn(0,D.length),D.charCodeAt(0)==43)?(sn(1,D.length+1),D.substr(1)):D)));case 37:return n==null?null:ux(zB((G=Ha(n,!0),G.length>0&&(sn(0,G.length),G.charCodeAt(0)==43)?(sn(1,G.length+1),G.substr(1)):G)));case 40:return can((Nr(),n));case 42:return tut((Nr(),n));case 43:return tut(n);case 44:return n==null?null:new Hp((U=Ha(n,!0),U.length>0&&(sn(0,U.length),U.charCodeAt(0)==43)?(sn(1,U.length+1),U.substr(1)):U));case 45:return n==null?null:new Hp((te=Ha(n,!0),te.length>0&&(sn(0,te.length),te.charCodeAt(0)==43)?(sn(1,te.length+1),te.substr(1)):te));case 46:return Ha(n,!1);case 47:return Jn(S0(this,(Nr(),GRt),n));case 59:case 48:return aan((Nr(),n));case 49:return Jn(S0(this,(Nr(),zRt),n));case 50:return n==null?null:iM(cu((se=Ha(n,!0),se.length>0&&(sn(0,se.length),se.charCodeAt(0)==43)?(sn(1,se.length+1),se.substr(1)):se),H7,32767)<<16>>16);case 51:return n==null?null:iM(cu((h=Ha(n,!0),h.length>0&&(sn(0,h.length),h.charCodeAt(0)==43)?(sn(1,h.length+1),h.substr(1)):h),H7,32767)<<16>>16);case 53:return Jn(S0(this,(Nr(),WRt),n));case 55:return n==null?null:iM(cu((b=Ha(n,!0),b.length>0&&(sn(0,b.length),b.charCodeAt(0)==43)?(sn(1,b.length+1),b.substr(1)):b),H7,32767)<<16>>16);case 56:return n==null?null:iM(cu((w=Ha(n,!0),w.length>0&&(sn(0,w.length),w.charCodeAt(0)==43)?(sn(1,w.length+1),w.substr(1)):w),H7,32767)<<16>>16);case 57:return n==null?null:ux(zB((A=Ha(n,!0),A.length>0&&(sn(0,A.length),A.charCodeAt(0)==43)?(sn(1,A.length+1),A.substr(1)):A)));case 58:return n==null?null:ux(zB((k=Ha(n,!0),k.length>0&&(sn(0,k.length),k.charCodeAt(0)==43)?(sn(1,k.length+1),k.substr(1)):k)));case 60:return n==null?null:Ge(cu((o=Ha(n,!0),o.length>0&&(sn(0,o.length),o.charCodeAt(0)==43)?(sn(1,o.length+1),o.substr(1)):o),po,pr));case 61:return n==null?null:Ge(cu(Ha(n,!0),po,pr));default:throw Q(new Vt(iT+t.ve()+L0))}};var URt,WRe,JRt,HRe,Hur=I(Di,"XMLTypeFactoryImpl",2007);T(589,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1,2023:1,589:1},htt),g.N=!1,g.O=!1;var qRt=!1,Uur=I(Di,"XMLTypePackageImpl",589);T(1940,1,{843:1},v7e),g.Ik=function(){return xwe(),nPt};var Jur=I(Di,"XMLTypePackageImpl/1",1940);T(1949,1,hr,k7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var qur=I(Di,"XMLTypePackageImpl/10",1949);T(1950,1,hr,S7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Vur=I(Di,"XMLTypePackageImpl/11",1950);T(1951,1,hr,E7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Yur=I(Di,"XMLTypePackageImpl/12",1951);T(1952,1,hr,C7e),g.dk=function(t){return Ow(t)},g.ek=function(t){return Te(Ci,He,347,t,7,1)};var Xur=I(Di,"XMLTypePackageImpl/13",1952);T(1953,1,hr,M7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Kur=I(Di,"XMLTypePackageImpl/14",1953);T(1954,1,hr,T7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var Qur=I(Di,"XMLTypePackageImpl/15",1954);T(1955,1,hr,I7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var Zur=I(Di,"XMLTypePackageImpl/16",1955);T(1956,1,hr,$7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var edr=I(Di,"XMLTypePackageImpl/17",1956);T(1957,1,hr,R7e),g.dk=function(t){return fe(t,165)},g.ek=function(t){return Te(fT,He,165,t,0,1)};var tdr=I(Di,"XMLTypePackageImpl/18",1957);T(1958,1,hr,N7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ndr=I(Di,"XMLTypePackageImpl/19",1958);T(1941,1,hr,O7e),g.dk=function(t){return fe(t,849)},g.ek=function(t){return Te(eF,zt,849,t,0,1)};var rdr=I(Di,"XMLTypePackageImpl/2",1941);T(1959,1,hr,L7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var idr=I(Di,"XMLTypePackageImpl/20",1959);T(1960,1,hr,D7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var odr=I(Di,"XMLTypePackageImpl/21",1960);T(1961,1,hr,F7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var sdr=I(Di,"XMLTypePackageImpl/22",1961);T(1962,1,hr,_7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var adr=I(Di,"XMLTypePackageImpl/23",1962);T(1963,1,hr,j7e),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var cdr=I(Di,"XMLTypePackageImpl/24",1963);T(1964,1,hr,B7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ldr=I(Di,"XMLTypePackageImpl/25",1964);T(1965,1,hr,G7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var udr=I(Di,"XMLTypePackageImpl/26",1965);T(1966,1,hr,z7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var ddr=I(Di,"XMLTypePackageImpl/27",1966);T(1967,1,hr,W7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var fdr=I(Di,"XMLTypePackageImpl/28",1967);T(1968,1,hr,H7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var hdr=I(Di,"XMLTypePackageImpl/29",1968);T(1942,1,hr,U7e),g.dk=function(t){return fe(t,678)},g.ek=function(t){return Te(pW,zt,2098,t,0,1)};var gdr=I(Di,"XMLTypePackageImpl/3",1942);T(1969,1,hr,J7e),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var mdr=I(Di,"XMLTypePackageImpl/30",1969);T(1970,1,hr,q7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var pdr=I(Di,"XMLTypePackageImpl/31",1970);T(1971,1,hr,V7e),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var bdr=I(Di,"XMLTypePackageImpl/32",1971);T(1972,1,hr,Y7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ydr=I(Di,"XMLTypePackageImpl/33",1972);T(1973,1,hr,X7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var wdr=I(Di,"XMLTypePackageImpl/34",1973);T(1974,1,hr,K7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var xdr=I(Di,"XMLTypePackageImpl/35",1974);T(1975,1,hr,Q7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Adr=I(Di,"XMLTypePackageImpl/36",1975);T(1976,1,hr,Z7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var vdr=I(Di,"XMLTypePackageImpl/37",1976);T(1977,1,hr,eGe),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var kdr=I(Di,"XMLTypePackageImpl/38",1977);T(1978,1,hr,tGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Sdr=I(Di,"XMLTypePackageImpl/39",1978);T(1943,1,hr,nGe),g.dk=function(t){return fe(t,679)},g.ek=function(t){return Te(tF,zt,2099,t,0,1)};var Edr=I(Di,"XMLTypePackageImpl/4",1943);T(1979,1,hr,rGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Cdr=I(Di,"XMLTypePackageImpl/40",1979);T(1980,1,hr,iGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Mdr=I(Di,"XMLTypePackageImpl/41",1980);T(1981,1,hr,oGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Tdr=I(Di,"XMLTypePackageImpl/42",1981);T(1982,1,hr,sGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Idr=I(Di,"XMLTypePackageImpl/43",1982);T(1983,1,hr,aGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var $dr=I(Di,"XMLTypePackageImpl/44",1983);T(1984,1,hr,cGe),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Rdr=I(Di,"XMLTypePackageImpl/45",1984);T(1985,1,hr,lGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Pdr=I(Di,"XMLTypePackageImpl/46",1985);T(1986,1,hr,uGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Ndr=I(Di,"XMLTypePackageImpl/47",1986);T(1987,1,hr,dGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Odr=I(Di,"XMLTypePackageImpl/48",1987);T(1988,1,hr,fGe),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Ldr=I(Di,"XMLTypePackageImpl/49",1988);T(1944,1,hr,hGe),g.dk=function(t){return fe(t,680)},g.ek=function(t){return Te(GRe,zt,2100,t,0,1)};var Ddr=I(Di,"XMLTypePackageImpl/5",1944);T(1989,1,hr,gGe),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var Fdr=I(Di,"XMLTypePackageImpl/50",1989);T(1990,1,hr,mGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var _dr=I(Di,"XMLTypePackageImpl/51",1990);T(1991,1,hr,pGe),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var jdr=I(Di,"XMLTypePackageImpl/52",1991);T(1945,1,hr,bGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Bdr=I(Di,"XMLTypePackageImpl/6",1945);T(1946,1,hr,yGe),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var Gdr=I(Di,"XMLTypePackageImpl/7",1946);T(1947,1,hr,wGe),g.dk=function(t){return Nw(t)},g.ek=function(t){return Te(ci,He,476,t,8,1)};var zdr=I(Di,"XMLTypePackageImpl/8",1947);T(1948,1,hr,xGe),g.dk=function(t){return fe(t,224)},g.ek=function(t){return Te(NS,He,224,t,0,1)};var Wdr=I(Di,"XMLTypePackageImpl/9",1948),ah,Ap,mN,bW,ie;T(53,63,Qg,Yn);var Hdr=I(cp,"RegEx/ParseException",53);T(828,1,{},Gue),g._l=function(t){return t<this.j&&Co(this.i,t)==63},g.am=function(){var t,n,o,a,l;if(this.c!=10)throw Q(new Yn(Qn((Un(),D7))));switch(t=this.a,t){case 101:t=27;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 120:if(xr(this),this.c!=0)throw Q(new Yn(Qn((Un(),ap))));if(this.a==123){l=0,o=0;do{if(xr(this),this.c!=0)throw Q(new Yn(Qn((Un(),ap))));if((l=O1(this.a))<0)break;if(o>o*16)throw Q(new Yn(Qn((Un(),Owt))));o=o*16+l}while(!0);if(this.a!=125)throw Q(new Yn(Qn((Un(),Lwt))));if(o>lT)throw Q(new Yn(Qn((Un(),Dwt))));t=o}else{if(l=0,this.c!=0||(l=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(o=l,xr(this),this.c!=0||(l=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));o=o*16+l,t=o}break;case 117:if(a=0,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));n=n*16+a,t=n;break;case 118:if(xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,n>lT)throw Q(new Yn(Qn((Un(),"parser.descappe.4"))));t=n;break;case 65:case 90:case 122:throw Q(new Yn(Qn((Un(),Fwt))))}return t},g.bm=function(t){var n,o;switch(t){case 100:o=(this.e&32)==32?fb("Nd",!0):(vr(),yW);break;case 68:o=(this.e&32)==32?fb("Nd",!1):(vr(),XRe);break;case 119:o=(this.e&32)==32?fb("IsWord",!0):(vr(),QT);break;case 87:o=(this.e&32)==32?fb("IsWord",!1):(vr(),QRe);break;case 115:o=(this.e&32)==32?fb("IsSpace",!0):(vr(),uE);break;case 83:o=(this.e&32)==32?fb("IsSpace",!1):(vr(),KRe);break;default:throw Q(new Bs((n=t,Fxt+n.toString(16))))}return o},g.cm=function(t){var n,o,a,l,h,b,w,A,k,C,$,O;for(this.b=1,xr(this),n=null,this.c==0&&this.a==94?(xr(this),t?C=(vr(),vr(),++fi,new ru(5)):(n=(vr(),vr(),++fi,new ru(4)),Wa(n,0,lT),C=(++fi,new ru(4)))):C=(vr(),vr(),++fi,new ru(4)),l=!0;(O=this.c)!=1&&!(O==0&&this.a==93&&!l);){if(l=!1,o=this.a,a=!1,O==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:Ax(C,this.bm(o)),a=!0;break;case 105:case 73:case 99:case 67:o=this.sm(C,o),o<0&&(a=!0);break;case 112:case 80:if($=h0e(this,o),!$)throw Q(new Yn(Qn((Un(),Wee))));Ax(C,$),a=!0;break;default:o=this.am()}else if(O==20){if(b=wC(this.i,58,this.d),b<0)throw Q(new Yn(Qn((Un(),x2e))));if(w=!0,Co(this.i,this.d)==94&&(++this.d,w=!1),h=td(this.i,this.d,b),A=yot(h,w,(this.e&512)==512),!A)throw Q(new Yn(Qn((Un(),Iwt))));if(Ax(C,A),a=!0,b+1>=this.j||Co(this.i,b+1)!=93)throw Q(new Yn(Qn((Un(),x2e))));this.d=b+2}if(xr(this),!a)if(this.c!=0||this.a!=45)Wa(C,o,o);else{if(xr(this),(O=this.c)==1)throw Q(new Yn(Qn((Un(),F7))));O==0&&this.a==93?(Wa(C,o,o),Wa(C,45,45)):(k=this.a,O==10&&(k=this.am()),xr(this),Wa(C,o,k))}(this.e&sd)==sd&&this.c==0&&this.a==44&&xr(this)}if(this.c==1)throw Q(new Yn(Qn((Un(),F7))));return n&&(pP(n,C),C=n),Ov(C),hP(C),this.b=0,xr(this),C},g.dm=function(){var t,n,o,a;for(o=this.cm(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(xr(this),this.c!=9)throw Q(new Yn(Qn((Un(),Rwt))));if(n=this.cm(!1),a==4)Ax(o,n);else if(t==45)pP(o,n);else if(t==38)tbt(o,n);else throw Q(new Bs("ASSERT"))}else throw Q(new Yn(Qn((Un(),Pwt))));return xr(this),o},g.em=function(){var t,n;return t=this.a-48,n=(vr(),vr(),++fi,new QV(12,null,t)),!this.g&&(this.g=new v_),A_(this.g,new kde(t)),xr(this),n},g.fm=function(){return xr(this),vr(),XRt},g.gm=function(){return xr(this),vr(),YRt},g.hm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.im=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.jm=function(){return xr(this),Drn()},g.km=function(){return xr(this),vr(),QRt},g.lm=function(){return xr(this),vr(),ePt},g.mm=function(){var t;if(this.d>=this.j||((t=Co(this.i,this.d++))&65504)!=64)throw Q(new Yn(Qn((Un(),Cwt))));return xr(this),vr(),vr(),++fi,new Xh(0,t-64)},g.nm=function(){return xr(this),fbn()},g.om=function(){return xr(this),vr(),tPt},g.pm=function(){var t;return t=(vr(),vr(),++fi,new Xh(0,105)),xr(this),t},g.qm=function(){return xr(this),vr(),ZRt},g.rm=function(){return xr(this),vr(),KRt},g.sm=function(t,n){return this.am()},g.tm=function(){return xr(this),vr(),VRe},g.um=function(){var t,n,o,a,l;if(this.d+1>=this.j)throw Q(new Yn(Qn((Un(),kwt))));if(a=-1,n=null,t=Co(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new v_),A_(this.g,new kde(a)),++this.d,Co(this.i,this.d)!=41)throw Q(new Yn(Qn((Un(),J1))));++this.d}else switch(t==63&&--this.d,xr(this),n=Jwe(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Q(new Yn(Qn((Un(),J1))));break;default:throw Q(new Yn(Qn((Un(),Swt))))}if(xr(this),l=p0(this),o=null,l.e==2){if(l.Nm()!=2)throw Q(new Yn(Qn((Un(),Ewt))));o=l.Jm(1),l=l.Jm(0)}if(this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),vr(),vr(),++fi,new hst(a,n,l,o)},g.vm=function(){return xr(this),vr(),YRe},g.wm=function(){var t;if(xr(this),t=c9(24,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.xm=function(){var t;if(xr(this),t=c9(20,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.ym=function(){var t;if(xr(this),t=c9(22,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.zm=function(){var t,n,o,a,l;for(t=0,o=0,n=-1;this.d<this.j&&(n=Co(this.i,this.d),l=w0e(n),l!=0);)t|=l,++this.d;if(this.d>=this.j)throw Q(new Yn(Qn((Un(),y2e))));if(n==45){for(++this.d;this.d<this.j&&(n=Co(this.i,this.d),l=w0e(n),l!=0);)o|=l,++this.d;if(this.d>=this.j)throw Q(new Yn(Qn((Un(),y2e))))}if(n==58){if(++this.d,xr(this),a=Bet(p0(this),t,o),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));xr(this)}else if(n==41)++this.d,xr(this),a=Bet(p0(this),t,o);else throw Q(new Yn(Qn((Un(),vwt))));return a},g.Am=function(){var t;if(xr(this),t=c9(21,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Bm=function(){var t;if(xr(this),t=c9(23,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Cm=function(){var t,n;if(xr(this),t=this.f++,n=CV(p0(this),t),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),n},g.Dm=function(){var t;if(xr(this),t=CV(p0(this),0),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Em=function(t){return xr(this),this.c==5?(xr(this),e9(t,(vr(),vr(),++fi,new Qw(9,t)))):e9(t,(vr(),vr(),++fi,new Qw(3,t)))},g.Fm=function(t){var n;return xr(this),n=(vr(),vr(),++fi,new q$(2)),this.c==5?(xr(this),F1(n,bN),F1(n,t)):(F1(n,t),F1(n,bN)),n},g.Gm=function(t){return xr(this),this.c==5?(xr(this),vr(),vr(),++fi,new Qw(9,t)):(vr(),vr(),++fi,new Qw(3,t))},g.a=0,g.b=0,g.c=0,g.d=0,g.e=0,g.f=1,g.g=null,g.j=0;var Udr=I(cp,"RegEx/RegexParser",828);T(1927,828,{},oqe),g._l=function(t){return!1},g.am=function(){return K0e(this)},g.bm=function(t){return CM(t)},g.cm=function(t){return Ybt(this)},g.dm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.em=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.fm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.gm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.hm=function(){return xr(this),CM(67)},g.im=function(){return xr(this),CM(73)},g.jm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.km=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.lm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.mm=function(){return xr(this),CM(99)},g.nm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.om=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.pm=function(){return xr(this),CM(105)},g.qm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.rm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.sm=function(t,n){return Ax(t,CM(n)),-1},g.tm=function(){return xr(this),vr(),vr(),++fi,new Xh(0,94)},g.um=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.vm=function(){return xr(this),vr(),vr(),++fi,new Xh(0,36)},g.wm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.xm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.ym=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.zm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Am=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Bm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Cm=function(){var t;if(xr(this),t=CV(p0(this),0),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Dm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Em=function(t){return xr(this),e9(t,(vr(),vr(),++fi,new Qw(3,t)))},g.Fm=function(t){var n;return xr(this),n=(vr(),vr(),++fi,new q$(2)),F1(n,t),F1(n,bN),n},g.Gm=function(t){return xr(this),vr(),vr(),++fi,new Qw(3,t)};var I2=null,XT=null,Jdr=I(cp,"RegEx/ParserForXMLSchema",1927);T(122,1,uT,Dy),g.Hm=function(t){throw Q(new Bs("Not supported."))},g.Im=function(){return-1},g.Jm=function(t){return null},g.Km=function(){return null},g.Lm=function(t){},g.Mm=function(t){},g.Nm=function(){return 0},g.Ib=function(){return this.Om(0)},g.Om=function(t){return this.e==11?".":""},g.e=0;var URe,KT,pN,VRt,JRe,hA=null,yW,yoe=null,qRe,bN,woe=null,VRe,YRe,XRe,KRe,QRe,YRt,uE,XRt,KRt,QRt,ZRt,QT,ePt,tPt,fi=0,Txn=I(cp,"RegEx/Token",122);T(140,122,{3:1,140:1,122:1},ru),g.Om=function(t){var n,o,a;if(this.e==4)if(this==qRe)o=".";else if(this==yW)o="\\d";else if(this==QT)o="\\w";else if(this==uE)o="\\s";else{for(a=new Dm,a.a+="[",n=0;n<this.b.length;n+=2)(t&sd)!=0&&n>0&&(a.a+=","),this.b[n]===this.b[n+1]?ds(a,QL(this.b[n])):(ds(a,QL(this.b[n])),a.a+="-",ds(a,QL(this.b[n+1])));a.a+="]",o=a.a}else if(this==XRe)o="\\D";else if(this==QRe)o="\\W";else if(this==KRe)o="\\S";else{for(a=new Dm,a.a+="[^",n=0;n<this.b.length;n+=2)(t&sd)!=0&&n>0&&(a.a+=","),this.b[n]===this.b[n+1]?ds(a,QL(this.b[n])):(ds(a,QL(this.b[n])),a.a+="-",ds(a,QL(this.b[n+1])));a.a+="]",o=a.a}return o},g.a=!1,g.c=!1;var qdr=I(cp,"RegEx/RangeToken",140);T(587,1,{587:1},kde),g.a=0;var Vdr=I(cp,"RegEx/RegexParser/ReferencePosition",587);T(586,1,{3:1,586:1},AVe),g.Fb=function(t){var n;return t==null||!fe(t,586)?!1:(n=d(t,586),Mt(this.b,n.b)&&this.a==n.a)},g.Hb=function(){return Ym(this.b+"/"+H0e(this.a))},g.Ib=function(){return this.c.Om(this.a)},g.a=0;var Ydr=I(cp,"RegEx/RegularExpression",586);T(230,122,uT,Xh),g.Im=function(){return this.a},g.Om=function(t){var n,o,a;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:a="\\"+Qq(this.a&Li);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=Jo?(o=(n=this.a>>>0,"0"+n.toString(16)),a="\\v"+td(o,o.length-6,o.length)):a=""+Qq(this.a&Li)}break;case 8:this==VRe||this==YRe?a=""+Qq(this.a&Li):a="\\"+Qq(this.a&Li);break;default:a=null}return a},g.a=0;var Xdr=I(cp,"RegEx/Token/CharToken",230);T(323,122,uT,Qw),g.Jm=function(t){return this.a},g.Lm=function(t){this.b=t},g.Mm=function(t){this.c=t},g.Nm=function(){return 1},g.Om=function(t){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.Om(t)+"*";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}";else throw Q(new Bs("Token#toString(): CLOSURE "+this.c+ac+this.b));else if(this.c<0&&this.b<0)n=this.a.Om(t)+"*?";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}?";else throw Q(new Bs("Token#toString(): NONGREEDYCLOSURE "+this.c+ac+this.b));return n},g.b=0,g.c=0;var Kdr=I(cp,"RegEx/Token/ClosureToken",323);T(829,122,uT,rme),g.Jm=function(t){return t==0?this.a:this.b},g.Nm=function(){return 2},g.Om=function(t){var n;return this.b.e==3&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+":this.b.e==9&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+?":n=this.a.Om(t)+(""+this.b.Om(t)),n};var Qdr=I(cp,"RegEx/Token/ConcatToken",829);T(1925,122,uT,hst),g.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw Q(new Bs("Internal Error: "+t))},g.Nm=function(){return this.b?2:1},g.Om=function(t){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},g.c=0;var Zdr=I(cp,"RegEx/Token/ConditionToken",1925);T(1926,122,uT,Bnt),g.Jm=function(t){return this.b},g.Nm=function(){return 1},g.Om=function(t){return"(?"+(this.a==0?"":H0e(this.a))+(this.c==0?"":H0e(this.c))+":"+this.b.Om(t)+")"},g.a=0,g.c=0;var efr=I(cp,"RegEx/Token/ModifierToken",1926);T(830,122,uT,fme),g.Jm=function(t){return this.a},g.Nm=function(){return 1},g.Om=function(t){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.Om(t)+")":n="("+this.a.Om(t)+")";break;case 20:n="(?="+this.a.Om(t)+")";break;case 21:n="(?!"+this.a.Om(t)+")";break;case 22:n="(?<="+this.a.Om(t)+")";break;case 23:n="(?<!"+this.a.Om(t)+")";break;case 24:n="(?>"+this.a.Om(t)+")"}return n},g.b=0;var tfr=I(cp,"RegEx/Token/ParenToken",830);T(521,122,{3:1,122:1,521:1},QV),g.Km=function(){return this.b},g.Om=function(t){return this.e==12?"\\"+this.a:ihn(this.b)},g.a=0;var nfr=I(cp,"RegEx/Token/StringToken",521);T(469,122,uT,q$),g.Hm=function(t){F1(this,t)},g.Jm=function(t){return d(Zy(this.a,t),122)},g.Nm=function(){return this.a?this.a.a.c.length:0},g.Om=function(t){var n,o,a,l,h;if(this.e==1){if(this.a.a.c.length==2)n=d(Zy(this.a,0),122),o=d(Zy(this.a,1),122),o.e==3&&o.Jm(0)==n?l=n.Om(t)+"+":o.e==9&&o.Jm(0)==n?l=n.Om(t)+"+?":l=n.Om(t)+(""+o.Om(t));else{for(h=new Dm,a=0;a<this.a.a.c.length;a++)ds(h,d(Zy(this.a,a),122).Om(t));l=h.a}return l}if(this.a.a.c.length==2&&d(Zy(this.a,1),122).e==7)l=d(Zy(this.a,0),122).Om(t)+"?";else if(this.a.a.c.length==2&&d(Zy(this.a,0),122).e==7)l=d(Zy(this.a,1),122).Om(t)+"??";else{for(h=new Dm,ds(h,d(Zy(this.a,0),122).Om(t)),a=1;a<this.a.a.c.length;a++)h.a+="|",ds(h,d(Zy(this.a,a),122).Om(t));l=h.a}return l};var rfr=I(cp,"RegEx/Token/UnionToken",469);T(518,1,{596:1},YO),g.Ib=function(){return this.a.b};var ifr=I(Gxt,"XMLTypeUtil/PatternMatcherImpl",518);T(1690,1505,{},AGe);var nPt,ofr=I(Gxt,"XMLTypeValidator",1690);T(272,1,sg,g1),g.Ic=function(t){Mo(this,t)},g.Jc=function(){return(this.b-this.a)*this.c<0?Bb:new Up(this)},g.a=0,g.b=0,g.c=0;var Bb,sfr=I(j2e,"ExclusiveRange",272);T(1065,1,og,vGe),g.Rb=function(t){d(t,15),THt()},g.Nb=function(t){ko(this,t)},g.Pb=function(){return yWt()},g.Ub=function(){return wWt()},g.Wb=function(t){d(t,15),$Ht()},g.Ob=function(){return!1},g.Sb=function(){return!1},g.Tb=function(){return-1},g.Vb=function(){return-1},g.Qb=function(){throw Q(new Lm(Hxt))};var afr=I(j2e,"ExclusiveRange/1",1065);T(261,1,og,Up),g.Rb=function(t){d(t,15),IHt()},g.Nb=function(t){ko(this,t)},g.Pb=function(){return oin(this)},g.Ub=function(){return itn(this)},g.Wb=function(t){d(t,15),RHt()},g.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},g.Sb=function(){return this.b>0},g.Tb=function(){return this.b},g.Vb=function(){return this.b-1},g.Qb=function(){throw Q(new Lm(Hxt))},g.a=0,g.b=0;var cfr=I(j2e,"ExclusiveRange/RangeIterator",261),Wu=$C(_7,"C"),qn=$C(zP,"I"),Gc=$C(xS,"Z"),nw=$C(WP,"J"),tl=$C(jP,"B"),lo=$C(BP,"D"),gA=$C(GP,"F"),$2=$C(HP,"S"),Ixn=ni("org.eclipse.elk.core.labels","ILabelManager"),ZRe=ni(zo,"DiagnosticChain"),ePe=ni(yxt,"ResourceSet"),tPe=I(zo,"InvocationTargetException",null),rPt=(T_(),wen),iPt=iPt=Jcn;onn(wzt),bnn("permProps",[[["locale","default"],[Uxt,"gecko1_8"]],[["locale","default"],[Uxt,"safari"]]]),iPt(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(c,u,f){"use strict";function p(z){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},p(z)}function m(z,W){for(var Z=0;Z<W.length;Z++){var V=W[Z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(z,x(V.key),V)}}function y(z,W,Z){return W&&m(z.prototype,W),Z&&m(z,Z),Object.defineProperty(z,"prototype",{writable:!1}),z}function x(z){var W=v(z,"string");return p(W)=="symbol"?W:W+""}function v(z,W){if(p(z)!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var V=Z.call(z,W||"default");if(p(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(z)}function S(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}function E(z,W,Z){return W=N(W),M(z,P()?Reflect.construct(W,Z||[],N(z).constructor):W.apply(z,Z))}function M(z,W){if(W&&(p(W)=="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(z)}function R(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function P(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P=function(){return!!z})()}function N(z){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},N(z)}function F(z,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(W&&W.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),W&&L(z,W)}function L(z,W){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,V){return Z.__proto__=V,Z},L(z,W)}var _=c("./elk-api.js").default,j=(function(z){function W(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S(this,W);var V=Object.assign({},Z),H=!1;try{c.resolve("web-worker"),H=!0}catch{}if(Z.workerUrl)if(H){var q=c("web-worker");V.workerFactory=function(oe){return new q(oe)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
|
|
23
23
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|
24
|
-
... Falling back to non-web worker version.`);if(!V.workerFactory){var X=c("./elk-worker.min.js"),ee=X.Worker;V.workerFactory=function(oe){return new ee(oe)}}return E(this,W,[V])}return F(W,z),y(W)})(_);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=j,j.default=j},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,f){"use strict";var p=typeof Worker<"u"?Worker:void 0;u.exports=p},{}]},{},[3])(3)})});var YFn={};rPe(YFn,{ARCHITECTURE_ICON_LIMITS:()=>mF,AsciiWidthError:()=>FU,BACKEND_CONFORMANCE_CHECK_IDS:()=>gFt,BACKEND_CONFORMANCE_FIXTURE_ID:()=>Tce,BACKEND_CONFORMANCE_VERSION:()=>dOe,BINDABLE_ROLE_STYLE_PROPERTIES:()=>oF,BINDABLE_SCENE_ROLES:()=>pE,BRAND_CONSTRAINT_DESCRIPTORS:()=>TN,BRAND_CONSTRAINT_KINDS:()=>nI,BROWSER_CANVAS_RUNTIME:()=>kue,BUILTIN_SCENE_ROLE_TRAITS:()=>eI,CAPABILITY_NEGOTIATION_VERSION:()=>oPe,CORE_CAPABILITY_OFFERS:()=>aPe,CORE_SCENE_FEATURES:()=>Toe,CORE_SCENE_OPERATIONS:()=>Moe,CORE_SCENE_PRIMITIVES:()=>bE,DEFAULTS:()=>RE,DefaultBackend:()=>jh,ESSENTIAL_SCENE_PRIMITIVE_CAPABILITIES:()=>sF,ESSENTIAL_SCENE_PRIMITIVE_OPERATIONS:()=>APt,EXACT_ROLE_STYLE_CONTRACT:()=>mE,EXACT_STYLE_SCENE_ROLES:()=>CN,EXTERNAL_SCENE_API_VERSION:()=>KLe,ExtensionCollisionError:()=>kN,GitGraphDuplicateCommitError:()=>kH,GitGraphParseError:()=>$l,HOSTED_FONT_RESOURCES:()=>Z6,KNOWN_EXTENSION_CONTRACT_VERSIONS:()=>cPe,MAX_HOSTED_PNG_BYTES:()=>nGt,MAX_HOSTED_PNG_PIXELS:()=>bue,MAX_PNG_FONT_DIRECTORIES:()=>VU,MAX_PNG_FONT_DIRECTORY_LENGTH:()=>YU,MAX_PNG_PIXELS:()=>e_,MAX_PNG_RASTER_DIMENSION:()=>l$,MermaidFamilyDetectionError:()=>DN,MindmapDuplicateIdError:()=>vH,MindmapParseError:()=>wm,NATIVE_PNG_HOST_ONLY_OPTION_FIELDS:()=>oGt,NATIVE_PNG_OUTPUT_POLICY_FIELDS:()=>KU,OUTPUT_COLOR_PROFILE:()=>JU,OUTPUT_SECURITY_POLICY_VERSION:()=>pce,PNG_DEFAULT_FONT_FAMILY:()=>oDe,PNG_DEFAULT_SCALE:()=>QE,PNG_FONT_SOURCES:()=>mGt,PNG_NAPI_RUNTIME:()=>uDe,PNG_OUTPUT_OPTION_FIELDS:()=>t_,PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS:()=>DO,PNG_OUTPUT_POLICY_VERSION:()=>YI,PNG_WASM_RUNTIME:()=>pGt,PORTABLE_PNG_OUTPUT_OPTION_FIELDS:()=>XU,PRIMITIVE_REALIZATIONS:()=>vW,ParsedDiagramFamilyMismatchError:()=>OU,RENDER_CONTRACT_VERSION:()=>J6,RENDER_OUTPUTS:()=>vN,RENDER_OUTPUT_DESCRIPTORS:()=>dLe,RESOURCE_MANIFEST:()=>eDe,RESOURCE_MANIFEST_VERSION:()=>LO,ROLE_STYLE_PROPERTY_DESCRIPTORS:()=>gE,RenderCapabilityError:()=>qE,SCENE_CONTRACT_VERSION:()=>xW,SCENE_ROLE_DESCRIPTORS:()=>tI,SCENE_VALIDATION_LIMITS:()=>Cc,SCENE_VALIDATION_VERSION:()=>cFt,SEMANTIC_BINDING_CHANNELS:()=>v6,SHARED_RENDER_OPTION_FIELDS:()=>lk,STYLE_COLOR_TOKEN_DESCRIPTORS:()=>A6,STYLE_SPEC_FIELD_DESCRIPTORS:()=>fO,STYLE_SPEC_FORMAT_VERSION:()=>LI,SceneValidationError:()=>cO,TERMINAL_BOUNDED_PADDING_X:()=>ELe,TERMINAL_DEFAULT_BOX_BORDER_PADDING:()=>MLe,TERMINAL_DEFAULT_PADDING_X:()=>SLe,TERMINAL_DEFAULT_PADDING_Y:()=>CLe,TERMINAL_OUTPUT_POLICY_VERSION:()=>WE,TERMINAL_STYLE_VERSION:()=>vLe,TEXT_MEASUREMENT_CONTRACT:()=>kPe,TerminalOutputPolicyError:()=>Dp,applyOutputSecurityPolicy:()=>RI,applyPngColorProfile:()=>pue,architectureIconManifest:()=>G3t,architectureToMermaidGraph:()=>lle,assertHostedPngRasterBudget:()=>aGt,assertPngRasterBudget:()=>Aue,assertRenderableMarker:()=>iO,assertValidSceneDoc:()=>PI,buildExternalScene:()=>G7t,canonicalExtensionId:()=>SN,classifyMermaidFamilyFromFirstLine:()=>$se,connectorHitDistance:()=>yce,createExtensionIdentity:()=>gm,createMermaidBrowserPNGRenderer:()=>AGt,createMermaidRenderer:()=>qFn,essentialScenePrimitiveOperation:()=>vPt,evaluateExtensionCompatibility:()=>lPe,fromShikiTheme:()=>PDt,getBackend:()=>kFt,getStyle:()=>e6t,hitTestConnector:()=>ky,hitTestSceneConnectors:()=>X5t,hostedFontResource:()=>q7t,inferBackend:()=>DE,inlineResolvedColors:()=>Kae,inspectPngColorProfile:()=>mue,inspectPngDimensions:()=>gue,knownBackendDescriptors:()=>yOe,knownStyleDescriptors:()=>ROe,knownStyles:()=>$Oe,measureText:()=>Boe,measureTextWidth:()=>Qo,negotiateCapabilities:()=>sPe,negotiateRenderCapabilities:()=>uPt,normalizePortablePngBackground:()=>cDe,omitPngOutputOptions:()=>hGt,parseArchitectureDiagram:()=>D6,parseExtensionId:()=>my,parseGitGraph:()=>AI,parseMindmap:()=>ME,parseRegisteredMermaid:()=>nLe,parseSemVer:()=>ZT,pngNapiRuntimeProvenance:()=>bGt,pngOutputOptionsJsonSchema:()=>sGt,pngRasterDimensions:()=>aDe,prepareSvgForPngRasterization:()=>xue,projectNativePngOutputPolicyInput:()=>fGt,projectPortablePngOutputOptions:()=>dGt,registerBackend:()=>AFt,registerExtension:()=>EN,registerStyle:()=>QFt,renderContractDigest:()=>UA,renderMermaidASCII:()=>JBt,renderMermaidASCIIWithReceipt:()=>TLe,renderMermaidPNGInBrowserWithReceipt:()=>kGt,renderMermaidSVG:()=>SGt,renderMermaidSVGAsync:()=>VFn,renderMermaidSVGWithReceipt:()=>EGt,resolveArchitectureIcon:()=>_2,resolveColors:()=>CI,resolveDiagramColors:()=>Qae,resolvePngOutputPolicy:()=>lDe,resolvePortablePngOutputPolicy:()=>vue,resolveSceneRoleTraits:()=>fPe,resolveStyleReference:()=>tU,resolveStyleStack:()=>Lce,resolveTerminalOutputPolicy:()=>qle,runBackendConformance:()=>XH,sceneRoleTraits:()=>ow,semVerSatisfies:()=>AW,serializeGitGraph:()=>_ae,serializeMarkerResource:()=>oO,serializeMarkerResources:()=>vm,serializeMindmap:()=>JF,sharedRenderOptionsJsonSchema:()=>hLe,snapshotResourceManifest:()=>ZLe,styleInputJsonSchema:()=>lBt,styleSpecJsonSchema:()=>ZH,svgIntrinsicDimensions:()=>sDe,terminalConnectorCapabilityClaims:()=>$oe,validatePrimitiveCapabilities:()=>aF,validateResourceManifest:()=>J7t,validateSceneDoc:()=>uOe,validateSerializableRenderOptions:()=>Ble,validateStyleSpec:()=>k6,verifyNoExternalRefs:()=>p6,verifyResourceBytes:()=>U7t,verifySvgDocumentEnvelope:()=>UH});var xW=2,aPt="2.0.0";var cPt=Object.freeze(["importance","value","category","status","progress","route","emphasis"]);var vN=Object.freeze(["svg","png","ascii","unicode","html","layout"]);var oPe=1,_xn=/^[a-z][a-z0-9.-]*:[a-z0-9][a-z0-9._/-]*$/,jxn=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Bxn=new Set(["required","preferred","optional"]);function koe(r){return _xn.test(r)}function ZT(r){if(typeof r!="string")return;let i=r.match(jxn);if(!i)return;let s=i[4];if(!s?.split(".").some(c=>/^\d+$/.test(c)&&c.length>1&&c.startsWith("0")))return{major:i[1],minor:i[2],patch:i[3],...s?{prerelease:s}:{}}}function iPe(r,i){return r.length!==i.length?r.length<i.length?-1:1:r===i?0:r<i?-1:1}function Gxn(r,i){return iPe(r.major,i.major)||iPe(r.minor,i.minor)||iPe(r.patch,i.patch)}function Soe(r){if(typeof r!="string")return!1;let i=r.trim();if(i==="*"||/^(0|[1-9]\d*)\.(?:x|\*)$/i.test(i))return!0;let s=i.match(/^(\^|~|>=)?(.+)$/),c=ZT(s?.[2]??"");return!s||!c?!1:!c.prerelease||s[1]===void 0}function AW(r,i){let s=ZT(r);if(!s||!Soe(i))return!1;let c=i.trim();if(c==="*")return s.prerelease===void 0;let u=c.match(/^(0|[1-9]\d*)\.(?:x|\*)$/i);if(u)return s.prerelease===void 0&&s.major===u[1];let f=c.match(/^(\^|~|>=)?(.+)$/),p=ZT(f?.[2]??"");if(!f||!p)return!1;let m=Gxn(s,p);if(s.prerelease||p.prerelease)return f[1]===void 0&&m===0&&s.prerelease===p.prerelease;switch(f[1]){case">=":return m>=0;case"~":return m>=0&&s.major===p.major&&s.minor===p.minor;case"^":return m<0?!1:p.major!=="0"?s.major===p.major:p.minor!=="0"?s.major==="0"&&s.minor===p.minor:s.major==="0"&&s.minor==="0"&&s.patch===p.patch;default:return m===0}}function sPe(r,i){if(!Array.isArray(r))throw new TypeError("Capability offers must be an array");if(!Array.isArray(i))throw new TypeError("Capability requirements must be an array");let s=new Map;for(let[p,m]of r.entries()){if(!m||typeof m!="object"||Array.isArray(m))throw new TypeError(`Capability offer at index ${p} must be an object`);if(typeof m.id!="string")throw new Error(`Invalid capability id "${String(m.id)}"`);if(!koe(m.id))throw new Error(`Invalid capability id "${m.id}"`);if(typeof m.version!="string")throw new Error(`Capability "${m.id}" has invalid semantic version "${String(m.version)}"`);if(!ZT(m.version))throw new Error(`Capability "${m.id}" has invalid semantic version "${m.version}"`);if(s.has(m.id))throw new Error(`Duplicate capability offer "${m.id}"`);s.set(m.id,m.version)}let c=new Set,u=i.map((p,m)=>{if(!p||typeof p!="object"||Array.isArray(p))throw new TypeError(`Capability requirement at index ${m} must be an object`);if(typeof p.id!="string")throw new Error(`Invalid capability id "${String(p.id)}"`);if(!koe(p.id))throw new Error(`Invalid capability id "${p.id}"`);if(!Bxn.has(p.level))throw new Error(`Capability "${p.id}" has invalid requirement level "${String(p.level)}"`);if(!Soe(p.range))throw new Error(`Capability "${p.id}" has invalid semantic-version range "${String(p.range)}"`);if(c.has(p.id))throw new Error(`Duplicate capability requirement "${p.id}"`);c.add(p.id);let y=s.get(p.id),x=y===void 0?"unsupported":AW(y,p.range)?"selected":"incompatible";return Object.freeze({id:p.id,range:p.range,level:p.level,status:x,...y!==void 0?{version:y}:{}})}),f=u.every(p=>p.level!=="required"||p.status==="selected");return Object.freeze({version:oPe,accepted:f,resolutions:Object.freeze(u)})}var aPe=Object.freeze([{id:"core:render-request",version:"1.0.0"},{id:"core:family-descriptor",version:"1.0.0"}].map(r=>Object.freeze(r)));function lPt(r,i,s,c){let u={id:`output:${r}`,version:"1.0.0"},f=vN.includes(r);return sPe([...aPe,...i,...!f||!c?[]:[u]],[{id:"core:render-request",range:"^1.0.0",level:"required"},...s,{id:`output:${r}`,range:"^1.0.0",level:"required"}])}function uPt(r,i){return lPt(r,i?[i]:[],i?[{id:i.id,range:i.version,level:"required"}]:[],!0)}function dPt(r,i){return lPt(r,i.offers,i.requirements,i.outputAvailable)}var fPt="0.3.2";function hPt(r,i){if(r===void 0||i===void 0||r.id!==i.id||r.kind!==i.kind||r.version!==i.version)return!1;let s=new Set([...Object.keys(r.compatibility),...Object.keys(i.compatibility)]);for(let c of s)if(r.compatibility[c]!==i.compatibility[c])return!1;return r.provenance.owner===i.provenance.owner&&r.provenance.source===i.provenance.source&&r.provenance.reference===i.provenance.reference}var cPe=Object.freeze({core:fPt,scene:aPt});function iF(r,i){if(!r.compatibility[i])throw new Error(`Extension "${r.id}" must declare an explicit compatible "${i}" range`)}function lPe(r){let i=[];for(let[s,c]of Object.entries(r.compatibility)){if(c===void 0)continue;let u=cPe[s];if(!Soe(c)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Compatibility requirement "${s}" has invalid semantic-version range "${c}".`}));continue}if(u!==void 0){let f=AW(u,c);i.push(Object.freeze({contract:s,range:c,status:f?"compatible":"incompatible",version:u,...f?{}:{diagnostic:`Compatibility requirement "${s}" range "${c}" does not include host version ${u}.`}}));continue}if(!koe(s)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Unknown compatibility requirement "${s}" must use a namespace.`}));continue}i.push(Object.freeze({contract:s,range:c,status:"deferred"}))}return Object.freeze({accepted:i.every(s=>s.status==="compatible"||s.status==="deferred"),resolutions:Object.freeze(i)})}var gPt=/^[a-z][a-z0-9-]*$/,mPt=/^[a-z0-9][a-z0-9._/-]*$/,pPt=new WeakSet,Eoe=new WeakMap;function zxn(r,i){let s=Eoe.get(r);if(s)throw s.reentrantAttempted=!0,new Error(`Extension registry mutation is forbidden while ${s.operation} is in progress`);let c={operation:i,reentrantAttempted:!1};return Eoe.set(r,c),c}function Wxn(r){if(r.reentrantAttempted)throw new Error(`Extension registry mutation is forbidden after a reentrant attempt during ${r.operation}`)}function Hxn(r,i){Eoe.get(r)===i&&Eoe.delete(r)}function SN(r,i){if(!gPt.test(r))throw new Error(`Invalid extension kind "${r}"`);if(!mPt.test(i))throw new Error(`Invalid ${r} extension local id "${i}"`);return`${r}:${i}`}function my(r){let i=r.indexOf(":");if(i<=0||i===r.length-1||r.indexOf(":",i+1)!==-1)return;let s=r.slice(0,i),c=r.slice(i+1);if(!(!gPt.test(s)||!mPt.test(c)))return{kind:s,localId:c}}function gm(r){let i=r.id,s=r.kind,c=r.version,u=r.compatibility,f=r.provenance,p=Object.freeze({...u??{}}),m=Object.freeze({...f}),y=my(i);if(!y||y.kind!==s)throw new Error(`Extension id "${i}" must use the "${s}:" namespace`);if(!ZT(c))throw new Error(`Extension "${i}" requires a semantic version (received "${c}")`);if(m.owner.trim().length===0)throw new Error(`Extension "${i}" requires a provenance owner`);if(m.source.trim().length===0)throw new Error(`Extension "${i}" requires a provenance source`);let x=Object.freeze({id:i,kind:s,version:c,compatibility:p,provenance:m}),v=lPe(x);if(!v.accepted)throw new Error(`Extension "${i}" has incompatible requirements: ${v.resolutions.filter(S=>S.status==="incompatible"||S.status==="invalid").map(S=>S.diagnostic).join("; ")}`);return pPt.add(x),x}var kN=class extends Error{constructor(s,c){super(`Cannot register ${s.kind} "${s.id}" for owner "${s.provenance.owner}": already registered by "${c.provenance.owner}" at version ${c.version}`);this.incoming=s;this.existing=c;this.name="ExtensionCollisionError"}incoming;existing;code="EXTENSION_ID_COLLISION"};function EN(r,i){let s=zxn(r,"extension registration");try{let c=Object.freeze({identity:i.identity,value:i.value});if(!pPt.has(c.identity))throw new TypeError("Extension registration identity must be created by createExtensionIdentity()");let u=c.identity.id,f=r.get(u);if(f)throw new kN(c.identity,f.identity);Wxn(s),r.set(u,c)}finally{Hxn(r,s)}}var gE=Object.freeze({fontFamily:{kind:"font",description:"Safe font family/stack for roles whose descriptor exposes family-specific typography."},fontSize:{kind:"number",minimum:1,maximum:256,expected:"between 1 and 256",description:"Font size in SVG user units."},fontWeight:{kind:"number",minimum:1,maximum:1e3,expected:"between 1 and 1000",description:"CSS numeric font weight."},letterSpacing:{kind:"number",minimum:-2,maximum:4,expected:"between -2 and 4",description:"Letter spacing in SVG user units."},textTransform:{kind:"enum",values:["uppercase","lowercase","capitalize"],description:"Text transformation."},textColor:{kind:"color",description:"Text paint."},paddingX:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Horizontal role padding."},paddingY:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Vertical role padding."},cornerRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable corner radius."},lineWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",description:"Border or connector width."},bendRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable connector bend radius."},fillColor:{kind:"color",description:"Surface fill paint."},borderColor:{kind:"color",description:"Border paint."},strokeColor:{kind:"color",description:"Connector stroke paint."},headerFillColor:{kind:"color",description:"Group header surface paint."},cue:{kind:"enum",values:["none","outline","double-line","pattern"],description:"Non-color semantic cue on roles whose family renderer exposes a cue projection."}}),uPe=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),bPt=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","lineWidth","bendRadius","strokeColor"]),Uxn=Object.freeze([...uPe,"fontFamily","headerFillColor"]),Jxn=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),qxn=Object.freeze(["fontFamily","fontSize","fontWeight","letterSpacing","textTransform","textColor","fillColor","borderColor","strokeColor","lineWidth","cue"]),Vxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","cue"]),Yxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","textColor"]),dPe=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth"]),Xxn=Object.freeze(["borderColor","strokeColor","lineWidth"]),yPt=Object.freeze([...dPe,"cue"]);function Gb(r,i){return Object.freeze({properties:r,...i?{bindingFamilies:Object.freeze([...i])}:{}})}var mE=Object.freeze({node:Gb(uPe),edge:Gb(bPt),group:Gb(Uxn),"group-header":Gb(qxn,["journey"]),label:Gb(Jxn),actor:Gb(uPe,["sequence"]),relationship:Gb(bPt,["er"]),"pie-slice":Gb(Vxn,["pie","radar"]),legend:Gb(Yxn,["radar"]),bar:Gb(dPe,["xychart"]),series:Gb(Xxn,["xychart"]),point:Gb(dPe,["radar"]),task:Gb(yPt,["gantt"]),milestone:Gb(yPt,["gantt"])}),CN=Object.freeze(Object.keys(mE)),pE=Object.freeze(CN.filter(r=>"bindingFamilies"in mE[r])),oF=Object.freeze([...new Set(pE.flatMap(r=>mE[r].properties))]);var iw=["shape","connector","text","group","document"],MN=["shape"],Coe=["connector"],wPt=["text"],Kxn=["shape","text"],P2=["shape","group"],Qxn=["shape","text","group"],Zxn=["connector","group"],eAn=["document"],xPt=["text","group"];var tAn=["shape","text","document"],nAn=["document"];function cs(r,i,s,c={}){let u=mE[r];return Object.freeze({applicableKinds:i,styleFallback:s,styleConsumption:u?"exact":"fallback-only",styleExtras:Object.freeze([]),...u?{styleProperties:u.properties}:{},styleBindingFamilies:Object.freeze([...u?.bindingFamilies??[]]),domIdentity:!1,relation:!1,sketch:"none",textHalo:!1,...c})}var eI=Object.freeze({node:cs("node",P2,"node",{domIdentity:!0,sketch:"shape"}),edge:cs("edge",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),"edge-label":cs("edge-label",xPt,"label"),group:cs("group",P2,"group",{domIdentity:!0,sketch:"shape"}),"group-header":cs("group-header",iw,"group",{sketch:"shape",textHalo:!0}),label:cs("label",wPt,"label",{textHalo:!0}),actor:cs("actor",P2,"node",{domIdentity:!0,sketch:"shape"}),lifeline:cs("lifeline",Coe,"edge",{sketch:"connector"}),activation:cs("activation",MN,"node",{domIdentity:!0,sketch:"shape"}),message:cs("message",Zxn,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),block:cs("block",iw,"group",{domIdentity:!0,sketch:"shape"}),note:cs("note",P2,"group",{domIdentity:!0,sketch:"shape"}),"class-box":cs("class-box",P2,"node",{domIdentity:!0,sketch:"shape"}),member:cs("member",wPt,"label",{domIdentity:!0,textHalo:!0}),entity:cs("entity",P2,"node",{domIdentity:!0,sketch:"shape"}),attribute:cs("attribute",xPt,"label",{domIdentity:!0,textHalo:!0}),relationship:cs("relationship",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),cardinality:cs("cardinality",Kxn,"label",{domIdentity:!0,textHalo:!0}),"pie-slice":cs("pie-slice",MN,"node",{domIdentity:!0,sketch:"shape"}),legend:cs("legend",Qxn,"group",{textHalo:!0}),bar:cs("bar",MN,"node",{domIdentity:!0,sketch:"shape"}),series:cs("series",Coe,"edge",{domIdentity:!0,sketch:"connector"}),point:cs("point",MN,"node",{domIdentity:!0}),axis:cs("axis",iw,"label",{textHalo:!0}),grid:cs("grid",iw,"edge"),plate:cs("plate",MN,"node",{domIdentity:!0,sketch:"shape"}),section:cs("section",iw,"group",{domIdentity:!0,sketch:"shape",textHalo:!0}),task:cs("task",iw,"node",{domIdentity:!0,sketch:"shape"}),milestone:cs("milestone",MN,"node",{domIdentity:!0,sketch:"shape"}),"marker-line":cs("marker-line",iw,"edge"),rail:cs("rail",iw,"edge",{sketch:"connector"}),period:cs("period",P2,"group",{domIdentity:!0,sketch:"shape"}),event:cs("event",P2,"group",{domIdentity:!0,sketch:"shape"}),score:cs("score",iw,"node"),"actor-pill":cs("actor-pill",MN,"node",{sketch:"shape"}),service:cs("service",P2,"node",{domIdentity:!0,sketch:"shape"}),junction:cs("junction",P2,"node",{domIdentity:!0}),icon:cs("icon",tAn,"node"),title:cs("title",iw,"label",{domIdentity:!0}),defs:cs("defs",eAn,"label"),prelude:cs("prelude",nAn,"label"),chrome:cs("chrome",iw,"label")}),rAn=Object.freeze({applicableKinds:iw,styleFallback:"label",styleConsumption:"fallback-only",styleExtras:Object.freeze([]),styleBindingFamilies:Object.freeze([]),domIdentity:!0,relation:!1,sketch:"none",textHalo:!1}),tI=Object.freeze(Object.entries(eI).map(([r,i])=>Object.freeze({identity:gm({id:`role:${r}`,kind:"role",version:"1.0.0",compatibility:{core:"^0.3.0",scene:"^2.0.0"},provenance:{owner:"agentic-mermaid",source:"built-in",reference:"src/scene/roles.ts"}}),role:r,traits:i,style:(()=>{let s=i.styleFallback;return Object.freeze({fallbackRole:s,applicableProperties:i.styleProperties??Object.freeze([])})})()})));function fPe(r){let i=eI[r];return i?{traits:i,source:"builtin"}:{traits:rAn,source:"namespaced-safe"}}function ow(r){return fPe(r).traits}var bE=["document","text","shape","container","connector","marker","data-mark"],APt=Object.freeze(bE.map(r=>Object.freeze({primitive:r,operation:r==="document"?"serialize":"render"})));function vPt(r){return r==="document"?"serialize":"render"}var Moe=["measure","layout","bounds","hit-test","render","accessibility","terminal-project","serialize"],Toe=["geometry","paint","stroke","transform","identity","relation","labels","markers","resources","interaction","topology","subpaths","closedness","bend-radius","endpoints","direction","hit-geometry","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],sF=Object.freeze([{primitive:"document",feature:"identity",operation:"serialize"},{primitive:"document",feature:"resources",operation:"serialize"},{primitive:"document",feature:"interaction",operation:"accessibility"},{primitive:"text",feature:"geometry",operation:"render"},{primitive:"text",feature:"paint",operation:"render"},{primitive:"text",feature:"labels",operation:"accessibility"},{primitive:"text",feature:"identity",operation:"serialize"},{primitive:"shape",feature:"geometry",operation:"render"},{primitive:"shape",feature:"paint",operation:"render"},{primitive:"shape",feature:"identity",operation:"serialize"},{primitive:"container",feature:"geometry",operation:"render"},{primitive:"container",feature:"paint",operation:"render"},{primitive:"container",feature:"identity",operation:"serialize"},{primitive:"connector",feature:"geometry",operation:"render"},{primitive:"connector",feature:"stroke",operation:"render"},{primitive:"connector",feature:"transform",operation:"render"},{primitive:"connector",feature:"topology",operation:"render"},{primitive:"connector",feature:"subpaths",operation:"render"},{primitive:"connector",feature:"closedness",operation:"render"},{primitive:"connector",feature:"bend-radius",operation:"render"},{primitive:"connector",feature:"stroke-opacity",operation:"render"},{primitive:"connector",feature:"stroke-cap",operation:"render"},{primitive:"connector",feature:"stroke-join",operation:"render"},{primitive:"connector",feature:"stroke-miter",operation:"render"},{primitive:"connector",feature:"dash-array",operation:"render"},{primitive:"connector",feature:"dash-offset",operation:"render"},{primitive:"connector",feature:"dash-restart",operation:"render"},{primitive:"connector",feature:"path-length",operation:"render"},{primitive:"connector",feature:"paint-order",operation:"render"},{primitive:"connector",feature:"non-scaling-stroke",operation:"render"},{primitive:"connector",feature:"marker-orientation",operation:"render"},{primitive:"connector",feature:"marker-overflow",operation:"render"},{primitive:"connector",feature:"endpoints",operation:"serialize"},{primitive:"connector",feature:"direction",operation:"serialize"},{primitive:"connector",feature:"labels",operation:"render"},{primitive:"connector",feature:"labels",operation:"accessibility"},{primitive:"connector",feature:"markers",operation:"render"},{primitive:"connector",feature:"relation",operation:"accessibility"},{primitive:"connector",feature:"interaction",operation:"hit-test"},{primitive:"connector",feature:"hit-geometry",operation:"hit-test"},{primitive:"connector",feature:"identity",operation:"serialize"},{primitive:"marker",feature:"geometry",operation:"render"},{primitive:"marker",feature:"paint",operation:"render"},{primitive:"marker",feature:"identity",operation:"serialize"},{primitive:"data-mark",feature:"geometry",operation:"render"},{primitive:"data-mark",feature:"paint",operation:"render"},{primitive:"data-mark",feature:"identity",operation:"serialize"}]),vW=["native","emulated","projected","lossy","unsupported"];function kPt(r){switch(r.kind){case"text":return["text"];case"shape":return r.channels?.value===void 0?["shape"]:["shape","data-mark"];case"group":return["container"];case"connector":return["connector"];case"document":return r.markerResources?.length?["document","marker"]:["document"]}}function Ioe(r,i,s="rough"){let c=i==="crisp"?"native":"emulated",u=i==="crisp"?"native":"projected",f="src/__tests__/backend-capability-conformance.test.ts",p=v=>i==="crisp"?{realization:"native"}:v==="geometry"||v==="topology"?{realization:"lossy",diagnostic:"The exact authored path remains as an invisible semantic carrier, but arbitrary curves are flattened to typed routed contours for the visible sketch."}:v==="closedness"?{realization:"lossy",diagnostic:"Sketch shafts are rebuilt from routed geometry and do not preserve explicit closed-subpath semantics."}:v==="bend-radius"?{realization:"lossy",diagnostic:"The authored rounded carrier remains exact, but the visible sketch follows its routed polyline and cannot preserve the continuous bend radius."}:v==="dash-restart"?{realization:"lossy",diagnostic:"A rough stroke may contain multiple generated stroke subpaths, so SVG dash restart boundaries can differ."}:v==="path-length"?{realization:"lossy",diagnostic:"One pathLength value spans generated stroke subpaths, so a sketch cannot retain one authored path calibration exactly."}:s==="hybrid"&&(v==="stroke-cap"||v==="stroke-join"||v==="stroke-miter"||v==="non-scaling-stroke")?{realization:"lossy",diagnostic:`Freehand ribbon geometry cannot preserve authored ${v} semantics; dashed Hybrid connectors fall back to the faithful rough projection.`}:v==="marker-orientation"||v==="marker-overflow"?{realization:"projected",diagnostic:"Marker geometry, orientation, and overflow remain in the typed marker projection instead of being sketched."}:{realization:"emulated"},m=["transform","topology","subpaths","closedness","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],y=[{target:r,primitive:"document",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"resources",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"interaction",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"shape",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"container",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"geometry",operation:"render",...p("geometry"),evidence:f},{target:r,primitive:"connector",feature:"stroke",operation:"render",realization:c,evidence:f},...m.map(v=>({target:r,primitive:"connector",feature:v,operation:"render",...p(v),evidence:f})),{target:r,primitive:"connector",feature:"relation",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"endpoints",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"direction",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"render",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"markers",operation:"render",realization:u,evidence:f},{target:r,primitive:"connector",feature:"interaction",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"hit-geometry",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"marker",feature:"geometry",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"paint",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"data-mark",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"identity",operation:"serialize",realization:"native",evidence:f}],x=aF(y);if(!x.valid)throw new Error(`Invalid graphical backend capability contract: ${x.diagnostics.join("; ")}`);return Object.freeze(y.map(v=>Object.freeze({...v})))}function $oe(r="terminal:projection"){let i="src/__tests__/terminal-projection-security.test.ts",s=new Set(["geometry","paint","stroke","transform","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"]),u=["identity","relation","endpoints","direction","labels","markers","geometry","topology","subpaths","closedness","bend-radius","interaction","hit-geometry","stroke","transform","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"].map(p=>({target:r,primitive:"connector",feature:p,operation:"terminal-project",realization:s.has(p)?"lossy":"projected",evidence:i,...s.has(p)?{diagnostic:`Terminal cells cannot render continuous connector ${p}; the exact typed value remains in terminal projection evidence.`}:{}})),f=aF(u);if(!f.valid)throw new Error(`Invalid terminal connector capability contract: ${f.diagnostics.join("; ")}`);return Object.freeze(u.map(p=>Object.freeze({...p})))}function hPe(r){return[r.target,r.primitive,r.feature,r.operation].join("\0")}function aF(r){let i=[],s=new Set;for(let c=0;c<r.length;c++){let u=r[c],f=hPe(u);s.has(f)&&i.push(`claim[${c}]: duplicate target/primitive/feature/operation`),s.add(f),u.target.trim()===""&&i.push(`claim[${c}]: target must not be empty`),u.primitive.trim()===""&&i.push(`claim[${c}]: primitive must not be empty`),u.feature.trim()===""&&i.push(`claim[${c}]: feature must not be empty`),u.operation.trim()===""&&i.push(`claim[${c}]: operation must not be empty`),vW.includes(u.realization)||i.push(`claim[${c}]: invalid realization ${String(u.realization)}`),(u.realization==="lossy"||u.realization==="unsupported")&&!u.diagnostic?.trim()&&i.push(`claim[${c}]: ${u.realization} realization requires a diagnostic`)}return{valid:i.length===0,diagnostics:i}}function Roe(r){let i=[],s=r.split(/\r?\n/),c=0;for(let u of s){c++;let f=u.trim();if(!f||f.startsWith("%%"))continue;for(let m of f.matchAll(/"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'/g)){let y=m[1]??m[2]??"";y&&i.push({text:y,target:`line${c}`})}for(let m of f.matchAll(/[\[\(\{]+([^\[\]\(\)\{\}]+?)[\]\)\}]+/g)){let y=(m[1]??"").trim();y&&!y.match(/^[A-Za-z_][\w-]*$/)&&i.push({text:y,target:`line${c}`})}let p=f.indexOf(":");if(p>=0&&p<f.length-1){let m=f.slice(p+1).trim();m&&!m.match(/^[\d.]+$/)&&m.length>=2&&i.push({text:m,target:`line${c}`})}}return i}var TN=Object.freeze({contrast:Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role"}),minimum:Object.freeze({kind:"number",minimum:1,maximum:21})}),recovery:"Choose an authored text/surface pair that meets the requested ratio, or remove the rule; the renderer will not repaint it."}),"accent-area":Object.freeze({properties:Object.freeze({maxFraction:Object.freeze({kind:"number",minimum:0,maximum:1,required:!0})}),recovery:"Reduce authored accent-filled area or raise the declared maximum; the renderer will not rewrite fills."}),"mono-role":Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role",required:!0})}),recovery:"Use measurable monochrome paint for the named role or remove the rule; the renderer will not rewrite paint."})}),nI=Object.freeze(Object.keys(TN));function Poe(r){return TN[r].properties}function SPt(r){return Object.freeze(["kind","action",...Object.keys(TN[r].properties)])}function EPt(r){let i=Poe(r);return Object.freeze(["kind","action",...Object.entries(i).filter(([,s])=>s.required===!0).map(([s])=>s)])}var yE=Object.freeze({warn:Object.freeze({code:"BRAND_CONSTRAINT_WARNING",severity:"warning",tier:"lint"}),error:Object.freeze({code:"BRAND_CONSTRAINT_ERROR",severity:"error",tier:"lint"})});function gn(r){return{ok:!0,value:r}}function Ae(r){return{ok:!1,error:r}}function kW(r){if(!Number.isFinite(r))throw new RangeError(`expected a finite number, got ${String(r)}`);return r}var Ifr={EMPTY_DIAGRAM:"error",UNRESOLVABLE_SCHEDULE:"error",RENDER_FAILED:"error",[yE.error.code]:yE.error.severity,EDGE_MISANCHORED:"error",OFF_CANVAS:"error",GROUP_BREACH:"error",UNKNOWN_SHAPE:"warning",LABEL_OVERFLOW:"warning",NODE_OVERLAP:"warning",ROUTE_SELF_CROSS:"warning",ROUTE_HITCH:"warning",ROUTE_UNEXPLAINED_BEND:"warning",ROUTE_LABEL_ON_SHARED_TRUNK:"warning",ROUTE_SELF_LOOP_OCCUPANCY:"warning",ROUTE_CONTAINER_MISANCHOR:"warning",ROUTE_SHAPE_MISANCHOR:"warning",ROUTE_STALE_AFTER_NODE_MOVE:"warning",DUPLICATE_EDGE:"warning",UNREACHABLE_NODE:"warning",DECISION_BRANCH_UNLABELED:"warning",COMMENT_DROPPED:"warning",UNSUPPORTED_SYNTAX:"warning",CONTENT_DROPPED_ON_ROUNDTRIP:"warning",INEFFECTIVE_CONFIG:"warning",LOW_CONTRAST:"warning",[yE.warn.code]:yE.warn.severity},$fr={EMPTY_DIAGRAM:"structural",UNRESOLVABLE_SCHEDULE:"structural",RENDER_FAILED:"structural",[yE.error.code]:yE.error.tier,EDGE_MISANCHORED:"structural",OFF_CANVAS:"structural",GROUP_BREACH:"structural",UNKNOWN_SHAPE:"structural",LABEL_OVERFLOW:"structural",NODE_OVERLAP:"geometric",ROUTE_SELF_CROSS:"geometric",ROUTE_HITCH:"geometric",ROUTE_UNEXPLAINED_BEND:"geometric",ROUTE_LABEL_ON_SHARED_TRUNK:"geometric",ROUTE_SELF_LOOP_OCCUPANCY:"geometric",ROUTE_CONTAINER_MISANCHOR:"geometric",ROUTE_SHAPE_MISANCHOR:"geometric",ROUTE_STALE_AFTER_NODE_MOVE:"geometric",DUPLICATE_EDGE:"lint",UNREACHABLE_NODE:"lint",DECISION_BRANCH_UNLABELED:"lint",COMMENT_DROPPED:"lint",UNSUPPORTED_SYNTAX:"lint",CONTENT_DROPPED_ON_ROUNDTRIP:"lint",INEFFECTIVE_CONFIG:"lint",LOW_CONTRAST:"lint",[yE.warn.code]:yE.warn.tier},Noe=40;var iAn={flowchart:["add_node","remove_node","rename_node","set_label","add_edge","remove_edge","set_shape","set_direction","add_subgraph","remove_subgraph","move_node","define_class","set_node_class","set_node_style"],state:["add_state","remove_state","rename_state","set_state_label","add_transition","remove_transition","set_transition_label","make_composite","set_direction","move_state","dissolve_composite","add_note","remove_note","set_note_text","define_class","set_state_class","set_state_style","set_transition_style"],sequence:["add_participant","remove_participant","add_message","remove_message","set_message_text","move_message","set_participant_label","add_fragment","remove_fragment","set_fragment_label","add_fragment_branch","set_fragment_branch_label","add_fragment_message","remove_fragment_message","set_fragment_message_text"],timeline:["set_title","add_section","remove_section","set_section_label","add_period","remove_period","set_period_label","add_event","remove_event","set_event_text","move_period","move_event","move_section","set_accessibility_title","set_accessibility_description"],class:["set_title","add_class","remove_class","rename_class","set_class_generic","add_member","remove_member","add_relation","remove_relation","add_note","remove_note","set_class_namespace","define_class","set_css_class","set_class_style"],er:["add_entity","remove_entity","rename_entity","set_entity_label","add_attribute","remove_attribute","add_relation","remove_relation","set_direction","define_class","set_entity_class","set_entity_style"],journey:["set_title","add_section","remove_section","set_section_label","add_task","remove_task","set_task_text","set_task_score","set_task_actors","rename_actor","move_task","move_section","set_accessibility_title","set_accessibility_description"],architecture:["set_title","set_accessibility_title","set_accessibility_description","add_service","remove_service","rename_service","set_service_label","set_service_icon","move_service","add_junction","remove_junction","rename_junction","move_junction","add_group","set_group_label","remove_group","add_edge","update_edge","remove_edge"],xychart:["set_title","set_x_axis","set_y_axis","add_series","remove_series","set_series_values","set_series_name","reorder_series","set_orientation","set_data_point"],pie:["set_title","set_show_data","add_slice","remove_slice","rename_slice","set_slice_value","reorder_slice"],quadrant:["set_title","set_axis_labels","set_quadrant_label","add_point","remove_point","move_point","rename_point"],gantt:["set_title","add_section","rename_section","remove_section","add_task","remove_task","rename_task","set_task_status","set_task_dates","set_task_flags","set_task_id","move_task","move_section"],mindmap:["add_node","remove_node","rename_node","set_label","move_node","set_shape","set_icon","set_node_class","set_accessibility_title","set_accessibility_description"],gitgraph:["append_commit","create_branch","checkout_branch","merge_branch","cherry_pick","set_commit_message","set_commit_type","set_commit_tags","rename_branch","set_accessibility_title","set_accessibility_description"],radar:["set_title","add_axis","remove_axis","rename_axis","set_axis_label","reorder_axis","add_curve","remove_curve","set_curve_values","set_curve_value","set_curve_label","rename_curve","reorder_curve","set_config"]};function CPt(r){let i=iAn[r];return i?i.join(", "):"(none \u2014 this family has no structured ops)"}function Sc(r,i){if(Array.isArray(i))return`Expected a single ${r} op, got an array of ${i.length}. Ops apply one at a time: call mutate() once per op, or pass the whole list to a batch entrypoint \u2014 applyOps({ source, family, ops }) to edit source, or buildMermaid(kind, ops) to author \u2014 valid ${r} ops: ${CPt(r)}`;let s=i?.kind,c=typeof s=="string"?`"${s}"`:JSON.stringify(i);return`Unknown ${r} op ${c} \u2014 valid ops: ${CPt(r)}`}var gPe,oAn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),mPe=(gPe=String.fromCodePoint)!==null&&gPe!==void 0?gPe:(r=>{let i="";return r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),i+=String.fromCharCode(r),i});function pPe(r){var i;return r>=55296&&r<=57343||r>1114111?65533:(i=oAn.get(r))!==null&&i!==void 0?i:r}function bPe(r){let i=typeof atob=="function"?atob(r):typeof Buffer.from=="function"?Buffer.from(r,"base64").toString("binary"):new Buffer(r,"base64").toString("binary"),s=i.length&-2,c=new Uint16Array(s/2);for(let u=0,f=0;u<s;u+=2){let p=i.charCodeAt(u),m=i.charCodeAt(u+1);c[f++]=p|m<<8}return c}var yPe=bPe("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var mm;(function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.FLAG13=8192]="FLAG13",r[r.BRANCH_LENGTH=8064]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"})(mm||(mm={}));var Uu;(function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"})(Uu||(Uu={}));var MPt=32;function wPe(r){return r>=Uu.ZERO&&r<=Uu.NINE}function aAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_F||r>=Uu.LOWER_A&&r<=Uu.LOWER_F}function cAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_Z||r>=Uu.LOWER_A&&r<=Uu.LOWER_Z||wPe(r)}function lAn(r){return r===Uu.EQUALS||cAn(r)}var Dh;(function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"})(Dh||(Dh={}));var N2;(function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"})(N2||(N2={}));var Ooe=class{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,this.state=Dh.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=N2.Strict,this.runConsumed=0}startEntity(i){this.decodeMode=i,this.state=Dh.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(i,s){switch(this.state){case Dh.EntityStart:return i.charCodeAt(s)===Uu.NUM?(this.state=Dh.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Dh.NamedEntity,this.stateNamedEntity(i,s));case Dh.NumericStart:return this.stateNumericStart(i,s);case Dh.NumericDecimal:return this.stateNumericDecimal(i,s);case Dh.NumericHex:return this.stateNumericHex(i,s);case Dh.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|MPt)===Uu.LOWER_X?(this.state=Dh.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Dh.NumericDecimal,this.stateNumericDecimal(i,s))}stateNumericHex(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c)||aAn(c)){let u=c<=Uu.NINE?c-Uu.ZERO:(c|MPt)-Uu.LOWER_A+10;this.result=this.result*16+u,this.consumed++,s++}else return this.emitNumericEntity(c,3)}return-1}stateNumericDecimal(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c))this.result=this.result*10+(c-Uu.ZERO),this.consumed++,s++;else return this.emitNumericEntity(c,2)}return-1}emitNumericEntity(i,s){var c;if(this.consumed<=s)return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===Uu.SEMI)this.consumed+=1;else if(this.decodeMode===N2.Strict)return 0;return this.emitCodePoint(pPe(this.result),this.consumed),this.errors&&(i!==Uu.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(i,s){let{decodeTree:c}=this,u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14;for(;s<i.length;){if(f===0&&(u&mm.FLAG13)!==0){let m=(u&mm.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=u&mm.JUMP_TABLE;if(i.charCodeAt(s)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}for(;this.runConsumed<m;){if(s>=i.length)return-1;let y=this.runConsumed-1,x=c[this.treeIndex+1+(y>>1)],v=y%2===0?x&255:x>>8&255;if(i.charCodeAt(s)!==v)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(m>>1),u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14}if(s>=i.length)break;let p=i.charCodeAt(s);if(p===Uu.SEMI&&f!==0&&(u&mm.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);if(this.treeIndex=dAn(c,u,this.treeIndex+Math.max(1,f),p),this.treeIndex<0)return this.result===0||this.decodeMode===N2.Attribute&&(f===0||lAn(p))?0:this.emitNotTerminatedNamedEntity();if(u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14,f!==0){if(p===Uu.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==N2.Strict&&(u&mm.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}s++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var i;let{result:s,decodeTree:c}=this,u=(c[s]&mm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,u,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,c){let{decodeTree:u}=this;return this.emitCodePoint(s===1?u[i]&~(mm.VALUE_LENGTH|mm.FLAG13):u[i+1],c),s===3&&this.emitCodePoint(u[i+2],c),c}end(){var i;switch(this.state){case Dh.NamedEntity:return this.result!==0&&(this.decodeMode!==N2.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Dh.NumericDecimal:return this.emitNumericEntity(0,2);case Dh.NumericHex:return this.emitNumericEntity(0,3);case Dh.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Dh.EntityStart:return 0}}};function uAn(r){let i="",s=new Ooe(r,c=>i+=mPe(c));return function(u,f){let p=0,m=0;for(;(m=u.indexOf("&",m))>=0;){i+=u.slice(p,m),s.startEntity(f);let x=s.write(u,m+1);if(x<0){p=m+s.end();break}p=m+x,m=x===0?p+1:p}let y=i+u.slice(p);return i="",y}}function dAn(r,i,s,c){let u=(i&mm.BRANCH_LENGTH)>>7,f=i&mm.JUMP_TABLE;if(u===0)return f!==0&&c===f?s:-1;if(f){let x=c-f;return x<0||x>=u?-1:r[s+x]-1}let p=u+1>>1,m=0,y=u-1;for(;m<=y;){let x=m+y>>>1,v=x>>1,E=r[s+v]>>(x&1)*8&255;if(E<c)m=x+1;else if(E>c)y=x-1;else return r[s+p+x]}return-1}var fAn=uAn(yPe);function py(r){return fAn(r,N2.Strict)}var hAn=String.prototype.codePointAt==null?(r,i)=>(r.charCodeAt(i)&64512)===55296?(r.charCodeAt(i)-55296)*1024+r.charCodeAt(i+1)-56320+65536:r.charCodeAt(i):(r,i)=>r.codePointAt(i);var TPt;(function(r){r[r.XML=0]="XML",r[r.HTML=1]="HTML"})(TPt||(TPt={}));var IPt;(function(r){r[r.UTF8=0]="UTF8",r[r.ASCII=1]="ASCII",r[r.Extensive=2]="Extensive",r[r.Attribute=3]="Attribute",r[r.Text=4]="Text"})(IPt||(IPt={}));var wAn=[[11904,12031],[12032,12255],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12688,12799],[12800,13311],[13312,19903],[19968,40959],[63744,64255],[131072,196607]],xAn=[[4352,4447],[12592,12687],[44032,55215]],AAn=[[9001,9002],[65040,65049],[65072,65135],[65280,65376],[65504,65510]],vAn=[[127744,129791]],RPt=[127995,127999],kAn=[[768,879],[6832,6911],[7616,7679],[8400,8447],[65056,65071]],SAn=new Set([8203,8204,8205,65279]),Loe=65038,Doe=65039,PPt=8205;function SW(r,i){for(let[s,c]of i)if(r>=s&&r<=c)return!0;return!1}function Foe(r){return SW(r,wAn)||SW(r,xAn)||SW(r,AAn)||SW(r,vAn)}function _oe(r){return SW(r,kAn)||SAn.has(r)}function NPt(r){return r>=RPt[0]&&r<=RPt[1]}var OPt=/<(\/)?(?:(b|strong)|(i|em)|(u)|(s|del))\s*>/gi,rI=/<\/?(?:b|strong|i|em|u|s|del)\s*>/i;function IN(r){let i=[],s=!1,c=!1,u=!1,f=!1,p=0;OPt.lastIndex=0;let m;for(;(m=OPt.exec(r))!==null;){m.index>p&&i.push({text:r.slice(p,m.index),bold:s,italic:c,underline:u,strikethrough:f}),p=m.index+m[0].length;let y=!!m[1];m[2]?s=!y:m[3]?c=!y:m[4]?u=!y:m[5]&&(f=!y)}return p<r.length&&i.push({text:r.slice(p),bold:s,italic:c,underline:u,strikethrough:f}),i}function vPe(r){return r.split(`
|
|
24
|
+
... Falling back to non-web worker version.`);if(!V.workerFactory){var X=c("./elk-worker.min.js"),ee=X.Worker;V.workerFactory=function(oe){return new ee(oe)}}return E(this,W,[V])}return F(W,z),y(W)})(_);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=j,j.default=j},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,f){"use strict";var p=typeof Worker<"u"?Worker:void 0;u.exports=p},{}]},{},[3])(3)})});var YFn={};rPe(YFn,{ARCHITECTURE_ICON_LIMITS:()=>mF,AsciiWidthError:()=>FU,BACKEND_CONFORMANCE_CHECK_IDS:()=>gFt,BACKEND_CONFORMANCE_FIXTURE_ID:()=>Tce,BACKEND_CONFORMANCE_VERSION:()=>dOe,BINDABLE_ROLE_STYLE_PROPERTIES:()=>oF,BINDABLE_SCENE_ROLES:()=>pE,BRAND_CONSTRAINT_DESCRIPTORS:()=>TN,BRAND_CONSTRAINT_KINDS:()=>nI,BROWSER_CANVAS_RUNTIME:()=>kue,BUILTIN_SCENE_ROLE_TRAITS:()=>eI,CAPABILITY_NEGOTIATION_VERSION:()=>oPe,CORE_CAPABILITY_OFFERS:()=>aPe,CORE_SCENE_FEATURES:()=>Toe,CORE_SCENE_OPERATIONS:()=>Moe,CORE_SCENE_PRIMITIVES:()=>bE,DEFAULTS:()=>RE,DefaultBackend:()=>jh,ESSENTIAL_SCENE_PRIMITIVE_CAPABILITIES:()=>sF,ESSENTIAL_SCENE_PRIMITIVE_OPERATIONS:()=>APt,EXACT_ROLE_STYLE_CONTRACT:()=>mE,EXACT_STYLE_SCENE_ROLES:()=>CN,EXTERNAL_SCENE_API_VERSION:()=>KLe,ExtensionCollisionError:()=>kN,GitGraphDuplicateCommitError:()=>kH,GitGraphParseError:()=>$l,HOSTED_FONT_RESOURCES:()=>Z6,KNOWN_EXTENSION_CONTRACT_VERSIONS:()=>cPe,MAX_HOSTED_PNG_BYTES:()=>nGt,MAX_HOSTED_PNG_PIXELS:()=>bue,MAX_PNG_FONT_DIRECTORIES:()=>VU,MAX_PNG_FONT_DIRECTORY_LENGTH:()=>YU,MAX_PNG_PIXELS:()=>e_,MAX_PNG_RASTER_DIMENSION:()=>l$,MermaidFamilyDetectionError:()=>DN,MindmapDuplicateIdError:()=>vH,MindmapParseError:()=>wm,NATIVE_PNG_HOST_ONLY_OPTION_FIELDS:()=>oGt,NATIVE_PNG_OUTPUT_POLICY_FIELDS:()=>KU,OUTPUT_COLOR_PROFILE:()=>JU,OUTPUT_SECURITY_POLICY_VERSION:()=>pce,PNG_DEFAULT_FONT_FAMILY:()=>oDe,PNG_DEFAULT_SCALE:()=>QE,PNG_FONT_SOURCES:()=>mGt,PNG_NAPI_RUNTIME:()=>uDe,PNG_OUTPUT_OPTION_FIELDS:()=>t_,PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS:()=>DO,PNG_OUTPUT_POLICY_VERSION:()=>YI,PNG_WASM_RUNTIME:()=>pGt,PORTABLE_PNG_OUTPUT_OPTION_FIELDS:()=>XU,PRIMITIVE_REALIZATIONS:()=>vW,ParsedDiagramFamilyMismatchError:()=>OU,RENDER_CONTRACT_VERSION:()=>J6,RENDER_OUTPUTS:()=>vN,RENDER_OUTPUT_DESCRIPTORS:()=>dLe,RESOURCE_MANIFEST:()=>eDe,RESOURCE_MANIFEST_VERSION:()=>LO,ROLE_STYLE_PROPERTY_DESCRIPTORS:()=>gE,RenderCapabilityError:()=>qE,SCENE_CONTRACT_VERSION:()=>xW,SCENE_ROLE_DESCRIPTORS:()=>tI,SCENE_VALIDATION_LIMITS:()=>Cc,SCENE_VALIDATION_VERSION:()=>cFt,SEMANTIC_BINDING_CHANNELS:()=>v6,SHARED_RENDER_OPTION_FIELDS:()=>lk,STYLE_COLOR_TOKEN_DESCRIPTORS:()=>A6,STYLE_SPEC_FIELD_DESCRIPTORS:()=>fO,STYLE_SPEC_FORMAT_VERSION:()=>LI,SceneValidationError:()=>cO,TERMINAL_BOUNDED_PADDING_X:()=>ELe,TERMINAL_DEFAULT_BOX_BORDER_PADDING:()=>MLe,TERMINAL_DEFAULT_PADDING_X:()=>SLe,TERMINAL_DEFAULT_PADDING_Y:()=>CLe,TERMINAL_OUTPUT_POLICY_VERSION:()=>WE,TERMINAL_STYLE_VERSION:()=>vLe,TEXT_MEASUREMENT_CONTRACT:()=>kPe,TerminalOutputPolicyError:()=>Dp,applyOutputSecurityPolicy:()=>RI,applyPngColorProfile:()=>pue,architectureIconManifest:()=>G3t,architectureToMermaidGraph:()=>lle,assertHostedPngRasterBudget:()=>aGt,assertPngRasterBudget:()=>Aue,assertRenderableMarker:()=>iO,assertValidSceneDoc:()=>PI,buildExternalScene:()=>G7t,canonicalExtensionId:()=>SN,classifyMermaidFamilyFromFirstLine:()=>$se,connectorHitDistance:()=>yce,createExtensionIdentity:()=>gm,createMermaidBrowserPNGRenderer:()=>AGt,createMermaidRenderer:()=>qFn,essentialScenePrimitiveOperation:()=>vPt,evaluateExtensionCompatibility:()=>lPe,fromShikiTheme:()=>PDt,getBackend:()=>kFt,getStyle:()=>e6t,hitTestConnector:()=>ky,hitTestSceneConnectors:()=>X5t,hostedFontResource:()=>q7t,inferBackend:()=>DE,inlineResolvedColors:()=>Kae,inspectPngColorProfile:()=>mue,inspectPngDimensions:()=>gue,knownBackendDescriptors:()=>yOe,knownStyleDescriptors:()=>ROe,knownStyles:()=>$Oe,measureText:()=>Boe,measureTextWidth:()=>Qo,negotiateCapabilities:()=>sPe,negotiateRenderCapabilities:()=>uPt,normalizePortablePngBackground:()=>cDe,omitPngOutputOptions:()=>hGt,parseArchitectureDiagram:()=>D6,parseExtensionId:()=>my,parseGitGraph:()=>AI,parseMindmap:()=>ME,parseRegisteredMermaid:()=>nLe,parseSemVer:()=>ZT,pngNapiRuntimeProvenance:()=>bGt,pngOutputOptionsJsonSchema:()=>sGt,pngRasterDimensions:()=>aDe,prepareSvgForPngRasterization:()=>xue,projectNativePngOutputPolicyInput:()=>fGt,projectPortablePngOutputOptions:()=>dGt,registerBackend:()=>AFt,registerExtension:()=>EN,registerStyle:()=>QFt,renderContractDigest:()=>UA,renderMermaidASCII:()=>JBt,renderMermaidASCIIWithReceipt:()=>TLe,renderMermaidPNGInBrowserWithReceipt:()=>kGt,renderMermaidSVG:()=>SGt,renderMermaidSVGAsync:()=>VFn,renderMermaidSVGWithReceipt:()=>EGt,resolveArchitectureIcon:()=>_2,resolveColors:()=>CI,resolveDiagramColors:()=>Qae,resolvePngOutputPolicy:()=>lDe,resolvePortablePngOutputPolicy:()=>vue,resolveSceneRoleTraits:()=>fPe,resolveStyleReference:()=>tU,resolveStyleStack:()=>Lce,resolveTerminalOutputPolicy:()=>qle,runBackendConformance:()=>XH,sceneRoleTraits:()=>ow,semVerSatisfies:()=>AW,serializeGitGraph:()=>_ae,serializeMarkerResource:()=>oO,serializeMarkerResources:()=>vm,serializeMindmap:()=>JF,sharedRenderOptionsJsonSchema:()=>hLe,snapshotResourceManifest:()=>ZLe,styleInputJsonSchema:()=>lBt,styleSpecJsonSchema:()=>ZH,svgIntrinsicDimensions:()=>sDe,terminalConnectorCapabilityClaims:()=>$oe,validatePrimitiveCapabilities:()=>aF,validateResourceManifest:()=>J7t,validateSceneDoc:()=>uOe,validateSerializableRenderOptions:()=>Ble,validateStyleSpec:()=>k6,verifyNoExternalRefs:()=>p6,verifyResourceBytes:()=>U7t,verifySvgDocumentEnvelope:()=>UH});var xW=2,aPt="2.0.0";var cPt=Object.freeze(["importance","value","category","status","progress","route","emphasis"]);var vN=Object.freeze(["svg","png","ascii","unicode","html","layout"]);var oPe=1,_xn=/^[a-z][a-z0-9.-]*:[a-z0-9][a-z0-9._/-]*$/,jxn=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Bxn=new Set(["required","preferred","optional"]);function koe(r){return _xn.test(r)}function ZT(r){if(typeof r!="string")return;let i=r.match(jxn);if(!i)return;let s=i[4];if(!s?.split(".").some(c=>/^\d+$/.test(c)&&c.length>1&&c.startsWith("0")))return{major:i[1],minor:i[2],patch:i[3],...s?{prerelease:s}:{}}}function iPe(r,i){return r.length!==i.length?r.length<i.length?-1:1:r===i?0:r<i?-1:1}function Gxn(r,i){return iPe(r.major,i.major)||iPe(r.minor,i.minor)||iPe(r.patch,i.patch)}function Soe(r){if(typeof r!="string")return!1;let i=r.trim();if(i==="*"||/^(0|[1-9]\d*)\.(?:x|\*)$/i.test(i))return!0;let s=i.match(/^(\^|~|>=)?(.+)$/),c=ZT(s?.[2]??"");return!s||!c?!1:!c.prerelease||s[1]===void 0}function AW(r,i){let s=ZT(r);if(!s||!Soe(i))return!1;let c=i.trim();if(c==="*")return s.prerelease===void 0;let u=c.match(/^(0|[1-9]\d*)\.(?:x|\*)$/i);if(u)return s.prerelease===void 0&&s.major===u[1];let f=c.match(/^(\^|~|>=)?(.+)$/),p=ZT(f?.[2]??"");if(!f||!p)return!1;let m=Gxn(s,p);if(s.prerelease||p.prerelease)return f[1]===void 0&&m===0&&s.prerelease===p.prerelease;switch(f[1]){case">=":return m>=0;case"~":return m>=0&&s.major===p.major&&s.minor===p.minor;case"^":return m<0?!1:p.major!=="0"?s.major===p.major:p.minor!=="0"?s.major==="0"&&s.minor===p.minor:s.major==="0"&&s.minor==="0"&&s.patch===p.patch;default:return m===0}}function sPe(r,i){if(!Array.isArray(r))throw new TypeError("Capability offers must be an array");if(!Array.isArray(i))throw new TypeError("Capability requirements must be an array");let s=new Map;for(let[p,m]of r.entries()){if(!m||typeof m!="object"||Array.isArray(m))throw new TypeError(`Capability offer at index ${p} must be an object`);if(typeof m.id!="string")throw new Error(`Invalid capability id "${String(m.id)}"`);if(!koe(m.id))throw new Error(`Invalid capability id "${m.id}"`);if(typeof m.version!="string")throw new Error(`Capability "${m.id}" has invalid semantic version "${String(m.version)}"`);if(!ZT(m.version))throw new Error(`Capability "${m.id}" has invalid semantic version "${m.version}"`);if(s.has(m.id))throw new Error(`Duplicate capability offer "${m.id}"`);s.set(m.id,m.version)}let c=new Set,u=i.map((p,m)=>{if(!p||typeof p!="object"||Array.isArray(p))throw new TypeError(`Capability requirement at index ${m} must be an object`);if(typeof p.id!="string")throw new Error(`Invalid capability id "${String(p.id)}"`);if(!koe(p.id))throw new Error(`Invalid capability id "${p.id}"`);if(!Bxn.has(p.level))throw new Error(`Capability "${p.id}" has invalid requirement level "${String(p.level)}"`);if(!Soe(p.range))throw new Error(`Capability "${p.id}" has invalid semantic-version range "${String(p.range)}"`);if(c.has(p.id))throw new Error(`Duplicate capability requirement "${p.id}"`);c.add(p.id);let y=s.get(p.id),x=y===void 0?"unsupported":AW(y,p.range)?"selected":"incompatible";return Object.freeze({id:p.id,range:p.range,level:p.level,status:x,...y!==void 0?{version:y}:{}})}),f=u.every(p=>p.level!=="required"||p.status==="selected");return Object.freeze({version:oPe,accepted:f,resolutions:Object.freeze(u)})}var aPe=Object.freeze([{id:"core:render-request",version:"1.0.0"},{id:"core:family-descriptor",version:"1.0.0"}].map(r=>Object.freeze(r)));function lPt(r,i,s,c){let u={id:`output:${r}`,version:"1.0.0"},f=vN.includes(r);return sPe([...aPe,...i,...!f||!c?[]:[u]],[{id:"core:render-request",range:"^1.0.0",level:"required"},...s,{id:`output:${r}`,range:"^1.0.0",level:"required"}])}function uPt(r,i){return lPt(r,i?[i]:[],i?[{id:i.id,range:i.version,level:"required"}]:[],!0)}function dPt(r,i){return lPt(r,i.offers,i.requirements,i.outputAvailable)}var fPt="0.4.0";function hPt(r,i){if(r===void 0||i===void 0||r.id!==i.id||r.kind!==i.kind||r.version!==i.version)return!1;let s=new Set([...Object.keys(r.compatibility),...Object.keys(i.compatibility)]);for(let c of s)if(r.compatibility[c]!==i.compatibility[c])return!1;return r.provenance.owner===i.provenance.owner&&r.provenance.source===i.provenance.source&&r.provenance.reference===i.provenance.reference}var cPe=Object.freeze({core:fPt,scene:aPt});function iF(r,i){if(!r.compatibility[i])throw new Error(`Extension "${r.id}" must declare an explicit compatible "${i}" range`)}function lPe(r){let i=[];for(let[s,c]of Object.entries(r.compatibility)){if(c===void 0)continue;let u=cPe[s];if(!Soe(c)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Compatibility requirement "${s}" has invalid semantic-version range "${c}".`}));continue}if(u!==void 0){let f=AW(u,c);i.push(Object.freeze({contract:s,range:c,status:f?"compatible":"incompatible",version:u,...f?{}:{diagnostic:`Compatibility requirement "${s}" range "${c}" does not include host version ${u}.`}}));continue}if(!koe(s)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Unknown compatibility requirement "${s}" must use a namespace.`}));continue}i.push(Object.freeze({contract:s,range:c,status:"deferred"}))}return Object.freeze({accepted:i.every(s=>s.status==="compatible"||s.status==="deferred"),resolutions:Object.freeze(i)})}var gPt=/^[a-z][a-z0-9-]*$/,mPt=/^[a-z0-9][a-z0-9._/-]*$/,pPt=new WeakSet,Eoe=new WeakMap;function zxn(r,i){let s=Eoe.get(r);if(s)throw s.reentrantAttempted=!0,new Error(`Extension registry mutation is forbidden while ${s.operation} is in progress`);let c={operation:i,reentrantAttempted:!1};return Eoe.set(r,c),c}function Wxn(r){if(r.reentrantAttempted)throw new Error(`Extension registry mutation is forbidden after a reentrant attempt during ${r.operation}`)}function Hxn(r,i){Eoe.get(r)===i&&Eoe.delete(r)}function SN(r,i){if(!gPt.test(r))throw new Error(`Invalid extension kind "${r}"`);if(!mPt.test(i))throw new Error(`Invalid ${r} extension local id "${i}"`);return`${r}:${i}`}function my(r){let i=r.indexOf(":");if(i<=0||i===r.length-1||r.indexOf(":",i+1)!==-1)return;let s=r.slice(0,i),c=r.slice(i+1);if(!(!gPt.test(s)||!mPt.test(c)))return{kind:s,localId:c}}function gm(r){let i=r.id,s=r.kind,c=r.version,u=r.compatibility,f=r.provenance,p=Object.freeze({...u??{}}),m=Object.freeze({...f}),y=my(i);if(!y||y.kind!==s)throw new Error(`Extension id "${i}" must use the "${s}:" namespace`);if(!ZT(c))throw new Error(`Extension "${i}" requires a semantic version (received "${c}")`);if(m.owner.trim().length===0)throw new Error(`Extension "${i}" requires a provenance owner`);if(m.source.trim().length===0)throw new Error(`Extension "${i}" requires a provenance source`);let x=Object.freeze({id:i,kind:s,version:c,compatibility:p,provenance:m}),v=lPe(x);if(!v.accepted)throw new Error(`Extension "${i}" has incompatible requirements: ${v.resolutions.filter(S=>S.status==="incompatible"||S.status==="invalid").map(S=>S.diagnostic).join("; ")}`);return pPt.add(x),x}var kN=class extends Error{constructor(s,c){super(`Cannot register ${s.kind} "${s.id}" for owner "${s.provenance.owner}": already registered by "${c.provenance.owner}" at version ${c.version}`);this.incoming=s;this.existing=c;this.name="ExtensionCollisionError"}incoming;existing;code="EXTENSION_ID_COLLISION"};function EN(r,i){let s=zxn(r,"extension registration");try{let c=Object.freeze({identity:i.identity,value:i.value});if(!pPt.has(c.identity))throw new TypeError("Extension registration identity must be created by createExtensionIdentity()");let u=c.identity.id,f=r.get(u);if(f)throw new kN(c.identity,f.identity);Wxn(s),r.set(u,c)}finally{Hxn(r,s)}}var gE=Object.freeze({fontFamily:{kind:"font",description:"Safe font family/stack for roles whose descriptor exposes family-specific typography."},fontSize:{kind:"number",minimum:1,maximum:256,expected:"between 1 and 256",description:"Font size in SVG user units."},fontWeight:{kind:"number",minimum:1,maximum:1e3,expected:"between 1 and 1000",description:"CSS numeric font weight."},letterSpacing:{kind:"number",minimum:-2,maximum:4,expected:"between -2 and 4",description:"Letter spacing in SVG user units."},textTransform:{kind:"enum",values:["uppercase","lowercase","capitalize"],description:"Text transformation."},textColor:{kind:"color",description:"Text paint."},paddingX:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Horizontal role padding."},paddingY:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Vertical role padding."},cornerRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable corner radius."},lineWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",description:"Border or connector width."},bendRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable connector bend radius."},fillColor:{kind:"color",description:"Surface fill paint."},borderColor:{kind:"color",description:"Border paint."},strokeColor:{kind:"color",description:"Connector stroke paint."},headerFillColor:{kind:"color",description:"Group header surface paint."},cue:{kind:"enum",values:["none","outline","double-line","pattern"],description:"Non-color semantic cue on roles whose family renderer exposes a cue projection."}}),uPe=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),bPt=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","lineWidth","bendRadius","strokeColor"]),Uxn=Object.freeze([...uPe,"fontFamily","headerFillColor"]),Jxn=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),qxn=Object.freeze(["fontFamily","fontSize","fontWeight","letterSpacing","textTransform","textColor","fillColor","borderColor","strokeColor","lineWidth","cue"]),Vxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","cue"]),Yxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","textColor"]),dPe=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth"]),Xxn=Object.freeze(["borderColor","strokeColor","lineWidth"]),yPt=Object.freeze([...dPe,"cue"]);function Gb(r,i){return Object.freeze({properties:r,...i?{bindingFamilies:Object.freeze([...i])}:{}})}var mE=Object.freeze({node:Gb(uPe),edge:Gb(bPt),group:Gb(Uxn),"group-header":Gb(qxn,["journey"]),label:Gb(Jxn),actor:Gb(uPe,["sequence"]),relationship:Gb(bPt,["er"]),"pie-slice":Gb(Vxn,["pie","radar"]),legend:Gb(Yxn,["radar"]),bar:Gb(dPe,["xychart"]),series:Gb(Xxn,["xychart"]),point:Gb(dPe,["radar"]),task:Gb(yPt,["gantt"]),milestone:Gb(yPt,["gantt"])}),CN=Object.freeze(Object.keys(mE)),pE=Object.freeze(CN.filter(r=>"bindingFamilies"in mE[r])),oF=Object.freeze([...new Set(pE.flatMap(r=>mE[r].properties))]);var iw=["shape","connector","text","group","document"],MN=["shape"],Coe=["connector"],wPt=["text"],Kxn=["shape","text"],P2=["shape","group"],Qxn=["shape","text","group"],Zxn=["connector","group"],eAn=["document"],xPt=["text","group"];var tAn=["shape","text","document"],nAn=["document"];function cs(r,i,s,c={}){let u=mE[r];return Object.freeze({applicableKinds:i,styleFallback:s,styleConsumption:u?"exact":"fallback-only",styleExtras:Object.freeze([]),...u?{styleProperties:u.properties}:{},styleBindingFamilies:Object.freeze([...u?.bindingFamilies??[]]),domIdentity:!1,relation:!1,sketch:"none",textHalo:!1,...c})}var eI=Object.freeze({node:cs("node",P2,"node",{domIdentity:!0,sketch:"shape"}),edge:cs("edge",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),"edge-label":cs("edge-label",xPt,"label"),group:cs("group",P2,"group",{domIdentity:!0,sketch:"shape"}),"group-header":cs("group-header",iw,"group",{sketch:"shape",textHalo:!0}),label:cs("label",wPt,"label",{textHalo:!0}),actor:cs("actor",P2,"node",{domIdentity:!0,sketch:"shape"}),lifeline:cs("lifeline",Coe,"edge",{sketch:"connector"}),activation:cs("activation",MN,"node",{domIdentity:!0,sketch:"shape"}),message:cs("message",Zxn,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),block:cs("block",iw,"group",{domIdentity:!0,sketch:"shape"}),note:cs("note",P2,"group",{domIdentity:!0,sketch:"shape"}),"class-box":cs("class-box",P2,"node",{domIdentity:!0,sketch:"shape"}),member:cs("member",wPt,"label",{domIdentity:!0,textHalo:!0}),entity:cs("entity",P2,"node",{domIdentity:!0,sketch:"shape"}),attribute:cs("attribute",xPt,"label",{domIdentity:!0,textHalo:!0}),relationship:cs("relationship",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),cardinality:cs("cardinality",Kxn,"label",{domIdentity:!0,textHalo:!0}),"pie-slice":cs("pie-slice",MN,"node",{domIdentity:!0,sketch:"shape"}),legend:cs("legend",Qxn,"group",{textHalo:!0}),bar:cs("bar",MN,"node",{domIdentity:!0,sketch:"shape"}),series:cs("series",Coe,"edge",{domIdentity:!0,sketch:"connector"}),point:cs("point",MN,"node",{domIdentity:!0}),axis:cs("axis",iw,"label",{textHalo:!0}),grid:cs("grid",iw,"edge"),plate:cs("plate",MN,"node",{domIdentity:!0,sketch:"shape"}),section:cs("section",iw,"group",{domIdentity:!0,sketch:"shape",textHalo:!0}),task:cs("task",iw,"node",{domIdentity:!0,sketch:"shape"}),milestone:cs("milestone",MN,"node",{domIdentity:!0,sketch:"shape"}),"marker-line":cs("marker-line",iw,"edge"),rail:cs("rail",iw,"edge",{sketch:"connector"}),period:cs("period",P2,"group",{domIdentity:!0,sketch:"shape"}),event:cs("event",P2,"group",{domIdentity:!0,sketch:"shape"}),score:cs("score",iw,"node"),"actor-pill":cs("actor-pill",MN,"node",{sketch:"shape"}),service:cs("service",P2,"node",{domIdentity:!0,sketch:"shape"}),junction:cs("junction",P2,"node",{domIdentity:!0}),icon:cs("icon",tAn,"node"),title:cs("title",iw,"label",{domIdentity:!0}),defs:cs("defs",eAn,"label"),prelude:cs("prelude",nAn,"label"),chrome:cs("chrome",iw,"label")}),rAn=Object.freeze({applicableKinds:iw,styleFallback:"label",styleConsumption:"fallback-only",styleExtras:Object.freeze([]),styleBindingFamilies:Object.freeze([]),domIdentity:!0,relation:!1,sketch:"none",textHalo:!1}),tI=Object.freeze(Object.entries(eI).map(([r,i])=>Object.freeze({identity:gm({id:`role:${r}`,kind:"role",version:"1.0.0",compatibility:{core:"^0.4.0",scene:"^2.0.0"},provenance:{owner:"agentic-mermaid",source:"built-in",reference:"src/scene/roles.ts"}}),role:r,traits:i,style:(()=>{let s=i.styleFallback;return Object.freeze({fallbackRole:s,applicableProperties:i.styleProperties??Object.freeze([])})})()})));function fPe(r){let i=eI[r];return i?{traits:i,source:"builtin"}:{traits:rAn,source:"namespaced-safe"}}function ow(r){return fPe(r).traits}var bE=["document","text","shape","container","connector","marker","data-mark"],APt=Object.freeze(bE.map(r=>Object.freeze({primitive:r,operation:r==="document"?"serialize":"render"})));function vPt(r){return r==="document"?"serialize":"render"}var Moe=["measure","layout","bounds","hit-test","render","accessibility","terminal-project","serialize"],Toe=["geometry","paint","stroke","transform","identity","relation","labels","markers","resources","interaction","topology","subpaths","closedness","bend-radius","endpoints","direction","hit-geometry","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],sF=Object.freeze([{primitive:"document",feature:"identity",operation:"serialize"},{primitive:"document",feature:"resources",operation:"serialize"},{primitive:"document",feature:"interaction",operation:"accessibility"},{primitive:"text",feature:"geometry",operation:"render"},{primitive:"text",feature:"paint",operation:"render"},{primitive:"text",feature:"labels",operation:"accessibility"},{primitive:"text",feature:"identity",operation:"serialize"},{primitive:"shape",feature:"geometry",operation:"render"},{primitive:"shape",feature:"paint",operation:"render"},{primitive:"shape",feature:"identity",operation:"serialize"},{primitive:"container",feature:"geometry",operation:"render"},{primitive:"container",feature:"paint",operation:"render"},{primitive:"container",feature:"identity",operation:"serialize"},{primitive:"connector",feature:"geometry",operation:"render"},{primitive:"connector",feature:"stroke",operation:"render"},{primitive:"connector",feature:"transform",operation:"render"},{primitive:"connector",feature:"topology",operation:"render"},{primitive:"connector",feature:"subpaths",operation:"render"},{primitive:"connector",feature:"closedness",operation:"render"},{primitive:"connector",feature:"bend-radius",operation:"render"},{primitive:"connector",feature:"stroke-opacity",operation:"render"},{primitive:"connector",feature:"stroke-cap",operation:"render"},{primitive:"connector",feature:"stroke-join",operation:"render"},{primitive:"connector",feature:"stroke-miter",operation:"render"},{primitive:"connector",feature:"dash-array",operation:"render"},{primitive:"connector",feature:"dash-offset",operation:"render"},{primitive:"connector",feature:"dash-restart",operation:"render"},{primitive:"connector",feature:"path-length",operation:"render"},{primitive:"connector",feature:"paint-order",operation:"render"},{primitive:"connector",feature:"non-scaling-stroke",operation:"render"},{primitive:"connector",feature:"marker-orientation",operation:"render"},{primitive:"connector",feature:"marker-overflow",operation:"render"},{primitive:"connector",feature:"endpoints",operation:"serialize"},{primitive:"connector",feature:"direction",operation:"serialize"},{primitive:"connector",feature:"labels",operation:"render"},{primitive:"connector",feature:"labels",operation:"accessibility"},{primitive:"connector",feature:"markers",operation:"render"},{primitive:"connector",feature:"relation",operation:"accessibility"},{primitive:"connector",feature:"interaction",operation:"hit-test"},{primitive:"connector",feature:"hit-geometry",operation:"hit-test"},{primitive:"connector",feature:"identity",operation:"serialize"},{primitive:"marker",feature:"geometry",operation:"render"},{primitive:"marker",feature:"paint",operation:"render"},{primitive:"marker",feature:"identity",operation:"serialize"},{primitive:"data-mark",feature:"geometry",operation:"render"},{primitive:"data-mark",feature:"paint",operation:"render"},{primitive:"data-mark",feature:"identity",operation:"serialize"}]),vW=["native","emulated","projected","lossy","unsupported"];function kPt(r){switch(r.kind){case"text":return["text"];case"shape":return r.channels?.value===void 0?["shape"]:["shape","data-mark"];case"group":return["container"];case"connector":return["connector"];case"document":return r.markerResources?.length?["document","marker"]:["document"]}}function Ioe(r,i,s="rough"){let c=i==="crisp"?"native":"emulated",u=i==="crisp"?"native":"projected",f="src/__tests__/backend-capability-conformance.test.ts",p=v=>i==="crisp"?{realization:"native"}:v==="geometry"||v==="topology"?{realization:"lossy",diagnostic:"The exact authored path remains as an invisible semantic carrier, but arbitrary curves are flattened to typed routed contours for the visible sketch."}:v==="closedness"?{realization:"lossy",diagnostic:"Sketch shafts are rebuilt from routed geometry and do not preserve explicit closed-subpath semantics."}:v==="bend-radius"?{realization:"lossy",diagnostic:"The authored rounded carrier remains exact, but the visible sketch follows its routed polyline and cannot preserve the continuous bend radius."}:v==="dash-restart"?{realization:"lossy",diagnostic:"A rough stroke may contain multiple generated stroke subpaths, so SVG dash restart boundaries can differ."}:v==="path-length"?{realization:"lossy",diagnostic:"One pathLength value spans generated stroke subpaths, so a sketch cannot retain one authored path calibration exactly."}:s==="hybrid"&&(v==="stroke-cap"||v==="stroke-join"||v==="stroke-miter"||v==="non-scaling-stroke")?{realization:"lossy",diagnostic:`Freehand ribbon geometry cannot preserve authored ${v} semantics; dashed Hybrid connectors fall back to the faithful rough projection.`}:v==="marker-orientation"||v==="marker-overflow"?{realization:"projected",diagnostic:"Marker geometry, orientation, and overflow remain in the typed marker projection instead of being sketched."}:{realization:"emulated"},m=["transform","topology","subpaths","closedness","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],y=[{target:r,primitive:"document",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"resources",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"interaction",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"shape",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"container",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"geometry",operation:"render",...p("geometry"),evidence:f},{target:r,primitive:"connector",feature:"stroke",operation:"render",realization:c,evidence:f},...m.map(v=>({target:r,primitive:"connector",feature:v,operation:"render",...p(v),evidence:f})),{target:r,primitive:"connector",feature:"relation",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"endpoints",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"direction",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"render",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"markers",operation:"render",realization:u,evidence:f},{target:r,primitive:"connector",feature:"interaction",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"hit-geometry",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"marker",feature:"geometry",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"paint",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"data-mark",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"identity",operation:"serialize",realization:"native",evidence:f}],x=aF(y);if(!x.valid)throw new Error(`Invalid graphical backend capability contract: ${x.diagnostics.join("; ")}`);return Object.freeze(y.map(v=>Object.freeze({...v})))}function $oe(r="terminal:projection"){let i="src/__tests__/terminal-projection-security.test.ts",s=new Set(["geometry","paint","stroke","transform","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"]),u=["identity","relation","endpoints","direction","labels","markers","geometry","topology","subpaths","closedness","bend-radius","interaction","hit-geometry","stroke","transform","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"].map(p=>({target:r,primitive:"connector",feature:p,operation:"terminal-project",realization:s.has(p)?"lossy":"projected",evidence:i,...s.has(p)?{diagnostic:`Terminal cells cannot render continuous connector ${p}; the exact typed value remains in terminal projection evidence.`}:{}})),f=aF(u);if(!f.valid)throw new Error(`Invalid terminal connector capability contract: ${f.diagnostics.join("; ")}`);return Object.freeze(u.map(p=>Object.freeze({...p})))}function hPe(r){return[r.target,r.primitive,r.feature,r.operation].join("\0")}function aF(r){let i=[],s=new Set;for(let c=0;c<r.length;c++){let u=r[c],f=hPe(u);s.has(f)&&i.push(`claim[${c}]: duplicate target/primitive/feature/operation`),s.add(f),u.target.trim()===""&&i.push(`claim[${c}]: target must not be empty`),u.primitive.trim()===""&&i.push(`claim[${c}]: primitive must not be empty`),u.feature.trim()===""&&i.push(`claim[${c}]: feature must not be empty`),u.operation.trim()===""&&i.push(`claim[${c}]: operation must not be empty`),vW.includes(u.realization)||i.push(`claim[${c}]: invalid realization ${String(u.realization)}`),(u.realization==="lossy"||u.realization==="unsupported")&&!u.diagnostic?.trim()&&i.push(`claim[${c}]: ${u.realization} realization requires a diagnostic`)}return{valid:i.length===0,diagnostics:i}}function Roe(r){let i=[],s=r.split(/\r?\n/),c=0;for(let u of s){c++;let f=u.trim();if(!f||f.startsWith("%%"))continue;for(let m of f.matchAll(/"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'/g)){let y=m[1]??m[2]??"";y&&i.push({text:y,target:`line${c}`})}for(let m of f.matchAll(/[\[\(\{]+([^\[\]\(\)\{\}]+?)[\]\)\}]+/g)){let y=(m[1]??"").trim();y&&!y.match(/^[A-Za-z_][\w-]*$/)&&i.push({text:y,target:`line${c}`})}let p=f.indexOf(":");if(p>=0&&p<f.length-1){let m=f.slice(p+1).trim();m&&!m.match(/^[\d.]+$/)&&m.length>=2&&i.push({text:m,target:`line${c}`})}}return i}var TN=Object.freeze({contrast:Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role"}),minimum:Object.freeze({kind:"number",minimum:1,maximum:21})}),recovery:"Choose an authored text/surface pair that meets the requested ratio, or remove the rule; the renderer will not repaint it."}),"accent-area":Object.freeze({properties:Object.freeze({maxFraction:Object.freeze({kind:"number",minimum:0,maximum:1,required:!0})}),recovery:"Reduce authored accent-filled area or raise the declared maximum; the renderer will not rewrite fills."}),"mono-role":Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role",required:!0})}),recovery:"Use measurable monochrome paint for the named role or remove the rule; the renderer will not rewrite paint."})}),nI=Object.freeze(Object.keys(TN));function Poe(r){return TN[r].properties}function SPt(r){return Object.freeze(["kind","action",...Object.keys(TN[r].properties)])}function EPt(r){let i=Poe(r);return Object.freeze(["kind","action",...Object.entries(i).filter(([,s])=>s.required===!0).map(([s])=>s)])}var yE=Object.freeze({warn:Object.freeze({code:"BRAND_CONSTRAINT_WARNING",severity:"warning",tier:"lint"}),error:Object.freeze({code:"BRAND_CONSTRAINT_ERROR",severity:"error",tier:"lint"})});function gn(r){return{ok:!0,value:r}}function Ae(r){return{ok:!1,error:r}}function kW(r){if(!Number.isFinite(r))throw new RangeError(`expected a finite number, got ${String(r)}`);return r}var Ifr={EMPTY_DIAGRAM:"error",UNRESOLVABLE_SCHEDULE:"error",RENDER_FAILED:"error",[yE.error.code]:yE.error.severity,EDGE_MISANCHORED:"error",OFF_CANVAS:"error",GROUP_BREACH:"error",UNKNOWN_SHAPE:"warning",LABEL_OVERFLOW:"warning",NODE_OVERLAP:"warning",ROUTE_SELF_CROSS:"warning",ROUTE_HITCH:"warning",ROUTE_UNEXPLAINED_BEND:"warning",ROUTE_LABEL_ON_SHARED_TRUNK:"warning",ROUTE_SELF_LOOP_OCCUPANCY:"warning",ROUTE_CONTAINER_MISANCHOR:"warning",ROUTE_SHAPE_MISANCHOR:"warning",ROUTE_STALE_AFTER_NODE_MOVE:"warning",DUPLICATE_EDGE:"warning",UNREACHABLE_NODE:"warning",DECISION_BRANCH_UNLABELED:"warning",COMMENT_DROPPED:"warning",UNSUPPORTED_SYNTAX:"warning",CONTENT_DROPPED_ON_ROUNDTRIP:"warning",INEFFECTIVE_CONFIG:"warning",LOW_CONTRAST:"warning",[yE.warn.code]:yE.warn.severity},$fr={EMPTY_DIAGRAM:"structural",UNRESOLVABLE_SCHEDULE:"structural",RENDER_FAILED:"structural",[yE.error.code]:yE.error.tier,EDGE_MISANCHORED:"structural",OFF_CANVAS:"structural",GROUP_BREACH:"structural",UNKNOWN_SHAPE:"structural",LABEL_OVERFLOW:"structural",NODE_OVERLAP:"geometric",ROUTE_SELF_CROSS:"geometric",ROUTE_HITCH:"geometric",ROUTE_UNEXPLAINED_BEND:"geometric",ROUTE_LABEL_ON_SHARED_TRUNK:"geometric",ROUTE_SELF_LOOP_OCCUPANCY:"geometric",ROUTE_CONTAINER_MISANCHOR:"geometric",ROUTE_SHAPE_MISANCHOR:"geometric",ROUTE_STALE_AFTER_NODE_MOVE:"geometric",DUPLICATE_EDGE:"lint",UNREACHABLE_NODE:"lint",DECISION_BRANCH_UNLABELED:"lint",COMMENT_DROPPED:"lint",UNSUPPORTED_SYNTAX:"lint",CONTENT_DROPPED_ON_ROUNDTRIP:"lint",INEFFECTIVE_CONFIG:"lint",LOW_CONTRAST:"lint",[yE.warn.code]:yE.warn.tier},Noe=40;var iAn={flowchart:["add_node","remove_node","rename_node","set_label","add_edge","remove_edge","set_shape","set_direction","add_subgraph","remove_subgraph","move_node","define_class","set_node_class","set_node_style"],state:["add_state","remove_state","rename_state","set_state_label","add_transition","remove_transition","set_transition_label","make_composite","set_direction","move_state","dissolve_composite","add_note","remove_note","set_note_text","define_class","set_state_class","set_state_style","set_transition_style"],sequence:["add_participant","remove_participant","add_message","remove_message","set_message_text","move_message","set_participant_label","add_fragment","remove_fragment","set_fragment_label","add_fragment_branch","set_fragment_branch_label","add_fragment_message","remove_fragment_message","set_fragment_message_text"],timeline:["set_title","add_section","remove_section","set_section_label","add_period","remove_period","set_period_label","add_event","remove_event","set_event_text","move_period","move_event","move_section","set_accessibility_title","set_accessibility_description"],class:["set_title","add_class","remove_class","rename_class","set_class_generic","add_member","remove_member","add_relation","remove_relation","add_note","remove_note","set_class_namespace","define_class","set_css_class","set_class_style"],er:["add_entity","remove_entity","rename_entity","set_entity_label","add_attribute","remove_attribute","add_relation","remove_relation","set_direction","define_class","set_entity_class","set_entity_style"],journey:["set_title","add_section","remove_section","set_section_label","add_task","remove_task","set_task_text","set_task_score","set_task_actors","rename_actor","move_task","move_section","set_accessibility_title","set_accessibility_description"],architecture:["set_title","set_accessibility_title","set_accessibility_description","add_service","remove_service","rename_service","set_service_label","set_service_icon","move_service","add_junction","remove_junction","rename_junction","move_junction","add_group","set_group_label","remove_group","add_edge","update_edge","remove_edge"],xychart:["set_title","set_x_axis","set_y_axis","add_series","remove_series","set_series_values","set_series_name","reorder_series","set_orientation","set_data_point"],pie:["set_title","set_show_data","add_slice","remove_slice","rename_slice","set_slice_value","reorder_slice"],quadrant:["set_title","set_axis_labels","set_quadrant_label","add_point","remove_point","move_point","rename_point"],gantt:["set_title","add_section","rename_section","remove_section","add_task","remove_task","rename_task","set_task_status","set_task_dates","set_task_flags","set_task_id","move_task","move_section"],mindmap:["add_node","remove_node","rename_node","set_label","move_node","set_shape","set_icon","set_node_class","set_accessibility_title","set_accessibility_description"],gitgraph:["append_commit","create_branch","checkout_branch","merge_branch","cherry_pick","set_commit_message","set_commit_type","set_commit_tags","rename_branch","set_accessibility_title","set_accessibility_description"],radar:["set_title","add_axis","remove_axis","rename_axis","set_axis_label","reorder_axis","add_curve","remove_curve","set_curve_values","set_curve_value","set_curve_label","rename_curve","reorder_curve","set_config"]};function CPt(r){let i=iAn[r];return i?i.join(", "):"(none \u2014 this family has no structured ops)"}function Sc(r,i){if(Array.isArray(i))return`Expected a single ${r} op, got an array of ${i.length}. Ops apply one at a time: call mutate() once per op, or pass the whole list to a batch entrypoint \u2014 applyOps({ source, family, ops }) to edit source, or buildMermaid(kind, ops) to author \u2014 valid ${r} ops: ${CPt(r)}`;let s=i?.kind,c=typeof s=="string"?`"${s}"`:JSON.stringify(i);return`Unknown ${r} op ${c} \u2014 valid ops: ${CPt(r)}`}var gPe,oAn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),mPe=(gPe=String.fromCodePoint)!==null&&gPe!==void 0?gPe:(r=>{let i="";return r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),i+=String.fromCharCode(r),i});function pPe(r){var i;return r>=55296&&r<=57343||r>1114111?65533:(i=oAn.get(r))!==null&&i!==void 0?i:r}function bPe(r){let i=typeof atob=="function"?atob(r):typeof Buffer.from=="function"?Buffer.from(r,"base64").toString("binary"):new Buffer(r,"base64").toString("binary"),s=i.length&-2,c=new Uint16Array(s/2);for(let u=0,f=0;u<s;u+=2){let p=i.charCodeAt(u),m=i.charCodeAt(u+1);c[f++]=p|m<<8}return c}var yPe=bPe("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var mm;(function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.FLAG13=8192]="FLAG13",r[r.BRANCH_LENGTH=8064]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"})(mm||(mm={}));var Uu;(function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"})(Uu||(Uu={}));var MPt=32;function wPe(r){return r>=Uu.ZERO&&r<=Uu.NINE}function aAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_F||r>=Uu.LOWER_A&&r<=Uu.LOWER_F}function cAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_Z||r>=Uu.LOWER_A&&r<=Uu.LOWER_Z||wPe(r)}function lAn(r){return r===Uu.EQUALS||cAn(r)}var Dh;(function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"})(Dh||(Dh={}));var N2;(function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"})(N2||(N2={}));var Ooe=class{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,this.state=Dh.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=N2.Strict,this.runConsumed=0}startEntity(i){this.decodeMode=i,this.state=Dh.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(i,s){switch(this.state){case Dh.EntityStart:return i.charCodeAt(s)===Uu.NUM?(this.state=Dh.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Dh.NamedEntity,this.stateNamedEntity(i,s));case Dh.NumericStart:return this.stateNumericStart(i,s);case Dh.NumericDecimal:return this.stateNumericDecimal(i,s);case Dh.NumericHex:return this.stateNumericHex(i,s);case Dh.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|MPt)===Uu.LOWER_X?(this.state=Dh.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Dh.NumericDecimal,this.stateNumericDecimal(i,s))}stateNumericHex(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c)||aAn(c)){let u=c<=Uu.NINE?c-Uu.ZERO:(c|MPt)-Uu.LOWER_A+10;this.result=this.result*16+u,this.consumed++,s++}else return this.emitNumericEntity(c,3)}return-1}stateNumericDecimal(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c))this.result=this.result*10+(c-Uu.ZERO),this.consumed++,s++;else return this.emitNumericEntity(c,2)}return-1}emitNumericEntity(i,s){var c;if(this.consumed<=s)return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===Uu.SEMI)this.consumed+=1;else if(this.decodeMode===N2.Strict)return 0;return this.emitCodePoint(pPe(this.result),this.consumed),this.errors&&(i!==Uu.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(i,s){let{decodeTree:c}=this,u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14;for(;s<i.length;){if(f===0&&(u&mm.FLAG13)!==0){let m=(u&mm.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=u&mm.JUMP_TABLE;if(i.charCodeAt(s)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}for(;this.runConsumed<m;){if(s>=i.length)return-1;let y=this.runConsumed-1,x=c[this.treeIndex+1+(y>>1)],v=y%2===0?x&255:x>>8&255;if(i.charCodeAt(s)!==v)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(m>>1),u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14}if(s>=i.length)break;let p=i.charCodeAt(s);if(p===Uu.SEMI&&f!==0&&(u&mm.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);if(this.treeIndex=dAn(c,u,this.treeIndex+Math.max(1,f),p),this.treeIndex<0)return this.result===0||this.decodeMode===N2.Attribute&&(f===0||lAn(p))?0:this.emitNotTerminatedNamedEntity();if(u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14,f!==0){if(p===Uu.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==N2.Strict&&(u&mm.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}s++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var i;let{result:s,decodeTree:c}=this,u=(c[s]&mm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,u,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,c){let{decodeTree:u}=this;return this.emitCodePoint(s===1?u[i]&~(mm.VALUE_LENGTH|mm.FLAG13):u[i+1],c),s===3&&this.emitCodePoint(u[i+2],c),c}end(){var i;switch(this.state){case Dh.NamedEntity:return this.result!==0&&(this.decodeMode!==N2.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Dh.NumericDecimal:return this.emitNumericEntity(0,2);case Dh.NumericHex:return this.emitNumericEntity(0,3);case Dh.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Dh.EntityStart:return 0}}};function uAn(r){let i="",s=new Ooe(r,c=>i+=mPe(c));return function(u,f){let p=0,m=0;for(;(m=u.indexOf("&",m))>=0;){i+=u.slice(p,m),s.startEntity(f);let x=s.write(u,m+1);if(x<0){p=m+s.end();break}p=m+x,m=x===0?p+1:p}let y=i+u.slice(p);return i="",y}}function dAn(r,i,s,c){let u=(i&mm.BRANCH_LENGTH)>>7,f=i&mm.JUMP_TABLE;if(u===0)return f!==0&&c===f?s:-1;if(f){let x=c-f;return x<0||x>=u?-1:r[s+x]-1}let p=u+1>>1,m=0,y=u-1;for(;m<=y;){let x=m+y>>>1,v=x>>1,E=r[s+v]>>(x&1)*8&255;if(E<c)m=x+1;else if(E>c)y=x-1;else return r[s+p+x]}return-1}var fAn=uAn(yPe);function py(r){return fAn(r,N2.Strict)}var hAn=String.prototype.codePointAt==null?(r,i)=>(r.charCodeAt(i)&64512)===55296?(r.charCodeAt(i)-55296)*1024+r.charCodeAt(i+1)-56320+65536:r.charCodeAt(i):(r,i)=>r.codePointAt(i);var TPt;(function(r){r[r.XML=0]="XML",r[r.HTML=1]="HTML"})(TPt||(TPt={}));var IPt;(function(r){r[r.UTF8=0]="UTF8",r[r.ASCII=1]="ASCII",r[r.Extensive=2]="Extensive",r[r.Attribute=3]="Attribute",r[r.Text=4]="Text"})(IPt||(IPt={}));var wAn=[[11904,12031],[12032,12255],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12688,12799],[12800,13311],[13312,19903],[19968,40959],[63744,64255],[131072,196607]],xAn=[[4352,4447],[12592,12687],[44032,55215]],AAn=[[9001,9002],[65040,65049],[65072,65135],[65280,65376],[65504,65510]],vAn=[[127744,129791]],RPt=[127995,127999],kAn=[[768,879],[6832,6911],[7616,7679],[8400,8447],[65056,65071]],SAn=new Set([8203,8204,8205,65279]),Loe=65038,Doe=65039,PPt=8205;function SW(r,i){for(let[s,c]of i)if(r>=s&&r<=c)return!0;return!1}function Foe(r){return SW(r,wAn)||SW(r,xAn)||SW(r,AAn)||SW(r,vAn)}function _oe(r){return SW(r,kAn)||SAn.has(r)}function NPt(r){return r>=RPt[0]&&r<=RPt[1]}var OPt=/<(\/)?(?:(b|strong)|(i|em)|(u)|(s|del))\s*>/gi,rI=/<\/?(?:b|strong|i|em|u|s|del)\s*>/i;function IN(r){let i=[],s=!1,c=!1,u=!1,f=!1,p=0;OPt.lastIndex=0;let m;for(;(m=OPt.exec(r))!==null;){m.index>p&&i.push({text:r.slice(p,m.index),bold:s,italic:c,underline:u,strikethrough:f}),p=m.index+m[0].length;let y=!!m[1];m[2]?s=!y:m[3]?c=!y:m[4]?u=!y:m[5]&&(f=!y)}return p<r.length&&i.push({text:r.slice(p),bold:s,italic:c,underline:u,strikethrough:f}),i}function vPe(r){return r.split(`
|
|
25
25
|
`).map(i=>IN(i).map(s=>s.text).join("")).join(`
|
|
26
26
|
`)}function joe(r){let i=r.text;return r.strikethrough&&(i=`<s>${i}</s>`),r.underline&&(i=`<u>${i}</u>`),r.italic&&(i=`<i>${i}</i>`),r.bold&&(i=`<b>${i}</b>`),i}var EAn=new Intl.Segmenter(void 0,{granularity:"grapheme"});function Vl(r){return Array.from(EAn.segment(r),i=>i.segment)}var CAn=new Set(["i","l","t","f","j","I","1","!","|",".",",",":",";","'"]),MAn=new Set(["W","M","w","m","@","%"]),LPt=new Set(["W","M"]),TAn=new Set(["(",")","[","]","{","}","/","\\","-",'"',"`"]);function DPt(r){return _oe(r)||r===Loe||r===Doe}function FPt(r){return Foe(r)}var IAn=/\p{Emoji_Presentation}|\p{Extended_Pictographic}/u;function _Pt(r){return IAn.test(r)}function $An(r){let i=r.codePointAt(0);return i===void 0||DPt(i)?0:FPt(i)||_Pt(r)?2:r===" "?.3:LPt.has(r)?1.5:MAn.has(r)?1.2:CAn.has(r)?.4:TAn.has(r)?.5:r==="r"?.8:i>=65&&i<=90?1.2:(i>=48&&i<=57,1)}var kPe={version:3,unit:"px",fontCalibration:"Inter-compatible proportional estimate",monospaceCalibration:"0.6em-per-cell",wideCodepoints:"src/shared/unicode-ranges.ts",emojiDetection:"Emoji_Presentation-or-Extended_Pictographic",ambiguousWidth:"single-cell",paintedAdvanceProjection:"svg-textLength-spacingAndGlyphs",naturalAdvanceExemptions:"none"};function RAn(r){return r>=600?.6:r>=500?.57:.54}function Boe(r){let i=RAn(r.fontWeight),s=0,c=0;for(let f of r.text)s+=$An(f),c++;let u=r.fontSize*.15;return{contract:kPe,width:s*r.fontSize*i+u,charWidthUnits:s,codePointCount:c,fontSize:r.fontSize,fontWeight:r.fontWeight,baseRatio:i,minPadding:u}}function Qo(r,i,s){return Boe({text:r,fontSize:i,fontWeight:s}).width}function jPt(r,i,s){let c=Boe({text:r,fontSize:i,fontWeight:s}),u=0;for(let f of r)LPt.has(f)&&(u+=1.85-1.5);return c.width+u*i*c.baseRatio}function Goe(r,i,s=0){let c=Vl(r),u=0;for(let p of c){let m=0;for(let y of p){let x=y.codePointAt(0);x===void 0||DPt(x)||(m=Math.max(m,FPt(x)||_Pt(y)?2:1))}u+=m}let f=Math.max(0,c.length-1)*s;return Math.max(0,u*i*.6+f)}function zb(r,i,s,c=0){let u=rI.test(r)?IN(r):[{text:r,bold:!1}],f=u.map(y=>y.text).join(""),p=Math.max(0,Vl(f).length-1)*c,m=u.reduce((y,x)=>y+Qo(x.text,i,x.bold?Math.max(700,s):s),0);return Math.max(0,m+p)}var SPe=1.3;function Bi(r,i,s,c=0){let u=r.split(`
|
|
27
27
|
`),f=i*SPe,p=0;for(let m of u){let y=zb(m,i,s,c);y>p&&(p=y)}return{width:p,height:u.length*f,lines:u,lineHeight:f}}function Sr(r){return(r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):r).replace(/<br\s*\/?>/gi,`
|
|
@@ -292,7 +292,7 @@ ${oO(i)}
|
|
|
292
292
|
`)))&&!u.includes("M 10 65 L 25 50 L 40 65 Z"));return _s(p,i.realization==="lossy"?"authored closed carrier retained while visible ribbon is rebuilt from the routed points":"authored closed subpath retained","output did not demonstrate the declared closedness realization")},"connector/bend-radius/render":(r,i)=>{let s=Ts.nodes.richConnector,c=fc(r,s),u=tk(c,Eo(s)),f=c.includes("Q 66 12 70 14")&&s.route.bendRadius===4;return _s(f&&(i.realization==="native"?!/\sstroke-opacity="0"/.test(c.match(/^\s*<path\b[^>]*>/)?.[0]??""):i.realization==="lossy"&&c!==Eo(s)&&!u.includes("Q 66 12 70 14")),i.realization==="lossy"?"exact rounded carrier retained while the visible sketch uses the declared routed projection":"authored rounded connector geometry retained","bend-radius realization did not match the declared capability")},"connector/stroke-opacity/render":(r,i)=>NI(r,i,"stroke-opacity","0.65"),"connector/stroke-cap/render":(r,i)=>NI(r,i,"stroke-linecap","square"),"connector/stroke-join/render":(r,i)=>NI(r,i,"stroke-linejoin","miter"),"connector/stroke-miter/render":(r,i)=>NI(r,i,"stroke-miterlimit","7"),"connector/dash-array/render":(r,i)=>NI(r,i,"stroke-dasharray","6 3"),"connector/dash-offset/render":(r,i)=>NI(r,i,"stroke-dashoffset","2"),"connector/dash-restart/render":(r,i)=>{let s=Ts.nodes.richConnector,c=fc(r,s),u=tk(c,Eo(s)),f=lO(u,'stroke-dasharray="6 3"'),p=lO(u,"M");return _s(i.realization==="native"?f===1:i.realization==="lossy"&&f>=1&&p>1,i.realization==="lossy"?`${p} generated stroke subpaths restart independently`:"one authored dashed path retains one dash phase","dash restart boundaries did not match the declared realization")},"connector/path-length/render":(r,i)=>{let s=Ts.nodes.richConnector,c=fc(r,s),u=tk(c,Eo(s)),f=lO(u,'pathLength="77"'),p=lO(u,"M");return _s(i.realization==="native"?f===1:i.realization==="lossy"&&f>=1&&p>1,i.realization==="lossy"?`one pathLength value spans ${p} generated stroke subpaths`:"one authored pathLength calibration retained","pathLength behavior did not match the declared realization")},"connector/paint-order/render":(r,i)=>NI(r,i,"paint-order","stroke fill"),"connector/non-scaling-stroke/render":(r,i)=>NI(r,i,"vector-effect","non-scaling-stroke"),"connector/marker-orientation/render":(r,i)=>{let s=dO(r);if(i.realization==="unsupported")return _s(s.includes('orient="auto"')&&!s.includes('marker-start="url(#backend-conformance-arrow)"')&&!s.includes('marker-mid="url(#backend-conformance-arrow)"')&&!s.includes('marker-end="url(#backend-conformance-arrow)"'),"marker resource remains serializable but the unsupported connector attachment is omitted","backend declared connector marker orientation unsupported but attached the marker");let c=s.includes('orient="auto"')&&s.includes('marker-start="url(#backend-conformance-arrow)"')&&s.includes('marker-mid="url(#backend-conformance-arrow)"')&&s.includes('marker-end="url(#backend-conformance-arrow)"'),u=i.realization!=="projected"||s.includes('markerUnits="userSpaceOnUse"');return _s((i.realization==="native"||i.realization==="projected")&&c&&u,i.realization==="projected"?"typed marker kept in the marker projection with projected units/orientation":"native marker orientation retained","marker orientation/carrier projection did not match the declaration")},"connector/marker-overflow/render":(r,i)=>{let s=dO(r),c=s.includes('marker-start="url(#backend-conformance-arrow)"')&&s.includes('marker-end="url(#backend-conformance-arrow)"');return i.realization==="unsupported"?_s(s.includes('overflow="visible"')&&!c&&!s.includes('marker-mid="url(#backend-conformance-arrow)"'),"marker resource remains serializable but its unsupported connector attachment is omitted","backend declared connector marker overflow unsupported but attached the marker"):_s((i.realization==="native"||i.realization==="projected")&&s.includes('overflow="visible"')&&c,i.realization==="projected"?"visible overflow remains in the typed marker resource projection":"native marker overflow retained","marker overflow or its connector attachment was not preserved")},"connector/endpoints/serialize":r=>{let i=fc(r,Ts.nodes.richConnector);return _s(i.includes('data-from="backend-conformance-node"')&&i.includes('data-to="backend-conformance-data-mark"'),"typed endpoint identities serialized on the semantic carrier","connector endpoint identities were not serialized")},"connector/direction/serialize":r=>{let i=fc(r,Ts.nodes.richConnector);return _s(i.includes('data-relationship="dependency"')&&i.includes('data-direction="forward"'),"typed relationship kind and direction serialized on the semantic carrier","connector relationship direction was not serialized")},"connector/labels/accessibility":r=>{let i=fc(r,Ts.nodes.richConnector);return _s(i.includes('aria-label="backend-conformance-node to backend-conformance-data-mark: depends on"'),"typed connector label participates in the accessible relation name","connector label was absent from accessibility output")},"connector/labels/render":(r,i)=>{let s=fc(r,Ts.nodes.richConnector);return _s(i.realization==="native"&&s.includes('data-id="backend-conformance-relation-label"')&&s.includes('data-connector-label-for="backend-conformance-relation"')&&s.includes('x="66" y="6"')&&s.includes('font-size="11"')&&s.includes('fill="#172033"')&&s.includes('stroke="#ffffff"')&&s.includes('stroke-width="3"')&&s.includes('paint-order="stroke fill"')&&s.includes(">depends on</text>"),"typed label anchor, clearance, paint, typography, and halo render on the connector carrier","connector label visual semantics were not preserved")},"connector/relation/accessibility":r=>{let i=fc(r,Ts.nodes.richConnector);return _s(i.includes('data-from="backend-conformance-node"')&&i.includes('data-to="backend-conformance-data-mark"')&&i.includes('role="graphics-symbol"')&&i.includes('aria-roledescription="relation"')&&i.includes('aria-label="backend-conformance-node to backend-conformance-data-mark: depends on"'),"typed relation and accessible label preserved on the carrier","connector relation accessibility semantics were lost")},"connector/markers/render":(r,i)=>{let s=fc(r,Ts.nodes.richConnector);return i.realization==="unsupported"?_s(!s.includes('marker-start="url(#backend-conformance-arrow)"')&&!s.includes('marker-mid="url(#backend-conformance-arrow)"')&&!s.includes('marker-end="url(#backend-conformance-arrow)"'),"backend omits the explicitly unsupported connector marker","backend declared connector markers unsupported but still serialized one"):_s((i.realization==="native"||i.realization==="projected")&&s.includes('marker-start="url(#backend-conformance-arrow)"')&&s.includes('marker-mid="url(#backend-conformance-arrow)"')&&s.includes('marker-end="url(#backend-conformance-arrow)"'),i.realization==="projected"?"marker retained in the typed marker projection":"native connector marker retained","connector marker projection did not match the declaration")},"connector/interaction/hit-test":r=>{let i=Ts.nodes.freehandConnector,s=fc(r,i);return _s(s.includes('data-id="backend-conformance-freehand-relation"')&&ky(i,{x:42,y:82})&&!ky(i,{x:66,y:58}),"typed hit geometry remains aligned with the backend-preserved connector carrier","connector carrier or typed hit geometry was not preserved")},"connector/hit-geometry/hit-test":r=>{let i=Ts.nodes.multiSubpathConnector,s=fc(r,i);return _s(s.includes('data-id="backend-conformance-multi-relation"')&&ky(i,{x:18,y:72})&&!ky(i,{x:40,y:72}),"typed hit geometry preserves contour gaps independently of backend artwork","connector hit geometry did not preserve typed contour boundaries")},"connector/identity/serialize":r=>{let i=fc(r,Ts.nodes.richConnector);return _s(i.includes('data-id="backend-conformance-relation"')&&i.includes('data-role="edge"'),"connector DOM identity preserved on carrier","connector DOM identity was lost")},"marker/geometry/render":(r,i)=>{let s=fc(r,Ts.nodes.marker);return _s((i.realization==="native"||i.realization==="projected")&&s.includes("M 0 0 L 8 4 L 0 8 Z")&&s.includes('viewBox="0 0 8 8"'),i.realization==="projected"?"typed marker geometry reserialized in the marker resource projection":"native marker geometry retained","marker geometry was not present in backend output")},"marker/paint/render":(r,i)=>{let s=fc(r,Ts.nodes.marker);return _s((i.realization==="native"||i.realization==="projected")&&s.includes('fill="#a33b20"')&&s.includes('stroke="#334155"'),i.realization==="projected"?"typed marker paint retained in the marker resource projection":"native marker paint retained","marker paint was not present in backend output")},"marker/identity/serialize":r=>{let i=fc(r,Ts.nodes.marker);return _s(i.includes('id="backend-conformance-arrow"'),"marker resource identity retained","marker resource identity was lost")},"data-mark/geometry/render":(r,i)=>uO(r,i,Ts.nodes.dataMark),"data-mark/paint/render":(r,i)=>uO(r,i,Ts.nodes.dataMark,s=>s.includes("#a33b20")&&s.includes("#334155")),"data-mark/identity/serialize":r=>{let i=fc(r,Ts.nodes.dataMark);return _s(i.includes('data-id="backend-conformance-data-mark"')&&i.includes('data-role="bar"'),"quantitative mark DOM identity retained","quantitative mark DOM identity was lost")}});function mIn(r){return bE.includes(r.primitive)&&Toe.includes(r.feature)&&Moe.includes(r.operation)}function pIn(r){return r.capabilities.map(i=>{let s=hPe(i),c=gIn[hFt(i)],u={claimKey:s,target:i.target,primitive:i.primitive,feature:i.feature,operation:i.operation,realization:i.realization,...i.diagnostic?{limitation:i.diagnostic}:{}};if(!c)return mIn(i)?{...u,status:"failed",diagnostic:"No executable witness is registered for this core claim."}:{...u,status:"unverified-extension",diagnostic:"Namespaced extension claim is outside the built-in witness vocabulary."};let f=`${Tce}/${hFt(i)}`;try{let p=c(r,i);return{...u,witnessId:f,status:p.passed?"passed":"failed",observation:p.observation,...p.diagnostic?{diagnostic:p.diagnostic}:{}}}catch(p){return{...u,witnessId:f,status:"failed",diagnostic:`Witness threw ${p instanceof Error?p.message:String(p)}`}}})}function XH(r,i=r.id){let s=[],c=(L,_,j)=>{s.push(Object.freeze({id:L,passed:_,...j?{diagnostic:j}:{}}))},u=[],f=[];for(let L of Ts.probes)try{let _=fc(r,L.node),j=fc(r,L.node);if(typeof _!="string"||typeof j!="string"){u.push(`${L.primitive} returned a non-string`),f.push(`${L.primitive} returned a non-string`);continue}_!==j&&u.push(`${L.primitive} changed between identical calls`);let z=L.requiredFragments.filter(W=>!_.includes(W));z.length>0&&f.push(`${L.primitive} ${fFt(z)}`)}catch(_){let j=`${L.primitive} threw ${_ instanceof Error?_.message:String(_)}`;u.push(j),f.push(j)}c("draw-node-determinism",u.length===0,u.join("; ")||void 0),c("draw-node-semantics",f.length===0,f.join("; ")||void 0);let p="",m="",y;try{p=dO(r),m=dO(r),typeof p!="string"||typeof m!="string"?(y="render must return a string",p=typeof p=="string"?p:"",m=typeof m=="string"?m:""):p!==m&&(y="render changed between identical calls")}catch(L){y=`render threw ${L instanceof Error?L.message:String(L)}`}c("document-determinism",y===void 0,y);let x=UH(p);c("single-svg-document",x,x?void 0:"render must return one well-formed namespaced SVG document");let v=p.match(/\b(?:NaN|Infinity|undefined)\b/)?.[0];c("finite-serialization",!v,v?`serialized ${v}`:void 0);let S=p6(p),E;try{RI(p,"default")}catch(L){E=L instanceof Error?L.message:String(L)}let M=S.ok&&E===void 0;c("output-security",M,M?void 0:[E,S.ok?void 0:`unsafe SVG constructs: ${S.refs.join(", ")}`].filter(Boolean).join("; "));let R=[["document-semantics",['aria-labelledby="backend-conformance-title backend-conformance-description"','<title id="backend-conformance-title">Backend conformance fixture</title>','<desc id="backend-conformance-description">A representative Scene document</desc>']],["container-semantics",['data-id="backend-conformance-container"','data-role="group"']],["shape-semantics",['data-id="backend-conformance-node"','data-role="node"']],["text-semantics",['data-id="backend-conformance-text"','data-role="member"',"Fixture label"]],["connector-semantics",['data-id="backend-conformance-relation"','data-role="edge"','data-from="backend-conformance-node"','data-to="backend-conformance-data-mark"','role="graphics-symbol"','aria-roledescription="relation"','aria-label="backend-conformance-node to backend-conformance-data-mark: depends on"']],["marker-semantics",['id="backend-conformance-arrow"']],["data-mark-semantics",['data-id="backend-conformance-data-mark"','data-role="bar"']]];for(let[L,_]of R){let j=_.filter(z=>!p.includes(z));c(L,j.length===0,fFt(j))}let P=pIn(r),N=P.filter(L=>L.status==="failed");c("capability-claims",N.length===0,N.map(L=>`${L.primitive}/${L.feature}/${L.operation}: ${L.diagnostic??"failed"}`).join("; ")||void 0);let F={version:dOe,fixtureId:Tce,backendId:i,contracts:{scene:2,outputSecurity:2},directOutputs:["svg"],passed:s.every(L=>L.passed),checks:s,claims:P};return fOe(F)}var bIn=64,yIn=256,wIn=Cc.maxNodes*16,xIn=Cc.maxNodes*16,AIn=Cc.maxTextBytes*8,hOe=Object.freeze({maxObjects:Cc.maxNodes*4,maxTextBytes:Cc.maxTextBytes,maxArrayEntries:Cc.maxNodes,maxAggregateArrayEntries:xIn,maxDepth:Cc.maxDepth*4,maxPropertiesPerObject:bIn,maxAggregateProperties:wIn,maxPropertyKeyBytes:yIn,maxAggregatePropertyKeyBytes:AIn}),gOe=Object.freeze({...hOe,maxObjects:Cc.maxNodes*8,maxTextBytes:Cc.maxTextBytes+Cc.maxAggregateSerializationBytes+Cc.maxFinalSvgBytes});function KH(r,i,s="input"){let c=new WeakSet,u=new WeakMap,f=0,p=0,m=0,y=0,x=0,v=(S,E,M)=>{if(typeof S=="string"){let P=Math.max(0,i.maxTextBytes-p),N=Fh(S,P);if(N>P)throw new Error(`External Scene text values exceed the aggregate ${i.maxTextBytes}-byte limit`);return p+=N,S}if(S===null||typeof S!="object"){if(typeof S=="function"||typeof S=="symbol"||typeof S=="bigint")throw new TypeError(`External Scene ${M} must be declarative data`);return S}if(E>i.maxDepth)throw new Error("External Scene input object graph is too deeply nested");if(++f>i.maxObjects)throw new Error("External Scene input object graph is too large");if(c.has(S))throw new Error("External Scene input must be acyclic");let R=u.get(S);if(R!==void 0)return R;c.add(S);try{if(Array.isArray(S)){if(Object.getPrototypeOf(S)!==Array.prototype)throw new TypeError(`External Scene ${M} must be a plain array`);let L=Reflect.getOwnPropertyDescriptor(S,"length");if(!L||!("value"in L)||typeof L.value!="number"||!Number.isSafeInteger(L.value)||L.value<0)throw new TypeError(`External Scene ${M}.length must be a non-negative integer data property`);let _=L.value;if(_>i.maxArrayEntries)throw new Error(`External Scene ${M} contains too many entries`);if(m+=_,m>i.maxAggregateArrayEntries)throw new Error(`External Scene input exceeds the aggregate ${i.maxAggregateArrayEntries}-array-entry limit`);let j=Reflect.ownKeys(S);if(j.length>_+1||!j.includes("length"))throw new TypeError(`External Scene ${M} must not define custom array properties or iterators`);let z=new Map;z.set("length",L);for(let Z of j){if(Z==="length")continue;let V=Reflect.getOwnPropertyDescriptor(S,Z);if(!V)throw new TypeError(`External Scene ${M} has an unstable property descriptor`);z.set(Z,V)}for(let Z of j)if(Z!=="length"&&(typeof Z!="string"||!/^(?:0|[1-9]\d*)$/.test(Z)||Number(Z)>=_))throw new TypeError(`External Scene ${M} must not define custom array properties or iterators`);let W=new Array(_);u.set(S,W),JNe(S,W);for(let Z=0;Z<_;Z++){let V=z.get(String(Z));if(!V)throw new TypeError(`External Scene ${M} must not be sparse`);if(!("value"in V)||!V.enumerable)throw new TypeError(`External Scene ${M}[${Z}] must be an enumerable data property`);W[Z]=v(V.value,E+1,`${M}[${Z}]`)}return Object.freeze(W)}let P=Object.getPrototypeOf(S);if(P!==Object.prototype&&P!==null)throw new TypeError(`External Scene ${M} must be a plain object`);let N=Reflect.ownKeys(S);if(N.length>i.maxPropertiesPerObject)throw new Error(`External Scene ${M} contains too many properties`);if(y+=N.length,y>i.maxAggregateProperties)throw new Error(`External Scene input exceeds the aggregate ${i.maxAggregateProperties}-property limit`);for(let L of N){if(typeof L!="string")continue;let _=Math.max(0,i.maxAggregatePropertyKeyBytes-x),j=Fh(L,Math.min(i.maxPropertyKeyBytes,_));if(j>i.maxPropertyKeyBytes)throw new Error(`External Scene ${M} contains a property key longer than ${i.maxPropertyKeyBytes} bytes`);if(j>_)throw new Error(`External Scene property keys exceed the aggregate ${i.maxAggregatePropertyKeyBytes}-byte limit`);x+=j}let F=Object.create(null);u.set(S,F),JNe(S,F);for(let L of N){if(typeof L!="string")throw new TypeError(`External Scene ${M} must not contain symbol keys`);let _=Reflect.getOwnPropertyDescriptor(S,L);if(!_||!("value"in _)||!_.enumerable)throw new TypeError(`External Scene ${M}.${L} must be an enumerable data property`);Object.defineProperty(F,L,{value:v(_.value,E+1,`${M}.${L}`),enumerable:!0,configurable:!1,writable:!1})}return Object.freeze(F)}finally{c.delete(S)}};return v(r,0,s)}function QH(r){let i=KH(r,gOe,"scene");return PI(i),i}function Rce(r){if(r===void 0)return;if(typeof r!="object"&&typeof r!="function"||r===null)throw new TypeError("backendPolicy must be an object with a selectBackend function");let i=r.selectBackend;if(typeof i!="function")throw new TypeError("backendPolicy.selectBackend must be a function");let s;return s=Object.freeze({selectBackend(c){return Reflect.apply(i,s,[c])}}),s}function pFt(r,i,s,c){return[r,...c.map(u=>qNe(u.serialized,u.indent)),i].join(s)}function bOe(r,i){return!i.style||r.transparent?"":`<rect width="${r.width}" height="${r.height}" fill="var(--bg)" data-backdrop="page" />`}var jh={id:"default",capabilities:Ioe("backend:default","crisp"),drawNode(r){return Eo(r)},render(r,i){let s=QH(r),c=bOe(s,i);return c?s.parts.map((u,f)=>f===0?`${Eo(u)}
|
|
293
293
|
${c}`:Eo(u)).join(`
|
|
294
294
|
`):s.parts.map(Eo).join(`
|
|
295
|
-
`)}},bFt="1.0.0",vIn=Object.freeze({core:"^0.
|
|
295
|
+
`)}},bFt="1.0.0",vIn=Object.freeze({core:"^0.4.0",scene:"^2.0.0"}),kIn=Object.freeze({owner:"agentic-mermaid",source:"built-in",reference:"src/scene/backend.ts"}),SIn=Object.freeze({owner:"host",source:"in-process"}),x6=new Map,mOe=new Map,$ce=new Map,OI=null;function pOe(){if(OI!==null)throw new Error(`Backend registry mutation is forbidden while candidate "${OI}" is undergoing conformance`)}function yFt(r,i){return gm({id:r,kind:"backend",version:i.version??bFt,compatibility:i.compatibility,provenance:i.provenance??SIn})}function wFt(r,i){if(!Array.isArray(r.capabilities))throw new Error(`Backend "${r.id}" must declare capability claims`);let s=aF(r.capabilities);if(!s.valid)throw new Error(`Backend "${r.id}" has invalid capabilities: ${s.diagnostics.join("; ")}`);if(r.capabilities.length===0)throw new Error(`Backend "${r.id}" must declare capability claims`);if(r.capabilities.find(f=>f.target!==i))throw new Error(`Backend "${r.id}" capability target must be "${i}"`);let u=r.capabilities.find(f=>!f.evidence?.trim());if(u)throw new Error(`Backend "${r.id}" capability ${u.primitive}/${u.feature}/${u.operation} must declare evidence`);for(let{primitive:f,feature:p,operation:m}of sF)if(!r.capabilities.some(y=>y.primitive===f&&y.feature===p&&y.operation===m))throw new Error(`Backend "${r.id}" must declare an evidenced essential ${f}/${p}/${m} capability`)}function xFt(r){let i=["target","primitive","feature","operation","realization","evidence","diagnostic"];return Object.freeze(r.map(s=>{let u=(typeof s=="object"||typeof s=="function")&&s!==null?s:void 0,f=u?{...u}:{};if(u)for(let p of i)Object.prototype.hasOwnProperty.call(f,p)||(f[p]=Reflect.get(u,p));return Object.freeze(f)}))}function Ice(r,i,s){return Object.prototype.hasOwnProperty.call(r,s)?r[s]:Reflect.get(i,s)}function EIn(r){if(typeof r!="object"&&typeof r!="function"||r===null)throw new TypeError("registerBackend requires a backend object");let i=r,s={...i},c=Ice(s,i,"id");if(typeof c!="string")throw new TypeError("registerBackend id must be a string");let u=Ice(s,i,"capabilities");if(!Array.isArray(u))throw new Error(`Backend "${c}" must declare capability claims`);let f=Ice(s,i,"drawNode"),p=Ice(s,i,"render"),m={...s,id:c,capabilities:xFt(u),drawNode(y,x){return f.call(m,y,x)},render(y,x){return p.call(m,QH(y),x)}};return Object.freeze(m)}function CIn(r){let i=r;return i.capabilities=xFt(r.capabilities),Object.freeze(r)}function AFt(r,i){pOe(),OI="<unread>";try{if(!i||typeof i!="object")throw new TypeError("registerBackend options with explicit core and Scene compatibility ranges are required");let s=EIn(r),c=s.id;OI=c;let u=my(c);if(!u||u.kind!=="backend")throw new Error(`registerBackend id "${c}" must use the "backend:" namespace`);let f=yFt(c,i);iF(f,"core"),iF(f,"scene"),wFt(s,c);let p=XH(s,c);if(!p.passed){let y=p.checks.filter(x=>!x.passed).map(x=>`${x.id}${x.diagnostic?`: ${x.diagnostic}`:""}`);throw new Error(`Backend "${c}" failed registration SVG conformance: ${y.join("; ")}`)}EN(x6,{identity:f,value:s}),$ce.set(c,p);let m=x6.get(c);return()=>{pOe(),x6.get(c)===m&&(x6.delete(c),$ce.delete(c))}}finally{OI=null}}function vFt(r){pOe(),OI="<built-in>";try{let i=r.id,s=SN("backend",i);OI=s;let c=mOe.get(i);if(c!==void 0)throw new Error(`Backend input name "${i}" already selects "${c}"`);wFt(r,s);let u=CIn(r),f=XH(u,s);if(!f.passed){let p=f.checks.filter(m=>!m.passed).map(m=>`${m.id}${m.diagnostic?`: ${m.diagnostic}`:""}`);throw new Error(`Built-in backend "${i}" failed registration SVG conformance: ${p.join("; ")}`)}EN(x6,{identity:yFt(s,{version:bFt,compatibility:vIn,provenance:kIn}),value:u}),$ce.set(s,f),mOe.set(i,s)}finally{OI=null}}function yOe(){return Object.freeze(Array.from(x6.values(),({identity:r,value:i})=>Object.freeze({identity:r,backend:i,inputName:Array.from(mOe.entries()).find(([,s])=>s===r.id)?.[0]??r.id,conformance:$ce.get(r.id)})))}function mFt(r,i){return r.find(s=>s.identity.id===i||s.inputName===i)}function wOe(r,i){let s=yOe(),c=mFt(s,r);if(!i)return c;let u=i.selectBackend(Object.freeze({requestedId:r,...c?{canonicalId:c.identity.id}:{},registered:s}));if(u!==null)return typeof u=="string"?mFt(s,u):c}function kFt(r,i){return wOe(r,i)?.backend}var MIn=Object.freeze({book:Object.freeze(["M3 5.5C6 4.5 9 4.8 12 6V20C9 18.8 6 18.5 3 19.5Z","M21 5.5C18 4.5 15 4.8 12 6V20C15 18.8 18 18.5 21 19.5Z"]),skull:Object.freeze(["M5 11A7 7 0 1 1 19 11C19 15 17 17 15 18V21H9V18C7 17 5 15 5 11Z","M8 11A1.5 1.5 0 1 0 11 11A1.5 1.5 0 1 0 8 11ZM13 11A1.5 1.5 0 1 0 16 11A1.5 1.5 0 1 0 13 11Z","M10 17V20M12 17V20M14 17V20"])});function Pce(r){let c=(r.trim().toLowerCase().split(/\s+/).filter(Boolean).findLast(m=>!["fa","fas","far","fab","mdi"].includes(m))??"").replace(/^(?:fa-|mdi-)/,""),f=MIn[c==="book-open"?"book":c==="skull-outline"?"skull":c];if(f)return{viewBox:"0 0 24 24",paths:f,source:"bundled-symbol"};let p=_2(r)??_2(`mdi:${c}`);return p?{viewBox:p.viewBox,paths:[p.path],source:p.source}:null}function AOe(r){let{positioned:i,colors:s,resolved:c}=r,u=c.renderOptions,f=s.font??"Inter",p=u.transparent??!1,m=[],y=c.familyAppearance?.visual??u.stateVisual,x=Gi(u,y?.styleDefaults,c.styleFace);m.push(Za({id:"prelude",width:i.width,height:i.height,colors:s,transparent:p,font:f,hasMonoFont:!1},Ka(i.width,i.height,s,p)+`
|
|
296
296
|
`+Xa(f,!1,s.shadow,s.embedFontImport)));let v=[];v.push("<defs>");let S=Rl(s);S&&v.push(S);let E=new Set;x.edgeStrokeColor&&E.add(x.edgeStrokeColor);let M=!1,R=!1;for(let L of i.edges)L.inlineStyle?.stroke&&E.add(L.inlineStyle.stroke),(L.startMarker==="circle"||L.endMarker==="circle")&&(M=!0),(L.startMarker==="cross"||L.endMarker==="cross")&&(R=!0);let P=TIn(E,M,R);v.splice(1,0,vm(P)),v.push("</defs>"),m.push(Ad({id:"defs",markerResources:P},v.join(`
|
|
297
297
|
`)));for(let L of i.groups)m.push(xOe(L,f,x));let N=new Map,F=new Map;for(let L of i.edges){if(L.points.length<2)continue;let _=`${L.source}->${L.target}`,j=N.get(_)??0;N.set(_,j+1);let z=`edge:${_}#${j}`;F.set(L,z),m.push(RIn(L,x,z,P))}for(let L of i.edges){let _=F.get(L);L.label&&_&&m.push(OIn(L,f,x,PFt(_)))}for(let L of i.nodes)m.push(LIn(L,f,x,u.security!=="strict"));for(let L of i.notes??[])m.push($In(L,f,x));return m.push(Qa()),{family:"flowchart",width:i.width,height:i.height,colors:s,transparent:p,parts:m}}function SFt(r){let i=Ay.width,s=Ay.height,c=i-1,u=r??"var(--_arrow)",f=r?`-${Nce(r)}`:"",p={fill:u,stroke:u,strokeWidth:"0.75",strokeLinejoin:"round"};return[{id:`arrowhead${f}`,shape:"arrow",size:{width:i,height:s},ref:{x:c,y:s/2},orient:"auto",geometry:{kind:"polygon",points:[{x:0,y:0},{x:i,y:s/2},{x:0,y:s}]},paint:p},{id:`arrowhead-start${f}`,shape:"arrow",size:{width:i,height:s},ref:{x:1,y:s/2},orient:"auto",geometry:{kind:"polygon",points:[{x:i,y:0},{x:0,y:s/2},{x:i,y:s}]},paint:p}]}function EFt(r){let i=Ay.width,s=r?`-${Nce(r)}`:"",c=r??"var(--_arrow)",u=i/2-.75,f={shape:"circle",size:{width:i,height:i},orient:"auto",geometry:{kind:"circle",cx:i/2,cy:i/2,r:u},paint:{fill:"none",stroke:c,strokeWidth:"1"}};return[{...f,id:`circlehead${s}`,ref:{x:i-.5,y:i/2}},{...f,id:`circlehead-start${s}`,ref:{x:.5,y:i/2}}]}function CFt(r){let i=Ay.width,s=r?`-${Nce(r)}`:"",c=r??"var(--_arrow)",u=1.25,f=u,p=i-u,m={shape:"cross",size:{width:i,height:i},orient:"auto",geometry:{kind:"compound",children:[{kind:"line",x1:f,y1:f,x2:p,y2:p},{kind:"line",x1:f,y1:p,x2:p,y2:f}]},paint:{stroke:c,strokeWidth:"1.25",strokeLinecap:"round"}};return[{...m,id:`crosshead${s}`,ref:{x:p,y:i/2}},{...m,id:`crosshead-start${s}`,ref:{x:u,y:i/2}}]}function TIn(r,i,s){let c=[...SFt()];i&&c.push(...EFt()),s&&c.push(...CFt());for(let u of r)c.push(...SFt(u)),i&&c.push(...EFt(u)),s&&c.push(...CFt(u));return c}function MFt(r){return r==="circle"?"circlehead":r==="cross"?"crosshead":"arrowhead"}function Nce(r){return r.replace(/[^a-zA-Z0-9]/g,i=>i.charCodeAt(0).toString(16))}function xOe(r,i,s,c){if(r.concurrencyRegion)return vo({id:`group:${r.id}`,role:"group",open:`<g class="concurrency-region" data-id="${Ke(r.id)}"${c?` data-parent-id="${Ke(c)}"`:""}>`,close:"</g>",children:r.children.map(M=>({indent:0,node:xOe(M,i,s,r.id)}))});let u=s.groupHeaderFontSize+16,f=[],p=`<g class="subgraph" data-id="${Ke(r.id)}" data-region="subgraph" data-label="${Ke(r.label)}"${c?` data-parent-id="${Ke(c)}"`:""}>`,m=s.groupFillColor??"var(--_group-fill)",y=s.groupBorderColor??"var(--_node-stroke)";f.push({indent:2,node:In({id:`group-rect:${r.id}`,role:"group",geometry:{kind:"rect",x:r.x,y:r.y,width:r.width,height:r.height,rx:s.groupCornerRadius,ry:s.groupCornerRadius},paint:{fill:m,stroke:y,strokeWidth:String(s.groupLineWidth)}},`<rect x="${r.x}" y="${r.y}" width="${r.width}" height="${r.height}" rx="${s.groupCornerRadius}" ry="${s.groupCornerRadius}" fill="${Ke(m)}" stroke="${Ke(y)}" stroke-width="${s.groupLineWidth}" />`)});let x=s.groupHeaderFillColor??"var(--_group-hdr)",v=OA(r.x,r.y,r.width,u,s.groupCornerRadius);f.push({indent:2,node:In({id:`group-header:${r.id}`,role:"group-header",geometry:{kind:"path",d:v},paint:{fill:x,stroke:y,strokeWidth:String(s.groupLineWidth)}},`<path d="${v}" fill="${Ke(x)}" stroke="${Ke(y)}" stroke-width="${s.groupLineWidth}" />`)});let S=nr(r.label,s.groupTextTransform),E=s.groupTextColor??"var(--_text-sec)";f.push({indent:2,node:Ar({id:`group-label:${r.id}`,role:"group-header",text:S,x:r.x+s.groupLabelPaddingX,y:r.y+u/2,fontSize:s.groupHeaderFontSize,anchor:"start",paint:{fill:E}},Yi(S,r.x+s.groupLabelPaddingX,r.y+u/2,s.groupHeaderFontSize,`font-size="${s.groupHeaderFontSize}" font-weight="${s.groupHeaderFontWeight}"${s.groupFont?` font-family="${Ke(s.groupFont)}"`:""}${s.groupLetterSpacing!==0?` letter-spacing="${s.groupLetterSpacing}"`:""} fill="${Ke(E)}"`))});for(let M of IIn(r,u))f.push({indent:2,node:In({id:`region-separator:${r.id}:${M.index}`,role:"group",geometry:{kind:"line",x1:M.x1,y1:M.y1,x2:M.x2,y2:M.y2},paint:{stroke:y,strokeWidth:String(s.groupLineWidth),strokeDasharray:"6 4"}},`<line class="region-separator" x1="${M.x1}" y1="${M.y1}" x2="${M.x2}" y2="${M.y2}" stroke="${Ke(y)}" stroke-width="${s.groupLineWidth}" stroke-dasharray="6 4" />`)});for(let M of r.children)f.push({indent:0,node:xOe(M,i,s,r.id)});return vo({id:`group:${r.id}`,role:"group",open:p,close:"</g>",children:f})}function IIn(r,i){let s=r.children.filter(y=>y.concurrencyRegion);if(s.length<2)return[];let c=y=>Math.max(...s.map(y))-Math.min(...s.map(y)),u=c(y=>y.x+y.width/2)>=c(y=>y.y+y.height/2),f=[...s].sort((y,x)=>u?y.x-x.x:y.y-x.y),p=4,m=[];for(let y=1;y<f.length;y++){let x=f[y-1],v=f[y];if(u){let S=(x.x+x.width+v.x)/2;m.push({index:y-1,x1:S,y1:r.y+i+p,x2:S,y2:r.y+r.height-p})}else{let S=(x.y+x.height+v.y)/2;m.push({index:y-1,x1:r.x+p,y1:S,x2:r.x+r.width-p,y2:S})}}return m}function $In(r,i,s){let{x:c,y:u,width:f,height:p}=r,m=s.groupHeaderFillColor??"var(--_group-hdr)",y=s.groupBorderColor??"var(--_node-stroke)",x=s.edgeTextColor??"var(--_text-sec)",v=nr(r.text,s.nodeTextTransform),S=`state-note:${r.id}`;return vo({id:S,role:"note",open:`<g class="state-note" data-id="${Ke(r.id)}" data-target="${Ke(r.target)}" data-side="${r.side}">`,close:"</g>",children:[{indent:2,node:In({id:`${S}:rect`,role:"note",geometry:{kind:"rect",x:c,y:u,width:f,height:p,rx:4,ry:4},paint:{fill:m,stroke:y,strokeWidth:String(Ao.innerBox)}},`<rect x="${c}" y="${u}" width="${f}" height="${p}" rx="4" ry="4" fill="${Ke(m)}" stroke="${Ke(y)}" stroke-width="${Ao.innerBox}" />`)},{indent:2,node:Ar({id:`${S}:text`,role:"label",text:v,x:c+f/2,y:u+p/2,fontSize:s.edgeLabelFontSize,anchor:"middle",paint:{fill:x}},Yi(v,c+f/2,u+p/2,s.edgeLabelFontSize,`text-anchor="middle" font-size="${s.edgeLabelFontSize}" font-weight="${s.edgeLabelFontWeight}"${s.edgeLetterSpacing!==0?` letter-spacing="${s.edgeLetterSpacing}"`:""} fill="${Ke(x)}"`))}]})}function RIn(r,i,s,c){let u=r.style==="dotted"?"dotted":r.style==="thick"?"thick":r.style==="invisible"?"invisible":"solid",f=PFt(s),p=r.labelPosition??LFt(r.points),m=i.edgeTextColor??"var(--_text-sec)",y=r.label?[{id:`${s}:label`,text:r.label,anchor:p,paint:{fill:m},fontSize:i.edgeLabelFontSize,textAnchor:"middle",visual:{kind:"companion",markId:`${f}:text`}}]:[],x={identity:{id:r.id??s},endpoints:{from:r.source,to:r.target},relationship:{kind:"flowchart-edge",direction:r.source===r.target?"self":r.hasArrowStart&&r.hasArrowEnd?"bidirectional":r.hasArrowStart?"reverse":r.hasArrowEnd?"forward":"undirected"},route:{ownership:"layout",bendRadius:i.edgeBendRadius,labelAnchors:r.labelPosition?[r.labelPosition]:[]},labels:y};if(r.style==="invisible")return Zo({id:s,role:"edge",geometry:{kind:"polyline",points:r.points},lineStyle:"invisible",paint:{},...x},"");let v=r.curve?PIn(r.points):i.edgeBendRadius>0?OE(r.points,i.edgeBendRadius,{precision:3}):void 0,S=v?.geometry.d??NIn(r.points),E=r.style==="dotted"?`${ZF.dash} ${ZF.gap}`:r.animate?"8 4":void 0,M=E?` stroke-dasharray="${E}"`:"",R=r.style==="thick"?i.lineWidth*2:i.lineWidth,P=r.inlineStyle?.stroke??i.edgeStrokeColor,N=Ke(P??"var(--_line)"),F=Ke(r.inlineStyle?.["stroke-width"]??String(R)),L=P?`-${Nce(P)}`:"",_="",j,z;if(r.hasArrowEnd){let V=MFt(r.endMarker??"arrow");if(j=c.find(H=>H.id===`${V}${L}`),!j)throw new Error(`Missing marker resource "${V}${L}"`);_+=` marker-end="url(#${V}${L})"`}if(r.hasArrowStart){let V=MFt(r.startMarker??"arrow");if(z=c.find(H=>H.id===`${V}-start${L}`),!z)throw new Error(`Missing marker resource "${V}-start${L}"`);_+=` marker-start="url(#${V}-start${L})"`}let W=['class="edge"',...r.id?[`data-id="${Ke(r.id)}"`]:[],`data-from="${Ke(r.source)}"`,`data-to="${Ke(r.target)}"`,`data-style="${r.style}"`,`data-arrow-start="${r.hasArrowStart}"`,`data-arrow-end="${r.hasArrowEnd}"`];r.hasArrowStart&&W.push(`data-marker-start="${r.startMarker??"arrow"}"`),r.hasArrowEnd&&W.push(`data-marker-end="${r.endMarker??"arrow"}"`),r.label&&W.push(`data-label="${Ke(r.label)}"`),r.curve&&W.push(`data-curve="${Ke(r.curve)}"`),r.animate&&W.push('data-animate="true"',`data-animation="${r.animation??"slow"}"`);let Z={stroke:P??"var(--_line)",strokeWidth:r.inlineStyle?.["stroke-width"]??String(R),...E?{strokeDasharray:E}:{}};if(i.edgeBendRadius>0||r.curve){if(!v)throw new Error(`Missing path projection for flowchart edge "${s}"`);return Zo({id:s,role:"edge",geometry:v.geometry,lineStyle:u,paint:Z,markers:{...z?{start:z}:{},mid:[],...j?{end:j}:{}},...x,route:{...x.route,contours:v.contours}},`<path ${W.join(" ")} d="${S}" fill="none" stroke="${N}" stroke-width="${F}"${M}${_} />`)}return Zo({id:s,role:"edge",geometry:{kind:"polyline",points:r.points},lineStyle:u,paint:Z,markers:{...z?{start:z}:{},mid:[],...j?{end:j}:{}},...x},`<polyline ${W.join(" ")} points="${S}" fill="none" stroke="${N}" stroke-width="${F}"${M}${_} />`)}function PFt(r){return r.startsWith("edge:")?`edge-label:${r.slice(5)}`:`${r}:label`}function PIn(r){let i=r[0],s=`M ${i.x} ${i.y}`,c=[];for(let u=1;u<r.length;u++){let f=r[u-1],p=r[u],m=(f.x+p.x)/2;s+=` C ${m} ${f.y}, ${m} ${p.y}, ${p.x} ${p.y}`,c.push({kind:"cubic",control1:{x:m,y:f.y},control2:{x:m,y:p.y},end:p})}return II(s,i,c)}function NIn(r){return r.map(i=>`${i.x},${i.y}`).join(" ")}function NFt(r){let i=/<((?:[A-Za-z_][\w.-]*:)?(?:style|text|title|desc|metadata))\b[\s\S]*?<\/\1>/gi,s=[],c=0,u;for(;(u=i.exec(r))!==null;)u.index>c&&s.push({kind:"plain",text:r.slice(c,u.index)}),s.push({kind:"protected",text:u[0]}),c=u.index+u[0].length;return c<r.length&&s.push({kind:"plain",text:r.slice(c)}),s.map(f=>f.kind==="protected"?f.text:f.text.replace(/>\s*\r?\n\s*</g,"><")).join("")}function OFt(r,i){if(!/^[A-Za-z0-9_.:-]+$/.test(i))throw new Error("idPrefix must be non-empty and contain only ASCII letters, digits, underscore, hyphen, dot, and colon");let s=new Set;for(let f of LH(r))for(let p of f.attributes)p.name==="id"&&s.add(p.value);let c=f=>f.startsWith(i)?f:`${i}${f}`,u=a6(r,f=>{if(f.name==="id")return c(f.value);if(f.name==="aria-labelledby"||f.name==="aria-describedby")return f.value.split(/\s+/).map(p=>s.has(p)?c(p):p).join(" ");if((f.name==="href"||f.name==="xlink:href")&&f.value.startsWith("#")){let p=f.value.slice(1);return s.has(p)?`#${c(p)}`:f.value}});return c6(u,f=>f.replace(/url\(#([^)]+)\)/g,(p,m)=>s.has(m)?`url(#${c(m)})`:p))}function OIn(r,i,s,c){let u=r.labelPosition??LFt(r.points),f=nr(r.label,s.edgeTextTransform),p=8,m=r.style==="thick"?s.lineWidth*2:s.lineWidth,y=p+Math.max(4,m*2),x=Bi(f,s.edgeLabelFontSize,s.edgeLabelFontWeight),v=x.width+y*2,S=x.height+y*2,E=u.x-v/2,M=u.y-S/2,R=In({id:`${c}:halo`,role:"chrome",geometry:{kind:"rect",x:E,y:M,width:v,height:S,rx:4,ry:4},paint:{fill:"var(--bg)",stroke:"none"}},`<rect class="edge-label-halo" x="${E}" y="${M}" width="${v}" height="${S}" rx="4" ry="4" fill="var(--bg)" stroke="none" />`),P=s.edgeTextColor??"var(--_text-sec)",N=Ar({id:`${c}:text`,role:"label",text:f,x:u.x,y:u.y,fontSize:s.edgeLabelFontSize,anchor:"middle",paint:{fill:P}},zoe(f,u.x,u.y,x.width,x.height,s.edgeLabelFontSize,p,`text-anchor="middle" font-size="${s.edgeLabelFontSize}" font-weight="${s.edgeLabelFontWeight}"${s.edgeLetterSpacing!==0?` letter-spacing="${s.edgeLetterSpacing}"`:""} fill="${Ke(P)}"`,'rx="2" ry="2" fill="var(--bg)" stroke="var(--_inner-stroke)" stroke-width="1"'));return vo({id:c,role:"edge-label",open:`<g class="edge-label" data-from="${Ke(r.source)}" data-to="${Ke(r.target)}" data-label="${Ke(r.label)}">`,close:"</g>",children:[{indent:2,node:R},{indent:2,node:N}]})}function LFt(r){if(r.length===0)return{x:0,y:0};if(r.length===1)return r[0];let i=0;for(let c=1;c<r.length;c++)i+=TFt(r[c-1],r[c]);let s=i/2;for(let c=1;c<r.length;c++){let u=TFt(r[c-1],r[c]);if(s<=u){let f=s/u;return{x:r[c-1].x+f*(r[c].x-r[c-1].x),y:r[c-1].y+f*(r[c].y-r[c-1].y)}}s-=u}return r[r.length-1]}function TFt(r,i){return Math.sqrt((i.x-r.x)**2+(i.y-r.y)**2)}function LIn(r,i,s,c){let u=_In(r,s),f=ZIn(r,i,s),m=["node",...(r.classNames??[]).map(M=>M.replace(/[^A-Za-z0-9_-]/g,"")).filter(Boolean)].join(" "),y=r.shape==="state-start"?{status:"start"}:r.shape==="state-end"?{status:"end"}:void 0,x=[{indent:2,node:u}],v=FIn(r,s);v&&x.push({indent:2,node:v}),f&&x.push({indent:2,node:f});let S=r.semanticShape?` data-semantic-shape="${Ke(r.semanticShape)}"`:"",E=c&&r.href?` data-href="${Ke(r.href)}" role="link" tabindex="0"`:"";return vo({id:`node:${r.id}`,role:"node",open:`<g class="${m}" data-id="${Ke(r.id)}" data-label="${Ke(r.label)}" data-shape="${r.shape}"${S}${E}>`,close:"</g>",children:x,channels:y})}function DIn(r,i,s,c){let{x:u,y:f,width:p,height:m}=r,y=u+p,x=f+m,v=u+p/2,S=f+m/2,E=(R,P="")=>({geometry:{kind:"path",d:R},crisp:`<path d="${R}" fill="${P.includes('fill="none"')?"none":i}" stroke="${s}" stroke-width="${c}" />`}),M=R=>({geometry:{kind:"polygon",points:R},crisp:`<polygon points="${R.map(P=>`${P.x},${P.y}`).join(" ")}" fill="${i}" stroke="${s}" stroke-width="${c}" />`});switch(r.semanticShape){case"bang":{let R=Array.from({length:16},(P,N)=>{let F=-Math.PI/2+N*Math.PI/8,L=N%2===0?1:.62;return{x:v+Math.cos(F)*p/2*L,y:S+Math.sin(F)*m/2*L}});return M(R)}case"notch-rect":return M([{x:u+10,y:f},{x:y,y:f},{x:y,y:x},{x:u,y:x},{x:u,y:f+10}]);case"cloud":return E(`M${u+p*.18} ${x}C${u-4} ${x} ${u-4} ${S} ${u+p*.12} ${S}C${u+p*.08} ${f+m*.15} ${u+p*.38} ${f-4} ${u+p*.48} ${f+m*.18}C${u+p*.65} ${f-5} ${y} ${f+m*.16} ${u+p*.88} ${S}C${y+5} ${S} ${y+5} ${x} ${u+p*.72} ${x}Z`);case"hourglass":return M([{x:u,y:f},{x:y,y:f},{x:u+p*.62,y:S},{x:y,y:x},{x:u,y:x},{x:u+p*.38,y:S}]);case"bolt":return M([{x:u+p*.55,y:f},{x:u+p*.25,y:S},{x:u+p*.48,y:S},{x:u+p*.35,y:x},{x:u+p*.78,y:f+m*.4},{x:u+p*.55,y:f+m*.4}]);case"brace":return E(`M${y} ${f}C${u+p*.4} ${f} ${u+p*.7} ${S} ${u} ${S}C${u+p*.7} ${S} ${u+p*.4} ${x} ${y} ${x}`,' fill="none"');case"brace-r":return E(`M${u} ${f}C${u+p*.6} ${f} ${u+p*.3} ${S} ${y} ${S}C${u+p*.3} ${S} ${u+p*.6} ${x} ${u} ${x}`,' fill="none"');case"braces":return E(`M${u+p*.25} ${f}C${u} ${f} ${u+p*.15} ${S} ${u} ${S}C${u+p*.15} ${S} ${u} ${x} ${u+p*.25} ${x}M${u+p*.75} ${f}C${y} ${f} ${u+p*.85} ${S} ${y} ${S}C${u+p*.85} ${S} ${y} ${x} ${u+p*.75} ${x}`,' fill="none"');case"datastore":return E(`M${u+8} ${f}H${y}V${x}H${u+8}M${u+8} ${f}C${u-2} ${f+m*.2} ${u-2} ${x-m*.2} ${u+8} ${x}`,' fill="none"');case"delay":return E(`M${u} ${f}H${y-m/2}A${m/2} ${m/2} 0 0 1 ${y-m/2} ${x}H${u}Z`);case"h-cyl":return E(`M${u+10} ${f}H${y-10}A10 ${m/2} 0 0 1 ${y-10} ${x}H${u+10}A10 ${m/2} 0 0 1 ${u+10} ${f}Z M${y-10} ${f}A10 ${m/2} 0 0 0 ${y-10} ${x}`);case"lin-cyl":return E(`M${u} ${f+8}A${p/2} 8 0 0 1 ${y} ${f+8}V${x-8}A${p/2} 8 0 0 1 ${u} ${x-8}Z M${u} ${f+8}A${p/2} 8 0 0 0 ${y} ${f+8}M${u} ${x-16}A${p/2} 8 0 0 0 ${y} ${x-16}`);case"curv-trap":return E(`M${u+12} ${f}Q${v} ${f+8} ${y-12} ${f}L${y} ${x}Q${v} ${x-8} ${u} ${x}Z`);case"div-rect":return E(`M${u} ${f}H${y}V${x}H${u}ZM${u} ${S}H${y}`);case"doc":return E(`M${u} ${f}H${y}V${x-8}Q${u+p*.75} ${x+2} ${v} ${x-8}Q${u+p*.25} ${x-18} ${u} ${x-8}Z`);case"tri":return M([{x:v,y:f},{x:y,y:x},{x:u,y:x}]);case"fork":return{geometry:{kind:"rect",x:u,y:S-4,width:p,height:8},crisp:`<rect x="${u}" y="${S-4}" width="${p}" height="8" fill="${s}" stroke="${s}" stroke-width="${c}" />`};case"win-pane":return E(`M${u} ${f}H${y}V${x}H${u}ZM${u+p*.28} ${f}V${x}M${u} ${f+m*.32}H${y}`);case"f-circ":return{geometry:{kind:"circle",cx:v,cy:S,r:Math.min(p,m)/2},crisp:`<circle cx="${v}" cy="${S}" r="${Math.min(p,m)/2}" fill="${s}" stroke="${s}" stroke-width="${c}" />`};case"lin-doc":return E(`M${u} ${f}H${y}V${x-8}Q${u+p*.75} ${x+2} ${v} ${x-8}Q${u+p*.25} ${x-18} ${u} ${x-8}ZM${u+8} ${f+8}H${y-8}`);case"lin-rect":return E(`M${u} ${f}H${y}V${x}H${u}ZM${u+6} ${f}V${x}M${y-6} ${f}V${x}`);case"notch-pent":return M([{x:u,y:f},{x:y-10,y:f},{x:y,y:S},{x:y-10,y:x},{x:u,y:x},{x:u+8,y:S}]);case"flip-tri":return M([{x:u,y:f},{x:y,y:f},{x:v,y:x}]);case"docs":return E(`M${u+8} ${f}H${y}V${x-8}Q${u+p*.7} ${x} ${u+p*.45} ${x-8}Q${u+p*.22} ${x-16} ${u+8} ${x-8}ZM${u} ${f+8}H${u+8}M${u} ${f+8}V${x}`);case"st-rect":return E(`M${u+8} ${f}H${y}V${x-8}H${u+8}ZM${u} ${f+8}H${y-8}V${x}H${u}Z`);case"flag":return E(`M${u} ${f+6}Q${u+p*.25} ${f-4} ${v} ${f+6}Q${u+p*.75} ${f+16} ${y} ${f+6}V${x-6}Q${u+p*.75} ${x+4} ${v} ${x-6}Q${u+p*.25} ${x-16} ${u} ${x-6}Z`);case"sm-circ":return{geometry:{kind:"circle",cx:v,cy:S,r:Math.min(p,m)*.22},crisp:`<circle cx="${v}" cy="${S}" r="${Math.min(p,m)*.22}" fill="${i}" stroke="${s}" stroke-width="${c}" />`};case"cross-circ":return E(`M${v} ${f}A${p/2} ${m/2} 0 1 1 ${v-.01} ${f}M${u+p*.28} ${f+m*.28}L${u+p*.72} ${f+m*.72}M${u+p*.72} ${f+m*.28}L${u+p*.28} ${f+m*.72}`);case"bow-rect":return E(`M${u} ${f}Q${u+12} ${S} ${u} ${x}H${y}Q${y-12} ${S} ${y} ${f}Z`);case"tag-doc":return E(`M${u+10} ${f}H${y}V${x-8}Q${u+p*.7} ${x} ${v} ${x-8}Q${u+p*.25} ${x-16} ${u} ${x-8}V${f+10}ZM${u} ${f+10}L${u+10} ${f}`);case"tag-rect":return M([{x:u+10,y:f},{x:y,y:f},{x:y,y:x},{x:u,y:x},{x:u,y:f+10}]);case"text":return{geometry:{kind:"path",d:`M${u} ${f}`},crisp:`<path d="M${u} ${f}" fill="none" stroke="none" />`};default:return null}}function FIn(r,i){let s=Ke(i.nodeTextColor??"var(--_text)"),c=Math.min(28,r.height*.4),u=r.x+r.width/2,f=r.y+6;if(r.icon){let p=Pce(r.icon);if(p){let y=c/24,x=p.paths.map(v=>`<path d="${v}"/>`).join("");return us({id:`node:${r.id}:icon`,role:"icon"},`<g class="flowchart-icon" data-icon="${Ke(r.icon)}" transform="translate(${u-c/2} ${f}) scale(${y})" fill="${s}" stroke="${s}" stroke-width="0.8">${x}</g>`)}let m=r.icon.split(/[:/\s-]+/).filter(Boolean).at(-1)?.slice(0,2).toUpperCase()||"?";return Ar({id:`node:${r.id}:icon`,role:"icon",text:m,x:u,y:f+c/2,fontSize:10,anchor:"middle",paint:{fill:s}},`<text class="flowchart-icon-fallback" data-icon="${Ke(r.icon)}" x="${u}" y="${f+c/2}" text-anchor="middle" font-size="10" fill="${s}">${lr(m)}</text>`)}if(r.image){let p=u-c/2;return us({id:`node:${r.id}:image`,role:"icon"},`<g class="flowchart-image-placeholder" data-image-src="${Ke(r.image)}" fill="none" stroke="${s}" stroke-width="1.2"><rect x="${p}" y="${f}" width="${c}" height="${c*.72}" rx="2"/><circle cx="${p+c*.72}" cy="${f+c*.2}" r="${c*.08}"/><path d="M${p+2} ${f+c*.66}L${p+c*.36} ${f+c*.36}L${p+c*.52} ${f+c*.5}L${p+c*.7} ${f+c*.32}L${p+c-2} ${f+c*.66}"/></g>`)}return null}function _In(r,i){let{x:s,y:c,width:u,height:f,shape:p,inlineStyle:m}=r,y=m?.fill??i.nodeFillColor??"var(--_node-fill)",x=m?.stroke??i.nodeBorderColor??"var(--_node-stroke)",v=m?.["stroke-width"]??String(i.nodeLineWidth),S=Ke(y),E=Ke(x),M=Ke(v),R=(()=>{let N=DIn(r,S,E,M);if(N)return N;switch(p){case"service":return IFt(s,c,u,f,S,E,M,i.cornerRadius??0);case"diamond":return RFt(s,c,u,f,S,E,M);case"rounded":return jIn(s,c,u,f,S,E,M,i.cornerRadius??6);case"stadium":return BIn(s,c,u,f,S,E,M);case"circle":return $Ft(s,c,u,f,S,E,M);case"subroutine":return GIn(s,c,u,f,S,E,M,i.cornerRadius??0);case"doublecircle":return zIn(s,c,u,f,S,E,M);case"hexagon":return WIn(s,c,u,f,S,E,M);case"cylinder":return HIn(s,c,u,f,S,E,M);case"asymmetric":return UIn(s,c,u,f,S,E,M);case"trapezoid":return JIn(s,c,u,f,S,E,M);case"trapezoid-alt":return qIn(s,c,u,f,S,E,M);case"lean-r":return VIn(s,c,u,f,S,E,M);case"lean-l":return YIn(s,c,u,f,S,E,M);case"state-start":return XIn(s,c,u,f);case"state-end":return KIn(s,c,u,f);case"state-fork":case"state-join":return QIn(s,c,u,f);case"state-choice":return RFt(s,c,u,f,S,E,M);case"state-history":return $Ft(s,c,u,f,S,E,M);default:return IFt(s,c,u,f,S,E,M,i.cornerRadius??0)}})(),P=p==="state-start"||p==="state-fork"||p==="state-join"?{fill:"var(--_text)",stroke:"none"}:p==="state-end"?{fill:"var(--_text)",stroke:"var(--_text)"}:{fill:y,stroke:x,strokeWidth:v};return In({id:`node-shape:${r.id}`,role:"node",geometry:R.geometry,paint:P},R.crisp)}function IFt(r,i,s,c,u,f,p,m=0){return{geometry:{kind:"rect",x:r,y:i,width:s,height:c,rx:m,ry:m},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${m}" ry="${m}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function jIn(r,i,s,c,u,f,p,m=6){return{geometry:{kind:"rect",x:r,y:i,width:s,height:c,rx:m,ry:m},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${m}" ry="${m}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function BIn(r,i,s,c,u,f,p){let m=c/2;return{geometry:{kind:"rect",x:r,y:i,width:s,height:c,rx:m,ry:m},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${m}" ry="${m}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function $Ft(r,i,s,c,u,f,p){let m=r+s/2,y=i+c/2,x=Math.min(s,c)/2;return{geometry:{kind:"circle",cx:m,cy:y,r:x},crisp:`<circle cx="${m}" cy="${y}" r="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function RFt(r,i,s,c,u,f,p){let m=r+s/2,y=i+c/2,x=s/2,v=c/2,S=[{x:m,y:y-v},{x:m+x,y},{x:m,y:y+v},{x:m-x,y}],E=S.map(M=>`${M.x},${M.y}`).join(" ");return{geometry:{kind:"polygon",points:S},crisp:`<polygon points="${E}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function GIn(r,i,s,c,u,f,p,m=0){return{geometry:{kind:"compound",children:[{kind:"rect",x:r,y:i,width:s,height:c,rx:m,ry:m},{kind:"line",x1:r+8,y1:i,x2:r+8,y2:i+c},{kind:"line",x1:r+s-8,y1:i,x2:r+s-8,y2:i+c}]},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${m}" ry="${m}" fill="${u}" stroke="${f}" stroke-width="${p}" />
|
|
298
298
|
<line x1="${r+8}" y1="${i}" x2="${r+8}" y2="${i+c}" stroke="${f}" stroke-width="${p}" />
|
|
@@ -302,7 +302,7 @@ ${c}`:Eo(u)).join(`
|
|
|
302
302
|
<line x1="${r+s}" y1="${x}" x2="${r+s}" y2="${x+v}" stroke="${f}" stroke-width="${p}" />
|
|
303
303
|
<ellipse cx="${y}" cy="${i+c-7}" rx="${s/2}" ry="7" fill="${u}" stroke="${f}" stroke-width="${p}" />
|
|
304
304
|
<ellipse cx="${y}" cy="${x}" rx="${s/2}" ry="7" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function UIn(r,i,s,c,u,f,p){let y=[{x:r+12,y:i},{x:r+s,y:i},{x:r+s,y:i+c},{x:r+12,y:i+c},{x:r,y:i+c/2}],x=y.map(v=>`${v.x},${v.y}`).join(" ");return{geometry:{kind:"polygon",points:y},crisp:`<polygon points="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function JIn(r,i,s,c,u,f,p){let m=s*.15,y=[{x:r+m,y:i},{x:r+s-m,y:i},{x:r+s,y:i+c},{x:r,y:i+c}],x=y.map(v=>`${v.x},${v.y}`).join(" ");return{geometry:{kind:"polygon",points:y},crisp:`<polygon points="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function qIn(r,i,s,c,u,f,p){let m=s*.15,y=[{x:r,y:i},{x:r+s,y:i},{x:r+s-m,y:i+c},{x:r+m,y:i+c}],x=y.map(v=>`${v.x},${v.y}`).join(" ");return{geometry:{kind:"polygon",points:y},crisp:`<polygon points="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function VIn(r,i,s,c,u,f,p){let m=s*.15,y=[{x:r+m,y:i},{x:r+s,y:i},{x:r+s-m,y:i+c},{x:r,y:i+c}],x=y.map(v=>`${v.x},${v.y}`).join(" ");return{geometry:{kind:"polygon",points:y},crisp:`<polygon points="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function YIn(r,i,s,c,u,f,p){let m=s*.15,y=[{x:r,y:i},{x:r+s-m,y:i},{x:r+s,y:i+c},{x:r+m,y:i+c}],x=y.map(v=>`${v.x},${v.y}`).join(" ");return{geometry:{kind:"polygon",points:y},crisp:`<polygon points="${x}" fill="${u}" stroke="${f}" stroke-width="${p}" />`}}function XIn(r,i,s,c){let u=r+s/2,f=i+c/2,p=Math.min(s,c)/2-2;return{geometry:{kind:"circle",cx:u,cy:f,r:p},crisp:`<circle cx="${u}" cy="${f}" r="${p}" fill="var(--_text)" stroke="none" />`}}function KIn(r,i,s,c){let u=r+s/2,f=i+c/2,p=Math.min(s,c)/2-2,m=p-4;return{geometry:{kind:"compound",children:[{kind:"circle",cx:u,cy:f,r:p},{kind:"circle",cx:u,cy:f,r:m}]},crisp:`<circle cx="${u}" cy="${f}" r="${p}" fill="none" stroke="var(--_text)" stroke-width="${Ao.innerBox*2}" />
|
|
305
|
-
<circle cx="${u}" cy="${f}" r="${m}" fill="var(--_text)" stroke="none" />`}}function QIn(r,i,s,c){let u=Math.min(s,c)/2;return{geometry:{kind:"rect",x:r,y:i,width:s,height:c,rx:u,ry:u},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${u}" ry="${u}" fill="var(--_text)" stroke="none" />`}}function ZIn(r,i,s){if((r.shape==="state-start"||r.shape==="state-end"||r.shape==="state-fork"||r.shape==="state-join"||r.shape==="state-choice")&&!r.label)return null;let c=r.x+r.width/2,u=r.y+r.height/2,f=DDt(r.inlineStyle,s.nodeTextColor??"var(--_text)"),p=Ke(f),m=nr(r.label,s.nodeTextTransform);return Ar({id:`node-label:${r.id}`,role:"label",text:m,x:c,y:u,fontSize:s.nodeLabelFontSize,anchor:"middle",paint:{fill:f}},Yi(m,c,u,s.nodeLabelFontSize,`text-anchor="middle" font-size="${s.nodeLabelFontSize}" font-weight="${s.nodeLabelFontWeight}"${s.nodeLetterSpacing!==0?` letter-spacing="${s.nodeLetterSpacing}"`:""} fill="${p}"`))}var LI=1;function kOe(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))kOe(i);return Object.freeze(r)}var A6=kOe({bg:{description:"Diagram page background."},fg:{description:"Primary text and foreground paint."},line:{description:"Connector and secondary line paint."},accent:{description:"Accent paint for emphasis and data series."},muted:{description:"Muted text and secondary data paint."},surface:{description:"Node and group surface fill."},border:{description:"Node and group border paint."}}),v6=Object.freeze(["category"]),fO=kOe({formatVersion:{kind:"const",value:LI,group:"metadata",description:"Persisted wire-format version. Optional on input and normalized to 1 on output."},$schema:{kind:"string",group:"metadata",description:"Optional JSON Schema pointer for file-backed styles; ignored while rendering."},name:{kind:"string",group:"metadata",description:"Canonical look:name or palette:name identity; required only when registering a style."},blurb:{kind:"string",group:"metadata",description:"Short human-readable description used by discovery surfaces."},colors:{kind:"colors",group:"palette",description:"Partial palette of safe, non-fetching CSS color tokens."},font:{kind:"string",runtimeValidator:"safeCssFontFamily",group:"typography",description:"Safe, non-fetching CSS font family or stack; the rendering environment supplies the font face."},roles:{kind:"roles",group:"roles",description:"Partial semantic SceneRole defaults. Family-authored styling remains authoritative."},semanticSlots:{kind:"semanticSlots",group:"policy",description:"Named brand-neutral role-style slots selected by semantic bindings."},bindings:{kind:"bindings",group:"policy",description:"Ordered equality bindings from authored/domain meaning to semantic slots."},constraints:{kind:"constraints",group:"policy",description:"Closed inspect-only brand constraints with warn or error actions."},stroke:{kind:"enum",values:["crisp","jittered","freehand"],group:"stroke",description:"Stroke treatment; crisp is the default renderer."},roughness:{kind:"number",minimum:0,maximum:10,expected:"between 0 and 10",group:"stroke",description:"Rough.js stroke irregularity."},bowing:{kind:"number",minimum:0,maximum:10,expected:"between 0 and 10",group:"stroke",description:"Rough.js line bowing."},passes:{kind:"integer",minimum:1,maximum:8,expected:"an integer from 1 through 8",group:"stroke",description:"Number of sketch strokes; 1 is single-pass and 2 is the usual double stroke."},strokeWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",group:"stroke",description:"Base stroke width in SVG user units."},fill:{kind:"enum",values:["none","hachure","solid","wash"],group:"fill",description:"Fill policy for rough/hybrid rendering; none and solid require a final stack that activates one of those backends."},hachureAngle:{kind:"number",minimum:-360,maximum:360,expected:"between -360 and 360",group:"fill",description:"Hachure line angle in degrees; requires fill hachure in the final stack."},hachureGap:{kind:"number",exclusiveMinimum:0,maximum:100,expected:"greater than 0 and at most 100",group:"fill",description:"Gap between hachure lines; requires fill hachure in the final stack."},fillWeight:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",group:"fill",description:"Hachure line weight; requires fill hachure in the final stack."},washOpacity:{kind:"number",minimum:0,maximum:1,expected:"between 0 and 1",group:"fill",description:"Watercolor glaze opacity; requires fill wash in the final stack."},washEdge:{kind:"number",minimum:0,maximum:1,expected:"between 0 and 1",group:"fill",description:"Watercolor edge-darkening opacity; requires fill wash in the final stack."},backdrop:{kind:"enum",values:["plain","paper-ruled","grid"],group:"page",description:"Flat page furniture drawn behind the diagram."},intent:{kind:"enum",values:["premium","draft","lofi"],group:"advisory",description:"Advisory intent metadata for pickers and quality tooling."},mono:{kind:"boolean",group:"advisory",description:"Advisory monochrome contract: express tone through shading and weight."}});function hO(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function SOe(r,i){return!(typeof r!="number"||!Number.isFinite(r)||i.kind==="integer"&&!Number.isInteger(r)||i.minimum!==void 0&&r<i.minimum||i.exclusiveMinimum!==void 0&&r<=i.exclusiveMinimum||i.maximum!==void 0&&r>i.maximum)}var e$n=Object.freeze(["--bg","--fg","--_text","--_text-sec","--_text-muted","--_text-faint","--_line","--_arrow","--_node-fill","--_node-stroke","--_group-fill","--_group-hdr","--_inner-stroke","--_key-badge"]),t$n=new Set(e$n);function n$n(r){return typeof r!="string"||xg(r)===void 0?!1:[...r.matchAll(/var\(\s*(--[a-z0-9_-]+)/gi)].map(s=>s[1]).every(s=>t$n.has(s))}var EOe=new Map(tI.map(r=>[r.role,r])),_Ft=CN.map(r=>EOe.get(r)),r$n=new Set(pE),i$n=/^[A-Za-z][A-Za-z0-9._-]{0,63}$/,vOe=new Set(["__proto__","constructor","prototype"]);function jFt(r,i,s){if(!hO(r))return[`"${i}" must be an object`];let c=[];for(let[u,f]of Object.entries(r)){if(!Object.hasOwn(gE,u)){c.push(`unknown role style field "${i.slice(i.indexOf(".")+1)}.${u}"`);continue}if(s&&!s.has(u)){c.push(`role style field "${i}.${u}" is not applicable`);continue}let p=gE[u],m=`${i}.${u}`;f!==void 0&&(p.kind==="number"&&!SOe(f,p)?c.push(`"${m}" must be ${p.expected}`):p.kind==="font"&&(typeof f!="string"||NA(f)===void 0)?c.push(`"${m}" must be a safe non-fetching CSS font family or stack`):p.kind==="color"&&!n$n(f)?c.push(`"${m}" must be a safe non-fetching CSS paint`):p.kind==="enum"&&(typeof f!="string"||!p.values.includes(f))&&c.push(`"${m}" must be one of ${p.values.join(" | ")}`))}return c}function o$n(r){if(!hO(r))return['"roles" must be an object of SceneRole records'];let i=[];for(let[s,c]of Object.entries(r)){let u=EOe.get(s);if(!u){i.push(`unknown scene role "${s}"`);continue}if(u.traits.styleConsumption==="fallback-only"){i.push(`scene role "${s}" is fallback-only; set roles.${u.style.fallbackRole} instead`);continue}let f=new Set(u.style.applicableProperties),p=jFt(c,`roles.${s}`,f).map(m=>m===`"roles.${s}" must be an object`?m:m.replace(`role style field "roles.${s}.`,`role style field "${s}.`).replace('" is not applicable',`" is not applicable to ${s} roles`));i.push(...p)}return i}function BFt(r){return typeof r=="string"&&i$n.test(r)&&!vOe.has(r)}function s$n(r){if(!hO(r))return['"semanticSlots" must be an object of named role-style slots'];if(Object.keys(r).length>nl.maxItemsPerContainer)return[`"semanticSlots" must contain at most ${nl.maxItemsPerContainer} slots`];let i=[];for(let[s,c]of Object.entries(r)){if(!BFt(s)){i.push(`invalid semantic slot name "${s}"`);continue}i.push(...jFt(c,`semanticSlots.${s}`))}return i}function a$n(r){if(!Array.isArray(r))return['"bindings" must be an array'];if(r.length>nl.maxItemsPerContainer)return[`"bindings" must contain at most ${nl.maxItemsPerContainer} entries`];let i=[];return r.forEach((s,c)=>{let u=`bindings[${c}]`;if(!hO(s)){i.push(`"${u}" must be an object`);return}for(let f of Object.keys(s))["channel","value","slot","role"].includes(f)||i.push(`unknown binding field "${u}.${f}"`);(typeof s.channel!="string"||!v6.includes(s.channel))&&i.push(`"${u}.channel" must be one of ${v6.join(" | ")}`),(typeof s.value!="string"||s.value.length===0||s.value.length>256||/[\r\n\0]/.test(s.value))&&i.push(`"${u}.value" must be a non-empty single-line string of at most 256 characters`),BFt(s.slot)||i.push(`"${u}.slot" must be a valid semantic slot name`),s.role!==void 0&&!r$n.has(s.role)&&i.push(`"${u}.role" must be a SceneRole with an executable category-binding consumer (${pE.join(" | ")})`)}),i}function c$n(r){if(!Array.isArray(r))return['"constraints" must be an array'];if(r.length>nl.maxItemsPerContainer)return[`"constraints" must contain at most ${nl.maxItemsPerContainer} entries`];let i=[];return r.forEach((s,c)=>{let u=`constraints[${c}]`;if(!hO(s)){i.push(`"${u}" must be an object`);return}if(typeof s.kind!="string"||!nI.includes(s.kind)){i.push(`"${u}.kind" must be one of ${nI.join(" | ")}`);return}let f=s.kind,p=Poe(f),m=new Set(SPt(f));for(let y of Object.keys(s))m.has(y)||i.push(`unknown constraint field "${u}.${y}"`);s.action!=="warn"&&s.action!=="error"&&i.push(`"${u}.action" must be one of warn | error`);for(let[y,x]of Object.entries(p)){let v=s[y];if(v===void 0){x.required&&i.push(`"${u}.${y}" is required for ${f}`);continue}x.kind==="role"&&!EOe.has(v)?i.push(`"${u}.${y}" must be a registered built-in SceneRole`):x.kind==="number"&&!SOe(v,x)&&i.push(`"${u}.${y}" must be between ${x.minimum} and ${x.maximum}`)}}),i}function k6(r){if(!hO(r))return["style spec must be a plain object"];if(Object.keys(r).length>nl.maxItemsPerContainer)return[`style spec must contain at most ${nl.maxItemsPerContainer} fields`];let i=[];for(let[s,c]of Object.entries(r)){if(!Object.hasOwn(fO,s)){i.push(`unknown field "${s}"`);continue}let u=fO[s];if(c!==void 0)switch(u.kind){case"const":c!==u.value&&i.push(`"${s}" must be ${u.value}`);break;case"string":typeof c!="string"?i.push(`"${s}" must be a string`):u.runtimeValidator==="safeCssFontFamily"&&NA(c)===void 0&&i.push(`"${s}" must be a safe non-fetching CSS font family or stack`);break;case"boolean":typeof c!="boolean"&&i.push(`"${s}" must be a boolean`);break;case"number":case"integer":SOe(c,u)||i.push(`"${s}" must be ${u.expected}`);break;case"enum":(typeof c!="string"||!u.values.includes(c))&&i.push(`"${s}" must be one of ${u.values.join(" | ")}`);break;case"roles":i.push(...o$n(c));break;case"semanticSlots":i.push(...s$n(c));break;case"bindings":i.push(...a$n(c));break;case"constraints":i.push(...c$n(c));break;case"colors":{if(!hO(c)){i.push('"colors" must be an object of color tokens');break}for(let[f,p]of Object.entries(c))Object.hasOwn(A6,f)?p!==void 0&&typeof p!="string"?i.push(`color token "${f}" must be a string`):p!==void 0&&Ks(p)===void 0&&i.push(`color token "${f}" must be a safe non-fetching CSS color`):i.push(`unknown color token "${f}"`);break}}}return pH(i,"Style validation")}function l$n(){return Object.fromEntries(Object.entries(gE).map(([r,i])=>{if(i.kind==="number"){let s=i;return[r,{type:"number",...s.minimum!==void 0?{minimum:s.minimum}:{},...s.exclusiveMinimum!==void 0?{exclusiveMinimum:s.exclusiveMinimum}:{},...s.maximum!==void 0?{maximum:s.maximum}:{},description:s.description}]}return i.kind==="enum"?[r,{type:"string",enum:[...i.values],description:i.description}]:[r,{type:"string",description:i.description,"x-agentic-mermaid-runtime-validator":i.kind==="font"?"safeCssFontFamily":"safeStylePaint"}]}))}function DFt(r=Object.keys(gE)){let i=l$n();return{type:"object",additionalProperties:!1,maxProperties:r.length,properties:Object.fromEntries(r.map(s=>[s,i[s]]))}}function GFt(r){return`roleStyle-${r.role}`}var FFt="^[A-Za-z][A-Za-z0-9._-]{0,63}$";function u$n(r){switch(r.kind){case"const":return{const:r.value,description:r.description};case"string":return{type:"string",description:r.description,...r.runtimeValidator?{"x-agentic-mermaid-runtime-validator":r.runtimeValidator}:{}};case"boolean":return{type:"boolean",description:r.description};case"enum":return{type:"string",enum:[...r.values],description:r.description};case"number":case"integer":return{type:r.kind,...r.minimum!==void 0?{minimum:r.minimum}:{},...r.exclusiveMinimum!==void 0?{exclusiveMinimum:r.exclusiveMinimum}:{},...r.maximum!==void 0?{maximum:r.maximum}:{},description:r.description};case"roles":return{type:"object",additionalProperties:!1,description:r.description,properties:Object.fromEntries(_Ft.map(i=>[i.role,{$ref:`#/$defs/${GFt(i)}`}]))};case"semanticSlots":return{type:"object",description:r.description,maxProperties:nl.maxItemsPerContainer,propertyNames:{pattern:FFt,not:{enum:[...vOe]}},additionalProperties:{$ref:"#/$defs/roleStyle-any"}};case"bindings":return{type:"array",description:r.description,maxItems:nl.maxItemsPerContainer,items:{type:"object",additionalProperties:!1,maxProperties:4,required:["channel","value","slot"],properties:{channel:{type:"string",enum:[...v6]},value:{type:"string",minLength:1,maxLength:256,pattern:"^[^\\r\\n\\u0000]+$"},slot:{type:"string",pattern:FFt,not:{enum:[...vOe]}},role:{type:"string",enum:[...pE]}}}};case"constraints":{let i={type:"string",enum:["warn","error"]},s={type:"string",enum:tI.map(u=>u.role)},c=nI.map(u=>{let f=Poe(u),p=Object.fromEntries(Object.entries(f).map(([m,y])=>[m,y.kind==="role"?s:{type:"number",minimum:y.minimum,maximum:y.maximum}]));return{type:"object",additionalProperties:!1,required:[...EPt(u)],properties:{kind:{const:u},action:i,...p}}});return{type:"array",description:r.description,maxItems:nl.maxItemsPerContainer,items:{oneOf:c}}}case"colors":return{type:"object",additionalProperties:!1,maxProperties:Object.keys(A6).length,description:`${r.description} Runtime validation applies the stricter safe-color policy.`,properties:Object.fromEntries(Object.entries(A6).map(([i,s])=>[i,{type:"string",description:`${s.description} Must be a safe, non-fetching CSS color.`,"x-agentic-mermaid-runtime-validator":"safeCssColor"}]))}}}function ZH(){let r=Object.fromEntries(_Ft.map(i=>[GFt(i),DFt(i.style.applicableProperties)]));return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://agentic-mermaid.dev/schemas/style-spec.schema.json",title:"Agentic Mermaid StyleSpec",description:"A partial declarative style record for Agentic Mermaid rendering. All fields, including formatVersion, are optional on input; resolved and registered specs normalize formatVersion to 1.",type:"object",additionalProperties:!1,maxProperties:Object.keys(fO).length,properties:Object.fromEntries(Object.entries(fO).map(([i,s])=>[i,u$n(s)])),$defs:{...r,"roleStyle-any":DFt()}}}var zFt=Object.freeze([{id:"palette:paper",inputName:"paper",displayLabel:"Paper",colors:{bg:"#F5F0E4",fg:"#221E16",accent:"#9A4A24"}},{id:"palette:dusk",inputName:"dusk",displayLabel:"Dusk",colors:{bg:"#2A2521",fg:"#E9DFCC",accent:"#CC8A57"}},{id:"palette:zinc-light",inputName:"zinc-light",displayLabel:"Zinc Light",colors:{bg:"#FFFFFF",fg:"#27272A"}},{id:"palette:zinc-dark",inputName:"zinc-dark",displayLabel:"Zinc Dark",colors:{bg:"#18181B",fg:"#FAFAFA"}},{id:"palette:tokyo-night",inputName:"tokyo-night",displayLabel:"Tokyo Night",colors:{bg:"#1a1b26",fg:"#a9b1d6",line:"#3d59a1",accent:"#7aa2f7",muted:"#565f89"}},{id:"palette:tokyo-night-storm",inputName:"tokyo-night-storm",displayLabel:"Tokyo Night Storm",colors:{bg:"#24283b",fg:"#a9b1d6",line:"#3d59a1",accent:"#7aa2f7",muted:"#565f89"}},{id:"palette:tokyo-night-light",inputName:"tokyo-night-light",displayLabel:"Tokyo Night Light",colors:{bg:"#d5d6db",fg:"#343b58",line:"#34548a",accent:"#34548a",muted:"#9699a3"}},{id:"palette:catppuccin-mocha",inputName:"catppuccin-mocha",displayLabel:"Catppuccin Mocha",colors:{bg:"#1e1e2e",fg:"#cdd6f4",line:"#585b70",accent:"#cba6f7",muted:"#6c7086"}},{id:"palette:catppuccin-latte",inputName:"catppuccin-latte",displayLabel:"Catppuccin Latte",colors:{bg:"#eff1f5",fg:"#4c4f69",line:"#9ca0b0",accent:"#8839ef",muted:"#9ca0b0"}},{id:"palette:nord",inputName:"nord",displayLabel:"Nord",colors:{bg:"#2e3440",fg:"#d8dee9",line:"#4c566a",accent:"#88c0d0",muted:"#616e88"}},{id:"palette:nord-light",inputName:"nord-light",displayLabel:"Nord Light",colors:{bg:"#eceff4",fg:"#2e3440",line:"#aab1c0",accent:"#5e81ac",muted:"#7b88a1"}},{id:"palette:dracula",inputName:"dracula",displayLabel:"Dracula",colors:{bg:"#282a36",fg:"#f8f8f2",line:"#6272a4",accent:"#bd93f9",muted:"#6272a4"}},{id:"palette:github-light",inputName:"github-light",displayLabel:"GitHub Light",colors:{bg:"#ffffff",fg:"#1f2328",line:"#d1d9e0",accent:"#0969da",muted:"#59636e"}},{id:"palette:github-dark",inputName:"github-dark",displayLabel:"GitHub Dark",colors:{bg:"#0d1117",fg:"#e6edf3",line:"#3d444d",accent:"#4493f8",muted:"#9198a1"}},{id:"palette:solarized-light",inputName:"solarized-light",displayLabel:"Solarized Light",colors:{bg:"#fdf6e3",fg:"#657b83",line:"#93a1a1",accent:"#268bd2",muted:"#93a1a1"}},{id:"palette:solarized-dark",inputName:"solarized-dark",displayLabel:"Solarized Dark",colors:{bg:"#002b36",fg:"#839496",line:"#586e75",accent:"#268bd2",muted:"#586e75"}},{id:"palette:one-dark",inputName:"one-dark",displayLabel:"One Dark",colors:{bg:"#282c34",fg:"#abb2bf",line:"#4b5263",accent:"#c678dd",muted:"#5c6370"}},{id:"palette:salmon",inputName:"salmon",displayLabel:"Salmon",colors:{bg:"#FFFBF5",fg:"#521000",line:"#C9A88A",accent:"#FF4801",muted:"#85532E",surface:"#FFFDFB",border:"#D4B89E"}},{id:"palette:salmon-dark",inputName:"salmon-dark",displayLabel:"Salmon Dark",colors:{bg:"#1F1008",fg:"#F5DCC8",line:"#6B4A2E",accent:"#FF6B35",muted:"#A07858",surface:"#2A1810",border:"#5A3A22"}},{id:"palette:tufte-dark",inputName:"tufte-dark",displayLabel:"Tufte Dark",colors:{bg:"#1C1C1A",fg:"#E8E4DC",line:"#666660",accent:"#C87070",muted:"#908880",surface:"#2A2926",border:"#444440"}}]);var Oce=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),WFt=Object.freeze(["paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),Tkr=Object.freeze({text:Object.freeze({sourceRole:"label",fields:Oce}),node:Object.freeze({sourceRole:"node",fields:Object.freeze([...Oce,...WFt])}),edge:Object.freeze({sourceRole:"edge",fields:Object.freeze([...Oce,"lineWidth","bendRadius","strokeColor"])}),group:Object.freeze({sourceRole:"group",fields:Object.freeze([...Oce,...WFt,"fontFamily","headerFillColor"])})}),UFt="1.0.0",JFt=Object.freeze({core:"^0.3.0"}),d$n=Object.freeze({owner:"agentic-mermaid",source:"built-in",reference:"src/scene/style-registry.ts"}),f$n=Object.freeze({owner:"host",source:"in-process"}),LE=new Map,S6=new Map,COe=0;function qFt(){if(COe>0)throw new Error("Style registry mutation is forbidden while a Style input is undergoing admission")}function MOe(r){COe++;try{return r()}finally{COe--}}function VFt(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function YFt(r){let i=new WeakMap,s=new WeakSet,c=new Set(["__proto__","prototype","constructor"]),u=0,f=0,p=(m,y)=>{if(y>nl.maxDepth)throw new TypeError(`Style input exceeds maximum nesting depth ${nl.maxDepth}`);if(u++,u>nl.maxNodes)throw new TypeError(`Style input exceeds the ${nl.maxNodes}-node limit`);if(typeof m=="string"){if(f+=m.length,f>nl.maxAggregateTextCharacters)throw new TypeError(`Style input exceeds the ${nl.maxAggregateTextCharacters}-character text limit`);return m}if(typeof m!="object"||m===null)return m;if(s.has(m))throw new TypeError("Style input must be acyclic");let x=i.get(m);if(x!==void 0)return x;if(Array.isArray(m)){if(m.length>nl.maxItemsPerContainer)throw new TypeError(`Style array must contain at most ${nl.maxItemsPerContainer} items`);let E=[];i.set(m,E),s.add(m);for(let M=0;M<m.length;M++){if(!Object.prototype.hasOwnProperty.call(m,M))throw new TypeError("Style arrays must not be sparse");E.push(p(m[M],y+1))}return s.delete(m),Object.freeze(E)}if(!VFt(m))return m;let v=Object.entries(m);if(v.length>nl.maxItemsPerContainer)throw new TypeError(`Style object must contain at most ${nl.maxItemsPerContainer} properties`);let S=Object.create(null);i.set(m,S),s.add(m);for(let[E,M]of v){if(c.has(E))throw new TypeError(`Style input uses forbidden key "${E}"`);if(f+=E.length,f>nl.maxAggregateTextCharacters)throw new TypeError(`Style input exceeds the ${nl.maxAggregateTextCharacters}-character text limit`);Object.defineProperty(S,E,{value:p(M,y+1),enumerable:!0,writable:!1,configurable:!1})}return s.delete(m),Object.freeze(S)};return p(r,0)}function XFt(r){let i=YFt(r),s=k6(i);if(s.length)throw new Error(`Invalid style spec: ${s.join("; ")}`);return i}function h$n(r){let i=YFt(r);if(!VFt(i))throw new TypeError("registerStyle options must be a plain object");return i}function TOe(r){if(r)return Object.freeze(Object.fromEntries(Object.entries(r).map(([i,s])=>[i,Object.freeze({...s})])))}function IOe(r){if(r)return Object.freeze(Object.fromEntries(Object.entries(r).map(([i,s])=>[i,Object.freeze({...s})])))}function E6(r){return r?Object.freeze(r.map(i=>Object.freeze({...i}))):void 0}function eU(r){if(!r)return;let{displayLabel:i,...s}=r;return Object.freeze({...s,formatVersion:LI,...s.colors?{colors:Object.freeze({...s.colors})}:{},...s.roles?{roles:TOe(s.roles)}:{},...s.semanticSlots?{semanticSlots:IOe(s.semanticSlots)}:{},...s.bindings?{bindings:E6(s.bindings)}:{},...s.constraints?{constraints:E6(s.constraints)}:{}})}function g$n(r){return A$n(r)}function m$n(r,i,s){return gm({id:r,kind:i,version:s.version??UFt,compatibility:{...JFt,...s.compatibility},provenance:s.provenance??f$n})}function KFt(r,i,s,c){let u=r.name,f=Object.freeze({...r,formatVersion:LI,...r.colors?{colors:Object.freeze({...r.colors})}:{},...r.roles?{roles:TOe(r.roles)}:{},...r.semanticSlots?{semanticSlots:IOe(r.semanticSlots)}:{},...r.bindings?{bindings:E6(r.bindings)}:{},...r.constraints?{constraints:E6(r.constraints)}:{}}),p=m$n(u,i,s);if(EN(LE,{identity:p,value:f}),c!==void 0){let m=S6.get(c),y=LE.has(c)&&c!==u?c:void 0;if(m!==void 0||y!==void 0)throw LE.delete(u),new Error(`Style input name "${c}" already selects "${m??y}"`);S6.set(c,u)}return()=>{if(qFt(),LE.get(u)?.identity!==p)return!1;let y=LE.delete(u);return y&&c!==void 0&&S6.get(c)===u&&S6.delete(c),y}}function QFt(r,i={}){return qFt(),MOe(()=>{let s=XFt(r),c=h$n(i);if(!s.name)throw new Error("registerStyle requires a name (anonymous specs are for inline use)");let u=my(s.name);if(!u||u.kind!=="look"&&u.kind!=="palette")throw new Error(`registerStyle name "${s.name}" must use the "look:" or "palette:" namespace`);let f=g$n(s);if(u.kind!==f)throw new Error(`Style "${s.name}" is a ${f}; its name must use the "${f}:" namespace`);return KFt(s,f,c)})}function kg(r,i="look",s=r.name??""){if(!r.name)throw new Error("registerBuiltInStyle requires a name");let c=r.name,u=SN(i,c),f=k6(eU({...r,name:u}));if(f.length)throw new Error(`Invalid built-in style "${u}": ${f.join("; ")}`);KFt({...r,name:u},i,{version:UFt,compatibility:JFt,provenance:d$n},s)}function ZFt(r){return LE.has(r)?r:S6.get(r)}function tU(r){let i=ZFt(r);if(!i)return;let s=eU(LE.get(i)?.value);if(s)return Object.freeze({canonicalId:i,spec:s})}function e6t(r){return tU(r)?.spec}function $Oe(){return ROe().map(r=>r.inputName)}function ROe(){return Object.freeze(Array.from(LE.values(),({identity:r,value:i})=>{let s=Array.from(S6.entries()).find(([,f])=>f===r.id)?.[0]??r.id,c=r.id.slice(r.id.indexOf(":")+1),u=i.displayLabel??c.split("-").filter(Boolean).map(f=>f==="ops"?"OPS":f.charAt(0).toUpperCase()+f.slice(1)).join(" ");return Object.freeze({identity:r,spec:eU(i),inputName:s,displayLabel:u,kind:r.kind,isDefault:r.id==="look:crisp"})}))}function DE(r){return r.stroke==="freehand"||r.fill==="wash"?"hybrid":r.stroke==="jittered"||r.fill==="hachure"||r.backdrop!==void 0&&r.backdrop!=="plain"||r.roughness!==void 0||r.bowing!==void 0||r.passes!==void 0||r.hachureGap!==void 0||r.hachureAngle!==void 0||r.fillWeight!==void 0?"rough":"default"}function p$n(r,i){if(!r&&!i)return;let s={...r},c=s;for(let[u,f]of Object.entries(i??{}))f!==void 0&&(c[u]={...c[u],...f});return s}function b$n(r,i){if(!r&&!i)return;let s={...r};for(let[c,u]of Object.entries(i??{}))s[c]={...s[c],...u};return s}function HFt(r,i){if(!r&&!i)return;let s=[],c=new Set;for(let u of[...r??[],...i??[]]){let f=JSON.stringify(u);c.has(f)||(c.add(f),s.push(u))}return s}function t6t(r){if(r===void 0)return;let i=Array.isArray(r)?r:[r],s=[];for(let u of i)if(typeof u=="string"){let f=ZFt(u);if(f==="look:crisp")continue;let p=f?LE.get(f)?.value:void 0;if(!p)throw new Error(`Unknown style "${u}". Known styles: ${$Oe().join(", ")}`);s.push(p)}else s.push(XFt(u));if(s.length===0)return;let c={formatVersion:LI};for(let u of s)for(let[f,p]of Object.entries(u))if(p!==void 0)if(f==="colors"){let m={...c.colors};for(let[y,x]of Object.entries(u.colors??{}))x!==void 0&&(m[y]=x);c.colors=m}else f==="roles"?c.roles=p$n(c.roles,u.roles):f==="semanticSlots"?c.semanticSlots=b$n(c.semanticSlots,u.semanticSlots):f==="bindings"?c.bindings=HFt(c.bindings,u.bindings):f==="constraints"?c.constraints=HFt(c.constraints,u.constraints):c[f]=p;return c}function Lce(r){return MOe(()=>{let i=t6t(r);return i&&n6t(i),eU(i)})}function y$n(r){return r?{...r}:void 0}function w$n(r){let i=r.strokeWidth,s=r.roles?Object.fromEntries(Object.entries(r.roles).map(([p,m])=>[p,y$n(m)])):void 0,c={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.node},u={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.edge},f={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.group};if(!(!s&&!r.semanticSlots&&!r.bindings&&!r.constraints&&Object.keys(c).length===0&&Object.keys(u).length===0&&Object.keys(f).length===0))return{...s?{roles:TOe(s)}:{},...r.semanticSlots?{semanticSlots:IOe(r.semanticSlots)}:{},...r.bindings?{bindings:E6(r.bindings)}:{},...r.constraints?{constraints:E6(r.constraints)}:{},...s?.label?{text:{...s.label}}:{},...Object.keys(c).length?{node:c}:{},...Object.keys(u).length?{edge:u}:{},...Object.keys(f).length?{group:f}:{}}}function x$n(r,i){let s=i[r.channel];return Array.isArray(s)?s.includes(r.value):String(s??"")===r.value}function va(r,i,s={},c={}){let u=tI.find(v=>v.role===i),f=r?.roles,p=c.includeFallback===!1?void 0:u?f?.[u.style.fallbackRole]:void 0,m=f?.[i],y=p||m?{...p,...m}:void 0,x=new Set(u?.style.applicableProperties??[]);for(let v of r?.bindings??[]){if(v.role!==void 0&&v.role!==i||!x$n(v,s))continue;let S=r?.semanticSlots?.[v.slot];if(!S)continue;let E=Object.fromEntries(Object.entries(S).filter(([M])=>x.has(M)));y={...y,...E}}return y?Object.freeze(y):void 0}function n6t(r){for(let[f,p]of(r.bindings??[]).entries()){let m=r.semanticSlots?.[p.slot];if(!m)throw new Error(`Invalid style spec: binding ${f+1} references missing semantic slot "${p.slot}"`);let y=p.role===void 0?new Set(oF):new Set(tI.find(x=>x.role===p.role).style.applicableProperties);if(!Object.keys(m).some(x=>y.has(x)))throw new Error(p.role===void 0?`Invalid style spec: semantic slot "${p.slot}" has no field applicable to any executable category-binding role`:`Invalid style spec: semantic slot "${p.slot}" has no field applicable to role "${p.role}"`)}let s=["hachureAngle","hachureGap","fillWeight"].filter(f=>r[f]!==void 0&&r.fill!=="hachure");if(s.length>0)throw new Error(`Invalid style spec: ${s.map(f=>`"${f}"`).join(", ")} require fill "hachure" in the final Style stack`);let u=["washOpacity","washEdge"].filter(f=>r[f]!==void 0&&r.fill!=="wash");if(u.length>0)throw new Error(`Invalid style spec: ${u.map(f=>`"${f}"`).join(", ")} require fill "wash" in the final Style stack`);if(r.fill!==void 0&&DE(r)==="default")throw new Error('Invalid style spec: "fill" has no crisp/default backend projection; combine it with stroke "jittered"/"freehand" or another rough/hybrid backend field')}function r6t(r){return MOe(()=>{let i=t6t(r);if(i===void 0)return{};n6t(i);let s=eU(i),c=w$n(i);return{...s?{style:s}:{},...c?{face:c}:{}}})}function A$n(r){return Object.keys(r).every(i=>i==="formatVersion"||i==="$schema"||i==="name"||i==="blurb"||i==="colors")?"palette":"look"}function i6t(r){return DE(r)!=="default"||r.colors!==void 0||r.font!==void 0||r.strokeWidth!==void 0||r.roles!==void 0||r.semanticSlots!==void 0||r.bindings!==void 0||r.constraints!==void 0}kg({name:"crisp",displayLabel:"Crisp",blurb:"The default renderer with precise SVG geometry.",stroke:"crisp"},"look");for(let r of zFt){let{inputName:i,colors:s}=r;if(SN("palette",i)!==r.id)throw new Error(`Built-in palette identity mismatch: ${r.id}`);kg({name:i,displayLabel:r.displayLabel,blurb:`Palette: ${i}.`,colors:{bg:s.bg,fg:s.fg,line:s.line,accent:s.accent,muted:s.muted,surface:s.surface,border:s.border}},"palette",i)}kg({name:"hand-drawn",displayLabel:"Hand-drawn",blurb:"Black ink on ruled paper \u2014 wobbly double strokes, unfilled boxes.",intent:"draft",colors:{bg:"#f7f5ef",fg:"#1a1a1e",line:"#26262b",accent:"#26262b",border:"#26262b"},font:"Caveat",stroke:"jittered",roughness:1,bowing:1,passes:2,strokeWidth:1.8,fill:"none",backdrop:"paper-ruled",mono:!0});kg({name:"excalidraw",displayLabel:"Excalidraw",blurb:"Virtual whiteboard style \u2014 rough strokes, pastel hachure fills.",intent:"draft",colors:{bg:"#ffffff",fg:"#1e1e1e",line:"#1e1e1e",accent:"#4263eb",surface:"#f1f3f5"},font:"Caveat",stroke:"jittered",roughness:1.1,bowing:1.2,passes:2,strokeWidth:1.6,fill:"hachure",hachureAngle:-41,hachureGap:5.5,fillWeight:.9});kg({name:"pen-and-ink",displayLabel:"Pen & ink",blurb:"Fine single-pass linework on warm cream \u2014 no interior hatching.",intent:"premium",colors:{bg:"#faf6ec",fg:"#241f1a",line:"#2b241d",accent:"#2b241d",border:"#2b241d"},font:"EB Garamond",stroke:"jittered",roughness:.5,bowing:.6,passes:1,strokeWidth:1.5,fill:"none",mono:!0});kg({name:"freehand",displayLabel:"Freehand",blurb:"Pressure-sensitive marker ribbons \u2014 variable-width filled strokes.",intent:"draft",colors:{bg:"#fbfaf7",fg:"#16161a",line:"#1d1d22",accent:"#1d1d22",border:"#1d1d22"},font:"Architects Daughter",stroke:"freehand",roughness:.9,passes:1,strokeWidth:1.6,fill:"none",mono:!0});kg({name:"watercolor",displayLabel:"Watercolor",blurb:"Rough outlines over translucent glazes with pigment-pooled edges.",intent:"premium",colors:{bg:"#fdfbf6",fg:"#31302c",line:"#4d4a44",accent:"#7a6a52",surface:"#ead9b9",border:"#5a564e"},font:"Caveat",stroke:"jittered",roughness:.9,bowing:.8,passes:1,strokeWidth:1.5,fill:"wash",washOpacity:.3,washEdge:.34});kg({name:"blueprint",displayLabel:"Blueprint",blurb:"Cyanotype: white linework on Prussian blue with a drafting grid.",intent:"premium",colors:{bg:"#123a63",fg:"#eaf2fb",line:"#dbe9f7",accent:"#ffffff",muted:"#b8cfe6",surface:"#1c4a78",border:"#dbe9f7"},font:"Share Tech Mono",stroke:"jittered",roughness:.4,bowing:.4,passes:1,strokeWidth:1.4,fill:"none",backdrop:"grid",mono:!0});kg({name:"tufte",displayLabel:"Tufte",blurb:"Maximal data-ink: crisp hairlines, warm paper, one red accent.",intent:"premium",colors:{bg:"#fffff8",fg:"#111111",line:"#4a4a45",accent:"#a00000",muted:"#6b6b64",border:"#8a8a80"},font:"EB Garamond",roles:{node:{lineWidth:.8,cornerRadius:0},edge:{lineWidth:.8},group:{lineWidth:.8}},mono:!0},"look","look:tufte");kg({name:"accessible-high-contrast",displayLabel:"Accessible Contrast",blurb:"Accessibility-first: large labels, heavy strokes, white ground, colorblind-safe blue accent.",intent:"premium",colors:{bg:"#ffffff",fg:"#050505",line:"#111111",accent:"#005fcc",muted:"#333333",surface:"#ffffff",border:"#050505"},roles:{node:{fontSize:17,fontWeight:700,textColor:"var(--fg)",paddingX:28,paddingY:16,cornerRadius:8,lineWidth:2.4,borderColor:"var(--fg)"},edge:{fontSize:14,fontWeight:700,textColor:"var(--fg)",lineWidth:2.6,bendRadius:10,strokeColor:"var(--fg)"},group:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:22,cornerRadius:8,lineWidth:2.2,borderColor:"var(--fg)"}}});kg({name:"patent-drawing",displayLabel:"Patent Hatching",blurb:"Print-safe patent figure: uniform ink, strong outlines, tone via oblique hatching.",intent:"premium",colors:{bg:"#ffffff",fg:"#111111",line:"#111111",accent:"#111111",muted:"#444444",surface:"#ffffff",border:"#111111"},font:"EB Garamond",stroke:"jittered",roughness:.3,bowing:.2,passes:1,strokeWidth:1.35,fill:"hachure",hachureAngle:-50,hachureGap:7,fillWeight:.65,roles:{node:{fontSize:14,fontWeight:600,textColor:"var(--fg)",paddingX:24,paddingY:13,lineWidth:1.35,cornerRadius:0,borderColor:"var(--fg)"},edge:{fontSize:12,textColor:"var(--fg)",lineWidth:1.45,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:12,fontWeight:700,textColor:"var(--fg)",paddingX:22,paddingY:18,lineWidth:1.35,cornerRadius:0,borderColor:"var(--fg)"}},mono:!0});kg({name:"status-dashboard",displayLabel:"Dark Ops Dashboard",blurb:"Operational dashboard: dark surface, rounded modules, bright status-friendly accent.",intent:"premium",colors:{bg:"#08111f",fg:"#e6f4ff",line:"#5a7c99",accent:"#2dd4bf",muted:"#8aa6bf",surface:"#102033",border:"#2e4c63"},roles:{node:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:13,cornerRadius:10,lineWidth:1.4,borderColor:"var(--fg)"},edge:{fontSize:12,fontWeight:600,textColor:"var(--fg)",lineWidth:2,bendRadius:14,strokeColor:"var(--fg)"},group:{fontSize:13,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.06,paddingX:22,paddingY:20,cornerRadius:10,lineWidth:1.3,borderColor:"var(--fg)"}}});kg({name:"ops-schematic",displayLabel:"Compact Trace Map",blurb:"Dense operational schematic: compact mono labels, sturdy traces, theme-friendly geometry.",intent:"lofi",colors:{bg:"#f8faf7",fg:"#17211c",line:"#24523b",accent:"#0f766e",muted:"#4f665a",surface:"#f0f5ef",border:"#24523b"},font:"Share Tech Mono",stroke:"jittered",roughness:.18,bowing:.2,passes:1,strokeWidth:1.6,fill:"none",roles:{node:{fontSize:12,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",paddingX:16,paddingY:8,cornerRadius:2,lineWidth:1.6,borderColor:"var(--fg)"},edge:{fontSize:10,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",lineWidth:1.8,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:11,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.05,paddingX:16,paddingY:16,cornerRadius:2,lineWidth:1.5,borderColor:"var(--fg)"}}});kg({name:"chalkboard",displayLabel:"Chalkboard",blurb:"Classroom chalkboard: dusty off-white strokes on green slate.",intent:"draft",colors:{bg:"#17362f",fg:"#f5f1df",line:"#ece6cf",accent:"#ffe08a",muted:"#c7d2c4",surface:"#17362f",border:"#f3ecd5"},font:"Caveat",stroke:"jittered",roughness:1.25,bowing:1,passes:2,strokeWidth:1.9,fill:"none",roles:{node:{fontSize:16,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:12,borderColor:"var(--fg)"},edge:{fontSize:13,textColor:"var(--fg)",lineWidth:1.8,strokeColor:"var(--fg)"},group:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:20,paddingY:20,lineWidth:1.7,borderColor:"var(--fg)"}},mono:!0});kg({name:"risograph",displayLabel:"Riso Print",blurb:"Two-ink poster print: warm stock, offset blue linework, coral accent, coarse hachure.",intent:"premium",colors:{bg:"#fff5df",fg:"#2b2725",line:"#1f3d5a",accent:"#ff5a5f",muted:"#876a52",surface:"#ffd166",border:"#1f3d5a"},font:"EB Garamond",stroke:"jittered",roughness:.7,bowing:.55,passes:1,strokeWidth:1.5,fill:"hachure",hachureAngle:18,hachureGap:6.5,fillWeight:.75,roles:{node:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:13,cornerRadius:3,borderColor:"var(--fg)"},edge:{fontSize:12,textColor:"var(--fg)",lineWidth:1.5,strokeColor:"var(--fg)"},group:{fontSize:13,fontWeight:700,textColor:"var(--fg)",paddingX:22,paddingY:18,cornerRadius:3,borderColor:"var(--fg)"}}});kg({name:"architectural-plan",displayLabel:"Plan Drafting",blurb:"Architectural plan: square technical linework, uppercase mono labels, room-like frames.",intent:"premium",colors:{bg:"#fbf7ea",fg:"#202a2f",line:"#38535e",accent:"#1f6f8b",muted:"#60727a",surface:"#fffaf0",border:"#38535e"},font:"Share Tech Mono",stroke:"jittered",roughness:.18,bowing:.25,passes:1,strokeWidth:1.45,fill:"none",roles:{node:{fontSize:12,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",paddingX:20,paddingY:10,cornerRadius:0,lineWidth:1.45,borderColor:"var(--fg)"},edge:{fontSize:10,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",lineWidth:1.55,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:11,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.06,paddingX:20,paddingY:20,cornerRadius:0,lineWidth:1.45,borderColor:"var(--fg)"}}});kg({name:"publication-figure",displayLabel:"Report Figure",blurb:"Polished publication figure: serif labels, confident rules, rounded boxes, one quiet accent.",intent:"premium",colors:{bg:"#fffdf8",fg:"#171512",line:"#24211d",accent:"#1d4ed8",muted:"#5f5a52",surface:"#faf5ea",border:"#24211d"},font:"EB Garamond",strokeWidth:1.45,roles:{node:{fontSize:15,fontWeight:700,textColor:"var(--fg)",paddingX:26,paddingY:14,cornerRadius:7,lineWidth:1.45,borderColor:"var(--fg)"},edge:{fontSize:12,fontWeight:600,textColor:"var(--fg)",lineWidth:1.45,bendRadius:8,strokeColor:"var(--fg)"},group:{fontSize:12,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.08,paddingX:24,paddingY:22,cornerRadius:7,lineWidth:1.35,borderColor:"var(--fg)"}}});var vd={padding:30,actorGap:140,actorHeight:40,actorPadX:16,headerGap:26,messageRowHeight:40,selfMessageHeight:30,activationWidth:10,blockPadX:10,blockPadTop:40,blockPadBottom:8,blockHeaderExtra:28,dividerExtra:24,noteWidth:60,notePadX:12,notePadY:6,noteGap:10,boxPadX:8,boxTitleSpace:22,boxPadBottom:8},gO={nodeLabelFontSize:Mp.nodeLabel,edgeLabelFontSize:Mp.edgeLabel,groupHeaderFontSize:Mp.edgeLabel,nodeLabelFontWeight:xy.nodeLabel,edgeLabelFontWeight:xy.edgeLabel,groupHeaderFontWeight:xy.groupHeader,nodePaddingX:vd.actorPadX,nodePaddingY:vd.notePadY,nodeCornerRadius:4,nodeLineWidth:Ao.outerBox,edgeLineWidth:Ao.connector,groupCornerRadius:0,groupPaddingX:vd.blockPadX,groupPaddingY:8,groupLabelPaddingX:6,groupLineWidth:Ao.outerBox};function o6t(r,i={},s={},c){let u=Gi(i,gO,c),f=s.diagramMarginX??vd.padding,p=s.diagramMarginY??vd.padding,m=s.width??80,y=s.noteMargin??vd.noteGap,x=s.activationWidth??vd.activationWidth,v=r.actors.map(Je=>va(c,"actor",{category:Je.id},{includeFallback:!1})),S=Math.max(s.height??vd.actorHeight,...v.map(Je=>Bi("Mg",Je?.fontSize??u.nodeLabelFontSize,Je?.fontWeight??u.nodeLabelFontWeight).height+(Je?.paddingY??u.nodePaddingY)*2)),E=Bi("Mg",gO.edgeLabelFontSize,gO.edgeLabelFontWeight).height,M=Bi("Mg",u.edgeLabelFontSize,u.edgeLabelFontWeight).height,R=s.messageMargin??vd.messageRowHeight,P=Math.max(R,R+M-E),N=Math.max(vd.selfMessageHeight,P-10),F=Math.max(vd.blockPadTop,vd.blockPadTop+(u.groupHeaderFontSize-gO.groupHeaderFontSize)+(u.groupPaddingY-gO.groupPaddingY)*2),L=Math.max(vd.blockHeaderExtra,F+u.groupPaddingY+20-P);if(r.actors.length===0)return{width:0,height:0,accessibilityTitle:r.accessibilityTitle,accessibilityDescription:r.accessibilityDescription,actors:[],lifelines:[],messages:[],activations:[],blocks:[],notes:[],boxes:[],destructions:[]};let _=r.actors.map((Je,qt)=>{let $n=v[qt],Wt=$n?.textTransform??u.nodeTextTransform,Sn=$n?.fontSize??u.nodeLabelFontSize,wn=$n?.fontWeight??u.nodeLabelFontWeight,Lr=$n?.paddingX??u.nodePaddingX,yr=nr(Je.label,Wt),Mi=$n?.letterSpacing??u.nodeLetterSpacing,Ji=Math.max(0,[...yr].length-1)*Mi,Zs=gl(yr,Sn,wn)+Ji;return Math.max(Zs+Lr*2,m)}),j=new Map;for(let Je=0;Je<r.actors.length;Je++)j.set(r.actors[Je].id,Je);let z=Array.from({length:Math.max(0,r.actors.length-1)},()=>0);for(let Je of r.messages){let qt=j.get(Je.from),$n=j.get(Je.to);if(qt===void 0||$n===void 0||qt===$n)continue;let Wt=Math.min(qt,$n),Sn=Math.max(qt,$n),wn=Sn-Wt,Lr=nr(LW(Je),u.edgeTextTransform),yr=Math.max(0,[...Lr].length-1)*u.edgeLetterSpacing,Mi=(gl(Lr,u.edgeLabelFontSize,u.edgeLabelFontWeight)+yr+16)/wn;for(let Ji=Wt;Ji<Sn;Ji++)z[Ji]=Math.max(z[Ji],Mi)}let W=[],Z=f+_[0]/2;for(let Je=0;Je<r.actors.length;Je++){if(Je>0){let qt=(_[Je-1]+_[Je])/2,$n=s.actorMargin!==void 0?qt+s.actorMargin:Math.max(vd.actorGap,qt+40);Z+=Math.max($n,z[Je-1]??0)}W.push(Z)}let V=(r.boxes??[]).filter(Je=>Je.actorIds.some(qt=>j.has(qt))),H=p+(V.length>0?vd.boxTitleSpace+6:0),q=r.actors.map((Je,qt)=>({id:Je.id,label:Je.label,type:Je.type,...Je.links?{links:{...Je.links}}:{},x:W[qt],y:H,width:_[qt],height:S})),X=H+S+vd.headerGap,ee=[],oe=new Map;for(let Je of r.blocks){let qt=oe.get(Je.startIndex)??0;oe.set(Je.startIndex,Math.max(qt,L));for(let $n of Je.dividers){let Wt=oe.get($n.index)??0;oe.set($n.index,Math.max(Wt,vd.dividerExtra))}}let ge=new Map,Ne=new Map,Me=new Map;for(let Je=0;Je<r.actors.length;Je++){let qt=r.actors[Je];if(qt.createMessageIndex!==void 0&&qt.createMessageIndex<r.messages.length){let $n=ge.get(qt.createMessageIndex)??[];$n.push(Je),ge.set(qt.createMessageIndex,$n);let Wt=oe.get(qt.createMessageIndex)??0;oe.set(qt.createMessageIndex,Math.max(Wt,S/2+8))}if(qt.destroyMessageIndex!==void 0&&qt.destroyMessageIndex<r.messages.length){let $n=Ne.get(qt.destroyMessageIndex)??[];$n.push(qt.id),Ne.set(qt.destroyMessageIndex,$n)}}let ve=new Map;for(let Je of r.notes){let qt=ve.get(Je.afterIndex)??[];qt.push(Je),ve.set(Je.afterIndex,qt)}let K=[],ae=new Map,de=[],Se=4,Be=new Map;for(let Je of r.activationEvents??[]){let qt=Be.get(Je.messageIndex)??[];qt.push(Je),Be.set(Je.messageIndex,qt)}let we=(Je,qt)=>{let $n=ae.get(Je)??[];$n.push({startY:qt,depth:$n.length}),ae.set(Je,$n)},me=(Je,qt)=>{let $n=ae.get(Je);if(!$n||$n.length===0)return;let{startY:Wt,depth:Sn}=$n.pop(),wn=j.get(Je);wn===void 0||qt<=Wt||de.push({actorId:Je,x:W[wn]-x/2+Sn*Se,topY:Wt,bottomY:qt,width:x})},ce=(Je,qt)=>{for(let $n of Be.get(Je)??[])$n.kind==="activate"?we($n.actorId,qt):me($n.actorId,qt)},xe=(Je,qt)=>{let $n=nr(Je.text,u.nodeTextTransform),Wt=Math.max(vd.noteWidth,gl($n,u.nodeLabelFontSize,u.nodeLabelFontWeight)+u.nodePaddingX*2),Sn=Bi($n,u.nodeLabelFontSize,u.nodeLabelFontWeight).height+u.nodePaddingY*2,wn=j.get(Je.actorIds[0]??"")??0,Lr;if(Je.position==="left")Lr=W[wn]-_[wn]/2-Wt-y;else if(Je.position==="right")Lr=W[wn]+_[wn]/2+y;else if(Je.actorIds.length>1){let yr=j.get(Je.actorIds[Je.actorIds.length-1]??"")??wn;Lr=(W[wn]+W[yr])/2-Wt/2}else Lr=W[wn]-Wt/2;return{text:Je.text,x:Lr,y:qt,width:Wt,height:Sn,position:Je.position,actors:Je.actorIds}},Ce=ve.get(-1);if(Ce&&Ce.length>0){let Je=X;for(let qt of Ce){let $n=xe(qt,Je);K.push($n),Je+=$n.height+4}X=Math.max(X,Je+P/2)}for(let Je=0;Je<r.messages.length;Je++){let qt=r.messages[Je],$n=j.get(qt.from)??0,Wt=j.get(qt.to)??0,Sn=qt.from===qt.to,wn=oe.get(Je)??0;wn>0&&(X+=wn),ce(Je,X);let Lr=W[$n],yr=W[Wt];ee.push({from:qt.from,to:qt.to,label:LW(qt),lineStyle:qt.lineStyle,startHead:qt.startHead,endHead:qt.endHead,centralStart:qt.centralStart??!1,centralEnd:qt.centralEnd??!1,x1:Lr,x2:yr,y:X,isSelf:Sn});let Mi=Ne.get(Je);if(Mi)for(let Zs of Mi)Me.set(Zs,X);qt.activate&&we(qt.to,X),qt.deactivate&&me(qt.from,X),X+=Sn?N+P:P,ge.has(Je)&&(X+=S/2);let Ji=ve.get(Je);if(Ji&&Ji.length>0){let Zs=Sn?N:0,Da=ee[Je].y+Zs+14;for(let rf of Ji){let r1=xe(rf,Da);K.push(r1),Da+=r1.height+4}X=Math.max(X,Da+P/2)}}let $e=Math.max(ee[ee.length-1]?.y??X,X-P/2);ce(r.messages.length,$e);for(let[Je,qt]of ae)for(;qt.length>0;)me(Je,$e);for(let[Je,qt]of ge){let $n=ee[Je]?.y;if($n!==void 0)for(let Wt of qt)q[Wt].y=$n-S/2}let Ye=r.blocks.map(Je=>{let qt=ee[Je.startIndex],$n=ee[Je.endIndex],Wt=(qt?.y??X)-F,Sn=($n?.y??X)+u.groupPaddingY+12,wn=new Set;for(let Da=Je.startIndex;Da<=Je.endIndex;Da++){let rf=r.messages[Da];rf&&(wn.add(j.get(rf.from)??0),wn.add(j.get(rf.to)??0))}if(wn.size===0)for(let Da=0;Da<r.actors.length;Da++)wn.add(Da);let Lr=Math.min(...wn),yr=Math.max(...wn),Mi=W[Lr]-_[Lr]/2-u.groupPaddingX,Ji=W[yr]+_[yr]/2+u.groupPaddingX,Zs=Je.dividers.map(Da=>{let rf=ee[Da.index],r1=rf?.y??X,YA=28;if(Da.label&&rf?.label){let Or=nr(`[${Da.label}]`,u.edgeTextTransform),ro=gl(Or,u.edgeLabelFontSize,u.edgeLabelFontWeight),ka=Mi+8,Mc=ka+ro,Ql=gl(nr(rf.label,u.edgeTextTransform),u.edgeLabelFontSize,u.edgeLabelFontWeight),kd=rf.isSelf?rf.x1+36:(rf.x1+rf.x2)/2-Ql/2,Ol=kd+Ql,XA=8;Mc+XA>kd&&ka-XA<Ol&&(YA=Math.max(36,Math.ceil(24+M)))}return{y:r1-YA,label:Da.label}});return{type:Je.type,label:Je.label,x:Mi,y:Wt,width:Ji-Mi,height:Sn-Wt,dividers:Zs}}),nt=K,bt=X,st=V.map(Je=>{let qt=Je.actorIds.map(wn=>j.get(wn)).filter(wn=>wn!==void 0),$n=Math.min(...qt.map(wn=>W[wn]-_[wn]/2))-vd.boxPadX,Wt=Math.max(...qt.map(wn=>W[wn]+_[wn]/2))+vd.boxPadX;if(Je.label){let wn=gl(nr(Je.label,u.groupTextTransform),u.groupHeaderFontSize,u.groupHeaderFontWeight);Wt=Math.max(Wt,$n+wn+vd.boxPadX*2)}let Sn=p;return{label:Je.label,color:Je.color,x:$n,y:Sn,width:Wt-$n,height:bt+vd.boxPadBottom-Sn}}),an=X+p,ye=f,Ue=0;for(let Je of q)ye=Math.min(ye,Je.x-Je.width/2),Ue=Math.max(Ue,Je.x+Je.width/2);for(let Je of Ye)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of nt)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of st)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of ee)if(Je.isSelf&&Je.label){let Wt=Je.x1+30+8,Sn=gl(nr(Je.label,u.edgeTextTransform),u.edgeLabelFontSize,u.edgeLabelFontWeight);Ue=Math.max(Ue,Wt+Sn+8)}let je=ye<f?f-ye:0;if(je>0){for(let Je of q)Je.x+=je;for(let Je of ee)Je.x1+=je,Je.x2+=je;for(let Je of de)Je.x+=je;for(let Je of Ye)Je.x+=je;for(let Je of nt)Je.x+=je;for(let Je of st)Je.x+=je;for(let Je=0;Je<W.length;Je++)W[Je]+=je}let Gt=r.actors.map((Je,qt)=>({actorId:Je.id,x:W[qt],topY:q[qt].y+S,bottomY:Me.get(Je.id)??an-p})),Et=r.actors.filter(Je=>Me.has(Je.id)).map(Je=>({actorId:Je.id,x:W[j.get(Je.id)],y:Me.get(Je.id)})),Ot=Ue+je+f,pn=an;return{width:Math.max(Ot,200),height:Math.max(pn,100),accessibilityTitle:r.accessibilityTitle,accessibilityDescription:r.accessibilityDescription,actors:q,lifelines:Gt,messages:ee,activations:de,blocks:Ye,notes:nt,boxes:st,destructions:Et}}var s6t=["actorMargin","width","height","diagramMarginX","diagramMarginY","messageMargin","noteMargin","activationWidth"],Fkr=[...s6t,"showSequenceNumbers"];function a6t(r){if(!r||!Ef(r,["sequence"]))return{};let i={};for(let c of s6t){let u=ps(r,["sequence",c]);typeof u=="number"&&Number.isFinite(u)&&u>=0&&(i[c]=u)}return ps(r,["sequence","showSequenceNumbers"])===!0&&(i.showSequenceNumbers=!0),i}function Bh(r,i,s,c,u){let f={};return u?(f.role="img",f["aria-roledescription"]=u):(r||i)&&(f.role="img"),r&&(f["aria-labelledby"]=s),i&&(f["aria-describedby"]=c),f}function c6t(r){let i=2166136261;for(let s=0;s<r.length;s++)i^=r.charCodeAt(s),i=Math.imul(i,16777619);return i>>>0}function Gh(...r){return c6t(r.join("|")).toString(36)}function POe(r){let i=r>>>0;return()=>{i|=0,i=i+1831565813|0;let s=Math.imul(i^i>>>15,1|i);return s=s+Math.imul(s^s>>>7,61|s)^s,((s^s>>>14)>>>0)/4294967296}}function NOe(r,i,s){return c6t(`${r>>>0}|${i}|${s}`)}function d6t(r){let{positioned:i,colors:s,resolved:c}=r,u=c.renderOptions,f=s.font??"Inter",p=u.transparent??!1,m=[],y=Gi(u,gO,c.styleFace),x=`seq-${Gh(i.width,i.height,i.actors.length,i.messages.length)}`,v=`${x}-title`,S=`${x}-desc`,E=Bh(i.accessibilityTitle,i.accessibilityDescription,v,S);m.push(Za({id:"prelude",width:i.width,height:i.height,colors:s,transparent:p,font:f,hasMonoFont:!1},Ka(i.width,i.height,s,p,E)+`
|
|
305
|
+
<circle cx="${u}" cy="${f}" r="${m}" fill="var(--_text)" stroke="none" />`}}function QIn(r,i,s,c){let u=Math.min(s,c)/2;return{geometry:{kind:"rect",x:r,y:i,width:s,height:c,rx:u,ry:u},crisp:`<rect x="${r}" y="${i}" width="${s}" height="${c}" rx="${u}" ry="${u}" fill="var(--_text)" stroke="none" />`}}function ZIn(r,i,s){if((r.shape==="state-start"||r.shape==="state-end"||r.shape==="state-fork"||r.shape==="state-join"||r.shape==="state-choice")&&!r.label)return null;let c=r.x+r.width/2,u=r.y+r.height/2,f=DDt(r.inlineStyle,s.nodeTextColor??"var(--_text)"),p=Ke(f),m=nr(r.label,s.nodeTextTransform);return Ar({id:`node-label:${r.id}`,role:"label",text:m,x:c,y:u,fontSize:s.nodeLabelFontSize,anchor:"middle",paint:{fill:f}},Yi(m,c,u,s.nodeLabelFontSize,`text-anchor="middle" font-size="${s.nodeLabelFontSize}" font-weight="${s.nodeLabelFontWeight}"${s.nodeLetterSpacing!==0?` letter-spacing="${s.nodeLetterSpacing}"`:""} fill="${p}"`))}var LI=1;function kOe(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))kOe(i);return Object.freeze(r)}var A6=kOe({bg:{description:"Diagram page background."},fg:{description:"Primary text and foreground paint."},line:{description:"Connector and secondary line paint."},accent:{description:"Accent paint for emphasis and data series."},muted:{description:"Muted text and secondary data paint."},surface:{description:"Node and group surface fill."},border:{description:"Node and group border paint."}}),v6=Object.freeze(["category"]),fO=kOe({formatVersion:{kind:"const",value:LI,group:"metadata",description:"Persisted wire-format version. Optional on input and normalized to 1 on output."},$schema:{kind:"string",group:"metadata",description:"Optional JSON Schema pointer for file-backed styles; ignored while rendering."},name:{kind:"string",group:"metadata",description:"Canonical look:name or palette:name identity; required only when registering a style."},blurb:{kind:"string",group:"metadata",description:"Short human-readable description used by discovery surfaces."},colors:{kind:"colors",group:"palette",description:"Partial palette of safe, non-fetching CSS color tokens."},font:{kind:"string",runtimeValidator:"safeCssFontFamily",group:"typography",description:"Safe, non-fetching CSS font family or stack; the rendering environment supplies the font face."},roles:{kind:"roles",group:"roles",description:"Partial semantic SceneRole defaults. Family-authored styling remains authoritative."},semanticSlots:{kind:"semanticSlots",group:"policy",description:"Named brand-neutral role-style slots selected by semantic bindings."},bindings:{kind:"bindings",group:"policy",description:"Ordered equality bindings from authored/domain meaning to semantic slots."},constraints:{kind:"constraints",group:"policy",description:"Closed inspect-only brand constraints with warn or error actions."},stroke:{kind:"enum",values:["crisp","jittered","freehand"],group:"stroke",description:"Stroke treatment; crisp is the default renderer."},roughness:{kind:"number",minimum:0,maximum:10,expected:"between 0 and 10",group:"stroke",description:"Rough.js stroke irregularity."},bowing:{kind:"number",minimum:0,maximum:10,expected:"between 0 and 10",group:"stroke",description:"Rough.js line bowing."},passes:{kind:"integer",minimum:1,maximum:8,expected:"an integer from 1 through 8",group:"stroke",description:"Number of sketch strokes; 1 is single-pass and 2 is the usual double stroke."},strokeWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",group:"stroke",description:"Base stroke width in SVG user units."},fill:{kind:"enum",values:["none","hachure","solid","wash"],group:"fill",description:"Fill policy for rough/hybrid rendering; none and solid require a final stack that activates one of those backends."},hachureAngle:{kind:"number",minimum:-360,maximum:360,expected:"between -360 and 360",group:"fill",description:"Hachure line angle in degrees; requires fill hachure in the final stack."},hachureGap:{kind:"number",exclusiveMinimum:0,maximum:100,expected:"greater than 0 and at most 100",group:"fill",description:"Gap between hachure lines; requires fill hachure in the final stack."},fillWeight:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",group:"fill",description:"Hachure line weight; requires fill hachure in the final stack."},washOpacity:{kind:"number",minimum:0,maximum:1,expected:"between 0 and 1",group:"fill",description:"Watercolor glaze opacity; requires fill wash in the final stack."},washEdge:{kind:"number",minimum:0,maximum:1,expected:"between 0 and 1",group:"fill",description:"Watercolor edge-darkening opacity; requires fill wash in the final stack."},backdrop:{kind:"enum",values:["plain","paper-ruled","grid"],group:"page",description:"Flat page furniture drawn behind the diagram."},intent:{kind:"enum",values:["premium","draft","lofi"],group:"advisory",description:"Advisory intent metadata for pickers and quality tooling."},mono:{kind:"boolean",group:"advisory",description:"Advisory monochrome contract: express tone through shading and weight."}});function hO(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function SOe(r,i){return!(typeof r!="number"||!Number.isFinite(r)||i.kind==="integer"&&!Number.isInteger(r)||i.minimum!==void 0&&r<i.minimum||i.exclusiveMinimum!==void 0&&r<=i.exclusiveMinimum||i.maximum!==void 0&&r>i.maximum)}var e$n=Object.freeze(["--bg","--fg","--_text","--_text-sec","--_text-muted","--_text-faint","--_line","--_arrow","--_node-fill","--_node-stroke","--_group-fill","--_group-hdr","--_inner-stroke","--_key-badge"]),t$n=new Set(e$n);function n$n(r){return typeof r!="string"||xg(r)===void 0?!1:[...r.matchAll(/var\(\s*(--[a-z0-9_-]+)/gi)].map(s=>s[1]).every(s=>t$n.has(s))}var EOe=new Map(tI.map(r=>[r.role,r])),_Ft=CN.map(r=>EOe.get(r)),r$n=new Set(pE),i$n=/^[A-Za-z][A-Za-z0-9._-]{0,63}$/,vOe=new Set(["__proto__","constructor","prototype"]);function jFt(r,i,s){if(!hO(r))return[`"${i}" must be an object`];let c=[];for(let[u,f]of Object.entries(r)){if(!Object.hasOwn(gE,u)){c.push(`unknown role style field "${i.slice(i.indexOf(".")+1)}.${u}"`);continue}if(s&&!s.has(u)){c.push(`role style field "${i}.${u}" is not applicable`);continue}let p=gE[u],m=`${i}.${u}`;f!==void 0&&(p.kind==="number"&&!SOe(f,p)?c.push(`"${m}" must be ${p.expected}`):p.kind==="font"&&(typeof f!="string"||NA(f)===void 0)?c.push(`"${m}" must be a safe non-fetching CSS font family or stack`):p.kind==="color"&&!n$n(f)?c.push(`"${m}" must be a safe non-fetching CSS paint`):p.kind==="enum"&&(typeof f!="string"||!p.values.includes(f))&&c.push(`"${m}" must be one of ${p.values.join(" | ")}`))}return c}function o$n(r){if(!hO(r))return['"roles" must be an object of SceneRole records'];let i=[];for(let[s,c]of Object.entries(r)){let u=EOe.get(s);if(!u){i.push(`unknown scene role "${s}"`);continue}if(u.traits.styleConsumption==="fallback-only"){i.push(`scene role "${s}" is fallback-only; set roles.${u.style.fallbackRole} instead`);continue}let f=new Set(u.style.applicableProperties),p=jFt(c,`roles.${s}`,f).map(m=>m===`"roles.${s}" must be an object`?m:m.replace(`role style field "roles.${s}.`,`role style field "${s}.`).replace('" is not applicable',`" is not applicable to ${s} roles`));i.push(...p)}return i}function BFt(r){return typeof r=="string"&&i$n.test(r)&&!vOe.has(r)}function s$n(r){if(!hO(r))return['"semanticSlots" must be an object of named role-style slots'];if(Object.keys(r).length>nl.maxItemsPerContainer)return[`"semanticSlots" must contain at most ${nl.maxItemsPerContainer} slots`];let i=[];for(let[s,c]of Object.entries(r)){if(!BFt(s)){i.push(`invalid semantic slot name "${s}"`);continue}i.push(...jFt(c,`semanticSlots.${s}`))}return i}function a$n(r){if(!Array.isArray(r))return['"bindings" must be an array'];if(r.length>nl.maxItemsPerContainer)return[`"bindings" must contain at most ${nl.maxItemsPerContainer} entries`];let i=[];return r.forEach((s,c)=>{let u=`bindings[${c}]`;if(!hO(s)){i.push(`"${u}" must be an object`);return}for(let f of Object.keys(s))["channel","value","slot","role"].includes(f)||i.push(`unknown binding field "${u}.${f}"`);(typeof s.channel!="string"||!v6.includes(s.channel))&&i.push(`"${u}.channel" must be one of ${v6.join(" | ")}`),(typeof s.value!="string"||s.value.length===0||s.value.length>256||/[\r\n\0]/.test(s.value))&&i.push(`"${u}.value" must be a non-empty single-line string of at most 256 characters`),BFt(s.slot)||i.push(`"${u}.slot" must be a valid semantic slot name`),s.role!==void 0&&!r$n.has(s.role)&&i.push(`"${u}.role" must be a SceneRole with an executable category-binding consumer (${pE.join(" | ")})`)}),i}function c$n(r){if(!Array.isArray(r))return['"constraints" must be an array'];if(r.length>nl.maxItemsPerContainer)return[`"constraints" must contain at most ${nl.maxItemsPerContainer} entries`];let i=[];return r.forEach((s,c)=>{let u=`constraints[${c}]`;if(!hO(s)){i.push(`"${u}" must be an object`);return}if(typeof s.kind!="string"||!nI.includes(s.kind)){i.push(`"${u}.kind" must be one of ${nI.join(" | ")}`);return}let f=s.kind,p=Poe(f),m=new Set(SPt(f));for(let y of Object.keys(s))m.has(y)||i.push(`unknown constraint field "${u}.${y}"`);s.action!=="warn"&&s.action!=="error"&&i.push(`"${u}.action" must be one of warn | error`);for(let[y,x]of Object.entries(p)){let v=s[y];if(v===void 0){x.required&&i.push(`"${u}.${y}" is required for ${f}`);continue}x.kind==="role"&&!EOe.has(v)?i.push(`"${u}.${y}" must be a registered built-in SceneRole`):x.kind==="number"&&!SOe(v,x)&&i.push(`"${u}.${y}" must be between ${x.minimum} and ${x.maximum}`)}}),i}function k6(r){if(!hO(r))return["style spec must be a plain object"];if(Object.keys(r).length>nl.maxItemsPerContainer)return[`style spec must contain at most ${nl.maxItemsPerContainer} fields`];let i=[];for(let[s,c]of Object.entries(r)){if(!Object.hasOwn(fO,s)){i.push(`unknown field "${s}"`);continue}let u=fO[s];if(c!==void 0)switch(u.kind){case"const":c!==u.value&&i.push(`"${s}" must be ${u.value}`);break;case"string":typeof c!="string"?i.push(`"${s}" must be a string`):u.runtimeValidator==="safeCssFontFamily"&&NA(c)===void 0&&i.push(`"${s}" must be a safe non-fetching CSS font family or stack`);break;case"boolean":typeof c!="boolean"&&i.push(`"${s}" must be a boolean`);break;case"number":case"integer":SOe(c,u)||i.push(`"${s}" must be ${u.expected}`);break;case"enum":(typeof c!="string"||!u.values.includes(c))&&i.push(`"${s}" must be one of ${u.values.join(" | ")}`);break;case"roles":i.push(...o$n(c));break;case"semanticSlots":i.push(...s$n(c));break;case"bindings":i.push(...a$n(c));break;case"constraints":i.push(...c$n(c));break;case"colors":{if(!hO(c)){i.push('"colors" must be an object of color tokens');break}for(let[f,p]of Object.entries(c))Object.hasOwn(A6,f)?p!==void 0&&typeof p!="string"?i.push(`color token "${f}" must be a string`):p!==void 0&&Ks(p)===void 0&&i.push(`color token "${f}" must be a safe non-fetching CSS color`):i.push(`unknown color token "${f}"`);break}}}return pH(i,"Style validation")}function l$n(){return Object.fromEntries(Object.entries(gE).map(([r,i])=>{if(i.kind==="number"){let s=i;return[r,{type:"number",...s.minimum!==void 0?{minimum:s.minimum}:{},...s.exclusiveMinimum!==void 0?{exclusiveMinimum:s.exclusiveMinimum}:{},...s.maximum!==void 0?{maximum:s.maximum}:{},description:s.description}]}return i.kind==="enum"?[r,{type:"string",enum:[...i.values],description:i.description}]:[r,{type:"string",description:i.description,"x-agentic-mermaid-runtime-validator":i.kind==="font"?"safeCssFontFamily":"safeStylePaint"}]}))}function DFt(r=Object.keys(gE)){let i=l$n();return{type:"object",additionalProperties:!1,maxProperties:r.length,properties:Object.fromEntries(r.map(s=>[s,i[s]]))}}function GFt(r){return`roleStyle-${r.role}`}var FFt="^[A-Za-z][A-Za-z0-9._-]{0,63}$";function u$n(r){switch(r.kind){case"const":return{const:r.value,description:r.description};case"string":return{type:"string",description:r.description,...r.runtimeValidator?{"x-agentic-mermaid-runtime-validator":r.runtimeValidator}:{}};case"boolean":return{type:"boolean",description:r.description};case"enum":return{type:"string",enum:[...r.values],description:r.description};case"number":case"integer":return{type:r.kind,...r.minimum!==void 0?{minimum:r.minimum}:{},...r.exclusiveMinimum!==void 0?{exclusiveMinimum:r.exclusiveMinimum}:{},...r.maximum!==void 0?{maximum:r.maximum}:{},description:r.description};case"roles":return{type:"object",additionalProperties:!1,description:r.description,properties:Object.fromEntries(_Ft.map(i=>[i.role,{$ref:`#/$defs/${GFt(i)}`}]))};case"semanticSlots":return{type:"object",description:r.description,maxProperties:nl.maxItemsPerContainer,propertyNames:{pattern:FFt,not:{enum:[...vOe]}},additionalProperties:{$ref:"#/$defs/roleStyle-any"}};case"bindings":return{type:"array",description:r.description,maxItems:nl.maxItemsPerContainer,items:{type:"object",additionalProperties:!1,maxProperties:4,required:["channel","value","slot"],properties:{channel:{type:"string",enum:[...v6]},value:{type:"string",minLength:1,maxLength:256,pattern:"^[^\\r\\n\\u0000]+$"},slot:{type:"string",pattern:FFt,not:{enum:[...vOe]}},role:{type:"string",enum:[...pE]}}}};case"constraints":{let i={type:"string",enum:["warn","error"]},s={type:"string",enum:tI.map(u=>u.role)},c=nI.map(u=>{let f=Poe(u),p=Object.fromEntries(Object.entries(f).map(([m,y])=>[m,y.kind==="role"?s:{type:"number",minimum:y.minimum,maximum:y.maximum}]));return{type:"object",additionalProperties:!1,required:[...EPt(u)],properties:{kind:{const:u},action:i,...p}}});return{type:"array",description:r.description,maxItems:nl.maxItemsPerContainer,items:{oneOf:c}}}case"colors":return{type:"object",additionalProperties:!1,maxProperties:Object.keys(A6).length,description:`${r.description} Runtime validation applies the stricter safe-color policy.`,properties:Object.fromEntries(Object.entries(A6).map(([i,s])=>[i,{type:"string",description:`${s.description} Must be a safe, non-fetching CSS color.`,"x-agentic-mermaid-runtime-validator":"safeCssColor"}]))}}}function ZH(){let r=Object.fromEntries(_Ft.map(i=>[GFt(i),DFt(i.style.applicableProperties)]));return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://agentic-mermaid.dev/schemas/style-spec.schema.json",title:"Agentic Mermaid StyleSpec",description:"A partial declarative style record for Agentic Mermaid rendering. All fields, including formatVersion, are optional on input; resolved and registered specs normalize formatVersion to 1.",type:"object",additionalProperties:!1,maxProperties:Object.keys(fO).length,properties:Object.fromEntries(Object.entries(fO).map(([i,s])=>[i,u$n(s)])),$defs:{...r,"roleStyle-any":DFt()}}}var zFt=Object.freeze([{id:"palette:paper",inputName:"paper",displayLabel:"Paper",colors:{bg:"#F5F0E4",fg:"#221E16",accent:"#9A4A24"}},{id:"palette:dusk",inputName:"dusk",displayLabel:"Dusk",colors:{bg:"#2A2521",fg:"#E9DFCC",accent:"#CC8A57"}},{id:"palette:zinc-light",inputName:"zinc-light",displayLabel:"Zinc Light",colors:{bg:"#FFFFFF",fg:"#27272A"}},{id:"palette:zinc-dark",inputName:"zinc-dark",displayLabel:"Zinc Dark",colors:{bg:"#18181B",fg:"#FAFAFA"}},{id:"palette:tokyo-night",inputName:"tokyo-night",displayLabel:"Tokyo Night",colors:{bg:"#1a1b26",fg:"#a9b1d6",line:"#3d59a1",accent:"#7aa2f7",muted:"#565f89"}},{id:"palette:tokyo-night-storm",inputName:"tokyo-night-storm",displayLabel:"Tokyo Night Storm",colors:{bg:"#24283b",fg:"#a9b1d6",line:"#3d59a1",accent:"#7aa2f7",muted:"#565f89"}},{id:"palette:tokyo-night-light",inputName:"tokyo-night-light",displayLabel:"Tokyo Night Light",colors:{bg:"#d5d6db",fg:"#343b58",line:"#34548a",accent:"#34548a",muted:"#9699a3"}},{id:"palette:catppuccin-mocha",inputName:"catppuccin-mocha",displayLabel:"Catppuccin Mocha",colors:{bg:"#1e1e2e",fg:"#cdd6f4",line:"#585b70",accent:"#cba6f7",muted:"#6c7086"}},{id:"palette:catppuccin-latte",inputName:"catppuccin-latte",displayLabel:"Catppuccin Latte",colors:{bg:"#eff1f5",fg:"#4c4f69",line:"#9ca0b0",accent:"#8839ef",muted:"#9ca0b0"}},{id:"palette:nord",inputName:"nord",displayLabel:"Nord",colors:{bg:"#2e3440",fg:"#d8dee9",line:"#4c566a",accent:"#88c0d0",muted:"#616e88"}},{id:"palette:nord-light",inputName:"nord-light",displayLabel:"Nord Light",colors:{bg:"#eceff4",fg:"#2e3440",line:"#aab1c0",accent:"#5e81ac",muted:"#7b88a1"}},{id:"palette:dracula",inputName:"dracula",displayLabel:"Dracula",colors:{bg:"#282a36",fg:"#f8f8f2",line:"#6272a4",accent:"#bd93f9",muted:"#6272a4"}},{id:"palette:github-light",inputName:"github-light",displayLabel:"GitHub Light",colors:{bg:"#ffffff",fg:"#1f2328",line:"#d1d9e0",accent:"#0969da",muted:"#59636e"}},{id:"palette:github-dark",inputName:"github-dark",displayLabel:"GitHub Dark",colors:{bg:"#0d1117",fg:"#e6edf3",line:"#3d444d",accent:"#4493f8",muted:"#9198a1"}},{id:"palette:solarized-light",inputName:"solarized-light",displayLabel:"Solarized Light",colors:{bg:"#fdf6e3",fg:"#657b83",line:"#93a1a1",accent:"#268bd2",muted:"#93a1a1"}},{id:"palette:solarized-dark",inputName:"solarized-dark",displayLabel:"Solarized Dark",colors:{bg:"#002b36",fg:"#839496",line:"#586e75",accent:"#268bd2",muted:"#586e75"}},{id:"palette:one-dark",inputName:"one-dark",displayLabel:"One Dark",colors:{bg:"#282c34",fg:"#abb2bf",line:"#4b5263",accent:"#c678dd",muted:"#5c6370"}},{id:"palette:salmon",inputName:"salmon",displayLabel:"Salmon",colors:{bg:"#FFFBF5",fg:"#521000",line:"#C9A88A",accent:"#FF4801",muted:"#85532E",surface:"#FFFDFB",border:"#D4B89E"}},{id:"palette:salmon-dark",inputName:"salmon-dark",displayLabel:"Salmon Dark",colors:{bg:"#1F1008",fg:"#F5DCC8",line:"#6B4A2E",accent:"#FF6B35",muted:"#A07858",surface:"#2A1810",border:"#5A3A22"}},{id:"palette:tufte-dark",inputName:"tufte-dark",displayLabel:"Tufte Dark",colors:{bg:"#1C1C1A",fg:"#E8E4DC",line:"#666660",accent:"#C87070",muted:"#908880",surface:"#2A2926",border:"#444440"}}]);var Oce=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),WFt=Object.freeze(["paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),Tkr=Object.freeze({text:Object.freeze({sourceRole:"label",fields:Oce}),node:Object.freeze({sourceRole:"node",fields:Object.freeze([...Oce,...WFt])}),edge:Object.freeze({sourceRole:"edge",fields:Object.freeze([...Oce,"lineWidth","bendRadius","strokeColor"])}),group:Object.freeze({sourceRole:"group",fields:Object.freeze([...Oce,...WFt,"fontFamily","headerFillColor"])})}),UFt="1.0.0",JFt=Object.freeze({core:"^0.4.0"}),d$n=Object.freeze({owner:"agentic-mermaid",source:"built-in",reference:"src/scene/style-registry.ts"}),f$n=Object.freeze({owner:"host",source:"in-process"}),LE=new Map,S6=new Map,COe=0;function qFt(){if(COe>0)throw new Error("Style registry mutation is forbidden while a Style input is undergoing admission")}function MOe(r){COe++;try{return r()}finally{COe--}}function VFt(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function YFt(r){let i=new WeakMap,s=new WeakSet,c=new Set(["__proto__","prototype","constructor"]),u=0,f=0,p=(m,y)=>{if(y>nl.maxDepth)throw new TypeError(`Style input exceeds maximum nesting depth ${nl.maxDepth}`);if(u++,u>nl.maxNodes)throw new TypeError(`Style input exceeds the ${nl.maxNodes}-node limit`);if(typeof m=="string"){if(f+=m.length,f>nl.maxAggregateTextCharacters)throw new TypeError(`Style input exceeds the ${nl.maxAggregateTextCharacters}-character text limit`);return m}if(typeof m!="object"||m===null)return m;if(s.has(m))throw new TypeError("Style input must be acyclic");let x=i.get(m);if(x!==void 0)return x;if(Array.isArray(m)){if(m.length>nl.maxItemsPerContainer)throw new TypeError(`Style array must contain at most ${nl.maxItemsPerContainer} items`);let E=[];i.set(m,E),s.add(m);for(let M=0;M<m.length;M++){if(!Object.prototype.hasOwnProperty.call(m,M))throw new TypeError("Style arrays must not be sparse");E.push(p(m[M],y+1))}return s.delete(m),Object.freeze(E)}if(!VFt(m))return m;let v=Object.entries(m);if(v.length>nl.maxItemsPerContainer)throw new TypeError(`Style object must contain at most ${nl.maxItemsPerContainer} properties`);let S=Object.create(null);i.set(m,S),s.add(m);for(let[E,M]of v){if(c.has(E))throw new TypeError(`Style input uses forbidden key "${E}"`);if(f+=E.length,f>nl.maxAggregateTextCharacters)throw new TypeError(`Style input exceeds the ${nl.maxAggregateTextCharacters}-character text limit`);Object.defineProperty(S,E,{value:p(M,y+1),enumerable:!0,writable:!1,configurable:!1})}return s.delete(m),Object.freeze(S)};return p(r,0)}function XFt(r){let i=YFt(r),s=k6(i);if(s.length)throw new Error(`Invalid style spec: ${s.join("; ")}`);return i}function h$n(r){let i=YFt(r);if(!VFt(i))throw new TypeError("registerStyle options must be a plain object");return i}function TOe(r){if(r)return Object.freeze(Object.fromEntries(Object.entries(r).map(([i,s])=>[i,Object.freeze({...s})])))}function IOe(r){if(r)return Object.freeze(Object.fromEntries(Object.entries(r).map(([i,s])=>[i,Object.freeze({...s})])))}function E6(r){return r?Object.freeze(r.map(i=>Object.freeze({...i}))):void 0}function eU(r){if(!r)return;let{displayLabel:i,...s}=r;return Object.freeze({...s,formatVersion:LI,...s.colors?{colors:Object.freeze({...s.colors})}:{},...s.roles?{roles:TOe(s.roles)}:{},...s.semanticSlots?{semanticSlots:IOe(s.semanticSlots)}:{},...s.bindings?{bindings:E6(s.bindings)}:{},...s.constraints?{constraints:E6(s.constraints)}:{}})}function g$n(r){return A$n(r)}function m$n(r,i,s){return gm({id:r,kind:i,version:s.version??UFt,compatibility:{...JFt,...s.compatibility},provenance:s.provenance??f$n})}function KFt(r,i,s,c){let u=r.name,f=Object.freeze({...r,formatVersion:LI,...r.colors?{colors:Object.freeze({...r.colors})}:{},...r.roles?{roles:TOe(r.roles)}:{},...r.semanticSlots?{semanticSlots:IOe(r.semanticSlots)}:{},...r.bindings?{bindings:E6(r.bindings)}:{},...r.constraints?{constraints:E6(r.constraints)}:{}}),p=m$n(u,i,s);if(EN(LE,{identity:p,value:f}),c!==void 0){let m=S6.get(c),y=LE.has(c)&&c!==u?c:void 0;if(m!==void 0||y!==void 0)throw LE.delete(u),new Error(`Style input name "${c}" already selects "${m??y}"`);S6.set(c,u)}return()=>{if(qFt(),LE.get(u)?.identity!==p)return!1;let y=LE.delete(u);return y&&c!==void 0&&S6.get(c)===u&&S6.delete(c),y}}function QFt(r,i={}){return qFt(),MOe(()=>{let s=XFt(r),c=h$n(i);if(!s.name)throw new Error("registerStyle requires a name (anonymous specs are for inline use)");let u=my(s.name);if(!u||u.kind!=="look"&&u.kind!=="palette")throw new Error(`registerStyle name "${s.name}" must use the "look:" or "palette:" namespace`);let f=g$n(s);if(u.kind!==f)throw new Error(`Style "${s.name}" is a ${f}; its name must use the "${f}:" namespace`);return KFt(s,f,c)})}function kg(r,i="look",s=r.name??""){if(!r.name)throw new Error("registerBuiltInStyle requires a name");let c=r.name,u=SN(i,c),f=k6(eU({...r,name:u}));if(f.length)throw new Error(`Invalid built-in style "${u}": ${f.join("; ")}`);KFt({...r,name:u},i,{version:UFt,compatibility:JFt,provenance:d$n},s)}function ZFt(r){return LE.has(r)?r:S6.get(r)}function tU(r){let i=ZFt(r);if(!i)return;let s=eU(LE.get(i)?.value);if(s)return Object.freeze({canonicalId:i,spec:s})}function e6t(r){return tU(r)?.spec}function $Oe(){return ROe().map(r=>r.inputName)}function ROe(){return Object.freeze(Array.from(LE.values(),({identity:r,value:i})=>{let s=Array.from(S6.entries()).find(([,f])=>f===r.id)?.[0]??r.id,c=r.id.slice(r.id.indexOf(":")+1),u=i.displayLabel??c.split("-").filter(Boolean).map(f=>f==="ops"?"OPS":f.charAt(0).toUpperCase()+f.slice(1)).join(" ");return Object.freeze({identity:r,spec:eU(i),inputName:s,displayLabel:u,kind:r.kind,isDefault:r.id==="look:crisp"})}))}function DE(r){return r.stroke==="freehand"||r.fill==="wash"?"hybrid":r.stroke==="jittered"||r.fill==="hachure"||r.backdrop!==void 0&&r.backdrop!=="plain"||r.roughness!==void 0||r.bowing!==void 0||r.passes!==void 0||r.hachureGap!==void 0||r.hachureAngle!==void 0||r.fillWeight!==void 0?"rough":"default"}function p$n(r,i){if(!r&&!i)return;let s={...r},c=s;for(let[u,f]of Object.entries(i??{}))f!==void 0&&(c[u]={...c[u],...f});return s}function b$n(r,i){if(!r&&!i)return;let s={...r};for(let[c,u]of Object.entries(i??{}))s[c]={...s[c],...u};return s}function HFt(r,i){if(!r&&!i)return;let s=[],c=new Set;for(let u of[...r??[],...i??[]]){let f=JSON.stringify(u);c.has(f)||(c.add(f),s.push(u))}return s}function t6t(r){if(r===void 0)return;let i=Array.isArray(r)?r:[r],s=[];for(let u of i)if(typeof u=="string"){let f=ZFt(u);if(f==="look:crisp")continue;let p=f?LE.get(f)?.value:void 0;if(!p)throw new Error(`Unknown style "${u}". Known styles: ${$Oe().join(", ")}`);s.push(p)}else s.push(XFt(u));if(s.length===0)return;let c={formatVersion:LI};for(let u of s)for(let[f,p]of Object.entries(u))if(p!==void 0)if(f==="colors"){let m={...c.colors};for(let[y,x]of Object.entries(u.colors??{}))x!==void 0&&(m[y]=x);c.colors=m}else f==="roles"?c.roles=p$n(c.roles,u.roles):f==="semanticSlots"?c.semanticSlots=b$n(c.semanticSlots,u.semanticSlots):f==="bindings"?c.bindings=HFt(c.bindings,u.bindings):f==="constraints"?c.constraints=HFt(c.constraints,u.constraints):c[f]=p;return c}function Lce(r){return MOe(()=>{let i=t6t(r);return i&&n6t(i),eU(i)})}function y$n(r){return r?{...r}:void 0}function w$n(r){let i=r.strokeWidth,s=r.roles?Object.fromEntries(Object.entries(r.roles).map(([p,m])=>[p,y$n(m)])):void 0,c={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.node},u={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.edge},f={...i!==void 0&&i>0&&DE(r)==="default"?{lineWidth:i}:{},...s?.group};if(!(!s&&!r.semanticSlots&&!r.bindings&&!r.constraints&&Object.keys(c).length===0&&Object.keys(u).length===0&&Object.keys(f).length===0))return{...s?{roles:TOe(s)}:{},...r.semanticSlots?{semanticSlots:IOe(r.semanticSlots)}:{},...r.bindings?{bindings:E6(r.bindings)}:{},...r.constraints?{constraints:E6(r.constraints)}:{},...s?.label?{text:{...s.label}}:{},...Object.keys(c).length?{node:c}:{},...Object.keys(u).length?{edge:u}:{},...Object.keys(f).length?{group:f}:{}}}function x$n(r,i){let s=i[r.channel];return Array.isArray(s)?s.includes(r.value):String(s??"")===r.value}function va(r,i,s={},c={}){let u=tI.find(v=>v.role===i),f=r?.roles,p=c.includeFallback===!1?void 0:u?f?.[u.style.fallbackRole]:void 0,m=f?.[i],y=p||m?{...p,...m}:void 0,x=new Set(u?.style.applicableProperties??[]);for(let v of r?.bindings??[]){if(v.role!==void 0&&v.role!==i||!x$n(v,s))continue;let S=r?.semanticSlots?.[v.slot];if(!S)continue;let E=Object.fromEntries(Object.entries(S).filter(([M])=>x.has(M)));y={...y,...E}}return y?Object.freeze(y):void 0}function n6t(r){for(let[f,p]of(r.bindings??[]).entries()){let m=r.semanticSlots?.[p.slot];if(!m)throw new Error(`Invalid style spec: binding ${f+1} references missing semantic slot "${p.slot}"`);let y=p.role===void 0?new Set(oF):new Set(tI.find(x=>x.role===p.role).style.applicableProperties);if(!Object.keys(m).some(x=>y.has(x)))throw new Error(p.role===void 0?`Invalid style spec: semantic slot "${p.slot}" has no field applicable to any executable category-binding role`:`Invalid style spec: semantic slot "${p.slot}" has no field applicable to role "${p.role}"`)}let s=["hachureAngle","hachureGap","fillWeight"].filter(f=>r[f]!==void 0&&r.fill!=="hachure");if(s.length>0)throw new Error(`Invalid style spec: ${s.map(f=>`"${f}"`).join(", ")} require fill "hachure" in the final Style stack`);let u=["washOpacity","washEdge"].filter(f=>r[f]!==void 0&&r.fill!=="wash");if(u.length>0)throw new Error(`Invalid style spec: ${u.map(f=>`"${f}"`).join(", ")} require fill "wash" in the final Style stack`);if(r.fill!==void 0&&DE(r)==="default")throw new Error('Invalid style spec: "fill" has no crisp/default backend projection; combine it with stroke "jittered"/"freehand" or another rough/hybrid backend field')}function r6t(r){return MOe(()=>{let i=t6t(r);if(i===void 0)return{};n6t(i);let s=eU(i),c=w$n(i);return{...s?{style:s}:{},...c?{face:c}:{}}})}function A$n(r){return Object.keys(r).every(i=>i==="formatVersion"||i==="$schema"||i==="name"||i==="blurb"||i==="colors")?"palette":"look"}function i6t(r){return DE(r)!=="default"||r.colors!==void 0||r.font!==void 0||r.strokeWidth!==void 0||r.roles!==void 0||r.semanticSlots!==void 0||r.bindings!==void 0||r.constraints!==void 0}kg({name:"crisp",displayLabel:"Crisp",blurb:"The default renderer with precise SVG geometry.",stroke:"crisp"},"look");for(let r of zFt){let{inputName:i,colors:s}=r;if(SN("palette",i)!==r.id)throw new Error(`Built-in palette identity mismatch: ${r.id}`);kg({name:i,displayLabel:r.displayLabel,blurb:`Palette: ${i}.`,colors:{bg:s.bg,fg:s.fg,line:s.line,accent:s.accent,muted:s.muted,surface:s.surface,border:s.border}},"palette",i)}kg({name:"hand-drawn",displayLabel:"Hand-drawn",blurb:"Black ink on ruled paper \u2014 wobbly double strokes, unfilled boxes.",intent:"draft",colors:{bg:"#f7f5ef",fg:"#1a1a1e",line:"#26262b",accent:"#26262b",border:"#26262b"},font:"Caveat",stroke:"jittered",roughness:1,bowing:1,passes:2,strokeWidth:1.8,fill:"none",backdrop:"paper-ruled",mono:!0});kg({name:"excalidraw",displayLabel:"Excalidraw",blurb:"Virtual whiteboard style \u2014 rough strokes, pastel hachure fills.",intent:"draft",colors:{bg:"#ffffff",fg:"#1e1e1e",line:"#1e1e1e",accent:"#4263eb",surface:"#f1f3f5"},font:"Caveat",stroke:"jittered",roughness:1.1,bowing:1.2,passes:2,strokeWidth:1.6,fill:"hachure",hachureAngle:-41,hachureGap:5.5,fillWeight:.9});kg({name:"pen-and-ink",displayLabel:"Pen & ink",blurb:"Fine single-pass linework on warm cream \u2014 no interior hatching.",intent:"premium",colors:{bg:"#faf6ec",fg:"#241f1a",line:"#2b241d",accent:"#2b241d",border:"#2b241d"},font:"EB Garamond",stroke:"jittered",roughness:.5,bowing:.6,passes:1,strokeWidth:1.5,fill:"none",mono:!0});kg({name:"freehand",displayLabel:"Freehand",blurb:"Pressure-sensitive marker ribbons \u2014 variable-width filled strokes.",intent:"draft",colors:{bg:"#fbfaf7",fg:"#16161a",line:"#1d1d22",accent:"#1d1d22",border:"#1d1d22"},font:"Architects Daughter",stroke:"freehand",roughness:.9,passes:1,strokeWidth:1.6,fill:"none",mono:!0});kg({name:"watercolor",displayLabel:"Watercolor",blurb:"Rough outlines over translucent glazes with pigment-pooled edges.",intent:"premium",colors:{bg:"#fdfbf6",fg:"#31302c",line:"#4d4a44",accent:"#7a6a52",surface:"#ead9b9",border:"#5a564e"},font:"Caveat",stroke:"jittered",roughness:.9,bowing:.8,passes:1,strokeWidth:1.5,fill:"wash",washOpacity:.3,washEdge:.34});kg({name:"blueprint",displayLabel:"Blueprint",blurb:"Cyanotype: white linework on Prussian blue with a drafting grid.",intent:"premium",colors:{bg:"#123a63",fg:"#eaf2fb",line:"#dbe9f7",accent:"#ffffff",muted:"#b8cfe6",surface:"#1c4a78",border:"#dbe9f7"},font:"Share Tech Mono",stroke:"jittered",roughness:.4,bowing:.4,passes:1,strokeWidth:1.4,fill:"none",backdrop:"grid",mono:!0});kg({name:"tufte",displayLabel:"Tufte",blurb:"Maximal data-ink: crisp hairlines, warm paper, one red accent.",intent:"premium",colors:{bg:"#fffff8",fg:"#111111",line:"#4a4a45",accent:"#a00000",muted:"#6b6b64",border:"#8a8a80"},font:"EB Garamond",roles:{node:{lineWidth:.8,cornerRadius:0},edge:{lineWidth:.8},group:{lineWidth:.8}},mono:!0},"look","look:tufte");kg({name:"accessible-high-contrast",displayLabel:"Accessible Contrast",blurb:"Accessibility-first: large labels, heavy strokes, white ground, colorblind-safe blue accent.",intent:"premium",colors:{bg:"#ffffff",fg:"#050505",line:"#111111",accent:"#005fcc",muted:"#333333",surface:"#ffffff",border:"#050505"},roles:{node:{fontSize:17,fontWeight:700,textColor:"var(--fg)",paddingX:28,paddingY:16,cornerRadius:8,lineWidth:2.4,borderColor:"var(--fg)"},edge:{fontSize:14,fontWeight:700,textColor:"var(--fg)",lineWidth:2.6,bendRadius:10,strokeColor:"var(--fg)"},group:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:22,cornerRadius:8,lineWidth:2.2,borderColor:"var(--fg)"}}});kg({name:"patent-drawing",displayLabel:"Patent Hatching",blurb:"Print-safe patent figure: uniform ink, strong outlines, tone via oblique hatching.",intent:"premium",colors:{bg:"#ffffff",fg:"#111111",line:"#111111",accent:"#111111",muted:"#444444",surface:"#ffffff",border:"#111111"},font:"EB Garamond",stroke:"jittered",roughness:.3,bowing:.2,passes:1,strokeWidth:1.35,fill:"hachure",hachureAngle:-50,hachureGap:7,fillWeight:.65,roles:{node:{fontSize:14,fontWeight:600,textColor:"var(--fg)",paddingX:24,paddingY:13,lineWidth:1.35,cornerRadius:0,borderColor:"var(--fg)"},edge:{fontSize:12,textColor:"var(--fg)",lineWidth:1.45,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:12,fontWeight:700,textColor:"var(--fg)",paddingX:22,paddingY:18,lineWidth:1.35,cornerRadius:0,borderColor:"var(--fg)"}},mono:!0});kg({name:"status-dashboard",displayLabel:"Dark Ops Dashboard",blurb:"Operational dashboard: dark surface, rounded modules, bright status-friendly accent.",intent:"premium",colors:{bg:"#08111f",fg:"#e6f4ff",line:"#5a7c99",accent:"#2dd4bf",muted:"#8aa6bf",surface:"#102033",border:"#2e4c63"},roles:{node:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:13,cornerRadius:10,lineWidth:1.4,borderColor:"var(--fg)"},edge:{fontSize:12,fontWeight:600,textColor:"var(--fg)",lineWidth:2,bendRadius:14,strokeColor:"var(--fg)"},group:{fontSize:13,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.06,paddingX:22,paddingY:20,cornerRadius:10,lineWidth:1.3,borderColor:"var(--fg)"}}});kg({name:"ops-schematic",displayLabel:"Compact Trace Map",blurb:"Dense operational schematic: compact mono labels, sturdy traces, theme-friendly geometry.",intent:"lofi",colors:{bg:"#f8faf7",fg:"#17211c",line:"#24523b",accent:"#0f766e",muted:"#4f665a",surface:"#f0f5ef",border:"#24523b"},font:"Share Tech Mono",stroke:"jittered",roughness:.18,bowing:.2,passes:1,strokeWidth:1.6,fill:"none",roles:{node:{fontSize:12,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",paddingX:16,paddingY:8,cornerRadius:2,lineWidth:1.6,borderColor:"var(--fg)"},edge:{fontSize:10,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",lineWidth:1.8,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:11,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.05,paddingX:16,paddingY:16,cornerRadius:2,lineWidth:1.5,borderColor:"var(--fg)"}}});kg({name:"chalkboard",displayLabel:"Chalkboard",blurb:"Classroom chalkboard: dusty off-white strokes on green slate.",intent:"draft",colors:{bg:"#17362f",fg:"#f5f1df",line:"#ece6cf",accent:"#ffe08a",muted:"#c7d2c4",surface:"#17362f",border:"#f3ecd5"},font:"Caveat",stroke:"jittered",roughness:1.25,bowing:1,passes:2,strokeWidth:1.9,fill:"none",roles:{node:{fontSize:16,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:12,borderColor:"var(--fg)"},edge:{fontSize:13,textColor:"var(--fg)",lineWidth:1.8,strokeColor:"var(--fg)"},group:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:20,paddingY:20,lineWidth:1.7,borderColor:"var(--fg)"}},mono:!0});kg({name:"risograph",displayLabel:"Riso Print",blurb:"Two-ink poster print: warm stock, offset blue linework, coral accent, coarse hachure.",intent:"premium",colors:{bg:"#fff5df",fg:"#2b2725",line:"#1f3d5a",accent:"#ff5a5f",muted:"#876a52",surface:"#ffd166",border:"#1f3d5a"},font:"EB Garamond",stroke:"jittered",roughness:.7,bowing:.55,passes:1,strokeWidth:1.5,fill:"hachure",hachureAngle:18,hachureGap:6.5,fillWeight:.75,roles:{node:{fontSize:14,fontWeight:700,textColor:"var(--fg)",paddingX:24,paddingY:13,cornerRadius:3,borderColor:"var(--fg)"},edge:{fontSize:12,textColor:"var(--fg)",lineWidth:1.5,strokeColor:"var(--fg)"},group:{fontSize:13,fontWeight:700,textColor:"var(--fg)",paddingX:22,paddingY:18,cornerRadius:3,borderColor:"var(--fg)"}}});kg({name:"architectural-plan",displayLabel:"Plan Drafting",blurb:"Architectural plan: square technical linework, uppercase mono labels, room-like frames.",intent:"premium",colors:{bg:"#fbf7ea",fg:"#202a2f",line:"#38535e",accent:"#1f6f8b",muted:"#60727a",surface:"#fffaf0",border:"#38535e"},font:"Share Tech Mono",stroke:"jittered",roughness:.18,bowing:.25,passes:1,strokeWidth:1.45,fill:"none",roles:{node:{fontSize:12,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",paddingX:20,paddingY:10,cornerRadius:0,lineWidth:1.45,borderColor:"var(--fg)"},edge:{fontSize:10,fontWeight:700,textTransform:"uppercase",textColor:"var(--fg)",lineWidth:1.55,bendRadius:0,strokeColor:"var(--fg)"},group:{fontSize:11,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.06,paddingX:20,paddingY:20,cornerRadius:0,lineWidth:1.45,borderColor:"var(--fg)"}}});kg({name:"publication-figure",displayLabel:"Report Figure",blurb:"Polished publication figure: serif labels, confident rules, rounded boxes, one quiet accent.",intent:"premium",colors:{bg:"#fffdf8",fg:"#171512",line:"#24211d",accent:"#1d4ed8",muted:"#5f5a52",surface:"#faf5ea",border:"#24211d"},font:"EB Garamond",strokeWidth:1.45,roles:{node:{fontSize:15,fontWeight:700,textColor:"var(--fg)",paddingX:26,paddingY:14,cornerRadius:7,lineWidth:1.45,borderColor:"var(--fg)"},edge:{fontSize:12,fontWeight:600,textColor:"var(--fg)",lineWidth:1.45,bendRadius:8,strokeColor:"var(--fg)"},group:{fontSize:12,fontWeight:700,textColor:"var(--fg)",textTransform:"uppercase",letterSpacing:.08,paddingX:24,paddingY:22,cornerRadius:7,lineWidth:1.35,borderColor:"var(--fg)"}}});var vd={padding:30,actorGap:140,actorHeight:40,actorPadX:16,headerGap:26,messageRowHeight:40,selfMessageHeight:30,activationWidth:10,blockPadX:10,blockPadTop:40,blockPadBottom:8,blockHeaderExtra:28,dividerExtra:24,noteWidth:60,notePadX:12,notePadY:6,noteGap:10,boxPadX:8,boxTitleSpace:22,boxPadBottom:8},gO={nodeLabelFontSize:Mp.nodeLabel,edgeLabelFontSize:Mp.edgeLabel,groupHeaderFontSize:Mp.edgeLabel,nodeLabelFontWeight:xy.nodeLabel,edgeLabelFontWeight:xy.edgeLabel,groupHeaderFontWeight:xy.groupHeader,nodePaddingX:vd.actorPadX,nodePaddingY:vd.notePadY,nodeCornerRadius:4,nodeLineWidth:Ao.outerBox,edgeLineWidth:Ao.connector,groupCornerRadius:0,groupPaddingX:vd.blockPadX,groupPaddingY:8,groupLabelPaddingX:6,groupLineWidth:Ao.outerBox};function o6t(r,i={},s={},c){let u=Gi(i,gO,c),f=s.diagramMarginX??vd.padding,p=s.diagramMarginY??vd.padding,m=s.width??80,y=s.noteMargin??vd.noteGap,x=s.activationWidth??vd.activationWidth,v=r.actors.map(Je=>va(c,"actor",{category:Je.id},{includeFallback:!1})),S=Math.max(s.height??vd.actorHeight,...v.map(Je=>Bi("Mg",Je?.fontSize??u.nodeLabelFontSize,Je?.fontWeight??u.nodeLabelFontWeight).height+(Je?.paddingY??u.nodePaddingY)*2)),E=Bi("Mg",gO.edgeLabelFontSize,gO.edgeLabelFontWeight).height,M=Bi("Mg",u.edgeLabelFontSize,u.edgeLabelFontWeight).height,R=s.messageMargin??vd.messageRowHeight,P=Math.max(R,R+M-E),N=Math.max(vd.selfMessageHeight,P-10),F=Math.max(vd.blockPadTop,vd.blockPadTop+(u.groupHeaderFontSize-gO.groupHeaderFontSize)+(u.groupPaddingY-gO.groupPaddingY)*2),L=Math.max(vd.blockHeaderExtra,F+u.groupPaddingY+20-P);if(r.actors.length===0)return{width:0,height:0,accessibilityTitle:r.accessibilityTitle,accessibilityDescription:r.accessibilityDescription,actors:[],lifelines:[],messages:[],activations:[],blocks:[],notes:[],boxes:[],destructions:[]};let _=r.actors.map((Je,qt)=>{let $n=v[qt],Wt=$n?.textTransform??u.nodeTextTransform,Sn=$n?.fontSize??u.nodeLabelFontSize,wn=$n?.fontWeight??u.nodeLabelFontWeight,Lr=$n?.paddingX??u.nodePaddingX,yr=nr(Je.label,Wt),Mi=$n?.letterSpacing??u.nodeLetterSpacing,Ji=Math.max(0,[...yr].length-1)*Mi,Zs=gl(yr,Sn,wn)+Ji;return Math.max(Zs+Lr*2,m)}),j=new Map;for(let Je=0;Je<r.actors.length;Je++)j.set(r.actors[Je].id,Je);let z=Array.from({length:Math.max(0,r.actors.length-1)},()=>0);for(let Je of r.messages){let qt=j.get(Je.from),$n=j.get(Je.to);if(qt===void 0||$n===void 0||qt===$n)continue;let Wt=Math.min(qt,$n),Sn=Math.max(qt,$n),wn=Sn-Wt,Lr=nr(LW(Je),u.edgeTextTransform),yr=Math.max(0,[...Lr].length-1)*u.edgeLetterSpacing,Mi=(gl(Lr,u.edgeLabelFontSize,u.edgeLabelFontWeight)+yr+16)/wn;for(let Ji=Wt;Ji<Sn;Ji++)z[Ji]=Math.max(z[Ji],Mi)}let W=[],Z=f+_[0]/2;for(let Je=0;Je<r.actors.length;Je++){if(Je>0){let qt=(_[Je-1]+_[Je])/2,$n=s.actorMargin!==void 0?qt+s.actorMargin:Math.max(vd.actorGap,qt+40);Z+=Math.max($n,z[Je-1]??0)}W.push(Z)}let V=(r.boxes??[]).filter(Je=>Je.actorIds.some(qt=>j.has(qt))),H=p+(V.length>0?vd.boxTitleSpace+6:0),q=r.actors.map((Je,qt)=>({id:Je.id,label:Je.label,type:Je.type,...Je.links?{links:{...Je.links}}:{},x:W[qt],y:H,width:_[qt],height:S})),X=H+S+vd.headerGap,ee=[],oe=new Map;for(let Je of r.blocks){let qt=oe.get(Je.startIndex)??0;oe.set(Je.startIndex,Math.max(qt,L));for(let $n of Je.dividers){let Wt=oe.get($n.index)??0;oe.set($n.index,Math.max(Wt,vd.dividerExtra))}}let ge=new Map,Ne=new Map,Me=new Map;for(let Je=0;Je<r.actors.length;Je++){let qt=r.actors[Je];if(qt.createMessageIndex!==void 0&&qt.createMessageIndex<r.messages.length){let $n=ge.get(qt.createMessageIndex)??[];$n.push(Je),ge.set(qt.createMessageIndex,$n);let Wt=oe.get(qt.createMessageIndex)??0;oe.set(qt.createMessageIndex,Math.max(Wt,S/2+8))}if(qt.destroyMessageIndex!==void 0&&qt.destroyMessageIndex<r.messages.length){let $n=Ne.get(qt.destroyMessageIndex)??[];$n.push(qt.id),Ne.set(qt.destroyMessageIndex,$n)}}let ve=new Map;for(let Je of r.notes){let qt=ve.get(Je.afterIndex)??[];qt.push(Je),ve.set(Je.afterIndex,qt)}let K=[],ae=new Map,de=[],Se=4,Be=new Map;for(let Je of r.activationEvents??[]){let qt=Be.get(Je.messageIndex)??[];qt.push(Je),Be.set(Je.messageIndex,qt)}let we=(Je,qt)=>{let $n=ae.get(Je)??[];$n.push({startY:qt,depth:$n.length}),ae.set(Je,$n)},me=(Je,qt)=>{let $n=ae.get(Je);if(!$n||$n.length===0)return;let{startY:Wt,depth:Sn}=$n.pop(),wn=j.get(Je);wn===void 0||qt<=Wt||de.push({actorId:Je,x:W[wn]-x/2+Sn*Se,topY:Wt,bottomY:qt,width:x})},ce=(Je,qt)=>{for(let $n of Be.get(Je)??[])$n.kind==="activate"?we($n.actorId,qt):me($n.actorId,qt)},xe=(Je,qt)=>{let $n=nr(Je.text,u.nodeTextTransform),Wt=Math.max(vd.noteWidth,gl($n,u.nodeLabelFontSize,u.nodeLabelFontWeight)+u.nodePaddingX*2),Sn=Bi($n,u.nodeLabelFontSize,u.nodeLabelFontWeight).height+u.nodePaddingY*2,wn=j.get(Je.actorIds[0]??"")??0,Lr;if(Je.position==="left")Lr=W[wn]-_[wn]/2-Wt-y;else if(Je.position==="right")Lr=W[wn]+_[wn]/2+y;else if(Je.actorIds.length>1){let yr=j.get(Je.actorIds[Je.actorIds.length-1]??"")??wn;Lr=(W[wn]+W[yr])/2-Wt/2}else Lr=W[wn]-Wt/2;return{text:Je.text,x:Lr,y:qt,width:Wt,height:Sn,position:Je.position,actors:Je.actorIds}},Ce=ve.get(-1);if(Ce&&Ce.length>0){let Je=X;for(let qt of Ce){let $n=xe(qt,Je);K.push($n),Je+=$n.height+4}X=Math.max(X,Je+P/2)}for(let Je=0;Je<r.messages.length;Je++){let qt=r.messages[Je],$n=j.get(qt.from)??0,Wt=j.get(qt.to)??0,Sn=qt.from===qt.to,wn=oe.get(Je)??0;wn>0&&(X+=wn),ce(Je,X);let Lr=W[$n],yr=W[Wt];ee.push({from:qt.from,to:qt.to,label:LW(qt),lineStyle:qt.lineStyle,startHead:qt.startHead,endHead:qt.endHead,centralStart:qt.centralStart??!1,centralEnd:qt.centralEnd??!1,x1:Lr,x2:yr,y:X,isSelf:Sn});let Mi=Ne.get(Je);if(Mi)for(let Zs of Mi)Me.set(Zs,X);qt.activate&&we(qt.to,X),qt.deactivate&&me(qt.from,X),X+=Sn?N+P:P,ge.has(Je)&&(X+=S/2);let Ji=ve.get(Je);if(Ji&&Ji.length>0){let Zs=Sn?N:0,Da=ee[Je].y+Zs+14;for(let rf of Ji){let r1=xe(rf,Da);K.push(r1),Da+=r1.height+4}X=Math.max(X,Da+P/2)}}let $e=Math.max(ee[ee.length-1]?.y??X,X-P/2);ce(r.messages.length,$e);for(let[Je,qt]of ae)for(;qt.length>0;)me(Je,$e);for(let[Je,qt]of ge){let $n=ee[Je]?.y;if($n!==void 0)for(let Wt of qt)q[Wt].y=$n-S/2}let Ye=r.blocks.map(Je=>{let qt=ee[Je.startIndex],$n=ee[Je.endIndex],Wt=(qt?.y??X)-F,Sn=($n?.y??X)+u.groupPaddingY+12,wn=new Set;for(let Da=Je.startIndex;Da<=Je.endIndex;Da++){let rf=r.messages[Da];rf&&(wn.add(j.get(rf.from)??0),wn.add(j.get(rf.to)??0))}if(wn.size===0)for(let Da=0;Da<r.actors.length;Da++)wn.add(Da);let Lr=Math.min(...wn),yr=Math.max(...wn),Mi=W[Lr]-_[Lr]/2-u.groupPaddingX,Ji=W[yr]+_[yr]/2+u.groupPaddingX,Zs=Je.dividers.map(Da=>{let rf=ee[Da.index],r1=rf?.y??X,YA=28;if(Da.label&&rf?.label){let Or=nr(`[${Da.label}]`,u.edgeTextTransform),ro=gl(Or,u.edgeLabelFontSize,u.edgeLabelFontWeight),ka=Mi+8,Mc=ka+ro,Ql=gl(nr(rf.label,u.edgeTextTransform),u.edgeLabelFontSize,u.edgeLabelFontWeight),kd=rf.isSelf?rf.x1+36:(rf.x1+rf.x2)/2-Ql/2,Ol=kd+Ql,XA=8;Mc+XA>kd&&ka-XA<Ol&&(YA=Math.max(36,Math.ceil(24+M)))}return{y:r1-YA,label:Da.label}});return{type:Je.type,label:Je.label,x:Mi,y:Wt,width:Ji-Mi,height:Sn-Wt,dividers:Zs}}),nt=K,bt=X,st=V.map(Je=>{let qt=Je.actorIds.map(wn=>j.get(wn)).filter(wn=>wn!==void 0),$n=Math.min(...qt.map(wn=>W[wn]-_[wn]/2))-vd.boxPadX,Wt=Math.max(...qt.map(wn=>W[wn]+_[wn]/2))+vd.boxPadX;if(Je.label){let wn=gl(nr(Je.label,u.groupTextTransform),u.groupHeaderFontSize,u.groupHeaderFontWeight);Wt=Math.max(Wt,$n+wn+vd.boxPadX*2)}let Sn=p;return{label:Je.label,color:Je.color,x:$n,y:Sn,width:Wt-$n,height:bt+vd.boxPadBottom-Sn}}),an=X+p,ye=f,Ue=0;for(let Je of q)ye=Math.min(ye,Je.x-Je.width/2),Ue=Math.max(Ue,Je.x+Je.width/2);for(let Je of Ye)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of nt)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of st)ye=Math.min(ye,Je.x),Ue=Math.max(Ue,Je.x+Je.width);for(let Je of ee)if(Je.isSelf&&Je.label){let Wt=Je.x1+30+8,Sn=gl(nr(Je.label,u.edgeTextTransform),u.edgeLabelFontSize,u.edgeLabelFontWeight);Ue=Math.max(Ue,Wt+Sn+8)}let je=ye<f?f-ye:0;if(je>0){for(let Je of q)Je.x+=je;for(let Je of ee)Je.x1+=je,Je.x2+=je;for(let Je of de)Je.x+=je;for(let Je of Ye)Je.x+=je;for(let Je of nt)Je.x+=je;for(let Je of st)Je.x+=je;for(let Je=0;Je<W.length;Je++)W[Je]+=je}let Gt=r.actors.map((Je,qt)=>({actorId:Je.id,x:W[qt],topY:q[qt].y+S,bottomY:Me.get(Je.id)??an-p})),Et=r.actors.filter(Je=>Me.has(Je.id)).map(Je=>({actorId:Je.id,x:W[j.get(Je.id)],y:Me.get(Je.id)})),Ot=Ue+je+f,pn=an;return{width:Math.max(Ot,200),height:Math.max(pn,100),accessibilityTitle:r.accessibilityTitle,accessibilityDescription:r.accessibilityDescription,actors:q,lifelines:Gt,messages:ee,activations:de,blocks:Ye,notes:nt,boxes:st,destructions:Et}}var s6t=["actorMargin","width","height","diagramMarginX","diagramMarginY","messageMargin","noteMargin","activationWidth"],Fkr=[...s6t,"showSequenceNumbers"];function a6t(r){if(!r||!Ef(r,["sequence"]))return{};let i={};for(let c of s6t){let u=ps(r,["sequence",c]);typeof u=="number"&&Number.isFinite(u)&&u>=0&&(i[c]=u)}return ps(r,["sequence","showSequenceNumbers"])===!0&&(i.showSequenceNumbers=!0),i}function Bh(r,i,s,c,u){let f={};return u?(f.role="img",f["aria-roledescription"]=u):(r||i)&&(f.role="img"),r&&(f["aria-labelledby"]=s),i&&(f["aria-describedby"]=c),f}function c6t(r){let i=2166136261;for(let s=0;s<r.length;s++)i^=r.charCodeAt(s),i=Math.imul(i,16777619);return i>>>0}function Gh(...r){return c6t(r.join("|")).toString(36)}function POe(r){let i=r>>>0;return()=>{i|=0,i=i+1831565813|0;let s=Math.imul(i^i>>>15,1|i);return s=s+Math.imul(s^s>>>7,61|s)^s,((s^s>>>14)>>>0)/4294967296}}function NOe(r,i,s){return c6t(`${r>>>0}|${i}|${s}`)}function d6t(r){let{positioned:i,colors:s,resolved:c}=r,u=c.renderOptions,f=s.font??"Inter",p=u.transparent??!1,m=[],y=Gi(u,gO,c.styleFace),x=`seq-${Gh(i.width,i.height,i.actors.length,i.messages.length)}`,v=`${x}-title`,S=`${x}-desc`,E=Bh(i.accessibilityTitle,i.accessibilityDescription,v,S);m.push(Za({id:"prelude",width:i.width,height:i.height,colors:s,transparent:p,font:f,hasMonoFont:!1},Ka(i.width,i.height,s,p,E)+`
|
|
306
306
|
`+Xa(f,!1,s.shadow,s.embedFontImport)));let M=[];M.push("<defs>");let R=f6t(y);M.push(vm(R));let P=Rl(s);P&&M.push(P),M.push("</defs>"),m.push(Ad({id:"defs",markerResources:R},M.join(`
|
|
307
307
|
`))),i.accessibilityTitle&&m.push(us({id:"a11y-title",role:"chrome"},`<title id="${v}">${u6t(i.accessibilityTitle)}</title>`)),i.accessibilityDescription&&m.push(us({id:"a11y-desc",role:"chrome"},`<desc id="${S}">${u6t(i.accessibilityDescription)}</desc>`));let N=new Map;for(let W of i.boxes){let Z=W.label??"",V=N.get(Z)??0;N.set(Z,V+1),m.push(T$n(W,y,`box:${Z}#${V}`))}let F=new Map;for(let W of i.blocks){let Z=F.get(W.type)??0;F.set(W.type,Z+1),m.push(C$n(W,y,`block:${W.type}#${Z}`))}for(let W of i.lifelines)m.push(k$n(W,y));let L=new Map;for(let W of i.blocks){let Z=L.get(W.type)??0;L.set(W.type,Z+1),m.push(M$n(W,y,`block:${W.type}#${Z}`))}let _=new Map;for(let W of i.activations){let Z=_.get(W.actorId)??0;_.set(W.actorId,Z+1),m.push(S$n(W,y,`activation:${W.actorId}#${Z}`))}let j=new Map;for(let W of i.messages){let Z=`${W.from}->${W.to}`,V=j.get(Z)??0;j.set(Z,V+1),m.push(E$n(W,y,`message:${Z}#${V}`))}let z=new Map;for(let W of i.notes){let Z=`${(W.actors??[]).join(",")}@${W.position??"over"}`,V=z.get(Z)??0;z.set(Z,V+1),m.push(R$n(W,y,`note:${Z}#${V}`))}for(let W of i.destructions)m.push($$n(W,y));for(let W of i.actors)m.push(v$n(W,y,c.styleFace,u.security!=="strict"));return m.push(Qa()),{family:"sequence",width:i.width,height:i.height,colors:s,transparent:p,parts:m}}function f6t(r){let i=Ay.width,s=Ay.height,c=r.edgeStrokeColor??"var(--_arrow)",u={size:{width:i,height:s},orient:"auto-start-reverse"},f=[{x:0,y:0},{x:i,y:s/2},{x:0,y:s}];return[{...u,id:"seq-arrow",shape:"arrow",ref:{x:i,y:s/2},geometry:{kind:"polygon",points:f},paint:{fill:c}},{...u,id:"seq-arrow-open",shape:"open-arrow",ref:{x:i,y:s/2},geometry:{kind:"polyline",points:f},paint:{fill:"none",stroke:c,strokeWidth:"1"}},{...u,id:"seq-arrow-cross",shape:"cross",ref:{x:i/2,y:s/2},orient:"auto",geometry:{kind:"path",d:`M1 1 L${i-1} ${s-1} M1 ${s-1} L${i-1} 1`},paint:{fill:"none",stroke:c,strokeWidth:"1.5"}},{...u,id:"seq-arrow-half-top",shape:"open-arrow",ref:{x:i,y:s/2},geometry:{kind:"path",d:`M0 0 L${i} ${s/2}`},paint:{fill:"none",stroke:c,strokeWidth:"1"}},{...u,id:"seq-arrow-half-bottom",shape:"open-arrow",ref:{x:i,y:s/2},geometry:{kind:"path",d:`M0 ${s} L${i} ${s/2}`},paint:{fill:"none",stroke:c,strokeWidth:"1"}}]}function l6t(r,i){if(i==="none")return;let s=i==="filled"?"seq-arrow":i==="cross"?"seq-arrow-cross":i==="half-top"?"seq-arrow-half-top":i==="half-bottom"?"seq-arrow-half-bottom":"seq-arrow-open";return f6t(r).find(c=>c.id===s)}function v$n(r,i,s,c){let{id:u,x:f,y:p,width:m,height:y,label:x,type:v}=r,S=[],E=va(s,"actor",{category:u},{includeFallback:!1}),M=E?.fontSize??i.nodeLabelFontSize,R=E?.fontWeight??i.nodeLabelFontWeight,P=E?.letterSpacing??i.nodeLetterSpacing,N=E?.textTransform??i.nodeTextTransform,F=E?.lineWidth??i.nodeLineWidth,L=E?.fillColor??i.nodeFillColor??"var(--_node-fill)",_=E?.borderColor??i.nodeBorderColor??"var(--_node-stroke)",j=E?.textColor??i.nodeTextColor??"var(--_text)",z=c&&r.links?` data-links="${Ke(JSON.stringify(r.links))}" role="link" tabindex="0"`:"",W=`<g class="actor" data-id="${Ke(u)}" data-label="${Ke(x)}" data-type="${v}"${z}>`,Z=nr(x,N),V=`font-size="${M}" text-anchor="middle" font-weight="${R}"${mO(P)} fill="${Ke(j)}"`;if(v==="actor"){let H=y/24*.9,q=f-12*H,X=p+(y-24*H)/2,ee=F/H,oe=Ke(E?.borderColor??i.edgeStrokeColor??"var(--_line)");S.push({indent:2,node:us({id:`actor:${u}:icon`,role:"icon",channels:{category:u}},`<g transform="translate(${q},${X}) scale(${H})">
|
|
308
308
|
<path d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" fill="none" stroke="${oe}" stroke-width="${ee}" />
|
|
@@ -755,7 +755,7 @@ gitGraph LR:
|
|
|
755
755
|
curve a["Model A"]{4, 5, 3, 4, 4, 5}
|
|
756
756
|
curve b["Model B"]{5, 3, 4, 3, 5, 3}
|
|
757
757
|
graticule polygon
|
|
758
|
-
max 5`}];function _Dn(r){let{sceneRoles:i,narrower:s,editorDiagramType:c,editorLabel:u,editorDescription:f,editorExampleId:p,editorGlyph:m,editorExample:y,...x}=r,v=i.map(S=>S.role);return qDn({...x,...YLt[r.id],...CBt[r.id],contractVersion:PBt,identity:gm({id:`family:${r.id}`,kind:"family",version:"1.0.0",compatibility:{core:"^0.3.0"},provenance:{owner:"agentic-mermaid",source:"built-in"}}),collisionPriority:100,aliases:r.aliases??[],semanticRoles:v,scenePrimitiveEvidence:DDn(r.id,i,["src/__tests__/section-a-family-descriptor-conformance.test.ts"]),capabilityEvidence:FDn(r.id)})}var h4r=Object.freeze(ALe.map(({id:r,label:i,headers:s,narrower:c,editorDiagramType:u,editorLabel:f,editorDescription:p,editorExampleId:m,editorGlyph:y,editorExample:x,example:v})=>Object.freeze({id:r,label:i,headers:s,narrower:c,editorDiagramType:u,editorLabel:f,editorDescription:p,editorExampleId:m,editorGlyph:y,editorExample:x,example:v})));var NBt=new Set(ALe.map(r=>r.id));function Aw(r){return NBt.has(r)}function jDn(r){return my(r)?.kind==="family"}function VE(r){return r.trim().toLowerCase()}function TBt(r){return typeof r=="string"&&r!==""&&r===r.trim()&&!/[;\u0000-\u001f\u007f]/.test(r)}var IBt=new Map(qW.families.flatMap(r=>r.headers.map(i=>[VE(i.value),r.id]))),BDn=Object.freeze(["contractVersion","identity","id","upstreamId","label","headers","aliases","maturity","collisionPriority","detect","detectLoose","config","applicableRenderOptions","semanticRoles","semanticChannels","scenePrimitiveEvidence","capabilityEvidence","example","normalizeRequest","extractLabels","parse","buildSourceMap","serialize","mutate","verify","layout","projectPositioned","renderSvg","lowerScene","renderAscii"]),GDn=!0,$Bt=1e5;function Y6(r,i){if(typeof r!="object"&&typeof r!="function"||r===null)return;let s=r;return Object.fromEntries(i.map(c=>[c,Reflect.get(s,c)]))}function qA(r,i,s){if(!Array.isArray(r))return r;let c=Reflect.get(r,"length");if(!Number.isSafeInteger(c)||c<0)throw new TypeError(`Family descriptor ${i} must have a non-negative integer length`);if(c>$Bt)throw new RangeError(`Family descriptor ${i} exceeds the ${$Bt}-item limit`);let u=[];for(let f=0;f<c;f++){if(!Object.prototype.hasOwnProperty.call(r,f))throw new TypeError(`Family descriptor ${i} must not be sparse`);u.push(s(Reflect.get(r,String(f)),f))}return Object.freeze(u)}function zDn(r){return typeof r!="object"&&typeof r!="function"||r===null?r:Object.freeze(Object.fromEntries(Object.entries(r)))}function WDn(r){let i=Y6(r,["id","kind","version","compatibility","provenance"]);if(!i)return r;let s=zDn(i.compatibility),c=Y6(i.provenance,["owner","source","reference"]),u=c?Object.freeze(c):i.provenance;return gm({id:i.id,kind:i.kind,version:i.version,compatibility:s,provenance:u})}function HDn(r){let i=Y6(r,["section","keys","noopKeys"]);if(!i)return r;let s=qA(i.keys,"config.keys",u=>u),c=i.noopKeys===void 0?void 0:qA(i.noopKeys,"config.noopKeys",u=>u);return Object.freeze({section:i.section,keys:s,...c===void 0?{}:{noopKeys:c}})}function UDn(r,i){let s=Y6(r,["role","primitive","applicability","realization","evidence","diagnostic"]);return s?Object.freeze({role:s.role,primitive:s.primitive,applicability:s.applicability,realization:s.realization,evidence:qA(s.evidence,`scenePrimitiveEvidence[${i}].evidence`,c=>c),...s.diagnostic===void 0?{}:{diagnostic:s.diagnostic}}):r}function JDn(r,i){let s=Y6(r,["capability","state","evidence"]);return s?Object.freeze({capability:s.capability,state:s.state,evidence:qA(s.evidence,`capabilityEvidence[${i}].evidence`,c=>c)}):r}function qDn(r){let i=Y6(r,BDn);if(!i)throw new TypeError("Family descriptor must be an object");let s=Object.fromEntries(Object.entries(i).filter(([,c])=>c!==void 0));return Object.freeze({...s,identity:WDn(i.identity),headers:qA(i.headers,"headers",c=>c),aliases:qA(i.aliases,"aliases",c=>c),semanticRoles:qA(i.semanticRoles,"semanticRoles",c=>c),semanticChannels:i.semanticChannels===void 0?Object.freeze([]):qA(i.semanticChannels,"semanticChannels",c=>c),scenePrimitiveEvidence:qA(i.scenePrimitiveEvidence,"scenePrimitiveEvidence",UDn),capabilityEvidence:qA(i.capabilityEvidence,"capabilityEvidence",JDn),...i.config===void 0?{}:{config:HDn(i.config)},...i.applicableRenderOptions===void 0?{}:{applicableRenderOptions:qA(i.applicableRenderOptions,"applicableRenderOptions",c=>c)}})}function RBt(r,i){let s=VE(i);return DBt(r,s)?r.detect(s)||!!r.detectLoose?.(s):!1}var VDn=new Set(["native","source-preserved","diagnosed","not-applicable","absent"]);function YDn(r){return Object.prototype.hasOwnProperty.call(eI,r)?!0:/^[a-z0-9][a-z0-9._/-]*:[a-z0-9][a-z0-9._/-]*$/i.test(r)}function OBt(r){return r.layout!==void 0&&r.projectPositioned!==void 0}function XDn(r){return r.layout!==void 0&&r.lowerScene!==void 0}function LBt(r){return r.layout!==void 0&&(r.lowerScene!==void 0||r.renderSvg!==void 0)}function KDn(r){return OBt(r)&&LBt(r)}function QDn(r,i){switch(i){case"detection":return"native";case"source-preservation":return r.parse?"native":"source-preserved";case"parse":return r.parse?"native":"source-preserved";case"serialize":return r.serialize?"native":"source-preserved";case"mutation":return Aw(r.id)&&r.mutate?"native":"diagnosed";case"verify":return KDn(r)&&(Aw(r.id)||r.verify!==void 0)?"native":"diagnosed";case"layout":return OBt(r)?"native":r.layout||r.projectPositioned?"diagnosed":"absent";case"scene":return XDn(r)?"native":r.lowerScene?"diagnosed":"absent";case"svg":return LBt(r)?"native":"absent";case"terminal":return r.renderAscii?"native":"absent"}}function ZDn(r,i,s=Hle){if(!r||typeof r!="object")throw new TypeError("Family descriptor must be an object");if(!Aw(r.id)&&!jDn(r.id))throw new Error(`External family id "${r.id}" must use the "family:" namespace`);if(!Aw(r.id)&&(r.id==="family:unknown"||r.id.startsWith("family:upstream/")||NBt.has(r.id.slice(7))))throw new Error(`External family id "${r.id}" is reserved by the core family/preservation envelope`);let c=Aw(r.id)?`family:${r.id}`:r.id;if(r.identity?.id!==c||r.identity.kind!=="family")throw new Error(`Family descriptor identity must be "${c}" with kind "family"`);if(r.contractVersion!==PBt)throw new Error(`Family "${r.id}" uses an unsupported descriptor contract`);if(gm({id:r.identity.id,kind:r.identity.kind,version:r.identity.version,compatibility:r.identity.compatibility,provenance:r.identity.provenance}),Aw(r.id)||(iF(r.identity,"core"),r.lowerScene&&iF(r.identity,"scene")),!r.label)throw new Error(`Family "${r.id}" must declare version, provenance, and label`);if(!Array.isArray(r.headers)||r.headers.length===0||r.headers.some(N=>!TBt(N)))throw new Error(`Family "${r.id}" must declare at least one canonical header without surrounding whitespace, controls, or semicolons`);if(typeof r.detect!="function")throw new Error(`Family "${r.id}" must declare a detector`);if(!Number.isSafeInteger(r.collisionPriority))throw new Error(`Family "${r.id}" must declare an integer collisionPriority`);if(!Array.isArray(r.aliases)||r.aliases.some(N=>!TBt(N)))throw new Error(`Family "${r.id}" must declare canonical aliases without surrounding whitespace, controls, or semicolons`);let u=new Set([...r.headers,...r.aliases].map(VE));for(let[N,F]of s){if(N===i)continue;let L=[...F.headers,...F.aliases].map(VE).find(_=>u.has(_));if(L)throw new Error(`Family header "${L}" is already owned by "${N}"`)}let f=r.aliases.find(N=>IBt.has(VE(N)));if(f)throw new Error(`Family "${r.id}" alias "${f}" is an upstream public header and must be declared in headers`);if(new Set(r.headers.map(N=>IBt.get(VE(N))).filter(N=>N!==void 0)).size>1)throw new Error(`Family "${r.id}" cannot claim upstream headers from multiple Mermaid families`);if(r.config){if(!r.config.section.trim())throw new Error(`Family "${r.id}" config contract requires a section`);if(!Array.isArray(r.config.keys)||r.config.keys.some(N=>typeof N!="string"||!N.trim()))throw new Error(`Family "${r.id}" config contract requires non-empty keys`);if(new Set(r.config.keys).size!==r.config.keys.length)throw new Error(`Family "${r.id}" config contract repeats a key`);if(r.config.noopKeys&&(new Set(r.config.noopKeys).size!==r.config.noopKeys.length||r.config.noopKeys.some(N=>!r.config.keys.includes(N))))throw new Error(`Family "${r.id}" config noopKeys must be unique members of keys`)}if(!Array.isArray(r.semanticRoles))throw new Error(`Family "${r.id}" must declare a semanticRoles array`);if(!Array.isArray(r.semanticChannels))throw new Error(`Family "${r.id}" must declare a semanticChannels array`);if(!Array.isArray(r.scenePrimitiveEvidence))throw new Error(`Family "${r.id}" must declare a scenePrimitiveEvidence array`);if(!Array.isArray(r.capabilityEvidence))throw new Error(`Family "${r.id}" must declare a capabilityEvidence array`);if(new Set(r.semanticChannels).size!==r.semanticChannels.length)throw new Error(`Family "${r.id}" declares duplicate semantic channels`);let m=r.semanticChannels.find(N=>!cPt.includes(N));if(m)throw new Error(`Family "${r.id}" declares unknown semantic channel "${String(m)}"`);if(new Set(r.semanticRoles).size!==r.semanticRoles.length)throw new Error(`Family "${r.id}" declares duplicate Scene roles`);let y=r.semanticRoles.find(N=>!YDn(N));if(y)throw new Error(`Family "${r.id}" declares invalid Scene role "${y}"`);if(r.lowerScene&&r.renderSvg)throw new Error(`Family "${r.id}" must declare one graphical waist: lowerScene, or renderSvg as an extension fallback, not both`);if(r.lowerScene&&r.semanticRoles.length===0)throw new Error(`Family "${r.id}" has a Scene lowering but declares no Scene roles`);if(!r.lowerScene&&r.semanticRoles.length>0)throw new Error(`Family "${r.id}" declares Scene roles without a Scene lowering`);let x=new Set;for(let N of r.scenePrimitiveEvidence){if(!r.semanticRoles.includes(N.role))throw new Error(`Family "${r.id}" has primitive evidence for undeclared Scene role "${N.role}"`);if(!bE.includes(N.primitive))throw new Error(`Family "${r.id}" has evidence for unknown Scene primitive "${String(N.primitive)}"`);let F=`${N.role}\0${N.primitive}`;if(x.has(F))throw new Error(`Family "${r.id}" repeats primitive evidence for "${N.role}/${N.primitive}"`);if(x.add(F),N.applicability!=="applicable"&&N.applicability!=="not-applicable")throw new Error(`Family "${r.id}" has invalid applicability for "${N.role}/${N.primitive}"`);if(!vW.includes(N.realization))throw new Error(`Family "${r.id}" has invalid realization for "${N.role}/${N.primitive}"`);if(!Array.isArray(N.evidence)||N.evidence.length===0||N.evidence.some(L=>typeof L!="string"||!L.trim()))throw new Error(`Family "${r.id}" must cite evidence for "${N.role}/${N.primitive}"`);if(new Set(N.evidence).size!==N.evidence.length)throw new Error(`Family "${r.id}" repeats evidence for "${N.role}/${N.primitive}"`);if(N.applicability==="applicable"&&N.realization==="unsupported")throw new Error(`Family "${r.id}" cannot mark applicable cell "${N.role}/${N.primitive}" unsupported`);if(N.applicability==="not-applicable"&&(N.realization!=="unsupported"||!N.diagnostic?.trim()))throw new Error(`Family "${r.id}" must make negative cell "${N.role}/${N.primitive}" explicitly unsupported and diagnosed`)}for(let N of r.semanticRoles)for(let F of bE)if(!x.has(`${N}\0${F}`))throw new Error(`Family "${r.id}" lacks primitive evidence for "${N}/${F}"`);let v=new Map;for(let N of r.capabilityEvidence){if(!Wle.includes(N.capability))throw new Error(`Family "${r.id}" declares unknown capability "${String(N.capability)}"`);if(v.has(N.capability))throw new Error(`Family "${r.id}" declares duplicate evidence for capability "${N.capability}"`);if(!VDn.has(N.state))throw new Error(`Family "${r.id}" declares invalid state "${String(N.state)}" for capability "${N.capability}"`);if(!Array.isArray(N.evidence)||N.evidence.length===0||N.evidence.some(F=>typeof F!="string"||F.trim()===""))throw new Error(`Family "${r.id}" capability "${N.capability}" must cite at least one evidence path`);if(new Set(N.evidence).size!==N.evidence.length)throw new Error(`Family "${r.id}" capability "${N.capability}" repeats an evidence path`);v.set(N.capability,N)}let S=Wle.find(N=>!v.has(N));if(S)throw new Error(`Family "${r.id}" lacks evidence for capability "${S}"`);if(r.projectPositioned&&!r.layout)throw new Error(`Family "${r.id}" cannot project a positioned artifact without a layout hook`);if(r.renderSvg&&!r.layout)throw new Error(`Family "${r.id}" cannot render SVG without a layout hook`);if(r.lowerScene&&!r.layout)throw new Error(`Family "${r.id}" cannot lower Scene without a layout hook`);for(let N of Wle){let F=v.get(N).state,L=QDn(r,N);if(F!==L)throw new Error(`Family "${r.id}" capability "${N}" claims "${F}" but its hooks require "${L}"`)}if(!Aw(r.id)&&r.capabilityEvidence.some(N=>N.state==="native")){if(typeof r.example!="string"||r.example.trim()==="")throw new Error(`External family "${r.id}" must declare a canonical example for executable native conformance`);if(Fh(r.example,xLe)>xLe)throw new Error(`External family "${r.id}" example exceeds the ${xLe}-byte conformance limit`)}let E=[...r.headers,...r.aliases].map(VE);if(new Set(E).size!==E.length)throw new Error(`Family "${r.id}" declares duplicate headers`);let M=E.find(N=>!r.detect(N));if(M)throw new Error(`Family detector for "${r.id}" does not recognize its declared header "${M}"`);let R=r.detectLoose?E.find(N=>!r.detectLoose(N)):void 0;if(R)throw new Error(`Family loose detector for "${r.id}" does not recognize its declared header "${R}"`);let P=new Set(E);for(let[N,F]of s){if(N===i)continue;if(F.identity.id===r.identity.id)throw new kN(r.identity,F.identity);let L=[...F.headers,...F.aliases].map(VE),_=L.find(W=>P.has(W));if(_)throw new Error(`Family header "${_}" is already owned by "${N}"`);let j=L.find(W=>RBt(r,W));if(j)throw new Error(`Family detector for "${r.id}" overlaps header "${j}" owned by "${N}"`);let z=E.find(W=>RBt(F,W));if(z)throw new Error(`Family header "${z}" overlaps the detector owned by "${N}"`)}}function e5n(){let r=new Map;for(let i of ALe){let s=_Dn(i);ZDn(s,void 0,r),r.set(s.id,s)}return r}var Hle=e5n();function t5n(r){return Object.freeze({...r,capabilities:Object.freeze(r.capabilities.map(i=>Object.freeze({...i})))})}function n5n(r){return t5n({version:MBt,familyId:r.id,example:r.example,passed:!0,capabilities:Wle.map(i=>({capability:i,declaredState:r.capabilityEvidence.find(s=>s.capability===i).state,status:"passed",witnessId:`family-builtin-suite@${MBt}/${r.id}/${i}`}))})}var g4r=new Map(Array.from(Hle.values(),r=>[r.id,n5n(r)]));function Ole(r){return Hle.get(r)}function DBt(r,i){return[...r.headers,...r.aliases].some(s=>{let c=VE(s);if(!i.startsWith(c))return!1;let u=i[c.length];return u===void 0||u===":"||/\s/.test(u)})}function r5n(r,i="strict"){let s=qPe(r),c=Array.from(Hle.values()).sort((u,f)=>f.collisionPriority-u.collisionPriority||dc(u.id,f.id));for(let u of c){if(!DBt(u,s))continue;if((i==="loose"?u.detectLoose??u.detect:u.detect)(s))return u}return null}zNt(r5n);WNt(Ole);var vLe=1;function i5n(...r){return r.some(i=>typeof i=="number"&&i>0)}function FBt(r,i,s={},c,u={}){let f=[];u.controlsReplaced&&_Bt(f);let p=r.appearance;for(let W of p.unsafeThemeColorKeys??[])f.push({code:"TERMINAL_UNSAFE_COLOR_REJECTED",feature:`mermaid-theme.${W}`,message:`Mermaid theme variable "${W}" was rejected because it is not a safe non-fetching CSS color.`});for(let W of r.explicitOptionFields){let Z=RO[W];if(Z.terminal==="consumed")continue;let V=Z.terminal==="not-applicable";f.push({code:V?"TERMINAL_RENDER_OPTION_NOT_APPLICABLE":"TERMINAL_RENDER_OPTION_PROJECTED",feature:`render-option:${W}`,message:`Render option "${W}" ${V?"does not apply to":"is projected for"} terminal output: ${Z.terminalNote??"the terminal adapter has no pixel-equivalent representation"}.`})}let m=p.face,y=Object.values(p.style?.roles??{});i5n(m?.node?.cornerRadius,m?.group?.cornerRadius,m?.edge?.bendRadius,...y.flatMap(W=>[W?.cornerRadius,W?.bendRadius]))&&f.push({code:"TERMINAL_RADIUS_PROJECTED",feature:"corner-and-bend-radius",message:"Terminal cells cannot represent continuous corner or connector bend radius; topology is preserved with box/line glyphs."});let x=[m?.text,m?.node,m?.edge,m?.group];(p.font!=="Inter"||m?.group?.fontFamily!==void 0||x.some(W=>W?.fontSize!==void 0||W?.fontWeight!==void 0||W?.letterSpacing!==void 0||W?.textTransform!==void 0)||y.some(W=>W?.fontFamily!==void 0||W?.fontSize!==void 0||W?.fontWeight!==void 0||W?.letterSpacing!==void 0||W?.textTransform!==void 0))&&f.push({code:"TERMINAL_TYPOGRAPHY_PROJECTED",feature:"typography",message:"Terminal output preserves text, hierarchy and emphasis but projects font family, size, weight and tracking to terminal cells."});let v=m?.node?.fillColor!==void 0||m?.group?.fillColor!==void 0||m?.group?.headerFillColor!==void 0||y.some(W=>W?.fillColor!==void 0||W?.headerFillColor!==void 0),S=m?.text?.textColor!==void 0||m?.node?.textColor!==void 0||m?.node?.borderColor!==void 0||m?.edge?.textColor!==void 0||m?.edge?.strokeColor!==void 0||m?.group?.textColor!==void 0||m?.group?.borderColor!==void 0||y.some(W=>W?.textColor!==void 0||W?.borderColor!==void 0||W?.strokeColor!==void 0);(p.colors.shadow===!0||v)&&f.push({code:"TERMINAL_ELEVATION_PROJECTED",feature:"elevation",message:"Terminal output does not render graphical shadow or layered surface elevation; grouping remains explicit in borders and labels."}),p.style?.stroke&&p.style.stroke!=="crisp"&&f.push({code:"TERMINAL_STROKE_CHARACTER_PROJECTED",feature:"stroke-character",message:"Jittered/freehand stroke character projects to deterministic terminal line patterns."}),p.style?.fill&&p.style.fill!=="none"&&p.style.fill!=="solid"&&f.push({code:"TERMINAL_FILL_PROJECTED",feature:"fill-treatment",message:"Graphical fill texture projects to category/status labels and terminal symbols."}),v&&f.push({code:"TERMINAL_FILL_PROJECTED",feature:"role-surface-fill",message:"Per-role node, group, and header surface fills project to terminal labels, symbols, and borders."}),S&&f.push({code:"TERMINAL_ROLE_PAINT_PROJECTED",feature:"role-paint",message:"Per-role text, border, and connector paints project through the smaller terminal theme palette."}),y.some(W=>W?.cue!==void 0&&W.cue!=="none")&&f.push({code:"TERMINAL_ROLE_CUE_PROJECTED",feature:"role-non-color-cue",message:"Per-role non-color cues project to the terminal label, symbol, marker, and line-pattern vocabulary."});let E={bg:"#ffffff",fg:"#27272a",line:"#71717a",accent:"#52525b",muted:"#71717a",surface:"#ffffff",border:"#a1a1aa"},M=(W,Z,V)=>{let H=Ks(W),q=H?Ep(H):null;return q?Sp(q[0],q[1],q[2]):(f.push({code:H?"TERMINAL_COLOR_UNREPRESENTABLE":"TERMINAL_UNSAFE_COLOR_REJECTED",feature:V,message:H?`Color ${V} is safe CSS but cannot be resolved to terminal sRGB; fallback ${Z} was used.`:`Color ${V} was rejected because it is not a safe non-fetching CSS color; fallback ${Z} was used.`}),Z)},R=p.colors,P={...R,bg:M(R.bg,E.bg,"appearance.bg"),fg:M(R.fg,E.fg,"appearance.fg"),...R.line===void 0?{}:{line:M(R.line,E.line,"appearance.line")},...R.accent===void 0?{}:{accent:M(R.accent,E.accent,"appearance.accent")},...R.muted===void 0?{}:{muted:M(R.muted,E.muted,"appearance.muted")},...R.surface===void 0?{}:{surface:M(R.surface,E.surface,"appearance.surface")},...R.border===void 0?{}:{border:M(R.border,E.border,"appearance.border")}},N=B4e(P),F=["fg","border","line","arrow","accent","bg","corner","junction"];for(let W of F){let Z=s[W];if(Z===void 0)continue;let V=N[W]??E.fg;N[W]=M(Z,V,`terminal-theme.${W}`)}let L=Object.freeze(N),_=o5n(c,f,u.connectorProjectionFailed===!0),z={version:vLe,colorMode:i,theme:L,diagnostics:f,semanticFallbacks:["labels","symbols","markers","line-patterns"],connectorProjection:_};return Object.freeze({...z,diagnostics:Object.freeze(f),digest:UA(z)})}function _Bt(r){r.some(i=>i.code==="TERMINAL_CONTROL_CHARACTERS_REPLACED")||r.push({code:"TERMINAL_CONTROL_CHARACTERS_REPLACED",feature:"terminal-text",message:"User-derived C0/C1 terminal control characters were replaced with inert single-cell text before layout and color projection."})}function jBt(r){let i=[];for(let s of r)s.kind==="connector"?i.push(s):s.kind==="group"&&i.push(...jBt(s.children.map(c=>c.node)));return i}function o5n(r,i,s=!1){let c=r?jBt(r.parts):[],u={line:0,polyline:0,path:0},f={},p=new Set,m=new Set,y={start:0,mid:0,end:0},x=0,v=[],S=new Map,E=!1,M=N=>{let F=JI(N);return F!==N&&(E=!0),F},R=N=>{if(typeof N=="string")return M(N);if(Array.isArray(N))return Object.freeze(N.map(R));if(N===null||typeof N!="object")return N;let F=Object.entries(N).map(([L,_])=>[L,R(_)]);return Object.freeze(Object.fromEntries(F))};for(let N of c){let F=N.terminalProjection,L=Object.freeze({id:M(N.id),role:N.role,...R(F)});v.push(L),u[F.topology]++,f[F.realization]=(f[F.realization]??0)+1,p.add(M(N.relationship.kind)),m.add(N.relationship.direction),y.start+=F.markerPlacements.start.length,y.mid+=F.markerPlacements.mid.length,y.end+=F.markerPlacements.end.length,x+=F.labels.length;let _=`${F.realization}:${F.topology}`,j=S.get(_);j?j.count++:S.set(_,{realization:F.realization,topology:F.topology,count:1});for(let z of F.diagnostics)i.push({code:"TERMINAL_CONNECTOR_DECLARED_LIMITATION",feature:`connector:${M(N.id??N.relationship.kind)}`,message:M(z)})}E&&_Bt(i),r===null&&i.push({code:"TERMINAL_CONNECTOR_PROJECTION_UNAVAILABLE",feature:"connectors",message:s?"Optional Scene connector projection failed; native terminal rendering continued independently.":"The family renders terminal output but exposes no Scene connector projection evidence."});for(let N of[...S.values()].sort((F,L)=>dc(`${F.realization}:${F.topology}`,`${L.realization}:${L.topology}`))){if(N.realization==="native")continue;let F=N.realization==="unsupported";i.push({code:F?"TERMINAL_CONNECTOR_UNSUPPORTED":"TERMINAL_CONNECTOR_PROJECTED",feature:`connectors:${N.topology}`,message:`${N.count} ${N.topology} connector${N.count===1?"":"s"} declare ${N.realization} terminal realization; their typed semantics are supplied to the terminal adapter and receipt.`})}let P={evidence:r===void 0?"not-evaluated":r===null?"unavailable":"scene",count:c.length,topologies:Object.freeze(u),realizations:Object.freeze(f),relationships:Object.freeze([...p].sort()),directions:Object.freeze([...m].sort()),markerPositions:Object.freeze(y),labelCount:x,connectors:Object.freeze(v),capabilities:$oe()};return Object.freeze({...P,digest:UA(P)})}var BBt=new WeakSet;function Ule(r){if(BBt.has(r))return;BBt.add(r);let i=JA(r),s=i.configDiagnostics??[];if(s.length===0)return;let c=i.onConfigDiagnostic??(u=>console.warn(u.message));for(let u of s)c(u)}function GBt(r,i,s="scene.parts"){r.forEach((c,u)=>{let f=`${s}[${u}]`;i(c,f),c.kind==="group"&&GBt(c.children.map(p=>p.node),i,`${f}.children`)})}function Jle(r,i){let s=r.id.startsWith("family:"),c=KH(i,gOe,"scene");PI(c,{mode:s?"external":"internal"});let u=c,f=[];s&&u.family!==r.id&&f.push({code:"SCENE_DOCUMENT",path:"scene.family",message:`external family "${r.id}" emitted a document owned by "${u.family}"`});let p=new Set(r.semanticRoles),m=new Set(r.semanticChannels),y=new Map(r.scenePrimitiveEvidence.map(x=>[`${x.role}\0${x.primitive}`,x]));if(GBt(u.parts,(x,v)=>{if(!p.has(x.role)){f.push({code:"SCENE_PRIMITIVE_CLAIM",path:`${v}.role`,message:`emitted undeclared role "${x.role}"`});return}for(let S of Object.keys(x.channels??{}))m.has(S)||f.push({code:"SCENE_CHANNEL_CLAIM",path:`${v}.channels.${S}`,message:`emitted undeclared semantic channel "${S}"`});for(let S of kPt(x)){let E=y.get(`${x.role}\0${S}`);(!E||E.applicability!=="applicable"||E.realization==="unsupported")&&f.push({code:"SCENE_PRIMITIVE_CLAIM",path:v,message:`emitted undeclared ${x.role}/${S} primitive`})}}),f.length>0)throw new cO(Object.freeze(f));return u}var SLe=5,ELe=1,CLe=5,MLe=1,s5n=Object.freeze(["none","ansi16","ansi256","truecolor","html"]);var WBt=Object.freeze(["auto",...s5n]),a5n=new Set(WBt),HBt=Object.freeze(["fg","border","line","arrow","accent","bg","corner","junction"]),c5n=new Set(HBt),l5n=new Set(["useAscii","paddingX","paddingY","boxBorderPadding","colorMode","theme","maxWidth","targetWidth"]),Dp=class extends TypeError{constructor(s,c){super(c);this.code=s;this.name="TerminalOutputPolicyError"}code};function UBt(r){if(r===null||typeof r!="object"||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function u5n(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function YE(r,i){let s=r[i];if(u5n(r,i)&&s===null)throw new Dp("INVALID_FIELD",`terminal ${i} must be omitted instead of null`);return s}function kLe(r,i,s){if(r===void 0)return s;if(typeof r!="number"||!Number.isFinite(r)||!Number.isInteger(r)||r<0)throw new Dp("INVALID_FIELD",`terminal ${i} must be a non-negative finite integer`);return r}function zBt(r,i){if(r!==void 0){if(typeof r!="number"||!Number.isFinite(r)||!Number.isInteger(r)||r<=0)throw new Dp("INVALID_FIELD",`terminal ${i} must be a positive finite integer`);return r}}function d5n(r){if(r===void 0)return Object.freeze({});if(!UBt(r))throw new Dp("INVALID_FIELD","terminal theme must be a plain object");let i=Reflect.ownKeys(r).filter(c=>typeof c!="string"||!c5n.has(c));if(i.length>0)throw new Dp("INVALID_FIELD",`terminal theme has unknown field "${String(i[0])}"`);let s={};for(let c of HBt){let u=YE(r,c);if(u!==void 0){if(typeof u!="string")throw new Dp("INVALID_FIELD",`terminal theme.${c} must be a string`);s[c]=u}}return Object.freeze(s)}function qle(r={}){if(!UBt(r))throw new Dp("INVALID_INPUT","terminal output policy must be a plain object");let i=Reflect.ownKeys(r).filter(v=>typeof v!="string"||!l5n.has(v));if(i.length>0)throw new Dp("INVALID_FIELD",`terminal output policy has unknown field "${String(i[0])}"`);let s=YE(r,"useAscii");if(s!==void 0&&typeof s!="boolean")throw new Dp("INVALID_FIELD","terminal useAscii must be a boolean");let c=YE(r,"colorMode");if(c!==void 0&&(typeof c!="string"||!a5n.has(c)))throw new Dp("INVALID_FIELD",`terminal colorMode must be one of ${WBt.join(", ")}`);let u=c,f=zBt(YE(r,"maxWidth"),"maxWidth"),p=zBt(YE(r,"targetWidth"),"targetWidth");if(f!==void 0&&p!==void 0)throw new Dp("WIDTH_CONFLICT","terminal maxWidth and targetWidth are mutually exclusive");let m=s??!1,y=u===void 0||u==="auto"?G4e():u,x={version:1,useAscii:m,paddingX:kLe(YE(r,"paddingX"),"paddingX",p===void 0?SLe:ELe),paddingY:kLe(YE(r,"paddingY"),"paddingY",CLe),boxBorderPadding:kLe(YE(r,"boxBorderPadding"),"boxBorderPadding",MLe),colorMode:y,theme:d5n(YE(r,"theme")),...f===void 0?{}:{maxWidth:f},...p===void 0?{}:{targetWidth:p}};return Object.freeze(x)}function f5n(r){let i=s=>s===void 0?void 0:xg(s);return{...r,bg:xg(r.bg)??"#ffffff",fg:xg(r.fg)??"#27272a",line:i(r.line),accent:i(r.accent),muted:i(r.muted),surface:i(r.surface),border:i(r.border),font:NA(r.font)??"Inter"}}var FU=class extends Error{constructor(s,c,u,f){super(`Cannot render ${u} within ${s} terminal cells; required width is ${c} (${f}).`);this.requestedWidth=s;this.requiredWidth=c;this.family=u;this.reason=f;this.name="AsciiWidthError"}requestedWidth;requiredWidth;family;reason;code="ASCII_TARGET_WIDTH_IMPOSSIBLE"};function JBt(r,i={}){return TLe(r,i).text}function TLe(r,i={}){let s=ck(r),c=s.source,u=qle({useAscii:i.useAscii,paddingX:i.paddingX,paddingY:i.paddingY,boxBorderPadding:i.boxBorderPadding,colorMode:i.colorMode,theme:i.theme,maxWidth:i.maxWidth,targetWidth:i.targetWidth}),f={useAscii:u.useAscii,paddingX:u.paddingX,paddingY:u.paddingY,boxBorderPadding:u.boxBorderPadding,graphDirection:"TD"},p=u.colorMode,m=u.targetWidth??u.maxWidth,y=p==="html"?"html":u.useAscii?"ascii":"unicode",x=Object.fromEntries([...lk,...fLe].filter(X=>i[X]!==void 0).map(X=>[X,i[X]])),v=zle(c,x,y,u,{expectedFamilyId:s.expectedFamilyId});Ule(v);let S=h5n(v.source),E=m?g5n(S.source,m,u.targetWidth!==void 0):S.source,R=JA(v).family,P=V6(v),N=R.id,F=null,L=!1;if(R.lowerScene&&R.layout)try{let X=LU(N,v,S.source);F=Jle(R,R.lowerScene({positioned:X.positioned,colors:f5n(v.appearance.colors),resolved:P}))}catch{L=!0}let _=FBt(v,p,u.theme,F,{controlsReplaced:S.controlsReplaced,connectorProjectionFailed:L});for(let X of _.diagnostics)i.onProjectionDiagnostic?.(X);let j=_.theme,z=R.renderAscii({source:E,...P,config:f,colorMode:p,theme:j,connectorProjection:_.connectorProjection.connectors,options:{maxWidth:m,targetWidth:u.targetWidth,ganttToday:P.renderOptions.ganttToday}}),W=Aw(R.id)?p==="html"?D4e(z):z:r9t(z,p),Z=Gle(v,_.diagnostics),V=u.targetWidth;if(V===void 0)return{text:W,receipt:Z,terminalStyle:_,outputPolicy:u};let H=W.split(`
|
|
758
|
+
max 5`}];function _Dn(r){let{sceneRoles:i,narrower:s,editorDiagramType:c,editorLabel:u,editorDescription:f,editorExampleId:p,editorGlyph:m,editorExample:y,...x}=r,v=i.map(S=>S.role);return qDn({...x,...YLt[r.id],...CBt[r.id],contractVersion:PBt,identity:gm({id:`family:${r.id}`,kind:"family",version:"1.0.0",compatibility:{core:"^0.4.0"},provenance:{owner:"agentic-mermaid",source:"built-in"}}),collisionPriority:100,aliases:r.aliases??[],semanticRoles:v,scenePrimitiveEvidence:DDn(r.id,i,["src/__tests__/section-a-family-descriptor-conformance.test.ts"]),capabilityEvidence:FDn(r.id)})}var h4r=Object.freeze(ALe.map(({id:r,label:i,headers:s,narrower:c,editorDiagramType:u,editorLabel:f,editorDescription:p,editorExampleId:m,editorGlyph:y,editorExample:x,example:v})=>Object.freeze({id:r,label:i,headers:s,narrower:c,editorDiagramType:u,editorLabel:f,editorDescription:p,editorExampleId:m,editorGlyph:y,editorExample:x,example:v})));var NBt=new Set(ALe.map(r=>r.id));function Aw(r){return NBt.has(r)}function jDn(r){return my(r)?.kind==="family"}function VE(r){return r.trim().toLowerCase()}function TBt(r){return typeof r=="string"&&r!==""&&r===r.trim()&&!/[;\u0000-\u001f\u007f]/.test(r)}var IBt=new Map(qW.families.flatMap(r=>r.headers.map(i=>[VE(i.value),r.id]))),BDn=Object.freeze(["contractVersion","identity","id","upstreamId","label","headers","aliases","maturity","collisionPriority","detect","detectLoose","config","applicableRenderOptions","semanticRoles","semanticChannels","scenePrimitiveEvidence","capabilityEvidence","example","normalizeRequest","extractLabels","parse","buildSourceMap","serialize","mutate","verify","layout","projectPositioned","renderSvg","lowerScene","renderAscii"]),GDn=!0,$Bt=1e5;function Y6(r,i){if(typeof r!="object"&&typeof r!="function"||r===null)return;let s=r;return Object.fromEntries(i.map(c=>[c,Reflect.get(s,c)]))}function qA(r,i,s){if(!Array.isArray(r))return r;let c=Reflect.get(r,"length");if(!Number.isSafeInteger(c)||c<0)throw new TypeError(`Family descriptor ${i} must have a non-negative integer length`);if(c>$Bt)throw new RangeError(`Family descriptor ${i} exceeds the ${$Bt}-item limit`);let u=[];for(let f=0;f<c;f++){if(!Object.prototype.hasOwnProperty.call(r,f))throw new TypeError(`Family descriptor ${i} must not be sparse`);u.push(s(Reflect.get(r,String(f)),f))}return Object.freeze(u)}function zDn(r){return typeof r!="object"&&typeof r!="function"||r===null?r:Object.freeze(Object.fromEntries(Object.entries(r)))}function WDn(r){let i=Y6(r,["id","kind","version","compatibility","provenance"]);if(!i)return r;let s=zDn(i.compatibility),c=Y6(i.provenance,["owner","source","reference"]),u=c?Object.freeze(c):i.provenance;return gm({id:i.id,kind:i.kind,version:i.version,compatibility:s,provenance:u})}function HDn(r){let i=Y6(r,["section","keys","noopKeys"]);if(!i)return r;let s=qA(i.keys,"config.keys",u=>u),c=i.noopKeys===void 0?void 0:qA(i.noopKeys,"config.noopKeys",u=>u);return Object.freeze({section:i.section,keys:s,...c===void 0?{}:{noopKeys:c}})}function UDn(r,i){let s=Y6(r,["role","primitive","applicability","realization","evidence","diagnostic"]);return s?Object.freeze({role:s.role,primitive:s.primitive,applicability:s.applicability,realization:s.realization,evidence:qA(s.evidence,`scenePrimitiveEvidence[${i}].evidence`,c=>c),...s.diagnostic===void 0?{}:{diagnostic:s.diagnostic}}):r}function JDn(r,i){let s=Y6(r,["capability","state","evidence"]);return s?Object.freeze({capability:s.capability,state:s.state,evidence:qA(s.evidence,`capabilityEvidence[${i}].evidence`,c=>c)}):r}function qDn(r){let i=Y6(r,BDn);if(!i)throw new TypeError("Family descriptor must be an object");let s=Object.fromEntries(Object.entries(i).filter(([,c])=>c!==void 0));return Object.freeze({...s,identity:WDn(i.identity),headers:qA(i.headers,"headers",c=>c),aliases:qA(i.aliases,"aliases",c=>c),semanticRoles:qA(i.semanticRoles,"semanticRoles",c=>c),semanticChannels:i.semanticChannels===void 0?Object.freeze([]):qA(i.semanticChannels,"semanticChannels",c=>c),scenePrimitiveEvidence:qA(i.scenePrimitiveEvidence,"scenePrimitiveEvidence",UDn),capabilityEvidence:qA(i.capabilityEvidence,"capabilityEvidence",JDn),...i.config===void 0?{}:{config:HDn(i.config)},...i.applicableRenderOptions===void 0?{}:{applicableRenderOptions:qA(i.applicableRenderOptions,"applicableRenderOptions",c=>c)}})}function RBt(r,i){let s=VE(i);return DBt(r,s)?r.detect(s)||!!r.detectLoose?.(s):!1}var VDn=new Set(["native","source-preserved","diagnosed","not-applicable","absent"]);function YDn(r){return Object.prototype.hasOwnProperty.call(eI,r)?!0:/^[a-z0-9][a-z0-9._/-]*:[a-z0-9][a-z0-9._/-]*$/i.test(r)}function OBt(r){return r.layout!==void 0&&r.projectPositioned!==void 0}function XDn(r){return r.layout!==void 0&&r.lowerScene!==void 0}function LBt(r){return r.layout!==void 0&&(r.lowerScene!==void 0||r.renderSvg!==void 0)}function KDn(r){return OBt(r)&&LBt(r)}function QDn(r,i){switch(i){case"detection":return"native";case"source-preservation":return r.parse?"native":"source-preserved";case"parse":return r.parse?"native":"source-preserved";case"serialize":return r.serialize?"native":"source-preserved";case"mutation":return Aw(r.id)&&r.mutate?"native":"diagnosed";case"verify":return KDn(r)&&(Aw(r.id)||r.verify!==void 0)?"native":"diagnosed";case"layout":return OBt(r)?"native":r.layout||r.projectPositioned?"diagnosed":"absent";case"scene":return XDn(r)?"native":r.lowerScene?"diagnosed":"absent";case"svg":return LBt(r)?"native":"absent";case"terminal":return r.renderAscii?"native":"absent"}}function ZDn(r,i,s=Hle){if(!r||typeof r!="object")throw new TypeError("Family descriptor must be an object");if(!Aw(r.id)&&!jDn(r.id))throw new Error(`External family id "${r.id}" must use the "family:" namespace`);if(!Aw(r.id)&&(r.id==="family:unknown"||r.id.startsWith("family:upstream/")||NBt.has(r.id.slice(7))))throw new Error(`External family id "${r.id}" is reserved by the core family/preservation envelope`);let c=Aw(r.id)?`family:${r.id}`:r.id;if(r.identity?.id!==c||r.identity.kind!=="family")throw new Error(`Family descriptor identity must be "${c}" with kind "family"`);if(r.contractVersion!==PBt)throw new Error(`Family "${r.id}" uses an unsupported descriptor contract`);if(gm({id:r.identity.id,kind:r.identity.kind,version:r.identity.version,compatibility:r.identity.compatibility,provenance:r.identity.provenance}),Aw(r.id)||(iF(r.identity,"core"),r.lowerScene&&iF(r.identity,"scene")),!r.label)throw new Error(`Family "${r.id}" must declare version, provenance, and label`);if(!Array.isArray(r.headers)||r.headers.length===0||r.headers.some(N=>!TBt(N)))throw new Error(`Family "${r.id}" must declare at least one canonical header without surrounding whitespace, controls, or semicolons`);if(typeof r.detect!="function")throw new Error(`Family "${r.id}" must declare a detector`);if(!Number.isSafeInteger(r.collisionPriority))throw new Error(`Family "${r.id}" must declare an integer collisionPriority`);if(!Array.isArray(r.aliases)||r.aliases.some(N=>!TBt(N)))throw new Error(`Family "${r.id}" must declare canonical aliases without surrounding whitespace, controls, or semicolons`);let u=new Set([...r.headers,...r.aliases].map(VE));for(let[N,F]of s){if(N===i)continue;let L=[...F.headers,...F.aliases].map(VE).find(_=>u.has(_));if(L)throw new Error(`Family header "${L}" is already owned by "${N}"`)}let f=r.aliases.find(N=>IBt.has(VE(N)));if(f)throw new Error(`Family "${r.id}" alias "${f}" is an upstream public header and must be declared in headers`);if(new Set(r.headers.map(N=>IBt.get(VE(N))).filter(N=>N!==void 0)).size>1)throw new Error(`Family "${r.id}" cannot claim upstream headers from multiple Mermaid families`);if(r.config){if(!r.config.section.trim())throw new Error(`Family "${r.id}" config contract requires a section`);if(!Array.isArray(r.config.keys)||r.config.keys.some(N=>typeof N!="string"||!N.trim()))throw new Error(`Family "${r.id}" config contract requires non-empty keys`);if(new Set(r.config.keys).size!==r.config.keys.length)throw new Error(`Family "${r.id}" config contract repeats a key`);if(r.config.noopKeys&&(new Set(r.config.noopKeys).size!==r.config.noopKeys.length||r.config.noopKeys.some(N=>!r.config.keys.includes(N))))throw new Error(`Family "${r.id}" config noopKeys must be unique members of keys`)}if(!Array.isArray(r.semanticRoles))throw new Error(`Family "${r.id}" must declare a semanticRoles array`);if(!Array.isArray(r.semanticChannels))throw new Error(`Family "${r.id}" must declare a semanticChannels array`);if(!Array.isArray(r.scenePrimitiveEvidence))throw new Error(`Family "${r.id}" must declare a scenePrimitiveEvidence array`);if(!Array.isArray(r.capabilityEvidence))throw new Error(`Family "${r.id}" must declare a capabilityEvidence array`);if(new Set(r.semanticChannels).size!==r.semanticChannels.length)throw new Error(`Family "${r.id}" declares duplicate semantic channels`);let m=r.semanticChannels.find(N=>!cPt.includes(N));if(m)throw new Error(`Family "${r.id}" declares unknown semantic channel "${String(m)}"`);if(new Set(r.semanticRoles).size!==r.semanticRoles.length)throw new Error(`Family "${r.id}" declares duplicate Scene roles`);let y=r.semanticRoles.find(N=>!YDn(N));if(y)throw new Error(`Family "${r.id}" declares invalid Scene role "${y}"`);if(r.lowerScene&&r.renderSvg)throw new Error(`Family "${r.id}" must declare one graphical waist: lowerScene, or renderSvg as an extension fallback, not both`);if(r.lowerScene&&r.semanticRoles.length===0)throw new Error(`Family "${r.id}" has a Scene lowering but declares no Scene roles`);if(!r.lowerScene&&r.semanticRoles.length>0)throw new Error(`Family "${r.id}" declares Scene roles without a Scene lowering`);let x=new Set;for(let N of r.scenePrimitiveEvidence){if(!r.semanticRoles.includes(N.role))throw new Error(`Family "${r.id}" has primitive evidence for undeclared Scene role "${N.role}"`);if(!bE.includes(N.primitive))throw new Error(`Family "${r.id}" has evidence for unknown Scene primitive "${String(N.primitive)}"`);let F=`${N.role}\0${N.primitive}`;if(x.has(F))throw new Error(`Family "${r.id}" repeats primitive evidence for "${N.role}/${N.primitive}"`);if(x.add(F),N.applicability!=="applicable"&&N.applicability!=="not-applicable")throw new Error(`Family "${r.id}" has invalid applicability for "${N.role}/${N.primitive}"`);if(!vW.includes(N.realization))throw new Error(`Family "${r.id}" has invalid realization for "${N.role}/${N.primitive}"`);if(!Array.isArray(N.evidence)||N.evidence.length===0||N.evidence.some(L=>typeof L!="string"||!L.trim()))throw new Error(`Family "${r.id}" must cite evidence for "${N.role}/${N.primitive}"`);if(new Set(N.evidence).size!==N.evidence.length)throw new Error(`Family "${r.id}" repeats evidence for "${N.role}/${N.primitive}"`);if(N.applicability==="applicable"&&N.realization==="unsupported")throw new Error(`Family "${r.id}" cannot mark applicable cell "${N.role}/${N.primitive}" unsupported`);if(N.applicability==="not-applicable"&&(N.realization!=="unsupported"||!N.diagnostic?.trim()))throw new Error(`Family "${r.id}" must make negative cell "${N.role}/${N.primitive}" explicitly unsupported and diagnosed`)}for(let N of r.semanticRoles)for(let F of bE)if(!x.has(`${N}\0${F}`))throw new Error(`Family "${r.id}" lacks primitive evidence for "${N}/${F}"`);let v=new Map;for(let N of r.capabilityEvidence){if(!Wle.includes(N.capability))throw new Error(`Family "${r.id}" declares unknown capability "${String(N.capability)}"`);if(v.has(N.capability))throw new Error(`Family "${r.id}" declares duplicate evidence for capability "${N.capability}"`);if(!VDn.has(N.state))throw new Error(`Family "${r.id}" declares invalid state "${String(N.state)}" for capability "${N.capability}"`);if(!Array.isArray(N.evidence)||N.evidence.length===0||N.evidence.some(F=>typeof F!="string"||F.trim()===""))throw new Error(`Family "${r.id}" capability "${N.capability}" must cite at least one evidence path`);if(new Set(N.evidence).size!==N.evidence.length)throw new Error(`Family "${r.id}" capability "${N.capability}" repeats an evidence path`);v.set(N.capability,N)}let S=Wle.find(N=>!v.has(N));if(S)throw new Error(`Family "${r.id}" lacks evidence for capability "${S}"`);if(r.projectPositioned&&!r.layout)throw new Error(`Family "${r.id}" cannot project a positioned artifact without a layout hook`);if(r.renderSvg&&!r.layout)throw new Error(`Family "${r.id}" cannot render SVG without a layout hook`);if(r.lowerScene&&!r.layout)throw new Error(`Family "${r.id}" cannot lower Scene without a layout hook`);for(let N of Wle){let F=v.get(N).state,L=QDn(r,N);if(F!==L)throw new Error(`Family "${r.id}" capability "${N}" claims "${F}" but its hooks require "${L}"`)}if(!Aw(r.id)&&r.capabilityEvidence.some(N=>N.state==="native")){if(typeof r.example!="string"||r.example.trim()==="")throw new Error(`External family "${r.id}" must declare a canonical example for executable native conformance`);if(Fh(r.example,xLe)>xLe)throw new Error(`External family "${r.id}" example exceeds the ${xLe}-byte conformance limit`)}let E=[...r.headers,...r.aliases].map(VE);if(new Set(E).size!==E.length)throw new Error(`Family "${r.id}" declares duplicate headers`);let M=E.find(N=>!r.detect(N));if(M)throw new Error(`Family detector for "${r.id}" does not recognize its declared header "${M}"`);let R=r.detectLoose?E.find(N=>!r.detectLoose(N)):void 0;if(R)throw new Error(`Family loose detector for "${r.id}" does not recognize its declared header "${R}"`);let P=new Set(E);for(let[N,F]of s){if(N===i)continue;if(F.identity.id===r.identity.id)throw new kN(r.identity,F.identity);let L=[...F.headers,...F.aliases].map(VE),_=L.find(W=>P.has(W));if(_)throw new Error(`Family header "${_}" is already owned by "${N}"`);let j=L.find(W=>RBt(r,W));if(j)throw new Error(`Family detector for "${r.id}" overlaps header "${j}" owned by "${N}"`);let z=E.find(W=>RBt(F,W));if(z)throw new Error(`Family header "${z}" overlaps the detector owned by "${N}"`)}}function e5n(){let r=new Map;for(let i of ALe){let s=_Dn(i);ZDn(s,void 0,r),r.set(s.id,s)}return r}var Hle=e5n();function t5n(r){return Object.freeze({...r,capabilities:Object.freeze(r.capabilities.map(i=>Object.freeze({...i})))})}function n5n(r){return t5n({version:MBt,familyId:r.id,example:r.example,passed:!0,capabilities:Wle.map(i=>({capability:i,declaredState:r.capabilityEvidence.find(s=>s.capability===i).state,status:"passed",witnessId:`family-builtin-suite@${MBt}/${r.id}/${i}`}))})}var g4r=new Map(Array.from(Hle.values(),r=>[r.id,n5n(r)]));function Ole(r){return Hle.get(r)}function DBt(r,i){return[...r.headers,...r.aliases].some(s=>{let c=VE(s);if(!i.startsWith(c))return!1;let u=i[c.length];return u===void 0||u===":"||/\s/.test(u)})}function r5n(r,i="strict"){let s=qPe(r),c=Array.from(Hle.values()).sort((u,f)=>f.collisionPriority-u.collisionPriority||dc(u.id,f.id));for(let u of c){if(!DBt(u,s))continue;if((i==="loose"?u.detectLoose??u.detect:u.detect)(s))return u}return null}zNt(r5n);WNt(Ole);var vLe=1;function i5n(...r){return r.some(i=>typeof i=="number"&&i>0)}function FBt(r,i,s={},c,u={}){let f=[];u.controlsReplaced&&_Bt(f);let p=r.appearance;for(let W of p.unsafeThemeColorKeys??[])f.push({code:"TERMINAL_UNSAFE_COLOR_REJECTED",feature:`mermaid-theme.${W}`,message:`Mermaid theme variable "${W}" was rejected because it is not a safe non-fetching CSS color.`});for(let W of r.explicitOptionFields){let Z=RO[W];if(Z.terminal==="consumed")continue;let V=Z.terminal==="not-applicable";f.push({code:V?"TERMINAL_RENDER_OPTION_NOT_APPLICABLE":"TERMINAL_RENDER_OPTION_PROJECTED",feature:`render-option:${W}`,message:`Render option "${W}" ${V?"does not apply to":"is projected for"} terminal output: ${Z.terminalNote??"the terminal adapter has no pixel-equivalent representation"}.`})}let m=p.face,y=Object.values(p.style?.roles??{});i5n(m?.node?.cornerRadius,m?.group?.cornerRadius,m?.edge?.bendRadius,...y.flatMap(W=>[W?.cornerRadius,W?.bendRadius]))&&f.push({code:"TERMINAL_RADIUS_PROJECTED",feature:"corner-and-bend-radius",message:"Terminal cells cannot represent continuous corner or connector bend radius; topology is preserved with box/line glyphs."});let x=[m?.text,m?.node,m?.edge,m?.group];(p.font!=="Inter"||m?.group?.fontFamily!==void 0||x.some(W=>W?.fontSize!==void 0||W?.fontWeight!==void 0||W?.letterSpacing!==void 0||W?.textTransform!==void 0)||y.some(W=>W?.fontFamily!==void 0||W?.fontSize!==void 0||W?.fontWeight!==void 0||W?.letterSpacing!==void 0||W?.textTransform!==void 0))&&f.push({code:"TERMINAL_TYPOGRAPHY_PROJECTED",feature:"typography",message:"Terminal output preserves text, hierarchy and emphasis but projects font family, size, weight and tracking to terminal cells."});let v=m?.node?.fillColor!==void 0||m?.group?.fillColor!==void 0||m?.group?.headerFillColor!==void 0||y.some(W=>W?.fillColor!==void 0||W?.headerFillColor!==void 0),S=m?.text?.textColor!==void 0||m?.node?.textColor!==void 0||m?.node?.borderColor!==void 0||m?.edge?.textColor!==void 0||m?.edge?.strokeColor!==void 0||m?.group?.textColor!==void 0||m?.group?.borderColor!==void 0||y.some(W=>W?.textColor!==void 0||W?.borderColor!==void 0||W?.strokeColor!==void 0);(p.colors.shadow===!0||v)&&f.push({code:"TERMINAL_ELEVATION_PROJECTED",feature:"elevation",message:"Terminal output does not render graphical shadow or layered surface elevation; grouping remains explicit in borders and labels."}),p.style?.stroke&&p.style.stroke!=="crisp"&&f.push({code:"TERMINAL_STROKE_CHARACTER_PROJECTED",feature:"stroke-character",message:"Jittered/freehand stroke character projects to deterministic terminal line patterns."}),p.style?.fill&&p.style.fill!=="none"&&p.style.fill!=="solid"&&f.push({code:"TERMINAL_FILL_PROJECTED",feature:"fill-treatment",message:"Graphical fill texture projects to category/status labels and terminal symbols."}),v&&f.push({code:"TERMINAL_FILL_PROJECTED",feature:"role-surface-fill",message:"Per-role node, group, and header surface fills project to terminal labels, symbols, and borders."}),S&&f.push({code:"TERMINAL_ROLE_PAINT_PROJECTED",feature:"role-paint",message:"Per-role text, border, and connector paints project through the smaller terminal theme palette."}),y.some(W=>W?.cue!==void 0&&W.cue!=="none")&&f.push({code:"TERMINAL_ROLE_CUE_PROJECTED",feature:"role-non-color-cue",message:"Per-role non-color cues project to the terminal label, symbol, marker, and line-pattern vocabulary."});let E={bg:"#ffffff",fg:"#27272a",line:"#71717a",accent:"#52525b",muted:"#71717a",surface:"#ffffff",border:"#a1a1aa"},M=(W,Z,V)=>{let H=Ks(W),q=H?Ep(H):null;return q?Sp(q[0],q[1],q[2]):(f.push({code:H?"TERMINAL_COLOR_UNREPRESENTABLE":"TERMINAL_UNSAFE_COLOR_REJECTED",feature:V,message:H?`Color ${V} is safe CSS but cannot be resolved to terminal sRGB; fallback ${Z} was used.`:`Color ${V} was rejected because it is not a safe non-fetching CSS color; fallback ${Z} was used.`}),Z)},R=p.colors,P={...R,bg:M(R.bg,E.bg,"appearance.bg"),fg:M(R.fg,E.fg,"appearance.fg"),...R.line===void 0?{}:{line:M(R.line,E.line,"appearance.line")},...R.accent===void 0?{}:{accent:M(R.accent,E.accent,"appearance.accent")},...R.muted===void 0?{}:{muted:M(R.muted,E.muted,"appearance.muted")},...R.surface===void 0?{}:{surface:M(R.surface,E.surface,"appearance.surface")},...R.border===void 0?{}:{border:M(R.border,E.border,"appearance.border")}},N=B4e(P),F=["fg","border","line","arrow","accent","bg","corner","junction"];for(let W of F){let Z=s[W];if(Z===void 0)continue;let V=N[W]??E.fg;N[W]=M(Z,V,`terminal-theme.${W}`)}let L=Object.freeze(N),_=o5n(c,f,u.connectorProjectionFailed===!0),z={version:vLe,colorMode:i,theme:L,diagnostics:f,semanticFallbacks:["labels","symbols","markers","line-patterns"],connectorProjection:_};return Object.freeze({...z,diagnostics:Object.freeze(f),digest:UA(z)})}function _Bt(r){r.some(i=>i.code==="TERMINAL_CONTROL_CHARACTERS_REPLACED")||r.push({code:"TERMINAL_CONTROL_CHARACTERS_REPLACED",feature:"terminal-text",message:"User-derived C0/C1 terminal control characters were replaced with inert single-cell text before layout and color projection."})}function jBt(r){let i=[];for(let s of r)s.kind==="connector"?i.push(s):s.kind==="group"&&i.push(...jBt(s.children.map(c=>c.node)));return i}function o5n(r,i,s=!1){let c=r?jBt(r.parts):[],u={line:0,polyline:0,path:0},f={},p=new Set,m=new Set,y={start:0,mid:0,end:0},x=0,v=[],S=new Map,E=!1,M=N=>{let F=JI(N);return F!==N&&(E=!0),F},R=N=>{if(typeof N=="string")return M(N);if(Array.isArray(N))return Object.freeze(N.map(R));if(N===null||typeof N!="object")return N;let F=Object.entries(N).map(([L,_])=>[L,R(_)]);return Object.freeze(Object.fromEntries(F))};for(let N of c){let F=N.terminalProjection,L=Object.freeze({id:M(N.id),role:N.role,...R(F)});v.push(L),u[F.topology]++,f[F.realization]=(f[F.realization]??0)+1,p.add(M(N.relationship.kind)),m.add(N.relationship.direction),y.start+=F.markerPlacements.start.length,y.mid+=F.markerPlacements.mid.length,y.end+=F.markerPlacements.end.length,x+=F.labels.length;let _=`${F.realization}:${F.topology}`,j=S.get(_);j?j.count++:S.set(_,{realization:F.realization,topology:F.topology,count:1});for(let z of F.diagnostics)i.push({code:"TERMINAL_CONNECTOR_DECLARED_LIMITATION",feature:`connector:${M(N.id??N.relationship.kind)}`,message:M(z)})}E&&_Bt(i),r===null&&i.push({code:"TERMINAL_CONNECTOR_PROJECTION_UNAVAILABLE",feature:"connectors",message:s?"Optional Scene connector projection failed; native terminal rendering continued independently.":"The family renders terminal output but exposes no Scene connector projection evidence."});for(let N of[...S.values()].sort((F,L)=>dc(`${F.realization}:${F.topology}`,`${L.realization}:${L.topology}`))){if(N.realization==="native")continue;let F=N.realization==="unsupported";i.push({code:F?"TERMINAL_CONNECTOR_UNSUPPORTED":"TERMINAL_CONNECTOR_PROJECTED",feature:`connectors:${N.topology}`,message:`${N.count} ${N.topology} connector${N.count===1?"":"s"} declare ${N.realization} terminal realization; their typed semantics are supplied to the terminal adapter and receipt.`})}let P={evidence:r===void 0?"not-evaluated":r===null?"unavailable":"scene",count:c.length,topologies:Object.freeze(u),realizations:Object.freeze(f),relationships:Object.freeze([...p].sort()),directions:Object.freeze([...m].sort()),markerPositions:Object.freeze(y),labelCount:x,connectors:Object.freeze(v),capabilities:$oe()};return Object.freeze({...P,digest:UA(P)})}var BBt=new WeakSet;function Ule(r){if(BBt.has(r))return;BBt.add(r);let i=JA(r),s=i.configDiagnostics??[];if(s.length===0)return;let c=i.onConfigDiagnostic??(u=>console.warn(u.message));for(let u of s)c(u)}function GBt(r,i,s="scene.parts"){r.forEach((c,u)=>{let f=`${s}[${u}]`;i(c,f),c.kind==="group"&&GBt(c.children.map(p=>p.node),i,`${f}.children`)})}function Jle(r,i){let s=r.id.startsWith("family:"),c=KH(i,gOe,"scene");PI(c,{mode:s?"external":"internal"});let u=c,f=[];s&&u.family!==r.id&&f.push({code:"SCENE_DOCUMENT",path:"scene.family",message:`external family "${r.id}" emitted a document owned by "${u.family}"`});let p=new Set(r.semanticRoles),m=new Set(r.semanticChannels),y=new Map(r.scenePrimitiveEvidence.map(x=>[`${x.role}\0${x.primitive}`,x]));if(GBt(u.parts,(x,v)=>{if(!p.has(x.role)){f.push({code:"SCENE_PRIMITIVE_CLAIM",path:`${v}.role`,message:`emitted undeclared role "${x.role}"`});return}for(let S of Object.keys(x.channels??{}))m.has(S)||f.push({code:"SCENE_CHANNEL_CLAIM",path:`${v}.channels.${S}`,message:`emitted undeclared semantic channel "${S}"`});for(let S of kPt(x)){let E=y.get(`${x.role}\0${S}`);(!E||E.applicability!=="applicable"||E.realization==="unsupported")&&f.push({code:"SCENE_PRIMITIVE_CLAIM",path:v,message:`emitted undeclared ${x.role}/${S} primitive`})}}),f.length>0)throw new cO(Object.freeze(f));return u}var SLe=5,ELe=1,CLe=5,MLe=1,s5n=Object.freeze(["none","ansi16","ansi256","truecolor","html"]);var WBt=Object.freeze(["auto",...s5n]),a5n=new Set(WBt),HBt=Object.freeze(["fg","border","line","arrow","accent","bg","corner","junction"]),c5n=new Set(HBt),l5n=new Set(["useAscii","paddingX","paddingY","boxBorderPadding","colorMode","theme","maxWidth","targetWidth"]),Dp=class extends TypeError{constructor(s,c){super(c);this.code=s;this.name="TerminalOutputPolicyError"}code};function UBt(r){if(r===null||typeof r!="object"||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function u5n(r,i){return Object.prototype.hasOwnProperty.call(r,i)}function YE(r,i){let s=r[i];if(u5n(r,i)&&s===null)throw new Dp("INVALID_FIELD",`terminal ${i} must be omitted instead of null`);return s}function kLe(r,i,s){if(r===void 0)return s;if(typeof r!="number"||!Number.isFinite(r)||!Number.isInteger(r)||r<0)throw new Dp("INVALID_FIELD",`terminal ${i} must be a non-negative finite integer`);return r}function zBt(r,i){if(r!==void 0){if(typeof r!="number"||!Number.isFinite(r)||!Number.isInteger(r)||r<=0)throw new Dp("INVALID_FIELD",`terminal ${i} must be a positive finite integer`);return r}}function d5n(r){if(r===void 0)return Object.freeze({});if(!UBt(r))throw new Dp("INVALID_FIELD","terminal theme must be a plain object");let i=Reflect.ownKeys(r).filter(c=>typeof c!="string"||!c5n.has(c));if(i.length>0)throw new Dp("INVALID_FIELD",`terminal theme has unknown field "${String(i[0])}"`);let s={};for(let c of HBt){let u=YE(r,c);if(u!==void 0){if(typeof u!="string")throw new Dp("INVALID_FIELD",`terminal theme.${c} must be a string`);s[c]=u}}return Object.freeze(s)}function qle(r={}){if(!UBt(r))throw new Dp("INVALID_INPUT","terminal output policy must be a plain object");let i=Reflect.ownKeys(r).filter(v=>typeof v!="string"||!l5n.has(v));if(i.length>0)throw new Dp("INVALID_FIELD",`terminal output policy has unknown field "${String(i[0])}"`);let s=YE(r,"useAscii");if(s!==void 0&&typeof s!="boolean")throw new Dp("INVALID_FIELD","terminal useAscii must be a boolean");let c=YE(r,"colorMode");if(c!==void 0&&(typeof c!="string"||!a5n.has(c)))throw new Dp("INVALID_FIELD",`terminal colorMode must be one of ${WBt.join(", ")}`);let u=c,f=zBt(YE(r,"maxWidth"),"maxWidth"),p=zBt(YE(r,"targetWidth"),"targetWidth");if(f!==void 0&&p!==void 0)throw new Dp("WIDTH_CONFLICT","terminal maxWidth and targetWidth are mutually exclusive");let m=s??!1,y=u===void 0||u==="auto"?G4e():u,x={version:1,useAscii:m,paddingX:kLe(YE(r,"paddingX"),"paddingX",p===void 0?SLe:ELe),paddingY:kLe(YE(r,"paddingY"),"paddingY",CLe),boxBorderPadding:kLe(YE(r,"boxBorderPadding"),"boxBorderPadding",MLe),colorMode:y,theme:d5n(YE(r,"theme")),...f===void 0?{}:{maxWidth:f},...p===void 0?{}:{targetWidth:p}};return Object.freeze(x)}function f5n(r){let i=s=>s===void 0?void 0:xg(s);return{...r,bg:xg(r.bg)??"#ffffff",fg:xg(r.fg)??"#27272a",line:i(r.line),accent:i(r.accent),muted:i(r.muted),surface:i(r.surface),border:i(r.border),font:NA(r.font)??"Inter"}}var FU=class extends Error{constructor(s,c,u,f){super(`Cannot render ${u} within ${s} terminal cells; required width is ${c} (${f}).`);this.requestedWidth=s;this.requiredWidth=c;this.family=u;this.reason=f;this.name="AsciiWidthError"}requestedWidth;requiredWidth;family;reason;code="ASCII_TARGET_WIDTH_IMPOSSIBLE"};function JBt(r,i={}){return TLe(r,i).text}function TLe(r,i={}){let s=ck(r),c=s.source,u=qle({useAscii:i.useAscii,paddingX:i.paddingX,paddingY:i.paddingY,boxBorderPadding:i.boxBorderPadding,colorMode:i.colorMode,theme:i.theme,maxWidth:i.maxWidth,targetWidth:i.targetWidth}),f={useAscii:u.useAscii,paddingX:u.paddingX,paddingY:u.paddingY,boxBorderPadding:u.boxBorderPadding,graphDirection:"TD"},p=u.colorMode,m=u.targetWidth??u.maxWidth,y=p==="html"?"html":u.useAscii?"ascii":"unicode",x=Object.fromEntries([...lk,...fLe].filter(X=>i[X]!==void 0).map(X=>[X,i[X]])),v=zle(c,x,y,u,{expectedFamilyId:s.expectedFamilyId});Ule(v);let S=h5n(v.source),E=m?g5n(S.source,m,u.targetWidth!==void 0):S.source,R=JA(v).family,P=V6(v),N=R.id,F=null,L=!1;if(R.lowerScene&&R.layout)try{let X=LU(N,v,S.source);F=Jle(R,R.lowerScene({positioned:X.positioned,colors:f5n(v.appearance.colors),resolved:P}))}catch{L=!0}let _=FBt(v,p,u.theme,F,{controlsReplaced:S.controlsReplaced,connectorProjectionFailed:L});for(let X of _.diagnostics)i.onProjectionDiagnostic?.(X);let j=_.theme,z=R.renderAscii({source:E,...P,config:f,colorMode:p,theme:j,connectorProjection:_.connectorProjection.connectors,options:{maxWidth:m,targetWidth:u.targetWidth,ganttToday:P.renderOptions.ganttToday}}),W=Aw(R.id)?p==="html"?D4e(z):z:r9t(z,p),Z=Gle(v,_.diagnostics),V=u.targetWidth;if(V===void 0)return{text:W,receipt:Z,terminalStyle:_,outputPolicy:u};let H=W.split(`
|
|
759
759
|
`).map(X=>X.trimEnd()).join(`
|
|
760
760
|
`).trimEnd(),q=Math.max(0,...H.split(`
|
|
761
761
|
`).map(X=>L4e(X,p)));if(q>V){let X=Vl(E.body).some(ee=>yn(ee)>V);throw new FU(V,q,N,X?"UNBREAKABLE_GRAPHEME":"MINIMUM_GEOMETRY")}return{text:H,receipt:Z,terminalStyle:_,outputPolicy:u}}function h5n(r){let i=!1,s=y=>{let x=JI(y,!0);return x!==y&&(i=!0),x},c=y=>{if(typeof y=="string"){let x=JI(y);return x!==y&&(i=!0),x}return Array.isArray(y)?Object.freeze(y.map(c)):y!==null&&typeof y=="object"?Object.freeze(Object.fromEntries(Object.entries(y).map(([x,v])=>[c(x),c(v)]))):y},u=s(r.body),f=yH(u),p=J2(u),m={...r,originalText:s(r.originalText),text:f.join(`
|
|
@@ -775,4 +775,4 @@ ${jLe(x,r.transform)}`}function j5n(r){return Eo(r).replace(/<text /g,'<text pai
|
|
|
775
775
|
`):null},I7t=GLe("hybrid",sFn);var aFn=Object.freeze([jh,u7t,I7t]);for(let r of aFn)vFt(r);function $7t(r,i){return r.match(new RegExp(`\\b${i}\\s*=\\s*(["'])(.*?)\\1`,"i"))?.[2]}function VLe(r,i){return $7t(r,"style")?.match(new RegExp(`(?:^|;)\\s*${i}\\s*:\\s*([^;]+)`,"i"))?.[1]?.trim()??$7t(r,i)}function R7t(r,i,s){let c=Number.parseFloat(VLe(r,i)??"");return Number.isFinite(c)?c:s}function P7t(r,i){let s=VLe(r,"font-weight")?.trim().toLowerCase();if(s===void 0)return i;if(s==="normal")return 400;if(s==="bold")return 700;if(s==="bolder")return i<350?400:i<550?700:900;if(s==="lighter")return i<550?100:i<750?400:700;let c=Number.parseFloat(s);return Number.isFinite(c)?c:i}function cFn(r){return/\bclass\s*=\s*(["'])[^"']*\bmono\b/i.test(r)||/(?:^|[,\s])monospace(?:[,\s]|$)/i.test(VLe(r,"font-family")??"")}function lFn(r,i){let s="";for(let c=i+1;c<r.length;c++){let u=r[c];if(s){u===s&&(s="");continue}if(u==='"'||u==="'"){s=u;continue}if(u===">")return c}return-1}function uFn(r){let i=[],s=[],c=0;for(;c<r.length;){let u=r.indexOf("<",c);if(u<0){s.length>0&&c<r.length&&s[s.length-1].children.push({kind:"text-node",raw:r.slice(c)}),c=r.length;break}if(s.length>0&&u>c&&s[s.length-1].children.push({kind:"text-node",raw:r.slice(c,u)}),r.startsWith("<!--",u)){let v=r.indexOf("-->",u+4);if(v<0)return null;c=v+3;continue}let f=lFn(r,u);if(f<0)return null;let p=r.slice(u,f+1);if(/^<\?/.test(p)||/^<!/.test(p)){c=f+1;continue}let m=p.match(/^<\/\s*([\w:-]+)\s*>$/);if(m){let v=s.pop();if(!v||v.name!==m[1].toLowerCase())return null;v.closeStart=u,c=f+1;continue}let y=p.match(/^<\s*([\w:-]+)([\s\S]*?)(\/?)>$/);if(!y)return null;let x={kind:"element",name:y[1].toLowerCase(),attrs:y[2],openEnd:f+1,closeStart:f+1,children:[]};s.length>0?s[s.length-1].children.push(x):i.push(x),y[3]!=="/"&&s.push(x),c=f+1}return s.length===0?i:null}function N7t(r){return r.children.filter(i=>i.kind==="element")}function O7t(r,i){let s=i.name==="b"||i.name==="strong";return{size:R7t(i.attrs,"font-size",r.size),weight:s?Math.max(700,P7t(i.attrs,r.weight)):P7t(i.attrs,r.weight),letterSpacing:R7t(i.attrs,"letter-spacing",r.letterSpacing),mono:r.mono||cFn(i.attrs)}}function YLe(r,i){return new RegExp(`\\b${i}\\s*=`,"i").test(r)}function XLe(r){return r.name==="tspan"&&["x","y","dx","dy"].some(i=>YLe(r.attrs,i))}function L7t(r){return N7t(r).some(i=>XLe(i)||L7t(i))}function dFn(r,i){let s=[],c=!1,u=(f,p,m)=>{let y=O7t(p,f);if(!(!m&&XLe(f))){if(!m&&YLe(f.attrs,"textLength")){c=!0;return}for(let x of f.children)if(x.kind==="text-node"){let v=py(x.raw);v.length>0&&s.push({text:v,metrics:y})}else u(x,y,!1)}};return u(r,i,!0),{runs:s,blocked:c}}function fFn(r){let i=r.filter(f=>f.text.length>0);if(i.length===0||i.every(f=>f.text.trim().length===0))return null;let s=0,c=0,u=0;for(let f of i){if(!(f.metrics.size>0))return null;let p=Vl(f.text).length;c>0&&p>0&&(s+=u),s+=f.metrics.mono?Goe(f.text,f.metrics.size,f.metrics.letterSpacing):zb(f.text,f.metrics.size,f.metrics.weight,f.metrics.letterSpacing),c=p,u=f.metrics.letterSpacing}return Math.round(s*1e3)/1e3}function D7t(r,i){let s=uFn(r);if(!s)return r;let c=[],u={size:0,weight:400,letterSpacing:0,mono:!1},f=(m,y,x)=>{let v=O7t(y,m),S=m.name==="text"&&!x,E=S||x&&XLe(m);if(E&&YLe(m.attrs,"textLength"))return;if(E&&!(S&&L7t(m))){let P=dFn(m,y),N=P.blocked?null:fFn(P.runs);N!==null&&c.push({offset:m.openEnd-1,text:` textLength="${N}" lengthAdjust="spacingAndGlyphs" data-font-metrics="deterministic-fit"`})}let R=x||S;for(let P of N7t(m))f(P,v,R)};for(let m of s)f(m,u,!1);let p=r;for(let m of c.sort((y,x)=>x.offset-y.offset))p=p.slice(0,m.offset)+m.text+p.slice(m.offset);return p}function _7t(r,i){let s=r.appearance.colors,c=r.output==="png"&&s.embedFontImport!==!1?{...s,embedFontImport:!1}:s;return{positioned:i.positioned,colors:c,resolved:V6(r)}}function hFn(r,i){let s=JA(r);if(s.mode!=="scene")throw new Error(`Resolved ${r.output} request has no Scene execution plan`);let c=s.family;return Jle(c,c.lowerScene(_7t(r,i)))}function F7t(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function gFn(r,i,s){let c=`${s}svg-title`,u=`${s}svg-desc`,f=[],p=[];if(i.title&&(f.push(`aria-labelledby="${c}"`),p.push(`<title id="${c}">${F7t(i.title)}</title>`)),i.descr&&(f.push(`aria-describedby="${u}"`),p.push(`<desc id="${u}">${F7t(i.descr)}</desc>`)),p.length===0)return r;let m=Yae(r);if(!m||X2(m,"aria-labelledby")||X2(m,"aria-describedby"))return r;let y=`${X2(m,"role")?"":' role="img"'} ${f.join(" ")}`,x=r.slice(m.start,m.end);return Xae(r,m,`${x.slice(0,-1)}${y}>${p.join("")}`)}function mFn(r,i,s){let c=JA(r);if(c.mode!=="scene"&&c.mode!=="family-svg"||!c.executionDecision)throw new Error(`Resolved ${r.output} request has no graphical execution plan`);let u=r.renderOptions,f=c.family,p=_7t(r,i),m;if(c.mode==="scene"){let M=hFn(r,i);m=c.backend.backend.render(M,{seed:u.seed??0,...r.appearance.styled?{style:r.appearance.style}:{}})}else m=f.renderSvg(p);FA(m,"backend/family SVG output");let y=Kae(m,p.colors);FA(y,"color-resolved SVG output"),y=D7t(y,r.appearance.font),FA(y,"font-geometry-fitted SVG output");let x=u.idPrefix??"";x&&(y=OFt(y,x),FA(y,"namespaced SVG output"));let v=r.source.accessibility;(i.injectAccessibility??!0)&&(v.title||v.descr)&&(y=gFn(y,v,x),FA(y,"accessibility-projected SVG output")),u.compact&&(y=NFt(y),FA(y,"compacted SVG output"));let S=r.output==="png"?"strict":u.security,E=RI(y,S);return s.push(...E.diagnostics),y=E.svg,FA(y,"final SVG output"),Object.freeze({svg:y,executionDecision:c.executionDecision})}function pFn(r,i){let s=JA(r).family.id;return mFn(r,LU(s,r),i)}function Q6(r,i,s,c,u={}){let f=zle(r,i,s,c,u);Ule(f);let p=[],m=pFn(f,p),y=Gle(f,p);return Object.freeze({svg:m.svg,receipt:Object.freeze({...y,graphicalProjectionDigest:UA(m.svg),executionDecision:m.executionDecision})})}var KLe=1,Rf=Object.freeze({input:{version:!0,family:!0,width:!0,height:!0,colors:!0,metadata:!0,markers:!0,parts:!0},colors:{bg:!0,fg:!0,line:!0,accent:!0,muted:!0,surface:!0,border:!0,shadow:!0,font:!0,embedFontImport:!0},metadata:{title:!0,description:!0,transparent:!0},nodes:{shape:{kind:!0,id:!0,role:!0,channels:!0,geometry:!0,paint:!0},"data-mark":{kind:!0,id:!0,role:!0,channels:!0,geometry:!0,value:!0,paint:!0},text:{kind:!0,id:!0,role:!0,channels:!0,text:!0,x:!0,y:!0,fontSize:!0,anchor:!0,paint:!0},container:{kind:!0,id:!0,role:!0,channels:!0,children:!0},connector:{kind:!0,id:!0,role:!0,channels:!0,geometry:!0,from:!0,to:!0,lineStyle:!0,paint:!0,closed:!0,startMarker:!0,midMarker:!0,endMarker:!0,relationship:!0,labels:!0}},geometry:{rect:{kind:!0,x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0},circle:{kind:!0,cx:!0,cy:!0,r:!0},ellipse:{kind:!0,cx:!0,cy:!0,rx:!0,ry:!0},line:{kind:!0,x1:!0,y1:!0,x2:!0,y2:!0},polygon:{kind:!0,points:!0},polyline:{kind:!0,points:!0},markerPath:{kind:!0,d:!0},connectorPath:{kind:!0,d:!0,points:!0},compound:{kind:!0,children:!0}},point:{x:!0,y:!0},paint:{fill:!0,stroke:!0,strokeWidth:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,vectorEffect:!0,paintOrder:!0,opacity:!0},channels:{importance:!0,value:!0,category:!0,status:!0,progress:!0,route:!0,emphasis:!0},marker:{id:!0,shape:!0,geometry:!0,size:!0,viewBox:!0,ref:!0,bounds:!0,units:!0,orient:!0,overflow:!0,paint:!0,scale:!0},markerSize:{width:!0,height:!0},viewBox:{x:!0,y:!0,width:!0,height:!0},bounds:{x0:!0,y0:!0,x1:!0,y1:!0},relationship:{kind:!0,direction:!0},label:{id:!0,text:!0,anchor:!0,bounds:!0,halo:!0,clearance:!0,paint:!0,fontSize:!0,textAnchor:!0},halo:{color:!0,width:!0}});function bFn(r){let i=KH(r,hOe,"input");if(i===null||typeof i!="object"||Array.isArray(i))throw new TypeError("External Scene input must be a plain object");let s=i;if(!Array.isArray(s.parts))throw new TypeError("External Scene parts must be a plain array");if(s.markers!==void 0&&!Array.isArray(s.markers))throw new TypeError("External Scene markers must be a plain array");return yFn(s),i}function a$(r,i){if(r===null||typeof r!="object"||Array.isArray(r))throw new TypeError(`External Scene ${i} must be a plain object`);return r}function KE(r,i,s){for(let c of Object.keys(r))if(!Object.hasOwn(i,c))throw new TypeError(`External Scene ${s}.${c} is not part of the v1 input contract`)}function fk(r,i,s){r!==void 0&&KE(a$(r,s),i,s)}function OO(r,i){if(!Array.isArray(r))throw new TypeError(`External Scene ${i} must be a plain array`);return r}function Ly(r,i){if(typeof r!="string")throw new TypeError(`External Scene ${i} must be a string`)}function VA(r,i){if(typeof r!="number"||!Number.isFinite(r))throw new TypeError(`External Scene ${i} must be a finite number`)}function due(r,i){let s=a$(r,i);KE(s,Rf.point,i),VA(s.x,`${i}.x`),VA(s.y,`${i}.y`)}function fue(r,i,s,c=!1){let u=a$(r,i);if(Ly(u.kind,`${i}.kind`),!s.includes(u.kind))throw new TypeError(`External Scene ${i}.kind must be one of: ${s.join(", ")}`);let f=u.kind==="path"?c?Rf.geometry.connectorPath:Rf.geometry.markerPath:Rf.geometry[u.kind];KE(u,f,i);let p=(...m)=>{for(let y of m)VA(u[y],`${i}.${y}`)};switch(u.kind){case"rect":p("x","y","width","height"),u.rx!==void 0&&VA(u.rx,`${i}.rx`),u.ry!==void 0&&VA(u.ry,`${i}.ry`);return;case"circle":p("cx","cy","r");return;case"ellipse":p("cx","cy","rx","ry");return;case"line":p("x1","y1","x2","y2");return;case"polygon":case"polyline":{let m=OO(u.points,`${i}.points`);for(let y=0;y<m.length;y++)due(m[y],`${i}.points[${y}]`);return}case"path":{if(Ly(u.d,`${i}.d`),c){let m=OO(u.points,`${i}.points`);for(let y=0;y<m.length;y++)due(m[y],`${i}.points[${y}]`)}return}case"compound":{let m=OO(u.children,`${i}.children`);for(let y=0;y<m.length;y++)fue(m[y],`${i}.children[${y}]`,["rect","circle","ellipse","line","polygon","polyline","path","compound"])}}}function j7t(r,i){let s=a$(r,i);if(Ly(s.kind,`${i}.kind`),Ly(s.id,`${i}.id`),Ly(s.role,`${i}.role`),!["shape","data-mark","text","container","connector"].includes(s.kind))throw new TypeError(`External Scene ${i}.kind must be one of: shape, data-mark, text, container, connector`);if(KE(s,Rf.nodes[s.kind],i),fk(s.channels,Rf.channels,`${i}.channels`),fk(s.paint,Rf.paint,`${i}.paint`),s.kind==="shape"||s.kind==="data-mark"){fue(s.geometry,`${i}.geometry`,["rect","circle","ellipse","line","polygon","polyline"]),s.kind==="data-mark"&&VA(s.value,`${i}.value`);return}if(s.kind==="text"){Ly(s.text,`${i}.text`),VA(s.x,`${i}.x`),VA(s.y,`${i}.y`),VA(s.fontSize,`${i}.fontSize`);return}if(s.kind==="container"){let c=OO(s.children,`${i}.children`);for(let u=0;u<c.length;u++)j7t(c[u],`${i}.children[${u}]`);return}if(fue(s.geometry,`${i}.geometry`,["line","polyline","path"],!0),fk(s.relationship,Rf.relationship,`${i}.relationship`),typeof s.from!="string")throw new TypeError(`External Scene ${i}.from is required for external connectors and must be a string`);if(typeof s.to!="string")throw new TypeError(`External Scene ${i}.to is required for external connectors and must be a string`);if(s.labels!==void 0){let c=OO(s.labels,`${i}.labels`);for(let u=0;u<c.length;u++){let f=`${i}.labels[${u}]`,p=a$(c[u],f);KE(p,Rf.label,f),Ly(p.text,`${f}.text`),p.anchor!==void 0&&due(p.anchor,`${f}.anchor`),fk(p.bounds,Rf.bounds,`${f}.bounds`),fk(p.halo,Rf.halo,`${f}.halo`),fk(p.paint,Rf.paint,`${f}.paint`)}}}function yFn(r){KE(r,Rf.input,"input"),VA(r.width,"input.width"),VA(r.height,"input.height"),Ly(r.family,"input.family");let i=a$(r.colors,"input.colors");KE(i,Rf.colors,"input.colors"),Ly(i.bg,"input.colors.bg"),Ly(i.fg,"input.colors.fg");let s=a$(r.metadata,"input.metadata");if(KE(s,Rf.metadata,"input.metadata"),Ly(s.title,"input.metadata.title"),s.description!==void 0&&Ly(s.description,"input.metadata.description"),s.transparent!==void 0&&typeof s.transparent!="boolean")throw new TypeError("External Scene input.metadata.transparent must be boolean");let c=OO(r.parts,"input.parts");for(let u=0;u<c.length;u++)j7t(c[u],`input.parts[${u}]`);if(r.markers!==void 0){let u=OO(r.markers,"input.markers");for(let f=0;f<u.length;f++){let p=`input.markers[${f}]`,m=a$(u[f],p);KE(m,Rf.marker,p),Ly(m.id,`${p}.id`),fue(m.geometry,`${p}.geometry`,["rect","circle","ellipse","line","polygon","polyline","path","compound"]),fk(m.size,Rf.markerSize,`${p}.size`),fk(m.viewBox,Rf.viewBox,`${p}.viewBox`),m.ref!==void 0&&due(m.ref,`${p}.ref`),fk(m.bounds,Rf.bounds,`${p}.bounds`),fk(m.paint,Rf.paint,`${p}.paint`),iO(m)}}}function wFn(r){let i=r.lineStyle??"solid",s=r.paint??{};return{fill:"none",stroke:s.stroke??"var(--_line)",strokeWidth:s.strokeWidth??(i==="thick"?"3":"1.5"),...s.opacity===void 0?{}:{opacity:s.opacity},...s.strokeDasharray!==void 0?{strokeDasharray:s.strokeDasharray}:i==="dotted"?{strokeDasharray:"2 4"}:i==="dashed"?{strokeDasharray:"6 4"}:{},...s.strokeDashoffset===void 0?{}:{strokeDashoffset:s.strokeDashoffset},strokeLinecap:s.strokeLinecap??"round",strokeLinejoin:s.strokeLinejoin??"round",strokeMiterlimit:s.strokeMiterlimit??"4",...s.vectorEffect===void 0?{}:{vectorEffect:s.vectorEffect},...s.paintOrder===void 0?{}:{paintOrder:s.paintOrder}}}function uue(r,i){if(++i.count>Cc.maxNodes)throw new Error(`External Scene compilation exceeds maximum node count ${Cc.maxNodes}`);let s=Math.max(0,Cc.maxAggregateSerializationBytes-i.serializationBytes),c=Fh(Eo(r),s);if(c>s)throw new Error(`External Scene serializations exceed the aggregate ${Cc.maxAggregateSerializationBytes}-byte limit`);return i.serializationBytes+=c,r}function B7t(r,i,s,c){if(c>Cc.maxDepth)throw new Error(`External Scene parts exceed maximum depth ${Cc.maxDepth}`);if(r.kind==="shape"||r.kind==="data-mark"){let P={fill:"none",stroke:"var(--_line)",strokeWidth:"1",...r.paint??{}};return[uue(In({id:r.id,role:r.role,geometry:r.geometry,paint:P,...(()=>{let N=r.kind==="data-mark"?{...r.channels??{},value:r.value}:r.channels;return N?{channels:N}:{}})()},nOe(r.geometry,P)),s)]}if(r.kind==="text"){let P=r.anchor??"start",N={fill:"var(--_text)",...r.paint??{}},F=rOe({...r,anchor:P,paint:N});return[uue(Ar({id:r.id,role:r.role,text:r.text,x:r.x,y:r.y,fontSize:r.fontSize,anchor:P,paint:N,...r.channels?{channels:r.channels}:{}},F),s)]}if(r.kind==="container")return[uue(vo({id:r.id,role:r.role,open:"<g>",close:"</g>",children:r.children.flatMap(P=>B7t(P,i,s,c+1).map(N=>({node:N,indent:2}))),...r.channels?{channels:r.channels}:{}}),s)];let u=r.startMarker===void 0?void 0:i.get(r.startMarker),f=r.midMarker===void 0?void 0:i.get(r.midMarker),p=r.endMarker===void 0?void 0:i.get(r.endMarker);if(r.startMarker!==void 0&&!u)throw new Error(`Unknown external Scene marker "${r.startMarker}"`);if(r.midMarker!==void 0&&!f)throw new Error(`Unknown external Scene marker "${r.midMarker}"`);if(r.endMarker!==void 0&&!p)throw new Error(`Unknown external Scene marker "${r.endMarker}"`);if(r.closed!==void 0&&typeof r.closed!="boolean")throw new TypeError(`External Scene connector "${r.id}" closed must be boolean`);if(r.geometry.kind!=="path"&&r.closed!==void 0)throw new TypeError(`External Scene connector "${r.id}" closed is only valid for path geometry`);let m=r.closed??!1;if(iOe(r.geometry,m),f&&r.geometry.kind==="path")throw new TypeError(`External Scene v1 connector "${r.id}" cannot attach marker-mid to path geometry because v1 does not expose exact SVG marker vertices`);let y=wFn(r),x=r.geometry.kind==="line"?[{x:r.geometry.x1,y:r.geometry.y1},{x:r.geometry.x2,y:r.geometry.y2}]:r.geometry.points,v=x[0],S=x.at(-1),E=v&&S?{x:(v.x+S.x)/2,y:(v.y+S.y)/2}:{x:0,y:0},M=(r.labels??[]).map(P=>({...P,anchor:P.anchor??E,paint:{fill:"var(--_text)",...P.paint??{}},fontSize:P.fontSize??12,textAnchor:P.textAnchor??"middle",visual:{kind:"inline"}}));for(let[P,N]of M.entries()){if(!N.bounds)continue;let F=ZNe(N);if(F&&(N.bounds.x0>F.x0||N.bounds.y0>F.y0||N.bounds.x1<F.x1||N.bounds.y1<F.y1))throw new RangeError(`External Scene connector "${r.id}" label ${P+1} bounds must cover its inline visual geometry`)}return[uue(Zo({id:r.id,role:r.role,geometry:r.geometry,lineStyle:r.lineStyle??"solid",paint:y,endpoints:{from:r.from,to:r.to},relationship:r.relationship,route:{closed:m},markers:{...u?{start:u}:{},mid:f?[f]:[],...p?{end:p}:{}},labels:M,...r.channels?{channels:r.channels}:{}},oOe({geometry:r.geometry,lineStyle:r.lineStyle??"solid",paint:y},u,f,p)),s)]}function G7t(r){let i=bFn(r);if(i.version!==KLe)throw new Error(`Unsupported external Scene API version ${String(i.version)}`);let s=my(i.family);if(!s||s.kind!=="family")throw new Error('External Scene family must use a valid "family:" id');let c=[];if(i.markers)for(let R=0;R<i.markers.length;R++)c.push(i.markers[R]);let u=new Map(c.map(R=>[R.id,R]));if(u.size!==c.length)throw new Error("External Scene marker ids must be unique");let f="external-scene-title",p="external-scene-description",m=[f,...i.metadata.description!==void 0?[p]:[]].join(" "),y={...i.colors,embedFontImport:!1},x=y.font??"Inter",S=[Za({id:"external-scene-prelude",width:i.width,height:i.height,colors:y,transparent:i.metadata.transparent??!1,font:x,hasMonoFont:!1},[Ka(i.width,i.height,y,i.metadata.transparent,{attrs:{role:"img","aria-labelledby":m}}),Xa(x,!1,y.shadow,!1)].join(`
|
|
776
776
|
`)),yw({id:f,element:"title",text:i.metadata.title,domId:f})];i.metadata.description!==void 0&&S.push(yw({id:p,element:"description",text:i.metadata.description,domId:p})),c.length>0&&S.push(Ad({id:"external-scene-definitions",markerResources:c},`<defs>
|
|
777
777
|
${vm(c)}
|
|
778
|
-
</defs>`));let E={count:0,serializationBytes:0};for(let R=0;R<i.parts.length;R++)S.push(...B7t(i.parts[R],u,E,0));S.push(Qa());let M={family:i.family,width:i.width,height:i.height,colors:y,transparent:i.metadata.transparent??!1,parts:S};return PI(M,{mode:"external"}),M}var LO=1;function c$(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function z7t(r){return r instanceof Error?r.message:String(r)}function UU(r,i,s,c){let u=!0;for(let f of Object.keys(r))i.has(f)||(c.push(`unknown ${s} field "${f}"`),u=!1);return u}var xFn=new Set(["version","resources"]),AFn=new Set(["identity","path","mediaType","sha256","bytes","license","required","network"]),vFn=new Set(["id","kind","version","compatibility","provenance"]),kFn=new Set(["owner","source","reference"]),SFn=new Set(["spdx","noticePath"]);function QLe(r){return r===""||r.startsWith("/")||r.includes("\\")||r.includes("\0")?!1:r.split("/").every(s=>s!==""&&s!=="."&&s!=="..")}function EFn(r,i,s){if(!c$(r)){s.push(`missing resource identity: ${i}`);return}let c=r.id,u=r.kind,f=r.version,p=r.compatibility,m=r.provenance,y=typeof c=="string"?c:i,x=UU(r,vFn,"resource identity",s);typeof c!="string"&&(s.push(`invalid resource identity id: ${i}`),x=!1),u!=="resource"&&(s.push(`invalid resource identity kind: ${y}`),x=!1),typeof f!="string"&&(s.push(`invalid resource identity version: ${y}`),x=!1);let v={};if(p!==void 0)if(!c$(p))s.push(`invalid resource compatibility: ${y}`),x=!1;else for(let[E,M]of Object.entries(p))M!==void 0&&typeof M!="string"?(s.push(`invalid resource compatibility range "${E}": ${y}`),x=!1):v[E]=M;let S;if(!c$(m))s.push(`missing resource provenance: ${y}`),x=!1;else{UU(m,kFn,"resource provenance",s)||(x=!1);let E=m.owner,M=m.source,R=m.reference;typeof E!="string"||typeof M!="string"||R!==void 0&&typeof R!="string"?(s.push(`invalid resource provenance: ${y}`),x=!1):S={owner:E,source:M,...R===void 0?{}:{reference:R}}}if(!(!x||S===void 0||typeof f!="string"))try{return gm({id:y,kind:"resource",version:f,compatibility:v,provenance:S})}catch(E){s.push(`invalid resource identity: ${z7t(E)}`);return}}function CFn(r,i,s){let c=`resource[${i}]`;if(!c$(r)){s.push(`resource entry must be a plain object: ${c}`);return}let u=r.identity,f=EFn(u,c,s),p=f?.id??c,m=r.path,y=r.mediaType,x=r.sha256,v=r.bytes,S=r.required,E=r.network,M=f!==void 0;UU(r,AFn,"resource entry",s)||(M=!1),(typeof m!="string"||!QLe(m))&&(s.push(`unsafe resource path: ${p}`),M=!1),(typeof y!="string"||!/^[\w.+-]+\/[\w.+-]+$/.test(y))&&(s.push(`invalid media type: ${p}`),M=!1),(typeof x!="string"||!/^[0-9a-f]{64}$/.test(x))&&(s.push(`invalid sha256: ${p}`),M=!1),(typeof v!="number"||!Number.isSafeInteger(v)||v<=0)&&(s.push(`invalid byte size: ${p}`),M=!1),typeof S!="boolean"&&(s.push(`invalid required status: ${p}`),M=!1),E!=="forbidden"&&(s.push(`resource permits network fallback: ${p}`),M=!1);let R=r.license,P;if(!c$(R))s.push(`missing resource licence: ${p}`),M=!1;else{UU(R,SFn,"resource licence",s)||(M=!1);let N=R.spdx,F=R.noticePath;(typeof N!="string"||N.trim()==="")&&(s.push(`missing resource licence: ${p}`),M=!1),(typeof F!="string"||!QLe(F))&&(s.push(`unsafe resource licence path: ${p}`),M=!1),typeof N=="string"&&N.trim()!==""&&typeof F=="string"&&QLe(F)&&(P=Object.freeze({spdx:N,noticePath:F}))}if(!(!M||f===void 0||P===void 0||typeof m!="string"||typeof y!="string"||typeof x!="string"||typeof v!="number"||typeof S!="boolean"))return Object.freeze({identity:f,path:m,mediaType:y,sha256:x,bytes:v,license:P,required:S,network:"forbidden"})}function W7t(r){let i=[];if(!c$(r))return{errors:Object.freeze(["resource manifest must be a plain object"])};let s=r.version,c=r.resources;if(UU(r,xFn,"resource manifest",i),s!==LO&&i.push(`unsupported resource manifest version: ${String(s)}`),!Array.isArray(c))return i.push("resource manifest resources must be an array"),{errors:Object.freeze(i)};let u=new Set,f=new Set,p=[];for(let[m,y]of Array.from(c).entries()){let x=CFn(y,m,i),v=x?.identity.id??`resource[${m}]`,S=x?.path;u.has(v)&&i.push(`duplicate resource id: ${v}`),S!==void 0&&f.has(S)&&i.push(`duplicate resource path: ${S}`),u.add(v),S!==void 0&&f.add(S),x!==void 0&&p.push(x)}return i.length>0?{errors:Object.freeze(i)}:{errors:Object.freeze([]),snapshot:Object.freeze({version:LO,resources:Object.freeze(p)})}}function H7t(r){return[...W7t(r).errors]}function ZLe(r){let i=W7t(r);if(!i.snapshot)throw new TypeError(`INVALID_RESOURCE_MANIFEST: ${i.errors.join("; ")}`);return i.snapshot}function MFn(r){return r.length>=4&&r[0]===0&&r[1]===1&&r[2]===0&&r[3]===0}var TFn=Object.freeze({"font/ttf":MFn});function IFn(r){return Array.from(r,i=>i.toString(16).padStart(2,"0")).join("")}async function U7t(r,i,s={}){let c;try{let m=r;c=ZLe({version:LO,resources:[{identity:m.identity,path:m.path,mediaType:m.mediaType,sha256:m.sha256,bytes:m.bytes,license:m.license,required:m.required,network:m.network}]}).resources[0]}catch(m){throw new TypeError(`INVALID_RESOURCE_ENTRY: ${z7t(m)}`)}if(!(i instanceof Uint8Array))throw new TypeError("INVALID_RESOURCE_BYTES: bytes must be a Uint8Array");if(!c$(s))throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: options must be a plain object");for(let m of Reflect.ownKeys(s))if(typeof m!="string"||m!=="mediaTypes"&&m!=="digest")throw new TypeError(`INVALID_RESOURCE_VERIFY_OPTIONS: unknown option ${String(m)}`);if(s.mediaTypes!==void 0){if(!c$(s.mediaTypes))throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: mediaTypes must be a plain object");for(let[m,y]of Object.entries(s.mediaTypes))if(typeof y!="function")throw new TypeError(`INVALID_RESOURCE_VERIFY_OPTIONS: mediaTypes.${m} must be a function`)}if(s.digest!==void 0&&typeof s.digest!="function")throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: digest must be a function");if(i.byteLength!==c.bytes)throw new Error(`RESOURCE_SIZE_MISMATCH: ${c.identity.id} declared ${c.bytes} bytes but received ${i.byteLength}`);let u=(s.mediaTypes??TFn)[c.mediaType];if(!u||!u(i))throw new Error(`RESOURCE_MEDIA_TYPE_MISMATCH: ${c.identity.id} is not ${c.mediaType}`);if(await(s.digest??(async m=>{if(!globalThis.crypto?.subtle)throw new Error("RESOURCE_DIGEST_UNAVAILABLE: Web Crypto SHA-256 is required");let y=new Uint8Array(m.byteLength);return y.set(m),IFn(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",y.buffer)))}))(i)!==c.sha256)throw new Error(`RESOURCE_DIGEST_MISMATCH: ${c.identity.id}`)}var $Fn=[{family:"Inter",file:"Inter-Regular.ttf",weight:"400",style:"normal",sha256:"1b08e7fc267a5c7e1d614100f604b83e7e8a0be241f0f288faa2b3ac93a683ba",bytes:324820,license:"OFL-1.1"},{family:"Inter",file:"Inter-Medium.ttf",weight:"500",style:"normal",sha256:"8c883f63b2c4157d997319f2c8bc6995ed4357ef371940d31ca159004a4aae63",bytes:325304,license:"OFL-1.1"},{family:"Inter",file:"Inter-SemiBold.ttf",weight:"600",style:"normal",sha256:"e7a1aaf7eda9f2fad4131725fa556265ec75ca7b2d756260173a040363e8d4f7",bytes:326048,license:"OFL-1.1"},{family:"Inter",file:"Inter-Bold.ttf",weight:"700",style:"normal",sha256:"b37284b5701b6b168dfc770aa1a4ac492106422fd3ba76bc7641e37434e8019c",bytes:326468,license:"OFL-1.1"},{family:"Caveat",file:"Caveat.ttf",weight:"400 700",style:"normal",sha256:"0bdb6b660482d31531b3945849fba5916b3ef8695da7024a9e6b9ee3c4157988",bytes:403648,license:"OFL-1.1"},{family:"EB Garamond",file:"EBGaramond.ttf",weight:"400 700",style:"normal",sha256:"ef9512f92f6d579e5dc75af59a5a4b1b8b47d2eda89e00b954d44520e5369027",bytes:851176,license:"OFL-1.1"},{family:"Architects Daughter",file:"ArchitectsDaughter.ttf",weight:"400",style:"normal",sha256:"6159718a08898e34bc1cb7354086141a5f9a70b73e54dbec27ead0d59a697359",bytes:43352,license:"OFL-1.1"},{family:"Share Tech Mono",file:"ShareTechMono.ttf",weight:"400",style:"normal",sha256:"9ceab1f87414829af259c0f537573ae03ef7dd3147c0b27a36a1a0beb6732677",bytes:43272,license:"OFL-1.1"},{family:"DejaVu Sans",file:"DejaVuSans.ttf",weight:"400",style:"normal",sha256:"ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280",bytes:759720,license:"Bitstream-Vera"},{family:"DejaVu Sans",file:"DejaVuSans-Bold.ttf",weight:"700",style:"normal",sha256:"5c1247acef7f2b8522a31742c76d6adcb5569bacc0be7ceaa4dc39dd252ce895",bytes:708920,license:"Bitstream-Vera"}];function RFn(r){return`font/${r.file.toLowerCase().replace(/[^a-z0-9._/-]+/g,"-")}`}var Z6=Object.freeze($Fn.map(r=>Object.freeze({family:r.family,file:r.file,weight:r.weight,style:r.style,path:`assets/fonts/${r.file}`,mediaType:"font/ttf",sha256:r.sha256,bytes:r.bytes,license:Object.freeze({spdx:r.license,noticePath:"assets/fonts/FONT-LICENSES.md"}),required:!0,network:"forbidden",identity:gm({id:`resource:${RFn(r)}`,kind:"resource",version:"1.0.0",compatibility:{core:"^0.3.0"},provenance:{owner:"agentic-mermaid",source:"bundled",reference:`assets/fonts/${r.file}`}})}))),eDe=Object.freeze({version:LO,resources:Object.freeze(Z6.map(r=>Object.freeze({identity:r.identity,path:r.path,mediaType:r.mediaType,sha256:r.sha256,bytes:r.bytes,license:r.license,required:r.required,network:r.network})))});function J7t(r=eDe){return H7t(r)}function q7t(r){let i=Z6.find(s=>s.file===r);if(!i)throw new Error(`Unknown bundled font resource: ${r}`);return i}var JU=Object.freeze({version:1,id:"srgb",svgColorInterpolation:"sRGB",gamutMapping:"clip-to-srgb",png:Object.freeze({sRGBRenderingIntent:0,cICP:Object.freeze([1,13,0,1]),iCCP:"absent-when-sRGB-is-present",precedence:Object.freeze(["cICP","iCCP","sRGB","gAMA+cHRM"])})}),hue=new Uint8Array([137,80,78,71,13,10,26,10]),PFn=new Set(["cICP","iCCP","sRGB","gAMA","cHRM"]);function NFn(r){return new TextEncoder().encode(r)}function V7t(r){let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,r>>>0),i}function tDe(r){let i=new Uint8Array(r.reduce((c,u)=>c+u.length,0)),s=0;for(let c of r)i.set(c,s),s+=c.length;return i}function X7t(r){let i=4294967295;for(let s of r){i^=s;for(let c=0;c<8;c++)i=i>>>1^(i&1?3988292384:0)}return(i^4294967295)>>>0}function Y7t(r,i){let s=NFn(r);return tDe([V7t(i.length),s,i,V7t(X7t(tDe([s,i])))])}function OFn(r){if(r.length<hue.length||hue.some((i,s)=>r[s]!==i))throw new Error("Expected a PNG byte stream")}function nDe(r){OFn(r);let i=[],s=hue.length,c=!1;for(;s<r.length;){if(s+12>r.length)throw new Error("Truncated PNG chunk header");let p=new DataView(r.buffer,r.byteOffset+s,4).getUint32(0),m=s+12+p;if(m>r.length)throw new Error("Truncated PNG chunk");let y=new TextDecoder().decode(r.subarray(s+4,s+8));if(!/^[A-Za-z]{4}$/.test(y))throw new Error("Invalid PNG chunk type");let x=r.subarray(s+4,s+8+p);if(new DataView(r.buffer,r.byteOffset+s+8+p,4).getUint32(0)!==X7t(x))throw new Error(`Invalid PNG CRC for ${y}`);let S={type:y,bytes:r.slice(s,m),data:r.slice(s+8,s+8+p)};if(i.push(S),s=m,y==="IEND"){if(p!==0)throw new Error("PNG IEND must be empty");c=!0;break}}if(s!==r.length)throw new Error("PNG contains trailing bytes after IEND");if(!c)throw new Error("PNG is missing IEND");let u=i[0];if(u?.type!=="IHDR"||u.data.length!==13)throw new Error("PNG IHDR must be first and contain 13 bytes");if(i.filter(p=>p.type==="IHDR").length!==1)throw new Error("PNG must contain exactly one IHDR");let f=new DataView(u.data.buffer,u.data.byteOffset,u.data.byteLength);if(f.getUint32(0)===0||f.getUint32(4)===0)throw new Error("PNG dimensions must be non-zero");if(!i.some(p=>p.type==="IDAT"))throw new Error("PNG is missing IDAT image data");return i}function gue(r){let i=nDe(r)[0],s=new DataView(i.data.buffer,i.data.byteOffset,i.data.byteLength);return Object.freeze({width:s.getUint32(0),height:s.getUint32(4)})}function mue(r){let i=nDe(r),s=i.find(u=>u.type==="sRGB"),c=i.find(u=>u.type==="cICP");return{chunks:i.map(u=>u.type),sRGBRenderingIntent:s?.data[0],cICP:c?[...c.data]:void 0,hasICC:i.some(u=>u.type==="iCCP"),profile:JU.id}}function pue(r){let i=nDe(r),s=i[0];if(s?.type!=="IHDR")throw new Error("PNG IHDR must be first");let c=i.slice(1).filter(u=>!PFn.has(u.type)).map(u=>u.bytes);return tDe([hue,s.bytes,Y7t("sRGB",new Uint8Array([JU.png.sRGBRenderingIntent])),Y7t("cICP",new Uint8Array(JU.png.cICP)),...c])}var QE=2,oDe="Inter",e_=16777216,l$=16384,bue=4194304,nGt=8388608,VU=16,YU=4096;function rGt(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))rGt(i);return Object.freeze(r)}var LFn={type:"number",exclusiveMinimum:0},K7t={type:"integer",minimum:1},iGt=Object.freeze({transparent:"#00000000",black:"#000000",silver:"#c0c0c0",gray:"#808080",grey:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500"});function DFn(r){return[...r].map(i=>`[${i.toLowerCase()}${i.toUpperCase()}]`).join("")}var FFn=`^\\s*(?:#[0-9A-Fa-f]{3,4}|#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{8}|${Object.keys(iGt).map(DFn).join("|")})\\s*$`,_Fn={type:"object",additionalProperties:!1,properties:{width:{...K7t,description:"Exact output width in integer pixels."},height:{...K7t,description:"Exact output height in integer pixels."}},oneOf:[{required:["width"]},{required:["height"]}],description:"Exactly one positive output width or height."},DO=rGt({scale:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"number",description:"Positive output scale used when no fitTo constraint is supplied.",schema:{...LFn,default:QE}},background:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"string",description:"Portable basic color or hex color painted behind the raster artifact.",schema:{type:"string",minLength:1,pattern:FFn},runtimeValidator:"portablePngBackground"},fitTo:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"{ width: number; height?: never } | { width?: never; height: number }",description:"Exactly one output width or height constraint.",schema:_Fn},fontDirs:{scope:"native-host-only",input:"serializable",policy:"included",receipt:"included",typeScript:"readonly string[]",description:"Trusted native host directories searched for additional fonts.",schema:{type:"array",maxItems:VU,items:{type:"string",minLength:1,maxLength:YU,pattern:"\\S"}}},loadSystemFonts:{scope:"native-host-only",input:"serializable",policy:"included",receipt:"included",typeScript:"boolean",description:"Allow the native rasterizer to load machine-dependent system fonts.",schema:{type:"boolean",default:!1}},onWarning:{scope:"native-host-only",input:"callback",policy:"excluded",receipt:"excluded",typeScript:"(warning: PngFontWarning) => void",description:"Native host callback for font-coverage warnings; never serialized or receipted."}}),t_=Object.freeze(Object.keys(DO)),XU=Object.freeze(t_.filter(r=>DO[r].scope==="portable")),KU=Object.freeze(t_.filter(r=>DO[r].policy==="included")),oGt=Object.freeze(t_.filter(r=>DO[r].scope==="native-host-only"));function rDe(r){return Array.isArray(r)?r.map(rDe):typeof r!="object"||r===null?r:Object.fromEntries(Object.entries(r).map(([i,s])=>[i,rDe(s)]))}function sGt(r="portable"){let s=Object.fromEntries((r==="portable"?XU:KU).map(c=>{let u=DO[c];if(!u.schema)throw new Error(`PNG policy field ${c} has no serializable schema`);return[c,{...rDe(u.schema),description:u.description,"x-agentic-mermaid-scope":u.scope,"x-agentic-mermaid-receipt":u.receipt,..."runtimeValidator"in u?{"x-agentic-mermaid-runtime-validator":u.runtimeValidator}:{}}]}));return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://agentic-mermaid.dev/schemas/png-output-options-v${3}-${r}.schema.json`,type:"object",additionalProperties:!1,properties:s}}function qU(r){if(typeof r!="string")throw new RangeError("SVG input must be a string for PNG rasterization");let i=Yae(r);if(!i)throw new RangeError("could not determine the SVG root for PNG rasterization");return i}function yue(r,i){return TDt(r,i)}function Q7t(r,i){let s=r?.trim();if(!s||!/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:px)?$/i.test(s))throw new RangeError(`SVG root ${i} must be a positive finite absolute pixel length for PNG rasterization`);let c=Number(s.replace(/px$/i,""));if(!Number.isFinite(c)||c<=0)throw new RangeError(`SVG root ${i} must be a positive finite absolute pixel length for PNG rasterization`);return c}function jFn(r){let i=yue(r,"viewBox")?.trim().split(/[\s,]+/).map(Number),s=i?.[2],c=i?.[3];if(i?.length!==4||i.some(u=>!Number.isFinite(u))||s===void 0||c===void 0||s<=0||c<=0)throw new RangeError("SVG root viewBox must contain four finite values with positive bounds for PNG rasterization");return Object.freeze({width:s,height:c})}function sDe(r){let i=qU(r),s=jFn(i),c=yue(i,"width")?.trim(),u=yue(i,"height")?.trim(),f=c==="100%"&&u==="100%",p=f?s.width:Q7t(c,"width"),m=f?s.height:Q7t(u,"height"),y=p/m,x=s.width/s.height,v=Math.abs(y-x),S=Math.max(Math.abs(y),Math.abs(x),1)*1e-9;if(v>S)throw new RangeError(`SVG intrinsic dimensions ${p}\xD7${m} are inconsistent with viewBox ${s.width}\xD7${s.height}`);return Object.freeze({width:p,height:m})}function aDe(r,i){let s=sDe(r);if(typeof i!="number"&&!wue(i))throw new RangeError("PNG raster policy must be a positive scale or resolved policy object");if(typeof i=="number"&&(!Number.isFinite(i)||i<=0))throw new RangeError("PNG raster scale must be a positive finite number");if(typeof i!="number"&&(typeof i.scale!="number"||!Number.isFinite(i.scale)||i.scale<=0||!wue(i.fitTo)||!["zoom","width","height"].includes(String(i.fitTo.mode))||typeof i.fitTo.value!="number"||!Number.isFinite(i.fitTo.value)||i.fitTo.value<=0))throw new RangeError("PNG raster policy must contain a positive finite scale and fitTo mode/value");let c=typeof i=="number"?{mode:"zoom",value:i}:i.fitTo,u=typeof i=="number"?i:i.scale,f=c.mode==="width"?c.value:c.mode==="height"?s.width*c.value/s.height:s.width*u,p=c.mode==="height"?c.value:c.mode==="width"?s.height*c.value/s.width:s.height*u;if(!Number.isFinite(f)||!Number.isFinite(p)||f<=0||p<=0)throw new RangeError("PNG raster budget rejected non-finite or non-positive final dimensions");let m=Math.max(1,Math.ceil(f)),y=Math.max(1,Math.ceil(p));return Object.freeze({width:m,height:y,pixels:m*y})}function xue(r,i){if(!Number.isSafeInteger(i.width)||i.width<=0||!Number.isSafeInteger(i.height)||i.height<=0||!Number.isSafeInteger(i.pixels)||i.pixels!==i.width*i.height)throw new RangeError("PNG raster dimensions must be positive safe integers");let s=qU(r);if(!X2(s,"width")||!X2(s,"height"))throw new RangeError("SVG root must declare intrinsic width and height");let c=a6(r.slice(s.start,s.end),p=>{if(p.name==="width")return String(i.width);if(p.name==="height")return String(i.height)}),u=qU(c);c=X2(u,"preserveAspectRatio")?a6(c,p=>p.name==="preserveAspectRatio"?"none":void 0):`${c.slice(0,-1)} preserveAspectRatio="none">`;let f=`width:${i.width}px!important;height:${i.height}px!important`;return X2(qU(c),"style")?c=a6(c,p=>p.name==="style"?`${p.value.replace(/;?\s*$/,";")}${f}`:void 0):c=`${c.slice(0,-1)} style="${f}">`,Xae(r,s,c)}function Aue(r,i){let s=aDe(r,i);if(s.width>l$||s.height>l$||!Number.isSafeInteger(s.pixels)||s.pixels>e_){let c=Number.isFinite(s.pixels)?`${Math.ceil(s.pixels/1e6)}MP`:"a non-finite pixel count";throw new RangeError(`PNG raster budget exceeded: ${s.width}\xD7${s.height} (${c}); maximum dimension is ${l$}px and pixel cap is ${Math.ceil(e_/1e6)}MP`)}return s}function aGt(r){let i=wue(r),s=i?r.width:Number.NaN,c=i?r.height:Number.NaN,u=i?r.pixels:Number.NaN;if(!i||!Number.isSafeInteger(s)||s<=0||!Number.isSafeInteger(c)||c<=0||!Number.isSafeInteger(u)||u<=0||u!==s*c||s>l$||c>l$||u>bue)throw new RangeError(`hosted PNG raster budget exceeded: ${String(s)}\xD7${String(c)}; maximum dimension is ${l$}px and hosted pixel cap is ${Math.ceil(bue/1e6)}MP`);return r}var BFn=Object.freeze(Z6.map(r=>`${r.identity.id}@${r.identity.version}#sha256:${r.sha256}`));function wue(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function Z7t(r,i,s){if(!wue(r))throw new TypeError(`${s} must be a plain object`);let c=new Set(i);for(let u of Reflect.ownKeys(r))if(typeof u!="string"||!c.has(u))throw new TypeError(`${s} contains unknown option ${typeof u=="symbol"?String(u):`"${u}"`}`)}function GFn(r,i){if(typeof r!="number"||!Number.isFinite(r)||r<=0)throw new TypeError(`${i} must be a positive finite number`);return r}function eGt(r,i){if(typeof r!="number"||!Number.isSafeInteger(r)||r<=0)throw new TypeError(`${i} must be a positive integer number of pixels`);return r}function cGt(r){if(typeof r!="string")return;let i=Ep(r);if(!i)return;let s=i.map((u,f)=>{let p=f===3?u*255:u;return Math.round(Math.max(0,Math.min(255,p)))}),c=s.map(u=>u.toString(16).padStart(2,"0")).join("");return`#${s[3]===255?c.slice(0,6):c}`}function cDe(r){if(typeof r!="string")return;let i=r.trim().toLowerCase();if(!(!/^#[0-9a-f]{3,4}$/.test(i)&&!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/.test(i)&&!(i in iGt)))return cGt(i)}var tGt="PNG_ARTIFACT_BACKGROUND_UNRESOLVED",iDe=class extends TypeError{code=tGt;paint;constructor(i){super(`${tGt}: PNG artifact background must resolve to a concrete CSS color`),this.name="PngArtifactBackgroundError",this.paint=i}};function lGt(r,i){if(i.background.mode==="explicit")return i.background.value;let c=yue(qU(r),"style")?.match(/(?:^|;)\s*--bg\s*:\s*([^;]+)/i)?.[1]?.trim();if(c===void 0)return i.background.fallback;let u=cGt(c);if(u===void 0)throw new iDe(c);return u}function uGt(r,i){return Object.fromEntries(i.flatMap(s=>Object.prototype.hasOwnProperty.call(r,s)&&r[s]!==void 0?[[s,r[s]]]:[]))}function dGt(r){return uGt(r,XU)}function fGt(r){return uGt(r,KU)}function hGt(r){let i=new Set(t_);return Object.fromEntries(Object.entries(r).filter(([s])=>!i.has(s)))}function gGt(r,i){Z7t(r,i==="portable"?XU:KU,`${i==="portable"?"portable":"native"} PNG output options`);let c=r.scale===void 0?QE:GFn(r.scale,"PNG scale"),u,f;if(r.fitTo!==void 0){Z7t(r.fitTo,["width","height"],"PNG fitTo");let E=Object.keys(r.fitTo);if(E.length!==1||E[0]!=="width"&&E[0]!=="height")throw new TypeError("PNG fitTo accepts exactly one of width or height");Object.prototype.hasOwnProperty.call(r.fitTo,"width")?u=eGt(r.fitTo.width,"PNG fitTo.width"):f=eGt(r.fitTo.height,"PNG fitTo.height")}if(r.background!==void 0&&typeof r.background!="string")throw new TypeError("PNG background must be a safe CSS color");let p=r.background===void 0?void 0:cDe(r.background);if(r.background!==void 0&&!p)throw new TypeError("PNG background must be a safe CSS color in the portable basic-keyword or 3, 4, 6, or 8 digit hex intersection");let m=[],y=!1;if(i==="native"){if(r.fontDirs!==void 0){let E=r.fontDirs;if(!Array.isArray(E)||Object.getPrototypeOf(E)!==Array.prototype||E.length>VU||Reflect.ownKeys(E).some(M=>M!=="length"&&(typeof M!="string"||!/^(?:0|[1-9]\d*)$/.test(M)||Number(M)>=E.length)))throw new TypeError(`PNG fontDirs must be a dense array of at most ${VU} paths`);for(let M=0;M<E.length;M++){let R=E[M];if(!Object.prototype.hasOwnProperty.call(E,M)||typeof R!="string"||R.trim()===""||R.length>YU)throw new TypeError(`PNG fontDirs must be a dense array of non-empty paths no longer than ${YU} characters`)}m=E}if(r.loadSystemFonts!==void 0&&typeof r.loadSystemFonts!="boolean")throw new TypeError("PNG loadSystemFonts must be a boolean");y=r.loadSystemFonts??!1}let x=u!==void 0?{mode:"width",value:u}:f!==void 0?{mode:"height",value:f}:{mode:"zoom",value:c},v=x.mode==="zoom"?c:QE;return Object.freeze({version:3,scale:v,background:Object.freeze(p===void 0?{mode:"artifact",fallback:"#ffffff"}:{mode:"explicit",value:p}),fitTo:Object.freeze(x),fonts:Object.freeze({defaultFamily:oDe,bundledResources:BFn,callerDirectories:Object.freeze([...m]),loadSystemFonts:y})})}function vue(r={}){return gGt(r,"portable")}function lDe(r={}){return gGt(r,"native")}var mGt=Object.freeze(["verified-files","verified-buffers","caller-directories","system-fonts","embedded-data-uri","unavailable"]),uDe=Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"napi",fontSources:Object.freeze(["verified-files"]),reproducibility:"content-addressed"}),pGt=Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"wasm",fontSources:Object.freeze(["verified-buffers"]),reproducibility:"content-addressed"});function bGt(r={}){let i=["verified-files"];return(r.callerDirectories?.length??0)>0&&i.push("caller-directories"),r.loadSystemFonts&&i.push("system-fonts"),i.length===1?uDe:Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"napi",fontSources:Object.freeze(i),reproducibility:"host-dependent"})}function zFn(r,i,s,c={}){let u=Q6(r,i,"png",s,c),f=lGt(u.svg,s),p=Aue(u.svg,s);return{...u,outputPolicy:s,rasterBackground:f,rasterDimensions:p}}function yGt(r,i,s={},c={}){return zFn(r,i,vue(s),c)}var kue=Object.freeze({engine:"canvas",binding:"browser",fontSources:Object.freeze(["unavailable"]),reproducibility:"host-dependent"});function dDe(r){return r===void 0?{scale:QE}:typeof r=="number"?{scale:r}:r}function AGt(r){if(!r||typeof r!="object")throw new TypeError("browser PNG renderer host options are required");let i=r.rasterize;if(typeof i!="function")throw new TypeError("browser PNG rasterizer must be a function");let s=Rce(r.backendPolicy),c=Object.freeze({rasterize:i,...s?{backendPolicy:s}:{}});return Object.freeze({async renderMermaidPNG(u,f={},p=QE){let m=ck(u);return(await fDe(m.source,f,dDe(p),{...c,expectedFamilyId:m.expectedFamilyId})).png},renderMermaidPNGWithReceipt(u,f={},p=QE){let m=ck(u);return fDe(m.source,f,dDe(p),{...c,expectedFamilyId:m.expectedFamilyId})}})}var WFn=new Set(["verified-buffers","embedded-data-uri","unavailable"]),vGt=1048576,HFn=e_*4+vGt,wGt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),"byteLength")?.get;function UFn(r){if(wGt===void 0)throw new Error("TypedArray byteLength intrinsic is unavailable");return Reflect.apply(wGt,r,[])}function xGt(r,i){let s=i.pixels*4+i.height+vGt,c=Math.min(HFn,s);if(UFn(r)>c)throw new RangeError(`browser PNG rasterizer output exceeds the ${c}-byte allocation-derived limit`)}function JFn(r){if(r===void 0)return kue;if(!Array.isArray(r)||r.length===0)throw new TypeError("browser PNG rasterizer fontSources must be a non-empty array when supplied");let i=[];for(let s of r){if(!WFn.has(s))throw new TypeError(`browser PNG rasterizer reported an invalid font source: ${String(s)}`);i.includes(s)||i.push(s)}return i.length===1&&i[0]==="unavailable"?kue:Object.freeze({engine:"canvas",binding:"browser",fontSources:Object.freeze(i),reproducibility:"host-dependent"})}async function kGt(r,i,s,c){let u=ck(r);return fDe(u.source,i,dDe(s),{rasterize:c,expectedFamilyId:u.expectedFamilyId})}async function fDe(r,i,s,c){if(typeof c.rasterize!="function")throw new TypeError("browser PNG rasterizer must be a function");let u=yGt(r,i,s,{backendPolicy:c.backendPolicy,expectedFamilyId:c.expectedFamilyId});if(u.receipt.output!=="png")throw new Error("browser PNG adapter received a non-PNG receipt");let f=xue(NDt(u.svg),u.rasterDimensions),p=await c.rasterize(f,{outputPolicy:u.outputPolicy,rasterDimensions:u.rasterDimensions,rasterBackground:u.rasterBackground,receipt:u.receipt}),m=p?.png,y=p?.diagnostics,x=p?.fontSources;if(!(m instanceof Uint8Array))throw new TypeError("browser PNG rasterizer must return Uint8Array bytes");xGt(m,u.rasterDimensions);let v=JFn(x),S=pue(m);xGt(S,u.rasterDimensions);let E=gue(S);if(E.width!==u.rasterDimensions.width||E.height!==u.rasterDimensions.height)throw new Error(`browser PNG rasterizer returned ${E.width}\xD7${E.height}; expected ${u.rasterDimensions.width}\xD7${u.rasterDimensions.height}`);let M=mue(S);if(M.profile!=="srgb"||M.hasICC||M.cICP===void 0)throw new Error("browser PNG color-profile gate failed");return Object.freeze({png:S,receipt:u.receipt,diagnostics:Object.freeze([...y??[]]),colorProfile:Object.freeze(M),runtime:v})}function SGt(r,i={}){return EGt(r,i).svg}function qFn(r={}){let i=Rce(r.backendPolicy),s=Object.freeze({...i?{backendPolicy:i}:{}});return Object.freeze({renderMermaidSVG(c,u={}){let f=ck(c);return Q6(f.source,u,"svg",void 0,{...s,expectedFamilyId:f.expectedFamilyId}).svg},renderMermaidSVGWithReceipt(c,u={}){let f=ck(c);return Q6(f.source,u,"svg",void 0,{...s,expectedFamilyId:f.expectedFamilyId})}})}function EGt(r,i={}){let s=ck(r);return Q6(s.source,i,"svg",void 0,{expectedFamilyId:s.expectedFamilyId})}async function VFn(r,i={}){return SGt(r,i)}return Fxn(YFn);})();
|
|
778
|
+
</defs>`));let E={count:0,serializationBytes:0};for(let R=0;R<i.parts.length;R++)S.push(...B7t(i.parts[R],u,E,0));S.push(Qa());let M={family:i.family,width:i.width,height:i.height,colors:y,transparent:i.metadata.transparent??!1,parts:S};return PI(M,{mode:"external"}),M}var LO=1;function c$(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function z7t(r){return r instanceof Error?r.message:String(r)}function UU(r,i,s,c){let u=!0;for(let f of Object.keys(r))i.has(f)||(c.push(`unknown ${s} field "${f}"`),u=!1);return u}var xFn=new Set(["version","resources"]),AFn=new Set(["identity","path","mediaType","sha256","bytes","license","required","network"]),vFn=new Set(["id","kind","version","compatibility","provenance"]),kFn=new Set(["owner","source","reference"]),SFn=new Set(["spdx","noticePath"]);function QLe(r){return r===""||r.startsWith("/")||r.includes("\\")||r.includes("\0")?!1:r.split("/").every(s=>s!==""&&s!=="."&&s!=="..")}function EFn(r,i,s){if(!c$(r)){s.push(`missing resource identity: ${i}`);return}let c=r.id,u=r.kind,f=r.version,p=r.compatibility,m=r.provenance,y=typeof c=="string"?c:i,x=UU(r,vFn,"resource identity",s);typeof c!="string"&&(s.push(`invalid resource identity id: ${i}`),x=!1),u!=="resource"&&(s.push(`invalid resource identity kind: ${y}`),x=!1),typeof f!="string"&&(s.push(`invalid resource identity version: ${y}`),x=!1);let v={};if(p!==void 0)if(!c$(p))s.push(`invalid resource compatibility: ${y}`),x=!1;else for(let[E,M]of Object.entries(p))M!==void 0&&typeof M!="string"?(s.push(`invalid resource compatibility range "${E}": ${y}`),x=!1):v[E]=M;let S;if(!c$(m))s.push(`missing resource provenance: ${y}`),x=!1;else{UU(m,kFn,"resource provenance",s)||(x=!1);let E=m.owner,M=m.source,R=m.reference;typeof E!="string"||typeof M!="string"||R!==void 0&&typeof R!="string"?(s.push(`invalid resource provenance: ${y}`),x=!1):S={owner:E,source:M,...R===void 0?{}:{reference:R}}}if(!(!x||S===void 0||typeof f!="string"))try{return gm({id:y,kind:"resource",version:f,compatibility:v,provenance:S})}catch(E){s.push(`invalid resource identity: ${z7t(E)}`);return}}function CFn(r,i,s){let c=`resource[${i}]`;if(!c$(r)){s.push(`resource entry must be a plain object: ${c}`);return}let u=r.identity,f=EFn(u,c,s),p=f?.id??c,m=r.path,y=r.mediaType,x=r.sha256,v=r.bytes,S=r.required,E=r.network,M=f!==void 0;UU(r,AFn,"resource entry",s)||(M=!1),(typeof m!="string"||!QLe(m))&&(s.push(`unsafe resource path: ${p}`),M=!1),(typeof y!="string"||!/^[\w.+-]+\/[\w.+-]+$/.test(y))&&(s.push(`invalid media type: ${p}`),M=!1),(typeof x!="string"||!/^[0-9a-f]{64}$/.test(x))&&(s.push(`invalid sha256: ${p}`),M=!1),(typeof v!="number"||!Number.isSafeInteger(v)||v<=0)&&(s.push(`invalid byte size: ${p}`),M=!1),typeof S!="boolean"&&(s.push(`invalid required status: ${p}`),M=!1),E!=="forbidden"&&(s.push(`resource permits network fallback: ${p}`),M=!1);let R=r.license,P;if(!c$(R))s.push(`missing resource licence: ${p}`),M=!1;else{UU(R,SFn,"resource licence",s)||(M=!1);let N=R.spdx,F=R.noticePath;(typeof N!="string"||N.trim()==="")&&(s.push(`missing resource licence: ${p}`),M=!1),(typeof F!="string"||!QLe(F))&&(s.push(`unsafe resource licence path: ${p}`),M=!1),typeof N=="string"&&N.trim()!==""&&typeof F=="string"&&QLe(F)&&(P=Object.freeze({spdx:N,noticePath:F}))}if(!(!M||f===void 0||P===void 0||typeof m!="string"||typeof y!="string"||typeof x!="string"||typeof v!="number"||typeof S!="boolean"))return Object.freeze({identity:f,path:m,mediaType:y,sha256:x,bytes:v,license:P,required:S,network:"forbidden"})}function W7t(r){let i=[];if(!c$(r))return{errors:Object.freeze(["resource manifest must be a plain object"])};let s=r.version,c=r.resources;if(UU(r,xFn,"resource manifest",i),s!==LO&&i.push(`unsupported resource manifest version: ${String(s)}`),!Array.isArray(c))return i.push("resource manifest resources must be an array"),{errors:Object.freeze(i)};let u=new Set,f=new Set,p=[];for(let[m,y]of Array.from(c).entries()){let x=CFn(y,m,i),v=x?.identity.id??`resource[${m}]`,S=x?.path;u.has(v)&&i.push(`duplicate resource id: ${v}`),S!==void 0&&f.has(S)&&i.push(`duplicate resource path: ${S}`),u.add(v),S!==void 0&&f.add(S),x!==void 0&&p.push(x)}return i.length>0?{errors:Object.freeze(i)}:{errors:Object.freeze([]),snapshot:Object.freeze({version:LO,resources:Object.freeze(p)})}}function H7t(r){return[...W7t(r).errors]}function ZLe(r){let i=W7t(r);if(!i.snapshot)throw new TypeError(`INVALID_RESOURCE_MANIFEST: ${i.errors.join("; ")}`);return i.snapshot}function MFn(r){return r.length>=4&&r[0]===0&&r[1]===1&&r[2]===0&&r[3]===0}var TFn=Object.freeze({"font/ttf":MFn});function IFn(r){return Array.from(r,i=>i.toString(16).padStart(2,"0")).join("")}async function U7t(r,i,s={}){let c;try{let m=r;c=ZLe({version:LO,resources:[{identity:m.identity,path:m.path,mediaType:m.mediaType,sha256:m.sha256,bytes:m.bytes,license:m.license,required:m.required,network:m.network}]}).resources[0]}catch(m){throw new TypeError(`INVALID_RESOURCE_ENTRY: ${z7t(m)}`)}if(!(i instanceof Uint8Array))throw new TypeError("INVALID_RESOURCE_BYTES: bytes must be a Uint8Array");if(!c$(s))throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: options must be a plain object");for(let m of Reflect.ownKeys(s))if(typeof m!="string"||m!=="mediaTypes"&&m!=="digest")throw new TypeError(`INVALID_RESOURCE_VERIFY_OPTIONS: unknown option ${String(m)}`);if(s.mediaTypes!==void 0){if(!c$(s.mediaTypes))throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: mediaTypes must be a plain object");for(let[m,y]of Object.entries(s.mediaTypes))if(typeof y!="function")throw new TypeError(`INVALID_RESOURCE_VERIFY_OPTIONS: mediaTypes.${m} must be a function`)}if(s.digest!==void 0&&typeof s.digest!="function")throw new TypeError("INVALID_RESOURCE_VERIFY_OPTIONS: digest must be a function");if(i.byteLength!==c.bytes)throw new Error(`RESOURCE_SIZE_MISMATCH: ${c.identity.id} declared ${c.bytes} bytes but received ${i.byteLength}`);let u=(s.mediaTypes??TFn)[c.mediaType];if(!u||!u(i))throw new Error(`RESOURCE_MEDIA_TYPE_MISMATCH: ${c.identity.id} is not ${c.mediaType}`);if(await(s.digest??(async m=>{if(!globalThis.crypto?.subtle)throw new Error("RESOURCE_DIGEST_UNAVAILABLE: Web Crypto SHA-256 is required");let y=new Uint8Array(m.byteLength);return y.set(m),IFn(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",y.buffer)))}))(i)!==c.sha256)throw new Error(`RESOURCE_DIGEST_MISMATCH: ${c.identity.id}`)}var $Fn=[{family:"Inter",file:"Inter-Regular.ttf",weight:"400",style:"normal",sha256:"1b08e7fc267a5c7e1d614100f604b83e7e8a0be241f0f288faa2b3ac93a683ba",bytes:324820,license:"OFL-1.1"},{family:"Inter",file:"Inter-Medium.ttf",weight:"500",style:"normal",sha256:"8c883f63b2c4157d997319f2c8bc6995ed4357ef371940d31ca159004a4aae63",bytes:325304,license:"OFL-1.1"},{family:"Inter",file:"Inter-SemiBold.ttf",weight:"600",style:"normal",sha256:"e7a1aaf7eda9f2fad4131725fa556265ec75ca7b2d756260173a040363e8d4f7",bytes:326048,license:"OFL-1.1"},{family:"Inter",file:"Inter-Bold.ttf",weight:"700",style:"normal",sha256:"b37284b5701b6b168dfc770aa1a4ac492106422fd3ba76bc7641e37434e8019c",bytes:326468,license:"OFL-1.1"},{family:"Caveat",file:"Caveat.ttf",weight:"400 700",style:"normal",sha256:"0bdb6b660482d31531b3945849fba5916b3ef8695da7024a9e6b9ee3c4157988",bytes:403648,license:"OFL-1.1"},{family:"EB Garamond",file:"EBGaramond.ttf",weight:"400 700",style:"normal",sha256:"ef9512f92f6d579e5dc75af59a5a4b1b8b47d2eda89e00b954d44520e5369027",bytes:851176,license:"OFL-1.1"},{family:"Architects Daughter",file:"ArchitectsDaughter.ttf",weight:"400",style:"normal",sha256:"6159718a08898e34bc1cb7354086141a5f9a70b73e54dbec27ead0d59a697359",bytes:43352,license:"OFL-1.1"},{family:"Share Tech Mono",file:"ShareTechMono.ttf",weight:"400",style:"normal",sha256:"9ceab1f87414829af259c0f537573ae03ef7dd3147c0b27a36a1a0beb6732677",bytes:43272,license:"OFL-1.1"},{family:"DejaVu Sans",file:"DejaVuSans.ttf",weight:"400",style:"normal",sha256:"ae7b7855e115a5966d8b1b3f80f254ccc117ec86f9965e202ee2940453837280",bytes:759720,license:"Bitstream-Vera"},{family:"DejaVu Sans",file:"DejaVuSans-Bold.ttf",weight:"700",style:"normal",sha256:"5c1247acef7f2b8522a31742c76d6adcb5569bacc0be7ceaa4dc39dd252ce895",bytes:708920,license:"Bitstream-Vera"}];function RFn(r){return`font/${r.file.toLowerCase().replace(/[^a-z0-9._/-]+/g,"-")}`}var Z6=Object.freeze($Fn.map(r=>Object.freeze({family:r.family,file:r.file,weight:r.weight,style:r.style,path:`assets/fonts/${r.file}`,mediaType:"font/ttf",sha256:r.sha256,bytes:r.bytes,license:Object.freeze({spdx:r.license,noticePath:"assets/fonts/FONT-LICENSES.md"}),required:!0,network:"forbidden",identity:gm({id:`resource:${RFn(r)}`,kind:"resource",version:"1.0.0",compatibility:{core:"^0.4.0"},provenance:{owner:"agentic-mermaid",source:"bundled",reference:`assets/fonts/${r.file}`}})}))),eDe=Object.freeze({version:LO,resources:Object.freeze(Z6.map(r=>Object.freeze({identity:r.identity,path:r.path,mediaType:r.mediaType,sha256:r.sha256,bytes:r.bytes,license:r.license,required:r.required,network:r.network})))});function J7t(r=eDe){return H7t(r)}function q7t(r){let i=Z6.find(s=>s.file===r);if(!i)throw new Error(`Unknown bundled font resource: ${r}`);return i}var JU=Object.freeze({version:1,id:"srgb",svgColorInterpolation:"sRGB",gamutMapping:"clip-to-srgb",png:Object.freeze({sRGBRenderingIntent:0,cICP:Object.freeze([1,13,0,1]),iCCP:"absent-when-sRGB-is-present",precedence:Object.freeze(["cICP","iCCP","sRGB","gAMA+cHRM"])})}),hue=new Uint8Array([137,80,78,71,13,10,26,10]),PFn=new Set(["cICP","iCCP","sRGB","gAMA","cHRM"]);function NFn(r){return new TextEncoder().encode(r)}function V7t(r){let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,r>>>0),i}function tDe(r){let i=new Uint8Array(r.reduce((c,u)=>c+u.length,0)),s=0;for(let c of r)i.set(c,s),s+=c.length;return i}function X7t(r){let i=4294967295;for(let s of r){i^=s;for(let c=0;c<8;c++)i=i>>>1^(i&1?3988292384:0)}return(i^4294967295)>>>0}function Y7t(r,i){let s=NFn(r);return tDe([V7t(i.length),s,i,V7t(X7t(tDe([s,i])))])}function OFn(r){if(r.length<hue.length||hue.some((i,s)=>r[s]!==i))throw new Error("Expected a PNG byte stream")}function nDe(r){OFn(r);let i=[],s=hue.length,c=!1;for(;s<r.length;){if(s+12>r.length)throw new Error("Truncated PNG chunk header");let p=new DataView(r.buffer,r.byteOffset+s,4).getUint32(0),m=s+12+p;if(m>r.length)throw new Error("Truncated PNG chunk");let y=new TextDecoder().decode(r.subarray(s+4,s+8));if(!/^[A-Za-z]{4}$/.test(y))throw new Error("Invalid PNG chunk type");let x=r.subarray(s+4,s+8+p);if(new DataView(r.buffer,r.byteOffset+s+8+p,4).getUint32(0)!==X7t(x))throw new Error(`Invalid PNG CRC for ${y}`);let S={type:y,bytes:r.slice(s,m),data:r.slice(s+8,s+8+p)};if(i.push(S),s=m,y==="IEND"){if(p!==0)throw new Error("PNG IEND must be empty");c=!0;break}}if(s!==r.length)throw new Error("PNG contains trailing bytes after IEND");if(!c)throw new Error("PNG is missing IEND");let u=i[0];if(u?.type!=="IHDR"||u.data.length!==13)throw new Error("PNG IHDR must be first and contain 13 bytes");if(i.filter(p=>p.type==="IHDR").length!==1)throw new Error("PNG must contain exactly one IHDR");let f=new DataView(u.data.buffer,u.data.byteOffset,u.data.byteLength);if(f.getUint32(0)===0||f.getUint32(4)===0)throw new Error("PNG dimensions must be non-zero");if(!i.some(p=>p.type==="IDAT"))throw new Error("PNG is missing IDAT image data");return i}function gue(r){let i=nDe(r)[0],s=new DataView(i.data.buffer,i.data.byteOffset,i.data.byteLength);return Object.freeze({width:s.getUint32(0),height:s.getUint32(4)})}function mue(r){let i=nDe(r),s=i.find(u=>u.type==="sRGB"),c=i.find(u=>u.type==="cICP");return{chunks:i.map(u=>u.type),sRGBRenderingIntent:s?.data[0],cICP:c?[...c.data]:void 0,hasICC:i.some(u=>u.type==="iCCP"),profile:JU.id}}function pue(r){let i=nDe(r),s=i[0];if(s?.type!=="IHDR")throw new Error("PNG IHDR must be first");let c=i.slice(1).filter(u=>!PFn.has(u.type)).map(u=>u.bytes);return tDe([hue,s.bytes,Y7t("sRGB",new Uint8Array([JU.png.sRGBRenderingIntent])),Y7t("cICP",new Uint8Array(JU.png.cICP)),...c])}var QE=2,oDe="Inter",e_=16777216,l$=16384,bue=4194304,nGt=8388608,VU=16,YU=4096;function rGt(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))rGt(i);return Object.freeze(r)}var LFn={type:"number",exclusiveMinimum:0},K7t={type:"integer",minimum:1},iGt=Object.freeze({transparent:"#00000000",black:"#000000",silver:"#c0c0c0",gray:"#808080",grey:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500"});function DFn(r){return[...r].map(i=>`[${i.toLowerCase()}${i.toUpperCase()}]`).join("")}var FFn=`^\\s*(?:#[0-9A-Fa-f]{3,4}|#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{8}|${Object.keys(iGt).map(DFn).join("|")})\\s*$`,_Fn={type:"object",additionalProperties:!1,properties:{width:{...K7t,description:"Exact output width in integer pixels."},height:{...K7t,description:"Exact output height in integer pixels."}},oneOf:[{required:["width"]},{required:["height"]}],description:"Exactly one positive output width or height."},DO=rGt({scale:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"number",description:"Positive output scale used when no fitTo constraint is supplied.",schema:{...LFn,default:QE}},background:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"string",description:"Portable basic color or hex color painted behind the raster artifact.",schema:{type:"string",minLength:1,pattern:FFn},runtimeValidator:"portablePngBackground"},fitTo:{scope:"portable",input:"serializable",policy:"included",receipt:"included",typeScript:"{ width: number; height?: never } | { width?: never; height: number }",description:"Exactly one output width or height constraint.",schema:_Fn},fontDirs:{scope:"native-host-only",input:"serializable",policy:"included",receipt:"included",typeScript:"readonly string[]",description:"Trusted native host directories searched for additional fonts.",schema:{type:"array",maxItems:VU,items:{type:"string",minLength:1,maxLength:YU,pattern:"\\S"}}},loadSystemFonts:{scope:"native-host-only",input:"serializable",policy:"included",receipt:"included",typeScript:"boolean",description:"Allow the native rasterizer to load machine-dependent system fonts.",schema:{type:"boolean",default:!1}},onWarning:{scope:"native-host-only",input:"callback",policy:"excluded",receipt:"excluded",typeScript:"(warning: PngFontWarning) => void",description:"Native host callback for font-coverage warnings; never serialized or receipted."}}),t_=Object.freeze(Object.keys(DO)),XU=Object.freeze(t_.filter(r=>DO[r].scope==="portable")),KU=Object.freeze(t_.filter(r=>DO[r].policy==="included")),oGt=Object.freeze(t_.filter(r=>DO[r].scope==="native-host-only"));function rDe(r){return Array.isArray(r)?r.map(rDe):typeof r!="object"||r===null?r:Object.fromEntries(Object.entries(r).map(([i,s])=>[i,rDe(s)]))}function sGt(r="portable"){let s=Object.fromEntries((r==="portable"?XU:KU).map(c=>{let u=DO[c];if(!u.schema)throw new Error(`PNG policy field ${c} has no serializable schema`);return[c,{...rDe(u.schema),description:u.description,"x-agentic-mermaid-scope":u.scope,"x-agentic-mermaid-receipt":u.receipt,..."runtimeValidator"in u?{"x-agentic-mermaid-runtime-validator":u.runtimeValidator}:{}}]}));return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://agentic-mermaid.dev/schemas/png-output-options-v${3}-${r}.schema.json`,type:"object",additionalProperties:!1,properties:s}}function qU(r){if(typeof r!="string")throw new RangeError("SVG input must be a string for PNG rasterization");let i=Yae(r);if(!i)throw new RangeError("could not determine the SVG root for PNG rasterization");return i}function yue(r,i){return TDt(r,i)}function Q7t(r,i){let s=r?.trim();if(!s||!/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:px)?$/i.test(s))throw new RangeError(`SVG root ${i} must be a positive finite absolute pixel length for PNG rasterization`);let c=Number(s.replace(/px$/i,""));if(!Number.isFinite(c)||c<=0)throw new RangeError(`SVG root ${i} must be a positive finite absolute pixel length for PNG rasterization`);return c}function jFn(r){let i=yue(r,"viewBox")?.trim().split(/[\s,]+/).map(Number),s=i?.[2],c=i?.[3];if(i?.length!==4||i.some(u=>!Number.isFinite(u))||s===void 0||c===void 0||s<=0||c<=0)throw new RangeError("SVG root viewBox must contain four finite values with positive bounds for PNG rasterization");return Object.freeze({width:s,height:c})}function sDe(r){let i=qU(r),s=jFn(i),c=yue(i,"width")?.trim(),u=yue(i,"height")?.trim(),f=c==="100%"&&u==="100%",p=f?s.width:Q7t(c,"width"),m=f?s.height:Q7t(u,"height"),y=p/m,x=s.width/s.height,v=Math.abs(y-x),S=Math.max(Math.abs(y),Math.abs(x),1)*1e-9;if(v>S)throw new RangeError(`SVG intrinsic dimensions ${p}\xD7${m} are inconsistent with viewBox ${s.width}\xD7${s.height}`);return Object.freeze({width:p,height:m})}function aDe(r,i){let s=sDe(r);if(typeof i!="number"&&!wue(i))throw new RangeError("PNG raster policy must be a positive scale or resolved policy object");if(typeof i=="number"&&(!Number.isFinite(i)||i<=0))throw new RangeError("PNG raster scale must be a positive finite number");if(typeof i!="number"&&(typeof i.scale!="number"||!Number.isFinite(i.scale)||i.scale<=0||!wue(i.fitTo)||!["zoom","width","height"].includes(String(i.fitTo.mode))||typeof i.fitTo.value!="number"||!Number.isFinite(i.fitTo.value)||i.fitTo.value<=0))throw new RangeError("PNG raster policy must contain a positive finite scale and fitTo mode/value");let c=typeof i=="number"?{mode:"zoom",value:i}:i.fitTo,u=typeof i=="number"?i:i.scale,f=c.mode==="width"?c.value:c.mode==="height"?s.width*c.value/s.height:s.width*u,p=c.mode==="height"?c.value:c.mode==="width"?s.height*c.value/s.width:s.height*u;if(!Number.isFinite(f)||!Number.isFinite(p)||f<=0||p<=0)throw new RangeError("PNG raster budget rejected non-finite or non-positive final dimensions");let m=Math.max(1,Math.ceil(f)),y=Math.max(1,Math.ceil(p));return Object.freeze({width:m,height:y,pixels:m*y})}function xue(r,i){if(!Number.isSafeInteger(i.width)||i.width<=0||!Number.isSafeInteger(i.height)||i.height<=0||!Number.isSafeInteger(i.pixels)||i.pixels!==i.width*i.height)throw new RangeError("PNG raster dimensions must be positive safe integers");let s=qU(r);if(!X2(s,"width")||!X2(s,"height"))throw new RangeError("SVG root must declare intrinsic width and height");let c=a6(r.slice(s.start,s.end),p=>{if(p.name==="width")return String(i.width);if(p.name==="height")return String(i.height)}),u=qU(c);c=X2(u,"preserveAspectRatio")?a6(c,p=>p.name==="preserveAspectRatio"?"none":void 0):`${c.slice(0,-1)} preserveAspectRatio="none">`;let f=`width:${i.width}px!important;height:${i.height}px!important`;return X2(qU(c),"style")?c=a6(c,p=>p.name==="style"?`${p.value.replace(/;?\s*$/,";")}${f}`:void 0):c=`${c.slice(0,-1)} style="${f}">`,Xae(r,s,c)}function Aue(r,i){let s=aDe(r,i);if(s.width>l$||s.height>l$||!Number.isSafeInteger(s.pixels)||s.pixels>e_){let c=Number.isFinite(s.pixels)?`${Math.ceil(s.pixels/1e6)}MP`:"a non-finite pixel count";throw new RangeError(`PNG raster budget exceeded: ${s.width}\xD7${s.height} (${c}); maximum dimension is ${l$}px and pixel cap is ${Math.ceil(e_/1e6)}MP`)}return s}function aGt(r){let i=wue(r),s=i?r.width:Number.NaN,c=i?r.height:Number.NaN,u=i?r.pixels:Number.NaN;if(!i||!Number.isSafeInteger(s)||s<=0||!Number.isSafeInteger(c)||c<=0||!Number.isSafeInteger(u)||u<=0||u!==s*c||s>l$||c>l$||u>bue)throw new RangeError(`hosted PNG raster budget exceeded: ${String(s)}\xD7${String(c)}; maximum dimension is ${l$}px and hosted pixel cap is ${Math.ceil(bue/1e6)}MP`);return r}var BFn=Object.freeze(Z6.map(r=>`${r.identity.id}@${r.identity.version}#sha256:${r.sha256}`));function wue(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}function Z7t(r,i,s){if(!wue(r))throw new TypeError(`${s} must be a plain object`);let c=new Set(i);for(let u of Reflect.ownKeys(r))if(typeof u!="string"||!c.has(u))throw new TypeError(`${s} contains unknown option ${typeof u=="symbol"?String(u):`"${u}"`}`)}function GFn(r,i){if(typeof r!="number"||!Number.isFinite(r)||r<=0)throw new TypeError(`${i} must be a positive finite number`);return r}function eGt(r,i){if(typeof r!="number"||!Number.isSafeInteger(r)||r<=0)throw new TypeError(`${i} must be a positive integer number of pixels`);return r}function cGt(r){if(typeof r!="string")return;let i=Ep(r);if(!i)return;let s=i.map((u,f)=>{let p=f===3?u*255:u;return Math.round(Math.max(0,Math.min(255,p)))}),c=s.map(u=>u.toString(16).padStart(2,"0")).join("");return`#${s[3]===255?c.slice(0,6):c}`}function cDe(r){if(typeof r!="string")return;let i=r.trim().toLowerCase();if(!(!/^#[0-9a-f]{3,4}$/.test(i)&&!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/.test(i)&&!(i in iGt)))return cGt(i)}var tGt="PNG_ARTIFACT_BACKGROUND_UNRESOLVED",iDe=class extends TypeError{code=tGt;paint;constructor(i){super(`${tGt}: PNG artifact background must resolve to a concrete CSS color`),this.name="PngArtifactBackgroundError",this.paint=i}};function lGt(r,i){if(i.background.mode==="explicit")return i.background.value;let c=yue(qU(r),"style")?.match(/(?:^|;)\s*--bg\s*:\s*([^;]+)/i)?.[1]?.trim();if(c===void 0)return i.background.fallback;let u=cGt(c);if(u===void 0)throw new iDe(c);return u}function uGt(r,i){return Object.fromEntries(i.flatMap(s=>Object.prototype.hasOwnProperty.call(r,s)&&r[s]!==void 0?[[s,r[s]]]:[]))}function dGt(r){return uGt(r,XU)}function fGt(r){return uGt(r,KU)}function hGt(r){let i=new Set(t_);return Object.fromEntries(Object.entries(r).filter(([s])=>!i.has(s)))}function gGt(r,i){Z7t(r,i==="portable"?XU:KU,`${i==="portable"?"portable":"native"} PNG output options`);let c=r.scale===void 0?QE:GFn(r.scale,"PNG scale"),u,f;if(r.fitTo!==void 0){Z7t(r.fitTo,["width","height"],"PNG fitTo");let E=Object.keys(r.fitTo);if(E.length!==1||E[0]!=="width"&&E[0]!=="height")throw new TypeError("PNG fitTo accepts exactly one of width or height");Object.prototype.hasOwnProperty.call(r.fitTo,"width")?u=eGt(r.fitTo.width,"PNG fitTo.width"):f=eGt(r.fitTo.height,"PNG fitTo.height")}if(r.background!==void 0&&typeof r.background!="string")throw new TypeError("PNG background must be a safe CSS color");let p=r.background===void 0?void 0:cDe(r.background);if(r.background!==void 0&&!p)throw new TypeError("PNG background must be a safe CSS color in the portable basic-keyword or 3, 4, 6, or 8 digit hex intersection");let m=[],y=!1;if(i==="native"){if(r.fontDirs!==void 0){let E=r.fontDirs;if(!Array.isArray(E)||Object.getPrototypeOf(E)!==Array.prototype||E.length>VU||Reflect.ownKeys(E).some(M=>M!=="length"&&(typeof M!="string"||!/^(?:0|[1-9]\d*)$/.test(M)||Number(M)>=E.length)))throw new TypeError(`PNG fontDirs must be a dense array of at most ${VU} paths`);for(let M=0;M<E.length;M++){let R=E[M];if(!Object.prototype.hasOwnProperty.call(E,M)||typeof R!="string"||R.trim()===""||R.length>YU)throw new TypeError(`PNG fontDirs must be a dense array of non-empty paths no longer than ${YU} characters`)}m=E}if(r.loadSystemFonts!==void 0&&typeof r.loadSystemFonts!="boolean")throw new TypeError("PNG loadSystemFonts must be a boolean");y=r.loadSystemFonts??!1}let x=u!==void 0?{mode:"width",value:u}:f!==void 0?{mode:"height",value:f}:{mode:"zoom",value:c},v=x.mode==="zoom"?c:QE;return Object.freeze({version:3,scale:v,background:Object.freeze(p===void 0?{mode:"artifact",fallback:"#ffffff"}:{mode:"explicit",value:p}),fitTo:Object.freeze(x),fonts:Object.freeze({defaultFamily:oDe,bundledResources:BFn,callerDirectories:Object.freeze([...m]),loadSystemFonts:y})})}function vue(r={}){return gGt(r,"portable")}function lDe(r={}){return gGt(r,"native")}var mGt=Object.freeze(["verified-files","verified-buffers","caller-directories","system-fonts","embedded-data-uri","unavailable"]),uDe=Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"napi",fontSources:Object.freeze(["verified-files"]),reproducibility:"content-addressed"}),pGt=Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"wasm",fontSources:Object.freeze(["verified-buffers"]),reproducibility:"content-addressed"});function bGt(r={}){let i=["verified-files"];return(r.callerDirectories?.length??0)>0&&i.push("caller-directories"),r.loadSystemFonts&&i.push("system-fonts"),i.length===1?uDe:Object.freeze({engine:"resvg",engineVersion:"2.6.2",binding:"napi",fontSources:Object.freeze(i),reproducibility:"host-dependent"})}function zFn(r,i,s,c={}){let u=Q6(r,i,"png",s,c),f=lGt(u.svg,s),p=Aue(u.svg,s);return{...u,outputPolicy:s,rasterBackground:f,rasterDimensions:p}}function yGt(r,i,s={},c={}){return zFn(r,i,vue(s),c)}var kue=Object.freeze({engine:"canvas",binding:"browser",fontSources:Object.freeze(["unavailable"]),reproducibility:"host-dependent"});function dDe(r){return r===void 0?{scale:QE}:typeof r=="number"?{scale:r}:r}function AGt(r){if(!r||typeof r!="object")throw new TypeError("browser PNG renderer host options are required");let i=r.rasterize;if(typeof i!="function")throw new TypeError("browser PNG rasterizer must be a function");let s=Rce(r.backendPolicy),c=Object.freeze({rasterize:i,...s?{backendPolicy:s}:{}});return Object.freeze({async renderMermaidPNG(u,f={},p=QE){let m=ck(u);return(await fDe(m.source,f,dDe(p),{...c,expectedFamilyId:m.expectedFamilyId})).png},renderMermaidPNGWithReceipt(u,f={},p=QE){let m=ck(u);return fDe(m.source,f,dDe(p),{...c,expectedFamilyId:m.expectedFamilyId})}})}var WFn=new Set(["verified-buffers","embedded-data-uri","unavailable"]),vGt=1048576,HFn=e_*4+vGt,wGt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),"byteLength")?.get;function UFn(r){if(wGt===void 0)throw new Error("TypedArray byteLength intrinsic is unavailable");return Reflect.apply(wGt,r,[])}function xGt(r,i){let s=i.pixels*4+i.height+vGt,c=Math.min(HFn,s);if(UFn(r)>c)throw new RangeError(`browser PNG rasterizer output exceeds the ${c}-byte allocation-derived limit`)}function JFn(r){if(r===void 0)return kue;if(!Array.isArray(r)||r.length===0)throw new TypeError("browser PNG rasterizer fontSources must be a non-empty array when supplied");let i=[];for(let s of r){if(!WFn.has(s))throw new TypeError(`browser PNG rasterizer reported an invalid font source: ${String(s)}`);i.includes(s)||i.push(s)}return i.length===1&&i[0]==="unavailable"?kue:Object.freeze({engine:"canvas",binding:"browser",fontSources:Object.freeze(i),reproducibility:"host-dependent"})}async function kGt(r,i,s,c){let u=ck(r);return fDe(u.source,i,dDe(s),{rasterize:c,expectedFamilyId:u.expectedFamilyId})}async function fDe(r,i,s,c){if(typeof c.rasterize!="function")throw new TypeError("browser PNG rasterizer must be a function");let u=yGt(r,i,s,{backendPolicy:c.backendPolicy,expectedFamilyId:c.expectedFamilyId});if(u.receipt.output!=="png")throw new Error("browser PNG adapter received a non-PNG receipt");let f=xue(NDt(u.svg),u.rasterDimensions),p=await c.rasterize(f,{outputPolicy:u.outputPolicy,rasterDimensions:u.rasterDimensions,rasterBackground:u.rasterBackground,receipt:u.receipt}),m=p?.png,y=p?.diagnostics,x=p?.fontSources;if(!(m instanceof Uint8Array))throw new TypeError("browser PNG rasterizer must return Uint8Array bytes");xGt(m,u.rasterDimensions);let v=JFn(x),S=pue(m);xGt(S,u.rasterDimensions);let E=gue(S);if(E.width!==u.rasterDimensions.width||E.height!==u.rasterDimensions.height)throw new Error(`browser PNG rasterizer returned ${E.width}\xD7${E.height}; expected ${u.rasterDimensions.width}\xD7${u.rasterDimensions.height}`);let M=mue(S);if(M.profile!=="srgb"||M.hasICC||M.cICP===void 0)throw new Error("browser PNG color-profile gate failed");return Object.freeze({png:S,receipt:u.receipt,diagnostics:Object.freeze([...y??[]]),colorProfile:Object.freeze(M),runtime:v})}function SGt(r,i={}){return EGt(r,i).svg}function qFn(r={}){let i=Rce(r.backendPolicy),s=Object.freeze({...i?{backendPolicy:i}:{}});return Object.freeze({renderMermaidSVG(c,u={}){let f=ck(c);return Q6(f.source,u,"svg",void 0,{...s,expectedFamilyId:f.expectedFamilyId}).svg},renderMermaidSVGWithReceipt(c,u={}){let f=ck(c);return Q6(f.source,u,"svg",void 0,{...s,expectedFamilyId:f.expectedFamilyId})}})}function EGt(r,i={}){let s=ck(r);return Q6(s.source,i,"svg",void 0,{expectedFamilyId:s.expectedFamilyId})}async function VFn(r,i={}){return SGt(r,i)}return Fxn(YFn);})();
|