From 68e21ea85e44f9e7587facc01f2a9fbc71649ded Mon Sep 17 00:00:00 2001 From: Simon Sarris Date: Mon, 2 May 2016 17:20:40 -0400 Subject: [PATCH] 1.6.6 Note that several files were UTF-8 with BOM, but are now just UTF-8 --- api/index.html | 2 +- api/symbols/ActionTool.html | 2 +- api/symbols/Adornment.html | 2 +- api/symbols/AnimationManager.html | 2 +- api/symbols/Binding.html | 2 +- api/symbols/Brush.html | 2 +- api/symbols/ChangedEvent.html | 2 +- api/symbols/CircularEdge.html | 2 +- api/symbols/CircularLayout.html | 2 +- api/symbols/CircularVertex.html | 2 +- api/symbols/ClickCreatingTool.html | 2 +- api/symbols/ClickSelectingTool.html | 2 +- api/symbols/CommandHandler.html | 2 +- api/symbols/ContextMenuTool.html | 2 +- api/symbols/Diagram.html | 2 +- api/symbols/DiagramEvent.html | 2 +- api/symbols/DragSelectingTool.html | 2 +- api/symbols/DraggingTool.html | 2 +- api/symbols/ForceDirectedEdge.html | 2 +- api/symbols/ForceDirectedLayout.html | 2 +- api/symbols/ForceDirectedVertex.html | 2 +- api/symbols/Geometry.html | 2 +- api/symbols/GraphLinksModel.html | 54 +- api/symbols/GraphObject.html | 2 +- api/symbols/GridLayout.html | 2 +- api/symbols/Group.html | 2 +- api/symbols/InputEvent.html | 2 +- api/symbols/Iterable.html | 2 +- api/symbols/Iterator.html | 2 +- api/symbols/Layer.html | 2 +- api/symbols/LayeredDigraphEdge.html | 2 +- api/symbols/LayeredDigraphLayout.html | 2 +- api/symbols/LayeredDigraphVertex.html | 2 +- api/symbols/Layout.html | 2 +- api/symbols/LayoutEdge.html | 2 +- api/symbols/LayoutNetwork.html | 2 +- api/symbols/LayoutVertex.html | 2 +- api/symbols/Link.html | 4 +- api/symbols/LinkReshapingTool.html | 2 +- api/symbols/LinkingBaseTool.html | 2 +- api/symbols/LinkingTool.html | 2 +- api/symbols/List.html | 2 +- api/symbols/Map.html | 2 +- api/symbols/Margin.html | 2 +- api/symbols/Model.html | 22 +- api/symbols/Node.html | 2 +- api/symbols/Overview.html | 2 +- api/symbols/Palette.html | 2 +- api/symbols/Panel.html | 2 +- api/symbols/PanningTool.html | 2 +- api/symbols/Part.html | 2 +- api/symbols/PathFigure.html | 2 +- api/symbols/PathSegment.html | 2 +- api/symbols/Picture.html | 2 +- api/symbols/Placeholder.html | 2 +- api/symbols/Point.html | 2 +- api/symbols/Rect.html | 2 +- api/symbols/RelinkingTool.html | 2 +- api/symbols/ResizingTool.html | 2 +- api/symbols/RotatingTool.html | 2 +- api/symbols/RowColumnDefinition.html | 2 +- api/symbols/Set.html | 2 +- api/symbols/Shape.html | 2 +- api/symbols/Size.html | 2 +- api/symbols/Spot.html | 2 +- api/symbols/TextBlock.html | 2 +- api/symbols/TextEditingTool.html | 2 +- api/symbols/Tool.html | 2 +- api/symbols/ToolManager.html | 2 +- api/symbols/Transaction.html | 2 +- api/symbols/TreeEdge.html | 2 +- api/symbols/TreeLayout.html | 2 +- api/symbols/TreeModel.html | 14 +- api/symbols/TreeVertex.html | 2 +- api/symbols/UndoManager.html | 2 +- doc/changelog.html | 9 +- doc/download.html | 2 +- extensions/BPMN.html | 2 +- extensions/CheckBoxes.html | 2 +- extensions/ColumnResizing.html | 2 +- extensions/CurvedLinkReshaping.html | 2 +- extensions/DataInspector.html | 99 +- extensions/DataInspector.js | 219 +- extensions/DebugInspector.html | 2 +- extensions/Dimensioning.html | 2 +- extensions/DragCreating.html | 2 +- extensions/DragZooming.html | 2 +- extensions/Fishbone.html | 2 +- extensions/FishboneLayout.js | 2 +- extensions/FloorPlanEditor.html | 2 +- extensions/FloorPlanMonitor.html | 2 +- extensions/FreehandDrawing.html | 2 +- extensions/GuidedDraggingTool.js | 2 +- extensions/Inspector.html | 2 +- extensions/LinkLabelDragging.html | 2 +- extensions/LinkShifting.html | 2 +- extensions/NodeLabelDragging.html | 2 +- extensions/Parallel.html | 2 +- extensions/ParallelLayout.js | 2 +- extensions/PolygonDrawing.html | 2 +- extensions/PolylineLinking.html | 2 +- extensions/PortShifting.html | 2 +- extensions/RealtimeDragSelecting.html | 2 +- extensions/ResizeMultipleTool.js | 2 +- extensions/Robot.html | 2 +- extensions/Robot.js | 2 +- extensions/RotateMultipleTool.js | 2 +- extensions/ScrollingTable.html | 2 +- extensions/Serpentine.html | 2 +- extensions/SnapLinkReshaping.html | 2 +- extensions/Spiral.html | 2 +- extensions/Table.html | 2 +- extensions/TreeMap.html | 2 +- extensions/TreeMapLayout.js | 2 +- index.html | 2 +- intro/brush.html | 2 +- intro/buildingObjects.html | 2 +- intro/buttons.html | 2 +- intro/changedEvents.html | 2 +- intro/collections.html | 2 +- intro/commands.html | 2 +- intro/connectionPoints.html | 2 +- intro/contextMenus.html | 2 +- intro/dataBinding.html | 2 +- intro/deployment.html | 2 +- intro/events.html | 2 +- intro/extensions.html | 2 +- intro/geometry.html | 2 +- intro/grids.html | 2 +- intro/groups.html | 2 +- intro/highlighting.html | 2 +- intro/index.html | 2 +- intro/initialView.html | 2 +- intro/itemArrays.html | 2 +- intro/layers.html | 2 +- intro/layouts.html | 2 +- intro/legends.html | 2 +- intro/linkLabels.html | 2 +- intro/links.html | 2 +- intro/makingImages.html | 2 +- intro/makingSVG.html | 2 +- intro/nodes.html | 2 +- intro/overview.html | 2 +- intro/palette.html | 2 +- intro/panels.html | 2 +- intro/performance.html | 2 +- intro/permissions.html | 2 +- intro/pictures.html | 2 +- intro/ports.html | 2 +- intro/printing.html | 2 +- intro/resizing.html | 2 +- intro/selection.html | 2 +- intro/serverSideImages.html | 2 +- intro/shapes.html | 2 +- intro/sizedGroups.html | 2 +- intro/sizing.html | 2 +- intro/subgraphs.html | 2 +- intro/subtrees.html | 2 +- intro/tablePanels.html | 2 +- intro/templateMaps.html | 2 +- intro/textBlocks.html | 2 +- intro/tools.html | 2 +- intro/tooltips.html | 2 +- intro/transactions.html | 2 +- intro/trees.html | 2 +- intro/usingModels.html | 2 +- intro/validation.html | 2 +- intro/viewport.html | 2 +- learn/graphobject.html | 2 +- learn/index.html | 2 +- learn/interactivity.html | 2 +- package.json | 2 +- projects/electron-circuit/logicCircuit.html | 2 +- projects/nw-circuit/logicCircuit.html | 2 +- release/go-debug.js | 2088 +++++++++---------- release/go.js | 2072 +++++++++--------- samples/DOMTree.html | 2 +- samples/IVRtree.html | 2 +- samples/PERT.html | 2 +- samples/absolute.html | 2 +- samples/addRemoveColumns.html | 2 +- samples/adornmentButtons.html | 2 +- samples/angular.html | 2 +- samples/arrowheads.html | 2 +- samples/barCharts.html | 2 +- samples/basic.html | 2 +- samples/beatPaths.html | 2 +- samples/cLayout.html | 2 +- samples/candlestickCharts.html | 2 +- samples/canvases.html | 2 +- samples/classHierarchy.html | 2 +- samples/comments.html | 2 +- samples/conceptMap.html | 2 +- samples/constantSize.html | 2 +- samples/contentAlign.html | 2 +- samples/curviness.html | 2 +- samples/customContextMenu.html | 2 +- samples/customTextEditingTool.html | 2 +- samples/dataFlow.html | 2 +- samples/dataFlowVertical.html | 2 +- samples/dataVisualization.html | 2 +- samples/decisionTree.html | 2 +- samples/distances.html | 2 +- samples/doubleCircle.html | 2 +- samples/doubleTree.html | 2 +- samples/doubleTreeJSON.html | 2 +- samples/dragDropFields.html | 2 +- samples/dragOutFields.html | 2 +- samples/dragUnoccupied.html | 2 +- samples/draggableLink.html | 2 +- samples/draggablePorts.html | 2 +- samples/dynamicPorts.html | 2 +- samples/entityRelationship.html | 2 +- samples/euler.html | 2 +- samples/familyTree.html | 2 +- samples/familyTreeJP.html | 2 +- samples/faultTree.html | 2 +- samples/fdLayout.html | 2 +- samples/flowBuilder.html | 2 +- samples/flowchart.html | 2 +- samples/flowgrammer.html | 2 +- samples/friendWheel.html | 2 +- samples/gLayout.html | 2 +- samples/gantt.html | 2 +- samples/genogram.html | 2 +- samples/grafcet.html | 2 +- samples/grouping.html | 2 +- samples/hoverButtons.html | 2 +- samples/htmlDragDrop.html | 2 +- samples/htmlInteraction.html | 2 +- samples/htmlLightBoxContextMenu.html | 2 +- samples/icons.html | 2 +- samples/incrementalTree.html | 2 +- samples/index.html | 2 +- samples/interactiveForce.html | 2 +- samples/jQueryDragDrop.html | 2 +- samples/kanban.html | 2 +- samples/kittenMonitor.html | 2 +- samples/ldLayout.html | 2 +- samples/leaflet.html | 2 +- samples/linksToLinks.html | 2 +- samples/localView.html | 2 +- samples/logicCircuit.html | 2 +- samples/macros.html | 2 +- samples/magnifier.html | 2 +- samples/mindMap.html | 2 +- samples/minimal.html | 2 +- samples/minimalJSON.html | 2 +- samples/minimalXML.html | 2 +- samples/multiArrow.html | 2 +- samples/multiNodePathLinks.html | 2 +- samples/navigation.html | 2 +- samples/network.html | 2 +- samples/orgChartEditor.html | 2 +- samples/orgChartExtras.html | 2 +- samples/orgChartStatic.html | 2 +- samples/pageFlow.html | 2 +- samples/parseTree.html | 2 +- samples/pathAnimation.html | 2 +- samples/pieCharts.html | 2 +- samples/pipeTree.html | 2 +- samples/pipes.html | 2 +- samples/planogram.html | 2 +- samples/processFlow.html | 2 +- samples/productionProcess.html | 2 +- samples/radial.html | 2 +- samples/radialPartition.html | 2 +- samples/records.html | 2 +- samples/regrouping.html | 2 +- samples/regroupingScaled.html | 2 +- samples/regroupingTreeView.html | 2 +- samples/relationships.html | 2 +- samples/sankey.html | 2 +- samples/scrollModes.html | 2 +- samples/seatingChart.html | 2 +- samples/selectableFields.html | 2 +- samples/selectablePorts.html | 2 +- samples/sequenceDiagram.html | 2 +- samples/sequentialFunction.html | 2 +- samples/shapes.html | 2 +- samples/sharedStates.html | 2 +- samples/shopFloorMonitor.html | 2 +- samples/spacingZoom.html | 2 +- samples/sparklineGraphs.html | 2 +- samples/spreadsheet.html | 2 +- samples/stateChart.html | 2 +- samples/stateChartIncremental.html | 2 +- samples/swimBands.html | 2 +- samples/swimLanesVertical.html | 2 +- samples/swimlanes.html | 2 +- samples/systemDynamics.html | 2 +- samples/tLayout.html | 2 +- samples/tabs.html | 2 +- samples/taperedLinks.html | 2 +- samples/tiger.html | 2 +- samples/timeline.html | 2 +- samples/tournament.html | 2 +- samples/treeMapper.html | 2 +- samples/treeView.html | 2 +- samples/twoDiagrams.html | 2 +- samples/umlClass.html | 2 +- samples/unlisted.html | 2 +- samples/updateDemo.html | 2 +- samples/virtualized.html | 2 +- samples/virtualizedForceLayout.html | 2 +- samples/virtualizedTree.html | 2 +- samples/virtualizedTreeLayout.html | 2 +- samples/visualTree.html | 2 +- samples/visualTreeGrouping.html | 2 +- 309 files changed, 2631 insertions(+), 2550 deletions(-) diff --git a/api/index.html b/api/index.html index 9d1daefcc..9698c0759 100644 --- a/api/index.html +++ b/api/index.html @@ -1073,7 +1073,7 @@

GoJS Class Index

diff --git a/api/symbols/ActionTool.html b/api/symbols/ActionTool.html index a08b30c1a..887c0f349 100644 --- a/api/symbols/ActionTool.html +++ b/api/symbols/ActionTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Adornment.html b/api/symbols/Adornment.html index 10791af56..543b0a85e 100644 --- a/api/symbols/Adornment.html +++ b/api/symbols/Adornment.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/AnimationManager.html b/api/symbols/AnimationManager.html index c5eaa71c8..0f4d5a1e7 100644 --- a/api/symbols/AnimationManager.html +++ b/api/symbols/AnimationManager.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Binding.html b/api/symbols/Binding.html index dd61f0f93..e79b5c878 100644 --- a/api/symbols/Binding.html +++ b/api/symbols/Binding.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Brush.html b/api/symbols/Brush.html index d2b511b69..2d5a33344 100644 --- a/api/symbols/Brush.html +++ b/api/symbols/Brush.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ChangedEvent.html b/api/symbols/ChangedEvent.html index 60befa5d4..388fc1cd3 100644 --- a/api/symbols/ChangedEvent.html +++ b/api/symbols/ChangedEvent.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/CircularEdge.html b/api/symbols/CircularEdge.html index d8b7ea557..b2d487875 100644 --- a/api/symbols/CircularEdge.html +++ b/api/symbols/CircularEdge.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/CircularLayout.html b/api/symbols/CircularLayout.html index f81ec5d4a..365491c88 100644 --- a/api/symbols/CircularLayout.html +++ b/api/symbols/CircularLayout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/CircularVertex.html b/api/symbols/CircularVertex.html index a28d18526..46858d7d9 100644 --- a/api/symbols/CircularVertex.html +++ b/api/symbols/CircularVertex.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ClickCreatingTool.html b/api/symbols/ClickCreatingTool.html index 118dfd01e..b75caa317 100644 --- a/api/symbols/ClickCreatingTool.html +++ b/api/symbols/ClickCreatingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ClickSelectingTool.html b/api/symbols/ClickSelectingTool.html index b50ed68b1..c58a58683 100644 --- a/api/symbols/ClickSelectingTool.html +++ b/api/symbols/ClickSelectingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/CommandHandler.html b/api/symbols/CommandHandler.html index ade414173..a440593b6 100644 --- a/api/symbols/CommandHandler.html +++ b/api/symbols/CommandHandler.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ContextMenuTool.html b/api/symbols/ContextMenuTool.html index fb895641b..fd4f572c9 100644 --- a/api/symbols/ContextMenuTool.html +++ b/api/symbols/ContextMenuTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Diagram.html b/api/symbols/Diagram.html index 644e2fe50..e8071fb9f 100644 --- a/api/symbols/Diagram.html +++ b/api/symbols/Diagram.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/DiagramEvent.html b/api/symbols/DiagramEvent.html index 7e58b0b9e..5f36d7a8f 100644 --- a/api/symbols/DiagramEvent.html +++ b/api/symbols/DiagramEvent.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/DragSelectingTool.html b/api/symbols/DragSelectingTool.html index 58dfafd9f..9059d3a90 100644 --- a/api/symbols/DragSelectingTool.html +++ b/api/symbols/DragSelectingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/DraggingTool.html b/api/symbols/DraggingTool.html index 60c18f62b..bb441eabf 100644 --- a/api/symbols/DraggingTool.html +++ b/api/symbols/DraggingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ForceDirectedEdge.html b/api/symbols/ForceDirectedEdge.html index d9ba558ee..032cc22eb 100644 --- a/api/symbols/ForceDirectedEdge.html +++ b/api/symbols/ForceDirectedEdge.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ForceDirectedLayout.html b/api/symbols/ForceDirectedLayout.html index 934210a33..d567c14f8 100644 --- a/api/symbols/ForceDirectedLayout.html +++ b/api/symbols/ForceDirectedLayout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ForceDirectedVertex.html b/api/symbols/ForceDirectedVertex.html index 4646846c2..be0cd2759 100644 --- a/api/symbols/ForceDirectedVertex.html +++ b/api/symbols/ForceDirectedVertex.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Geometry.html b/api/symbols/Geometry.html index 6b263bf7b..f4d3c3080 100644 --- a/api/symbols/Geometry.html +++ b/api/symbols/Geometry.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/GraphLinksModel.html b/api/symbols/GraphLinksModel.html index 614aa3206..027f40960 100644 --- a/api/symbols/GraphLinksModel.html +++ b/api/symbols/GraphLinksModel.html @@ -1093,7 +1093,7 @@
@@ -1586,7 +1586,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string|number} key @@ -1632,7 +1632,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -1709,7 +1709,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -1756,7 +1756,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -1803,7 +1803,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -1903,7 +1903,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -1952,7 +1952,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2001,7 +2001,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2050,7 +2050,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2103,7 +2103,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link
+
a JavaScript object represented by a link
@@ -2156,7 +2156,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2205,7 +2205,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2254,7 +2254,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2301,7 +2301,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2343,7 +2343,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link
+
a JavaScript object represented by a link
@@ -2385,7 +2385,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string|number} key @@ -2431,7 +2431,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
@@ -2508,7 +2508,7 @@

Method Summary{Object} linkdata -
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string} cat @@ -2554,7 +2554,7 @@

Method Summary{Object} data

-
a JavaScript object representing a Node, Link, Group, simple Part, or item in a Panel.itemArray.
+
a JavaScript object typically the value of a Panel.data and represented by a Node, Link, Group, simple Part, or item in a Panel.itemArray; or this model's modelData.
{string} propname @@ -2608,7 +2608,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string|number|undefined} key @@ -2656,7 +2656,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string} portname @@ -2704,7 +2704,7 @@

Method Summary{Object} nodedata

-
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
{string|number|undefined} key @@ -2754,7 +2754,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link
+
a JavaScript object represented by a link
{string|number} key @@ -2806,7 +2806,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
arr @@ -2854,7 +2854,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string|number|undefined} key @@ -2902,7 +2902,7 @@

Method Summary{Object} linkdata

-
a JavaScript object representing a link.
+
a JavaScript object represented by a link.
{string} portname diff --git a/api/symbols/GraphObject.html b/api/symbols/GraphObject.html index f01ff1d23..c8be5df5e 100644 --- a/api/symbols/GraphObject.html +++ b/api/symbols/GraphObject.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/GridLayout.html b/api/symbols/GridLayout.html index f7a160513..edc31a122 100644 --- a/api/symbols/GridLayout.html +++ b/api/symbols/GridLayout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Group.html b/api/symbols/Group.html index 4b1c3dd10..7b51d6442 100644 --- a/api/symbols/Group.html +++ b/api/symbols/Group.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/InputEvent.html b/api/symbols/InputEvent.html index 796baceb1..5326f557f 100644 --- a/api/symbols/InputEvent.html +++ b/api/symbols/InputEvent.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Iterable.html b/api/symbols/Iterable.html index 6f355abb3..5aa7939fb 100644 --- a/api/symbols/Iterable.html +++ b/api/symbols/Iterable.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Iterator.html b/api/symbols/Iterator.html index d0b9ff870..da9d3a331 100644 --- a/api/symbols/Iterator.html +++ b/api/symbols/Iterator.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Layer.html b/api/symbols/Layer.html index 8fcd5c4dc..d576e52ac 100644 --- a/api/symbols/Layer.html +++ b/api/symbols/Layer.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayeredDigraphEdge.html b/api/symbols/LayeredDigraphEdge.html index 5209e0c79..72d21db82 100644 --- a/api/symbols/LayeredDigraphEdge.html +++ b/api/symbols/LayeredDigraphEdge.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayeredDigraphLayout.html b/api/symbols/LayeredDigraphLayout.html index ff0d5c439..9909e18c1 100644 --- a/api/symbols/LayeredDigraphLayout.html +++ b/api/symbols/LayeredDigraphLayout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayeredDigraphVertex.html b/api/symbols/LayeredDigraphVertex.html index 71b473308..d10d44312 100644 --- a/api/symbols/LayeredDigraphVertex.html +++ b/api/symbols/LayeredDigraphVertex.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Layout.html b/api/symbols/Layout.html index 8d5f875e1..43bef5797 100644 --- a/api/symbols/Layout.html +++ b/api/symbols/Layout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayoutEdge.html b/api/symbols/LayoutEdge.html index c4c0c093b..bee263c79 100644 --- a/api/symbols/LayoutEdge.html +++ b/api/symbols/LayoutEdge.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayoutNetwork.html b/api/symbols/LayoutNetwork.html index 2899f76c7..66999aefc 100644 --- a/api/symbols/LayoutNetwork.html +++ b/api/symbols/LayoutNetwork.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LayoutVertex.html b/api/symbols/LayoutVertex.html index c9ef9f5ff..955ca74d9 100644 --- a/api/symbols/LayoutVertex.html +++ b/api/symbols/LayoutVertex.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Link.html b/api/symbols/Link.html index 2293f6cc3..d953e2668 100644 --- a/api/symbols/Link.html +++ b/api/symbols/Link.html @@ -1093,7 +1093,7 @@
@@ -2327,7 +2327,7 @@

Method Summary
-

The code that constructs a new route by modifying the points.More... It is only called by updateRoute, when needed.

This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

Overrides of this method may call a number of "protected" methods in order to build the route: clearPoints, addPoint, insertPoint, removePoint, setPoint. Other methods that are commonly called and may be overridden are: computeEndSegmentLength, computeSpot, computeOtherPoint, computeCurve, computeCurviness, hasCurviness, computeThickness, makeGeometry.

+

The code that constructs a new route by modifying the points.More... It is only called by updateRoute, when needed.

This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

Overrides of this method may call a number of "protected" methods in order to build the route: clearPoints, addPoint, insertPoint, removePoint, setPoint. Overrides of this method must not set points.

Other methods that are commonly called and may be overridden are: computeEndSegmentLength, computeSpot, computeOtherPoint, computeCurve, computeCurviness, hasCurviness, computeThickness, makeGeometry.

diff --git a/api/symbols/LinkReshapingTool.html b/api/symbols/LinkReshapingTool.html index 437ed12cb..8c578a1bf 100644 --- a/api/symbols/LinkReshapingTool.html +++ b/api/symbols/LinkReshapingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LinkingBaseTool.html b/api/symbols/LinkingBaseTool.html index 23f256b18..33485d620 100644 --- a/api/symbols/LinkingBaseTool.html +++ b/api/symbols/LinkingBaseTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/LinkingTool.html b/api/symbols/LinkingTool.html index fcc67790d..6441e13bd 100644 --- a/api/symbols/LinkingTool.html +++ b/api/symbols/LinkingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/List.html b/api/symbols/List.html index d67fe52ce..401c7f619 100644 --- a/api/symbols/List.html +++ b/api/symbols/List.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Map.html b/api/symbols/Map.html index 359363a7b..744f02ae5 100644 --- a/api/symbols/Map.html +++ b/api/symbols/Map.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Margin.html b/api/symbols/Margin.html index 7f3ef0ca7..5654a75bd 100644 --- a/api/symbols/Margin.html +++ b/api/symbols/Margin.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Model.html b/api/symbols/Model.html index 2f98f218d..269bcfd32 100644 --- a/api/symbols/Model.html +++ b/api/symbols/Model.html @@ -1093,7 +1093,7 @@
@@ -1613,7 +1613,7 @@

Method Summary{Object} nodedata

-
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -1813,7 +1813,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -1891,7 +1891,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2035,7 +2035,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2086,7 +2086,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2178,7 +2178,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2431,7 +2431,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -2537,7 +2537,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
{string} cat @@ -2576,7 +2576,7 @@

Method Summary{Object} data

-
a JavaScript object representing a Node, Link, Group, simple Part, or item in a Panel.itemArray or this model's modelData.
+
a JavaScript object typically the value of a Panel.data and represented by a Node, Link, Group, simple Part, or item in a Panel.itemArray; or this model's modelData.
{string} propname @@ -2632,7 +2632,7 @@

Method Summary{Object} nodedata

-
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
{string|number} key diff --git a/api/symbols/Node.html b/api/symbols/Node.html index 1e73269cc..ac1e9d8e4 100644 --- a/api/symbols/Node.html +++ b/api/symbols/Node.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Overview.html b/api/symbols/Overview.html index bcc03af56..25f46b6a3 100644 --- a/api/symbols/Overview.html +++ b/api/symbols/Overview.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Palette.html b/api/symbols/Palette.html index 6cd2e901b..59a64da9a 100644 --- a/api/symbols/Palette.html +++ b/api/symbols/Palette.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Panel.html b/api/symbols/Panel.html index e36e58c87..9c925fd30 100644 --- a/api/symbols/Panel.html +++ b/api/symbols/Panel.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/PanningTool.html b/api/symbols/PanningTool.html index fa0b16b19..a5051a269 100644 --- a/api/symbols/PanningTool.html +++ b/api/symbols/PanningTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Part.html b/api/symbols/Part.html index 1fac09c00..2442f64e9 100644 --- a/api/symbols/Part.html +++ b/api/symbols/Part.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/PathFigure.html b/api/symbols/PathFigure.html index 9dae8945d..c5b8d01f6 100644 --- a/api/symbols/PathFigure.html +++ b/api/symbols/PathFigure.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/PathSegment.html b/api/symbols/PathSegment.html index 35c4b8090..780f51c15 100644 --- a/api/symbols/PathSegment.html +++ b/api/symbols/PathSegment.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Picture.html b/api/symbols/Picture.html index 765f5f881..1d898f36a 100644 --- a/api/symbols/Picture.html +++ b/api/symbols/Picture.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Placeholder.html b/api/symbols/Placeholder.html index e45c71fb8..8cde1ad68 100644 --- a/api/symbols/Placeholder.html +++ b/api/symbols/Placeholder.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Point.html b/api/symbols/Point.html index 129f37d67..15b19eb49 100644 --- a/api/symbols/Point.html +++ b/api/symbols/Point.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Rect.html b/api/symbols/Rect.html index 10321bafd..62a25a053 100644 --- a/api/symbols/Rect.html +++ b/api/symbols/Rect.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/RelinkingTool.html b/api/symbols/RelinkingTool.html index a55c326de..96d1bb80a 100644 --- a/api/symbols/RelinkingTool.html +++ b/api/symbols/RelinkingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ResizingTool.html b/api/symbols/ResizingTool.html index 0503e0e27..499fa6f39 100644 --- a/api/symbols/ResizingTool.html +++ b/api/symbols/ResizingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/RotatingTool.html b/api/symbols/RotatingTool.html index 01ab5e76d..db66dd68c 100644 --- a/api/symbols/RotatingTool.html +++ b/api/symbols/RotatingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/RowColumnDefinition.html b/api/symbols/RowColumnDefinition.html index a96d38187..f8fceaacd 100644 --- a/api/symbols/RowColumnDefinition.html +++ b/api/symbols/RowColumnDefinition.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Set.html b/api/symbols/Set.html index abe478ea0..25a5dc227 100644 --- a/api/symbols/Set.html +++ b/api/symbols/Set.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Shape.html b/api/symbols/Shape.html index c4b284b0b..ae2fc3170 100644 --- a/api/symbols/Shape.html +++ b/api/symbols/Shape.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Size.html b/api/symbols/Size.html index 62e385841..3f601ed74 100644 --- a/api/symbols/Size.html +++ b/api/symbols/Size.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Spot.html b/api/symbols/Spot.html index 33bff6492..5a6af57af 100644 --- a/api/symbols/Spot.html +++ b/api/symbols/Spot.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/TextBlock.html b/api/symbols/TextBlock.html index 8fe1b7459..c805be915 100644 --- a/api/symbols/TextBlock.html +++ b/api/symbols/TextBlock.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/TextEditingTool.html b/api/symbols/TextEditingTool.html index 680ff4f1f..6abfd96ac 100644 --- a/api/symbols/TextEditingTool.html +++ b/api/symbols/TextEditingTool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Tool.html b/api/symbols/Tool.html index f2926daa7..08b1d68dd 100644 --- a/api/symbols/Tool.html +++ b/api/symbols/Tool.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/ToolManager.html b/api/symbols/ToolManager.html index ffa870d82..61db48f58 100644 --- a/api/symbols/ToolManager.html +++ b/api/symbols/ToolManager.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/Transaction.html b/api/symbols/Transaction.html index 586ea99d3..88a886e76 100644 --- a/api/symbols/Transaction.html +++ b/api/symbols/Transaction.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/TreeEdge.html b/api/symbols/TreeEdge.html index fdb32b83c..229b2aa22 100644 --- a/api/symbols/TreeEdge.html +++ b/api/symbols/TreeEdge.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/TreeLayout.html b/api/symbols/TreeLayout.html index 1a8ef7c69..934cf8b8f 100644 --- a/api/symbols/TreeLayout.html +++ b/api/symbols/TreeLayout.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/TreeModel.html b/api/symbols/TreeModel.html index 6c5b6e25a..8e5afce56 100644 --- a/api/symbols/TreeModel.html +++ b/api/symbols/TreeModel.html @@ -1093,7 +1093,7 @@
@@ -1294,7 +1294,7 @@

Method Summary{Object} nodedata

-
a JavaScript object representing a node, group, or non-link.
+
a JavaScript object represented by a node, group, or non-link.
@@ -1343,7 +1343,7 @@

Method Summary{Object} nodedata -
a JavaScript object representing a node.
+
a JavaScript object represented by a node.
@@ -1392,7 +1392,7 @@

Method Summary{Object} childdata -
a JavaScript object representing a node data.
+
a JavaScript object represented by a node data.
@@ -1439,7 +1439,7 @@

Method Summary{Object} data -
a JavaScript object representing a Node, simple Part, or item in a Panel.itemArray.
+
a JavaScript object typically the value of a Panel.data and represented by a Node, Link, Group, simple Part, or item in a Panel.itemArray; or this model's modelData.
{string} propname @@ -1493,7 +1493,7 @@

Method Summary{Object} nodedata

-
a JavaScript object representing a node.
+
a JavaScript object represented by a node.
{string|number|undefined} key @@ -1541,7 +1541,7 @@

Method Summary{Object} childdata

-
a JavaScript object representing a node data.
+
a JavaScript object represented by a node data.
{string} cat diff --git a/api/symbols/TreeVertex.html b/api/symbols/TreeVertex.html index 5bc545cc8..a09ef1711 100644 --- a/api/symbols/TreeVertex.html +++ b/api/symbols/TreeVertex.html @@ -1093,7 +1093,7 @@
diff --git a/api/symbols/UndoManager.html b/api/symbols/UndoManager.html index 8c61c4a28..2ab945fe3 100644 --- a/api/symbols/UndoManager.html +++ b/api/symbols/UndoManager.html @@ -1093,7 +1093,7 @@
diff --git a/doc/changelog.html b/doc/changelog.html index b71c10b41..83137ae1c 100644 --- a/doc/changelog.html +++ b/doc/changelog.html @@ -1,4 +1,4 @@ - + @@ -80,6 +80,13 @@

GoJS Change Log

+

Changes for 1.6.6

+ +

Changes for 1.6.5

  • Fixed updating of a link geometry when modifying Link.curve or Link.curviness.
  • diff --git a/doc/download.html b/doc/download.html index 10414508d..cfbfdd102 100644 --- a/doc/download.html +++ b/doc/download.html @@ -1,4 +1,4 @@ - + diff --git a/extensions/BPMN.html b/extensions/BPMN.html index 7fc9238d0..6910597b5 100644 --- a/extensions/BPMN.html +++ b/extensions/BPMN.html @@ -1,4 +1,4 @@ - + BPMN Editor diff --git a/extensions/CheckBoxes.html b/extensions/CheckBoxes.html index 7421050fe..825db6e44 100644 --- a/extensions/CheckBoxes.html +++ b/extensions/CheckBoxes.html @@ -1,4 +1,4 @@ - + CheckBoxes diff --git a/extensions/ColumnResizing.html b/extensions/ColumnResizing.html index 879d7d025..ce352b65b 100644 --- a/extensions/ColumnResizing.html +++ b/extensions/ColumnResizing.html @@ -1,4 +1,4 @@ - + Resizing Columns in a Table Panel diff --git a/extensions/CurvedLinkReshaping.html b/extensions/CurvedLinkReshaping.html index c5eff5507..165a3370d 100644 --- a/extensions/CurvedLinkReshaping.html +++ b/extensions/CurvedLinkReshaping.html @@ -1,4 +1,4 @@ - + State Chart with Simple Curved Link Reshaping diff --git a/extensions/DataInspector.html b/extensions/DataInspector.html index 0d0120b62..2a483e0ed 100644 --- a/extensions/DataInspector.html +++ b/extensions/DataInspector.html @@ -1,20 +1,21 @@ - + - Data Inspector - - - - - +Data Inspector + + + + + - - + + - +
    @@ -178,11 +171,17 @@
    -
    -
    + Selected Part:
    +

    + First Node's data:
    +

    + Model.modelData:
    +

    -

    An HTML-based inspector that displays model data for the selected Part. +

    An HTML-based inspector that displays and allows editing of data for the selected Part (if any), + or for a particular JavaScript object, or for the shared Model.modelData object, + which exists even if there are no nodes or links.

    The inspector code lies in DataInspector.js and DataInspector.css. This code is meant to be a starting point for making your own model data inspector. diff --git a/extensions/DataInspector.js b/extensions/DataInspector.js index 250735032..7f9c32226 100644 --- a/extensions/DataInspector.js +++ b/extensions/DataInspector.js @@ -3,19 +3,7 @@ * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ -/* - HTML Structure of the Inspector: - -

    - - propertyName - - - ... -
    -*/ - -/* +/** This class implements an inspector for GoJS model data objects. The constructor takes three arguments: {string} divid a string referencing the HTML ID of the to-be inspector's div. @@ -33,7 +21,7 @@ Options for properties: show: {boolean|function} a boolean value to show or hide the property from the inspector, or a predicate function to show conditionally. - readOnly: {boolean} whether or not the property is read-only + readOnly: {boolean|function} whether or not the property is read-only type: {string} a string describing the data type. Supported values: "string|number|color|boolean" Not yet implemented: "point|rect|size" defaultValue: {*} a default value for the property. Defaults to the empty string. @@ -49,16 +37,27 @@ } }); + This is the basic HTML Structure that the Inspector creates within the given DIV element: + +
    + + propertyName + + + ... +
    + */ function Inspector(divid, diagram, options) { var mainDiv = document.getElementById(divid); mainDiv.className = 'inspector'; mainDiv.innerHTML = ''; - this.div = mainDiv; - this.diagram = diagram; + this._div = mainDiv; + this._diagram = diagram; + this._inspectedProperties = {}; + // Either a GoJS Part or a simple data object, such as Model.modelData this.inspectedObject = null; - this.inspectedProperties = null; // Inspector options defaults: this.includesOwnProperties = true; @@ -86,25 +85,35 @@ function Inspector(divid, diagram, options) { Inspector.showIfNode = function(part) { return part instanceof go.Node }; Inspector.showIfLink = function(part) { return part instanceof go.Link }; Inspector.showIfGroup = function(part) { return part instanceof go.Group }; -// Only show the property if its present. Useful for "key" which will be shown on Nodes and Groups, but not Links -Inspector.showIfPresent = function(part, propname) { return part.data && part.data[propname] !== undefined }; -// object is an optional argument, not used in the default case of inspectSelection: false +// Only show the property if its present. Useful for "key" which will be shown on Nodes and Groups, but normally not on Links +Inspector.showIfPresent = function(data, propname) { + if (data instanceof go.Part) data = data.data; + return typeof data === 'object' && data[propname] !== undefined; +}; + +/** +* Update the HTML state of this Inspector given the properties of the {@link #inspectedObject}. +* @param {Object} object is an optional argument, used when {@link #inspectSelection} is false to +* set {@link #inspectedObject} and show and edit that object's properties. +*/ Inspector.prototype.inspectObject = function(object) { var inspectedObject = object; - if (inspectedObject === null || inspectedObject === undefined) { + if (inspectedObject === undefined) { if (this.inspectsSelection) - inspectedObject = this.diagram.selection.first(); + inspectedObject = this._diagram.selection.first(); else inspectedObject = this.inspectedObject; } - if (inspectedObject === null || inspectedObject === undefined) return; // nothing to inspect - if (this.inspectedObject === inspectedObject) { - this.updateAllProperties(); + + if (inspectedObject === null || this.inspectedObject === inspectedObject) { + this.inspectedObject = inspectedObject; + this.updateAllHTML(); return; } + this.inspectedObject = inspectedObject; - var mainDiv = this.div; + var mainDiv = this._div; mainDiv.innerHTML = ''; if (inspectedObject === null) return; @@ -114,7 +123,7 @@ Inspector.prototype.inspectObject = function(object) { // Build table: var table = document.createElement('table'); var tbody = document.createElement('tbody'); - this.inspectedProperties = {}; + this._inspectedProperties = {}; this.tabIndex = 0; var declaredProperties = this.declaredProperties; @@ -131,7 +140,7 @@ Inspector.prototype.inspectObject = function(object) { if (this.includesOwnProperties) { for (var k in data) { if (k === '__gohashid') continue; // skip internal GoJS hash property - if (this.inspectedProperties[k]) continue; // already exists + if (this._inspectedProperties[k]) continue; // already exists if (declaredProperties[k] && !this.canShowProperty(k, declaredProperties[k], inspectedObject)) continue; tbody.appendChild(this.buildPropertyRow(k, data[k])); @@ -142,33 +151,70 @@ Inspector.prototype.inspectObject = function(object) { mainDiv.appendChild(table); }; -Inspector.prototype.canShowProperty = function(propertyName, property, inspectedObject) { - if (property.show === false) return false; +/** +* @ignore +* This predicate should be false if the given property should not be shown. +* Normally it only checks the value of "show" on the property descriptor. +* The default value is true. +* @param {string} propertyName the property name +* @param {Object} propertyDesc the property descriptor +* @param {Object} inspectedObject the data object +* @return {boolean} whether a particular property should be shown in this Inspector +*/ +Inspector.prototype.canShowProperty = function(propertyName, propertyDesc, inspectedObject) { + if (propertyDesc.show === false) return false; // if "show" is a predicate, make sure it passes or do not show this property - if (typeof property.show === "function") return property.show(inspectedObject, propertyName); + if (typeof propertyDesc.show === "function") return propertyDesc.show(inspectedObject, propertyName); return true; } -/* This sets this.inspectedProperties[propertyName] and creates the HTML table row: - - propertyName - - +/** +* @ignore +* This predicate should be false if the given property should not be editable by the user. +* Normally it only checks the value of "readOnly" on the property descriptor. +* The default value is true. +* @param {string} propertyName the property name +* @param {Object} propertyDesc the property descriptor +* @param {Object} inspectedObject the data object +* @return {boolean} whether a particular property should be shown in this Inspector +*/ +Inspector.prototype.canEditProperty = function(propertyName, propertyDesc, inspectedObject) { + if (propertyDesc.readOnly === true) return false; + // if "readOnly" is a predicate, make sure it passes or do not show this property + if (typeof propertyDesc.readOnly === "function") return !propertyDesc.readOnly(inspectedObject, propertyName); + return true; +} + +/** +* @ignore +* This sets this._inspectedProperties[propertyName] and creates the HTML table row: +* +* propertyName +* +* +* @param {string} propertyName the property name +* @param {*} propertyValue the property value +* @return the table row */ Inspector.prototype.buildPropertyRow = function(propertyName, propertyValue) { - var mainDiv = this.div; + var mainDiv = this._div; var tr = document.createElement('tr'); + var td1 = document.createElement('td'); + td1.textContent = propertyName; + tr.appendChild(td1); + var td2 = document.createElement('td'); var input = document.createElement('input'); - td1.textContent = propertyName; var decProp = this.declaredProperties[propertyName]; input.tabIndex = this.tabIndex++; + var self = this; - function setprops() { self.setAllProperties(); } + function setprops() { self.setAllDataProperties(); } + input.value = propertyValue; if (decProp !== undefined) { - if (decProp.readOnly) input.disabled = true; + input.disabled = !this.canEditProperty(propertyName, decProp, this.inspectedObject); if (decProp.type === 'color') { input.setAttribute('type', 'color'); if (input.type === 'color') { @@ -178,67 +224,87 @@ Inspector.prototype.buildPropertyRow = function(propertyName, propertyValue) { } } } - if (this.diagram.model.isReadOnly) input.disabled = true; + if (this._diagram.model.isReadOnly) input.disabled = true; if (input.type !== 'color') input.addEventListener('blur', setprops); td2.appendChild(input); - tr.appendChild(td1); tr.appendChild(td2); - this.inspectedProperties[propertyName] = input; + + this._inspectedProperties[propertyName] = input; return tr; }; +/** +* @ignore +* HTML5 color input will only take hex, +* so let HTML5 canvas convert the color into hex format. +* This converts "rgb(255, 0, 0)" into "#FF0000", etc. +* @param {string} propertyValue +* @return {string} +*/ Inspector.prototype.setColor = function(propertyValue) { - // hack: HTML5 color input will only take hex, - // so let HTML5 canvas convert the color into hex format. - // this converts "rgb(255, 0, 0)" into "#FF0000", etc. var ctx = document.createElement("canvas").getContext('2d'); ctx.fillStyle = propertyValue; return ctx.fillStyle; } -Inspector.prototype.updateAllProperties = function() { - var inspectedProps = this.inspectedProperties; - var diagram = this.diagram; +/** +* @ignore +* Update all of the HTML in this Inspector. +*/ +Inspector.prototype.updateAllHTML = function() { + var inspectedProps = this._inspectedProperties; + var diagram = this._diagram; var isPart = this.inspectedObject instanceof go.Part; var data = isPart ? this.inspectedObject.data : this.inspectedObject; - if (!data) return; - for (var name in inspectedProps) { - var input = inspectedProps[name]; - var propertyValue = data[name]; - if (input.type === 'color') { - input.value = this.setColor(propertyValue); - } else { - input.value = propertyValue; + if (!data) { // clear out all of the fields + for (var name in inspectedProps) { + var input = inspectedProps[name]; + input.value = ""; + } + } else { + for (var name in inspectedProps) { + var input = inspectedProps[name]; + var propertyValue = data[name]; + if (input.type === 'color') { + input.value = this.setColor(propertyValue); + } else { + input.value = propertyValue; + } } } } -Inspector.prototype.setAllProperties = function() { - var inspectedProps = this.inspectedProperties; - var diagram = this.diagram; - var model = diagram.model; +/** +* @ignore +* Update all of the data properties of {@link #inspectedObject} according to the +* current values held in the HTML input elements. +*/ +Inspector.prototype.setAllDataProperties = function() { + var inspectedProps = this._inspectedProperties; + var diagram = this._diagram; var isPart = this.inspectedObject instanceof go.Part; var data = isPart ? this.inspectedObject.data : this.inspectedObject; - if (!data) return; + if (!data) return; // must not try to update data when there's no data! + diagram.startTransaction('set all properties'); for (var name in inspectedProps) { var value = inspectedProps[name].value; - // If its a boolean, or if its previous value was boolean, - // parse the value to be a boolean and then update the input.value to match + // don't update "readOnly" data properties var decProp = this.declaredProperties[name]; - var readonly = false; - if (decProp !== undefined && decProp.readOnly !== undefined) { - readonly = !!decProp.readOnly; - } - if (readonly) continue; + if (!this.canEditProperty(name, decProp, this.inspectedObject)) continue; + + // If it's a boolean, or if its previous value was boolean, + // parse the value to be a boolean and then update the input.value to match var type = ''; if (decProp !== undefined && decProp.type !== undefined) { type = decProp.type; } if (type === '' && this.isBoolean(data[name])) type = 'boolean'; // infer boolean + + // convert to specific type, if needed switch (type) { case 'boolean': value = !(value == false || value === "false"); @@ -247,16 +313,25 @@ Inspector.prototype.setAllProperties = function() { value = parseFloat(value); break; } - // In case parsed to be different, such as in the case of boolean values: + + // in case parsed to be different, such as in the case of boolean values, + // the value shown match the actual value inspectedProps[name].value = value; - model.setDataProperty(data, name, value); + // modify the data object in an undo-able fashion + diagram.model.setDataProperty(data, name, value); + + // notify any listener if (this.propertyModified !== null) this.propertyModified(name, value); } diagram.commitTransaction('set all properties'); }; -// whether or not something is strictly a bool value +/** +* @ignore +* @param {*} value some JavaScript value +* @return whether or not something is strictly a boolean value +*/ Inspector.prototype.isBoolean = function(value) { return value === true || value === false; } \ No newline at end of file diff --git a/extensions/DebugInspector.html b/extensions/DebugInspector.html index ed626ca77..8388fd175 100644 --- a/extensions/DebugInspector.html +++ b/extensions/DebugInspector.html @@ -1,4 +1,4 @@ - + Debug Inspector diff --git a/extensions/Dimensioning.html b/extensions/Dimensioning.html index f694f6f8b..9c94bac6e 100644 --- a/extensions/Dimensioning.html +++ b/extensions/Dimensioning.html @@ -1,4 +1,4 @@ - + Using Dimensioning Links diff --git a/extensions/DragCreating.html b/extensions/DragCreating.html index 5187500ba..c6a77138f 100644 --- a/extensions/DragCreating.html +++ b/extensions/DragCreating.html @@ -1,4 +1,4 @@ - + Drag Creating Tool diff --git a/extensions/DragZooming.html b/extensions/DragZooming.html index b006e2177..92501d952 100644 --- a/extensions/DragZooming.html +++ b/extensions/DragZooming.html @@ -1,4 +1,4 @@ - + Drag Zooming Tool diff --git a/extensions/Fishbone.html b/extensions/Fishbone.html index bec302336..3b9f74a6e 100644 --- a/extensions/Fishbone.html +++ b/extensions/Fishbone.html @@ -1,4 +1,4 @@ - + Fishbone Layout diff --git a/extensions/FishboneLayout.js b/extensions/FishboneLayout.js index 28fc5c1d2..f2d52dec0 100644 --- a/extensions/FishboneLayout.js +++ b/extensions/FishboneLayout.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/FloorPlanEditor.html b/extensions/FloorPlanEditor.html index 2c0443c9f..560eb4b99 100644 --- a/extensions/FloorPlanEditor.html +++ b/extensions/FloorPlanEditor.html @@ -1,4 +1,4 @@ - + Floor Plan Editor diff --git a/extensions/FloorPlanMonitor.html b/extensions/FloorPlanMonitor.html index c7f023eb1..300387836 100644 --- a/extensions/FloorPlanMonitor.html +++ b/extensions/FloorPlanMonitor.html @@ -1,4 +1,4 @@ - + Floor Plan Monitor diff --git a/extensions/FreehandDrawing.html b/extensions/FreehandDrawing.html index 3f871d87a..f9fd56707 100644 --- a/extensions/FreehandDrawing.html +++ b/extensions/FreehandDrawing.html @@ -1,4 +1,4 @@ - + Freehand Drawing Tool diff --git a/extensions/GuidedDraggingTool.js b/extensions/GuidedDraggingTool.js index 419e92790..f3e9df828 100644 --- a/extensions/GuidedDraggingTool.js +++ b/extensions/GuidedDraggingTool.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/Inspector.html b/extensions/Inspector.html index 637766a8d..9763da6e7 100644 --- a/extensions/Inspector.html +++ b/extensions/Inspector.html @@ -1,4 +1,4 @@ - + GoJS Inspectors diff --git a/extensions/LinkLabelDragging.html b/extensions/LinkLabelDragging.html index d4029a2cf..ab010fd7c 100644 --- a/extensions/LinkLabelDragging.html +++ b/extensions/LinkLabelDragging.html @@ -1,4 +1,4 @@ - + State Chart with Draggable Link Labels diff --git a/extensions/LinkShifting.html b/extensions/LinkShifting.html index 12b17926d..d4c03d8b2 100644 --- a/extensions/LinkShifting.html +++ b/extensions/LinkShifting.html @@ -1,4 +1,4 @@ - + Link Shifting Tool diff --git a/extensions/NodeLabelDragging.html b/extensions/NodeLabelDragging.html index 4227abec0..48b38cc42 100644 --- a/extensions/NodeLabelDragging.html +++ b/extensions/NodeLabelDragging.html @@ -1,4 +1,4 @@ - + State Chart with Draggable Node Labels diff --git a/extensions/Parallel.html b/extensions/Parallel.html index a8db6a2a1..dbb4f8e61 100644 --- a/extensions/Parallel.html +++ b/extensions/Parallel.html @@ -1,4 +1,4 @@ - + Parallel Layout diff --git a/extensions/ParallelLayout.js b/extensions/ParallelLayout.js index 5ad2f405f..560134a02 100644 --- a/extensions/ParallelLayout.js +++ b/extensions/ParallelLayout.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/PolygonDrawing.html b/extensions/PolygonDrawing.html index 3e80e1978..822d7364b 100644 --- a/extensions/PolygonDrawing.html +++ b/extensions/PolygonDrawing.html @@ -1,4 +1,4 @@ - + Polygon Drawing Tool diff --git a/extensions/PolylineLinking.html b/extensions/PolylineLinking.html index 6c95e1ee7..cdcb8d247 100644 --- a/extensions/PolylineLinking.html +++ b/extensions/PolylineLinking.html @@ -1,4 +1,4 @@ - + Polyline Linking Tool diff --git a/extensions/PortShifting.html b/extensions/PortShifting.html index 33896cc19..3ab046691 100644 --- a/extensions/PortShifting.html +++ b/extensions/PortShifting.html @@ -1,4 +1,4 @@ - + Logic Circuit with shiftable ports diff --git a/extensions/RealtimeDragSelecting.html b/extensions/RealtimeDragSelecting.html index eea12d154..cbacb4ef5 100644 --- a/extensions/RealtimeDragSelecting.html +++ b/extensions/RealtimeDragSelecting.html @@ -1,4 +1,4 @@ - + Realtime Drag Selecting Tool diff --git a/extensions/ResizeMultipleTool.js b/extensions/ResizeMultipleTool.js index 429d0a2bb..5c1c63c8e 100644 --- a/extensions/ResizeMultipleTool.js +++ b/extensions/ResizeMultipleTool.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/Robot.html b/extensions/Robot.html index 9d8ce7b5d..6c36f7494 100644 --- a/extensions/Robot.html +++ b/extensions/Robot.html @@ -1,4 +1,4 @@ - + Simulating Input Events diff --git a/extensions/Robot.js b/extensions/Robot.js index dc3102b93..71587fecf 100644 --- a/extensions/Robot.js +++ b/extensions/Robot.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/RotateMultipleTool.js b/extensions/RotateMultipleTool.js index 360370bc3..8458a349a 100644 --- a/extensions/RotateMultipleTool.js +++ b/extensions/RotateMultipleTool.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/extensions/ScrollingTable.html b/extensions/ScrollingTable.html index 7772d6a10..e421add3d 100644 --- a/extensions/ScrollingTable.html +++ b/extensions/ScrollingTable.html @@ -1,4 +1,4 @@ - + Scrolling Table diff --git a/extensions/Serpentine.html b/extensions/Serpentine.html index b52d67d05..5103c443b 100644 --- a/extensions/Serpentine.html +++ b/extensions/Serpentine.html @@ -1,4 +1,4 @@ - + Serpentine Layout diff --git a/extensions/SnapLinkReshaping.html b/extensions/SnapLinkReshaping.html index 782d128f8..9627a1186 100644 --- a/extensions/SnapLinkReshaping.html +++ b/extensions/SnapLinkReshaping.html @@ -1,4 +1,4 @@ - + Snap Link Reshaping diff --git a/extensions/Spiral.html b/extensions/Spiral.html index 2042e2df4..d2c964a34 100644 --- a/extensions/Spiral.html +++ b/extensions/Spiral.html @@ -1,4 +1,4 @@ - + Spiral Layout diff --git a/extensions/Table.html b/extensions/Table.html index e14aac4c6..bbcecdd9c 100644 --- a/extensions/Table.html +++ b/extensions/Table.html @@ -1,4 +1,4 @@ - + Table Layout diff --git a/extensions/TreeMap.html b/extensions/TreeMap.html index 60e480cc4..daf96196c 100644 --- a/extensions/TreeMap.html +++ b/extensions/TreeMap.html @@ -1,4 +1,4 @@ - + Tree Map diff --git a/extensions/TreeMapLayout.js b/extensions/TreeMapLayout.js index 5365bed04..de2808fb7 100644 --- a/extensions/TreeMapLayout.js +++ b/extensions/TreeMapLayout.js @@ -1,4 +1,4 @@ -"use strict"; +"use strict"; /* * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. */ diff --git a/index.html b/index.html index 1427c4ecb..0a69a8dc2 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/intro/brush.html b/intro/brush.html index c41321bff..76bdf3590 100644 --- a/intro/brush.html +++ b/intro/brush.html @@ -1,4 +1,4 @@ - + diff --git a/intro/buildingObjects.html b/intro/buildingObjects.html index 45bb00cb7..6fb562ba4 100644 --- a/intro/buildingObjects.html +++ b/intro/buildingObjects.html @@ -1,4 +1,4 @@ - + diff --git a/intro/buttons.html b/intro/buttons.html index 322d185a7..3f24203b8 100644 --- a/intro/buttons.html +++ b/intro/buttons.html @@ -1,4 +1,4 @@ - + diff --git a/intro/changedEvents.html b/intro/changedEvents.html index 17ba2eff2..dd4b0dfe4 100644 --- a/intro/changedEvents.html +++ b/intro/changedEvents.html @@ -1,4 +1,4 @@ - + diff --git a/intro/collections.html b/intro/collections.html index 9899ad3ea..64d13efd6 100644 --- a/intro/collections.html +++ b/intro/collections.html @@ -1,4 +1,4 @@ - + diff --git a/intro/commands.html b/intro/commands.html index e7485350c..ad1f24d90 100644 --- a/intro/commands.html +++ b/intro/commands.html @@ -1,4 +1,4 @@ - + diff --git a/intro/connectionPoints.html b/intro/connectionPoints.html index 159f88aff..5917c83cf 100644 --- a/intro/connectionPoints.html +++ b/intro/connectionPoints.html @@ -1,4 +1,4 @@ - + diff --git a/intro/contextMenus.html b/intro/contextMenus.html index 5abb9e573..388b18a25 100644 --- a/intro/contextMenus.html +++ b/intro/contextMenus.html @@ -1,4 +1,4 @@ - + diff --git a/intro/dataBinding.html b/intro/dataBinding.html index 4cea7c8b6..fc547379e 100644 --- a/intro/dataBinding.html +++ b/intro/dataBinding.html @@ -1,4 +1,4 @@ - + diff --git a/intro/deployment.html b/intro/deployment.html index 3de6146b2..ef5b9eddf 100644 --- a/intro/deployment.html +++ b/intro/deployment.html @@ -1,4 +1,4 @@ - + diff --git a/intro/events.html b/intro/events.html index 4ba635bbb..2d2cbf154 100644 --- a/intro/events.html +++ b/intro/events.html @@ -1,4 +1,4 @@ - + diff --git a/intro/extensions.html b/intro/extensions.html index d0eba4523..bded2f4be 100644 --- a/intro/extensions.html +++ b/intro/extensions.html @@ -1,4 +1,4 @@ - + diff --git a/intro/geometry.html b/intro/geometry.html index 257c0366a..d2e7c493e 100644 --- a/intro/geometry.html +++ b/intro/geometry.html @@ -1,4 +1,4 @@ - + diff --git a/intro/grids.html b/intro/grids.html index fde9bb7e2..d99d1df19 100644 --- a/intro/grids.html +++ b/intro/grids.html @@ -1,4 +1,4 @@ - + diff --git a/intro/groups.html b/intro/groups.html index ae6889089..d6634a38c 100644 --- a/intro/groups.html +++ b/intro/groups.html @@ -1,4 +1,4 @@ - + diff --git a/intro/highlighting.html b/intro/highlighting.html index b9af8c12c..bd341a516 100644 --- a/intro/highlighting.html +++ b/intro/highlighting.html @@ -1,4 +1,4 @@ - + diff --git a/intro/index.html b/intro/index.html index b39432422..e72010a73 100644 --- a/intro/index.html +++ b/intro/index.html @@ -1,4 +1,4 @@ - + diff --git a/intro/initialView.html b/intro/initialView.html index bb2fdf187..982464e06 100644 --- a/intro/initialView.html +++ b/intro/initialView.html @@ -1,4 +1,4 @@ - + diff --git a/intro/itemArrays.html b/intro/itemArrays.html index ee895f69c..338429eed 100644 --- a/intro/itemArrays.html +++ b/intro/itemArrays.html @@ -1,4 +1,4 @@ - + diff --git a/intro/layers.html b/intro/layers.html index 9ae0dd7d2..f5693ddac 100644 --- a/intro/layers.html +++ b/intro/layers.html @@ -1,4 +1,4 @@ - + diff --git a/intro/layouts.html b/intro/layouts.html index 5530dc189..e394156d6 100644 --- a/intro/layouts.html +++ b/intro/layouts.html @@ -1,4 +1,4 @@ - + diff --git a/intro/legends.html b/intro/legends.html index c58396152..ba5f864a0 100644 --- a/intro/legends.html +++ b/intro/legends.html @@ -1,4 +1,4 @@ - + diff --git a/intro/linkLabels.html b/intro/linkLabels.html index 736d6562f..6b4236a99 100644 --- a/intro/linkLabels.html +++ b/intro/linkLabels.html @@ -1,4 +1,4 @@ - + diff --git a/intro/links.html b/intro/links.html index fa7668fd1..e3995f50c 100644 --- a/intro/links.html +++ b/intro/links.html @@ -1,4 +1,4 @@ - + diff --git a/intro/makingImages.html b/intro/makingImages.html index 0f43711f7..6f8e199fa 100644 --- a/intro/makingImages.html +++ b/intro/makingImages.html @@ -1,4 +1,4 @@ - + diff --git a/intro/makingSVG.html b/intro/makingSVG.html index 4dbfe77c5..06f7c3f4b 100644 --- a/intro/makingSVG.html +++ b/intro/makingSVG.html @@ -1,4 +1,4 @@ - + diff --git a/intro/nodes.html b/intro/nodes.html index 38254459c..62f506ab5 100644 --- a/intro/nodes.html +++ b/intro/nodes.html @@ -1,4 +1,4 @@ - + diff --git a/intro/overview.html b/intro/overview.html index d79bde9b0..3e050eac7 100644 --- a/intro/overview.html +++ b/intro/overview.html @@ -1,4 +1,4 @@ - + diff --git a/intro/palette.html b/intro/palette.html index 9d55bfa6b..343adaf44 100644 --- a/intro/palette.html +++ b/intro/palette.html @@ -1,4 +1,4 @@ - + diff --git a/intro/panels.html b/intro/panels.html index 3102f5a9c..723e15913 100644 --- a/intro/panels.html +++ b/intro/panels.html @@ -1,4 +1,4 @@ - + diff --git a/intro/performance.html b/intro/performance.html index 2c34d1bbc..ff8cf266a 100644 --- a/intro/performance.html +++ b/intro/performance.html @@ -1,4 +1,4 @@ - + diff --git a/intro/permissions.html b/intro/permissions.html index d0204d77e..efeceaac5 100644 --- a/intro/permissions.html +++ b/intro/permissions.html @@ -1,4 +1,4 @@ - + diff --git a/intro/pictures.html b/intro/pictures.html index 320fca1a5..43b8d13f4 100644 --- a/intro/pictures.html +++ b/intro/pictures.html @@ -1,4 +1,4 @@ - + diff --git a/intro/ports.html b/intro/ports.html index 8e52c58c4..3416e6e82 100644 --- a/intro/ports.html +++ b/intro/ports.html @@ -1,4 +1,4 @@ - + diff --git a/intro/printing.html b/intro/printing.html index bf0cd5a2b..eee0538f7 100644 --- a/intro/printing.html +++ b/intro/printing.html @@ -1,4 +1,4 @@ - + diff --git a/intro/resizing.html b/intro/resizing.html index 78d010d40..9cb087a19 100644 --- a/intro/resizing.html +++ b/intro/resizing.html @@ -1,4 +1,4 @@ - + diff --git a/intro/selection.html b/intro/selection.html index 1b161b6fb..c2b38d0a9 100644 --- a/intro/selection.html +++ b/intro/selection.html @@ -1,4 +1,4 @@ - + diff --git a/intro/serverSideImages.html b/intro/serverSideImages.html index 50ed1e4d1..0f42d2a05 100644 --- a/intro/serverSideImages.html +++ b/intro/serverSideImages.html @@ -1,4 +1,4 @@ - + diff --git a/intro/shapes.html b/intro/shapes.html index 19da051d8..4012e8629 100644 --- a/intro/shapes.html +++ b/intro/shapes.html @@ -1,4 +1,4 @@ - + diff --git a/intro/sizedGroups.html b/intro/sizedGroups.html index 50e52921d..58a5d8ff6 100644 --- a/intro/sizedGroups.html +++ b/intro/sizedGroups.html @@ -1,4 +1,4 @@ - + diff --git a/intro/sizing.html b/intro/sizing.html index caf2e2cd3..d90156177 100644 --- a/intro/sizing.html +++ b/intro/sizing.html @@ -1,4 +1,4 @@ - + diff --git a/intro/subgraphs.html b/intro/subgraphs.html index f97f855e5..93133ea8b 100644 --- a/intro/subgraphs.html +++ b/intro/subgraphs.html @@ -1,4 +1,4 @@ - + diff --git a/intro/subtrees.html b/intro/subtrees.html index ce8d0d737..32d0c7754 100644 --- a/intro/subtrees.html +++ b/intro/subtrees.html @@ -1,4 +1,4 @@ - + diff --git a/intro/tablePanels.html b/intro/tablePanels.html index 88b19adbc..1c54e60be 100644 --- a/intro/tablePanels.html +++ b/intro/tablePanels.html @@ -1,4 +1,4 @@ - + diff --git a/intro/templateMaps.html b/intro/templateMaps.html index c5b23fb8e..6fdb77f86 100644 --- a/intro/templateMaps.html +++ b/intro/templateMaps.html @@ -1,4 +1,4 @@ - + diff --git a/intro/textBlocks.html b/intro/textBlocks.html index 156180984..8cf10ec1c 100644 --- a/intro/textBlocks.html +++ b/intro/textBlocks.html @@ -1,4 +1,4 @@ - + diff --git a/intro/tools.html b/intro/tools.html index 57ec8489b..d5e559b89 100644 --- a/intro/tools.html +++ b/intro/tools.html @@ -1,4 +1,4 @@ - + diff --git a/intro/tooltips.html b/intro/tooltips.html index f0022f0f5..2bc969cc8 100644 --- a/intro/tooltips.html +++ b/intro/tooltips.html @@ -1,4 +1,4 @@ - + diff --git a/intro/transactions.html b/intro/transactions.html index 18485a45b..a1fc20f46 100644 --- a/intro/transactions.html +++ b/intro/transactions.html @@ -1,4 +1,4 @@ - + diff --git a/intro/trees.html b/intro/trees.html index 08dbca1a0..9cbed7e58 100644 --- a/intro/trees.html +++ b/intro/trees.html @@ -1,4 +1,4 @@ - + diff --git a/intro/usingModels.html b/intro/usingModels.html index d7803bf27..5a52e640e 100644 --- a/intro/usingModels.html +++ b/intro/usingModels.html @@ -1,4 +1,4 @@ - + diff --git a/intro/validation.html b/intro/validation.html index 74a7a44c2..b0e2e5b25 100644 --- a/intro/validation.html +++ b/intro/validation.html @@ -1,4 +1,4 @@ - + diff --git a/intro/viewport.html b/intro/viewport.html index cc8561229..c4ca56663 100644 --- a/intro/viewport.html +++ b/intro/viewport.html @@ -1,4 +1,4 @@ - + diff --git a/learn/graphobject.html b/learn/graphobject.html index b878c7591..57d53585f 100644 --- a/learn/graphobject.html +++ b/learn/graphobject.html @@ -1,4 +1,4 @@ - + diff --git a/learn/index.html b/learn/index.html index a6345ddb8..ced06f64e 100644 --- a/learn/index.html +++ b/learn/index.html @@ -1,4 +1,4 @@ - + diff --git a/learn/interactivity.html b/learn/interactivity.html index 6a72a4ae8..f5c63b841 100644 --- a/learn/interactivity.html +++ b/learn/interactivity.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 65dfb2861..0d4ecfadd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gojs", - "version": "1.6.5", + "version": "1.6.6", "description": "Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams", "keywords": [ "diagram", "chart", "tree", "flowchart", "orgchart", "uml", "bpmn", "graphics", "editor", "inspector", "drawing", "canvas", "shape", "svg", "hierarchy", "node", "link", "group", "vertex", "edge", "connection", "port", "label", "arrowhead", "family-tree", "decision-tree", "mindmap", "tournament", "treeview", "pipe-tree", "genogram", "ivr-tree", "parse-tree", "concept-map", "euler", "visualization", "entity-relationship", "er-diagram", "friend-wheel", "radial", "graph-distances", "graph-paths", "sankey", "pert", "gantt", "timeline", "monitor", "layer", "swimlane", "spreadsheet", "virtualization", "flow", "process", "state", "sequential-function", "grafcet", "sequence", "circuit", "record", "field", "table", "dataflow", "data-flow", "planogram", "seating", "pipes", "overview", "palette", "comment", "layout", "grid-layout", "tree-layout", "force-directed", "layered", "hierarchical", "circular", "fishbone", "ishikawa", "parallel", "serpentine", "treemap", "tree-map", "freehand", "polygon", "polyline", "bezier", "panel", "view", "model", "databinding", "data-binding", "binding", "transaction", "coordinates", "subgraph", "selection", "highlight", "tooltip", "context-menu", "tool", "command", "validation", "button", "template", "legend", "grid", "printing" ], "homepage": "https://gojs.net", diff --git a/projects/electron-circuit/logicCircuit.html b/projects/electron-circuit/logicCircuit.html index 6748d285a..089a280c7 100644 --- a/projects/electron-circuit/logicCircuit.html +++ b/projects/electron-circuit/logicCircuit.html @@ -1,4 +1,4 @@ - + Logic Circuit with shiftable ports diff --git a/projects/nw-circuit/logicCircuit.html b/projects/nw-circuit/logicCircuit.html index e2db28dde..0116ef05d 100644 --- a/projects/nw-circuit/logicCircuit.html +++ b/projects/nw-circuit/logicCircuit.html @@ -1,4 +1,4 @@ - + Logic Circuit with shiftable ports diff --git a/release/go-debug.js b/release/go-debug.js index 6e0f87dd5..1cd4b8c84 100644 --- a/release/go-debug.js +++ b/release/go-debug.js @@ -1,53 +1,53 @@ /* - * GoJS v1.6.5 JavaScript Library for HTML Diagrams + * GoJS v1.6.6 JavaScript Library for HTML Diagrams * Northwoods Software, https://www.nwoods.com/ * GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation. * Copyright (C) 1998-2016 by Northwoods Software Corporation. All Rights Reserved. - * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/1.6.5/doc/license.html. + * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/1.6.6/doc/license.html. */ (function(window) { var f,ca={};if(!window.document||void 0===window.document.createElement("canvas").getContext)throw window.console&&window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."),Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");if(!Object.defineProperty)throw Error("GoJS requires a newer version of JavaScript"); Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return g.apply(a,e.concat(d.call(arguments)))}function c(){}var d=Array.prototype.slice,e=d.call(arguments,1),g=this;c.prototype=this.prototype;b.prototype=new c;return b}); (function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=d.length)){var e=x.wb(b,d);if(null!==e&&"function"!==typeof e){if(b.hasOwnProperty(d)){var g=Object.getPrototypeOf(b);if(g&&g.bw&&g.bw[d])continue}else if(x.ox(b,d))continue;""===c&&(c=b+"\n");c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n"}}return c},Vw:function(a,b){if(null!==b&&void 0!==b&&"number"!==typeof b&& -"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==x.od(b)){if(!u.qw.contains(b))if(u.qw.add(b),u.Qv.add(u.lE(a,b)),b instanceof J||b instanceof K||b instanceof ra)for(var c=b.i;c.next();)u.Vw(a+"["+c.key+"]",c.value);else for(c in b){var d=x.wb(b,c);if(void 0!==d&&null!==d&&x.Ya(d)&&d!==b.bw){if(b instanceof sa){if(d===b.Pj)continue}else if(b instanceof H){if("data"===c||d===b.Ne)continue;if("itemArray"===c||d===b.Ki)continue;if(b instanceof D&&d===b.kl)continue}else if(!(b instanceof -z))if(b instanceof ua){if("archetypeGroupData"===c||d===b.Cy)continue}else if(b instanceof va){if("archetypeLinkData"===c||d===b.Ey)continue;if("archetypeLabelNodeData"===c||d===b.Dy)continue}else if(b instanceof wa){if("archetypeNodeData"===c||d===b.Sk)continue}else if(b instanceof L){if("nodeDataArray"===c||d===b.xf)continue;if("linkDataArray"===c||d===b.wf||d===b.Bm)continue;if(d===b.vc)continue;if(d===b.ng)continue}else if(b instanceof xa||b instanceof ya||b instanceof Aa)continue;u.Vw(a+"."+ -c,d)}}}else if(Array.isArray(b))for(c=0;c=d.length)){var e=x.wb(b,d);if(null!==e&&"function"!==typeof e){if(b.hasOwnProperty(d)){var g=Object.getPrototypeOf(b);if(g&&g.bw&&g.bw[d])continue}else if(x.px(b,d))continue;""===c&&(c=b+"\n");c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n"}}return c},Vw:function(a,b){if(null!==b&&void 0!==b&&"number"!==typeof b&& +"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==x.od(b)){if(!u.qw.contains(b))if(u.qw.add(b),u.Qv.add(u.mE(a,b)),b instanceof J||b instanceof K||b instanceof ra)for(var c=b.i;c.next();)u.Vw(a+"["+c.key+"]",c.value);else for(c in b){var d=x.wb(b,c);if(void 0!==d&&null!==d&&x.Ya(d)&&d!==b.bw){if(b instanceof sa){if(d===b.Pj)continue}else if(b instanceof H){if("data"===c||d===b.Ne)continue;if("itemArray"===c||d===b.Ki)continue;if(b instanceof D&&d===b.kl)continue}else if(!(b instanceof +z))if(b instanceof ua){if("archetypeGroupData"===c||d===b.Dy)continue}else if(b instanceof va){if("archetypeLinkData"===c||d===b.Fy)continue;if("archetypeLabelNodeData"===c||d===b.Ey)continue}else if(b instanceof wa){if("archetypeNodeData"===c||d===b.Sk)continue}else if(b instanceof L){if("nodeDataArray"===c||d===b.yf)continue;if("linkDataArray"===c||d===b.xf||d===b.Cm)continue;if(d===b.vc)continue;if(d===b.ng)continue}else if(b instanceof xa||b instanceof ya||b instanceof Aa)continue;u.Vw(a+"."+ +c,d)}}}else if(Array.isArray(b))for(c=0;c=a.length?a.push(c):a.splice(b,0,c):x.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},ki:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):x.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},ty:[],P:function(){var a=x.ty.pop();return void 0===a?new N:a},Xb:function(a,b){var c=x.ty.pop();if(void 0===c)return new N(a,b);c.x=a;c.y=b;return c},A:function(a){x.ty.push(a)}, -JB:[],cm:function(){var a=x.JB.pop();return void 0===a?new Fa:a},tk:function(a){x.JB.push(a)},uy:[],kg:function(){var a=x.uy.pop();return void 0===a?new w:a},Dk:function(a,b,c,d){var e=x.uy.pop();if(void 0===e)return new w(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},qc:function(a){x.uy.push(a)},KB:[],Hh:function(){var a=x.KB.pop();return void 0===a?new Ha:a},kf:function(a){x.KB.push(a)},vy:null,u:function(){var a=x.vy;return null!==a?(x.vy=null,a):new Ia},v:function(a){a.reset();x.vy=a},IB:[], -ub:function(){var a=x.IB.pop();return void 0===a?[]:a},ya:function(a){a.length=0;x.IB.push(a)},Jh:Object.freeze([]),gm:1,lc:function(a){a.__gohashid=x.gm++},Ht:function(a){var b=a.__gohashid;void 0===b&&(b=x.gm++,a.__gohashid=b);return b},od:function(a){return a.__gohashid},ja:function(a,b){b.Hy=a;ca[a]=b},Qa:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},li:function(a){a.fH=!0},defineProperty:function(a,b,c,d,e){x.g(a,"function","Util.defineProperty:classfunc"); +Ca&&a.Ae===b||(c=x.getTypeName(c),void 0!==d&&(c+="."+d),x.jc(a,"a constant of class "+x.mf(b),c))},lt:function(a,b){"string"===typeof a?Da(a)||x.k('Color "'+a+'" is not a valid color string for '+b):a instanceof Ea||x.k("Value for "+b+" must be a color string or a Brush, not "+a)},jc:function(a,b,c,d){b=x.getTypeName(b);c=x.getTypeName(c);void 0!==d&&(c+="."+d);"string"===typeof a?x.k(c+" value is not an instance of "+b+': "'+a+'"'):x.k(c+" value is not an instance of "+b+": "+a)},la:function(a, +b,c,d){c=x.getTypeName(c);void 0!==d&&(c+="."+d);x.k(c+" is not in the range "+b+": "+a)},pd:function(a){x.k(x.mf(a)+" constructor cannot take any arguments.")},Sa:function(a){x.k("Collection was modified during iteration: "+a.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")},trace:function(a){window.console&&window.console.log(a)},Ya:function(a){return"object"===typeof a&&null!==a},isArray:function(a){return Array.isArray(a)|| +a instanceof NodeList||a instanceof HTMLCollection},UI:function(a){return Array.isArray(a)},kt:function(a,b,c){x.isArray(a)||x.jc(a,"Array or NodeList or HTMLCollection",b,c)},ab:function(a){return a.length},Bl:function(a){return Array.prototype.slice.call(a)},Wa:function(a,b){Array.isArray(a);return a[b]},iE:function(a,b,c){Array.isArray(a)?a[b]=c:x.k("Cannot replace an object in an HTMLCollection or NodeList at "+b)},Zz:function(a,b){if(Array.isArray(a))return a.indexOf(b);for(var c=a.length,d= +0;d=a.length?a.push(c):a.splice(b,0,c):x.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},ki:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):x.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},uy:[],P:function(){var a=x.uy.pop();return void 0===a?new N:a},Xb:function(a,b){var c=x.uy.pop();if(void 0===c)return new N(a,b);c.x=a;c.y=b;return c},A:function(a){x.uy.push(a)}, +KB:[],dm:function(){var a=x.KB.pop();return void 0===a?new Fa:a},tk:function(a){x.KB.push(a)},vy:[],kg:function(){var a=x.vy.pop();return void 0===a?new w:a},Dk:function(a,b,c,d){var e=x.vy.pop();if(void 0===e)return new w(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},qc:function(a){x.vy.push(a)},LB:[],Hh:function(){var a=x.LB.pop();return void 0===a?new Ha:a},lf:function(a){x.LB.push(a)},wy:null,u:function(){var a=x.wy;return null!==a?(x.wy=null,a):new Ia},v:function(a){a.reset();x.wy=a},JB:[], +ub:function(){var a=x.JB.pop();return void 0===a?[]:a},ya:function(a){a.length=0;x.JB.push(a)},Jh:Object.freeze([]),hm:1,lc:function(a){a.__gohashid=x.hm++},Ht:function(a){var b=a.__gohashid;void 0===b&&(b=x.hm++,a.__gohashid=b);return b},od:function(a){return a.__gohashid},ja:function(a,b){b.Iy=a;ca[a]=b},Qa:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},li:function(a){a.gH=!0},defineProperty:function(a,b,c,d,e){x.g(a,"function","Util.defineProperty:classfunc"); x.g(b,"object","Util.defineProperty:propobj");x.g(c,"function","Util.defineProperty:getter");x.g(d,"function","Util.defineProperty:setter");for(var g in b){b=b[g];c={get:c,set:d,enumerable:!0};if(void 0!==e)for(var h in e)c[h]=e[h];Object.defineProperty(a.prototype,g,c);e=Object.getOwnPropertyDescriptor(a.prototype,g);b&&e&&Object.defineProperty(a.prototype,b,e);break}},rK:!1,w:function(a,b,c,d){x.g(a,"function","Util.defineReadOnlyProperty:classfunc");x.g(b,"object","Util.defineReadOnlyProperty:propobj"); x.g(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var g=b[e];b={get:c,set:function(a){x.k('The property "'+g+'" is read-only and cannot be set to '+a)},enumerable:!0};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);g&&d&&Object.defineProperty(a.prototype,g,d);break}},Yd:function(a,b){for(var c in b)b[c]=!0;a.prototype.bw=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"=== -typeof a?x.lf(a):null===a?"*":""},lf:function(a){if("function"===typeof a){if(a.Hy)return a.Hy;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.Hy=b}else if("object"===typeof a&&a.constructor)return x.lf(a.constructor);return typeof a},s:function(a,b,c){x.g(a,"function","Util.defineEnumValue:classfunc");x.g(b,"string","Util.defineEnumValue:name");x.g(c,"number","Util.defineEnumValue:num");c=new Ca(a,b,c);Object.freeze(c);a[b]=c;var d=a.Gu;d instanceof +typeof a?x.mf(a):null===a?"*":""},mf:function(a){if("function"===typeof a){if(a.Iy)return a.Iy;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.Iy=b}else if("object"===typeof a&&a.constructor)return x.mf(a.constructor);return typeof a},s:function(a,b,c){x.g(a,"function","Util.defineEnumValue:classfunc");x.g(b,"string","Util.defineEnumValue:name");x.g(c,"number","Util.defineEnumValue:num");c=new Ca(a,b,c);Object.freeze(c);a[b]=c;var d=a.Gu;d instanceof ra||(d=new ra("string",Ca),a.Gu=d);d.add(b,c);return c},wb:function(a,b){if(!a||!b)return null;var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){u&&x.trace("property get error: "+d.toString())}return c},Ra:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){u&&x.trace("property set error: "+d.toString())}},ru:function(a,b){x.g(a,"object", "Setting properties requires Objects as arguments");x.g(b,"object","Setting properties requires Objects as arguments");var c=a instanceof H,d=a instanceof z,e;for(e in b){""===e&&x.k("Setting properties requires non-empty property names");var g=a,h=e;if(c||d){var k=e.indexOf(".");if(0c;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0,g="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a); -for(var d=[],e=0,c=0;cd;d++)b[x.Dg("7ca11abfd7330390")](x.Dg(c[d-1]),10,15*d+0);b[x.Dg("7ca11abfd022028846")]=x.Dg("39f046ebb36e4b");for(d=1;5>d;d++)b[x.Dg("7ca11abfd7330390")](x.Dg(c[d- -1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])x.s=function(a,b){var c=new Ca(a,b,2);Object.freeze(c);a[b]=c;var d=a.Gu;d instanceof ra||(d=new ra("string",Ca),a.Gu=d);d.add(b,c);return c};return a}();function Ca(a,b,c){x.lc(this);this.UB=a;this.Vb=b;this.kH=c}x.ja("EnumValue",Ca);Ca.prototype.toString=function(){return x.lf(this.UB)+"."+this.Vb};x.w(Ca,{Ae:"classType"},function(){return this.UB});x.w(Ca,{name:"name"},function(){return this.Vb});x.w(Ca,{value:"value"},function(){return this.kH}); -var La;Ca.findName=La=function(a,b){if(void 0===b||null===b||""===b)return null;x.g(a,"function","findName:classfunc");x.g(b,"string","EnumValue.findName:name");var c=a.Gu;return c instanceof ra?c.oa(b):null};function Ba(){this.TB=[]}Ba.prototype.toString=function(){return this.TB.join("")};Ba.prototype.add=function(a){""!==a&&this.TB.push(a)};function pa(){} -function Oa(a){void 0===a&&(a=42);this.seed=a;this.ky=48271;this.Fu=2147483647;this.FB=this.Fu/this.ky;this.NG=this.Fu%this.ky;this.IG=1/this.Fu;this.random()}Oa.prototype.random=function(){var a=this.seed%this.FB*this.ky-this.seed/this.FB*this.NG;this.seed=0d;d++)b[x.Dg("7ca11abfd7330390")](x.Dg(c[d-1]),10,15*d+0);b[x.Dg("7ca11abfd022028846")]=x.Dg("39f046ebb36e4b");for(d=1;5>d;d++)b[x.Dg("7ca11abfd7330390")](x.Dg(c[d- +1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])x.s=function(a,b){var c=new Ca(a,b,2);Object.freeze(c);a[b]=c;var d=a.Gu;d instanceof ra||(d=new ra("string",Ca),a.Gu=d);d.add(b,c);return c};return a}();function Ca(a,b,c){x.lc(this);this.VB=a;this.Vb=b;this.lH=c}x.ja("EnumValue",Ca);Ca.prototype.toString=function(){return x.mf(this.VB)+"."+this.Vb};x.w(Ca,{Ae:"classType"},function(){return this.VB});x.w(Ca,{name:"name"},function(){return this.Vb});x.w(Ca,{value:"value"},function(){return this.lH}); +var La;Ca.findName=La=function(a,b){if(void 0===b||null===b||""===b)return null;x.g(a,"function","findName:classfunc");x.g(b,"string","EnumValue.findName:name");var c=a.Gu;return c instanceof ra?c.oa(b):null};function Ba(){this.UB=[]}Ba.prototype.toString=function(){return this.UB.join("")};Ba.prototype.add=function(a){""!==a&&this.UB.push(a)};function pa(){} +function Oa(a){void 0===a&&(a=42);this.seed=a;this.ly=48271;this.Fu=2147483647;this.GB=this.Fu/this.ly;this.OG=this.Fu%this.ly;this.JG=1/this.Fu;this.random()}Oa.prototype.random=function(){var a=this.seed%this.GB*this.ly-this.seed/this.GB*this.OG;this.seed=0a&&x.la(a,">= 0",J,"insertAt:i");this.H&&x.pa(this,a);var c=this.o;a>=c.length?c.push(b):c.splice(a,0,b);this.Ic();return!0};J.prototype.remove=J.prototype["delete"]=J.prototype.remove=function(a){if(null===a)return!1;u&&this.Sg(a);this.H&&x.pa(this,a);var b=this.o;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.Ic();return!0}; J.prototype.removeAt=J.prototype.dd=function(a){u&&x.p(a,J,"removeAt:i");var b=this.o;(0>a||a>=b.length)&&x.la(a,"0 <= i < length",J,"removeAt:i");this.H&&x.pa(this,a);a===b.length-1?b.pop():b.splice(a,1);this.Ic()}; J.prototype.removeRange=J.prototype.removeRange=function(a,b){u&&(x.p(a,J,"removeRange:from"),x.p(b,J,"removeRange:to"));var c=this.o;(0>a||a>=c.length)&&x.la(a,"0 <= from < length",J,"elt:from");(0>b||b>=c.length)&&x.la(b,"0 <= to < length",J,"elt:to");this.H&&x.pa(this,a);var d=c.slice((b||a)+1||c.length);c.length=0>a?c.length+a:a;c.push.apply(c,d);this.Ic()};J.prototype.copy=function(){var a=new J(this.da),b=this.o;0=g)return this;(0>b||b>=e-1)&&x.la(b,"0 <= from < length",J,"sortRange:from");if(2===g)return c=d[b],e=d[b+1],0=e)d.sort(a);else for(g=d.slice(0,c),g.sort(a),a=0;a=e)for(g=d.slice(b), g.sort(a),a=b;a=this.o.length)return Ra;var a=this.fc;return null!==a?(a.reset(),a):new Wa(this)}); x.w(J,{vn:"iteratorBackwards"},function(){if(0>=this.o.length)return Ra;var a=this.Mj;return null!==a?(a.reset(),a):new Xa(this)});function Ya(a){this.ai=a;this.reset()}x.Yd(Ya,{key:!0,value:!0});x.w(Ya,{i:"iterator"},function(){return this});Ya.prototype.reset=Ya.prototype.reset=function(){var a=this.ai;a.fc=null;this.qb=a.I;this.ob=null}; @@ -88,7 +88,7 @@ K.prototype.contains=K.prototype.has=K.prototype.contains=function(a){if(null=== K.prototype.first=K.prototype.first=function(){var a=this.La;return null===a?null:a.value};K.prototype.any=function(a){for(var b=this.I,c=this.La;null!==c;){if(a(c.value))return!0;this.I!==b&&x.Sa(this);c=c.bb}return!1};K.prototype.all=function(a){for(var b=this.I,c=this.La;null!==c;){if(!a(c.value))return!1;this.I!==b&&x.Sa(this);c=c.bb}return!0};K.prototype.each=function(a){for(var b=this.I,c=this.La;null!==c;)a(c.value),this.I!==b&&x.Sa(this),c=c.bb;return this}; K.prototype.map=function(a){for(var b=new K,c=this.I,d=this.La;null!==d;)b.add(a(d.value)),this.I!==c&&x.Sa(this),d=d.bb;return b};K.prototype.filter=function(a){for(var b=new K(this.da),c=this.I,d=this.La;null!==d;){var e=d.value;a(e)&&b.add(e);this.I!==c&&x.Sa(this);d=d.bb}return b};K.prototype.concat=function(a){return this.copy().$c(a)}; K.prototype.remove=K.prototype["delete"]=K.prototype.remove=function(a){if(null===a)return!1;u&&this.Sg(a);this.H&&x.pa(this,a);var b=a;if(x.Ya(a)&&(b=x.od(a),void 0===b))return!1;a=this.td[b];if(void 0===a)return!1;var c=a.bb,d=a.Oo;null!==c&&(c.Oo=d);null!==d&&(d.bb=c);this.La===a&&(this.La=c);this.Vh===a&&(this.Vh=d);delete this.td[b];this.sd--;this.Ic();return!0}; -K.prototype.removeAll=K.prototype.aB=function(a){if(null===a)return this;this.H&&x.pa(this);if(x.isArray(a))for(var b=x.ab(a),c=0;c=this.sd)return Ra;var a=this.fc;return null!==a?(a.reset(),a):new Ya(this)});function $a(a){this.Oa=a;this.reset()}x.Yd($a,{key:!0,value:!0});x.w($a,{i:"iterator"},function(){return this});$a.prototype.reset=$a.prototype.reset=function(){this.qb=this.Oa.I;this.ob=null}; $a.prototype.next=$a.prototype.hasNext=$a.prototype.next=function(){var a=this.Oa;if(a.I!==this.qb){if(null===this.key)return!1;x.Sa(a)}var b=this.ob,b=null===b?a.La:b.bb;if(null!==b)return this.ob=b,this.value=this.key=a=b.key,!0;this.Pf();return!1};$a.prototype.first=$a.prototype.first=function(){var a=this.Oa;this.qb=a.I;a=a.La;return null!==a?(this.ob=a,this.value=this.key=a=a.key):null}; @@ -97,7 +97,7 @@ $a.prototype.map=function(a){var b=this.Oa,c=b.I;this.ob=null;for(var d=new J,e= $a.prototype.toString=function(){return null!==this.ob?"MapKeySetIterator@"+this.ob.value:"MapKeySetIterator"};function cb(a){x.lc(this);this.H=!0;this.Oa=a}x.Qa(cb,K);cb.prototype.freeze=function(){return this};cb.prototype.Va=function(){return this};cb.prototype.toString=function(){return"MapKeySet("+this.Oa.toString()+")"};cb.prototype.add=cb.prototype.set=cb.prototype.add=function(){x.k("This Set is read-only: "+this.toString());return!1}; cb.prototype.contains=cb.prototype.has=cb.prototype.contains=function(a){return this.Oa.contains(a)};cb.prototype.remove=cb.prototype["delete"]=cb.prototype.remove=function(){x.k("This Set is read-only: "+this.toString());return!1};cb.prototype.clear=cb.prototype.clear=function(){x.k("This Set is read-only: "+this.toString())};cb.prototype.first=cb.prototype.first=function(){var a=this.Oa.La;return null!==a?a.key:null}; cb.prototype.any=function(a){for(var b=this.Oa.La;null!==b;){if(a(b.key))return!0;b=b.bb}return!1};cb.prototype.all=function(a){for(var b=this.Oa.La;null!==b;){if(!a(b.key))return!1;b=b.bb}return!0};cb.prototype.each=function(a){for(var b=this.Oa.La;null!==b;)a(b.key),b=b.bb;return this};cb.prototype.map=function(a){for(var b=new K,c=this.Oa.La;null!==c;)b.add(a(c.key)),c=c.bb;return b}; -cb.prototype.filter=function(a){for(var b=new K(this.Oa.cf),c=this.Oa.La;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.bb}return b};cb.prototype.concat=function(a){return this.sG().$c(a)};cb.prototype.copy=function(){return new cb(this.Oa)};cb.prototype.toSet=cb.prototype.sG=function(){var a=new K(this.Oa.cf),b=this.Oa.td,c;for(c in b)a.add(b[c].key);return a};cb.prototype.toArray=cb.prototype.kc=function(){var a=this.Oa.td,b=Array(this.Oa.sd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b}; +cb.prototype.filter=function(a){for(var b=new K(this.Oa.cf),c=this.Oa.La;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.bb}return b};cb.prototype.concat=function(a){return this.tG().$c(a)};cb.prototype.copy=function(){return new cb(this.Oa)};cb.prototype.toSet=cb.prototype.tG=function(){var a=new K(this.Oa.cf),b=this.Oa.td,c;for(c in b)a.add(b[c].key);return a};cb.prototype.toArray=cb.prototype.kc=function(){var a=this.Oa.td,b=Array(this.Oa.sd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b}; cb.prototype.toList=function(){var a=new J(this.da),b=this.Oa.td,c;for(c in b)a.add(b[c].key);return a};x.w(cb,{count:"count"},function(){return this.Oa.sd});x.w(cb,{size:"size"},function(){return this.Oa.sd});x.w(cb,{i:"iterator"},function(){return 0>=this.Oa.sd?Ra:new $a(this.Oa)});function eb(a){this.Oa=a;this.reset()}x.Yd(eb,{key:!0,value:!0});x.w(eb,{i:"iterator"},function(){return this});eb.prototype.reset=eb.prototype.reset=function(){var a=this.Oa;a.Nj=null;this.qb=a.I;this.ob=null}; eb.prototype.next=eb.prototype.hasNext=eb.prototype.next=function(){var a=this.Oa;if(a.I!==this.qb){if(null===this.key)return!1;x.Sa(a)}var b=this.ob,b=null===b?a.La:b.bb;if(null!==b)return this.ob=b,this.value=b.value,this.key=b.key,!0;this.Pf();return!1};eb.prototype.first=eb.prototype.first=function(){var a=this.Oa;this.qb=a.I;a=a.La;if(null!==a){this.ob=a;var b=a.value;this.key=a.key;return this.value=b}return null}; eb.prototype.any=function(a){var b=this.Oa;b.Nj=null;var c=b.I;this.ob=null;for(var d=b.La;null!==d;){if(a(d.value))return!0;b.I!==c&&x.Sa(b);d=d.bb}return!1};eb.prototype.all=function(a){var b=this.Oa;b.Nj=null;var c=b.I;this.ob=null;for(var d=b.La;null!==d;){if(!a(d.value))return!1;b.I!==c&&x.Sa(b);d=d.bb}return!0};eb.prototype.each=function(a){var b=this.Oa;b.Nj=null;var c=b.I;this.ob=null;for(var d=b.La;null!==d;)a(d.value),b.I!==c&&x.Sa(b),d=d.bb;return this}; @@ -117,11 +117,11 @@ ra.prototype.filter=function(a){for(var b=new ra(this.cf,this.ii),c=this.I,d=thi ra.prototype.getValue=ra.prototype.get=ra.prototype.oa=function(a){u&&hb(this,a);var b=a;if(x.Ya(a)&&(b=x.od(a),void 0===b))return null;a=this.td[b];return void 0===a?null:a.value}; ra.prototype.remove=ra.prototype["delete"]=ra.prototype.remove=function(a){if(null===a)return!1;u&&hb(this,a);this.H&&x.pa(this,a);var b=a;if(x.Ya(a)&&(b=x.od(a),void 0===b))return!1;a=this.td[b];if(void 0===a)return!1;var c=a.bb,d=a.Oo;null!==c&&(c.Oo=d);null!==d&&(d.bb=c);this.La===a&&(this.La=c);this.Vh===a&&(this.Vh=d);delete this.td[b];this.sd--;this.Ic();return!0};ra.prototype.clear=ra.prototype.clear=function(){this.H&&x.pa(this);this.td={};this.sd=0;this.Vh=this.La=null;this.Ic()}; ra.prototype.copy=function(){var a=new ra(this.cf,this.ii),b=this.td,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};ra.prototype.toArray=ra.prototype.kc=function(){var a=this.td,b=Array(this.sd),c=0,d;for(d in a){var e=a[d];b[c]=new Za(e.key,e.value);c++}return b};ra.prototype.toKeySet=ra.prototype.vj=function(){return new cb(this)};x.w(ra,{count:"count"},function(){return this.sd});x.w(ra,{size:"size"},function(){return this.sd}); -x.w(ra,{i:"iterator"},function(){if(0>=this.count)return Ra;var a=this.fc;return null!==a?(a.reset(),a):new fb(this)});x.w(ra,{rF:"iteratorKeys"},function(){return 0>=this.count?Ra:new $a(this)});x.w(ra,{sF:"iteratorValues"},function(){if(0>=this.count)return Ra;var a=this.Nj;return null!==a?(a.reset(),a):new eb(this)});function N(a,b){void 0===a?this.L=this.K=0:"number"===typeof a&&"number"===typeof b?(this.K=a,this.L=b):x.k("Invalid arguments to Point constructor: "+a+", "+b);this.H=!1} +x.w(ra,{i:"iterator"},function(){if(0>=this.count)return Ra;var a=this.fc;return null!==a?(a.reset(),a):new fb(this)});x.w(ra,{sF:"iteratorKeys"},function(){return 0>=this.count?Ra:new $a(this)});x.w(ra,{tF:"iteratorValues"},function(){if(0>=this.count)return Ra;var a=this.Nj;return null!==a?(a.reset(),a):new eb(this)});function N(a,b){void 0===a?this.L=this.K=0:"number"===typeof a&&"number"===typeof b?(this.K=a,this.L=b):x.k("Invalid arguments to Point constructor: "+a+", "+b);this.H=!1} x.ja("Point",N);x.li(N);x.Yd(N,{x:!0,y:!0});N.prototype.assign=function(a){this.K=a.K;this.L=a.L};N.prototype.setTo=N.prototype.n=function(a,b){u&&(x.g(a,"number",N,"setTo:x"),x.g(b,"number",N,"setTo:y"));this.K=a;this.L=b;return this};N.prototype.set=N.prototype.set=function(a){u&&x.l(a,N,N,"set:p");this.Pa();this.K=a.K;this.L=a.L;return this};N.prototype.copy=function(){var a=new N;a.K=this.K;a.L=this.L;return a};f=N.prototype;f.Ma=function(){this.H=!0;Object.freeze(this);return this}; f.Y=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.H=!0;return this};f.Va=function(){Object.isFrozen(this)&&x.k("cannot thaw constant: "+this);this.H=!1;return this};f.Pa=function(a){if(this.H){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);x.k(b)}}; N.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new N(c,e)}return new N};N.stringify=function(a){return a instanceof N?a.x.toString()+" "+a.y.toString():a.toString()};N.prototype.toString=function(){return"Point("+this.x+","+this.y+")"};N.prototype.equals=N.prototype.O=function(a){return a instanceof N?this.K===a.x&&this.L===a.y:!1}; -N.prototype.equalTo=N.prototype.gx=function(a,b){return this.K===a&&this.L===b};N.prototype.equalsApprox=N.prototype.wd=function(a){return Q.F(this.K,a.x)&&Q.F(this.L,a.y)};N.prototype.add=N.prototype.add=function(a){u&&x.l(a,N,N,"add:p");this.Pa();this.K+=a.x;this.L+=a.y;return this};N.prototype.subtract=N.prototype.yu=function(a){u&&x.l(a,N,N,"subtract:p");this.Pa();this.K-=a.x;this.L-=a.y;return this}; +N.prototype.equalTo=N.prototype.hx=function(a,b){return this.K===a&&this.L===b};N.prototype.equalsApprox=N.prototype.wd=function(a){return Q.F(this.K,a.x)&&Q.F(this.L,a.y)};N.prototype.add=N.prototype.add=function(a){u&&x.l(a,N,N,"add:p");this.Pa();this.K+=a.x;this.L+=a.y;return this};N.prototype.subtract=N.prototype.yu=function(a){u&&x.l(a,N,N,"subtract:p");this.Pa();this.K-=a.x;this.L-=a.y;return this}; N.prototype.offset=N.prototype.offset=function(a,b){u&&(x.p(a,N,"offset:dx"),x.p(b,N,"offset:dy"));this.Pa();this.K+=a;this.L+=b;return this};N.prototype.rotate=N.prototype.rotate=function(a){u&&x.p(a,N,"rotate:angle");this.Pa();if(0===a)return this;var b=this.K,c=this.L;if(0===b&&0===c)return this;var d=0,e=0;360<=a?a-=360:0>a&&(a+=360);90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(a=a*Math.PI/180,d=Math.cos(a),e=Math.sin(a));this.K=d*b-e*c;this.L=e*b+d*c;return this}; N.prototype.scale=N.prototype.scale=function(a,b){u&&(x.p(a,N,"scale:sx"),x.p(b,N,"scale:sy"));this.K*=a;this.L*=b;return this};N.prototype.distanceSquaredPoint=N.prototype.qk=function(a){u&&x.l(a,N,N,"distanceSquaredPoint:p");var b=a.x-this.K;a=a.y-this.L;return b*b+a*a};N.prototype.distanceSquared=N.prototype.qp=function(a,b){u&&(x.p(a,N,"distanceSquared:px"),x.p(b,N,"distanceSquared:py"));var c=a-this.K,d=b-this.L;return c*c+d*d}; N.prototype.normalize=N.prototype.normalize=function(){this.Pa();var a=this.K,b=this.L,c=Math.sqrt(a*a+b*b);0a&&x.la(a,">= 0",Fa,"setTo:w"),0>b&&x.la(b,">= 0",Fa,"setTo:h"));this.Fa=a;this.Ea=b;return this};Fa.prototype.set=Fa.prototype.set=function(a){u&&x.l(a,Fa,Fa,"set:s");this.Pa();this.Fa=a.Fa;this.Ea=a.Ea;return this};Fa.prototype.copy=function(){var a=new Fa;a.Fa=this.Fa;a.Ea=this.Ea;return a};f=Fa.prototype; f.Ma=function(){this.H=!0;Object.freeze(this);return this};f.Y=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.H=!0;return this};f.Va=function(){Object.isFrozen(this)&&x.k("cannot thaw constant: "+this);this.H=!1;return this};f.Pa=function(a){if(this.H){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);x.k(b)}}; Fa.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new Fa(c,e)}return new Fa};Fa.stringify=function(a){return a instanceof Fa?a.width.toString()+" "+a.height.toString():a.toString()};Fa.prototype.toString=function(){return"Size("+this.width+","+this.height+")"}; -Fa.prototype.equals=Fa.prototype.O=function(a){return a instanceof Fa?this.Fa===a.width&&this.Ea===a.height:!1};Fa.prototype.equalTo=Fa.prototype.gx=function(a,b){return this.Fa===a&&this.Ea===b};Fa.prototype.equalsApprox=Fa.prototype.wd=function(a){return Q.F(this.Fa,a.width)&&Q.F(this.Ea,a.height)};x.defineProperty(Fa,{width:"width"},function(){return this.Fa},function(a){this.Pa(a);u&&x.g(a,"number",Fa,"width");0>a&&x.la(a,">= 0",Fa,"width");this.Fa=a}); +Fa.prototype.equals=Fa.prototype.O=function(a){return a instanceof Fa?this.Fa===a.width&&this.Ea===a.height:!1};Fa.prototype.equalTo=Fa.prototype.hx=function(a,b){return this.Fa===a&&this.Ea===b};Fa.prototype.equalsApprox=Fa.prototype.wd=function(a){return Q.F(this.Fa,a.width)&&Q.F(this.Ea,a.height)};x.defineProperty(Fa,{width:"width"},function(){return this.Fa},function(a){this.Pa(a);u&&x.g(a,"number",Fa,"width");0>a&&x.la(a,">= 0",Fa,"width");this.Fa=a}); x.defineProperty(Fa,{height:"height"},function(){return this.Ea},function(a){this.Pa(a);u&&x.g(a,"number",Fa,"height");0>a&&x.la(a,">= 0",Fa,"height");this.Ea=a});Fa.prototype.isReal=Fa.prototype.G=function(){return isFinite(this.width)&&isFinite(this.height)}; function w(a,b,c,d){void 0===a?this.Ea=this.Fa=this.L=this.K=0:a instanceof N?b instanceof N?(this.K=Math.min(a.K,b.K),this.L=Math.min(a.L,b.L),this.Fa=Math.abs(a.K-b.K),this.Ea=Math.abs(a.L-b.L)):b instanceof Fa?(this.K=a.K,this.L=a.L,this.Fa=b.Fa,this.Ea=b.Ea):x.k("Incorrect arguments supplied to Rect constructor"):"number"===typeof a&&"number"===typeof b&&"number"===typeof c&&(0<=c||isNaN(c))&&"number"===typeof d&&(0<=d||isNaN(d))?(this.K=a,this.L=b,this.Fa=c,this.Ea=d):x.k("Invalid arguments to Rect constructor: "+ a+", "+b+", "+c+", "+d);this.H=!1}x.ja("Rect",w);x.li(w);x.Yd(w,{x:!0,y:!0,width:!0,height:!0});w.prototype.assign=function(a){this.K=a.K;this.L=a.L;this.Fa=a.Fa;this.Ea=a.Ea};function vb(a,b,c){a.Fa=b;a.Ea=c}w.prototype.setTo=w.prototype.n=function(a,b,c,d){u&&(x.g(a,"number",w,"setTo:x"),x.g(b,"number",w,"setTo:y"),x.g(c,"number",w,"setTo:w"),x.g(d,"number",w,"setTo:h"),0>c&&x.la(c,">= 0",w,"setTo:w"),0>d&&x.la(d,">= 0",w,"setTo:h"));this.K=a;this.L=b;this.Fa=c;this.Ea=d;return this}; w.prototype.set=w.prototype.set=function(a){u&&x.l(a,w,w,"set:r");this.Pa();this.K=a.K;this.L=a.L;this.Fa=a.Fa;this.Ea=a.Ea;return this};w.prototype.setPoint=w.prototype.Mf=function(a){u&&x.l(a,N,w,"setPoint:p");this.Pa();this.K=a.K;this.L=a.L;return this};w.prototype.setSize=function(a){u&&x.l(a,Fa,w,"setSize:s");this.Pa();this.Fa=a.Fa;this.Ea=a.Ea;return this};w.prototype.copy=function(){var a=new w;a.K=this.K;a.L=this.L;a.Fa=this.Fa;a.Ea=this.Ea;return a};f=w.prototype; f.Ma=function(){this.H=!0;Object.freeze(this);return this};f.Y=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.H=!0;return this};f.Va=function(){Object.isFrozen(this)&&x.k("cannot thaw constant: "+this);this.H=!1;return this};f.Pa=function(a){if(this.H){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);x.k(b)}}; w.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));for(var g=0;""===a[b];)b++;(d=a[b++])&&(g=parseFloat(d));for(var h=0;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return new w(c,e,g,h)}return new w};w.stringify=function(a){return a instanceof w?a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString():a.toString()}; -w.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};w.prototype.equals=w.prototype.O=function(a){return a instanceof w?this.K===a.x&&this.L===a.y&&this.Fa===a.width&&this.Ea===a.height:!1};w.prototype.equalTo=w.prototype.gx=function(a,b,c,d){return this.K===a&&this.L===b&&this.Fa===c&&this.Ea===d};w.prototype.equalsApprox=w.prototype.wd=function(a){return Q.F(this.K,a.x)&&Q.F(this.L,a.y)&&Q.F(this.Fa,a.width)&&Q.F(this.Ea,a.height)}; +w.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};w.prototype.equals=w.prototype.O=function(a){return a instanceof w?this.K===a.x&&this.L===a.y&&this.Fa===a.width&&this.Ea===a.height:!1};w.prototype.equalTo=w.prototype.hx=function(a,b,c,d){return this.K===a&&this.L===b&&this.Fa===c&&this.Ea===d};w.prototype.equalsApprox=w.prototype.wd=function(a){return Q.F(this.K,a.x)&&Q.F(this.L,a.y)&&Q.F(this.Fa,a.width)&&Q.F(this.Ea,a.height)}; w.prototype.containsPoint=w.prototype.Na=function(a){u&&x.l(a,N,w,"containsPoint:p");return this.K<=a.x&&this.K+this.Fa>=a.x&&this.L<=a.y&&this.L+this.Ea>=a.y};w.prototype.containsRect=w.prototype.pk=function(a){u&&x.l(a,w,w,"containsRect:r");return this.K<=a.x&&a.x+a.width<=this.K+this.Fa&&this.L<=a.y&&a.y+a.height<=this.L+this.Ea}; w.prototype.contains=w.prototype.contains=function(a,b,c,d){u?(x.p(a,w,"contains:x"),x.p(b,w,"contains:y"),void 0===c?c=0:x.p(c,w,"contains:w"),void 0===d?d=0:x.p(d,w,"contains:h"),(0>c||0>d)&&x.k("Rect.contains:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return this.K<=a&&a+c<=this.K+this.Fa&&this.L<=b&&b+d<=this.L+this.Ea};w.prototype.reset=function(){this.Pa();this.Ea=this.Fa=this.L=this.K=0}; w.prototype.offset=w.prototype.offset=function(a,b){u&&(x.p(a,w,"offset:dx"),x.p(b,w,"offset:dy"));this.Pa();this.K+=a;this.L+=b;return this};w.prototype.inflate=w.prototype.cg=function(a,b){u&&(x.p(a,w,"inflate:w"),x.p(b,w,"inflate:h"));return wb(this,b,a,b,a)};w.prototype.addMargin=w.prototype.Kw=function(a){u&&x.l(a,yb,w,"addMargin:m");return wb(this,a.top,a.right,a.bottom,a.left)}; w.prototype.subtractMargin=w.prototype.dK=function(a){u&&x.l(a,yb,w,"subtractMargin:m");return wb(this,-a.top,-a.right,-a.bottom,-a.left)};w.prototype.grow=function(a,b,c,d){u&&(x.p(a,w,"grow:t"),x.p(b,w,"grow:r"),x.p(c,w,"grow:b"),x.p(d,w,"grow:l"));return wb(this,a,b,c,d)};function wb(a,b,c,d,e){a.Pa();var g=a.Fa;c+e<=-g?(a.K+=g/2,a.Fa=0):(a.K-=e,a.Fa+=c+e);c=a.Ea;b+d<=-c?(a.L+=c/2,a.Ea=0):(a.L-=b,a.Ea+=b+d);return a} w.prototype.intersectRect=function(a){u&&x.l(a,w,w,"intersectRect:r");return zb(this,a.x,a.y,a.width,a.height)};w.prototype.intersect=function(a,b,c,d){u&&(x.p(a,w,"intersect:x"),x.p(b,w,"intersect:y"),x.p(c,w,"intersect:w"),x.p(d,w,"intersect:h"),(0>c||0>d)&&x.k("Rect.intersect:Width and height cannot be negative"));return zb(this,a,b,c,d)}; -function zb(a,b,c,d,e){a.Pa();var g=Math.max(a.K,b),h=Math.max(a.L,c);b=Math.min(a.K+a.Fa,b+d);c=Math.min(a.L+a.Ea,c+e);a.K=g;a.L=h;a.Fa=Math.max(0,b-g);a.Ea=Math.max(0,c-h);return a}w.prototype.intersectsRect=w.prototype.Hg=function(a){u&&x.l(a,w,w,"intersectsRect:r");return this.fF(a.x,a.y,a.width,a.height)}; -w.prototype.intersects=w.prototype.fF=function(a,b,c,d){u&&(x.p(a,w,"intersects:x"),x.p(b,w,"intersects:y"),x.p(a,w,"intersects:w"),x.p(b,w,"intersects:h"),(0>c||0>d)&&x.k("Rect.intersects:Width and height cannot be negative"));var e=this.Fa,g=this.K;if(Infinity!==e&&Infinity!==c&&(e+=g,c+=a,isNaN(c)||isNaN(e)||g>c||a>e))return!1;a=this.Ea;c=this.L;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0}; +function zb(a,b,c,d,e){a.Pa();var g=Math.max(a.K,b),h=Math.max(a.L,c);b=Math.min(a.K+a.Fa,b+d);c=Math.min(a.L+a.Ea,c+e);a.K=g;a.L=h;a.Fa=Math.max(0,b-g);a.Ea=Math.max(0,c-h);return a}w.prototype.intersectsRect=w.prototype.Hg=function(a){u&&x.l(a,w,w,"intersectsRect:r");return this.gF(a.x,a.y,a.width,a.height)}; +w.prototype.intersects=w.prototype.gF=function(a,b,c,d){u&&(x.p(a,w,"intersects:x"),x.p(b,w,"intersects:y"),x.p(a,w,"intersects:w"),x.p(b,w,"intersects:h"),(0>c||0>d)&&x.k("Rect.intersects:Width and height cannot be negative"));var e=this.Fa,g=this.K;if(Infinity!==e&&Infinity!==c&&(e+=g,c+=a,isNaN(c)||isNaN(e)||g>c||a>e))return!1;a=this.Ea;c=this.L;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0}; function Db(a,b){var c=a.Fa,d=b.width+10+10,e=a.K,g=b.x-10;if(e>d+g||g>c+e)return!1;c=a.Ea;d=b.height+10+10;e=a.L;g=b.y-10;return e>d+g||g>c+e?!1:!0}w.prototype.unionPoint=w.prototype.wj=function(a){u&&x.l(a,N,w,"unionPoint:p");return Eb(this,a.x,a.y,0,0)};w.prototype.unionRect=w.prototype.si=function(a){u&&x.l(a,w,w,"unionRect:r");return Eb(this,a.K,a.L,a.Fa,a.Ea)}; -w.prototype.union=w.prototype.BG=function(a,b,c,d){this.Pa();u?(x.p(a,w,"union:x"),x.p(b,w,"union:y"),void 0===c?c=0:x.p(c,w,"union:w"),void 0===d?d=0:x.p(d,w,"union:h"),(0>c||0>d)&&x.k("Rect.union:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return Eb(this,a,b,c,d)};function Eb(a,b,c,d,e){var g=Math.min(a.K,b),h=Math.min(a.L,c);b=Math.max(a.K+a.Fa,b+d);c=Math.max(a.L+a.Ea,c+e);a.K=g;a.L=h;a.Fa=b-g;a.Ea=c-h;return a} +w.prototype.union=w.prototype.CG=function(a,b,c,d){this.Pa();u?(x.p(a,w,"union:x"),x.p(b,w,"union:y"),void 0===c?c=0:x.p(c,w,"union:w"),void 0===d?d=0:x.p(d,w,"union:h"),(0>c||0>d)&&x.k("Rect.union:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return Eb(this,a,b,c,d)};function Eb(a,b,c,d,e){var g=Math.min(a.K,b),h=Math.min(a.L,c);b=Math.max(a.K+a.Fa,b+d);c=Math.max(a.L+a.Ea,c+e);a.K=g;a.L=h;a.Fa=b-g;a.Ea=c-h;return a} w.prototype.setSpot=w.prototype.uu=function(a,b,c){u&&(x.p(a,w,"setSpot:x"),x.p(b,w,"setSpot:y"),x.l(c,R,w,"setSpot:spot"));this.Pa();this.K=a-c.offsetX-c.x*this.Fa;this.L=b-c.offsetY-c.y*this.Ea;return this};var Gb; w.contains=Gb=function(a,b,c,d,e,g,h,k){u?(x.p(a,w,"contains:rx"),x.p(b,w,"contains:ry"),x.p(c,w,"contains:rw"),x.p(d,w,"contains:rh"),x.p(e,w,"contains:x"),x.p(g,w,"contains:y"),void 0===h?h=0:x.p(h,w,"contains:w"),void 0===k?k=0:x.p(k,w,"contains:h"),(0>c||0>d||0>h||0>k)&&x.k("Rect.contains:Width and height cannot be negative")):(void 0===h&&(h=0),void 0===k&&(k=0));return a<=e&&e+h<=a+c&&b<=g&&g+k<=b+d}; w.intersects=function(a,b,c,d,e,g,h,k){u&&(x.p(a,w,"intersects:rx"),x.p(b,w,"intersects:ry"),x.p(c,w,"intersects:rw"),x.p(d,w,"intersects:rh"),x.p(e,w,"intersects:x"),x.p(g,w,"intersects:y"),x.p(h,w,"intersects:w"),x.p(k,w,"intersects:h"),(0>c||0>d||0>h||0>k)&&x.k("Rect.intersects:Width and height cannot be negative"));c+=a;h+=e;if(a>h||e>c)return!1;a=d+b;k+=g;return b>k||g>a?!1:!0};x.defineProperty(w,{x:"x"},function(){return this.K},function(a){this.Pa(a);u&&x.g(a,"number",w,"x");this.K=a}); @@ -166,17 +166,17 @@ yb.prototype.setTo=yb.prototype.n=function(a,b,c,d){u&&(x.g(a,"number",yb,"setTo f.Ma=function(){this.H=!0;Object.freeze(this);return this};f.Y=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.H=!0;return this};f.Va=function(){Object.isFrozen(this)&&x.k("cannot thaw constant: "+this);this.H=!1;return this};f.Pa=function(a){if(this.H){var b="The Margin is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);x.k(b)}}; yb.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=NaN;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));if(isNaN(c))return new yb;for(var e=NaN;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));if(isNaN(e))return new yb(c);for(var g=NaN;""===a[b];)b++;(d=a[b++])&&(g=parseFloat(d));if(isNaN(g))return new yb(c,e);for(var h=NaN;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return isNaN(h)?new yb(c,e):new yb(c,e,g,h)}return new yb}; yb.stringify=function(a){return a instanceof yb?a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString():a.toString()};yb.prototype.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"};yb.prototype.equals=yb.prototype.O=function(a){return a instanceof yb?this.jh===a.top&&this.hh===a.right&&this.Rg===a.bottom&&this.Zg===a.left:!1}; -yb.prototype.equalTo=yb.prototype.gx=function(a,b,c,d){return this.jh===a&&this.hh===b&&this.Rg===c&&this.Zg===d};yb.prototype.equalsApprox=yb.prototype.wd=function(a){return Q.F(this.jh,a.top)&&Q.F(this.hh,a.right)&&Q.F(this.Rg,a.bottom)&&Q.F(this.Zg,a.left)};x.defineProperty(yb,{top:"top"},function(){return this.jh},function(a){this.Pa(a);u&&x.p(a,yb,"top");this.jh=a});x.defineProperty(yb,{right:"right"},function(){return this.hh},function(a){this.Pa(a);u&&x.p(a,yb,"right");this.hh=a}); +yb.prototype.equalTo=yb.prototype.hx=function(a,b,c,d){return this.jh===a&&this.hh===b&&this.Rg===c&&this.Zg===d};yb.prototype.equalsApprox=yb.prototype.wd=function(a){return Q.F(this.jh,a.top)&&Q.F(this.hh,a.right)&&Q.F(this.Rg,a.bottom)&&Q.F(this.Zg,a.left)};x.defineProperty(yb,{top:"top"},function(){return this.jh},function(a){this.Pa(a);u&&x.p(a,yb,"top");this.jh=a});x.defineProperty(yb,{right:"right"},function(){return this.hh},function(a){this.Pa(a);u&&x.p(a,yb,"right");this.hh=a}); x.defineProperty(yb,{bottom:"bottom"},function(){return this.Rg},function(a){this.Pa(a);u&&x.p(a,yb,"bottom");this.Rg=a});x.defineProperty(yb,{left:"left"},function(){return this.Zg},function(a){this.Pa(a);u&&x.p(a,yb,"left");this.Zg=a});yb.prototype.isReal=yb.prototype.G=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function Ha(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}x.li(Ha); x.Yd(Ha,{m11:!0,m12:!0,m21:!0,m22:!0,dx:!0,dy:!0});Ha.prototype.set=Ha.prototype.set=function(a){u&&x.l(a,Ha,Ha,"set:t");this.m11=a.m11;this.m12=a.m12;this.m21=a.m21;this.m22=a.m22;this.dx=a.dx;this.dy=a.dy;return this};Ha.prototype.copy=function(){var a=new Ha;a.m11=this.m11;a.m12=this.m12;a.m21=this.m21;a.m22=this.m22;a.dx=this.dx;a.dy=this.dy;return a};Ha.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"}; Ha.prototype.equals=Ha.prototype.O=function(a){return a instanceof Ha?this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy:!1};Ha.prototype.isIdentity=Ha.prototype.Nt=function(){return 1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22&&0===this.dx&&0===this.dy};Ha.prototype.reset=Ha.prototype.reset=function(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0;return this}; Ha.prototype.multiply=Ha.prototype.multiply=function(a){u&&x.l(a,Ha,Ha,"multiply:matrix");var b=this.m12*a.m11+this.m22*a.m12,c=this.m11*a.m21+this.m21*a.m22,d=this.m12*a.m21+this.m22*a.m22,e=this.m11*a.dx+this.m21*a.dy+this.dx,g=this.m12*a.dx+this.m22*a.dy+this.dy;this.m11=this.m11*a.m11+this.m21*a.m12;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; -Ha.prototype.multiplyInverted=Ha.prototype.MA=function(a){u&&x.l(a,Ha,Ha,"multiplyInverted:matrix");var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,g=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*g;e=this.m12*e+this.m22*g;g=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=g;this.dy=h;return this}; -Ha.prototype.invert=Ha.prototype.wA=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),g=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; +Ha.prototype.multiplyInverted=Ha.prototype.NA=function(a){u&&x.l(a,Ha,Ha,"multiplyInverted:matrix");var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,g=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*g;e=this.m12*e+this.m22*g;g=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=g;this.dy=h;return this}; +Ha.prototype.invert=Ha.prototype.xA=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),g=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; Ha.prototype.rotate=Ha.prototype.rotate=function(a,b,c){u&&(x.p(a,Ha,"rotate:angle"),x.p(b,Ha,"rotate:rx"),x.p(c,Ha,"rotate:ry"));360<=a?a-=360:0>a&&(a+=360);if(0===a)return this;this.translate(b,c);var d=0,e=0;90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(e=a*Math.PI/180,d=Math.cos(e),e=Math.sin(e));a=this.m12*d+this.m22*e;var g=this.m11*-e+this.m21*d,h=this.m12*-e+this.m22*d;this.m11=this.m11*d+this.m21*e;this.m12=a;this.m21=g;this.m22=h;this.translate(-b,-c);return this}; Ha.prototype.translate=Ha.prototype.translate=function(a,b){u&&(x.p(a,Ha,"translate:x"),x.p(b,Ha,"translate:y"));this.dx+=this.m11*a+this.m21*b;this.dy+=this.m12*a+this.m22*b;return this};Ha.prototype.scale=Ha.prototype.scale=function(a,b){void 0===b&&(b=a);u&&(x.p(a,Ha,"translate:sx"),x.p(b,Ha,"translate:sy"));this.m11*=a;this.m12*=a;this.m21*=b;this.m22*=b;return this}; Ha.prototype.transformPoint=Ha.prototype.Fb=function(a){u&&x.l(a,N,Ha,"transformPoint:p");var b=a.K,c=a.L;a.K=b*this.m11+c*this.m21+this.dx;a.L=b*this.m12+c*this.m22+this.dy;return a};Ha.prototype.invertedTransformPoint=Ha.prototype.oi=function(a){u&&x.l(a,N,Ha,"invertedTransformPoint:p");var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),g=a.K,h=a.L;a.K=g*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.L=g*c+h*d+e;return a}; -Ha.prototype.transformRect=Ha.prototype.zG=function(a){u&&x.l(a,w,Ha,"transformRect:rect");var b=a.K,c=a.L,d=b+a.Fa,e=c+a.Ea,g=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*g+c*k+m,q=b*h+c*l+n,r=d*g+c*k+m,c=d*h+c*l+n,s=b*g+e*k+m,b=b*h+e*l+n,g=d*g+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,g),e=Math.max(e,g),h=Math.min(h,d),q=Math.max(q,d);a.K=p;a.L=h;a.Fa= +Ha.prototype.transformRect=Ha.prototype.AG=function(a){u&&x.l(a,w,Ha,"transformRect:rect");var b=a.K,c=a.L,d=b+a.Fa,e=c+a.Ea,g=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*g+c*k+m,q=b*h+c*l+n,r=d*g+c*k+m,c=d*h+c*l+n,s=b*g+e*k+m,b=b*h+e*l+n,g=d*g+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,g),e=Math.max(e,g),h=Math.min(h,d),q=Math.max(q,d);a.K=p;a.L=h;a.Fa= e-p;a.Ea=q-h;return a};function R(a,b,c,d){void 0===a?this.wg=this.vg=this.L=this.K=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.H=!1}x.ja("Spot",R);x.li(R);x.Yd(R,{x:!0,y:!0,offsetX:!0,offsetY:!0});R.prototype.assign=function(a){this.K=a.K;this.L=a.L;this.vg=a.vg;this.wg=a.wg}; R.prototype.setTo=R.prototype.n=function(a,b,c,d){u&&(Hb(a,"setTo:x"),Hb(b,"setTo:y"),Mb(c,"setTo:offx"),Mb(d,"setTo:offy"));this.Pa();this.K=a;this.L=b;this.vg=c;this.wg=d;return this};R.prototype.set=R.prototype.set=function(a){u&&x.l(a,R,R,"set:s");this.Pa();this.K=a.K;this.L=a.L;this.vg=a.vg;this.wg=a.wg;return this};R.prototype.copy=function(){var a=new R;a.K=this.K;a.L=this.L;a.vg=this.vg;a.wg=this.wg;return a};f=R.prototype;f.Ma=function(){this.H=!0;Object.freeze(this);return this}; f.Y=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.H=!0;return this};f.Va=function(){Object.isFrozen(this)&&x.k("cannot thaw constant: "+this);this.H=!1;return this};f.Pa=function(a){if(this.H){var b="The Spot is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);x.k(b)}};function Pb(a,b){a.K=NaN;a.L=NaN;a.vg=b;return a}function Hb(a,b){(isNaN(a)||1a)&&x.la(a,"0 <= "+b+" <= 1",R,b)} @@ -191,53 +191,53 @@ x.defineProperty(R,{y:"y"},function(){return this.L},function(a){this.Pa(a);u&&H R.prototype.isSide=R.prototype.mj=function(){return this.Ce()&&1===this.offsetX&&0!==this.offsetY};R.prototype.isDefault=R.prototype.bd=function(){return isNaN(this.x)&&isNaN(this.y)&&-1===this.offsetX&&0===this.offsetY};var Wb;R.None=Wb=Pb(new R(0,0,0,0),0).Ma();var Jc;R.Default=Jc=Pb(new R(0,0,-1,0),-1).Ma();var Xb;R.TopLeft=Xb=(new R(0,0,0,0)).Ma();var ac;R.TopCenter=ac=(new R(.5,0,0,0)).Ma();var bc;R.TopRight=bc=(new R(1,0,0,0)).Ma();var cc;R.LeftCenter=cc=(new R(0,.5,0,0)).Ma();var dc; R.Center=dc=(new R(.5,.5,0,0)).Ma();var ec;R.RightCenter=ec=(new R(1,.5,0,0)).Ma();var fc;R.BottomLeft=fc=(new R(0,1,0,0)).Ma();var kc;R.BottomCenter=kc=(new R(.5,1,0,0)).Ma();var lc;R.BottomRight=lc=(new R(1,1,0,0)).Ma();var Rc;R.MiddleTop=Rc=ac;var Sc;R.MiddleLeft=Sc=cc;var Tc;R.MiddleRight=Tc=ec;var bd;R.MiddleBottom=bd=kc;var Pc;R.Top=Pc=ac;var Kc;R.Left=Kc=cc;var Oc;R.Right=Oc=ec;var Qc;R.Bottom=Qc=kc;var mc;R.TopSide=mc=Pb(new R(0,0,1,x.qd),1).Ma();var nc; R.LeftSide=nc=Pb(new R(0,0,1,x.Tc),1).Ma();var oc;R.RightSide=oc=Pb(new R(0,0,1,x.fd),1).Ma();var pc;R.BottomSide=pc=Pb(new R(0,0,1,x.ed),1).Ma();var wc;R.TopBottomSides=wc=Pb(new R(0,0,1,x.qd|x.ed),1).Ma();var xc;R.LeftRightSides=xc=Pb(new R(0,0,1,x.Tc|x.fd),1).Ma();var yc;R.TopLeftSides=yc=Pb(new R(0,0,1,x.qd|x.Tc),1).Ma();var zc;R.TopRightSides=zc=Pb(new R(0,0,1,x.qd|x.fd),1).Ma();var Ac;R.BottomLeftSides=Ac=Pb(new R(0,0,1,x.ed|x.Tc),1).Ma();var Bc; -R.BottomRightSides=Bc=Pb(new R(0,0,1,x.ed|x.fd),1).Ma();var Cc;R.NotTopSide=Cc=Pb(new R(0,0,1,x.Tc|x.fd|x.ed),1).Ma();var Dc;R.NotLeftSide=Dc=Pb(new R(0,0,1,x.qd|x.fd|x.ed),1).Ma();var Gc;R.NotRightSide=Gc=Pb(new R(0,0,1,x.qd|x.Tc|x.ed),1).Ma();var Hc;R.NotBottomSide=Hc=Pb(new R(0,0,1,x.qd|x.Tc|x.fd),1).Ma();var Ic;R.AllSides=Ic=Pb(new R(0,0,1,x.qd|x.Tc|x.fd|x.ed),1).Ma();function cd(){this.pf=[1,0,0,1,0,0]} -cd.prototype.copy=function(){var a=new cd;a.pf[0]=this.pf[0];a.pf[1]=this.pf[1];a.pf[2]=this.pf[2];a.pf[3]=this.pf[3];a.pf[4]=this.pf[4];a.pf[5]=this.pf[5];return a};function dd(a){this.type=a;this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0;this.oE=[]}dd.prototype.addColorStop=function(a,b){this.oE.push({offset:a,color:b})}; -function ed(a,b,c){this.fillStyle="#000000";this.font="10px sans-serif";this.globalAlpha=1;this.lineCap="butt";this.Bx=0;this.lineJoin="miter";this.lineWidth=1;this.miterLimit=10;this.shadowBlur=0;this.shadowColor="rgba(0, 0, 0, 0)";this.shadowOffsetY=this.shadowOffsetX=0;this.strokeStyle="#000000";this.textAlign="start";this.document=b||document;this.ME=c;this.zx=null;this.path=[];this.hj=new cd;this.stack=[];this.Cf=[];this.bx=a;this.zJ="http://www.w3.org/2000/svg";this.width=this.bx.width;this.height= -this.bx.height;this.am=fd(this,"svg",{width:this.width+"px",height:this.height+"px",uM:"0 0 "+this.bx.width+" "+this.bx.height});this.am.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.am.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");gd(this,1,0,0,1,0,0);a=x.gm++;b=fd(this,"clipPath",{id:"mainClip"+a});b.appendChild(fd(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.am.appendChild(b);this.Cf[0].setAttributeNS(null, +R.BottomRightSides=Bc=Pb(new R(0,0,1,x.ed|x.fd),1).Ma();var Cc;R.NotTopSide=Cc=Pb(new R(0,0,1,x.Tc|x.fd|x.ed),1).Ma();var Dc;R.NotLeftSide=Dc=Pb(new R(0,0,1,x.qd|x.fd|x.ed),1).Ma();var Gc;R.NotRightSide=Gc=Pb(new R(0,0,1,x.qd|x.Tc|x.ed),1).Ma();var Hc;R.NotBottomSide=Hc=Pb(new R(0,0,1,x.qd|x.Tc|x.fd),1).Ma();var Ic;R.AllSides=Ic=Pb(new R(0,0,1,x.qd|x.Tc|x.fd|x.ed),1).Ma();function cd(){this.qf=[1,0,0,1,0,0]} +cd.prototype.copy=function(){var a=new cd;a.qf[0]=this.qf[0];a.qf[1]=this.qf[1];a.qf[2]=this.qf[2];a.qf[3]=this.qf[3];a.qf[4]=this.qf[4];a.qf[5]=this.qf[5];return a};function dd(a){this.type=a;this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0;this.pE=[]}dd.prototype.addColorStop=function(a,b){this.pE.push({offset:a,color:b})}; +function ed(a,b,c){this.fillStyle="#000000";this.font="10px sans-serif";this.globalAlpha=1;this.lineCap="butt";this.Cx=0;this.lineJoin="miter";this.lineWidth=1;this.miterLimit=10;this.shadowBlur=0;this.shadowColor="rgba(0, 0, 0, 0)";this.shadowOffsetY=this.shadowOffsetX=0;this.strokeStyle="#000000";this.textAlign="start";this.document=b||document;this.NE=c;this.Ax=null;this.path=[];this.hj=new cd;this.stack=[];this.Cf=[];this.ex=a;this.zJ="http://www.w3.org/2000/svg";this.width=this.ex.width;this.height= +this.ex.height;this.bm=fd(this,"svg",{width:this.width+"px",height:this.height+"px",uM:"0 0 "+this.ex.width+" "+this.ex.height});this.bm.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.bm.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");gd(this,1,0,0,1,0,0);a=x.hm++;b=fd(this,"clipPath",{id:"mainClip"+a});b.appendChild(fd(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.bm.appendChild(b);this.Cf[0].setAttributeNS(null, "clip-path","url(#mainClip"+a+")")}f=ed.prototype;f.arc=function(a,b,c,d,e,g){hd(this,a,b,c,d,e,g)};f.beginPath=function(){this.path=[]};f.bezierCurveTo=function(a,b,c,d,e,g){this.path.push(["C",a,b,c,d,e,g])};f.clearRect=function(){};f.clip=function(){id(this,"clipPath",this.path,new cd)};f.closePath=function(){this.path.push(["z"])};f.createLinearGradient=function(a,b,c,d){var e=new dd("linear");e.x1=a;e.y1=b;e.x2=c;e.y2=d;return e};f.createPattern=function(){}; f.createRadialGradient=function(a,b,c,d,e,g){var h=new dd("radial");h.x1=a;h.y1=b;h.r1=c;h.x2=d;h.y2=e;h.r2=g;return h}; -f.drawImage=function(a,b,c,d,e,g,h,k,l){var m="";a instanceof HTMLCanvasElement&&(m=a.toDataURL());a instanceof HTMLImageElement&&(m=a.src);m={x:0,y:0,width:a.naturalWidth,height:a.naturalHeight,href:m};m.preserveAspectRatio=Q.jb(d,k)&&Q.jb(e,l)?"xMidYMid slice":"none";var n="";k/=d;l/=e;if(0!==g||0!==h)n+=" translate("+g+", "+h+")";if(1!==k||1!==l)n+=" scale("+k+", "+l+")";if(0!==b||0!==c)n+=" translate("+-b+", "+-c+")";if(0!==b||0!==c||d!==a.naturalWidth||e!==a.naturalHeight)a="CLIP"+x.gm++,g=fd(this, -"clipPath",{id:a}),g.appendChild(fd(this,"rect",{x:b,y:c,width:d,height:e})),this.am.appendChild(g),m["clip-path"]="url(#"+a+")";jd(this,"image",m,this.hj,n);this.addElement("image",m)};f.fill=function(){id(this,"fill",this.path,this.hj)};f.fillRect=function(a,b,c,d){kd(this,"fill",[a,b,c,d],this.hj)}; +f.drawImage=function(a,b,c,d,e,g,h,k,l){var m="";a instanceof HTMLCanvasElement&&(m=a.toDataURL());a instanceof HTMLImageElement&&(m=a.src);m={x:0,y:0,width:a.naturalWidth,height:a.naturalHeight,href:m};m.preserveAspectRatio=Q.jb(d,k)&&Q.jb(e,l)?"xMidYMid slice":"none";var n="";k/=d;l/=e;if(0!==g||0!==h)n+=" translate("+g+", "+h+")";if(1!==k||1!==l)n+=" scale("+k+", "+l+")";if(0!==b||0!==c)n+=" translate("+-b+", "+-c+")";if(0!==b||0!==c||d!==a.naturalWidth||e!==a.naturalHeight)a="CLIP"+x.hm++,g=fd(this, +"clipPath",{id:a}),g.appendChild(fd(this,"rect",{x:b,y:c,width:d,height:e})),this.bm.appendChild(g),m["clip-path"]="url(#"+a+")";jd(this,"image",m,this.hj,n);this.addElement("image",m)};f.fill=function(){id(this,"fill",this.path,this.hj)};f.fillRect=function(a,b,c,d){kd(this,"fill",[a,b,c,d],this.hj)}; f.fillText=function(a,b,c){a=[a,b,c];b=this.textAlign;"left"===b?b="start":"right"===b?b="end":"center"===b&&(b="middle");b={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":b};jd(this,"fill",b,this.hj);this.addElement("text",b,a[0])};f.lineTo=function(a,b){this.path.push(["L",a,b])};f.moveTo=function(a,b){this.path.push(["M",a,b])};f.quadraticCurveTo=function(a,b,c,d){this.path.push(["Q",a,b,c,d])};f.rect=function(a,b,c,d){this.path.push(["M",a,b],["L",a+c,b],["L",a+c,b+d],["L",a,b+d],["z"])}; -f.restore=function(){this.hj=this.stack.pop();this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle;this.font=a.font;this.globalAlpha=a.globalAlpha;this.lineCap=a.lineCap;this.Bx=a.Bx;this.lineJoin=a.lineJoin;this.lineWidth=a.lineWidth;this.miterLimit=a.miterLimit;this.shadowBlur=a.shadowBlur;this.shadowColor=a.shadowColor;this.shadowOffsetX=a.shadowOffsetX;this.shadowOffsetY=a.shadowOffsetY;this.strokeStyle=a.strokeStyle;this.textAlign=a.textAlign}; -f.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,Bx:this.Bx,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign});for(var a=[],b=0;bb.offset?1:-1});for(k=0;k=2*Math.PI?(hd(a,b,c,d,e,e+Math.PI,h),hd(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,g])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k===!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,g]))}}function gd(a,b,c,d,e,g,h){var k=new cd;k.pf=[b,c,d,e,g,h];b={};jd(a,"g",b,k);k=a.addElement("g",b);a.Cf.push(k)} -f.hb=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+x.gm++,b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,g,h;c=fd(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",lM:this.shadowBlur/2});d=fd(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=fd(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});g=fd(this,"feOffset",{"in":"comp",result:"offsetBlur", +c.stroke="rgb("+b[1]+","+b[2]+","+b[3]+")",c["stroke-opacity"]=b[4]):c.stroke=a.strokeStyle instanceof dd?td(a,a.strokeStyle):a.strokeStyle,c["stroke-width"]=a.lineWidth,c["stroke-linecap"]=a.lineCap,c["stroke-linejoin"]=a.lineJoin,c["stroke-miterlimit"]=a.miterLimit);d=d.qf;d="matrix("+d[0]+", "+d[1]+", "+d[2]+", "+d[3]+", "+d[4]+", "+d[5]+")";void 0!==e&&(d+=e);c.transform=d} +function td(a,b){var c="GRAD"+x.hm++,d;if("linear"===b.type)d={x1:b.x1,x2:b.x2,y1:b.y1,y2:b.y2,id:c,gradientUnits:"userSpaceOnUse"},d=fd(a,"linearGradient",d);else if("radial"===b.type)d={x1:b.x1,x2:b.x2,y1:b.y1,y2:b.y2,r1:b.r1,r2:b.r2,id:c},d=fd(a,"radialGradient",d);else throw Error("invalid gradient");for(var e=b.pE,g=e.length,h=[],k=0;kb.offset?1:-1});for(k=0;k=2*Math.PI?(hd(a,b,c,d,e,e+Math.PI,h),hd(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,g])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k===!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,g]))}}function gd(a,b,c,d,e,g,h){var k=new cd;k.qf=[b,c,d,e,g,h];b={};jd(a,"g",b,k);k=a.addElement("g",b);a.Cf.push(k)} +f.hb=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+x.hm++,b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,g,h;c=fd(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",lM:this.shadowBlur/2});d=fd(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=fd(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});g=fd(this,"feOffset",{"in":"comp",result:"offsetBlur", dx:this.shadowOffsetX,dy:this.shadowOffsetY});h=fd(this,"feMerge",{});h.appendChild(fd(this,"feMergeNode",{"in":"offsetBlur"}));h.appendChild(fd(this,"feMergeNode",{"in":"SourceGraphic"}));b.appendChild(c);b.appendChild(d);b.appendChild(e);b.appendChild(g);b.appendChild(h);0= -a)return 0;var b=Q.GB;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);Q.GB=b}return 1>a?(c=1/a,2E3>=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},F:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(g=(d-b)/(c-a)*(g-a)+b,g-e<=h&&h<=g+e)return!0}else return!0;else if(b-d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=g&&g<=h+e)return!0}else return!0;return!1},Tw:function(a,b,c,d,e,g,h,k,l,m,n,p){if(Q.Qd(a,b,h,k,p,c,d)&&Q.Qd(a,b,h,k,p,e,g))return Q.Qd(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+g)/2,v=(d+s)/2,y=(c+t)/2;return Q.Tw(a,b,q,r,d,c,v,y,l,m,n,p)||Q.Tw(v,y,s,t,e,g,h,k,l,m,n,p)},CH:function(a, -b,c,d,e,g,h,k,l){var m=(c+e)/2,n=(d+g)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+(g+k)/2)/2)/2;return l},BH:function(a,b,c,d,e,g,h,k){var l=(c+e)/2,m=(d+g)/2;return ub(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(g+k)/2)/2)},gp:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,h,k,l,c,d)&&Q.Qd(a,b,h,k,l,e,g))Eb(m,a,b,0,0),Eb(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;Q.gp(a,b,n,p,d,c,s, -t,l,m);Q.gp(s,t,q,r,e,g,h,k,l,m)}return m},ze:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,h,k,l,c,d)&&Q.Qd(a,b,h,k,l,e,g))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;Q.ze(a,b,n,p,d,c,s,t,l,m);Q.ze(s,t,q,r,e,g,h,k,l,m)}return m},VA:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,e,g,m,c,d))return Q.Qd(a,b,e,g,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var q= -(n+c)/2,r=(p+d)/2;return Q.VA(a,b,n,p,q,r,h,k,l,m)||Q.VA(q,r,c,d,e,g,h,k,l,m)},dM:function(a,b,c,d,e,g,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+g)/2)/2;return h},UA:function(a,b,c,d,e,g,h,k){if(Q.Qd(a,b,e,g,h,c,d))Eb(k,a,b,0,0),Eb(k,e,g,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;Q.UA(a,b,l,m,n,p,h,k);Q.UA(n,p,c,d,e,g,h,k)}return k},Vp:function(a,b,c,d,e,g,h,k){if(Q.Qd(a,b,e,g,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(g);else{var l=(a+c)/2,m=(b+ +var Q={Ka:4*((Math.sqrt(2)-1)/3),Ek:(new N(0,0)).Ma(),ty:(new w(0,0,0,0)).Ma(),mq:(new yb(0,0,0,0)).Ma(),RG:(new yb(2,2,2,2)).Ma(),PG:(new N(6,6)).Ma(),LG:(new N(-Infinity,-Infinity)).Ma(),KG:(new N(Infinity,Infinity)).Ma(),Mn:(new Fa(0,0)).Ma(),py:(new Fa(1,1)).Ma(),lq:(new Fa(6,6)).Ma(),my:(new Fa(8,8)).Ma(),QG:(new Fa(10,10)).Ma(),IB:(new Fa(Infinity,Infinity)).Ma(),MG:(new N(NaN,NaN)).Ma(),FB:(new Fa(NaN,NaN)).Ma(),NG:(new w(NaN,NaN,NaN,NaN)).Ma(),qy:new pa,yj:new pa,HB:null,sqrt:function(a){if(0>= +a)return 0;var b=Q.HB;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);Q.HB=b}return 1>a?(c=1/a,2E3>=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},F:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(g=(d-b)/(c-a)*(g-a)+b,g-e<=h&&h<=g+e)return!0}else return!0;else if(b-d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=g&&g<=h+e)return!0}else return!0;return!1},Tw:function(a,b,c,d,e,g,h,k,l,m,n,p){if(Q.Qd(a,b,h,k,p,c,d)&&Q.Qd(a,b,h,k,p,e,g))return Q.Qd(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+g)/2,v=(d+s)/2,y=(c+t)/2;return Q.Tw(a,b,q,r,d,c,v,y,l,m,n,p)||Q.Tw(v,y,s,t,e,g,h,k,l,m,n,p)},DH:function(a, +b,c,d,e,g,h,k,l){var m=(c+e)/2,n=(d+g)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+(g+k)/2)/2)/2;return l},CH:function(a,b,c,d,e,g,h,k){var l=(c+e)/2,m=(d+g)/2;return ub(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(g+k)/2)/2)},gp:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,h,k,l,c,d)&&Q.Qd(a,b,h,k,l,e,g))Eb(m,a,b,0,0),Eb(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;Q.gp(a,b,n,p,d,c,s, +t,l,m);Q.gp(s,t,q,r,e,g,h,k,l,m)}return m},ze:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,h,k,l,c,d)&&Q.Qd(a,b,h,k,l,e,g))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;Q.ze(a,b,n,p,d,c,s,t,l,m);Q.ze(s,t,q,r,e,g,h,k,l,m)}return m},WA:function(a,b,c,d,e,g,h,k,l,m){if(Q.Qd(a,b,e,g,m,c,d))return Q.Qd(a,b,e,g,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var q= +(n+c)/2,r=(p+d)/2;return Q.WA(a,b,n,p,q,r,h,k,l,m)||Q.WA(q,r,c,d,e,g,h,k,l,m)},dM:function(a,b,c,d,e,g,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+g)/2)/2;return h},VA:function(a,b,c,d,e,g,h,k){if(Q.Qd(a,b,e,g,h,c,d))Eb(k,a,b,0,0),Eb(k,e,g,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;Q.VA(a,b,l,m,n,p,h,k);Q.VA(n,p,c,d,e,g,h,k)}return k},Vp:function(a,b,c,d,e,g,h,k){if(Q.Qd(a,b,e,g,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(g);else{var l=(a+c)/2,m=(b+ d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;Q.Vp(a,b,l,m,n,p,h,k);Q.Vp(n,p,c,d,e,g,h,k)}return k},it:function(a,b,c,d,e,g,h,k,l,m,n,p,q,r){0>=q&&(q=1E-6);if(Q.Qd(a,b,h,k,q,c,d)&&Q.Qd(a,b,h,k,q,e,g)){var s=(a-h)*(m-p)-(b-k)*(l-n);if(0===s)return!1;q=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/s;s=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/s;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(h=l=0,bh)return!1}else if(ah)return!1;r.x=q;r.y=s;return!0}var s=(a+c)/2,t=(b+d)/2;c= (c+e)/2;d=(d+g)/2;e=(e+h)/2;g=(g+k)/2;var v=(s+c)/2,y=(t+d)/2;c=(c+e)/2;d=(d+g)/2;var A=(v+c)/2,B=(y+d)/2,C=(n-l)*(n-l)+(p-m)*(p-m),M=!1;Q.it(a,b,s,t,v,y,A,B,l,m,n,p,q,r)&&(b=(r.x-l)*(r.x-l)+(r.y-m)*(r.y-m),b=q&&(q=1E-6);if(Q.Qd(a,b,h,k,q,c,d)&&Q.Qd(a,b,h,k,q,e,g)){q=(a-h)*(m-p)-(b-k)*(l-n);if(0===q)return r;var s=((a* k-b*h)*(l-n)-(a-h)*(l*p-m*n))/q,t=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/q;if(s>=n)return r;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(a=l=0,ba)return r}else if(aa)return r;0q&&r--}else{var s=(a+c)/2,t=(b+d)/2,v=(c+e)/2,y=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(s+v)/2;c=(t+y)/2;var v=(v+e)/2,y=(y+g)/2,A=(d+v)/2,B=(c+y)/2,r=r+Q.jt(a,b,s,t,d,c,A,B,l,m,n,p,q),r=r+Q.jt(A,B,v,y,e,g,h,k,l,m,n,p,q)}return r},yn:function(a,b,c,d,e,g,h){if(Q.jb(a,c)){var k=0;c=0;b< d?(k=b,c=d):(k=d,c=b);d=g;if(dc)return h.x=a,h.y=c,!1;h.x=a;h.y=d;return!0}if(Q.jb(b,d)){ac)return h.x=c,h.y=b,!1;h.x=d;h.y=b;return!0}k=((a-e)*(a-c)+(b-g)*(b-d))/((c-a)*(c-a)+(d-b)*(d-b));if(-5E-6>k)return h.x=a,h.y=b,!1;if(1.000005c)return l.x=a,l.y=c,!1;l.x=a;l.y=g;return!0}h=(d-b)/(c-a);if(Q.jb(k,h))return Q.yn(a,b,c,d,e,g,l),!1;e=(h*a-k*e+g-b)/(h-k);if(Q.jb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}g=h*(e-a)+b;return Q.yn(a,b,c,d,e,g,l)},BL:function(a,b,c,d,e){return Q.wh(c.x,c.y,d.x,d.y,a.x,a.y,b.x, b.y,e)},nL:function(a,b,c,d,e,g,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);e(c>a?c-a:a-c)){q=1-(c-e)*(c-e)/(q*q);if(0>q)return l;q=Math.sqrt(q);d=-m*q+g;n(c,m*q+g);n(c,d)}else{c=(d-b)/(c-a);d=1/(q*q)+c*c/(m*m);k=2*c*(b-c*a)/(m*m)-2*c*g/(m*m)-2*e/(q*q);q=k*k-4*d*(2*c*a*g/(m*m)-2*b*g/(m*m)+g*g/(m*m)+ -e*e/(q*q)-1+(b-c*a)*(b-c*a)/(m*m));if(0>q)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q,c*q-c*a+b)}return l},Pl:function(a,b,c,d,e,g,h,k,l){var m=1E21,n=a,p=b;if(Q.wh(a,b,a,d,e,g,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-g)*(l.y-g);qm},qx:function(a,b,c){var d=b.x,e=b.y,g=c.x,h=c.y,k=a.left,l=a.right,m=a.top,n=a.bottom;return d===g?(g=a=0,e=m):e===h?(d=k):a.Na(b)||a.Na(c)||Q.px(k,m,l,m,d,e,g,h)||Q.px(l,m,l,n,d,e,g,h)||Q.px(l,n,k,n,d,e,g,h)||Q.px(k,n,k,m,d,e,g,h)?!0:!1},px:function(a,b,c,d,e,g,h,k){return 0>=Q.Xw(a,b,c,d,e,g)*Q.Xw(a,b,c,d,h,k)&&0>=Q.Xw(e,g,h,k,a,b)*Q.Xw(e,g,h,k,c,d)},Xw:function(a,b, -c,d,e,g){c-=a;d-=b;a=e-a;b=g-b;g=a*d-b*c;0===g&&(g=a*c+b*d,0g&&(g=0)));return 0>g?-1:0a&&(a+=360);360<=a&&(a-=360);return a},yE:function(a,b,c,d,e,g){var h=Math.PI;g||(d*=h/180,e*=h/180);g=dc,g=0>d,h=0,k=h=0;aq)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q,c*q-c*a+b)}return l},Ql:function(a,b,c,d,e,g,h,k,l){var m=1E21,n=a,p=b;if(Q.wh(a,b,a,d,e,g,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-g)*(l.y-g);qm},sx:function(a,b,c){var d=b.x,e=b.y,g=c.x,h=c.y,k=a.left,l=a.right,m=a.top,n=a.bottom;return d===g?(g=a=0,e=m):e===h?(d=k):a.Na(b)||a.Na(c)||Q.qx(k,m,l,m,d,e,g,h)||Q.qx(l,m,l,n,d,e,g,h)||Q.qx(l,n,k,n,d,e,g,h)||Q.qx(k,n,k,m,d,e,g,h)?!0:!1},qx:function(a,b,c,d,e,g,h,k){return 0>=Q.Xw(a,b,c,d,e,g)*Q.Xw(a,b,c,d,h,k)&&0>=Q.Xw(e,g,h,k,a,b)*Q.Xw(e,g,h,k,c,d)},Xw:function(a,b, +c,d,e,g){c-=a;d-=b;a=e-a;b=g-b;g=a*d-b*c;0===g&&(g=a*c+b*d,0g&&(g=0)));return 0>g?-1:0a&&(a+=360);360<=a&&(a-=360);return a},zE:function(a,b,c,d,e,g){var h=Math.PI;g||(d*=h/180,e*=h/180);g=dc,g=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+g),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=g*c/(b+g)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,ea?"M"+this.Ha.toString()+" "+this.Da.toString()+"L"+this.M.toString()+" "+this.N.toString():"M"+this.Ha.toFixed(a)+" "+this.Da.toFixed(a)+"L"+this.M.toFixed(a)+" "+this.N.toFixed(a);case zd:var b=new w(this.Ha,this.Da,0,0);b.BG(this.M,this.N,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ -"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case Ad:b=new w(this.Ha,this.Da,0,0);b.BG(this.M,this.N,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ +ud.prototype.toString=function(a){void 0===a&&(a=-1);switch(this.type){case yd:return 0>a?"M"+this.Ha.toString()+" "+this.Da.toString()+"L"+this.M.toString()+" "+this.N.toString():"M"+this.Ha.toFixed(a)+" "+this.Da.toFixed(a)+"L"+this.M.toFixed(a)+" "+this.N.toFixed(a);case zd:var b=new w(this.Ha,this.Da,0,0);b.CG(this.M,this.N,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ +"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case Ad:b=new w(this.Ha,this.Da,0,0);b.CG(this.M,this.N,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ 2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+d+"A"+(b.width/2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+c;case vd:for(var b="",c=this.ec.o,d=c.length,e=0;e=t-1?!0:null!==l[m+1].match(/[A-Za-z]/)}function d(){m++;return l[m]}function e(){var a=new N(parseFloat(d()),parseFloat(d()));n===n.toLowerCase()&&(a.x=s.x+a.x,a.y=s.y+a.y);return a}function g(){return s=e()}function h(){return r=e()}function k(){return"c"!==p.toLowerCase()&&"s"!==p.toLowerCase()?s:new N(2*s.x-r.x,2*s.y-r.y)}void 0===b&&(b=!1);"string"!==typeof a&&x.jc(a,"string",ud,"parse:str");a=a.replace(/,/gm," ");a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm, @@ -246,15 +246,15 @@ ud.parse=Hd=function(a,b){function c(){return m>=t-1?!0:null!==l[m+1].match(/[A- case "C":for(;!c();){var M=e(),I=h(),C=g();T(v,M.x,M.y,I.x,I.y,C.x,C.y)}break;case "S":for(;!c();)M=k(),I=h(),C=g(),T(v,M.x,M.y,I.x,I.y,C.x,C.y);break;case "Q":for(;!c();)I=h(),C=g(),Id(v,I.x,I.y,C.x,C.y);break;case "T":for(;!c();)r=I=k(),C=g(),Id(v,I.x,I.y,C.x,C.y);break;case "B":for(;!c();){var C=parseFloat(d()),M=parseFloat(d()),I=parseFloat(d()),V=parseFloat(d()),ea=parseFloat(d()),W=ea,P=!1;c()||(W=parseFloat(d()),c()||(P=0!==parseFloat(d())));n===n.toLowerCase()&&(I+=s.x,V+=s.y);v.arcTo(C,M, I,V,ea,W,P)}break;case "A":for(;!c();)M=Math.abs(parseFloat(d())),I=Math.abs(parseFloat(d())),V=parseFloat(d()),ea=!!parseFloat(d()),W=!!parseFloat(d()),C=g(),Jd(v,M,I,V,ea,W,C.x,C.y);break;case "Z":C=v.q.ec.o[v.q.ec.length-1];U(v);s=q;break;case "F":C="";for(M=1;l[m+M];)if(null!==l[m+M].match(/[Uu]/))M++;else if(null===l[m+M].match(/[A-Za-z]/))M++;else{C=l[m+M];break}C.match(/[Mm]/)?y=!0:Kd(v);break;case "U":C="";for(M=1;l[m+M];)if(null!==l[m+M].match(/[Ff]/))M++;else if(null===l[m+M].match(/[A-Za-z]/))M++; else{C=l[m+M];break}C.match(/[Mm]/)?A=!0:v.hb(!1)}q=v.q;x.v(v);if(b)for(v=q.ec.i;v.next();)C=v.value,C.Mt=!0;return q};function Ld(a,b){for(var c=a.length,d=x.P(),e=0;eh&&(h+=360),s.Ge+=h);0>a&&(s.Ge=180-s.Ge,s.Nf=-s.Nf);0>d&&(s.Ge=-s.Ge,s.Nf=-s.Nf);s.radiusX*=Math.sqrt(a*a+c*c);void 0!==s.radiusY&&(s.radiusY*=Math.sqrt(b*b+d*d));break;case Rd:h=s.M;k=s.N;s.M=h* -a+k*c+e;s.N=h*b+k*d+g;0!==b&&(h=180*Math.atan2(b,a)/Math.PI,0>h&&(h+=360),s.xj+=h);0>a&&(s.xj=180-s.xj,s.Sl=!s.Sl);0>d&&(s.xj=-s.xj,s.Sl=!s.Sl);s.radiusX*=Math.sqrt(a*a+c*c);s.radiusY*=Math.sqrt(b*b+d*d);break;default:x.k("Unknown Segment type: "+s.type)}}}}this.ib=!0;return this}; +a+k*c+e;s.N=h*b+k*d+g;0!==b&&(h=180*Math.atan2(b,a)/Math.PI,0>h&&(h+=360),s.xj+=h);0>a&&(s.xj=180-s.xj,s.Tl=!s.Tl);0>d&&(s.xj=-s.xj,s.Tl=!s.Tl);s.radiusX*=Math.sqrt(a*a+c*c);s.radiusY*=Math.sqrt(b*b+d*d);break;default:x.k("Unknown Segment type: "+s.type)}}}}this.ib=!0;return this}; ud.prototype.Na=function(a,b,c,d){var e=a.x,g=a.y,h=this.Cb.x-20;a=a.y;for(var k=0,l=0,m=0,n=0,p=0,q=0,r=this.ec.o,s=r.length,t=0;t=a)return 0;if((e>h?e-h:h-e)<(g>k?g-k:k-g)){if(e=a=0,ge)return 0}else if(ee)return 0;return 0a)return n=(a-q)/p,x.ya(c),new N(b+(e-b)*n,d+(g-d)*n);q+=p}b=e;d=g}x.ya(c);return null};x.defineProperty(ud,{type:"type"},function(){return this.da},function(a){this.da!==a&&(u&&x.Ca(a,ud,ud,"type"),this.H&&x.pa(this,a),this.da=a,this.ib=!0)}); x.defineProperty(ud,{Ha:"startX"},function(){return this.wc},function(a){this.wc!==a&&(u&&x.p(a,ud,"startX"),this.H&&x.pa(this,a),this.wc=a,this.ib=!0)});x.defineProperty(ud,{Da:"startY"},function(){return this.Cc},function(a){this.Cc!==a&&(u&&x.p(a,ud,"startY"),this.H&&x.pa(this,a),this.Cc=a,this.ib=!0)});x.defineProperty(ud,{M:"endX"},function(){return this.Db},function(a){this.Db!==a&&(u&&x.p(a,ud,"endX"),this.H&&x.pa(this,a),this.Db=a,this.ib=!0)}); x.defineProperty(ud,{N:"endY"},function(){return this.Ib},function(a){this.Ib!==a&&(u&&x.p(a,ud,"endY"),this.H&&x.pa(this,a),this.Ib=a,this.ib=!0)});x.defineProperty(ud,{ec:"figures"},function(){return this.Dj},function(a){this.Dj!==a&&(u&&x.l(a,J,ud,"figures"),this.H&&x.pa(this,a),this.Dj=a,this.ib=!0)});ud.prototype.add=ud.prototype.add=function(a){this.Dj.add(a);return this}; -x.defineProperty(ud,{C:"spot1"},function(){return this.Wi},function(a){u&&x.l(a,R,ud,"spot1");this.H&&x.pa(this,a);this.Wi=a.Y()});x.defineProperty(ud,{D:"spot2"},function(){return this.Xi},function(a){u&&x.l(a,R,ud,"spot2");this.H&&x.pa(this,a);this.Xi=a.Y()});x.defineProperty(ud,{Xd:"defaultStretch"},function(){return this.Di},function(a){u&&x.Ca(a,O,ud,"stretch");this.H&&x.pa(this,a);this.Di=a});x.w(ud,{Cb:"bounds"},function(){this.zA()&&(this.vB(),this.nh());return this.av}); -function wd(a,b,c,d){x.lc(this);this.H=!1;void 0===c&&(c=!0);this.rm=c;void 0===d&&(d=!0);this.zo=d;void 0!==a?(u&&x.p(a,wd,"sx"),this.wc=a):this.wc=0;void 0!==b?(u&&x.p(b,wd,"sy"),this.Cc=b):this.Cc=0;this.So=new J(ge);this.rw=this.So.I;this.ib=!0}x.ja("PathFigure",wd);x.li(wd);wd.prototype.copy=function(){var a=new wd;a.rm=this.rm;a.zo=this.zo;a.wc=this.wc;a.Cc=this.Cc;for(var b=this.So.o,c=b.length,d=a.So,e=0;ea?"M"+this.Ha.toString()+" "+this.Da.toString():"M"+this.Ha.toFixed(a)+" "+this.Da.toFixed(a),c=this.Eb.o,d=c.length,e=0;ea&&(a+=360),this.Fd=a,this.Se=0,u&&x.p(d,ge,"x1"),this.gh=Math.max(d,0),u&&x.p(e,ge,"y1"),this.xg=Math.max(e,0),this.Eo="boolean"===typeof h?!!h:!1,this.Tn=!!k):(u&&x.p(d,ge,"x1"),this.Fd=d,u&&x.p(e, ge,"y1"),this.Se=e,u&&x.p(g,ge,"x2"),a===Qd&&(g=Math.max(g,0)),this.gh=g,"number"===typeof h?(a===Qd&&(h=Math.max(h,0)),this.xg=h):this.xg=0,this.Tn=this.Eo=!1);this.Uh=!1;this.ib=!0;this.mg=null}x.ja("PathSegment",ge);x.li(ge);ge.prototype.copy=function(){var a=new ge;a.da=this.da;a.Db=this.Db;a.Ib=this.Ib;a.Fd=this.Fd;a.Se=this.Se;a.gh=this.gh;a.xg=this.xg;a.Eo=this.Eo;a.Tn=this.Tn;a.Uh=this.Uh;a.ib=this.ib;return a}; -ge.prototype.equalsApprox=ge.prototype.wd=function(a){if(!(a instanceof ge)||this.type!==a.type||this.sx!==a.sx)return!1;switch(this.type){case Nd:case Cd:return Q.F(this.M,a.M)&&Q.F(this.N,a.N);case Od:return Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.zc,a.zc)&&Q.F(this.Qc,a.Qc)&&Q.F(this.Ch,a.Ch)&&Q.F(this.Dh,a.Dh);case Pd:return Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.zc,a.zc)&&Q.F(this.Qc,a.Qc);case Qd:return Q.F(this.Ge,a.Ge)&&Q.F(this.Nf,a.Nf)&&Q.F(this.sa,a.sa)&&Q.F(this.Aa,a.Aa)&&Q.F(this.radiusX, -a.radiusX)&&Q.F(this.radiusY,a.radiusY);case Rd:return this.Sl===a.Sl&&this.wx===a.wx&&Q.F(this.xj,a.xj)&&Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.radiusX,a.radiusX)&&Q.F(this.radiusY,a.radiusY);default:return!1}}; +ge.prototype.equalsApprox=ge.prototype.wd=function(a){if(!(a instanceof ge)||this.type!==a.type||this.tx!==a.tx)return!1;switch(this.type){case Nd:case Cd:return Q.F(this.M,a.M)&&Q.F(this.N,a.N);case Od:return Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.zc,a.zc)&&Q.F(this.Qc,a.Qc)&&Q.F(this.Ch,a.Ch)&&Q.F(this.Dh,a.Dh);case Pd:return Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.zc,a.zc)&&Q.F(this.Qc,a.Qc);case Qd:return Q.F(this.Ge,a.Ge)&&Q.F(this.Nf,a.Nf)&&Q.F(this.sa,a.sa)&&Q.F(this.Aa,a.Aa)&&Q.F(this.radiusX, +a.radiusX)&&Q.F(this.radiusY,a.radiusY);case Rd:return this.Tl===a.Tl&&this.xx===a.xx&&Q.F(this.xj,a.xj)&&Q.F(this.M,a.M)&&Q.F(this.N,a.N)&&Q.F(this.radiusX,a.radiusX)&&Q.F(this.radiusY,a.radiusY);default:return!1}}; ge.prototype.toString=function(a){void 0===a&&(a=-1);var b="";switch(this.type){case Nd:b=0>a?"M"+this.M.toString()+" "+this.N.toString():"M"+this.M.toFixed(a)+" "+this.N.toFixed(a);break;case Cd:b=0>a?"L"+this.M.toString()+" "+this.N.toString():"L"+this.M.toFixed(a)+" "+this.N.toFixed(a);break;case Od:b=0>a?"C"+this.zc.toString()+" "+this.Qc.toString()+" "+this.Ch.toString()+" "+this.Dh.toString()+" "+this.M.toString()+" "+this.N.toString():"C"+this.zc.toFixed(a)+" "+this.Qc.toFixed(a)+" "+this.Ch.toFixed(a)+ " "+this.Dh.toFixed(a)+" "+this.M.toFixed(a)+" "+this.N.toFixed(a);break;case Pd:b=0>a?"Q"+this.zc.toString()+" "+this.Qc.toString()+" "+this.M.toString()+" "+this.N.toString():"Q"+this.zc.toFixed(a)+" "+this.Qc.toFixed(a)+" "+this.M.toFixed(a)+" "+this.N.toFixed(a);break;case Qd:b=0>a?"B"+this.Ge.toString()+" "+this.Nf.toString()+" "+this.sa.toString()+" "+this.Aa.toString()+" "+this.radiusX:"B"+this.Ge.toFixed(a)+" "+this.Nf.toFixed(a)+" "+this.sa.toFixed(a)+" "+this.Aa.toFixed(a)+" "+this.radiusX; -break;case Rd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xj.toString()+" "+(this.wx?1:0)+" "+(this.Sl?1:0)+" "+this.M.toString()+" "+this.N.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xj.toFixed(a)+" "+(this.wx?1:0)+" "+(this.Sl?1:0)+" "+this.M.toFixed(a)+" "+this.N.toFixed(a);break;default:b=this.type.toString()}return b+(this.Uh?"z":"")};var Nd;ge.Move=Nd=x.s(ge,"Move",0);var Cd;ge.Line=Cd=x.s(ge,"Line",1);var Od; +break;case Rd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xj.toString()+" "+(this.xx?1:0)+" "+(this.Tl?1:0)+" "+this.M.toString()+" "+this.N.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xj.toFixed(a)+" "+(this.xx?1:0)+" "+(this.Tl?1:0)+" "+this.M.toFixed(a)+" "+this.N.toFixed(a);break;default:b=this.type.toString()}return b+(this.Uh?"z":"")};var Nd;ge.Move=Nd=x.s(ge,"Move",0);var Cd;ge.Line=Cd=x.s(ge,"Line",1);var Od; ge.Bezier=Od=x.s(ge,"Bezier",2);var Pd;ge.QuadraticBezier=Pd=x.s(ge,"QuadraticBezier",3);var Qd;ge.Arc=Qd=x.s(ge,"Arc",4);var Rd;ge.SvgArc=Rd=x.s(ge,"SvgArc",4);ge.prototype.freeze=function(){this.H=!0;return this};ge.prototype.Va=function(){this.H=!1;return this};ge.prototype.close=ge.prototype.close=function(){this.Uh=!0;return this}; -function Sd(a,b){if(null!==a.mg&&!1===b.ib)return a.mg;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);if(0===c||0===d)return a.mg=[],a.mg;var e=a.Fd,g=a.Se,h=Q.yE(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=Q.yE(0,0,b>h?b:h,p,p+k,!0);h=x.Hh();h.reset();h.translate(c,d);h.rotate(a.Fd,0,0);h.scale(m,s);Ld(b,h);x.kf(h);a.mg=b;return a.mg} -x.defineProperty(ge,{sx:"isClosed"},function(){return this.Uh},function(a){this.Uh!==a&&(this.Uh=a,this.ib=!0)});x.defineProperty(ge,{type:"type"},function(){return this.da},function(a){u&&x.Ca(a,ge,ge,"type");this.H&&x.pa(this,a);this.da=a;this.ib=!0});x.defineProperty(ge,{M:"endX"},function(){return this.Db},function(a){u&&x.p(a,ge,"endX");this.H&&x.pa(this,a);this.Db=a;this.ib=!0}); +s*s));isNaN(t)&&(t=0);l=t*b*k/h;t=t*-h*s/b;isNaN(l)&&(l=0);isNaN(t)&&(t=0);c=(c+n)/2+q*l-r*t;d=(d+p)/2+r*l+q*t;p=e(1,0,(s-l)/b,(k-t)/h);q=(s-l)/b;n=(k-t)/h;s=(-s-l)/b;l=(-k-t)/h;k=e(q,n,s,l);s=g(q,n,s,l);-1>=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=Q.zE(0,0,b>h?b:h,p,p+k,!0);h=x.Hh();h.reset();h.translate(c,d);h.rotate(a.Fd,0,0);h.scale(m,s);Ld(b,h);x.lf(h);a.mg=b;return a.mg} +x.defineProperty(ge,{tx:"isClosed"},function(){return this.Uh},function(a){this.Uh!==a&&(this.Uh=a,this.ib=!0)});x.defineProperty(ge,{type:"type"},function(){return this.da},function(a){u&&x.Ca(a,ge,ge,"type");this.H&&x.pa(this,a);this.da=a;this.ib=!0});x.defineProperty(ge,{M:"endX"},function(){return this.Db},function(a){u&&x.p(a,ge,"endX");this.H&&x.pa(this,a);this.Db=a;this.ib=!0}); x.defineProperty(ge,{N:"endY"},function(){return this.Ib},function(a){u&&x.p(a,ge,"endY");this.H&&x.pa(this,a);this.Ib=a;this.ib=!0});x.defineProperty(ge,{zc:"point1X"},function(){return this.Fd},function(a){u&&x.p(a,ge,"point1X");this.H&&x.pa(this,a);this.Fd=a;this.ib=!0});x.defineProperty(ge,{Qc:"point1Y"},function(){return this.Se},function(a){u&&x.p(a,ge,"point1Y");this.H&&x.pa(this,a);this.Se=a;this.ib=!0}); x.defineProperty(ge,{Ch:"point2X"},function(){return this.gh},function(a){u&&x.p(a,ge,"point2X");this.H&&x.pa(this,a);this.gh=a;this.ib=!0});x.defineProperty(ge,{Dh:"point2Y"},function(){return this.xg},function(a){u&&x.p(a,ge,"point2Y");this.H&&x.pa(this,a);this.xg=a;this.ib=!0});x.defineProperty(ge,{sa:"centerX"},function(){return this.Fd},function(a){u&&x.p(a,ge,"centerX");this.H&&x.pa(this,a);this.Fd=a;this.ib=!0}); x.defineProperty(ge,{Aa:"centerY"},function(){return this.Se},function(a){u&&x.p(a,ge,"centerY");this.H&&x.pa(this,a);this.Se=a;this.ib=!0});x.defineProperty(ge,{radiusX:"radiusX"},function(){return this.gh},function(a){u&&x.p(a,ge,"radiusX");0>a&&x.la(a,">= zero",ge,"radiusX");this.H&&x.pa(this,a);this.gh=a;this.ib=!0});x.defineProperty(ge,{radiusY:"radiusY"},function(){return this.xg},function(a){u&&x.p(a,ge,"radiusY");0>a&&x.la(a,">= zero",ge,"radiusY");this.H&&x.pa(this,a);this.xg=a;this.ib=!0}); -x.defineProperty(ge,{Ge:"startAngle"},function(){return this.Db},function(a){this.Db!==a&&(this.H&&x.pa(this,a),u&&x.p(a,ge,"startAngle"),a%=360,0>a&&(a+=360),this.Db=a,this.ib=!0)});x.defineProperty(ge,{Nf:"sweepAngle"},function(){return this.Ib},function(a){u&&x.p(a,ge,"sweepAngle");this.H&&x.pa(this,a);360a&&(a=-360);this.Ib=a;this.ib=!0});x.defineProperty(ge,{Sl:"isClockwiseArc"},function(){return this.Tn},function(a){this.H&&x.pa(this,a);this.Tn=a;this.ib=!0}); -x.defineProperty(ge,{wx:"isLargeArc"},function(){return this.Eo},function(a){this.H&&x.pa(this,a);this.Eo=a;this.ib=!0});x.defineProperty(ge,{xj:"xAxisRotation"},function(){return this.Fd},function(a){u&&x.p(a,ge,"xAxisRotation");a%=360;0>a&&(a+=360);this.H&&x.pa(this,a);this.Fd=a;this.ib=!0}); -function he(){this.W=null;this.Pz=(new N(0,0)).freeze();this.Vy=(new N(0,0)).freeze();this.Xu=this.Tv=0;this.Yu=1;this.Hv="";this.Fw=this.mv=!1;this.iv=this.$u=0;this.zj=this.tv=this.Dv=!1;this.ar=null;this.Dw=0;this.yg=this.Bw=null}x.ja("InputEvent",he); -he.prototype.copy=function(){var a=new he;a.W=this.W;a.Pz.assign(this.te);a.Vy.assign(this.ha);a.Tv=this.Tv;a.Xu=this.Xu;a.Yu=this.Yu;a.Hv=this.Hv;a.mv=this.mv;a.Fw=this.Fw;a.$u=this.$u;a.iv=this.iv;a.Dv=this.Dv;a.tv=this.tv;a.zj=this.zj;a.ar=this.ar;a.Dw=this.Dw;a.Bw=this.Bw;a.yg=this.yg;return a}; -he.prototype.toString=function(){var a="^";0!==this.zd&&(a+="M:"+this.zd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.gf&&(a+="C:"+this.gf);0!==this.Gl&&(a+="D:"+this.Gl);this.Mc&&(a+="h");this.bubbles&&(a+="b");null!==this.ha&&(a+="@"+this.ha.toString());return a};x.defineProperty(he,{h:"diagram"},function(){return this.W},function(a){this.W=a});x.defineProperty(he,{te:"viewPoint"},function(){return this.Pz},function(a){x.l(a,N,he,"viewPoint");this.Pz.assign(a)}); -x.defineProperty(he,{ha:"documentPoint"},function(){return this.Vy},function(a){x.l(a,N,he,"documentPoint");this.Vy.assign(a)});x.defineProperty(he,{zd:"modifiers"},function(){return this.Tv},function(a){this.Tv=a});x.defineProperty(he,{button:"button"},function(){return this.Xu},function(a){this.Xu=a;if(null===this.event)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}); +x.defineProperty(ge,{Ge:"startAngle"},function(){return this.Db},function(a){this.Db!==a&&(this.H&&x.pa(this,a),u&&x.p(a,ge,"startAngle"),a%=360,0>a&&(a+=360),this.Db=a,this.ib=!0)});x.defineProperty(ge,{Nf:"sweepAngle"},function(){return this.Ib},function(a){u&&x.p(a,ge,"sweepAngle");this.H&&x.pa(this,a);360a&&(a=-360);this.Ib=a;this.ib=!0});x.defineProperty(ge,{Tl:"isClockwiseArc"},function(){return this.Tn},function(a){this.H&&x.pa(this,a);this.Tn=a;this.ib=!0}); +x.defineProperty(ge,{xx:"isLargeArc"},function(){return this.Eo},function(a){this.H&&x.pa(this,a);this.Eo=a;this.ib=!0});x.defineProperty(ge,{xj:"xAxisRotation"},function(){return this.Fd},function(a){u&&x.p(a,ge,"xAxisRotation");a%=360;0>a&&(a+=360);this.H&&x.pa(this,a);this.Fd=a;this.ib=!0}); +function he(){this.W=null;this.Qz=(new N(0,0)).freeze();this.Wy=(new N(0,0)).freeze();this.Xu=this.Tv=0;this.Yu=1;this.Hv="";this.Fw=this.mv=!1;this.iv=this.$u=0;this.zj=this.tv=this.Dv=!1;this.ar=null;this.Dw=0;this.yg=this.Bw=null}x.ja("InputEvent",he); +he.prototype.copy=function(){var a=new he;a.W=this.W;a.Qz.assign(this.te);a.Wy.assign(this.ha);a.Tv=this.Tv;a.Xu=this.Xu;a.Yu=this.Yu;a.Hv=this.Hv;a.mv=this.mv;a.Fw=this.Fw;a.$u=this.$u;a.iv=this.iv;a.Dv=this.Dv;a.tv=this.tv;a.zj=this.zj;a.ar=this.ar;a.Dw=this.Dw;a.Bw=this.Bw;a.yg=this.yg;return a}; +he.prototype.toString=function(){var a="^";0!==this.zd&&(a+="M:"+this.zd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.gf&&(a+="C:"+this.gf);0!==this.Gl&&(a+="D:"+this.Gl);this.Mc&&(a+="h");this.bubbles&&(a+="b");null!==this.ha&&(a+="@"+this.ha.toString());return a};x.defineProperty(he,{h:"diagram"},function(){return this.W},function(a){this.W=a});x.defineProperty(he,{te:"viewPoint"},function(){return this.Qz},function(a){x.l(a,N,he,"viewPoint");this.Qz.assign(a)}); +x.defineProperty(he,{ha:"documentPoint"},function(){return this.Wy},function(a){x.l(a,N,he,"documentPoint");this.Wy.assign(a)});x.defineProperty(he,{zd:"modifiers"},function(){return this.Tv},function(a){this.Tv=a});x.defineProperty(he,{button:"button"},function(){return this.Xu},function(a){this.Xu=a;if(null===this.event)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}); x.defineProperty(he,{buttons:"buttons"},function(){return this.Yu},function(a){this.Yu=a});x.defineProperty(he,{key:"key"},function(){return this.Hv},function(a){this.Hv=a});x.defineProperty(he,{Il:"down"},function(){return this.mv},function(a){this.mv=a});x.defineProperty(he,{up:"up"},function(){return this.Fw},function(a){this.Fw=a});x.defineProperty(he,{gf:"clickCount"},function(){return this.$u},function(a){this.$u=a}); x.defineProperty(he,{Gl:"delta"},function(){return this.iv},function(a){this.iv=a});x.defineProperty(he,{Ot:"isMultiTouch"},function(){return this.Dv},function(a){this.Dv=a});x.defineProperty(he,{Mc:"handled"},function(){return this.tv},function(a){this.tv=a});x.defineProperty(he,{bubbles:"bubbles"},function(){return this.zj},function(a){this.zj=a});x.defineProperty(he,{event:"event"},function(){return this.ar},function(a){this.ar=a}); x.w(he,{nj:"isTouchEvent"},function(){var a=window.TouchEvent;return a&&this.event instanceof a?!0:(a=window.PointerEvent)&&this.event instanceof a&&"touch"===this.event.pointerType});x.w(he,{wk:"isMac"},function(){return x.wk});x.defineProperty(he,{timestamp:"timestamp"},function(){return this.Dw},function(a){this.Dw=a});x.defineProperty(he,{Mg:"targetDiagram"},function(){return this.Bw},function(a){this.Bw=a}); x.defineProperty(he,{He:"targetObject"},function(){return this.yg},function(a){this.yg=a});x.defineProperty(he,{control:"control"},function(){return 0!==(this.zd&1)},function(a){this.zd=a?this.zd|1:this.zd&-2});x.defineProperty(he,{shift:"shift"},function(){return 0!==(this.zd&4)},function(a){this.zd=a?this.zd|4:this.zd&-5});x.defineProperty(he,{alt:"alt"},function(){return 0!==(this.zd&2)},function(a){this.zd=a?this.zd|2:this.zd&-3}); x.defineProperty(he,{Zt:"meta"},function(){return 0!==(this.zd&8)},function(a){this.zd=a?this.zd|8:this.zd&-9});x.defineProperty(he,{left:"left"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?0===this.button:0!==(this.buttons&1)},function(a){this.buttons=a?this.buttons|1:this.buttons&-2}); x.defineProperty(he,{right:"right"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?2===this.button:0!==(this.buttons&2)},function(a){this.buttons=a?this.buttons|2:this.buttons&-3});x.defineProperty(he,{KL:"middle"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?1===this.button:0!==(this.buttons&4)},function(a){this.buttons=a?this.buttons|4:this.buttons&-5}); -function ie(){this.W=null;this.Vb="";this.cw=this.xw=null;this.Zu=!1}x.ja("DiagramEvent",ie);ie.prototype.copy=function(){var a=new ie;a.W=this.W;a.Vb=this.Vb;a.xw=this.xw;a.cw=this.cw;a.Zu=this.Zu;return a};ie.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.mB&&(a+=":"+this.mB.toString());null!==this.TA&&(a+="("+this.TA.toString()+")");return a};x.defineProperty(ie,{h:"diagram"},function(){return this.W},function(a){this.W=a}); -x.defineProperty(ie,{name:"name"},function(){return this.Vb},function(a){this.Vb=a});x.defineProperty(ie,{mB:"subject"},function(){return this.xw},function(a){this.xw=a});x.defineProperty(ie,{TA:"parameter"},function(){return this.cw},function(a){this.cw=a});x.defineProperty(ie,{cancel:"cancel"},function(){return this.Zu},function(a){this.Zu=a});function ve(){this.zq=we;this.Lm=this.Sv="";this.Wr=this.Xr=this.$r=this.as=this.Zr=this.W=this.fe=null}x.ja("ChangedEvent",ve);var xe; +function ie(){this.W=null;this.Vb="";this.cw=this.xw=null;this.Zu=!1}x.ja("DiagramEvent",ie);ie.prototype.copy=function(){var a=new ie;a.W=this.W;a.Vb=this.Vb;a.xw=this.xw;a.cw=this.cw;a.Zu=this.Zu;return a};ie.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.nB&&(a+=":"+this.nB.toString());null!==this.UA&&(a+="("+this.UA.toString()+")");return a};x.defineProperty(ie,{h:"diagram"},function(){return this.W},function(a){this.W=a}); +x.defineProperty(ie,{name:"name"},function(){return this.Vb},function(a){this.Vb=a});x.defineProperty(ie,{nB:"subject"},function(){return this.xw},function(a){this.xw=a});x.defineProperty(ie,{UA:"parameter"},function(){return this.cw},function(a){this.cw=a});x.defineProperty(ie,{cancel:"cancel"},function(){return this.Zu},function(a){this.Zu=a});function ve(){this.zq=we;this.Mm=this.Sv="";this.Wr=this.Xr=this.$r=this.as=this.Zr=this.W=this.fe=null}x.ja("ChangedEvent",ve);var xe; ve.Transaction=xe=x.s(ve,"Transaction",-1);var we;ve.Property=we=x.s(ve,"Property",0);var ye;ve.Insert=ye=x.s(ve,"Insert",1);var ze;ve.Remove=ze=x.s(ve,"Remove",2);ve.prototype.clear=ve.prototype.clear=function(){this.Wr=this.Xr=this.$r=this.as=this.Zr=this.W=this.fe=null}; -ve.prototype.copy=function(){var a=new ve;a.zq=this.zq;a.Sv=this.Sv;a.Lm=this.Lm;a.fe=this.fe;a.W=this.W;a.Zr=this.Zr;var b=this.as;a.as=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.$r;a.$r=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.Xr;a.Xr=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.Wr;a.Wr=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;return a}; -ve.prototype.toString=function(){var a="",a=this.Dc===xe?a+"* ":this.Dc===we?a+(null!==this.aa?"!m":"!d"):a+((null!==this.aa?"!m":"!d")+this.Dc);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.rf&&this.rf!==this.propertyName&&(a+=" "+this.rf);a+=": ";this.Dc===xe?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=la(this.object)),null!==this.oldValue&&(a+=" old: "+la(this.oldValue)),null!==this.Kg&&(a+=" "+this.Kg),null!==this.newValue&& -(a+=" new: "+la(this.newValue)),null!==this.Ig&&(a+=" "+this.Ig));return a};ve.prototype.getValue=ve.prototype.oa=function(a){return a?this.oldValue:this.newValue};ve.prototype.getParam=function(a){return a?this.Kg:this.Ig};ve.prototype.canUndo=ve.prototype.canUndo=function(){return null!==this.aa||null!==this.h?!0:!1};ve.prototype.undo=ve.prototype.undo=function(){this.canUndo()&&(null!==this.aa?this.aa.bn(this,!0):null!==this.h&&this.h.bn(this,!0))}; -ve.prototype.canRedo=ve.prototype.canRedo=function(){return null!==this.aa||null!==this.h?!0:!1};ve.prototype.redo=ve.prototype.redo=function(){this.canRedo()&&(null!==this.aa?this.aa.bn(this,!1):null!==this.h&&this.h.bn(this,!1))};x.defineProperty(ve,{aa:"model"},function(){return this.fe},function(a){this.fe=a});x.defineProperty(ve,{h:"diagram"},function(){return this.W},function(a){this.W=a}); -x.defineProperty(ve,{Dc:"change"},function(){return this.zq},function(a){u&&x.Ca(a,ve,ve,"change");this.zq=a});x.defineProperty(ve,{rf:"modelChange"},function(){return this.Sv},function(a){u&&x.g(a,"string",ve,"modelChange");this.Sv=a});x.defineProperty(ve,{propertyName:"propertyName"},function(){return this.Lm},function(a){u&&"string"!==typeof a&&x.g(a,"function",ve,"propertyName");this.Lm=a}); -x.w(ve,{qF:"isTransactionFinished"},function(){return this.zq===xe&&("CommittedTransaction"===this.Lm||"FinishedUndo"===this.Lm||"FinishedRedo"===this.Lm)});x.defineProperty(ve,{object:"object"},function(){return this.Zr},function(a){this.Zr=a});x.defineProperty(ve,{oldValue:"oldValue"},function(){return this.as},function(a){this.as=a});x.defineProperty(ve,{Kg:"oldParam"},function(){return this.$r},function(a){this.$r=a}); +ve.prototype.copy=function(){var a=new ve;a.zq=this.zq;a.Sv=this.Sv;a.Mm=this.Mm;a.fe=this.fe;a.W=this.W;a.Zr=this.Zr;var b=this.as;a.as=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.$r;a.$r=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.Xr;a.Xr=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;b=this.Wr;a.Wr=x.Ya(b)&&"function"===typeof b.Y?b.Y():b;return a}; +ve.prototype.toString=function(){var a="",a=this.Dc===xe?a+"* ":this.Dc===we?a+(null!==this.aa?"!m":"!d"):a+((null!==this.aa?"!m":"!d")+this.Dc);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.sf&&this.sf!==this.propertyName&&(a+=" "+this.sf);a+=": ";this.Dc===xe?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=la(this.object)),null!==this.oldValue&&(a+=" old: "+la(this.oldValue)),null!==this.Kg&&(a+=" "+this.Kg),null!==this.newValue&& +(a+=" new: "+la(this.newValue)),null!==this.Ig&&(a+=" "+this.Ig));return a};ve.prototype.getValue=ve.prototype.oa=function(a){return a?this.oldValue:this.newValue};ve.prototype.getParam=function(a){return a?this.Kg:this.Ig};ve.prototype.canUndo=ve.prototype.canUndo=function(){return null!==this.aa||null!==this.h?!0:!1};ve.prototype.undo=ve.prototype.undo=function(){this.canUndo()&&(null!==this.aa?this.aa.cn(this,!0):null!==this.h&&this.h.cn(this,!0))}; +ve.prototype.canRedo=ve.prototype.canRedo=function(){return null!==this.aa||null!==this.h?!0:!1};ve.prototype.redo=ve.prototype.redo=function(){this.canRedo()&&(null!==this.aa?this.aa.cn(this,!1):null!==this.h&&this.h.cn(this,!1))};x.defineProperty(ve,{aa:"model"},function(){return this.fe},function(a){this.fe=a});x.defineProperty(ve,{h:"diagram"},function(){return this.W},function(a){this.W=a}); +x.defineProperty(ve,{Dc:"change"},function(){return this.zq},function(a){u&&x.Ca(a,ve,ve,"change");this.zq=a});x.defineProperty(ve,{sf:"modelChange"},function(){return this.Sv},function(a){u&&x.g(a,"string",ve,"modelChange");this.Sv=a});x.defineProperty(ve,{propertyName:"propertyName"},function(){return this.Mm},function(a){u&&"string"!==typeof a&&x.g(a,"function",ve,"propertyName");this.Mm=a}); +x.w(ve,{rF:"isTransactionFinished"},function(){return this.zq===xe&&("CommittedTransaction"===this.Mm||"FinishedUndo"===this.Mm||"FinishedRedo"===this.Mm)});x.defineProperty(ve,{object:"object"},function(){return this.Zr},function(a){this.Zr=a});x.defineProperty(ve,{oldValue:"oldValue"},function(){return this.as},function(a){this.as=a});x.defineProperty(ve,{Kg:"oldParam"},function(){return this.$r},function(a){this.$r=a}); x.defineProperty(ve,{newValue:"newValue"},function(){return this.Xr},function(a){this.Xr=a});x.defineProperty(ve,{Ig:"newParam"},function(){return this.Wr},function(a){this.Wr=a}); -function L(a){1=d)return"[]";var e=new Ba;e.add("[ ");c&&1b||(x.ki(this.xf,b),lf(this,"nodeDataArray",ze,"nodeDataArray",this,a,null,b,null),this.Cu(a)))}}; -L.prototype.removeNodeDataCollection=function(a){if(x.isArray(a))for(var b=x.ab(a),c=0;cb||(x.ki(this.yf,b),lf(this,"nodeDataArray",ze,"nodeDataArray",this,a,null,b,null),this.Cu(a)))}}; +L.prototype.removeNodeDataCollection=function(a){if(x.isArray(a))for(var b=x.ab(a),c=0;cb&&(b=x.ab(a));x.cj(a,b,c);lf(this,"",ye,"",a,null,c,null,b)}; -L.prototype.removeArrayItem=function(a,b){void 0===b&&(b=-1);u&&(x.kt(a,L,"removeArrayItem:arr"),x.p(b,L,"removeArrayItem:idx"));a===this.xf&&x.k("Model.removeArrayItem should not be called on the Model.nodeDataArray");-1===b&&(b=x.ab(a)-1);var c=x.Wa(a,b);x.ki(a,b);lf(this,"",ze,"",a,c,null,b,null)};x.defineProperty(L,{zn:"nodeCategoryProperty"},function(){return this.Gm},function(a){var b=this.Gm;b!==a&&(mf(a,L,"nodeCategoryProperty"),this.Gm=a,this.j("nodeCategoryProperty",b,a))}); -L.prototype.getCategoryForNodeData=L.prototype.qA=function(a){if(null===a)return"";var b=this.Gm;if(""===b)return"";b=x.wb(a,b);if(void 0===b)return"";if("string"===typeof b)return b;x.k("getCategoryForNodeData found a non-string category for "+a+": "+b);return""}; -L.prototype.setCategoryForNodeData=L.prototype.Wx=function(a,b){x.g(b,"string",L,"setCategoryForNodeData:cat");if(null!==a){var c=this.Gm;if(""!==c)if(this.je(a)){var d=x.wb(a,c);void 0===d&&(d="");d!==b&&(x.Ra(a,c,b),lf(this,"nodeCategory",we,c,a,d,b))}else x.Ra(a,c,b)}}; -function X(a,b){2b&&(b=x.ab(a));x.cj(a,b,c);lf(this,"",ye,"",a,null,c,null,b)}; +L.prototype.removeArrayItem=function(a,b){void 0===b&&(b=-1);u&&(x.kt(a,L,"removeArrayItem:arr"),x.p(b,L,"removeArrayItem:idx"));a===this.yf&&x.k("Model.removeArrayItem should not be called on the Model.nodeDataArray");-1===b&&(b=x.ab(a)-1);var c=x.Wa(a,b);x.ki(a,b);lf(this,"",ze,"",a,c,null,b,null)};x.defineProperty(L,{zn:"nodeCategoryProperty"},function(){return this.Hm},function(a){var b=this.Hm;b!==a&&(mf(a,L,"nodeCategoryProperty"),this.Hm=a,this.j("nodeCategoryProperty",b,a))}); +L.prototype.getCategoryForNodeData=L.prototype.rA=function(a){if(null===a)return"";var b=this.Hm;if(""===b)return"";b=x.wb(a,b);if(void 0===b)return"";if("string"===typeof b)return b;x.k("getCategoryForNodeData found a non-string category for "+a+": "+b);return""}; +L.prototype.setCategoryForNodeData=L.prototype.Xx=function(a,b){x.g(b,"string",L,"setCategoryForNodeData:cat");if(null!==a){var c=this.Hm;if(""!==c)if(this.je(a)){var d=x.wb(a,c);void 0===d&&(d="");d!==b&&(x.Ra(a,c,b),lf(this,"nodeCategory",we,c,a,d,b))}else x.Ra(a,c,b)}}; +function X(a,b){2e||(x.ki(d,e),this.oh(a)&&(qf(this,b,a),lf(this,"linkLabelKeys",ze,c,a,b,null)))}else void 0!==d&&x.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; -x.defineProperty(X,{sh:"linkDataArray"},function(){return this.wf},function(a){var b=this.wf;if(b!==a){x.kt(a,X,"linkDataArray");this.hd.clear();for(var c=x.ab(a),d=0;de||(x.ki(d,e),this.oh(a)&&(qf(this,b,a),lf(this,"linkLabelKeys",ze,c,a,b,null)))}else void 0!==d&&x.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; +x.defineProperty(X,{sh:"linkDataArray"},function(){return this.xf},function(a){var b=this.xf;if(b!==a){x.kt(a,X,"linkDataArray");this.hd.clear();for(var c=x.ab(a),d=0;db)){x.ki(this.wf,b);lf(this,"linkDataArray",ze,"linkDataArray",this,a,null,b,null);b=this.Nl(a);qf(this,b,a);b=this.Ql(a);qf(this,b,a);var c=this.uk(a);if(x.isArray(c))for(var d=x.ab(c),e=0;eb)){x.ki(this.xf,b);lf(this,"linkDataArray",ze,"linkDataArray",this,a,null,b,null);b=this.Ol(a);qf(this,b,a);b=this.Rl(a);qf(this,b,a);var c=this.uk(a);if(x.isArray(c))for(var d=x.ab(c),e=0;ea.Ih&&x.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Ih;d&&b&&a.isEnabled&&a.kd("CommittingTransaction",c,a.gj);var e=0;if(0a.kj;e--)g=d.ia(e),null!== -g&&g.clear(),d.dd(e),a.pz=!0;e=a.xF;0===e&&(e=1);0=e&&(g=d.ia(0),null!==g&&g.clear(),d.dd(0),a.Xg--);d.add(b);a.Xg++;d.freeze();g=b}a.kd("CommittedTransaction",c,g)}else{a.Ji=!0;try{a.isEnabled&&null!==g&&(g.Lt=!0,g.undo())}finally{a.kd("RolledBackTransaction",c,g),a.Ji=!1}null!==g&&g.clear()}a.hv=null;return!0}if(a.isEnabled&&!b&&null!==g){a=e;c=g.$f;for(b=c.count-1;b>=a;b--)d=c.ia(b),null!==d&&d.undo(),c.Va(),c.dd(b);c.freeze()}return!1} -Ae.prototype.canUndo=Ae.prototype.canUndo=function(){if(!this.isEnabled||0=this.Ih&&!this.cz&&(a=a.h,null!==a&&!1===a.Oe||x.trace("Change not within a transaction: "+c.toString()))}}; -Ae.prototype.skipsEvent=function(a){if(null===a||0>a.Dc.value)return!0;a=a.object;if(a instanceof O){if(a=a.layer,null!==a&&a.Nc)return!0}else if(a instanceof bf&&a.Nc)return!0;return!1};x.w(Ae,{tJ:"models"},function(){return this.xz.i});x.defineProperty(Ae,{isEnabled:"isEnabled"},function(){return this.bf},function(a){this.bf=a});x.w(Ae,{yG:"transactionToUndo"},function(){return 0<=this.kj&&this.kj<=this.history.count-1?this.history.ia(this.kj):null}); -x.w(Ae,{xG:"transactionToRedo"},function(){return this.kja.Ih&&x.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Ih;d&&b&&a.isEnabled&&a.kd("CommittingTransaction",c,a.gj);var e=0;if(0a.kj;e--)g=d.ia(e),null!== +g&&g.clear(),d.dd(e),a.qz=!0;e=a.yF;0===e&&(e=1);0=e&&(g=d.ia(0),null!==g&&g.clear(),d.dd(0),a.Xg--);d.add(b);a.Xg++;d.freeze();g=b}a.kd("CommittedTransaction",c,g)}else{a.Ji=!0;try{a.isEnabled&&null!==g&&(g.Lt=!0,g.undo())}finally{a.kd("RolledBackTransaction",c,g),a.Ji=!1}null!==g&&g.clear()}a.hv=null;return!0}if(a.isEnabled&&!b&&null!==g){a=e;c=g.$f;for(b=c.count-1;b>=a;b--)d=c.ia(b),null!==d&&d.undo(),c.Va(),c.dd(b);c.freeze()}return!1} +Ae.prototype.canUndo=Ae.prototype.canUndo=function(){if(!this.isEnabled||0=this.Ih&&!this.dz&&(a=a.h,null!==a&&!1===a.Oe||x.trace("Change not within a transaction: "+c.toString()))}}; +Ae.prototype.skipsEvent=function(a){if(null===a||0>a.Dc.value)return!0;a=a.object;if(a instanceof O){if(a=a.layer,null!==a&&a.Nc)return!0}else if(a instanceof bf&&a.Nc)return!0;return!1};x.w(Ae,{tJ:"models"},function(){return this.yz.i});x.defineProperty(Ae,{isEnabled:"isEnabled"},function(){return this.bf},function(a){this.bf=a});x.w(Ae,{zG:"transactionToUndo"},function(){return 0<=this.kj&&this.kj<=this.history.count-1?this.history.ia(this.kj):null}); +x.w(Ae,{yG:"transactionToRedo"},function(){return this.kjb.th||(b.scale=a))};ua.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.jy);x.p(a,ua,"canDecreaseZoom:factor");var b=this.h;if(null===b||b.zl!==Nf)return!1;a*=b.scale;return ab.th?!1:b.Rw}; -ua.prototype.increaseZoom=function(a){void 0===a&&(a=this.jy);x.p(a,ua,"increaseZoom:factor");var b=this.h;null!==b&&b.zl===Nf&&(a*=b.scale,ab.th||(b.scale=a))};ua.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.jy);x.p(a,ua,"canIncreaseZoom:factor");var b=this.h;if(null===b||b.zl!==Nf)return!1;a*=b.scale;return ab.th?!1:b.Rw};ua.prototype.resetZoom=function(a){void 0===a&&(a=this.$w);x.p(a,ua,"resetZoom:newscale");var b=this.h;null===b||ab.th||(b.scale=a)}; -ua.prototype.canResetZoom=function(a){void 0===a&&(a=this.$w);x.p(a,ua,"canResetZoom:newscale");var b=this.h;return null===b||ab.th?!1:b.Rw};ua.prototype.zoomToFit=function(){var a=this.h;if(null!==a){var b=a.scale,c=a.position;b===this.Sz&&!isNaN(this.qz)&&a.Ec.O(this.Rz)?(a.scale=this.qz,a.position=this.SC,this.Sz=NaN,this.Rz=Q.sy):(this.qz=b,this.SC=c.copy(),a.zoomToFit(),this.Sz=a.scale,this.Rz=a.Ec.copy())}};ua.prototype.canZoomToFit=function(){var a=this.h;return null===a?!1:a.Rw}; -ua.prototype.scrollToPart=function(a){void 0===a&&(a=null);null!==a&&x.l(a,D,ua,"part");var b=this.h;if(null!==b){if(null===a){try{null!==this.$j&&(this.$j.next()?a=this.$j.value:this.$j=null)}catch(c){}null===a&&(0b.th||(b.scale=a))};ua.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.ky);x.p(a,ua,"canDecreaseZoom:factor");var b=this.h;if(null===b||b.zl!==Nf)return!1;a*=b.scale;return ab.th?!1:b.Rw}; +ua.prototype.increaseZoom=function(a){void 0===a&&(a=this.ky);x.p(a,ua,"increaseZoom:factor");var b=this.h;null!==b&&b.zl===Nf&&(a*=b.scale,ab.th||(b.scale=a))};ua.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.ky);x.p(a,ua,"canIncreaseZoom:factor");var b=this.h;if(null===b||b.zl!==Nf)return!1;a*=b.scale;return ab.th?!1:b.Rw};ua.prototype.resetZoom=function(a){void 0===a&&(a=this.ax);x.p(a,ua,"resetZoom:newscale");var b=this.h;null===b||ab.th||(b.scale=a)}; +ua.prototype.canResetZoom=function(a){void 0===a&&(a=this.ax);x.p(a,ua,"canResetZoom:newscale");var b=this.h;return null===b||ab.th?!1:b.Rw};ua.prototype.zoomToFit=function(){var a=this.h;if(null!==a){var b=a.scale,c=a.position;b===this.Tz&&!isNaN(this.rz)&&a.Ec.O(this.Sz)?(a.scale=this.rz,a.position=this.TC,this.Tz=NaN,this.Sz=Q.ty):(this.rz=b,this.TC=c.copy(),a.zoomToFit(),this.Tz=a.scale,this.Sz=a.Ec.copy())}};ua.prototype.canZoomToFit=function(){var a=this.h;return null===a?!1:a.Rw}; +ua.prototype.scrollToPart=function(a){void 0===a&&(a=null);null!==a&&x.l(a,D,ua,"part");var b=this.h;if(null!==b){if(null===a){try{null!==this.$j&&(this.$j.next()?a=this.$j.value:this.$j=null)}catch(c){}null===a&&(0b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Wf[0])c=a.Wf[0],d=a.Wf[1];else return;this.doCancel();if(a.yp("hasGestureZoom")){a.dz=!0;a.dD=a.scale;var e=Qf(a),g=c,h=g.clientX-e.x,c=g.clientY-e.y,g=d,d=g.clientX-e.x,g=g.clientY-e.y;x.A(e);e=d-h;c=g-c;e=Math.sqrt(e*e+c*c);a.zD=e;b.preventDefault();b.cancelBubble=!0}}}; -cf.prototype.standardPinchZoomMove=function(){var a=this.h;if(null!==a){var b=a.S.event;this.doCancel();var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Wf[0])c=a.Wf[0],d=a.Wf[1];else return;if(a.yp("hasGestureZoom")&&a.dz){var e=Qf(a),g=c,c=g.clientX-e.x,h=g.clientY-e.y,g=d,d=g.clientX-e.x,g=g.clientY-e.y;x.A(e);var e=d-c,k=g-h,e=Math.sqrt(e*e+k*k)/a.zD,c=new N((Math.min(d,c)+Math.max(d,c))/2,(Math.min(g, -h)+Math.max(g,h))/2),h=a.dD*e,d=a.zb;h!==a.scale&&d.canResetZoom(h)&&(e=a.fm,a.fm=c,d.resetZoom(h),a.fm=e);b.preventDefault();b.cancelBubble=!0}}};cf.prototype.doKeyDown=function(){var a=this.h;null!==a&&"Esc"===a.S.key&&this.doCancel()};cf.prototype.doKeyUp=function(){};cf.prototype.startTransaction=cf.prototype.Wb=function(a){void 0===a&&(a=this.name);this.Of=null;var b=this.h;return null===b?!1:b.Wb(a)}; +cf.prototype.standardPinchZoomStart=function(){var a=this.h;if(null!==a){var b=a.S.event,c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Wf[0])c=a.Wf[0],d=a.Wf[1];else return;this.doCancel();if(a.yp("hasGestureZoom")){a.ez=!0;a.eD=a.scale;var e=Qf(a),g=c,h=g.clientX-e.x,c=g.clientY-e.y,g=d,d=g.clientX-e.x,g=g.clientY-e.y;x.A(e);e=d-h;c=g-c;e=Math.sqrt(e*e+c*c);a.AD=e;b.preventDefault();b.cancelBubble=!0}}}; +cf.prototype.standardPinchZoomMove=function(){var a=this.h;if(null!==a){var b=a.S.event;this.doCancel();var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Wf[0])c=a.Wf[0],d=a.Wf[1];else return;if(a.yp("hasGestureZoom")&&a.ez){var e=Qf(a),g=c,c=g.clientX-e.x,h=g.clientY-e.y,g=d,d=g.clientX-e.x,g=g.clientY-e.y;x.A(e);var e=d-c,k=g-h,e=Math.sqrt(e*e+k*k)/a.AD,c=new N((Math.min(d,c)+Math.max(d,c))/2,(Math.min(g, +h)+Math.max(g,h))/2),h=a.eD*e,d=a.zb;h!==a.scale&&d.canResetZoom(h)&&(e=a.gm,a.gm=c,d.resetZoom(h),a.gm=e);b.preventDefault();b.cancelBubble=!0}}};cf.prototype.doKeyDown=function(){var a=this.h;null!==a&&"Esc"===a.S.key&&this.doCancel()};cf.prototype.doKeyUp=function(){};cf.prototype.startTransaction=cf.prototype.Wb=function(a){void 0===a&&(a=this.name);this.Of=null;var b=this.h;return null===b?!1:b.Wb(a)}; cf.prototype.stopTransaction=cf.prototype.Ck=function(){var a=this.h;return null===a?!1:null===this.Of?a.Zp():a.Nd(this.Of)}; -cf.prototype.standardMouseSelect=function(){var a=this.h;if(null!==a&&a.yf){var b=a.S,c=a.yt(b.ha,!1);if(null!==c)if(x.wk?b.Zt:b.control){a.Ja("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&(b.lb=!b.lb);a.Ja("ChangedSelection")}else if(b.shift){if(!c.lb){a.Ja("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&(b.lb=!0);a.Ja("ChangedSelection")}}else{if(!c.lb){for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&a.select(b)}}else!b.left||(x.wk?b.Zt:b.control)|| +cf.prototype.standardMouseSelect=function(){var a=this.h;if(null!==a&&a.zf){var b=a.S,c=a.yt(b.ha,!1);if(null!==c)if(x.wk?b.Zt:b.control){a.Ja("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&(b.lb=!b.lb);a.Ja("ChangedSelection")}else if(b.shift){if(!c.lb){a.Ja("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&(b.lb=!0);a.Ja("ChangedSelection")}}else{if(!c.lb){for(b=c;null!==b&&!b.canSelect();)b=b.Xa;null!==b&&a.select(b)}}else!b.left||(x.wk?b.Zt:b.control)|| b.shift||a.Ww()}};cf.prototype.standardMouseClick=function(a,b){void 0===a&&(a=null);void 0===b&&(b=function(a){return!a.layer.Nc});var c=this.h;if(null!==c){var d=c.S,e=c.ne(d.ha,a,b);d.He=e;Rf(e,d,c)}}; function Rf(a,b,c){var d=0;b.left?d=1===b.gf?1:2===b.gf?2:1:b.right&&1===b.gf&&(d=3);var e="";if(null!==a){switch(d){case 1:e="ObjectSingleClicked";break;case 2:e="ObjectDoubleClicked";break;case 3:e="ObjectContextClicked"}0!==d&&c.Ja(e,a)}else{switch(d){case 1:e="BackgroundSingleClicked";break;case 2:e="BackgroundDoubleClicked";break;case 3:e="BackgroundContextClicked"}0!==d&&c.Ja(e)}if(null!==a)for(b.Mc=!1;null!==a;){c=null;switch(d){case 1:c=a.click;break;case 2:c=a.tt?a.tt:a.click;break;case 3:c= -a.aA}if(null!==c&&(c(b,a),b.Mc))break;a=a.V}else{a=null;switch(d){case 1:a=c.click;break;case 2:a=c.tt?c.tt:c.click;break;case 3:a=c.aA}null!==a&&a(b)}} -cf.prototype.standardMouseOver=function(){var a=this.h;if(null!==a){var b=a.S;if(null!==b.h&&!0!==a.$a.Bc){var c=a.xb;a.xb=!0;var d=a.ne(b.ha,null,null);b.He=d;var e=!1;if(d!==a.Yn){var g=a.Yn,h=g;a.Yn=d;this.doCurrentObjectChanged(g,d);for(b.Mc=!1;null!==g;){var k=g.au;if(null!==k){if(d===g)break;if(null!==d&&d.Tl(g))break;k(b,g,d);e=!0;if(b.Mc)break}g=g.V}g=h;for(b.Mc=!1;null!==d;){k=d.$t;if(null!==k){if(g===d)break;if(null!==g&&g.Tl(d))break;k(b,d,g);e=!0;if(b.Mc)break}d=d.V}d=a.Yn}if(null!==d){g= -d;for(k="";null!==g;){k=g.cursor;if(""!==k)break;g=g.V}a.gc=k;b.Mc=!1;for(g=d;null!==g;){k=g.LA;if(null!==k&&(k(b,g),e=!0,b.Mc))break;g=g.V}}else a.gc="",k=a.LA,null!==k&&(k(b),e=!0);e&&a.Ee();a.xb=c}}};cf.prototype.doCurrentObjectChanged=function(){}; -cf.prototype.standardMouseWheel=function(){var a=this.h;if(null!==a){var b=a.S,c=b.Gl;if(0!==c&&a.Ec.G()){var d=a.zb,e=a.vb.bu;if((e===cg&&!b.shift||e===dg&&b.control)&&(0e||Math.abs(b.y-a.y)>d};x.w(cf,{h:"diagram"},function(){return this.W});x.defineProperty(cf,{name:"name"},function(){return this.Vb},function(a){x.g(a,"string",cf,"name");this.Vb=a}); -x.defineProperty(cf,{isEnabled:"isEnabled"},function(){return this.bf},function(a){x.g(a,"boolean",cf,"isEnabled");this.bf=a});x.defineProperty(cf,{va:"isActive"},function(){return this.EC},function(a){x.g(a,"boolean",cf,"isActive");this.EC=a});x.defineProperty(cf,{Of:"transactionResult"},function(){return this.SD},function(a){null!==a&&x.g(a,"string",cf,"transactionResult");this.SD=a}); -function Mf(){0e&&(e=k),l>g&&(g=l))}}Infinity===c?b.n(0,0,0,0):b.n(c,d,e-c,g-d)} -function Ig(a,b){if(null===a.pc){var c=a.h;if(!(null===c||b&&(c.kb||c.Ff))&&null!==a.ic){var d=c.qa;d.isEnabled&&d.nF?null!==d.gj&&0c.ta)){var d=a.h;if(null!==d&&!d.kb&&(d=a.Ti,null!==d)){var e=null,g=null;null===c.Z&&(e=Sg(a,c.m(0),!1),null!==e&&(g=e.ea));var h=null,k=null;null===c.fa&&(h=Sg(a,c.m(c.ta-1),!0),null!==h&&(k=h.ea));d.isValidLink(g,e,k,h)?b?(c.bo=c.m(0).copy(),c.ho=c.m(c.ta-1).copy(),c.iq=!1,c.Z=g,null!==e&&(c.bg=e.Ad),c.fa=k,null!==h&&(c.Og=h.Ad)):Tg(d,g,e,k,h):Tg(d,null,null,null,null)}}}Mf.prototype.doDragOver=function(){}; -function Ug(a,b){var c=a.h;if(null!==c){a.ij&&Og(a,!0);ng(a);var d=Pg(c,b,null,function(b){return!Mg(a,b)}),e=c.S;e.He=d;if(null!==d){e.Mc=!1;for(var g=d;null!==g;){var h=g.IA;if(null!==h&&(h(e,g),e.Mc))break;g=Rg(g)}}else h=c.IA,null!==h&&h(e);if(a.va||null!==gg)if(a.doDropOnto(b,d),a.va||null!==gg)for(d=c.selection.i;d.next();)e=d.value,e instanceof E&&Vg(c,e.ba)}}Mf.prototype.doDropOnto=function(){}; -Mf.prototype.doMouseMove=function(){if(this.va){var a=this.h;if(null!==a&&null!==this.kn&&null!==this.ic){var b=!1,c=!1;this.mayCopy()?(b=!0,a.gc="copy",Ig(this,!1),fg(this,this.pc),Jg(this,this.pc,!1),og(this,this.pc)):this.mayMove()?(c=!0,a.gc="default",rg(this),Jg(this,this.ic,!0)):this.mayDragOut()?(a.gc="no-drop",Ig(this,!1),Jg(this,this.pc,!1)):rg(this);Ng(this,a.S.ha,c,b)}}}; -Mf.prototype.doMouseUp=function(){if(this.va){var a=this.h;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.pc?(rg(this),Ig(this,!0),fg(this,this.pc),Jg(this,this.pc,!1),og(this,this.pc),null!==this.pc&&a.cG(this.pc.vj())):(b=!0,rg(this),this.mayMove()&&(Jg(this,this.ic,!0),this.tw=!1,Ng(this,a.S.ha,!0,!1),this.tw=!0));this.Xq=!0;Ug(this,a.S.ha);if(this.va){this.pc=null;if(b&&null!==this.ic)for(b=this.ic.i;b.next();){var d=b.key;d instanceof E&&(d=d.Xa,null===d||null===d.placeholder||this.ic.contains(d)|| -d.sE&&d.T())}a.xc();og(this,this.ic);this.Of=c?"Copy":"Move";a.Ja(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};Mf.prototype.mayCopy=function(){if(!this.kF)return!1;var a=this.h;if(null===a||a.kb||a.Ff||!a.ep||!a.nk||(x.wk?!a.S.alt:!a.S.control))return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canCopy())return!0}return null!==this.ld&&this.ij&&this.ld.canCopy()?!0:!1}; -Mf.prototype.mayDragOut=function(){if(!this.kF)return!1;var a=this.h;if(null===a||!a.ft||!a.nk||a.xl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canCopy())return!0}return null!==this.ld&&this.ij&&this.ld.canCopy()?!0:!1};Mf.prototype.mayMove=function(){var a=this.h;if(null===a||a.kb||!a.xl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canMove())return!0}return null!==this.ld&&this.ij&&this.ld.canMove()?!0:!1};var pg=new J(Mf),gg=null,hg=null; -Mf.prototype.mayDragIn=function(){var a=this.h;if(null===a||!a.cE||a.kb||a.Ff||!a.ep)return!1;var b=gg;return null===b||b.h.aa.El!==a.aa.El?!1:!0};Mf.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.h;a.$a.uj();Wg(a);a=gg;null!==a&&(a.h.gc="copy")}};Mf.prototype.doSimulatedDragLeave=function(){var a=gg;null!==a&&a.doSimulatedDragOut();this.doCancel()}; +function Ug(a,b){var c=a.h;if(null!==c){a.ij&&Og(a,!0);ng(a);var d=Pg(c,b,null,function(b){return!Mg(a,b)}),e=c.S;e.He=d;if(null!==d){e.Mc=!1;for(var g=d;null!==g;){var h=g.JA;if(null!==h&&(h(e,g),e.Mc))break;g=Rg(g)}}else h=c.JA,null!==h&&h(e);if(a.va||null!==gg)if(a.doDropOnto(b,d),a.va||null!==gg)for(d=c.selection.i;d.next();)e=d.value,e instanceof E&&Vg(c,e.ba)}}Mf.prototype.doDropOnto=function(){}; +Mf.prototype.doMouseMove=function(){if(this.va){var a=this.h;if(null!==a&&null!==this.ln&&null!==this.ic){var b=!1,c=!1;this.mayCopy()?(b=!0,a.gc="copy",Ig(this,!1),fg(this,this.pc),Jg(this,this.pc,!1),og(this,this.pc)):this.mayMove()?(c=!0,a.gc="default",rg(this),Jg(this,this.ic,!0)):this.mayDragOut()?(a.gc="no-drop",Ig(this,!1),Jg(this,this.pc,!1)):rg(this);Ng(this,a.S.ha,c,b)}}}; +Mf.prototype.doMouseUp=function(){if(this.va){var a=this.h;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.pc?(rg(this),Ig(this,!0),fg(this,this.pc),Jg(this,this.pc,!1),og(this,this.pc),null!==this.pc&&a.dG(this.pc.vj())):(b=!0,rg(this),this.mayMove()&&(Jg(this,this.ic,!0),this.tw=!1,Ng(this,a.S.ha,!0,!1),this.tw=!0));this.Xq=!0;Ug(this,a.S.ha);if(this.va){this.pc=null;if(b&&null!==this.ic)for(b=this.ic.i;b.next();){var d=b.key;d instanceof E&&(d=d.Xa,null===d||null===d.placeholder||this.ic.contains(d)|| +d.tE&&d.T())}a.xc();og(this,this.ic);this.Of=c?"Copy":"Move";a.Ja(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};Mf.prototype.mayCopy=function(){if(!this.lF)return!1;var a=this.h;if(null===a||a.kb||a.Ff||!a.ep||!a.nk||(x.wk?!a.S.alt:!a.S.control))return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canCopy())return!0}return null!==this.ld&&this.ij&&this.ld.canCopy()?!0:!1}; +Mf.prototype.mayDragOut=function(){if(!this.lF)return!1;var a=this.h;if(null===a||!a.ft||!a.nk||a.xl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canCopy())return!0}return null!==this.ld&&this.ij&&this.ld.canCopy()?!0:!1};Mf.prototype.mayMove=function(){var a=this.h;if(null===a||a.kb||!a.xl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.$d()&&b.canMove())return!0}return null!==this.ld&&this.ij&&this.ld.canMove()?!0:!1};var pg=new J(Mf),gg=null,hg=null; +Mf.prototype.mayDragIn=function(){var a=this.h;if(null===a||!a.dE||a.kb||a.Ff||!a.ep)return!1;var b=gg;return null===b||b.h.aa.El!==a.aa.El?!1:!0};Mf.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.h;a.$a.uj();Wg(a);a=gg;null!==a&&(a.h.gc="copy")}};Mf.prototype.doSimulatedDragLeave=function(){var a=gg;null!==a&&a.doSimulatedDragOut();this.doCancel()}; Mf.prototype.doSimulatedDragOver=function(){var a=this.h;if(null!==a){var b=gg;null!==b&&null!==b.ic&&this.mayDragIn()&&(a.gc="copy",Xg(this,b.ic.vj(),!1),Jg(this,this.pc,!1),Ng(this,a.S.ha,!1,!0))}}; -Mf.prototype.doSimulatedDrop=function(){var a=this.h;if(null!==a){var b=gg;if(null!==b){var c=b.h;b.Xq=!0;rg(this);this.mayDragIn()&&(this.Wb("Drop"),Xg(this,b.ic.vj(),!0),Jg(this,this.pc,!1),null!==this.pc&&a.cG(this.pc.vj()),Ug(this,a.S.ha),a.xc(),b=a.selection,null!==this.pc?this.Of="ExternalCopy":b=new K(D),this.pc=null,a.focus(),a.Ja("ExternalObjectsDropped",b,c),this.Ck())}}}; -function Xg(a,b,c){if(null===a.pc){var d=a.h;if(null!==d&&!d.kb&&!d.Ff){d.xb=!c;d.Pn=!c;a.Bk=d.S.ha;d=d.mp(b,d,!0);c=x.kg();wg(b,c);var e=c.x+c.width/2,g=c.y+c.height/2;x.qc(c);var h=a.vw;c=new ra(D);var k=x.P();for(b=b.i;b.next();){var l=b.value;if(l.$d()&&l.canCopy()){var m=l.location,l=d.oa(l);k.n(h.x-(e-m.x),h.y-(g-m.y));l.location=k;l.Af();c.add(l,kg(k))}}x.A(k);for(d=d.i;d.next();)e=d.value,e instanceof G&&e.canCopy()&&c.add(e,kg());a.pc=c;eg(a,c.vj());null!==a.ld&&(c=a.ld,d=c.Dn,c.Wl(a.Bk.x- -(d.x+d.width/2),a.Bk.y-(d.y+d.height/2)))}}}Mf.prototype.doSimulatedDragOut=function(){var a=this.h;null!==a&&(this.mayCopy()||this.mayMove()?a.gc="":a.gc="no-drop")};function lg(a){this.point=a;this.iG=Q.Ek}x.ja("DraggingInfo",lg);function Kg(a,b,c){this.Pc=a;this.info=b;this.CI=c} -function dh(){0=d&&(d=.1);for(var e=this,g=b.mn(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,g=g.i;g.next();){var h=g.value,k=h.ea;if(k instanceof E){var l=h.gb(dc,x.P()),m=c.x-l.x,n=c.y-l.y;x.A(l);l=m*m+n*n;lc){if(null!==this.yc&&a===this.yh&&b===this.zh)return!0;var d=b.Ad;null===d&&(d="");if(a.jx(d).count>=c)return!1}return!0}; -dh.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.Gp;if(this.h.cb===this&&(null!==a.layer&&!a.layer.gt||!0!==b.qG))return!1;var c=b.iK;if(Infinity>c){if(null!==this.yc&&a===this.Ah&&b===this.Bh)return!0;var d=b.Ad;null===d&&(d="");if(a.Fg(d).count>=c)return!1}return!0};dh.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.ea,d=b.ea;return null!==c&&c===d}; +dh.prototype.findValidLinkablePort=function(a,b){if(null===a)return null;var c=a.ea;if(!(c instanceof E))return null;for(;null!==a;){var d=b?a.rG:a.VE;if(!0===d&&(null!==a.Ad||a instanceof E)&&(b?this.isValidTo(c,a):this.isValidFrom(c,a)))return a;if(!1===d)break;a=a.V}return null}; +dh.prototype.findTargetPort=function(a){var b=this.h,c=b.S.ha,d=this.HF;0>=d&&(d=.1);for(var e=this,g=b.nn(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,g=g.i;g.next();){var h=g.value,k=h.ea;if(k instanceof E){var l=h.gb(dc,x.P()),m=c.x-l.x,n=c.y-l.y;x.A(l);l=m*m+n*n;lc){if(null!==this.yc&&a===this.yh&&b===this.zh)return!0;var d=b.Ad;null===d&&(d="");if(a.kx(d).count>=c)return!1}return!0}; +dh.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.Gp;if(this.h.cb===this&&(null!==a.layer&&!a.layer.gt||!0!==b.rG))return!1;var c=b.iK;if(Infinity>c){if(null!==this.yc&&a===this.Ah&&b===this.Bh)return!0;var d=b.Ad;null===d&&(d="");if(a.Fg(d).count>=c)return!1}return!0};dh.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.ea,d=b.ea;return null!==c&&c===d}; dh.prototype.isLinked=function(a,b){if(null===a||null===b)return!1;var c=a.ea;if(!(c instanceof E))return!1;var d=a.Ad;null===d&&(d="");var e=b.ea;if(!(e instanceof E))return!1;var g=b.Ad;null===g&&(g="");for(e=e.Fg(g);e.next();)if(g=e.value,g.Z===c&&g.bg===d)return!0;return!1}; -dh.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.tI&&d.hK||!this.isInSameNode(b,d))&&(b.sI&&d.gK||!this.isLinked(b,d)))||null!==this.yc&&(null!==a&&this.isLabelDependentOnLink(a,this.yc)||null!==c&&this.isLabelDependentOnLink(c,this.yc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.yc))return!1;if(null!==a){var e=a.Cx;if(null!==e&&!e(a,b,c,d,this.yc))return!1}if(null!== -c&&(e=c.Cx,null!==e&&!e(a,b,c,d,this.yc)))return!1;e=this.Cx;return null!==e?e(a,b,c,d,this.yc):!0};dh.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.Pd;if(null===c)return!1;if(c===b)return!0;var d=new K(E);d.add(a);return eh(this,c,b,d)};function eh(a,b,c,d){if(b===c)return!0;var e=b.Z;if(null!==e&&e.Ef&&(d.add(e),eh(a,e.Pd,c,d)))return!0;b=b.fa;return null!==b&&b.Ef&&(d.add(b),eh(a,b.Pd,c,d))?!0:!1} +dh.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.tI&&d.hK||!this.isInSameNode(b,d))&&(b.sI&&d.gK||!this.isLinked(b,d)))||null!==this.yc&&(null!==a&&this.isLabelDependentOnLink(a,this.yc)||null!==c&&this.isLabelDependentOnLink(c,this.yc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.yc))return!1;if(null!==a){var e=a.Dx;if(null!==e&&!e(a,b,c,d,this.yc))return!1}if(null!== +c&&(e=c.Dx,null!==e&&!e(a,b,c,d,this.yc)))return!1;e=this.Dx;return null!==e?e(a,b,c,d,this.yc):!0};dh.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.Pd;if(null===c)return!1;if(c===b)return!0;var d=new K(E);d.add(a);return eh(this,c,b,d)};function eh(a,b,c,d){if(b===c)return!0;var e=b.Z;if(null!==e&&e.Ef&&(d.add(e),eh(a,e.Pd,c,d)))return!0;b=b.fa;return null!==b&&b.Ef&&(d.add(b),eh(a,b.Pd,c,d))?!0:!1} dh.prototype.isValidCycle=function(a,b,c){void 0===c&&(c=null);if(null===a||null===b)return this.Gp;var d=this.h.oK;if(d!==fh){if(d===gh){if(null!==c&&!c.Oc)return!0;for(d=b.ce;d.next();){var e=d.value;if(e!==c&&e.Oc&&e.fa===b)return!1}return!hh(this,a,b,c,!0)}if(d===ih){if(null!==c&&!c.Oc)return!0;for(d=a.ce;d.next();)if(e=d.value,e!==c&&e.Oc&&e.Z===a)return!1;return!hh(this,a,b,c,!0)}if(d===jh)return a===b?a=!0:(d=new K(E),d.add(b),a=kh(this,d,a,b,c)),!a;if(d===lh)return!hh(this,a,b,c,!1);if(d=== mh)return a===b?a=!0:(d=new K(E),d.add(b),a=nh(this,d,a,b,c)),!a}return!0};function hh(a,b,c,d,e){if(b===c)return!0;if(null===b||null===c)return!1;for(var g=b.ce;g.next();){var h=g.value;if(h!==d&&(!e||h.Oc)&&h.fa===b&&(h=h.Z,h!==b&&hh(a,h,c,d,e)))return!0}return!1}function kh(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var g=c.ce;g.next();){var h=g.value;if(h!==e&&h.fa===c&&(h=h.Z,h!==c&&kh(a,b,h,d,e)))return!0}return!1} -function nh(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var g=c.ce;g.next();){var h=g.value;if(h!==e){var k=h.Z,h=h.fa,k=k===c?h:k;if(k!==c&&nh(a,b,k,d,e))return!0}}return!1}x.defineProperty(dh,{Cx:"linkValidation"},function(){return this.gl},function(a){null!==a&&x.g(a,"function",dh,"linkValidation");this.gl=a});x.defineProperty(dh,{Mx:"portTargeted"},function(){return this.oD},function(a){null!==a&&x.g(a,"function",dh,"portTargeted");this.oD=a}); -function va(){0b.At+1&&cb.At+1&&c=a.x)c=0>=a.y?c+225:1<=a.y?c+135:c+180;else if(1<=a.x)0>=a.y?c+=315:1<=a.y&&(c+=45);else if(0>=a.y)c+=270;else if(1<=a.y)c+=90;else break a;0>c?c+=360:360<=c&&(c-=360);b.cursor=22.5>c?"e-resize":67.5>c?"se-resize":112.5>c?"s-resize":157.5>c?"sw-resize":202.5>c?"w-resize":247.5>c?"nw-resize":292.5>c?"n-resize":337.5>c?"ne-resize":"e-resize"}else if(b instanceof H)for(b=b.elements;b.next();)Eh(a, b.value,c)}x.defineProperty(Dh,{Gt:"handleArchetype"},function(){return this.Zk},function(a){null!==a&&x.l(a,O,Dh,"handleArchetype");this.Zk=a});x.w(Dh,{handle:"handle"},function(){return this.cc});x.defineProperty(Dh,{oc:"adornedObject"},function(){return this.Kb},function(a){null!==a&&x.l(a,O,Dh,"adornedObject");this.Kb=a});Dh.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.h;return null!==a&&!a.kb&&a.ht&&a.S.left?null!==this.findToolHandleAt(a.Fc.ha,this.name)?!0:!1:!1}; -Dh.prototype.doActivate=function(){var a=this.h;null!==a&&(this.cc=this.findToolHandleAt(a.Fc.ha,this.name),null!==this.cc&&(this.Kb=this.cc.ea.oc,this.Bz.set(this.Kb.ea.location),this.Yv.set(this.Kb.Ba),this.$y=this.computeCellSize(),this.bz=this.computeMinSize(),this.az=this.computeMaxSize(),a.Ye=!0,this.bD=a.$a.isEnabled,a.$a.isEnabled=!1,this.Wb(this.name),this.va=!0))};Dh.prototype.doDeactivate=function(){var a=this.h;null!==a&&(this.Ck(),this.Kb=this.cc=null,this.va=a.Ye=!1,a.$a.isEnabled=this.bD)}; -Dh.prototype.doCancel=function(){this.Kb.Ba=this.Yv;this.Kb.ea.location=this.Bz;this.stopTool()};Dh.prototype.doMouseMove=function(){var a=this.h;if(this.va&&null!==a){var b=this.bz,c=this.az,d=this.$y,e=this.Kb.XE(a.S.ha,x.P()),g=Hh;this.Kb instanceof Y&&(g=Ih(this.Kb));b=this.computeResize(e,this.cc.alignment,b,c,d,!(g===Jh||g===Kh||a.S.shift));this.resize(b);a.dg();x.A(e)}}; -Dh.prototype.doMouseUp=function(){var a=this.h;if(this.va&&null!==a){var b=this.bz,c=this.az,d=this.$y,e=this.Kb.XE(a.S.ha,x.P()),g=Hh;this.Kb instanceof Y&&(g=Ih(this.Kb));b=this.computeResize(e,this.cc.alignment,b,c,d,!(g===Jh||g===Kh||a.S.shift));this.resize(b);x.A(e);a.xc();this.Of=this.name;a.Ja("PartResized",this.Kb,this.Yv)}this.stopTool()}; -Dh.prototype.resize=function(a){if(null!==this.h){var b=this.oc,c=b.ea,d=b.Ml(),e=b.jj(),g=Math.PI*d/180,h=Math.cos(g),g=Math.sin(g),k=0d?1:0,l=90d?1:0,d=180d?1:0,m=b.Ga.width,n=b.Ga.height;b.Ba=a.size;var p=c.position.copy();c.Af();m=b.Ga.width-m;n=b.Ga.height-n;if(0!==m||0!==n)0!==m&&(p.x+=e*((a.x+m*l)*h-(a.y+n*k)*g)),0!==n&&(p.y+=e*((a.x+m*d)*g+(a.y+n*l)*h)),c.move(p),c instanceof E&&c.nf()}}; +Dh.prototype.doActivate=function(){var a=this.h;null!==a&&(this.cc=this.findToolHandleAt(a.Fc.ha,this.name),null!==this.cc&&(this.Kb=this.cc.ea.oc,this.Cz.set(this.Kb.ea.location),this.Yv.set(this.Kb.Ba),this.az=this.computeCellSize(),this.cz=this.computeMinSize(),this.bz=this.computeMaxSize(),a.Ye=!0,this.cD=a.$a.isEnabled,a.$a.isEnabled=!1,this.Wb(this.name),this.va=!0))};Dh.prototype.doDeactivate=function(){var a=this.h;null!==a&&(this.Ck(),this.Kb=this.cc=null,this.va=a.Ye=!1,a.$a.isEnabled=this.cD)}; +Dh.prototype.doCancel=function(){this.Kb.Ba=this.Yv;this.Kb.ea.location=this.Cz;this.stopTool()};Dh.prototype.doMouseMove=function(){var a=this.h;if(this.va&&null!==a){var b=this.cz,c=this.bz,d=this.az,e=this.Kb.YE(a.S.ha,x.P()),g=Hh;this.Kb instanceof Y&&(g=Ih(this.Kb));b=this.computeResize(e,this.cc.alignment,b,c,d,!(g===Jh||g===Kh||a.S.shift));this.resize(b);a.dg();x.A(e)}}; +Dh.prototype.doMouseUp=function(){var a=this.h;if(this.va&&null!==a){var b=this.cz,c=this.bz,d=this.az,e=this.Kb.YE(a.S.ha,x.P()),g=Hh;this.Kb instanceof Y&&(g=Ih(this.Kb));b=this.computeResize(e,this.cc.alignment,b,c,d,!(g===Jh||g===Kh||a.S.shift));this.resize(b);x.A(e);a.xc();this.Of=this.name;a.Ja("PartResized",this.Kb,this.Yv)}this.stopTool()}; +Dh.prototype.resize=function(a){if(null!==this.h){var b=this.oc,c=b.ea,d=b.Nl(),e=b.jj(),g=Math.PI*d/180,h=Math.cos(g),g=Math.sin(g),k=0d?1:0,l=90d?1:0,d=180d?1:0,m=b.Ga.width,n=b.Ga.height;b.Ba=a.size;var p=c.position.copy();c.Bf();m=b.Ga.width-m;n=b.Ga.height-n;if(0!==m||0!==n)0!==m&&(p.x+=e*((a.x+m*l)*h-(a.y+n*k)*g)),0!==n&&(p.y+=e*((a.x+m*d)*g+(a.y+n*l)*h)),c.move(p),c instanceof E&&c.of()}}; Dh.prototype.computeResize=function(a,b,c,d,e,g){b.Ce()&&(b=dc);var h=this.oc.Ga,k=h.x,l=h.y,m=h.x+h.width,n=h.y+h.height,p=1;if(!g){var p=h.width,q=h.height;0>=p&&(p=1);0>=q&&(q=1);p=q/p}q=x.P();Q.xt(a.x,a.y,k,l,e.width,e.height,q);a=h.copy();0>=b.x?0>=b.y?(a.x=Math.max(q.x,m-d.width),a.x=Math.min(a.x,m-c.width),a.width=Math.max(m-a.x,c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=Math.max(n-a.y,c.height),g||(b=a.height/a.width,p=b.y?(a.width=Math.max(Math.min(q.x-k,d.width),c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n- c.height),a.height=Math.max(n-a.y,c.height),g||(b=a.height/a.width,p=b.y?(a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=n-a.y,g||(a.width=a.height/ p,a.x=k+.5*(m-k-a.width))):1<=b.y&&(a.height=Math.max(Math.min(q.y-l,d.height),c.height),g||(a.width=a.height/p,a.x=k+.5*(m-k-a.width)));x.A(q);return a};Dh.prototype.computeMinSize=function(){var a=this.oc.Kf.copy(),b=this.Kf;!isNaN(b.width)&&b.width>a.width&&(a.width=b.width);!isNaN(b.height)&&b.height>a.height&&(a.height=b.height);return a}; Dh.prototype.computeMaxSize=function(){var a=this.oc.De.copy(),b=this.De;!isNaN(b.width)&&b.widtha&&(a+=360));var b=Math.min(Math.abs(this.$J),180),c=Math.min(Math.abs(this.ZJ),b/2);!this.h.S.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};x.defineProperty(Lh,{$J:"snapAngleMultiple"},function(){return this.xD},function(a){x.g(a,"number",Lh,"snapAngleMultiple");this.xD=a}); -x.defineProperty(Lh,{ZJ:"snapAngleEpsilon"},function(){return this.wD},function(a){x.g(a,"number",Lh,"snapAngleEpsilon");this.wD=a});x.w(Lh,{RL:"originalAngle"},function(){return this.Xv});function Nh(){0a&&(a+=360));var b=Math.min(Math.abs(this.$J),180),c=Math.min(Math.abs(this.ZJ),b/2);!this.h.S.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};x.defineProperty(Lh,{$J:"snapAngleMultiple"},function(){return this.yD},function(a){x.g(a,"number",Lh,"snapAngleMultiple");this.yD=a}); +x.defineProperty(Lh,{ZJ:"snapAngleEpsilon"},function(){return this.xD},function(a){x.g(a,"number",Lh,"snapAngleEpsilon");this.xD=a});x.w(Lh,{RL:"originalAngle"},function(){return this.Xv});function Nh(){0e.right&&(c.x-=d.width+5);c.xe.bottom&&(c.y-=d.height+5);c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ya?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} -x.defineProperty(tf,{lB:"starting"},function(){return this.Xo},function(a){this.Xo!==a&&(null!==a&&x.g(a,"function",tf,"starting"),this.Xo=a)});x.w(tf,{NK:"animationReasons"},function(){return this.Su});tf.prototype.prepareAutomaticAnimation=tf.prototype.Bn=function(a){if(this.bf&&(this.Lj||this.W.Oe)){this.Su.add(a);var b=this.lB;if(null===b||b(this,a))this.Kj&&this.uj(),this.Bc=!0,this.Uu=!1}}; +Hf.prototype.doCancel=function(){null!==gg&&gg.doCancel();cf.prototype.doCancel.call(this)};Hf.prototype.findTool=function(a){x.g(a,"string",Hf,"findTool:name");for(var b=this.tf.length,c=0;ca?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} +x.defineProperty(tf,{mB:"starting"},function(){return this.Xo},function(a){this.Xo!==a&&(null!==a&&x.g(a,"function",tf,"starting"),this.Xo=a)});x.w(tf,{NK:"animationReasons"},function(){return this.Su});tf.prototype.prepareAutomaticAnimation=tf.prototype.Bn=function(a){if(this.bf&&(this.Lj||this.W.Oe)){this.Su.add(a);var b=this.mB;if(null===b||b(this,a))this.Kj&&this.uj(),this.Bc=!0,this.Uu=!1}}; function Ai(a){a.bf&&(a.Su.clear(),a.Bc&&requestAnimationFrame(function(){!1===a.Bc||a.Kj||(a.W.fk=1,Bi(a.W),a.Bc=!1,a.W.Ja("AnimationStarting"),Ci(a))}))} -function Di(a,b,c,d,e,g){if(a.Bc&&(u&&x.l(b,O,tf,"addPropToAnimation:obj"),!("position"===c&&d.O(e)||b instanceof D&&!b.hF))){void 0===g&&(g=!1);var h=a.ll;if(h.contains(b)){a=h.oa(b);var k=a.start,l=a.end;void 0===k[c]&&(k[c]=Ei(d));a.fA&&void 0!==l[c]?a.mA[c]=Ei(e):(g||(a.mA[c]=Ei(e)),l[c]=Ei(e))}else k=new pa,l=new pa,k[c]=Ei(d),l[c]=Ei(e),c=l,d=k.position,d instanceof N&&!d.G()&&a.Su.contains("Expand SubGraph")&&d.assign(c.position),h.add(b,new zi(k,l,g))}} +function Di(a,b,c,d,e,g){if(a.Bc&&(u&&x.l(b,O,tf,"addPropToAnimation:obj"),!("position"===c&&d.O(e)||b instanceof D&&!b.iF))){void 0===g&&(g=!1);var h=a.ll;if(h.contains(b)){a=h.oa(b);var k=a.start,l=a.end;void 0===k[c]&&(k[c]=Ei(d));a.gA&&void 0!==l[c]?a.nA[c]=Ei(e):(g||(a.nA[c]=Ei(e)),l[c]=Ei(e))}else k=new pa,l=new pa,k[c]=Ei(d),l[c]=Ei(e),c=l,d=k.position,d instanceof N&&!d.G()&&a.Su.contains("Expand SubGraph")&&d.assign(c.position),h.add(b,new zi(k,l,g))}} function Ei(a){return a instanceof N?a.copy():a instanceof Fa?a.copy():a} -function Ci(a){var b;void 0===b&&(b=new pa);var c=a.W;if(null!==c){a.Kj=!0;var d=b.mL||a.gC,e=b.PL||null,g=b.QL||null,h=b.duration||a.Xy,k=a.bH;for(b=a.ll.i;b.next();){var l=b.value.start.position;l instanceof N&&(l.G()||l.assign(k))}a.dC=d;a.ev=e;a.fv=g;a.cC=h;var m=a.ll;for(b=m.i;b.next();)e=b.value.end,e["position:placeholder"]&&(g=e["position:placeholder"],k=g.gb(Xb),k.x+=g.padding.left,k.y+=g.padding.top,e["position:placeholder"]=k);Fi(a);Gi(a,c,m,d,0,h);Wg(a.W);Hi(a);requestAnimationFrame(function(b){var e= +function Ci(a){var b;void 0===b&&(b=new pa);var c=a.W;if(null!==c){a.Kj=!0;var d=b.mL||a.hC,e=b.PL||null,g=b.QL||null,h=b.duration||a.Yy,k=a.cH;for(b=a.ll.i;b.next();){var l=b.value.start.position;l instanceof N&&(l.G()||l.assign(k))}a.eC=d;a.ev=e;a.fv=g;a.dC=h;var m=a.ll;for(b=m.i;b.next();)e=b.value.end,e["position:placeholder"]&&(g=e["position:placeholder"],k=g.gb(Xb),k.x+=g.padding.left,k.y+=g.padding.top,e["position:placeholder"]=k);Fi(a);Gi(a,c,m,d,0,h);Wg(a.W);Hi(a);requestAnimationFrame(function(b){var e= b||+new Date,g=e+h;(function s(b){if(!1!==a.Kj){b=b||+new Date;var k=b>g?h:b-e;Fi(a);Gi(a,c,m,d,k,h);a.ev&&a.ev();Wg(c);Hi(a);b>g?Ii(a):requestAnimationFrame(s)}})(e)})}} -var Ji={opacity:function(a,b,c,d,e,g){a.opacity=d(e,b,c-b,g)},position:function(a,b,c,d,e,g){e!==g?a.$x(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)):a.position=new N(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},"position:node":function(a,b,c,d,e,g){var h=a.ba,k=c.ba;c=k.x+k.width/2-h.width/2;h=k.y+k.height/2-h.height/2;e!==g?a.$x(d(e,b.x,c-b.x,g),d(e,b.y,h-b.y,g)):a.position=new N(d(e,b.x,c-b.x,g),d(e,b.y,h-b.y,g))},"position:placeholder":function(a,b,c,d,e,g){e!==g?a.$x(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)): -a.position=new N(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},scale:function(a,b,c,d,e,g){a.scale=d(e,b,c-b,g)},visible:function(a,b,c,d,e,g){a.visible=e!==g?b:c}};function Fi(a){if(!a.Ao){var b=a.W;a.TD=b.xb;a.RB=b.ey;a.SB=b.wu;b.xb=!0;b.ey=!0;b.wu=!0;a.Ao=!0}}function Hi(a){var b=a.W;b.xb=a.TD;b.ey=a.RB;b.wu=a.SB;a.Ao=!1} -function Gi(a,b,c,d,e,g){for(c=c.i;c.next();){var h=c.key,k=c.value,l=k.start,k=k.end,m;for(m in k)if(("position"!==m||!k["position:placeholder"]&&!k["position:node"])&&void 0!==Ji[m])Ji[m](h,l[m],k[m],d,e,g)}d=b.xA;b.xA=!0;m=a.gC;0!==a.Vq&&0!==a.Uq&&(c=a.Vq,b.dc=m(e,c,a.Uq-c,g));null!==a.Tq&&null!==a.Sq&&(c=a.Tq,a=a.Sq,b.fb=new N(m(e,c.x,a.x-c.x,g),m(e,c.y,a.y-c.y,g)));b.xA=d}tf.prototype.stopAnimation=tf.prototype.uj=function(){!0===this.Bc&&(this.Bc=!1,this.Uu&&this.W.Ee());this.Kj&&this.bf&&Ii(this)}; -function Ii(a){a.Kj=!1;a.Tq=null;a.Sq=null;a.Vq=0;a.Uq=0;Fi(a);for(var b=a.W,c=a.dC,d=a.cC,e=a.ll.i;e.next();){var g=e.key,h=e.value,k=h.start,l=h.end,m=h.mA,n;for(n in l)if(void 0!==Ji[n]){var p=n;!h.fA||"position:node"!==p&&"position:placeholder"!==p||(p="position");Ji[p](g,k[n],h.fA?void 0!==m[n]?m[n]:k[n]:l[n],c,d,d)}h.Ox&&g.yd(!1)}for(c=a.W.links;c.next();)d=c.value,null!==d.Ro&&(d.points=d.Ro,d.Ro=null);b.Dx.clear();b.fk=null;b.xc();b.dg();Ki(b);Hi(a);a.ll=new ra(O,zi);a.fv&&a.fv();a.fv=null; +var Ji={opacity:function(a,b,c,d,e,g){a.opacity=d(e,b,c-b,g)},position:function(a,b,c,d,e,g){e!==g?a.ay(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)):a.position=new N(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},"position:node":function(a,b,c,d,e,g){var h=a.ba,k=c.ba;c=k.x+k.width/2-h.width/2;h=k.y+k.height/2-h.height/2;e!==g?a.ay(d(e,b.x,c-b.x,g),d(e,b.y,h-b.y,g)):a.position=new N(d(e,b.x,c-b.x,g),d(e,b.y,h-b.y,g))},"position:placeholder":function(a,b,c,d,e,g){e!==g?a.ay(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)): +a.position=new N(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},scale:function(a,b,c,d,e,g){a.scale=d(e,b,c-b,g)},visible:function(a,b,c,d,e,g){a.visible=e!==g?b:c}};function Fi(a){if(!a.Ao){var b=a.W;a.UD=b.xb;a.SB=b.gy;a.TB=b.wu;b.xb=!0;b.gy=!0;b.wu=!0;a.Ao=!0}}function Hi(a){var b=a.W;b.xb=a.UD;b.gy=a.SB;b.wu=a.TB;a.Ao=!1} +function Gi(a,b,c,d,e,g){for(c=c.i;c.next();){var h=c.key,k=c.value,l=k.start,k=k.end,m;for(m in k)if(("position"!==m||!k["position:placeholder"]&&!k["position:node"])&&void 0!==Ji[m])Ji[m](h,l[m],k[m],d,e,g)}d=b.yA;b.yA=!0;m=a.hC;0!==a.Vq&&0!==a.Uq&&(c=a.Vq,b.dc=m(e,c,a.Uq-c,g));null!==a.Tq&&null!==a.Sq&&(c=a.Tq,a=a.Sq,b.fb=new N(m(e,c.x,a.x-c.x,g),m(e,c.y,a.y-c.y,g)));b.yA=d}tf.prototype.stopAnimation=tf.prototype.uj=function(){!0===this.Bc&&(this.Bc=!1,this.Uu&&this.W.Ee());this.Kj&&this.bf&&Ii(this)}; +function Ii(a){a.Kj=!1;a.Tq=null;a.Sq=null;a.Vq=0;a.Uq=0;Fi(a);for(var b=a.W,c=a.eC,d=a.dC,e=a.ll.i;e.next();){var g=e.key,h=e.value,k=h.start,l=h.end,m=h.nA,n;for(n in l)if(void 0!==Ji[n]){var p=n;!h.gA||"position:node"!==p&&"position:placeholder"!==p||(p="position");Ji[p](g,k[n],h.gA?void 0!==m[n]?m[n]:k[n]:l[n],c,d,d)}h.Px&&g.yd(!1)}for(c=a.W.links;c.next();)d=c.value,null!==d.Ro&&(d.points=d.Ro,d.Ro=null);b.Ex.clear();b.fk=null;b.xc();b.dg();Ki(b);Hi(a);a.ll=new ra(O,zi);a.fv&&a.fv();a.fv=null; a.ev=null;b.Ja("AnimationFinished");b.Ee()}function Li(a,b,c){var d=b.ba,e=c.ba,g=null;c instanceof F&&(g=c.placeholder);null!==g?(d=g.gb(Xb),d.x+=g.padding.left,d.y+=g.padding.top,Di(a,b,"position",d,b.position,!1)):Di(a,b,"position",new N(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position,!1);Di(a,b,"scale",.01,b.scale,!1);if(b instanceof F)for(b=b.Gc;b.next();)g=b.value,g instanceof E&&Li(a,g,c)} -function Mi(a,b,c){if(b.isVisible()){var d=null;c instanceof F&&(d=c.placeholder);null!==d?Di(a,b,"position:placeholder",b.position,d,!0):Di(a,b,"position:node",b.position,c,!0);Di(a,b,"scale",b.scale,.01,!0);a.Bc&&(d=a.ll,d.contains(b)&&(d.oa(b).Ox=!0));if(b instanceof F)for(b=b.Gc;b.next();)d=b.value,d instanceof E&&Mi(a,d,c)}}function Ni(a,b,c){a.Bc&&(null===a.Tq&&b.G()&&null===a.Sq&&(a.Tq=b.copy()),a.Sq=c.copy(),a.Uu=!0)} -function Oi(a,b,c){a.Bc&&a.W.Oe&&(0===a.Vq&&0===a.Uq&&(a.Vq=b),a.Uq=c,a.Uu=!0)}x.defineProperty(tf,{isEnabled:"isEnabled"},function(){return this.bf},function(a){x.g(a,"boolean",tf,"isEnabled");this.bf=a});x.defineProperty(tf,{duration:"duration"},function(){return this.Xy},function(a){x.g(a,"number",tf,"duration");1>a&&x.la(a,">= 1",tf,"duration");this.Xy=a});x.w(tf,{Df:"isAnimating"},function(){return this.Kj});x.w(tf,{wL:"isTicking"},function(){return this.Ao}); -x.defineProperty(tf,{oF:"isInitial"},function(){return this.Lj},function(a){x.g(a,"boolean",tf,"isInitial");this.Lj=a});function zi(a,b,c){this.start=a;this.end=b;this.mA=new pa;this.fA=c;this.Ox=!1}function bf(){0a&&x.la(a,">= 1",tf,"duration");this.Yy=a});x.w(tf,{Df:"isAnimating"},function(){return this.Kj});x.w(tf,{wL:"isTicking"},function(){return this.Ao}); +x.defineProperty(tf,{pF:"isInitial"},function(){return this.Lj},function(a){x.g(a,"boolean",tf,"isInitial");this.Lj=a});function zi(a,b,c){this.start=a;this.end=b;this.nA=new pa;this.gA=c;this.Px=!1}function bf(){0=a)return b;for(var c=0,d=0,e=0,g=0,h=0,k=this.pb.i;k.next();){var l=k.value;l instanceof F?e++:l instanceof E?d++:l instanceof G?g++:l instanceof fa?h++:c++}k="";0=d.count)a=d.count;else if(d.ia(a)===b)return-1;d.Od(a,b);b.It(c);d=this.h;null!==d&&(c?d.ua():d.Cp(b));ej(this,a,b);return a}; f.Xe=function(a,b,c){if(!c&&b.layer!==this&&null!==b.layer)return b.layer.Xe(a,b,c);var d=this.pb;if(0>a||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ia(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.Jt(c);d.dd(a);d=this.h;null!==d&&(c?d.ua():d.Xe(b));b.Jv=null;return a}; function ej(a,b,c){b=fj(a,b,c);if(c instanceof F&&null!==c&&isNaN(c.Ln)){if(0!==c.Gc.count){for(var d=-1,e=a.pb.o,g=e.length,h=0;hd&&k.Xa===c&&(d=h,0<=b))break}!(0>d)&&d=e)return b;0>b&&(b=a.indexOf(c));if(0>b)return-1;for(var g=b-1,h=NaN;0<=g;){h=a.ia(g).Ln;if(!isNaN(h))break;g--}for(var k=b+1,l=NaN;kd)for(;;){if(-1===g||h<=d){g++;if(g===b)break;a.dd(b);a.Od(g,c);return g}for(h=NaN;0<=--g&&(h=a.ia(g).Ln,isNaN(h)););}else if(!isNaN(l)&&l=d){k--;if(k===b)break;a.dd(b);a.Od(k,c);return k}for(l=NaN;++ka||1a||1=a)return b;for(var c=this.Zb.i;c.next();)b+="\n "+c.value.toString(a-1);return b};z.fromDiv=function(a){var b=a;"string"===typeof a&&(b=window.document.getElementById(a));return b instanceof HTMLDivElement&&b.W instanceof z?b.W:null}; -x.defineProperty(z,{Hl:"div"},function(){return this.Ub},function(a){null!==a&&x.l(a,HTMLDivElement,z,"div");if(this.Ub!==a){hj=[];var b=this.Ub;null!==b?(b.W=void 0,b.innerHTML="",null!==this.nb&&(this.nb.removeEventListener("touchstart",this.wG,!1),this.nb.removeEventListener("touchmove",this.vG,!1),this.nb.removeEventListener("touchend",this.uG,!1),this.nb.Zd.W=null),b=this.vb,null!==b&&(b.sf.each(function(a){a.cancelWaitAfter()}),b.eg.each(function(a){a.cancelWaitAfter()}),b.fg.each(function(a){a.cancelWaitAfter()})), -b.cancelWaitAfter(),this.cb.doCancel(),this.$e=this.nb=null,window.removeEventListener("resize",this.FG,!1),window.removeEventListener("mousemove",this.Op,!0),window.removeEventListener("mousedown",this.Np,!0),window.removeEventListener("mouseup",this.Qp,!0),window.removeEventListener("mousewheel",this.vh,!0),window.removeEventListener("DOMMouseScroll",this.vh,!0),window.removeEventListener("mouseout",this.Pp,!0)):this.Oe=!1;this.Ub=null;if(null!==a){if(b=a.W)b.Hl=null;tj(this,a);this.iu()}}}); -function wj(a){var b=a.nb;b.addEventListener("touchstart",a.wG,!1);b.addEventListener("touchmove",a.vG,!1);b.addEventListener("touchend",a.uG,!1);b.addEventListener("mousemove",a.Op,!1);b.addEventListener("mousedown",a.Np,!1);b.addEventListener("mouseup",a.Qp,!1);b.addEventListener("mousewheel",a.vh,!1);b.addEventListener("DOMMouseScroll",a.vh,!1);b.addEventListener("mouseout",a.Pp,!1);b.addEventListener("keydown",a.aJ,!1);b.addEventListener("keyup",a.bJ,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); -return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.vb.xp===vi&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.BJ,!1);b.addEventListener("pointermove",a.DJ,!1);b.addEventListener("pointerleave",a.CJ,!1);window.addEventListener("resize",a.FG,!1)} +x.defineProperty(z,{Hl:"div"},function(){return this.Ub},function(a){null!==a&&x.l(a,HTMLDivElement,z,"div");if(this.Ub!==a){hj=[];var b=this.Ub;null!==b?(b.W=void 0,b.innerHTML="",null!==this.nb&&(this.nb.removeEventListener("touchstart",this.xG,!1),this.nb.removeEventListener("touchmove",this.wG,!1),this.nb.removeEventListener("touchend",this.vG,!1),this.nb.Zd.W=null),b=this.vb,null!==b&&(b.tf.each(function(a){a.cancelWaitAfter()}),b.eg.each(function(a){a.cancelWaitAfter()}),b.fg.each(function(a){a.cancelWaitAfter()})), +b.cancelWaitAfter(),this.cb.doCancel(),this.$e=this.nb=null,window.removeEventListener("resize",this.GG,!1),window.removeEventListener("mousemove",this.Op,!0),window.removeEventListener("mousedown",this.Np,!0),window.removeEventListener("mouseup",this.Qp,!0),window.removeEventListener("mousewheel",this.vh,!0),window.removeEventListener("DOMMouseScroll",this.vh,!0),window.removeEventListener("mouseout",this.Pp,!0)):this.Oe=!1;this.Ub=null;if(null!==a){if(b=a.W)b.Hl=null;tj(this,a);this.iu()}}}); +function wj(a){var b=a.nb;b.addEventListener("touchstart",a.xG,!1);b.addEventListener("touchmove",a.wG,!1);b.addEventListener("touchend",a.vG,!1);b.addEventListener("mousemove",a.Op,!1);b.addEventListener("mousedown",a.Np,!1);b.addEventListener("mouseup",a.Qp,!1);b.addEventListener("mousewheel",a.vh,!1);b.addEventListener("DOMMouseScroll",a.vh,!1);b.addEventListener("mouseout",a.Pp,!1);b.addEventListener("keydown",a.aJ,!1);b.addEventListener("keyup",a.bJ,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); +return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.vb.xp===vi&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.BJ,!1);b.addEventListener("pointermove",a.DJ,!1);b.addEventListener("pointerleave",a.CJ,!1);window.addEventListener("resize",a.GG,!1)} z.prototype.computePixelRatio=function(){if(null!==this.fk)return this.fk;var a=this.$e;return(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1)};z.prototype.doMouseMove=function(){this.cb.doMouseMove()};z.prototype.doMouseDown=function(){this.cb.doMouseDown()};z.prototype.doMouseUp=function(){this.cb.doMouseUp()};z.prototype.doMouseWheel=function(){this.cb.doMouseWheel()}; -z.prototype.doKeyDown=function(){this.cb.doKeyDown()};z.prototype.doKeyUp=function(){this.cb.doKeyUp()};z.prototype.focus=z.prototype.focus=function(){this.nb&&this.nb.focus()};function Bi(a){if(null!==a.nb){var b=a.Ub;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.$k?a.Kd:0,d=a.Ij?a.Kd:0,e=a.ge;a.ge=a.computePixelRatio();a.ge!==e&&(a.jr=!0,a.Ee());if(b.clientWidth!==a.Lb+c||b.clientHeight!==a.Qb+d)a.qm=!0,a.ue=!0,b=a.Tb,null!==b&&b.yx&&a.zl===Nf&&b.J(),a.Vd||a.Ee()}}} -function da(a,b,c){void 0===b&&(b=a.$e);void 0===c&&(c=!0);c&&(b.Hu="");b.Nn="";b.hm=""}function qj(a){var b=new bf;b.name="Background";a.at(b);b=new bf;b.name="";a.at(b);b=new bf;b.name="Foreground";a.at(b);b=new bf;b.name="Adornment";b.Nc=!0;a.at(b);b=new bf;b.name="Tool";b.Nc=!0;b.iF=!0;a.at(b);b=new bf;b.name="Grid";b.yf=!1;b.ig=!1;b.Nc=!0;a.rH(b,a.Jl("Background"))} +z.prototype.doKeyDown=function(){this.cb.doKeyDown()};z.prototype.doKeyUp=function(){this.cb.doKeyUp()};z.prototype.focus=z.prototype.focus=function(){this.nb&&this.nb.focus()};function Bi(a){if(null!==a.nb){var b=a.Ub;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.$k?a.Kd:0,d=a.Ij?a.Kd:0,e=a.ge;a.ge=a.computePixelRatio();a.ge!==e&&(a.jr=!0,a.Ee());if(b.clientWidth!==a.Lb+c||b.clientHeight!==a.Qb+d)a.rm=!0,a.ue=!0,b=a.Tb,null!==b&&b.zx&&a.zl===Nf&&b.J(),a.Vd||a.Ee()}}} +function da(a,b,c){void 0===b&&(b=a.$e);void 0===c&&(c=!0);c&&(b.Hu="");b.Nn="";b.im=""}function qj(a){var b=new bf;b.name="Background";a.at(b);b=new bf;b.name="";a.at(b);b=new bf;b.name="Foreground";a.at(b);b=new bf;b.name="Adornment";b.Nc=!0;a.at(b);b=new bf;b.name="Tool";b.Nc=!0;b.jF=!0;a.at(b);b=new bf;b.name="Grid";b.zf=!1;b.ig=!1;b.Nc=!0;a.sH(b,a.Jl("Background"))} function xj(a){a.ud=new H(yj);a.ud.name="GRID";var b=new Y;b.Jb="LineH";b.stroke="lightgray";b.yb=.5;b.interval=1;a.ud.add(b);b=new Y;b.Jb="LineH";b.stroke="gray";b.yb=.5;b.interval=5;a.ud.add(b);b=new Y;b.Jb="LineH";b.stroke="gray";b.yb=1;b.interval=10;a.ud.add(b);b=new Y;b.Jb="LineV";b.stroke="lightgray";b.yb=.5;b.interval=1;a.ud.add(b);b=new Y;b.Jb="LineV";b.stroke="gray";b.yb=.5;b.interval=5;a.ud.add(b);b=new Y;b.Jb="LineV";b.stroke="gray";b.yb=1;b.interval=10;a.ud.add(b);b=new D;b.add(a.ud); -b.Jf="Grid";b.Ln=0;b.vx=!1;b.hF=!1;b.ig=!1;b.Ex="GRID";a.add(b);a.pb.remove(b);a.ud.visible=!1} -z.prototype.aH=function(){if(this.W.isEnabled){var a=this.W;if(a.Dz&&null!==a.nb){a.kw=!0;var b=a.Ec,c=a.Ab,d=b.width,e=c.width,g=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale,s;el&& -(a.position=s.n(-(a.ow.scrollWidth-a.Lb)+this.scrollLeft-a.Lb/r+a.Ec.right,a.position.y))),this.eH&&a.ye&&(bn&&(a.position=s.n(a.position.x,-(a.ow.scrollHeight-a.Qb)+this.scrollTop-a.Qb/r+a.Ec.bottom))),x.A(s),zj(a),a.kw=!1,a.qm=!1,b=a.Ec,c=a.Ab,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.ws.style.width="1px"),h>=g&&b>=c&&m<=n&&(a.ws.style.height="1px"))}}else Aj(this.W)}; -z.prototype.cD=function(a){this.W.isEnabled?(this.W.Dz=!0,this.W.tD=a.target.scrollTop,this.W.sD=a.target.scrollLeft):Aj(this.W)};z.prototype.computeBounds=z.prototype.nh=function(){0c&&(e=c),ea.th&&(e=a.th),e):b===Ij?(e=l>k?(h-a.Kd)/d:(g-a.Kd)/e,e>c&&(e=c),ea.th&&(e=a.th),e):a.scale}z.prototype.zoomToFit=z.prototype.zoomToFit=function(){this.scale=Ej(this,Hj)}; -z.prototype.zoomToRect=function(a,b){void 0===b&&(b=Hj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===Hj||b===Ij)if(isNaN(c))e=this.Ab.height*this.scale/d;else if(isNaN(d))e=this.Ab.width*this.scale/c;else var e=this.Lb,g=this.Qb,e=b===Ij?g/d>e/c?(g-(this.Ij?this.Kd:0))/d:(e-(this.$k?this.Kd:0))/c:Math.min(g/d,e/c);this.scale=e;this.position=new N(a.x,a.y)}};x.defineProperty(z,{xA:null},function(){return this.gd},function(a){this.gd=a}); +b.Jf="Grid";b.Ln=0;b.wx=!1;b.iF=!1;b.ig=!1;b.Fx="GRID";a.add(b);a.pb.remove(b);a.ud.visible=!1} +z.prototype.bH=function(){if(this.W.isEnabled){var a=this.W;if(a.Ez&&null!==a.nb){a.kw=!0;var b=a.Ec,c=a.Ab,d=b.width,e=c.width,g=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale,s;el&& +(a.position=s.n(-(a.ow.scrollWidth-a.Lb)+this.scrollLeft-a.Lb/r+a.Ec.right,a.position.y))),this.fH&&a.ye&&(bn&&(a.position=s.n(a.position.x,-(a.ow.scrollHeight-a.Qb)+this.scrollTop-a.Qb/r+a.Ec.bottom))),x.A(s),zj(a),a.kw=!1,a.rm=!1,b=a.Ec,c=a.Ab,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.ws.style.width="1px"),h>=g&&b>=c&&m<=n&&(a.ws.style.height="1px"))}}else Aj(this.W)}; +z.prototype.dD=function(a){this.W.isEnabled?(this.W.Ez=!0,this.W.uD=a.target.scrollTop,this.W.tD=a.target.scrollLeft):Aj(this.W)};z.prototype.computeBounds=z.prototype.nh=function(){0c&&(e=c),ea.th&&(e=a.th),e):b===Ij?(e=l>k?(h-a.Kd)/d:(g-a.Kd)/e,e>c&&(e=c),ea.th&&(e=a.th),e):a.scale}z.prototype.zoomToFit=z.prototype.zoomToFit=function(){this.scale=Ej(this,Hj)}; +z.prototype.zoomToRect=function(a,b){void 0===b&&(b=Hj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===Hj||b===Ij)if(isNaN(c))e=this.Ab.height*this.scale/d;else if(isNaN(d))e=this.Ab.width*this.scale/c;else var e=this.Lb,g=this.Qb,e=b===Ij?g/d>e/c?(g-(this.Ij?this.Kd:0))/d:(e-(this.$k?this.Kd:0))/c:Math.min(g/d,e/c);this.scale=e;this.position=new N(a.x,a.y)}};x.defineProperty(z,{yA:null},function(){return this.gd},function(a){this.gd=a}); z.prototype.alignDocument=function(a,b){this.Jj&&Gj(this,this.nh());var c=this.Ec,d=this.Ab;this.position=new N(c.x+(a.x*c.width+a.offsetX)-(b.x*d.width-b.offsetX),c.y+(a.y*c.height+a.offsetY)-(b.y*d.height-b.offsetY))}; -function Fj(a,b,c,d,e,g,h){var k=b.x,l=b.y;if(h||a.eB===ij)g.cd()&&(d>c.width&&(k=c.x+(g.x*c.width+g.offsetX)-(g.x*d-g.offsetX)),e>c.height&&(l=c.y+(g.y*c.height+g.offsetY)-(g.y*e-g.offsetY))),g=a.ZF,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lc.width&&(k=c.x+(g.x*c.width+g.offsetX)-(g.x*d-g.offsetX)),e>c.height&&(l=c.y+(g.y*c.height+g.offsetY)-(g.y*e-g.offsetY))),g=a.$F,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lc.touches.length)&&c.preventDefault();c.cancelBubble=!0;return!1} +function ja(a,b,c){if(b.bubbles)return u&&u.dF&&x.trace("NOT handled "+c.type+" "+b.toString()),!0;u&&u.dF&&x.trace("handled "+c.type+" "+a.cb.name+" "+b.toString());void 0!==c.stopPropagation&&c.stopPropagation();(void 0===c.touches||2>c.touches.length)&&c.preventDefault();c.cancelBubble=!0;return!1} z.prototype.aJ=function(a){if(!this.W.isEnabled)return!1;var b=this.W.Rb;Jj(this.W,this.W,a,b,!1);b.key=String.fromCharCode(a.which);b.Il=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key= "Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}this.W.doKeyDown();return 187!==a.which&&189!==a.which&&48!==a.which&&107!==a.which&&109!==a.which&&61!==a.which&&173!==a.which||!0!==a.ctrlKey?ja(this.W,b,a):(a.cancelBubble=!0,a.preventDefault(),a.stopPropagation(),!1)}; z.prototype.bJ=function(a){if(!this.W.isEnabled)return!1;var b=this.W.Rb;Jj(this.W,this.W,a,b,!1);b.key=String.fromCharCode(a.which);b.up=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 93:a.preventDefault()}this.W.doKeyUp(); return ja(this.W,b,a)};z.prototype.so=function(a){var b=this.nb;if(null===b)return new N(0,0);var c=this.Lb,d=this.Qb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.Md?(a=new N(c,a),rb(a,this.Md),a):new N(c,a)}; function Kj(a,b,c){var d=a.nb,e=a.Lb,g=a.Qb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-g/d.height*d.top);c.te.n(h,k);null!==a.Md?(b=x.Xb(h,k),a.Md.oi(b),c.ha.assign(b),x.A(b)):c.ha.n(h,k)}z.prototype.invalidateDocumentBounds=z.prototype.xc=function(){this.Jj||(this.Jj=!0,this.Ee(!0))};function Ki(a){a.Vd||Bj(a);a.Jj&&Gj(a,a.nh())}z.prototype.redraw=z.prototype.iu=function(){this.gd||this.Vd||(this.ua(),Nj(this),zj(this),this.xc(),this.dg())}; z.prototype.isUpdateRequested=function(){return this.Xf};z.prototype.delayInitialization=function(a){void 0===a&&(a=null);var b=this.$a,c=b.isEnabled;b.uj();b.isEnabled=!1;Wg(this);this.Oe=!1;b.isEnabled=c;null!==a&&x.setTimeout(a,1)};z.prototype.requestUpdate=z.prototype.Ee=function(a){void 0===a&&(a=!1);if(!0!==this.Xf&&!(this.gd||!1===a&&this.Vd)){this.Xf=!0;var b=this;requestAnimationFrame(function(){b.Xf&&b.dg()})}}; -z.prototype.maybeUpdate=z.prototype.dg=function(){if(!this.po||this.Xf)this.po&&(this.po=!1),Wg(this)};function Oj(a,b){a.$a.Df||a.gd||!a.qm||Aj(a)||(b&&Bj(a),Dj(a,!1))} -function Wg(a){if(!a.Vd&&(a.Xf=!1,null!==a.Ub)){a.Vd=!0;var b=a.$a,c=a.lD;if(!b.Ao&&0!==c.length){for(var d=c.o,e=d.length,g=0;gb;b++){var c=a.pg.i;if(null===c||0===a.pg.count)break;a.pg=new K(O);a.uB(c,a.pg);u&&22===b&&x.trace("failure to validate parts")}} -z.prototype.uB=function(a,b){for(a.reset();a.next();){var c=a.value;!c.$d()||c instanceof F||!c.isVisible()||(c.Ul()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c))}for(a.reset();a.next();)c=a.value,c instanceof F&&c.isVisible()&&Uj(this,c);for(a.reset();a.next();)c=a.value,c instanceof G&&c.isVisible()&&(c.Ul()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c));for(a.reset();a.next();)c=a.value,c instanceof fa&&c.isVisible()&&(c.Ul()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c))}; +function Sj(a){var b=a.Zb.o;a.Lf(b,b.length,a);a.bl!==Nf?a.scale=Ej(a,a.bl):a.km!==Nf?a.scale=Ej(a,a.km):(b=a.KI,isFinite(b)&&0b;b++){var c=a.pg.i;if(null===c||0===a.pg.count)break;a.pg=new K(O);a.vB(c,a.pg);u&&22===b&&x.trace("failure to validate parts")}} +z.prototype.vB=function(a,b){for(a.reset();a.next();){var c=a.value;!c.$d()||c instanceof F||!c.isVisible()||(c.Vl()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c))}for(a.reset();a.next();)c=a.value,c instanceof F&&c.isVisible()&&Uj(this,c);for(a.reset();a.next();)c=a.value,c instanceof G&&c.isVisible()&&(c.Vl()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c));for(a.reset();a.next();)c=a.value,c instanceof fa&&c.isVisible()&&(c.Vl()?(ji(c,Infinity,Infinity),c.Kc()):b.add(c))}; function Uj(a,b){for(var c=x.ub(),d=x.ub(),e=b.Gc;e.next();){var g=e.value;g.isVisible()&&(g instanceof F?(Vj(g)||Wj(g)||Xj(g))&&Uj(a,g):g instanceof G?g.Z===b||g.fa===b?d.push(g):c.push(g):(ji(g,Infinity,Infinity),g.Kc()))}for(var e=c.length,h=0;hy+1&& -(C=Math.max((v-y)*I+a.Lb,C)),q+k+1n+1&&(M=Math.max((p-n)*I+a.Qb,M)),r+l+1y+1&&(C=Math.max((v-y)*I+a.Lb,C)),q+1n+1&&(M=Math.max((p-n)*I+l,M)),r+1y+1&&(b.scrollLeft=a.position.x*I));a.uA&&a.ye&&(r+1n+1&&(b.scrollTop=a.position.y*I));h&&(a.jr=!0);m=a.Lb;c=a.Qb;b.style.width=m+(a.$k?a.Kd:0)+"px";b.style.height=c+(a.Ij?a.Kd:0)+"px";a.Dz=!1;return d!==m||e!==c||a.$a.Bc?(n=a.Ab,a.fu(g,n,h),!1):!0} +v.x),Math.abs(r.y-v.y)));rb(r,A);rb(v,A);m.push(new w(Math.min(r.x,v.x),Math.min(r.y,v.y),Math.abs(r.x-v.x),Math.abs(r.y-v.y)));this.al.fm(this)&&(h=0y+1&& +(C=Math.max((v-y)*I+a.Lb,C)),q+k+1n+1&&(M=Math.max((p-n)*I+a.Qb,M)),r+l+1y+1&&(C=Math.max((v-y)*I+a.Lb,C)),q+1n+1&&(M=Math.max((p-n)*I+l,M)),r+1y+1&&(b.scrollLeft=a.position.x*I));a.vA&&a.ye&&(r+1n+1&&(b.scrollTop=a.position.y*I));h&&(a.jr=!0);m=a.Lb;c=a.Qb;b.style.width=m+(a.$k?a.Kd:0)+"px";b.style.height=c+(a.Ij?a.Kd:0)+"px";a.Ez=!1;return d!==m||e!==c||a.$a.Bc?(n=a.Ab,a.fu(g,n,h),!1):!0} z.prototype.add=z.prototype.add=function(a){x.l(a,D,z,"add:part");var b=a.h;if(b!==this){null!==b&&x.k("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+b.toString());this.Pn&&(a.Oj="Tool");var c=a.Jf,b=this.Jl(c);null===b&&(b=this.Jl(""));null===b&&x.k('Cannot add a Part when unable find a Layer named "'+c+'" and there is no default Layer');a.layer!==b&&(c=b.Cp(99999999,a,a.h===this),0<=c&&this.Rc(ye,"parts",b,null,a,null,c),b.Nc||this.xc(),a.J(ek),c=a.St,null!== c&&c(a,null,b))}}; -z.prototype.Cp=function(a){if(a instanceof E){if(this.Mo.add(a),a instanceof F){var b=a.Xa;null===b?this.rl.add(a):b.Fm.add(a);b=a.Tb;null!==b&&(b.h=this)}}else a instanceof G?this.Go.add(a):a instanceof fa||this.pb.add(a);var c=this;fk(a,function(a){gk(c,a)});a.Nb&&a.T();b=a.data;null!==b&&(a instanceof fa||(a instanceof G?this.Vk.add(b,a):this.Bi.add(b,a)),fk(a,function(a){hk(c,a)}));!0!==Wj(a)&&!0!==Xj(a)||this.pg.add(a);ik(a,!0,this);jk(a)?(a.ba.G()&&this.ua(dj(a,a.ba)),this.xc()):a.isVisible()&& +z.prototype.Cp=function(a){if(a instanceof E){if(this.Mo.add(a),a instanceof F){var b=a.Xa;null===b?this.rl.add(a):b.Gm.add(a);b=a.Tb;null!==b&&(b.h=this)}}else a instanceof G?this.Go.add(a):a instanceof fa||this.pb.add(a);var c=this;fk(a,function(a){gk(c,a)});a.Nb&&a.T();b=a.data;null!==b&&(a instanceof fa||(a instanceof G?this.Vk.add(b,a):this.Bi.add(b,a)),fk(a,function(a){hk(c,a)}));!0!==Wj(a)&&!0!==Xj(a)||this.pg.add(a);ik(a,!0,this);jk(a)?(a.ba.G()&&this.ua(dj(a,a.ba)),this.xc()):a.isVisible()&& a.ba.G()&&this.ua(dj(a,a.ba));this.Ee()}; -z.prototype.Xe=function(a){a.mt();if(a instanceof E){if(this.Mo.remove(a),a instanceof F){var b=a.Xa;null===b?this.rl.remove(a):b.Fm.remove(a);b=a.Tb;null!==b&&(b.h=null)}}else a instanceof G?this.Go.remove(a):a instanceof fa||this.pb.remove(a);var c=this;fk(a,function(a){kk(c,a)});b=a.data;null!==b&&(a instanceof fa||(a instanceof G?this.Vk.remove(b):this.Bi.remove(b)),fk(a,function(a){lk(c,a)}));this.pg.remove(a);jk(a)?(a.ba.G()&&this.ua(dj(a,a.ba)),this.xc()):a.isVisible()&&a.ba.G()&&this.ua(dj(a, -a.ba));this.Ee()};z.prototype.remove=z.prototype.remove=function(a){x.l(a,D,z,"remove:part");a.lb=!1;a.rh=!1;var b=a.layer;if(null!==b&&b.h===this){a.J(mk);a.ln();var c=b.Xe(-1,a,!1);0<=c&&this.Rc(ze,"parts",b,a,null,c,null);c=a.St;null!==c&&c(a,b,null)}};z.prototype.removeParts=z.prototype.bB=function(a,b){if(x.isArray(a))for(var c=x.ab(a),d=0;dd&&this.xc()}; +z.prototype.addLayerBefore=z.prototype.sH=function(a,b){nk(this,a,b);a.Sc(this);var c=this.Zb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.fe&&this.Rc(ze,"layers",this,a,null,d,null));for(var e=c.count,g=0;gd&&this.xc()}; z.prototype.addLayerAfter=function(a,b){nk(this,a,b);a.Sc(this);var c=this.Zb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.fe&&this.Rc(ze,"layers",this,a,null,d,null));for(var e=c.count,g=0;gd&&this.xc()}; z.prototype.removeLayer=function(a){x.l(a,bf,z,"removeLayer:layer");a.h!==this&&x.k("Cannot remove a Layer from another Diagram: "+a+" of "+a.h);if(""!==a.name){var b=this.Zb,c=b.indexOf(a);if(b.remove(a)){for(b=a.pb.copy().i;b.next();){var d=b.value,e=d.Jf;d.Jf=e!==a.name?e:""}null!==this.fe&&this.Rc(ze,"layers",this,a,null,c,null);this.ua();this.xc()}}};z.prototype.findLayer=z.prototype.Jl=function(a){for(var b=this.wn;b.next();){var c=b.value;if(c.name===a)return c}return null}; -z.prototype.addModelChangedListener=z.prototype.tH=function(a){x.g(a,"function",z,"addModelChangedListener:listener");null===this.$g&&(this.$g=new J("function"));this.$g.add(a);this.aa.Ym(a)};z.prototype.removeModelChangedListener=function(a){x.g(a,"function",z,"removeModelChangedListener:listener");null!==this.$g&&(this.$g.remove(a),0===this.$g.count&&(this.$g=null));this.aa.ju(a)}; -z.prototype.addChangedListener=z.prototype.Ym=function(a){x.g(a,"function",z,"addChangedListener:listener");null===this.vi&&(this.vi=new J("function"));this.vi.add(a)};z.prototype.removeChangedListener=z.prototype.ju=function(a){x.g(a,"function",z,"removeChangedListener:listener");null!==this.vi&&(this.vi.remove(a),0===this.vi.count&&(this.vi=null))}; -z.prototype.Uw=function(a){this.xb||this.qa.bF(a);a.Dc!==xe&&(this.qi=!0);if(null!==this.vi){var b=this.vi,c=b.length;if(1===c)b=b.ia(0),b(a);else if(0!==c)for(var d=b.kc(),e=0;ea.th&&(c=a.th);e=x.Xb(a.fb.x+h/b-h/c,a.fb.y+k/b-k/c);a.position=e;x.A(e);a.dc=c;a.fu(d,a.Ab);a.gd=!1;Dj(a,!1);c= -a.$a;c.Bc&&Oi(c,b,a.dc);a.ua();Nj(a)}}z.prototype.fu=function(a,b,c){void 0===c&&(c=!1);c||Nj(this);zj(this);var d=this.Tb;null===d||!d.yx||this.zl!==Nf||c||a.width===b.width&&a.height===b.height||d.J();d=this.cb;!0===this.sm&&d instanceof Hf&&(this.S.ha=this.AG(this.S.te),d.doMouseMove());this.gF(a,b);Qj(this);this.Ja("ViewportBoundsChanged",c?x.Jh:null,a)}; -function Qj(a,b){void 0===b&&(b=null);var c=a.ud;if(null!==c&&c.visible){for(var d=x.cm(),e=1,g=1,h=c.wa.o,k=h.length,l=0;ln||(pk(m.Jb)?g=g*n/Q.WE(g,n):e=e*n/Q.WE(e,n))}h=c.nx;d.n(g*h.width,e*h.height);h=g=l=k=0;if(null!==b)k=b.width,l=b.height,g=b.x,h=b.y;else{e=x.kg();g=a.Ab;e.n(g.x,g.y,g.width,g.height);for(h=a.aw.i;h.next();)g=h.value.Ab,g.G()&&Eb(e,g.x,g.y,g.width,g.height);k=e.width;l=e.height;g=e.x;h=e.y;if(!e.G())return}c.width=k+2*d.width;c.height=l+2*d.height; +z.prototype.rollbackTransaction=z.prototype.Zp=function(){return this.qa.Zp()};z.prototype.updateAllTargetBindings=z.prototype.DG=function(a){void 0===a&&(a="");for(var b=this.sj;b.next();)b.value.Ob(a);for(b=this.xh;b.next();)b.value.Ob(a);for(b=this.links;b.next();)b.value.Ob(a)};z.prototype.updateAllRelationshipsFromData=z.prototype.nK=function(){for(var a=this.sj;a.next();)a.value.updateRelationshipsFromData();for(a=this.xh;a.next();)a.value.updateRelationshipsFromData();for(a=this.links;a.next();)a.value.updateRelationshipsFromData()}; +function ok(a,b,c){if(a.gd||a.Vd)a.dc=c,c=a.$a,c.Bc&&Oi(c,b,a.dc);else if(a.gd=!0,null===a.nb)a.dc=c;else{var d=a.Ab.copy(),e=a.Lb,g=a.Qb;d.width=a.Lb/b;d.height=a.Qb/b;var h=a.gm.x,k=a.gm.y,l=a.vE;isNaN(h)&&(l.mj()?l.Ap(nc)?h=0:l.Ap(oc)&&(h=e-1):h=l.cd()?l.x*(e-1):e/2);isNaN(k)&&(l.mj()?l.Ap(mc)?k=0:l.Ap(pc)&&(k=g-1):k=l.cd()?l.y*(g-1):g/2);null!==a.ZF&&(c=a.ZF(a,c));ca.th&&(c=a.th);e=x.Xb(a.fb.x+h/b-h/c,a.fb.y+k/b-k/c);a.position=e;x.A(e);a.dc=c;a.fu(d,a.Ab);a.gd=!1;Dj(a,!1);c= +a.$a;c.Bc&&Oi(c,b,a.dc);a.ua();Nj(a)}}z.prototype.fu=function(a,b,c){void 0===c&&(c=!1);c||Nj(this);zj(this);var d=this.Tb;null===d||!d.zx||this.zl!==Nf||c||a.width===b.width&&a.height===b.height||d.J();d=this.cb;!0===this.tm&&d instanceof Hf&&(this.S.ha=this.BG(this.S.te),d.doMouseMove());this.hF(a,b);Qj(this);this.Ja("ViewportBoundsChanged",c?x.Jh:null,a)}; +function Qj(a,b){void 0===b&&(b=null);var c=a.ud;if(null!==c&&c.visible){for(var d=x.dm(),e=1,g=1,h=c.wa.o,k=h.length,l=0;ln||(pk(m.Jb)?g=g*n/Q.XE(g,n):e=e*n/Q.XE(e,n))}h=c.ox;d.n(g*h.width,e*h.height);h=g=l=k=0;if(null!==b)k=b.width,l=b.height,g=b.x,h=b.y;else{e=x.kg();g=a.Ab;e.n(g.x,g.y,g.width,g.height);for(h=a.aw.i;h.next();)g=h.value.Ab,g.G()&&Eb(e,g.x,g.y,g.width,g.height);k=e.width;l=e.height;g=e.x;h=e.y;if(!e.G())return}c.width=k+2*d.width;c.height=l+2*d.height; e=x.P();Q.xt(g,h,0,0,d.width,d.height,e);e.offset(-d.width,-d.height);x.tk(d);c.ea.location=e;x.A(e)}}z.prototype.clearSelection=z.prototype.Ww=function(){var a=0a&&x.la(a,">= 0",z,"scrollHorizontalLineChange"),this.lw=a,this.j("scrollHorizontalLineChange",b,a))}); x.defineProperty(z,{pu:"scrollVerticalLineChange"},function(){return this.pw},function(a){var b=this.pw;b!==a&&(x.g(a,"number",z,"scrollVerticalLineChange"),0>a&&x.la(a,">= 0",z,"scrollVerticalLineChange"),this.pw=a,this.j("scrollVerticalLineChange",b,a))});x.defineProperty(z,{S:"lastInput"},function(){return this.Rb},function(a){u&&x.l(a,he,z,"lastInput");this.Rb=a});x.defineProperty(z,{Fc:"firstInput"},function(){return this.Gi},function(a){u&&x.l(a,he,z,"firstInput");this.Gi=a}); -x.defineProperty(z,{gc:"currentCursor"},function(){return this.Ny},function(a){""===a&&(a=this.Rq);this.Ny!==a&&(x.g(a,"string",z,"currentCursor"),null!==this.nb&&(this.Ny=a,this.nb.style.cursor=a,this.Ub.style.cursor=a))});x.defineProperty(z,{XK:"defaultCursor"},function(){return this.Rq},function(a){""===a&&(a="auto");var b=this.Rq;b!==a&&(x.g(a,"string",z,"defaultCursor"),this.Rq=a,this.j("defaultCursor",b,a))}); +x.defineProperty(z,{gc:"currentCursor"},function(){return this.Oy},function(a){""===a&&(a=this.Rq);this.Oy!==a&&(x.g(a,"string",z,"currentCursor"),null!==this.nb&&(this.Oy=a,this.nb.style.cursor=a,this.Ub.style.cursor=a))});x.defineProperty(z,{XK:"defaultCursor"},function(){return this.Rq},function(a){""===a&&(a="auto");var b=this.Rq;b!==a&&(x.g(a,"string",z,"defaultCursor"),this.Rq=a,this.j("defaultCursor",b,a))}); x.defineProperty(z,{click:"click"},function(){return this.wi},function(a){var b=this.wi;b!==a&&(null!==a&&x.g(a,"function",z,"click"),this.wi=a,this.j("click",b,a))});x.defineProperty(z,{tt:"doubleClick"},function(){return this.Ei},function(a){var b=this.Ei;b!==a&&(null!==a&&x.g(a,"function",z,"doubleClick"),this.Ei=a,this.j("doubleClick",b,a))}); -x.defineProperty(z,{aA:"contextClick"},function(){return this.zi},function(a){var b=this.zi;b!==a&&(null!==a&&x.g(a,"function",z,"contextClick"),this.zi=a,this.j("contextClick",b,a))});x.defineProperty(z,{LA:"mouseOver"},function(){return this.Qi},function(a){var b=this.Qi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseOver"),this.Qi=a,this.j("mouseOver",b,a))}); -x.defineProperty(z,{KA:"mouseHover"},function(){return this.Pi},function(a){var b=this.Pi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseHover"),this.Pi=a,this.j("mouseHover",b,a))});x.defineProperty(z,{JA:"mouseHold"},function(){return this.Oi},function(a){var b=this.Oi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseHold"),this.Oi=a,this.j("mouseHold",b,a))}); -x.defineProperty(z,{wJ:"mouseDragOver"},function(){return this.Uv},function(a){var b=this.Uv;b!==a&&(null!==a&&x.g(a,"function",z,"mouseDragOver"),this.Uv=a,this.j("mouseDragOver",b,a))});x.defineProperty(z,{IA:"mouseDrop"},function(){return this.Ni},function(a){var b=this.Ni;b!==a&&(null!==a&&x.g(a,"function",z,"mouseDrop"),this.Ni=a,this.j("mouseDrop",b,a))}); -x.defineProperty(z,{qB:"toolTip"},function(){return this.Yi},function(a){var b=this.Yi;b!==a&&(null!==a&&x.l(a,fa,z,"toolTip"),this.Yi=a,this.j("toolTip",b,a))});x.defineProperty(z,{contextMenu:"contextMenu"},function(){return this.Ai},function(a){var b=this.Ai;b!==a&&(null!==a&&x.l(a,fa,z,"contextMenu"),this.Ai=a,this.j("contextMenu",b,a))}); -x.defineProperty(z,{zb:"commandHandler"},function(){return this.Iy},function(a){var b=this.Iy;b!==a&&(x.l(a,ua,z,"commandHandler"),null!==a.h&&x.k("Cannot share CommandHandlers between Diagrams: "+a.toString()),null!==b&&b.Sc(null),this.Iy=a,a.Sc(this))});x.defineProperty(z,{vb:"toolManager"},function(){return this.Nz},function(a){var b=this.Nz;b!==a&&(x.l(a,Hf,z,"toolManager"),null!==a.h&&x.k("Cannot share ToolManagers between Diagrams: "+a.toString()),null!==b&&b.Sc(null),this.Nz=a,a.Sc(this))}); -x.defineProperty(z,{st:"defaultTool"},function(){return this.Ry},function(a){var b=this.Ry;b!==a&&(x.l(a,cf,z,"defaultTool"),this.Ry=a,this.cb===b&&(this.cb=a))});x.defineProperty(z,{cb:"currentTool"},function(){return this.Oy},function(a){var b=this.Oy;null!==b&&(b.va&&b.doDeactivate(),b.cancelWaitAfter(),b.doStop());null===a&&(a=this.st);null!==a&&(x.l(a,cf,z,"currentTool"),this.Oy=a,a.Sc(this),a.doStart())});x.w(z,{selection:"selection"},function(){return this.sw}); +x.defineProperty(z,{bA:"contextClick"},function(){return this.zi},function(a){var b=this.zi;b!==a&&(null!==a&&x.g(a,"function",z,"contextClick"),this.zi=a,this.j("contextClick",b,a))});x.defineProperty(z,{MA:"mouseOver"},function(){return this.Qi},function(a){var b=this.Qi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseOver"),this.Qi=a,this.j("mouseOver",b,a))}); +x.defineProperty(z,{LA:"mouseHover"},function(){return this.Pi},function(a){var b=this.Pi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseHover"),this.Pi=a,this.j("mouseHover",b,a))});x.defineProperty(z,{KA:"mouseHold"},function(){return this.Oi},function(a){var b=this.Oi;b!==a&&(null!==a&&x.g(a,"function",z,"mouseHold"),this.Oi=a,this.j("mouseHold",b,a))}); +x.defineProperty(z,{wJ:"mouseDragOver"},function(){return this.Uv},function(a){var b=this.Uv;b!==a&&(null!==a&&x.g(a,"function",z,"mouseDragOver"),this.Uv=a,this.j("mouseDragOver",b,a))});x.defineProperty(z,{JA:"mouseDrop"},function(){return this.Ni},function(a){var b=this.Ni;b!==a&&(null!==a&&x.g(a,"function",z,"mouseDrop"),this.Ni=a,this.j("mouseDrop",b,a))}); +x.defineProperty(z,{rB:"toolTip"},function(){return this.Yi},function(a){var b=this.Yi;b!==a&&(null!==a&&x.l(a,fa,z,"toolTip"),this.Yi=a,this.j("toolTip",b,a))});x.defineProperty(z,{contextMenu:"contextMenu"},function(){return this.Ai},function(a){var b=this.Ai;b!==a&&(null!==a&&x.l(a,fa,z,"contextMenu"),this.Ai=a,this.j("contextMenu",b,a))}); +x.defineProperty(z,{zb:"commandHandler"},function(){return this.Jy},function(a){var b=this.Jy;b!==a&&(x.l(a,ua,z,"commandHandler"),null!==a.h&&x.k("Cannot share CommandHandlers between Diagrams: "+a.toString()),null!==b&&b.Sc(null),this.Jy=a,a.Sc(this))});x.defineProperty(z,{vb:"toolManager"},function(){return this.Oz},function(a){var b=this.Oz;b!==a&&(x.l(a,Hf,z,"toolManager"),null!==a.h&&x.k("Cannot share ToolManagers between Diagrams: "+a.toString()),null!==b&&b.Sc(null),this.Oz=a,a.Sc(this))}); +x.defineProperty(z,{st:"defaultTool"},function(){return this.Sy},function(a){var b=this.Sy;b!==a&&(x.l(a,cf,z,"defaultTool"),this.Sy=a,this.cb===b&&(this.cb=a))});x.defineProperty(z,{cb:"currentTool"},function(){return this.Py},function(a){var b=this.Py;null!==b&&(b.va&&b.doDeactivate(),b.cancelWaitAfter(),b.doStop());null===a&&(a=this.st);null!==a&&(x.l(a,cf,z,"currentTool"),this.Py=a,a.Sc(this),a.doStart())});x.w(z,{selection:"selection"},function(){return this.sw}); x.defineProperty(z,{oJ:"maxSelectionCount"},function(){return this.Pv},function(a){var b=this.Pv;if(b!==a)if(x.g(a,"number",z,"maxSelectionCount"),0<=a&&!isNaN(a)){if(this.Pv=a,this.j("maxSelectionCount",b,a),!this.qa.tb&&(a=this.selection.count-a,0= 0",z,"maxSelectionCount")}); x.defineProperty(z,{yJ:"nodeSelectionAdornmentTemplate"},function(){return this.Vv},function(a){var b=this.Vv;b!==a&&(x.l(a,fa,z,"nodeSelectionAdornmentTemplate"),this.Vv=a,this.j("nodeSelectionAdornmentTemplate",b,a))});x.defineProperty(z,{DI:"groupSelectionAdornmentTemplate"},function(){return this.sv},function(a){var b=this.sv;b!==a&&(x.l(a,fa,z,"groupSelectionAdornmentTemplate"),this.sv=a,this.j("groupSelectionAdornmentTemplate",b,a))}); x.defineProperty(z,{iJ:"linkSelectionAdornmentTemplate"},function(){return this.Lv},function(a){var b=this.Lv;b!==a&&(x.l(a,fa,z,"linkSelectionAdornmentTemplate"),this.Lv=a,this.j("linkSelectionAdornmentTemplate",b,a))});x.w(z,{sn:"highlighteds"},function(){return this.xv}); -x.defineProperty(z,{qi:"isModified"},function(){var a=this.qa;return a.isEnabled?null!==a.gj?!0:this.mz&&this.Xg!==a.kj:this.mz},function(a){if(this.mz!==a){x.g(a,"boolean",z,"isModified");this.mz=a;var b=this.qa;!a&&b.isEnabled&&(this.Xg=b.kj);a||tk(this)}});function tk(a){var b=a.qi;a.VD!==b&&(a.VD=b,a.Ja("Modified"))} -x.defineProperty(z,{aa:"model"},function(){return this.fe},function(a){var b=this.fe;if(b!==a){x.l(a,L,z,"model");this.cb.doCancel();null!==b&&b.qa!==a.qa&&b.qa.nF&&x.k("Do not replace a Diagram.model while a transaction is in progress.");this.$a.uj();this.Ww();this.Oe=!1;this.po=!0;this.Xg=-2;this.Xf=!1;var c=this.Vd;this.Vd=!0;this.$a.Bn("Model");null!==b&&(null!==this.$g&&this.$g.each(function(a){b.ju(a)}),b.ju(this.ZC),b instanceof X&&Ek(this,b.sh),Ek(this,b.Jg));this.fe=a;a.Ym(this.YC);Fk(this, -a.Jg);a instanceof X&&Gk(this,a.sh);a.ju(this.YC);a.Ym(this.ZC);null!==this.$g&&this.$g.each(function(b){a.Ym(b)});this.Vd=c;this.gd||this.ua();null!==b&&(a.qa.isEnabled=b.qa.isEnabled)}});x.defineProperty(z,{Za:null},function(){return this.RC},function(a){this.RC=a});x.w(z,{Dx:null},function(){return this.WG}); -function mj(a,b){if(b.aa===a.aa){var c=b.Dc,d=b.propertyName;if(c===xe&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.vb,c.sf.each(function(b){b.Sc(a)}),c.eg.each(function(b){b.Sc(a)}),c.fg.each(function(b){b.Sc(a)}),a.Vd||a.Oe||(a.jv=!0,a.po&&(a.Xf=!0));else if("StartingUndo"===d||"StartingRedo"===d){var e=a.$a;e.Df&&!a.xb&&e.uj();a.Ja("ChangingSelection")}else"StartedTransaction"===d&&(e=a.$a,e.Df&&!a.xb&&e.uj());else if(a.Za){a.Za=!1;try{var g=b.rf;if(""!==g)if(c===we){if("linkFromKey"===g){var h= -b.object,k=a.Eg(h);if(null!==k){var l=b.newValue,m=a.jf(l);k.Z=m}}else if("linkToKey"===g)h=b.object,k=a.Eg(h),null!==k&&(l=b.newValue,m=a.jf(l),k.fa=m);else if("linkFromPortId"===g){if(h=b.object,k=a.Eg(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.bg=n)}}else if("linkToPortId"===g)h=b.object,k=a.Eg(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.Og=n));else if("nodeGroupKey"===g){var h=b.object,p=a.ni(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.jf(q);p.Xa=r instanceof F?r: -null}else p.Xa=null}}else if("linkLabelKeys"===g){if(h=b.object,k=a.Eg(h),null!==k){var s=b.oldValue,t=b.newValue;if(x.isArray(s))for(var v=x.ab(s),y=0;yl)){var m=l;Nk(k)&&m++;k.Xe(m);Ok(k,m,l)}}}}function hk(a,b){var c=b.Ki;if(x.isArray(c)){var d=a.vm.oa(c);if(null===d)d=[],d.push(b),a.vm.add(c,d);else{for(c=0;cl)){var m=l;Nk(k)&&m++;k.Xe(m);Ok(k,m,l)}}}}function hk(a,b){var c=b.Ki;if(x.isArray(c)){var d=a.wm.oa(c);if(null===d)d=[],d.push(b),a.wm.add(c,d);else{for(c=0;c=g.length)return!1;for(var h=0;hthis.scale&&(this.scale=a)):x.la(a,"> 0",z,"minScale"))}); -x.defineProperty(z,{th:"maxScale"},function(){return this.Ov},function(a){x.p(a,z,"maxScale");var b=this.Ov;b!==a&&(0 0",z,"maxScale"))});x.defineProperty(z,{fm:"zoomPoint"},function(){return this.Jw},function(a){this.Jw.O(a)||(x.l(a,N,z,"zoomPoint"),this.Jw=a=a.Y())}); -x.defineProperty(z,{uE:"contentAlignment"},function(){return this.Vn},function(a){var b=this.Vn;b.O(a)||(x.l(a,R,z,"contentAlignment"),this.Vn=a=a.Y(),this.j("contentAlignment",b,a),Dj(this,!1))});x.defineProperty(z,{rL:"initialContentAlignment"},function(){return this.uo},function(a){var b=this.uo;b.O(a)||(x.l(a,R,z,"initialContentAlignment"),this.uo=a=a.Y(),this.j("initialContentAlignment",b,a))}); +x.defineProperty(z,{th:"maxScale"},function(){return this.Ov},function(a){x.p(a,z,"maxScale");var b=this.Ov;b!==a&&(0 0",z,"maxScale"))});x.defineProperty(z,{gm:"zoomPoint"},function(){return this.Jw},function(a){this.Jw.O(a)||(x.l(a,N,z,"zoomPoint"),this.Jw=a=a.Y())}); +x.defineProperty(z,{vE:"contentAlignment"},function(){return this.Vn},function(a){var b=this.Vn;b.O(a)||(x.l(a,R,z,"contentAlignment"),this.Vn=a=a.Y(),this.j("contentAlignment",b,a),Dj(this,!1))});x.defineProperty(z,{rL:"initialContentAlignment"},function(){return this.uo},function(a){var b=this.uo;b.O(a)||(x.l(a,R,z,"initialContentAlignment"),this.uo=a=a.Y(),this.j("initialContentAlignment",b,a))}); x.defineProperty(z,{padding:"padding"},function(){return this.ef},function(a){"number"===typeof a?a=new yb(a):x.l(a,yb,z,"padding");var b=this.ef;b.O(a)||(this.ef=a=a.Y(),this.xc(),this.j("padding",b,a))});x.w(z,{xh:"nodes"},function(){return this.Mo.i});x.w(z,{links:"links"},function(){return this.Go.i});x.w(z,{sj:"parts"},function(){return this.pb.i}); z.prototype.findTopLevelNodesAndLinks=function(){for(var a=new K(D),b=this.Mo.i;b.next();){var c=b.value;c.Fp&&a.add(c)}for(b=this.Go.i;b.next();)c=b.value,c.Fp&&a.add(c);return a.i};z.prototype.findTopLevelGroups=function(){return this.rl.i};x.defineProperty(z,{Tb:"layout"},function(){return this.ee},function(a){var b=this.ee;b!==a&&(x.l(a,df,z,"layout"),null!==b&&(b.h=null,b.group=null),this.ee=a,a.h=this,a.group=null,this.Tu=!0,this.j("layout",b,a),this.Ee())}); -z.prototype.layoutDiagram=function(a){Bj(this);a&&Tk(this,!0);Rj(this,!1)};function Tk(a,b){for(var c=a.rl.i;c.next();)al(a,c.value,b);null!==a.Tb&&(b?a.Tb.Hf=!1:a.Tb.J())}function al(a,b,c){if(null!==b){for(var d=b.Fm.i;d.next();)al(a,d.value,c);null!==b.Tb&&(c?b.Tb.Hf=!1:b.Tb.J())}} -function Rj(a,b){if(!a.Sy){var c=a.Tb,d=a.Za;a.Za=!0;try{a.Wb("Layout");var e=a.$a;1!==a.qa.Ih||e.Df||e.Bc||e.Bn("Layout");for(var g=a.rl.i;g.next();)bl(a,g.value,b);c.Hf||b&&!c.pF&&1!==a.qa.Ih||(c.doLayout(a),Bj(a),c.Hf=!0)}finally{a.Nd("Layout"),a.Tu=!c.Hf,a.Za=d}}}function bl(a,b,c){if(null!==b){for(var d=b.Fm.i;d.next();)bl(a,d.value,c);d=b.Tb;null===d||d.Hf||c&&!d.pF||(b.zz=!b.location.G(),d.doLayout(b),b.J(cl),d.Hf=!0,Uj(a,b))}} +z.prototype.layoutDiagram=function(a){Bj(this);a&&Tk(this,!0);Rj(this,!1)};function Tk(a,b){for(var c=a.rl.i;c.next();)al(a,c.value,b);null!==a.Tb&&(b?a.Tb.Hf=!1:a.Tb.J())}function al(a,b,c){if(null!==b){for(var d=b.Gm.i;d.next();)al(a,d.value,c);null!==b.Tb&&(c?b.Tb.Hf=!1:b.Tb.J())}} +function Rj(a,b){if(!a.Ty){var c=a.Tb,d=a.Za;a.Za=!0;try{a.Wb("Layout");var e=a.$a;1!==a.qa.Ih||e.Df||e.Bc||e.Bn("Layout");for(var g=a.rl.i;g.next();)bl(a,g.value,b);c.Hf||b&&!c.qF&&1!==a.qa.Ih||(c.doLayout(a),Bj(a),c.Hf=!0)}finally{a.Nd("Layout"),a.Tu=!c.Hf,a.Za=d}}}function bl(a,b,c){if(null!==b){for(var d=b.Gm.i;d.next();)bl(a,d.value,c);d=b.Tb;null===d||d.Hf||c&&!d.qF||(b.Az=!b.location.G(),d.doLayout(b),b.J(cl),d.Hf=!0,Uj(a,b))}} x.defineProperty(z,{ae:"isTreePathToChildren"},function(){return this.Gv},function(a){var b=this.Gv;if(b!==a&&(x.g(a,"boolean",z,"isTreePathToChildren"),this.Gv=a,this.j("isTreePathToChildren",b,a),!this.qa.tb))for(a=this.xh;a.next();)dl(a.value)});z.prototype.findTreeRoots=function(){for(var a=new J(E),b=this.xh;b.next();){var c=b.value;c.Fp&&null===c.zt()&&a.add(c)}return a.i}; -x.defineProperty(z,{sB:"treeCollapsePolicy"},function(){return this.Ew},function(a){var b=this.Ew;b!==a&&(x.Ca(a,z,z,"treeCollapsePolicy"),this.Ew=a,this.j("treeCollapsePolicy",b,a))});x.defineProperty(z,{qh:null},function(){return this.FC},function(a){this.FC=a}); +x.defineProperty(z,{tB:"treeCollapsePolicy"},function(){return this.Ew},function(a){var b=this.Ew;b!==a&&(x.Ca(a,z,z,"treeCollapsePolicy"),this.Ew=a,this.j("treeCollapsePolicy",b,a))});x.defineProperty(z,{qh:null},function(){return this.GC},function(a){this.GC=a}); function jj(a){function b(a){var b=a.toLowerCase(),h=new J("function");c.add(a,h);c.add(b,h);d.add(a,a);d.add(b,a)}var c=new ra("string",J),d=new ra("string","string");b("AnimationStarting");b("AnimationFinished");b("BackgroundSingleClicked");b("BackgroundDoubleClicked");b("BackgroundContextClicked");b("ClipboardChanged");b("ClipboardPasted");b("DocumentBoundsChanged");b("ExternalObjectsDropped");b("InitialLayoutCompleted");b("LayoutCompleted");b("LinkDrawn");b("LinkRelinked");b("LinkReshaped");b("Modified"); -b("ObjectSingleClicked");b("ObjectDoubleClicked");b("ObjectContextClicked");b("PartCreated");b("PartResized");b("PartRotated");b("SelectionMoved");b("SelectionCopied");b("SelectionDeleting");b("SelectionDeleted");b("SelectionGrouped");b("SelectionUngrouped");b("ChangingSelection");b("ChangedSelection");b("SubGraphCollapsed");b("SubGraphExpanded");b("TextEdited");b("TreeCollapsed");b("TreeExpanded");b("ViewportBoundsChanged");a.Uy=c;a.Ty=d} -function Ja(a,b){var c=a.Ty.oa(b);return null!==c?c:a.Ty.oa(b.toLowerCase())}function el(a,b){var c=a.Uy.oa(b);if(null!==c)return c;c=a.Uy.oa(b.toLowerCase());if(null!==c)return c;x.k("Unknown DiagramEvent name: "+b);return null}z.prototype.addDiagramListener=z.prototype.Tz=function(a,b){x.g(a,"string",z,"addDiagramListener:name");x.g(b,"function",z,"addDiagramListener:listener");var c=el(this,a);null!==c&&c.add(b)}; -z.prototype.removeDiagramListener=z.prototype.KF=function(a,b){x.g(a,"string",z,"removeDiagramListener:name");x.g(b,"function",z,"addDiagramListener:listener");var c=el(this,a);null!==c&&c.remove(b)};z.prototype.raiseDiagramEvent=z.prototype.Ja=function(a,b,c){u&&x.g(a,"string",z,"raiseDiagramEvent:name");var d=el(this,a),e=new ie;e.h=this;e.name=Ja(this,a);void 0!==b&&(e.mB=b);void 0!==c&&(e.TA=c);a=d.length;if(1===a)d=d.ia(0),d(e);else if(0!==a)for(b=d.kc(),c=0;c=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.Ab,g=a.scale,e=x.Dk(0,0,e.width*g,e.height*g),h=x.Xb(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.ou,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.ye.y+e.height-d.bottom&&(k=Math.max(a.pu,1),k|=0,h.y+=k,b.y>e.y+e.height-d.bottom/2&&(h.y+=k),b.y>e.y+e.height-d.bottom/4&&(h.y+=4*k));h.wd(Q.Ek)||(c=new N(c.x+h.x/g,c.y+h.y/g));x.qc(e);x.A(h);return c}z.prototype.makeSVG=z.prototype.makeSvg=function(a){void 0===a&&(a=new pa);a.context="svg";a=ml(this,a);return null!==a?a.am:null}; +z.prototype.simulatedMouseMove=z.prototype.ey=function(a,b,c){if(null!==gg){var d=gg.h;c instanceof z||(c=null);var e=hg;c!==e&&(null!==e&&e!==d&&null!==e.vb.ke&&(mg(e),gg.ux=!1,e.vb.ke.doSimulatedDragLeave()),hg=c,null!==c&&c!==d&&null!==c.vb.ke&&(tg(),e=c.vb.ke,pg.contains(e)||pg.add(e),c.vb.ke.doSimulatedDragEnter()));if(null===c||c===d||!c.dE||c.kb||!c.ep)return!1;d=c.vb.ke;null!==d&&(null!==a?b=c.so(a):null===b&&(b=new N),c.Rb.ha=b,c.Rb.Il=!1,c.Rb.up=!1,d.doSimulatedDragOver());return!0}return!1}; +z.prototype.simulatedMouseUp=z.prototype.kG=function(a,b,c,d){if(null!==gg){null===d&&(d=b);b=hg;var e=gg.h;if(d!==b){if(null!==b&&b!==e&&null!==b.vb.ke)return mg(b),gg.ux=!1,b.vb.ke.doSimulatedDragLeave(),!1;hg=d;null!==d&&null!==d.vb.ke&&(tg(),b=d.vb.ke,pg.contains(b)||pg.add(b),d.vb.ke.doSimulatedDragEnter())}if(null===d)return gg.doCancel(),!0;if(d!==this)return null!==a&&(c=d.so(a)),d.Rb.ha=c,d.Rb.Il=!1,d.Rb.up=!0,a=d.vb.ke,null!==a&&a.doSimulatedDrop(),a=gg,null!==a&&(d=a.mayCopy(),a.Of=d?"Copy": +"Move",a.stopTool()),!0}return!1};x.defineProperty(z,{jE:"autoScrollRegion"},function(){return this.Wu},function(a){"number"===typeof a?a=new yb(a):x.l(a,yb,z,"autoScrollRegion");var b=this.Wu;b.O(a)||(this.Wu=a=a.Y(),this.xc(),this.j("autoScrollRegion",b,a))});function Qg(a,b){a.Vu.assign(b);kl(a,a.Vu).wd(a.position)?mg(a):ll(a)} +function ll(a){-1===a.Rn&&(a.Rn=x.setTimeout(function(){if(-1!==a.Rn){mg(a);var b=a.S.event;if(null!==b){var c=kl(a,a.Vu);c.wd(a.position)||(a.position=c,a.S.ha=a.BG(a.Vu),a.ey(b,null,b.target.W)||a.doMouseMove(),a.Jj=!0,Gj(a,a.nh()),a.ue=!0,a.dg(),ll(a))}}},a.RB))}function mg(a){-1!==a.Rn&&(x.clearTimeout(a.Rn),a.Rn=-1)} +function kl(a,b){var c=a.position,d=a.jE;if(0>=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.Ab,g=a.scale,e=x.Dk(0,0,e.width*g,e.height*g),h=x.Xb(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.ou,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.ye.y+e.height-d.bottom&&(k=Math.max(a.pu,1),k|=0,h.y+=k,b.y>e.y+e.height-d.bottom/2&&(h.y+=k),b.y>e.y+e.height-d.bottom/4&&(h.y+=4*k));h.wd(Q.Ek)||(c=new N(c.x+h.x/g,c.y+h.y/g));x.qc(e);x.A(h);return c}z.prototype.makeSVG=z.prototype.makeSvg=function(a){void 0===a&&(a=new pa);a.context="svg";a=ml(this,a);return null!==a?a.bm:null}; z.prototype.makeImage=function(a){void 0===a&&(a=new pa);var b=(a.document||document).createElement("img");b.src=this.jJ(a);return b};z.prototype.makeImageData=z.prototype.jJ=function(a){void 0===a&&(a=new pa);var b=ml(this,a);return null!==b?b.toDataURL(a.type,a.details):""};var nl=!1; function ml(a,b){a.$a.uj();a.dg();if(null===a.nb)return null;"object"!==typeof b&&x.k("properties argument must be an Object.");var c=!1,d=b.size||null,e=b.scale||null;void 0!==b.scale&&isNaN(b.scale)&&(e="NaN");var g=b.maxSize;void 0===b.maxSize&&(c=!0,g="svg"===b.context?new Fa(Infinity,Infinity):new Fa(2E3,2E3));var h=b.position||null,k=b.parts||null,l=void 0===b.padding?1:b.padding,m=b.background||null,n=b.omitTemporary;void 0===n&&(n=!0);var p=b.document||document,q=b.elementFinished||null,r= b.showTemporary;void 0===r&&(r=!n);n=b.showGrid;void 0===n&&(n=r);null!==d&&isNaN(d.width)&&isNaN(d.height)&&(d=null);"number"===typeof l?l=new yb(l):l instanceof yb||(l=new yb(0));l.left=Math.max(l.left,0);l.right=Math.max(l.right,0);l.top=Math.max(l.top,0);l.bottom=Math.max(l.bottom,0);a.ko=!1;da(a);var s=new ma(null,p),t=s.getContext("2d"),v=s;if(!(d||e||k||h))return s.width=a.Lb+Math.ceil(l.left+l.right),s.height=a.Qb+Math.ceil(l.top+l.bottom),"svg"===b.context&&(t=v=new ed(s.Zd,p,q),t instanceof -ed&&(a.ko=!0)),bk(a,t,l,new Fa(s.width,s.height),a.dc,a.fb,k,m,r,n),a.ko=!0,v;var y=a.zb.$w,A=new N(0,0),B=a.Ec.copy();B.dK(a.padding);if(r)for(var C=!0,C=a.Zb.o,M=C.length,I=0;Iy?(e=y,h=B.width,ba=B.height):(h=g.width,ba=g.height)):(h=B.width*e,ba=B.height*e):(e=y,h=B.width,ba=B.height);null!==l?(h+=ea,ba+=C):l=new yb(0);null!==g&&(d=g.width,g=g.height,"svg"!==b.context&&c&&!nl&&(h>d||ba>g)&&(x.trace("Diagram.makeImage(data): Diagram width or height is larger than the default max size. ("+Math.ceil(h)+"x"+Math.ceil(ba)+" vs 2000x2000) Consider increasing the max size."), -nl=!0),isNaN(d)&&(d=2E3),isNaN(g)&&(g=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(g)&&(ba=Math.min(ba,g)));s.width=Math.ceil(h);s.height=Math.ceil(ba);"svg"===b.context&&(t=v=new ed(s.Zd,p,q),t instanceof ed&&(a.ko=!0));bk(a,t,l,new Fa(Math.ceil(h),Math.ceil(ba)),e,A,k,m,r,n);a.ko=!0;return v}z.inherit=function(a,b){x.g(a,"function",z,"inherit");x.g(b,"function",z,"inherit");b.fH&&x.k("Cannot inherit from "+x.lf(b));x.Qa(a,b)}; -function sj(){this.iH="63ad05bbe23a1786468a4c741b6d2";this.Qh=this.iH===this._tk?!0:null} -sj.prototype.em=function(a){a.$e.setTransform(a.ge,0,0,a.ge,0,0);if(null===this.Qh)a:{var b="f",c=window[x.Dg("76a715b2f73f148a")][x.Dg("72ba13b5")];a=x.Dg;if(a("77bb5bb2f32603de")===window[a("76a715b2f73f148a")][a("6aba19a7ec351488")])try{this.Qh=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b")])([a("7bb8069ae7")]===a(x.adym));if(!1===this.Qh)break a;this.Qh=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([a("7bb8069ae7")]=== +nl=!0),isNaN(d)&&(d=2E3),isNaN(g)&&(g=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(g)&&(ba=Math.min(ba,g)));s.width=Math.ceil(h);s.height=Math.ceil(ba);"svg"===b.context&&(t=v=new ed(s.Zd,p,q),t instanceof ed&&(a.ko=!0));bk(a,t,l,new Fa(Math.ceil(h),Math.ceil(ba)),e,A,k,m,r,n);a.ko=!0;return v}z.inherit=function(a,b){x.g(a,"function",z,"inherit");x.g(b,"function",z,"inherit");b.gH&&x.k("Cannot inherit from "+x.mf(b));x.Qa(a,b)}; +function sj(){this.jH="63ad05bbe23a1786468a4c741b6d2";this.Qh=this.jH===this._tk?!0:null} +sj.prototype.fm=function(a){a.$e.setTransform(a.ge,0,0,a.ge,0,0);if(null===this.Qh)a:{var b="f",c=window[x.Dg("76a715b2f73f148a")][x.Dg("72ba13b5")];a=x.Dg;if(a("77bb5bb2f32603de")===window[a("76a715b2f73f148a")][a("6aba19a7ec351488")])try{this.Qh=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b")])([a("7bb8069ae7")]===a(x.adym));if(!1===this.Qh)break a;this.Qh=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([a("7bb8069ae7")]=== a(x.adym));if(!1===this.Qh)break a}catch(d){}for(var e=c[a("76ad18b4f73e")],g=c[a("73a612b6fb191d")](a("35e7"))+2;gc&&a(x.adym)!==a("7da71ca0ad381e90")&&(c=b[a("73a612b6fb191d")](a("76a715b2ef3e149757")));if(this.Qh=!(0<=c&&cb.timeStamp-a.ym?b.preventDefault():a.Fv&&2===b.button?b.preventDefault():(a.Zc=a.Rb,a.Rb=c,Jj(a,a,b,c,!0),c.Il=!0,c.gf=b.detail,a.Gi=c,a.focus(),!0===c.ar.simulated?(b.preventDefault(),b.simulated=!0):(u&&u.DF&&(window.DF=a.sp(c.ha)),gg=null,a.doMouseDown(),a.Gi=a.Gi.copy(),1===b.button?b.preventDefault():ja(a,c,b)))}};a.Qp=function(b){if(a.isEnabled){a.sm= -!0;var c=a.Zc;if(x.un){if(400>b.timeStamp-a.ym){b.preventDefault();return}a.ym=b.timeStamp}if(x.un&&null!==a.Hs)a.Hs=null,b.preventDefault();else{a.Zc=a.Rb;a.Rb=c;Jj(a,a,b,c,!0);c.up=!0;c.gf=b.detail;if(x.SI||x.TI)b.timeStamp-a.yma.ew)){var c=a.Wf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Zc,a.Zc=a.Rb,a.Rb=c,Mj(a,b,b,c,!0),a.by(b,null,c.Mg)||(a.doMouseMove(),ja(a,c,b)))}};a.CJ=function(b){if("touch"===b.pointerType){var c=a.mD;void 0!== -c[b.pointerId]&&(a.ew--,delete c[b.pointerId],c=a.Wf,null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId===b.pointerId&&(c[1]=null))}};da(a);wj(a)}function ol(a){1b.timeStamp-a.zm?b.preventDefault():a.Fv&&2===b.button?b.preventDefault():(a.Zc=a.Rb,a.Rb=c,Jj(a,a,b,c,!0),c.Il=!0,c.gf=b.detail,a.Gi=c,a.focus(),!0===c.ar.simulated?(b.preventDefault(),b.simulated=!0):(u&&u.EF&&(window.EF=a.sp(c.ha)),gg=null,a.doMouseDown(),a.Gi=a.Gi.copy(),1===b.button?b.preventDefault():ja(a,c,b)))}};a.Qp=function(b){if(a.isEnabled){a.tm= +!0;var c=a.Zc;if(x.un){if(400>b.timeStamp-a.zm){b.preventDefault();return}a.zm=b.timeStamp}if(x.un&&null!==a.Hs)a.Hs=null,b.preventDefault();else{a.Zc=a.Rb;a.Rb=c;Jj(a,a,b,c,!0);c.up=!0;c.gf=b.detail;if(x.SI||x.TI)b.timeStamp-a.zma.ew)){var c=a.Wf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Zc,a.Zc=a.Rb,a.Rb=c,Mj(a,b,b,c,!0),a.ey(b,null,c.Mg)||(a.doMouseMove(),ja(a,c,b)))}};a.CJ=function(b){if("touch"===b.pointerType){var c=a.nD;void 0!== +c[b.pointerId]&&(a.ew--,delete c[b.pointerId],c=a.Wf,null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId===b.pointerId&&(c[1]=null))}};da(a);wj(a)}function ol(a){1a)&&x.la(a,"0 <= loc <= 1",Ea,"addColorStop:loc");x.g(b,"string",Ea,"addColorStop:color");u&&!Da(b)&&x.k('Color "'+b+'" is not a valid color string for Brush.addColorStop');null===this.Ug&&(this.Ug=new ra("number","string"));this.Ug.add(a,b);this.da===Ze&&(this.type=$e);this.Vg=null}; @@ -983,54 +983,54 @@ x.defineProperty(Ea,{start:"start"},function(){return this.Vo},function(a){this. x.defineProperty(Ea,{ut:"endRadius"},function(){return this.ov},function(a){this.H&&x.pa(this,a);x.p(a,Ea,"endRadius");0>a&&x.la(a,">= zero",Ea,"endRadius");this.ov=a;this.Vg=null});x.defineProperty(Ea,{pt:"colorStops"},function(){return this.Ug},function(a){this.H&&x.pa(this,a);u&&x.l(a,ra,Ea,"colorStops");this.Ug=a;this.Vg=null});x.defineProperty(Ea,{pattern:"pattern"},function(){return this.dw},function(a){this.H&&x.pa(this,a);this.dw=a;this.Vg=null}); Ea.randomColor=function(a,b){void 0===a&&(a=128);u&&(x.p(a,Ea,"randomColor:min"),(0>a||255d.length&&(d="0"+d);2>e.length&&(e="0"+e);2>c.length&&(c="0"+c);return"#"+ d+e+c};var vl=x.createElement("canvas").getContext("2d"),Da;Ea.isValidColor=Da=function(a){if("black"===a)return!0;if(""===a)return!1;u&&x.g(a,"string",Ea,"isValidColor");vl.fillStyle="#000000";var b=vl.fillStyle;vl.fillStyle=a;if(vl.fillStyle!==b)return!0;vl.fillStyle="#FFFFFF";b=vl.fillStyle;vl.fillStyle=a;return vl.fillStyle!==b}; -function O(){x.lc(this);this.ka=30723;this.Xc=1;this.fh=null;this.Vb="";this.uc=this.Pb=null;this.fb=(new N(NaN,NaN)).freeze();this.uf=Q.EB;this.Vj=Q.Mn;this.Tj=Q.HB;this.Md=new Ha;this.Fk=new Ha;this.hl=new Ha;this.dc=this.lv=1;this.im=0;this.gi=wl;this.Fr=Q.mq;this.jd=(new w(NaN,NaN,NaN,NaN)).freeze();this.Yb=(new w(NaN,NaN,NaN,NaN)).freeze();this.Wc=(new w(0,0,NaN,NaN)).freeze();this.Qs=this.br=this.ma=this.fs=this.Km=null;this.Rs=this.cr=Infinity;this.tq=this.Le=Jc;this.ts=0;this.Ui=1;this.Aq= -0;this.yi=1;this.Ls=null;this.ys=-Infinity;this.xs=0;this.zs=Q.Ek;this.As=uh;this.Kq="";this.Uc=this.na=null;this.Sn=-1;this.Jm=this.Gs=this.xi=this.Uk=this.Uo=null}x.li(O);x.ja("GraphObject",O); -O.prototype.cloneProtected=function(a){a.ka=this.ka|6144;a.Xc=this.Xc;a.Vb=this.Vb;a.Pb=this.Pb;a.uc=this.uc;a.fb.assign(this.fb);a.uf=this.uf.Y();a.Vj=this.Vj.Y();a.Tj=this.Tj.Y();a.hl=this.hl.copy();a.dc=this.dc;a.im=this.im;a.gi=this.gi;a.Fr=this.Fr.Y();a.jd.assign(this.jd);a.Yb.assign(this.Yb);a.Wc.assign(this.Wc);a.fs=this.fs;null!==this.ma&&(a.ma=this.ma.copy());a.br=this.br;a.Qs=this.Qs;a.cr=this.cr;a.Rs=this.Rs;a.Le=this.Le.Y();a.tq=this.tq.Y();a.ts=this.ts;a.Ui=this.Ui;a.Aq=this.Aq;a.yi= -this.yi;a.Ls=this.Ls;a.ys=this.ys;a.xs=this.xs;a.zs=this.zs.Y();a.As=this.As;a.Kq=this.Kq;null!==this.na&&(a.na=this.na.copy());a.Uc=this.Uc;a.Sn=this.Sn;null!==this.Uk&&(a.Uk=x.Bl(this.Uk));null!==this.xi&&(a.xi=this.xi.copy());a.Gs=this.Gs};O.prototype.addCopyProperty=O.prototype.qH=function(a){var b=this.Uk;if(x.isArray(b))for(var c=0;ck;)k+=g[n++%l],p=!p;q=!1}else k=g[n++%l];k>m&&(k=m);var r=Math.sqrt(k*k/(1+e*e));0>d&&(r=-r);b+=r;c+=e*r;p?a.lineTo(b,c):a.moveTo(b,c);m-=k;p=!p}}O.prototype.raiseChangedEvent=O.prototype.Rc=function(a,b,c,d,e,g,h){var k=this.ea;null!==k&&(k.Cn(a,b,c,d,e,g,h),0!==(this.ka&1024)&&c===this&&a===we&&El(this,k,b))}; -function El(a,b,c){var d=a.vp();if(null!==d)for(var e=a.Uc.i;e.next();){var g=e.value,h=null;if(null!==g.Fn){h=Df(g,d,a);if(null===h)continue;g.hy(a,h,c,null)}else if(g.Qt){var k=b.h;null!==k&&g.hy(a,k.aa.yk,c,k)}else{var l=d.data;if(null===l)continue;k=b.h;null!==k&&k.ey||g.hy(a,l,c,k)}null!==h&&(k=d.ix(g.bm),null!==k&&g.DG(k,h,c))}}O.prototype.ix=function(a){return this.Sn===a?this:null};O.prototype.raiseChanged=O.prototype.j=function(a,b,c){this.Rc(we,a,this,b,c)}; -function Fl(a,b,c,d,e){var g=a.jd,h=a.hl;h.reset();Gl(a,h,b,c,d,e);a.hl=h;g.x=b;g.y=c;g.width=d;g.height=e;h.Nt()||h.zG(g)}function Hl(a,b,c,d){if(!1===a.ig)return!1;d.multiply(a.transform);return c?a.Hg(b,d):a.en(b,d)} -O.prototype.RE=function(a,b,c){if(!1===this.ig)return!1;var d=this.Ga;b=a.qk(b);var e=!1;c&&(e=sb(a.x,a.y,0,0,0,d.height)a&&(a+=360));return a};O.prototype.getDocumentScale=O.prototype.jj=function(){if(0!==(this.ka&4096)===!1)return this.lv;var a=this.dc;return null!==this.V?a*this.V.jj():a};O.prototype.getLocalPoint=O.prototype.XE=function(a,b){void 0===b&&(b=new N);b.assign(a);this.lh.oi(b);return b}; -O.prototype.getNearestIntersectionPoint=O.prototype.Pl=function(a,b,c){return this.zp(a.x,a.y,b.x,b.y,c)};f=O.prototype;f.zp=function(a,b,c,d,e){var g=this.transform,h=1/(g.m11*g.m22-g.m12*g.m21),k=g.m22*h,l=-g.m12*h,m=-g.m21*h,n=g.m11*h,p=h*(g.m21*g.dy-g.m22*g.dx),q=h*(g.m12*g.dx-g.m11*g.dy);if(null!==this.yl)return g=this.ba,Q.Pl(g.left,g.top,g.right,g.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.n(0,0);d=this.Ga;c=Q.Pl(0,0,d.width,d.height,h,a,b,c,e);e.transform(g);return c}; +(l=!0))));x.A(m);x.qc(c);!l&&(Q.sx(a,e,g)||Q.sx(a,g,h)||Q.sx(a,h,k)||Q.sx(a,k,e))&&(l=!0)}x.A(e);x.A(g);x.A(h);x.A(k);return l};O.prototype.getDocumentPoint=O.prototype.gb=function(a,b){void 0===b&&(b=new N);a.Ce()&&x.k("getDocumentPoint:s Spot must be specific: "+a.toString());var c=this.Ga;b.n(a.x*c.width+a.offsetX,a.y*c.height+a.offsetY);this.lh.Fb(b);return b}; +O.prototype.getDocumentAngle=O.prototype.Nl=function(){var a;a=this.lh;1===a.m11&&0===a.m12?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360));return a};O.prototype.getDocumentScale=O.prototype.jj=function(){if(0!==(this.ka&4096)===!1)return this.lv;var a=this.dc;return null!==this.V?a*this.V.jj():a};O.prototype.getLocalPoint=O.prototype.YE=function(a,b){void 0===b&&(b=new N);b.assign(a);this.lh.oi(b);return b}; +O.prototype.getNearestIntersectionPoint=O.prototype.Ql=function(a,b,c){return this.zp(a.x,a.y,b.x,b.y,c)};f=O.prototype;f.zp=function(a,b,c,d,e){var g=this.transform,h=1/(g.m11*g.m22-g.m12*g.m21),k=g.m22*h,l=-g.m12*h,m=-g.m21*h,n=g.m11*h,p=h*(g.m21*g.dy-g.m22*g.dx),q=h*(g.m12*g.dx-g.m11*g.dy);if(null!==this.yl)return g=this.ba,Q.Ql(g.left,g.top,g.right,g.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.n(0,0);d=this.Ga;c=Q.Ql(0,0,d.width,d.height,h,a,b,c,e);e.transform(g);return c}; function ji(a,b,c,d,e){if(!1!==Vj(a)){var g=a.margin,h=g.right+g.left,g=g.top+g.bottom;b=Math.max(b-h,0);c=Math.max(c-g,0);e=e||0;d=Math.max((d||0)-h,0);e=Math.max(e-g,0);var h=a.angle,g=0,g=a.Ba,k=0;a.yb&&(k=a.yb);90===h||270===h?(b=isFinite(g.height)?g.height+k:b,c=isFinite(g.width)?g.width+k:c):(b=isFinite(g.width)?g.width+k:b,c=isFinite(g.height)?g.height+k:c);var g=d||0,k=e||0,l=a instanceof H;switch(Il(a,!0)){case Hh:k=g=0;l&&(c=b=Infinity);break;case xd:isFinite(b)&&b>d&&(g=b);isFinite(c)&& c>e&&(k=c);break;case yl:isFinite(b)&&b>d&&(g=b);k=0;l&&(c=Infinity);break;case xl:isFinite(c)&&c>e&&(k=c),g=0,l&&(b=Infinity)}var l=a.De,m=a.Kf;g>l.width&&m.widthl.height&&m.heighta.height||this.Pj.df>a.width))&&(c=!0);this.ka=c?this.ka|256:this.ka&-257;this.Yb.G()|| -x.k("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Yb.toString());this.Hx(g,this.Yb);x.qc(g)};f.bj=function(){}; +x.k("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Yb.toString());this.Ix(g,this.Yb);x.qc(g)};f.bj=function(){}; function Jl(a,b,c,d,e){var g=a.ba;g.x=b;g.y=c;g.width=d;g.height=e;if(!a.Ba.G()){g=a.jd;c=a.margin;b=c.right+c.left;var h=c.top+c.bottom;c=g.width+b;g=g.height+h;d+=b;e+=h;b=Il(a,!0);c===d&&g===e&&(b=Hh);switch(b){case Hh:if(c>d||g>e)Pj(a,!0),ji(a,c>d?d:c,g>e?e:g);break;case xd:Pj(a,!0);ji(a,d,e,0,0);break;case yl:Pj(a,!0);ji(a,d,g,0,0);break;case xl:Pj(a,!0),ji(a,c,e,0,0)}}} -f.Hx=function(a,b){Kl(this,!1);var c=this.ea;if(null!==c&&null!==c.h){var d=this.ea;null!==d&&(d.En!==this&&d.TF!==this&&d.XF!==this||Ll(d,!0));this.ua();a.O(b)||(c.Rl(),this.Wv(c))}};f.Wv=function(a){null!==this.Ad&&Ll(a,!0)};x.defineProperty(O,{fq:"shadowVisible"},function(){return this.Gs},function(a){var b=this.Gs;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"shadowVisible"),this.Gs=a,this.j("shadowVisible",b,a))}); -O.prototype.hf=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof ed)a:{if(this.visible){var e=null,g=a.zx;if(this instanceof H&&(this.type===Ml||this.type===Nl))Ol(this,a,b);else{var h=this.Yb;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.V;0!==(this.ka&4096)===!0&&Pl(this);var m=0!==(this.ka&256),n=!1;this instanceof sa&&Ql(this,a);if(m){n=l.Pg()?l.Ga:l.ba;if(null!==this.xi)var p= -this.xi,q=p.x,r=p.y,s=p.width,p=p.height;else q=Math.max(h.x,n.x),r=Math.max(h.y,n.y),s=Math.min(h.right,n.right)-q,p=Math.min(h.bottom,n.bottom)-r;if(q>h.width+h.x||h.x>n.width+n.x||r>h.height+h.y||h.y>n.height+n.y)break a;n=!0;gd(a,1,0,0,1,0,0);a.save();a.beginPath();a.rect(q,r,s,p);a.clip()}q=!1;if(this instanceof D){var t=this,q=!0;if(!t.isVisible())break a}a.hj.pf=[1,0,0,1,0,0];r=!1;q&&this.xk&&b.vk("drawShadows")&&(s=this.Rm,b.Ez=s.x*b.scale*b.ge,b.Fz=s.y*b.scale*b.ge,b.di=t.di,b.ih=t.ih,Rl(b, -a),a.shadowColor=b.ih);t=!1;this.ea&&b.vk("drawShadows")&&(t=this.ea.xk);!0===this.fq?(Rl(b,a),!1===r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0)):!1===this.fq&&Sl(a);null!==this.uc&&(Tl(this,a,this.uc,!0,!0),!1===r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0),this.uc instanceof Ea&&this.uc.type===af?(a.beginPath(),a.rect(h.x,h.y,h.width,h.height),Ul(a,this.uc)):a.fillRect(h.x,h.y,h.width,h.height));this instanceof H?gd(a,k.m11,k.m12,k.m21,k.m22,k.dx,k.dy):a.hj.pf=[k.m11,k.m12,k.m21,k.m22,k.dx,k.dy];if(null!==this.Pb){!1=== -r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0);var p=this.Ga,k=h=0,s=p.width,p=p.height,v=0;this instanceof Y&&(p=this.eb.Cb,h=p.x,k=p.y,s=p.width,p=p.height,v=this.ve);Tl(this,a,this.Pb,!0,!1);this.Pb instanceof Ea&&this.Pb.type===af?(a.beginPath(),a.rect(h-v/2,k-v/2,s+v,p+v),Ul(a,this.Pb)):a.fillRect(h-v/2,k-v/2,s+v,p+v)}t&&(null!==this.Pb||null!==this.uc||null!==l&&0!==(l.ka&512)||null!==l&&(l.type===vj||l.type===Fh)&&l.Bf()!==this)?(Vl(this,!0),null===this.fq&&Sl(a)):Vl(this,!1);this.rk(a,b);t&&0!==(this.ka& -512)===!0&&Rl(b,a);q&&t&&Sl(a);m&&(a.restore(),n&&a.Cf.pop(),da(b,a));this instanceof H&&(e=a.Cf.pop());!0===r&&a.Cf.pop();null!==a.ME&&(null===e&&(g===a.zx?(gd(a,1,0,0,1,0,0),e=a.Cf.pop()):e=a.zx),a.ME(this,e))}}}}else{if(this instanceof H&&(this.type===Ml||this.type===Nl)){Ol(this,a,b);1!==c&&(a.globalAlpha=d);return}m=this.Yb;if(0!==m.width&&0!==m.height&&!isNaN(m.x)&&!isNaN(m.y)){this instanceof G&&this.Yt(!1);u&&u.dj&&u.gI(a,this);e=this.transform;g=this.V;0!==(this.ka&4096)===!0&&Pl(this);l= -0!==(this.ka&256);this instanceof sa&&Ql(this,a);if(l){u&&u.LE&&x.trace("clip"+this.toString());n=g.Pg()?g.Ga:g.ba;null!==this.xi?(r=this.xi,h=r.x,k=r.y,q=r.width,r=r.height):(h=Math.max(m.x,n.x),k=Math.max(m.y,n.y),q=Math.min(m.right,n.right)-h,r=Math.min(m.bottom,n.bottom)-k);if(h>m.width+m.x||m.x>n.width+n.x||k>m.height+m.y||m.y>n.height+n.y){1!==c&&(a.globalAlpha=d);return}u&&u.LE&&u.iI(a,h,k,q,r);a.save();a.beginPath();a.rect(h,k,q,r);a.clip()}n=!1;if(this instanceof D){n=!0;if(!this.isVisible()){1!== -c&&(a.globalAlpha=d);return}this.xk&&b.vk("drawShadows")&&(h=this.Rm,b.Ez=h.x*b.scale*b.ge,b.Fz=h.y*b.scale*b.ge,b.di=this.di,b.ih=this.ih,Rl(b,a),a.shadowColor=b.ih)}h=!1;this.ea&&b.vk("drawShadows")&&(h=this.ea.xk);!0===this.fq?Rl(b,a):!1===this.fq&&Sl(a);null!==this.uc&&(Tl(this,a,this.uc,!0,!0),this.uc instanceof Ea&&this.uc.type===af?(a.beginPath(),a.rect(m.x,m.y,m.width,m.height),Ul(a,this.uc)):a.fillRect(m.x,m.y,m.width,m.height));e.Nt()||a.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);null!== -this.Pb&&(r=this.Ga,k=m=0,q=r.width,r=r.height,t=0,this instanceof Y&&(r=this.eb.Cb,m=r.x,k=r.y,q=r.width,r=r.height,t=this.ve),Tl(this,a,this.Pb,!0,!1),this.Pb instanceof Ea&&this.Pb.type===af?(a.beginPath(),a.rect(m-t/2,k-t/2,q+t,r+t),Ul(a,this.Pb)):a.fillRect(m-t/2,k-t/2,q+t,r+t));u&&u.dj&&u.hI(a,this);h&&(null!==this.Pb||null!==this.uc||null!==g&&0!==(g.ka&512)||null!==g&&(g.type===vj||g.type===Fh)&&g.Bf()!==this)?(Vl(this,!0),null===this.fq&&Sl(a)):Vl(this,!1);this.rk(a,b);h&&0!==(this.ka&512)=== -!0&&Rl(b,a);n&&h&&Sl(a);l?(a.restore(),this instanceof H?da(b,a,!0):da(b,a,!1)):e.Nt()||(g=1/(e.m11*e.m22-e.m12*e.m21),a.transform(e.m22*g,-e.m12*g,-e.m21*g,e.m11*g,g*(e.m21*e.dy-e.m22*e.dx),g*(e.m12*e.dx-e.m11*e.dy)))}}1!==c&&(a.globalAlpha=d)}};function Sl(a){a.shadowOffsetX=0;a.shadowOffsetY=0;a.shadowBlur=0}function Rl(a,b){b.shadowOffsetX=a.Ez;b.shadowOffsetY=a.Fz;b.shadowBlur=a.di} +f.Ix=function(a,b){Kl(this,!1);var c=this.ea;if(null!==c&&null!==c.h){var d=this.ea;null!==d&&(d.En!==this&&d.UF!==this&&d.YF!==this||Ll(d,!0));this.ua();a.O(b)||(c.Sl(),this.Wv(c))}};f.Wv=function(a){null!==this.Ad&&Ll(a,!0)};x.defineProperty(O,{fq:"shadowVisible"},function(){return this.Gs},function(a){var b=this.Gs;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"shadowVisible"),this.Gs=a,this.j("shadowVisible",b,a))}); +O.prototype.hf=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof ed)a:{if(this.visible){var e=null,g=a.Ax;if(this instanceof H&&(this.type===Ml||this.type===Nl))Ol(this,a,b);else{var h=this.Yb;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.V;0!==(this.ka&4096)===!0&&Pl(this);var m=0!==(this.ka&256),n=!1;this instanceof sa&&Ql(this,a);if(m){n=l.Pg()?l.Ga:l.ba;if(null!==this.xi)var p= +this.xi,q=p.x,r=p.y,s=p.width,p=p.height;else q=Math.max(h.x,n.x),r=Math.max(h.y,n.y),s=Math.min(h.right,n.right)-q,p=Math.min(h.bottom,n.bottom)-r;if(q>h.width+h.x||h.x>n.width+n.x||r>h.height+h.y||h.y>n.height+n.y)break a;n=!0;gd(a,1,0,0,1,0,0);a.save();a.beginPath();a.rect(q,r,s,p);a.clip()}q=!1;if(this instanceof D){var t=this,q=!0;if(!t.isVisible())break a}a.hj.qf=[1,0,0,1,0,0];r=!1;q&&this.xk&&b.vk("drawShadows")&&(s=this.Sm,b.Fz=s.x*b.scale*b.ge,b.Gz=s.y*b.scale*b.ge,b.di=t.di,b.ih=t.ih,Rl(b, +a),a.shadowColor=b.ih);t=!1;this.ea&&b.vk("drawShadows")&&(t=this.ea.xk);!0===this.fq?(Rl(b,a),!1===r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0)):!1===this.fq&&Sl(a);null!==this.uc&&(Tl(this,a,this.uc,!0,!0),!1===r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0),this.uc instanceof Ea&&this.uc.type===af?(a.beginPath(),a.rect(h.x,h.y,h.width,h.height),Ul(a,this.uc)):a.fillRect(h.x,h.y,h.width,h.height));this instanceof H?gd(a,k.m11,k.m12,k.m21,k.m22,k.dx,k.dy):a.hj.qf=[k.m11,k.m12,k.m21,k.m22,k.dx,k.dy];if(null!==this.Pb){!1=== +r&&t&&(gd(a,1,0,0,1,0,0),a.hb(),r=!0);var p=this.Ga,k=h=0,s=p.width,p=p.height,v=0;this instanceof Y&&(p=this.eb.Cb,h=p.x,k=p.y,s=p.width,p=p.height,v=this.ve);Tl(this,a,this.Pb,!0,!1);this.Pb instanceof Ea&&this.Pb.type===af?(a.beginPath(),a.rect(h-v/2,k-v/2,s+v,p+v),Ul(a,this.Pb)):a.fillRect(h-v/2,k-v/2,s+v,p+v)}t&&(null!==this.Pb||null!==this.uc||null!==l&&0!==(l.ka&512)||null!==l&&(l.type===vj||l.type===Fh)&&l.jf()!==this)?(Vl(this,!0),null===this.fq&&Sl(a)):Vl(this,!1);this.rk(a,b);t&&0!==(this.ka& +512)===!0&&Rl(b,a);q&&t&&Sl(a);m&&(a.restore(),n&&a.Cf.pop(),da(b,a));this instanceof H&&(e=a.Cf.pop());!0===r&&a.Cf.pop();null!==a.NE&&(null===e&&(g===a.Ax?(gd(a,1,0,0,1,0,0),e=a.Cf.pop()):e=a.Ax),a.NE(this,e))}}}}else{if(this instanceof H&&(this.type===Ml||this.type===Nl)){Ol(this,a,b);1!==c&&(a.globalAlpha=d);return}m=this.Yb;if(0!==m.width&&0!==m.height&&!isNaN(m.x)&&!isNaN(m.y)){this instanceof G&&this.Yt(!1);u&&u.dj&&u.gI(a,this);e=this.transform;g=this.V;0!==(this.ka&4096)===!0&&Pl(this);l= +0!==(this.ka&256);this instanceof sa&&Ql(this,a);if(l){u&&u.ME&&x.trace("clip"+this.toString());n=g.Pg()?g.Ga:g.ba;null!==this.xi?(r=this.xi,h=r.x,k=r.y,q=r.width,r=r.height):(h=Math.max(m.x,n.x),k=Math.max(m.y,n.y),q=Math.min(m.right,n.right)-h,r=Math.min(m.bottom,n.bottom)-k);if(h>m.width+m.x||m.x>n.width+n.x||k>m.height+m.y||m.y>n.height+n.y){1!==c&&(a.globalAlpha=d);return}u&&u.ME&&u.iI(a,h,k,q,r);a.save();a.beginPath();a.rect(h,k,q,r);a.clip()}n=!1;if(this instanceof D){n=!0;if(!this.isVisible()){1!== +c&&(a.globalAlpha=d);return}this.xk&&b.vk("drawShadows")&&(h=this.Sm,b.Fz=h.x*b.scale*b.ge,b.Gz=h.y*b.scale*b.ge,b.di=this.di,b.ih=this.ih,Rl(b,a),a.shadowColor=b.ih)}h=!1;this.ea&&b.vk("drawShadows")&&(h=this.ea.xk);!0===this.fq?Rl(b,a):!1===this.fq&&Sl(a);null!==this.uc&&(Tl(this,a,this.uc,!0,!0),this.uc instanceof Ea&&this.uc.type===af?(a.beginPath(),a.rect(m.x,m.y,m.width,m.height),Ul(a,this.uc)):a.fillRect(m.x,m.y,m.width,m.height));e.Nt()||a.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);null!== +this.Pb&&(r=this.Ga,k=m=0,q=r.width,r=r.height,t=0,this instanceof Y&&(r=this.eb.Cb,m=r.x,k=r.y,q=r.width,r=r.height,t=this.ve),Tl(this,a,this.Pb,!0,!1),this.Pb instanceof Ea&&this.Pb.type===af?(a.beginPath(),a.rect(m-t/2,k-t/2,q+t,r+t),Ul(a,this.Pb)):a.fillRect(m-t/2,k-t/2,q+t,r+t));u&&u.dj&&u.hI(a,this);h&&(null!==this.Pb||null!==this.uc||null!==g&&0!==(g.ka&512)||null!==g&&(g.type===vj||g.type===Fh)&&g.jf()!==this)?(Vl(this,!0),null===this.fq&&Sl(a)):Vl(this,!1);this.rk(a,b);h&&0!==(this.ka&512)=== +!0&&Rl(b,a);n&&h&&Sl(a);l?(a.restore(),this instanceof H?da(b,a,!0):da(b,a,!1)):e.Nt()||(g=1/(e.m11*e.m22-e.m12*e.m21),a.transform(e.m22*g,-e.m12*g,-e.m21*g,e.m11*g,g*(e.m21*e.dy-e.m22*e.dx),g*(e.m12*e.dx-e.m11*e.dy)))}}1!==c&&(a.globalAlpha=d)}};function Sl(a){a.shadowOffsetX=0;a.shadowOffsetY=0;a.shadowBlur=0}function Rl(a,b){b.shadowOffsetX=a.Fz;b.shadowOffsetY=a.Gz;b.shadowBlur=a.di} function Ol(a,b,c){var d=a.Yb;0===d.width||0===d.height||isNaN(d.x)||isNaN(d.y)||(null!==a.uc&&(Tl(a,b,a.uc,!0,!0),a.uc instanceof Ea&&a.uc.type===af?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Ul(b,a.uc)):b.fillRect(d.x,d.y,d.width,d.height)),null!==a.Pb&&(Tl(a,b,a.Pb,!0,!1),a.Pb instanceof Ea&&a.Pb.type===af?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Ul(b,a.Pb)):b.fillRect(d.x,d.y,d.width,d.height)),a.rk(b,c))}O.prototype.rk=function(){}; -function Ul(a,b){if(b instanceof Ea&&b.type===af&&!(a instanceof ed)){var c=b.Ly,d=b.Ky;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.Iu?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.Iu?a.clip():a.fill()}function Wl(a){a.Iu||a.stroke()} -function Tl(a,b,c,d,e){if(null!==c){var g=1,h=1;if("string"===typeof c)d?b.hm!==c&&(b.fillStyle=c,b.hm=c):b.Nn!==c&&(b.strokeStyle=c,b.Nn=c);else if(c.type===Ze)c=c.color,d?b.hm!==c&&(b.fillStyle=c,b.hm=c):b.Nn!==c&&(b.strokeStyle=c,b.Nn=c);else{var k,h=a.Ga,g=h.width,h=h.height;if(e)var l=a.ba,g=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Vg&&c.type===ul||c.Ly===g&&c.Ky===h))k=c.Vg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.ba,g=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* -g+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*g+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===$e?k=b.createLinearGradient(l,n,p,q):c.type===af?(s=isNaN(c.ut)?Math.max(g,h)/2:c.ut,isNaN(c.xu)?(r=0,s=Math.max(g,h)/2):r=c.xu,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===ul?k=b.createPattern(c.pattern,"repeat"):x.jc(c.type,"Brush type");if(c.type!==ul&&(a=c.pt,null!==a))for(a=a.i;a.next();)k.addColorStop(a.key,a.value);m&&(c.Vg=k,c.Ly=g,c.Ky=h)}d?b.hm!==k&&(b.fillStyle= -k,b.hm=k):b.Nn!==k&&(b.strokeStyle=k,b.Nn=k)}}}O.prototype.isContainedBy=O.prototype.Tl=function(a){if(a instanceof H)a:{if(this!==a&&null!==a)for(var b=this.V;null!==b;){if(b===a){a=!0;break a}b=b.V}a=!1}else a=!1;return a};O.prototype.isVisibleObject=O.prototype.Vl=function(){if(!this.visible)return!1;var a=this.V;return null!==a?a.Vl():!0}; +function Ul(a,b){if(b instanceof Ea&&b.type===af&&!(a instanceof ed)){var c=b.My,d=b.Ly;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.Iu?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.Iu?a.clip():a.fill()}function Wl(a){a.Iu||a.stroke()} +function Tl(a,b,c,d,e){if(null!==c){var g=1,h=1;if("string"===typeof c)d?b.im!==c&&(b.fillStyle=c,b.im=c):b.Nn!==c&&(b.strokeStyle=c,b.Nn=c);else if(c.type===Ze)c=c.color,d?b.im!==c&&(b.fillStyle=c,b.im=c):b.Nn!==c&&(b.strokeStyle=c,b.Nn=c);else{var k,h=a.Ga,g=h.width,h=h.height;if(e)var l=a.ba,g=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Vg&&c.type===ul||c.My===g&&c.Ly===h))k=c.Vg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.ba,g=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* +g+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*g+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===$e?k=b.createLinearGradient(l,n,p,q):c.type===af?(s=isNaN(c.ut)?Math.max(g,h)/2:c.ut,isNaN(c.xu)?(r=0,s=Math.max(g,h)/2):r=c.xu,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===ul?k=b.createPattern(c.pattern,"repeat"):x.jc(c.type,"Brush type");if(c.type!==ul&&(a=c.pt,null!==a))for(a=a.i;a.next();)k.addColorStop(a.key,a.value);m&&(c.Vg=k,c.My=g,c.Ly=h)}d?b.im!==k&&(b.fillStyle= +k,b.im=k):b.Nn!==k&&(b.strokeStyle=k,b.Nn=k)}}}O.prototype.isContainedBy=O.prototype.Ul=function(a){if(a instanceof H)a:{if(this!==a&&null!==a)for(var b=this.V;null!==b;){if(b===a){a=!0;break a}b=b.V}a=!1}else a=!1;return a};O.prototype.isVisibleObject=O.prototype.Wl=function(){if(!this.visible)return!1;var a=this.V;return null!==a?a.Wl():!0}; function Pl(a){if(0!==(a.ka&2048)===!0){var b=a.Md;b.reset();if(!a.Yb.G()||!a.jd.G()){Xl(a,!1);return}b.translate(a.Yb.x,a.Yb.y);b.translate(-a.Ia.x,-a.Ia.y);var c=a.Ga;Gl(a,b,c.x,c.y,c.width,c.height);Xl(a,!1);Yl(a,!0)}0!==(a.ka&4096)===!0&&(b=a.V,null===b?(a.Fk.set(a.Md),a.lv=a.scale,Yl(a,!1)):null!==b.lh&&(c=a.Fk,c.reset(),b.Pg()?c.multiply(b.Fk):null!==b.V&&c.multiply(b.V.Fk),c.multiply(a.Md),a.lv=a.scale*b.lv,Yl(a,!1)))} -function Gl(a,b,c,d,e,g){1!==a.scale&&b.scale(a.scale);if(0!==a.angle){var h=dc;a.of&&a.of.cd()&&(h=a.of);var k=x.P();if(a instanceof D&&a.$b!==a)for(c=a.$b,d=c.Ga,k.uu(d.x,d.y,d.width,d.height,h),c.hl.Fb(k),k.offset(-c.Ia.x,-c.Ia.y),h=c.V;null!==h&&h!==a;)h.hl.Fb(k),k.offset(-h.Ia.x,-h.Ia.y),h=h.V;else k.uu(c,d,e,g,h);b.rotate(a.angle,k.x,k.y);x.A(k)}}f=O.prototype; -f.T=function(a){void 0===a&&(a=!1);if(!0!==Vj(this)){Pj(this,!0);Kl(this,!0);var b=this.V;null!==b?a||b.T():(a=this.h,null!==a&&(a.pg.add(this),this instanceof E&&(a.qa.tb||this.nf(),null!==this.Pd&&Zl(this.Pd)),a.Ee(!0)));if(this instanceof H){if(this.da===vj||this.da===rh)a=this.Bf(),null!==a&&a.T(!0);a=this.wa.o;for(var b=a.length,c=0;ca?a=0:1a?a=0:1a||1=a&&x.k("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.dc=a,this.Hi(),this.T(),this.j("scale",b,a))});x.defineProperty(O,{angle:"angle"},function(){return this.im},function(a){var b=this.im;b!==a&&(u&&x.p(a,O,"angle"),a%=360,0>a&&(a+=360),b!==a&&(this.im=a,this.T(),this.Hi(),this.j("angle",b,a)))}); -x.defineProperty(O,{Ba:"desiredSize"},function(){return this.uf},function(a){var b=this.uf;b.O(a)||(u&&x.l(a,Fa,O,"desiredSize"),this.uf=a=a.Y(),this.T(),this instanceof Y&&this.Be(),this.j("desiredSize",b,a),a=this.ea,null!==a&&0!==(this.ka&1024)&&(El(this,a,"width"),El(this,a,"height")))}); -x.defineProperty(O,{width:"width"},function(){return this.uf.width},function(a){if(this.uf.width!==a){u&&x.g(a,"number",O,"width");var b=this.uf;this.uf=a=(new Fa(a,this.uf.height)).freeze();this.T();this instanceof Y&&this.Be();this.j("desiredSize",b,a);b=this.ea;null!==b&&0!==(this.ka&1024)&&El(this,b,"width")}}); -x.defineProperty(O,{height:"height"},function(){return this.uf.height},function(a){if(this.uf.height!==a){u&&x.g(a,"number",O,"height");var b=this.uf;this.uf=a=(new Fa(this.uf.width,a)).freeze();this.T();this instanceof Y&&this.Be();this.j("desiredSize",b,a);b=this.ea;null!==b&&0!==(this.ka&1024)&&El(this,b,"height")}}); +x.w(O,{ea:"part"},function(){if(this instanceof D)return this;if(null!==this.Km)return this.Km;var a;for(a=this.V;a;){if(a instanceof D)return this.Km=a;a=a.V}return null});x.w(O,{V:"panel"},function(){return this.fh});O.prototype.$l=function(a){this.fh=a};x.w(O,{layer:"layer"},function(){var a=this.ea;return null!==a?a.layer:null},{configurable:!0});x.w(O,{h:"diagram"},function(){var a=this.ea;return null!==a?a.h:null},{configurable:!0}); +x.defineProperty(O,{position:"position"},function(){return this.fb},function(a){var b=this.fb;b.O(a)||(u&&x.l(a,N,O,"position"),a=a.Y(),this.jB(a,b)&&this.j("position",b,a))});O.prototype.jB=function(a){this.fb=a;Zl(this);this.Hi();return!0};O.prototype.ay=function(a,b){this.fb.n(a,b);dm(this,!0);this.Hi()};x.w(O,{ba:"actualBounds"},function(){return this.Yb}); +x.defineProperty(O,{scale:"scale"},function(){return this.dc},function(a){var b=this.dc;b!==a&&(u&&x.p(a,O,"scale"),0>=a&&x.k("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.dc=a,this.Hi(),this.T(),this.j("scale",b,a))});x.defineProperty(O,{angle:"angle"},function(){return this.jm},function(a){var b=this.jm;b!==a&&(u&&x.p(a,O,"angle"),a%=360,0>a&&(a+=360),b!==a&&(this.jm=a,this.T(),this.Hi(),this.j("angle",b,a)))}); +x.defineProperty(O,{Ba:"desiredSize"},function(){return this.vf},function(a){var b=this.vf;b.O(a)||(u&&x.l(a,Fa,O,"desiredSize"),this.vf=a=a.Y(),this.T(),this instanceof Y&&this.Be(),this.j("desiredSize",b,a),a=this.ea,null!==a&&0!==(this.ka&1024)&&(El(this,a,"width"),El(this,a,"height")))}); +x.defineProperty(O,{width:"width"},function(){return this.vf.width},function(a){if(this.vf.width!==a){u&&x.g(a,"number",O,"width");var b=this.vf;this.vf=a=(new Fa(a,this.vf.height)).freeze();this.T();this instanceof Y&&this.Be();this.j("desiredSize",b,a);b=this.ea;null!==b&&0!==(this.ka&1024)&&El(this,b,"width")}}); +x.defineProperty(O,{height:"height"},function(){return this.vf.height},function(a){if(this.vf.height!==a){u&&x.g(a,"number",O,"height");var b=this.vf;this.vf=a=(new Fa(this.vf.width,a)).freeze();this.T();this instanceof Y&&this.Be();this.j("desiredSize",b,a);b=this.ea;null!==b&&0!==(this.ka&1024)&&El(this,b,"height")}}); x.defineProperty(O,{Kf:"minSize"},function(){return this.Vj},function(a){var b=this.Vj;b.O(a)||(u&&x.l(a,Fa,O,"minSize"),a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),this.Vj=a,this.T(),this.j("minSize",b,a))});x.defineProperty(O,{De:"maxSize"},function(){return this.Tj},function(a){var b=this.Tj;b.O(a)||(u&&x.l(a,Fa,O,"maxSize"),a=a.copy(),isNaN(a.width)&&(a.width=Infinity),isNaN(a.height)&&(a.height=Infinity),a.freeze(),this.Tj=a,this.T(),this.j("maxSize",b,a))}); x.w(O,{Ia:"measuredBounds"},function(){return this.jd});x.w(O,{Ga:"naturalBounds"},function(){return this.Wc},{configurable:!0});x.defineProperty(O,{margin:"margin"},function(){return this.Fr},function(a){"number"===typeof a?a=new yb(a):u&&x.l(a,yb,O,"margin");var b=this.Fr;b.O(a)||(this.Fr=a=a.Y(),this.T(),this.j("margin",b,a))});x.w(O,{transform:null},function(){0!==(this.ka&2048)===!0&&Pl(this);return this.Md});x.w(O,{lh:null},function(){0!==(this.ka&4096)===!0&&Pl(this);return this.Fk}); x.defineProperty(O,{alignment:"alignment"},function(){return this.Le},function(a){var b=this.Le;b.O(a)||(u&&x.l(a,R,O,"alignment"),a.Ce()&&!a.bd()&&x.k("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Le=a=a.Y(),Zl(this),this.j("alignment",b,a))});x.defineProperty(O,{column:"column"},function(){return this.Aq},function(a){u&&x.p(a,O,"column");a=Math.round(a);var b=this.Aq;b!==a&&(0>a&&x.la(a,">= 0",O,"column"),this.Aq=a,this.T(),this.j("column",b,a))}); -x.defineProperty(O,{KH:"columnSpan"},function(){return this.yi},function(a){u&&x.g(a,"number",O,"columnSpan");a=Math.round(a);var b=this.yi;b!==a&&(1>a&&x.la(a,">= 1",O,"columnSpan"),this.yi=a,this.T(),this.j("columnSpan",b,a))});x.defineProperty(O,{ac:"row"},function(){return this.ts},function(a){u&&x.p(a,O,"row");a=Math.round(a);var b=this.ts;b!==a&&(0>a&&x.la(a,">= 0",O,"row"),this.ts=a,this.T(),this.j("row",b,a))}); -x.defineProperty(O,{rowSpan:"rowSpan"},function(){return this.Ui},function(a){u&&x.g(a,"number",O,"rowSpan");a=Math.round(a);var b=this.Ui;b!==a&&(1>a&&x.la(a,">= 1",O,"rowSpan"),this.Ui=a,this.T(),this.j("rowSpan",b,a))});x.defineProperty(O,{gy:"spanAllocation"},function(){return this.Ls},function(a){var b=this.Ls;b!==a&&(null!==a&&x.g(a,"function",O,"spanAllocation"),this.Ls=a,this.j("spanAllocation",b,a))}); +x.defineProperty(O,{LH:"columnSpan"},function(){return this.yi},function(a){u&&x.g(a,"number",O,"columnSpan");a=Math.round(a);var b=this.yi;b!==a&&(1>a&&x.la(a,">= 1",O,"columnSpan"),this.yi=a,this.T(),this.j("columnSpan",b,a))});x.defineProperty(O,{ac:"row"},function(){return this.ts},function(a){u&&x.p(a,O,"row");a=Math.round(a);var b=this.ts;b!==a&&(0>a&&x.la(a,">= 0",O,"row"),this.ts=a,this.T(),this.j("row",b,a))}); +x.defineProperty(O,{rowSpan:"rowSpan"},function(){return this.Ui},function(a){u&&x.g(a,"number",O,"rowSpan");a=Math.round(a);var b=this.Ui;b!==a&&(1>a&&x.la(a,">= 1",O,"rowSpan"),this.Ui=a,this.T(),this.j("rowSpan",b,a))});x.defineProperty(O,{hy:"spanAllocation"},function(){return this.Ls},function(a){var b=this.Ls;b!==a&&(null!==a&&x.g(a,"function",O,"spanAllocation"),this.Ls=a,this.j("spanAllocation",b,a))}); x.defineProperty(O,{mk:"alignmentFocus"},function(){return this.tq},function(a){var b=this.tq;b.O(a)||(u&&x.l(a,R,O,"alignmentFocus"),!a.Ce()||a.bd()||a.O(Wb)&&this instanceof E||x.k("GraphObject.alignmentFocus must be a real Spot or Spot.Default, not: "+a),this.tq=a=a.Y(),this.T(),this.j("alignmentFocus",b,a))}); x.defineProperty(O,{Ad:"portId"},function(){return this.fs},function(a){var b=this.fs;if(b!==a){u&&null!==a&&x.g(a,"string",O,"portId");var c=this.ea;null===c||c instanceof E||(x.k("Cannot set portID on a Link: "+a),c=null);null!==b&&null!==c&&em(c,this);this.fs=a;if(null!==a&&c){c.Sh=!0;null===c.Gd&&fm(c);var d=this.Ad;null!==d&&c.Gd.add(d,this)}this.j("portId",b,a)}});function gm(a){var b={value:null};hm(a,b);return b.value} -function hm(a,b){var c=a.V;return null===c||!hm(c,b)&&a.visible?(b.value=a,!1):!0}function bm(a){var b=a.ea;b instanceof E&&(a=a.h,null===a||a.qa.tb||b.nf())}x.defineProperty(O,{Hb:"toSpot"},function(){return null!==this.ma?this.ma.jk:Wb},function(a){this.We();var b=this.ma.jk;b.O(a)||(u&&x.l(a,R,O,"toSpot"),a=a.Y(),this.ma.jk=a,this.j("toSpot",b,a),bm(this))}); -x.defineProperty(O,{dm:"toEndSegmentLength"},function(){return null!==this.ma?this.ma.hk:10},function(a){this.We();var b=this.ma.hk;b!==a&&(u&&x.g(a,"number",O,"toEndSegmentLength"),0>a&&x.la(a,">= 0",O,"toEndSegmentLength"),this.ma.hk=a,this.j("toEndSegmentLength",b,a),bm(this))}); +function hm(a,b){var c=a.V;return null===c||!hm(c,b)&&a.visible?(b.value=a,!1):!0}function bm(a){var b=a.ea;b instanceof E&&(a=a.h,null===a||a.qa.tb||b.of())}x.defineProperty(O,{Hb:"toSpot"},function(){return null!==this.ma?this.ma.jk:Wb},function(a){this.We();var b=this.ma.jk;b.O(a)||(u&&x.l(a,R,O,"toSpot"),a=a.Y(),this.ma.jk=a,this.j("toSpot",b,a),bm(this))}); +x.defineProperty(O,{em:"toEndSegmentLength"},function(){return null!==this.ma?this.ma.hk:10},function(a){this.We();var b=this.ma.hk;b!==a&&(u&&x.g(a,"number",O,"toEndSegmentLength"),0>a&&x.la(a,">= 0",O,"toEndSegmentLength"),this.ma.hk=a,this.j("toEndSegmentLength",b,a),bm(this))}); x.defineProperty(O,{Au:"toEndSegmentDirection"},function(){return null!==this.ma?this.ma.gk:Cl},function(a){this.We();var b=this.ma.gk;b!==a&&(u&&x.Ca(a,E,O,"toEndSegmentDirection"),this.ma.gk=a,this.j("toEndSegmentDirection",b,a),bm(this))});x.defineProperty(O,{Bu:"toShortLength"},function(){return null!==this.ma?this.ma.ik:0},function(a){this.We();var b=this.ma.ik;b!==a&&(u&&x.g(a,"number",O,"toShortLength"),this.ma.ik=a,this.j("toShortLength",b,a),bm(this))}); -x.defineProperty(O,{qG:"toLinkable"},function(){return this.Qs},function(a){var b=this.Qs;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"toLinkable"),this.Qs=a,this.j("toLinkable",b,a))});x.defineProperty(O,{iK:"toMaxLinks"},function(){return this.Rs},function(a){var b=this.Rs;b!==a&&(u&&x.g(a,"number",O,"toMaxLinks"),0>a&&x.la(a,">= 0",O,"toMaxLinks"),this.Rs=a,this.j("toMaxLinks",b,a))}); +x.defineProperty(O,{rG:"toLinkable"},function(){return this.Qs},function(a){var b=this.Qs;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"toLinkable"),this.Qs=a,this.j("toLinkable",b,a))});x.defineProperty(O,{iK:"toMaxLinks"},function(){return this.Rs},function(a){var b=this.Rs;b!==a&&(u&&x.g(a,"number",O,"toMaxLinks"),0>a&&x.la(a,">= 0",O,"toMaxLinks"),this.Rs=a,this.j("toMaxLinks",b,a))}); x.defineProperty(O,{Gb:"fromSpot"},function(){return null!==this.ma?this.ma.Hj:Wb},function(a){this.We();var b=this.ma.Hj;b.O(a)||(u&&x.l(a,R,O,"fromSpot"),a=a.Y(),this.ma.Hj=a,this.j("fromSpot",b,a),bm(this))});x.defineProperty(O,{Ll:"fromEndSegmentLength"},function(){return null!==this.ma?this.ma.Fj:10},function(a){this.We();var b=this.ma.Fj;b!==a&&(u&&x.g(a,"number",O,"fromEndSegmentLength"),0>a&&x.la(a,">= 0",O,"fromEndSegmentLength"),this.ma.Fj=a,this.j("fromEndSegmentLength",b,a),bm(this))}); x.defineProperty(O,{Dt:"fromEndSegmentDirection"},function(){return null!==this.ma?this.ma.Ej:Cl},function(a){this.We();var b=this.ma.Ej;b!==a&&(u&&x.Ca(a,E,O,"fromEndSegmentDirection"),this.ma.Ej=a,this.j("fromEndSegmentDirection",b,a),bm(this))});x.defineProperty(O,{Et:"fromShortLength"},function(){return null!==this.ma?this.ma.Gj:0},function(a){this.We();var b=this.ma.Gj;b!==a&&(u&&x.g(a,"number",O,"fromShortLength"),this.ma.Gj=a,this.j("fromShortLength",b,a),bm(this))}); -x.defineProperty(O,{UE:"fromLinkable"},function(){return this.br},function(a){var b=this.br;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"fromLinkable"),this.br=a,this.j("fromLinkable",b,a))});x.defineProperty(O,{uI:"fromMaxLinks"},function(){return this.cr},function(a){var b=this.cr;b!==a&&(u&&x.g(a,"number",O,"fromMaxLinks"),0>a&&x.la(a,">= 0",O,"fromMaxLinks"),this.cr=a,this.j("fromMaxLinks",b,a))}); +x.defineProperty(O,{VE:"fromLinkable"},function(){return this.br},function(a){var b=this.br;b!==a&&(u&&null!==a&&x.g(a,"boolean",O,"fromLinkable"),this.br=a,this.j("fromLinkable",b,a))});x.defineProperty(O,{uI:"fromMaxLinks"},function(){return this.cr},function(a){var b=this.cr;b!==a&&(u&&x.g(a,"number",O,"fromMaxLinks"),0>a&&x.la(a,">= 0",O,"fromMaxLinks"),this.cr=a,this.j("fromMaxLinks",b,a))}); x.defineProperty(O,{cursor:"cursor"},function(){return this.Kq},function(a){var b=this.Kq;b!==a&&(x.g(a,"string",O,"cursor"),this.Kq=a,this.j("cursor",b,a))});x.defineProperty(O,{click:"click"},function(){return null!==this.na?this.na.wi:null},function(a){zl(this);var b=this.na.wi;b!==a&&(null!==a&&x.g(a,"function",O,"click"),this.na.wi=a,this.j("click",b,a))}); -x.defineProperty(O,{tt:"doubleClick"},function(){return null!==this.na?this.na.Ei:null},function(a){zl(this);var b=this.na.Ei;b!==a&&(null!==a&&x.g(a,"function",O,"doubleClick"),this.na.Ei=a,this.j("doubleClick",b,a))});x.defineProperty(O,{aA:"contextClick"},function(){return null!==this.na?this.na.zi:null},function(a){zl(this);var b=this.na.zi;b!==a&&(null!==a&&x.g(a,"function",O,"contextClick"),this.na.zi=a,this.j("contextClick",b,a))}); +x.defineProperty(O,{tt:"doubleClick"},function(){return null!==this.na?this.na.Ei:null},function(a){zl(this);var b=this.na.Ei;b!==a&&(null!==a&&x.g(a,"function",O,"doubleClick"),this.na.Ei=a,this.j("doubleClick",b,a))});x.defineProperty(O,{bA:"contextClick"},function(){return null!==this.na?this.na.zi:null},function(a){zl(this);var b=this.na.zi;b!==a&&(null!==a&&x.g(a,"function",O,"contextClick"),this.na.zi=a,this.j("contextClick",b,a))}); x.defineProperty(O,{$t:"mouseEnter"},function(){return null!==this.na?this.na.Rr:null},function(a){zl(this);var b=this.na.Rr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseEnter"),this.na.Rr=a,this.j("mouseEnter",b,a))});x.defineProperty(O,{au:"mouseLeave"},function(){return null!==this.na?this.na.Sr:null},function(a){zl(this);var b=this.na.Sr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseLeave"),this.na.Sr=a,this.j("mouseLeave",b,a))}); -x.defineProperty(O,{LA:"mouseOver"},function(){return null!==this.na?this.na.Qi:null},function(a){zl(this);var b=this.na.Qi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseOver"),this.na.Qi=a,this.j("mouseOver",b,a))});x.defineProperty(O,{KA:"mouseHover"},function(){return null!==this.na?this.na.Pi:null},function(a){zl(this);var b=this.na.Pi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseHover"),this.na.Pi=a,this.j("mouseHover",b,a))}); -x.defineProperty(O,{JA:"mouseHold"},function(){return null!==this.na?this.na.Oi:null},function(a){zl(this);var b=this.na.Oi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseHold"),this.na.Oi=a,this.j("mouseHold",b,a))});x.defineProperty(O,{uJ:"mouseDragEnter"},function(){return null!==this.na?this.na.Pr:null},function(a){zl(this);var b=this.na.Pr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDragEnter"),this.na.Pr=a,this.j("mouseDragEnter",b,a))}); -x.defineProperty(O,{vJ:"mouseDragLeave"},function(){return null!==this.na?this.na.Qr:null},function(a){zl(this);var b=this.na.Qr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDragLeave"),this.na.Qr=a,this.j("mouseDragLeave",b,a))});x.defineProperty(O,{IA:"mouseDrop"},function(){return null!==this.na?this.na.Ni:null},function(a){zl(this);var b=this.na.Ni;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDrop"),this.na.Ni=a,this.j("mouseDrop",b,a))}); -x.defineProperty(O,{YD:"actionDown"},function(){return null!==this.na?this.na.oq:null},function(a){zl(this);var b=this.na.oq;b!==a&&(null!==a&&x.g(a,"function",O,"actionDown"),this.na.oq=a,this.j("actionDown",b,a))});x.defineProperty(O,{ZD:"actionMove"},function(){return null!==this.na?this.na.pq:null},function(a){zl(this);var b=this.na.pq;b!==a&&(null!==a&&x.g(a,"function",O,"actionMove"),this.na.pq=a,this.j("actionMove",b,a))}); -x.defineProperty(O,{$D:"actionUp"},function(){return null!==this.na?this.na.qq:null},function(a){zl(this);var b=this.na.qq;b!==a&&(null!==a&&x.g(a,"function",O,"actionUp"),this.na.qq=a,this.j("actionUp",b,a))});x.defineProperty(O,{XD:"actionCancel"},function(){return null!==this.na?this.na.nq:null},function(a){zl(this);var b=this.na.nq;b!==a&&(null!==a&&x.g(a,"function",O,"actionCancel"),this.na.nq=a,this.j("actionCancel",b,a))}); -x.defineProperty(O,{qB:"toolTip"},function(){return null!==this.na?this.na.Yi:null},function(a){zl(this);var b=this.na.Yi;b!==a&&(null!==a&&x.l(a,fa,O,"toolTip"),this.na.Yi=a,this.j("toolTip",b,a))});x.defineProperty(O,{contextMenu:"contextMenu"},function(){return null!==this.na?this.na.Ai:null},function(a){zl(this);var b=this.na.Ai;b!==a&&(null!==a&&x.l(a,fa,O,"contextMenu"),this.na.Ai=a,this.j("contextMenu",b,a))}); -O.prototype.bind=O.prototype.bind=function(a){a.yg=this;var b=this.vp();null!==b&&im(b)&&x.k("Cannot add a Binding to a template that has already been copied: "+a);null===this.Uc&&(this.Uc=new J(wf));this.Uc.add(a)};O.prototype.findTemplateBinder=O.prototype.vp=function(){for(var a=this instanceof H?this:this.V;null!==a;){if(null!==a.km)return a;a=a.V}return null};O.prototype.setProperties=function(a){x.ru(this,a)};var jm; +x.defineProperty(O,{MA:"mouseOver"},function(){return null!==this.na?this.na.Qi:null},function(a){zl(this);var b=this.na.Qi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseOver"),this.na.Qi=a,this.j("mouseOver",b,a))});x.defineProperty(O,{LA:"mouseHover"},function(){return null!==this.na?this.na.Pi:null},function(a){zl(this);var b=this.na.Pi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseHover"),this.na.Pi=a,this.j("mouseHover",b,a))}); +x.defineProperty(O,{KA:"mouseHold"},function(){return null!==this.na?this.na.Oi:null},function(a){zl(this);var b=this.na.Oi;b!==a&&(null!==a&&x.g(a,"function",O,"mouseHold"),this.na.Oi=a,this.j("mouseHold",b,a))});x.defineProperty(O,{uJ:"mouseDragEnter"},function(){return null!==this.na?this.na.Pr:null},function(a){zl(this);var b=this.na.Pr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDragEnter"),this.na.Pr=a,this.j("mouseDragEnter",b,a))}); +x.defineProperty(O,{vJ:"mouseDragLeave"},function(){return null!==this.na?this.na.Qr:null},function(a){zl(this);var b=this.na.Qr;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDragLeave"),this.na.Qr=a,this.j("mouseDragLeave",b,a))});x.defineProperty(O,{JA:"mouseDrop"},function(){return null!==this.na?this.na.Ni:null},function(a){zl(this);var b=this.na.Ni;b!==a&&(null!==a&&x.g(a,"function",O,"mouseDrop"),this.na.Ni=a,this.j("mouseDrop",b,a))}); +x.defineProperty(O,{ZD:"actionDown"},function(){return null!==this.na?this.na.oq:null},function(a){zl(this);var b=this.na.oq;b!==a&&(null!==a&&x.g(a,"function",O,"actionDown"),this.na.oq=a,this.j("actionDown",b,a))});x.defineProperty(O,{$D:"actionMove"},function(){return null!==this.na?this.na.pq:null},function(a){zl(this);var b=this.na.pq;b!==a&&(null!==a&&x.g(a,"function",O,"actionMove"),this.na.pq=a,this.j("actionMove",b,a))}); +x.defineProperty(O,{aE:"actionUp"},function(){return null!==this.na?this.na.qq:null},function(a){zl(this);var b=this.na.qq;b!==a&&(null!==a&&x.g(a,"function",O,"actionUp"),this.na.qq=a,this.j("actionUp",b,a))});x.defineProperty(O,{YD:"actionCancel"},function(){return null!==this.na?this.na.nq:null},function(a){zl(this);var b=this.na.nq;b!==a&&(null!==a&&x.g(a,"function",O,"actionCancel"),this.na.nq=a,this.j("actionCancel",b,a))}); +x.defineProperty(O,{rB:"toolTip"},function(){return null!==this.na?this.na.Yi:null},function(a){zl(this);var b=this.na.Yi;b!==a&&(null!==a&&x.l(a,fa,O,"toolTip"),this.na.Yi=a,this.j("toolTip",b,a))});x.defineProperty(O,{contextMenu:"contextMenu"},function(){return null!==this.na?this.na.Ai:null},function(a){zl(this);var b=this.na.Ai;b!==a&&(null!==a&&x.l(a,fa,O,"contextMenu"),this.na.Ai=a,this.j("contextMenu",b,a))}); +O.prototype.bind=O.prototype.bind=function(a){a.yg=this;var b=this.vp();null!==b&&im(b)&&x.k("Cannot add a Binding to a template that has already been copied: "+a);null===this.Uc&&(this.Uc=new J(wf));this.Uc.add(a)};O.prototype.findTemplateBinder=O.prototype.vp=function(){for(var a=this instanceof H?this:this.V;null!==a;){if(null!==a.lm)return a;a=a.V}return null};O.prototype.setProperties=function(a){x.ru(this,a)};var jm; O.make=jm=function(a,b){var c=arguments,d=null,e=null;if("function"===typeof a)e=a;else if("string"===typeof a){var g=km.oa(a);"function"===typeof g?(c=x.Bl(arguments),d=g(c)):e=ca[a]}null===d&&(void 0===e&&(d=window.$,void 0!==d&&void 0!==d.noop&&x.k("GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)"),x.k("GraphObject.make failed to complete, it may be conflicting with another var.")),null!==e&&e.constructor||x.k("GraphObject.make requires a class function or class name, not: "+ a),d=new e);g=1;if(d instanceof z&&1e)&&x.k("Must specify non-negative integer row for RowColumnDefinition "+ b+", not: "+e),a.qe=!0,a.index=e):void 0!==b.column&&(e=b.column,(void 0===e||null===e||Infinity===e||isNaN(e)||0>e)&&x.k("Must specify non-negative integer column for RowColumnDefinition "+b+", not: "+e),a.qe=!1,a.index=e);e=new pa;for(c in b)"row"!==c&&"column"!==c&&(e[c]=b[c]);x.ru(a,e)}else x.ru(a,b);else x.k('Unknown initializer "'+b+'" for object being constructed by GraphObject.make: '+a)}var km=new ra("string","function"); O.getBuilders=function(){var a=new ra("string","function"),b;for(b in km)if(b!==b.toLowerCase()){var c=km[b];"function"===typeof c&&a.add(b,c)}a.freeze();return a};var Vm;O.defineBuilder=Vm=function(a,b){x.g(a,"string",O,"defineBuilder:name");x.g(b,"function",O,"defineBuilder:func");var c=a.toLowerCase();""!==a&&"none"!==c&&a!==c||x.k("Shape.defineFigureGenerator name must not be empty or None or all-lower-case: "+a);km.add(a,b)};var Wm; O.takeBuilderArgument=Wm=function(a,b,c){void 0===c&&(c=null);var d=a[1];if("function"===typeof c?c(d):"string"===typeof d)return a.splice(1,1),d;if(void 0===b)throw Error("no "+("function"===typeof c?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return b}; Vm("Button",function(){var a=new Ea($e);a.addColorStop(0,"white");a.addColorStop(1,"lightgray");var b=new Ea($e);b.addColorStop(0,"white");b.addColorStop(1,"dodgerblue");a=jm(H,vj,{Kt:!0},{_buttonFillNormal:a,_buttonStrokeNormal:"gray",_buttonFillOver:b,_buttonStrokeOver:"blue"},jm(Y,{name:"ButtonBorder",Jb:"Rectangle",C:new R(0,0,2.761423749153968,2.761423749153968),D:new R(1,1,-2.761423749153968,-2.761423749153968),fill:a,stroke:"gray"}));a.$t=function(a,b){var e=b.me("ButtonBorder");if(e instanceof Y){var g=b._buttonFillOver;b._buttonFillNormal=e.fill;e.fill=g;g=b._buttonStrokeOver;b._buttonStrokeNormal=e.stroke;e.stroke=g}};a.au=function(a,b){var e=b.me("ButtonBorder");e instanceof Y&&(e.fill=b._buttonFillNormal,e.stroke=b._buttonStrokeNormal)};return a}); -Vm("TreeExpanderButton",function(){var a=jm("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},jm(Y,{name:"ButtonIcon",Jb:"MinusLine",Ba:Q.lq},(new wf("figure","isTreeExpanded",function(a,c){var d=c.V;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).Gx()),{visible:!1},(new wf("visible","isTreeLeaf",function(a){return!a})).Gx());a.click=function(a,c){var d=c.ea;d instanceof fa&&(d=d.kh);if(d instanceof E){var e=d.h;if(null!==e){e=e.zb;if(d.xd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; +Vm("TreeExpanderButton",function(){var a=jm("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},jm(Y,{name:"ButtonIcon",Jb:"MinusLine",Ba:Q.lq},(new wf("figure","isTreeExpanded",function(a,c){var d=c.V;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).Hx()),{visible:!1},(new wf("visible","isTreeLeaf",function(a){return!a})).Hx());a.click=function(a,c){var d=c.ea;d instanceof fa&&(d=d.kh);if(d instanceof E){var e=d.h;if(null!==e){e=e.zb;if(d.xd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; a.Mc=!0;d.xd?e.collapseTree(d):e.expandTree(d)}}};return a}); -Vm("SubGraphExpanderButton",function(){var a=jm("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},jm(Y,{name:"ButtonIcon",Jb:"MinusLine",Ba:Q.lq},(new wf("figure","isSubGraphExpanded",function(a,c){var d=c.V;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).Gx()));a.click=function(a,c){var d=c.ea;d instanceof fa&&(d=d.kh);if(d instanceof F){var e=d.h;if(null!==e){e=e.zb;if(d.re){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.Mc= +Vm("SubGraphExpanderButton",function(){var a=jm("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},jm(Y,{name:"ButtonIcon",Jb:"MinusLine",Ba:Q.lq},(new wf("figure","isSubGraphExpanded",function(a,c){var d=c.V;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).Hx()));a.click=function(a,c){var d=c.ea;d instanceof fa&&(d=d.kh);if(d instanceof F){var e=d.h;if(null!==e){e=e.zb;if(d.re){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.Mc= !0;d.re?e.collapseSubGraph(d):e.expandSubGraph(d)}}};return a});Vm("ContextMenuButton",function(){var a=jm("Button");a.stretch=yl;var b=a.me("ButtonBorder");b instanceof Y&&(b.Jb="Rectangle",b.C=new R(0,0,2,3),b.D=new R(1,1,-2,-2));return a}); -Vm("PanelExpanderButton",function(a){var b=Wm(a,"COLLAPSIBLE");a=jm("Button",jm(Y,"TriangleUp",{Ba:new Fa(6,4)},(new wf("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).Gx(b)));var c=a.me("ButtonBorder");c instanceof Y&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var g=c.h;if(null!==g&&!g.kb){var h=c.ea.me(b);null!==h&&(g.Wb("Collapse/Expand Panel"),h.visible=!h.visible,g.Nd("Collapse/Expand Panel"))}};return a}); -Vm("CheckBoxButton",function(a){var b=Wm(a);a=jm("Button",{"ButtonBorder.fill":"white","ButtonBorder.stroke":"gray",width:14,height:14},jm(Y,{name:"ButtonIcon",vI:"M0 4 L3 9 9 0",yb:2,stretch:xd,pA:Jh,visible:!1},""!==b?(new wf("visible",b)).kJ():[]));a.click=function(a,d){if(!(a.h.kb||""!==b&&a.h.aa.kb)){a.Mc=!0;var e=d.me("ButtonIcon");e.h.Wb("checkbox");e.visible=!e.visible;"function"===typeof d._doClick&&d._doClick(a,d);e.h.Nd("checkbox")}};return a}); +Vm("PanelExpanderButton",function(a){var b=Wm(a,"COLLAPSIBLE");a=jm("Button",jm(Y,"TriangleUp",{Ba:new Fa(6,4)},(new wf("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).Hx(b)));var c=a.me("ButtonBorder");c instanceof Y&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var g=c.h;if(null!==g&&!g.kb){var h=c.ea.me(b);null!==h&&(g.Wb("Collapse/Expand Panel"),h.visible=!h.visible,g.Nd("Collapse/Expand Panel"))}};return a}); +Vm("CheckBoxButton",function(a){var b=Wm(a);a=jm("Button",{"ButtonBorder.fill":"white","ButtonBorder.stroke":"gray",width:14,height:14},jm(Y,{name:"ButtonIcon",vI:"M0 4 L3 9 9 0",yb:2,stretch:xd,qA:Jh,visible:!1},""!==b?(new wf("visible",b)).kJ():[]));a.click=function(a,d){if(!(a.h.kb||""!==b&&a.h.aa.kb)){a.Mc=!0;var e=d.me("ButtonIcon");e.h.Wb("checkbox");e.visible=!e.visible;"function"===typeof d._doClick&&d._doClick(a,d);e.h.Nd("checkbox")}};return a}); Vm("CheckBox",function(a){a=Wm(a);a=jm("CheckBoxButton",a,{name:"Button",margin:new yb(0,1,0,0)});var b=jm(H,"Horizontal",a,{Kt:!0,margin:1,_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,$t:a.$t,au:a.au,click:a.click,_buttonClick:a.click});a.$t=null;a.au=null;a.click=null;return b}); function Al(){this.Ai=this.Yi=this.nq=this.qq=this.pq=this.oq=this.Ni=this.Qr=this.Pr=this.Oi=this.Pi=this.Qi=this.Sr=this.Rr=this.zi=this.Ei=this.wi=null}Al.prototype.copy=function(){var a=new Al;a.wi=this.wi;a.Ei=this.Ei;a.zi=this.zi;a.Rr=this.Rr;a.Sr=this.Sr;a.Qi=this.Qi;a.Pi=this.Pi;a.Oi=this.Oi;a.Pr=this.Pr;a.Qr=this.Qr;a.Ni=this.Ni;a.oq=this.oq;a.pq=this.pq;a.qq=this.qq;a.nq=this.nq;a.Yi=this.Yi;a.Ai=this.Ai;return a}; -function H(a){O.call(this);void 0===a?0===arguments.length?this.da=Mh:x.k("invalid argument to Panel constructor: undefined"):(x.Ca(a,H,H,"type"),this.da=a);this.wa=new J(O);this.ef=Q.mq;this.Yg=!1;this.da===yj&&(this.Yg=!0);this.kr=!1;this.Oq=Jc;this.Di=wl;this.da===ia&&Xm(this);this.cp=Jh;this.fr=Q.PG;this.gr=Q.Ek;this.km=this.Ne=null;this.wr=NaN;this.rg=this.Ki=null;this.Co="category";this.qg=null;this.$i=new w(NaN,NaN,NaN,NaN);this.Tm=null;this.Sh=!1;this.us=null}x.Qa(H,O);x.li(H); -x.ja("Panel",H);function Xm(a){a.Bj=Q.mq;a.Ph=1;a.Ci=null;a.pm=null;a.Oh=1;a.Nh=null;a.om=null;a.Wd=[];a.Sd=[];a.Pm=Ym;a.mm=Ym;a.Zi=0;a.Li=0} -H.prototype.cloneProtected=function(a){O.prototype.cloneProtected.call(this,a);a.da=this.da;a.ef=this.ef.Y();a.Yg=this.Yg;a.kr=this.kr;a.Oq=this.Oq.Y();a.Di=this.Di;if(a.da===ia){a.Bj=this.Bj.Y();a.Ph=this.Ph;a.Ci=this.Ci;a.pm=this.pm;a.Oh=this.Oh;a.Nh=this.Nh;a.om=this.om;var b=[];if(0a&&x.la(a,">= 0",H,"padding"),a=new yb(a)):(x.l(a,yb,H,"padding"),0>a.left&&x.la(a.left,">= 0",H,"padding:value.left"),0>a.right&&x.la(a.right,">= 0",H,"padding:value.right"),0>a.top&&x.la(a.top,">= 0",H,"padding:value.top"),0>a.bottom&&x.la(a.bottom,">= 0",H,"padding:value.bottom"));var b=this.ef;b.O(a)||(this.ef=a=a.Y(),this.T(),this.j("padding",b,a))}); x.defineProperty(H,{Fl:"defaultAlignment"},function(){return this.Oq},function(a){var b=this.Oq;b.O(a)||(u&&x.l(a,R,H,"defaultAlignment"),this.Oq=a=a.Y(),this.T(),this.j("defaultAlignment",b,a))});x.defineProperty(H,{Xd:"defaultStretch"},function(){return this.Di},function(a){var b=this.Di;b!==a&&(x.Ca(a,O,H,"defaultStretch"),this.Di=a,this.T(),this.j("defaultStretch",b,a))}); x.defineProperty(H,{cL:"defaultSeparatorPadding"},function(){return void 0===this.Bj?Q.mq:this.Bj},function(a){if(void 0!==this.Bj){"number"===typeof a?a=new yb(a):u&&x.l(a,yb,H,"defaultSeparatorPadding");var b=this.Bj;b.O(a)||(this.Bj=a=a.Y(),this.j("defaultSeparatorPadding",b,a))}}); x.defineProperty(H,{aL:"defaultRowSeparatorStroke"},function(){return void 0===this.Ci?null:this.Ci},function(a){var b=this.Ci;b!==a&&(null===a||"string"===typeof a||a instanceof Ea)&&(a instanceof Ea&&a.freeze(),this.Ci=a,this.j("defaultRowSeparatorStroke",b,a))});x.defineProperty(H,{bL:"defaultRowSeparatorStrokeWidth"},function(){return void 0===this.Ph?1:this.Ph},function(a){if(void 0!==this.Ph){var b=this.Ph;b!==a&&isFinite(a)&&0<=a&&(this.Ph=a,this.j("defaultRowSeparatorStrokeWidth",b,a))}}); -x.defineProperty(H,{$K:"defaultRowSeparatorDashArray"},function(){return void 0===this.pm?null:this.pm},function(a){if(void 0!==this.pm){var b=this.pm;if(b!==a){null===a||Array.isArray(a)||x.jc(a,"Array",H,"defaultRowSeparatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e=c&&(c=1);var d=this.nx,e=d.width,d=d.height,g=this.Ga,h=g.width,g=g.height,k=Math.ceil(h/e),l=Math.ceil(g/d),m=this.ZE;a.save();a.beginPath();a.rect(0,0,h,g);a.clip();for(var n=[],p=this.wa.o,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===A.Jb){a.lineWidth= +x.defineProperty(H,{ox:"gridCellSize"},function(){return this.fr},function(a){var b=this.fr;b.O(a)||(x.l(a,Fa,H,"gridCellSize"),a.G()&&0!==a.width&&0!==a.height||x.k("Invalid Panel.gridCellSize: "+a),this.fr=a.Y(),null!==this.h&&this===this.h.Ft&&Qj(this.h),this.ua(),this.j("gridCellSize",b,a))}); +x.defineProperty(H,{$E:"gridOrigin"},function(){return this.gr},function(a){var b=this.gr;b.O(a)||(x.l(a,N,H,"gridOrigin"),a.G()||x.k("Invalid Panel.gridOrigin: "+a),this.gr=a.Y(),null!==this.h&&Qj(this.h),this.ua(),this.j("gridOrigin",b,a))});f=H.prototype;f.Wv=function(a){O.prototype.Wv.call(this,a);for(var b=this.wa.o,c=b.length,d=0;d=c&&(c=1);var d=this.ox,e=d.width,d=d.height,g=this.Ga,h=g.width,g=g.height,k=Math.ceil(h/e),l=Math.ceil(g/d),m=this.$E;a.save();a.beginPath();a.rect(0,0,h,g);a.clip();for(var n=[],p=this.wa.o,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===A.Jb){a.lineWidth= A.yb;Tl(this,a,A.stroke,!1,!1);a.beginPath();for(M=y=Math.floor(-m.y/d);M<=y+l&&!(I=M*d+m.y,0<=I&&I<=g&&Zm(M,s,t)&&(v&&!B?Dl(a,0,I,h,I,C,A.vd):(a.moveTo(0,I),a.lineTo(h,I)),2>d*s*c));M++);a.stroke()}else if("BarV"===A.Jb)for(Tl(this,a,A.fill,!0,!1),A=A.width,isNaN(A)&&(A=e),M=y=Math.floor(-m.x/e);M<=y+k&&!(I=M*e+m.x,0<=I&&Ie*s*c));M++);else if("BarH"===A.Jb)for(Tl(this,a,A.fill,!0,!1),A=A.height,isNaN(A)&&(A=d),M=y=Math.floor(-m.y/d);M<=y+l&&!(I=M*d+m.y,0<=I&& -I<=g&&Zm(M,s,t)&&(a.fillRect(0,I,h,A),2>d*s*c));M++);v&&(void 0!==a.setLineDash?(a.setLineDash(x.Jh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=x.Jh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();da(b,a,!1)}else{this.da===ia&&(a.lineCap="butt",$m(this,a,!0,this.Wd,!0),$m(this,a,!1,this.Sd,!0),an(this,a,!0,this.Wd),an(this,a,!1,this.Sd),$m(this,a,!0,this.Wd,!1),$m(this,a,!1,this.Sd,!1));(c=this.jF)&&a.save();e=this.Bf();d=this.wa.o; +I<=g&&Zm(M,s,t)&&(a.fillRect(0,I,h,A),2>d*s*c));M++);v&&(void 0!==a.setLineDash?(a.setLineDash(x.Jh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=x.Jh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();da(b,a,!1)}else{this.da===ia&&(a.lineCap="butt",$m(this,a,!0,this.Wd,!0),$m(this,a,!1,this.Sd,!0),an(this,a,!0,this.Wd),an(this,a,!1,this.Sd),$m(this,a,!0,this.Wd,!1),$m(this,a,!1,this.Sd,!1));(c=this.kF)&&a.save();e=this.jf();d=this.wa.o; h=d.length;for(g=0;gg.height)continue}else if(l.position>g.width)continue;var m=l.dq;isNaN(m)&&(m=c?a.Ph:a.Oh);var n=l.cq;null===n&&(n=c?a.Ci:a.Nh);if(0!==m&&null!==n){Tl(a,b,n,!1,!1);var n=!1,p=!0,q=l.UJ;null!==q&&(n=!0,void 0!==b.setLineDash?(b.setLineDash(q),b.lineDashOffset=a.vd):void 0!==b.webkitLineDash?(b.webkitLineDash=q,b.webkitLineDashOffset=a.vd):void 0!==b.mozDash? (b.mozDash=q,b.mozDashOffset=a.vd):p=!1);b.beginPath();var r=l.position+m;c?r>g.height&&(m-=r-g.height):r>g.width&&(m-=r-g.width);l=l.position+m/2;b.lineWidth=m;r=a.padding;c?(l+=r.top,m=r.left,r=g.width-r.right,n&&!p?Dl(b,m,l,r,l,q,0):(b.moveTo(m,l),b.lineTo(r,l))):(l+=r.left,m=r.top,r=g.height-r.bottom,n&&!p?Dl(b,l,m,l,r,q,0):(b.moveTo(l,m),b.lineTo(l,r)));b.stroke();n&&(void 0!==b.setLineDash?(b.setLineDash(x.Jh),b.lineDashOffset=0):void 0!==b.webkitLineDash?(b.webkitLineDash=x.Jh,b.webkitLineDashOffset= 0):void 0!==b.mozDash&&(b.mozDash=null,b.mozDashOffset=0))}}}} -function $m(a,b,c,d,e){for(var g=d.length,h=a.ba,k=0;km)){var n=l.zf(),p=l.dq;isNaN(p)&&(p=c?a.Ph:a.Oh);var q=l.cq;null===q&&(q=c?a.Ci:a.Nh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Ua;p+n>m&&(n=m-p);0>=n||(m=a.padding,Tl(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} +function $m(a,b,c,d,e){for(var g=d.length,h=a.ba,k=0;km)){var n=l.Af(),p=l.dq;isNaN(p)&&(p=c?a.Ph:a.Oh);var q=l.cq;null===q&&(q=c?a.Ci:a.Nh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Ua;p+n>m&&(n=m-p);0>=n||(m=a.padding,Tl(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} function Zm(a,b,c){if(0!==a%b)return!1;b=c.length;for(var d=0;drd&&(Fc=Math.max(rd-ad,0));var ch=0===aa.Ua;aa.Ua+=Fc;rd=Math.max(rd-(Fc+(ch?ad:0)),0)}1!==ha.yi||$d!==Hh&&$d!==xl||(aa=this.md(uc),ad=aa.zf(),Fc=Math.max(Ke-aa.Ua,0),Fc+ad>Ec&&(Fc=Math.max(Ec-ad,0)),ch=0===aa.Ua,aa.Ua+=Fc,Ec=Math.max(Ec-(Fc+(ch?ad:0)),0));Fg&&ha.Ep()}}}x.ya(bh);for(var pe=0,qe=0,Ka=this.lp,ga=0;gard&&(Fc=Math.max(rd-ad,0));var ch=0===aa.Ua;aa.Ua+=Fc;rd=Math.max(rd-(Fc+(ch?ad:0)),0)}1!==ha.yi||$d!==Hh&&$d!==xl||(aa=this.md(uc),ad=aa.Af(),Fc=Math.max(Ke-aa.Ua,0),Fc+ad>Ec&&(Fc=Math.max(Ec-ad,0)),ch=0===aa.Ua,aa.Ua+=Fc,Ec=Math.max(Ec-(Fc+(ch?ad:0)),0));Fg&&ha.Ep()}}}x.ya(bh);for(var pe=0,qe=0,Ka=this.lp,ga=0;ga=this.bq);bb++)aa=this.nd(ha.ac+bb),yf.height+=Math.max(aa.qj,isNaN(aa.ff)?aa.qf:Math.min(aa.ff,aa.qf));for(bb=1;bb=this.lp);bb++)aa=this.md(ha.column+bb),yf.width+=Math.max(aa.qj,isNaN(aa.ff)?aa.qf:Math.min(aa.ff,aa.qf));db.width+=yf.width;db.height+=yf.height;Tb=ha.margin;Uf=Tb.right+Tb.left;Vf=Tb.top+Tb.bottom;ji(ha,db.width,db.height,Dg,Si);for(var Je=ha.Ia,Ke=Math.max(Je.width+Uf,0),sd=Math.max(Je.height+ -Vf,0),Le=0,bb=0;bb=this.bq);bb++)aa=this.nd(ha.ac+bb),Le+=aa.total||0;if(Le=vc)&&!(ha.ac+bb>=this.bq);bb++){var aa=this.nd(ha.ac+bb),Cb=aa.mb||0,ae=Gg(ha,aa,Uh);u&&"number"!==typeof ae&&x.k(ha+" spanAllocation does not return a number: "+ae);aa.Ua=Math.min(aa.qf,Cb+ae);aa.mb!==Cb&&(vc-=aa.mb-Cb)}for(;0Cb&&(aa.Ua=Math.min(aa.qf,Cb+vc),aa.mb!==Cb&&(vc-=aa.mb-Cb)); -if(0===aa.index)break;aa=this.nd(aa.index-1)}}for(var Zf=0,bb=0;bb=this.lp);bb++)aa=this.md(ha.column+bb),Zf+=aa.total||0;if(Zf=vc)&&!(ha.column+bb>=this.lp);bb++)aa=this.md(ha.column+bb),Cb=aa.mb||0,ae=Gg(ha,aa,Uh),u&&"number"!==typeof ae&&x.k(ha+" spanAllocation does not return a number: "+ae),aa.Ua=Math.min(aa.qf,Cb+ae),aa.mb!==Cb&&(vc-=aa.mb-Cb);for(;0Cb&&(aa.Ua= -Math.min(aa.qf,Cb+vc),aa.mb!==Cb&&(vc-=aa.mb-Cb));if(0===aa.index)break;aa=this.md(aa.index-1)}}}x.ya($c);x.tk(yf);x.tk(db);for(var se=0,$f=0,$d=Il(this,!0),zf=this.Ba,hf=this.De,te=qe=pe=0,ue=0,Ka=this.lp,ga=0;ga=this.bq);bb++)aa=this.nd(ha.ac+bb),yf.height+=Math.max(aa.qj,isNaN(aa.ff)?aa.rf:Math.min(aa.ff,aa.rf));for(bb=1;bb=this.lp);bb++)aa=this.md(ha.column+bb),yf.width+=Math.max(aa.qj,isNaN(aa.ff)?aa.rf:Math.min(aa.ff,aa.rf));db.width+=yf.width;db.height+=yf.height;Tb=ha.margin;Uf=Tb.right+Tb.left;Vf=Tb.top+Tb.bottom;ji(ha,db.width,db.height,Dg,Si);for(var Je=ha.Ia,Ke=Math.max(Je.width+Uf,0),sd=Math.max(Je.height+ +Vf,0),Le=0,bb=0;bb=this.bq);bb++)aa=this.nd(ha.ac+bb),Le+=aa.total||0;if(Le=vc)&&!(ha.ac+bb>=this.bq);bb++){var aa=this.nd(ha.ac+bb),Cb=aa.mb||0,ae=Gg(ha,aa,Uh);u&&"number"!==typeof ae&&x.k(ha+" spanAllocation does not return a number: "+ae);aa.Ua=Math.min(aa.rf,Cb+ae);aa.mb!==Cb&&(vc-=aa.mb-Cb)}for(;0Cb&&(aa.Ua=Math.min(aa.rf,Cb+vc),aa.mb!==Cb&&(vc-=aa.mb-Cb)); +if(0===aa.index)break;aa=this.nd(aa.index-1)}}for(var Zf=0,bb=0;bb=this.lp);bb++)aa=this.md(ha.column+bb),Zf+=aa.total||0;if(Zf=vc)&&!(ha.column+bb>=this.lp);bb++)aa=this.md(ha.column+bb),Cb=aa.mb||0,ae=Gg(ha,aa,Uh),u&&"number"!==typeof ae&&x.k(ha+" spanAllocation does not return a number: "+ae),aa.Ua=Math.min(aa.rf,Cb+ae),aa.mb!==Cb&&(vc-=aa.mb-Cb);for(;0Cb&&(aa.Ua= +Math.min(aa.rf,Cb+vc),aa.mb!==Cb&&(vc-=aa.mb-Cb));if(0===aa.index)break;aa=this.md(aa.index-1)}}}x.ya($c);x.tk(yf);x.tk(db);for(var se=0,$f=0,$d=Il(this,!0),zf=this.Ba,hf=this.De,te=qe=pe=0,ue=0,Ka=this.lp,ga=0;gaWh)ji(Ub,Infinity,Infinity),ce=Ub.Ia,Ne.si(ce),this.Tg.add(ce);else{var bg=Ub.Fe,jq=Ub.Ux,Km=Ub.mk;Km.Ce()&&(Km=dc);var Xi=Ub.qu,es=Ub.bG,Yi=0,Zi=0,Bk=0;if(bg<-Wh||bg>=Wh){var kq=Hg.zF, -$i=Hg.yF;Xi!==uh&&(Bk=Hg.computeAngle(Ub,Xi,$i),Ub.im=Bk);Yi=kq.x-kf.x;Zi=kq.y-kf.y}else{var Af,Yh;if(0<=bg)Af=Vi.ia(bg),Yh=bgWh)ji(Ub,Infinity,Infinity),ce=Ub.Ia,Ne.si(ce),this.Tg.add(ce);else{var bg=Ub.Fe,jq=Ub.Vx,Km=Ub.mk;Km.Ce()&&(Km=dc);var Xi=Ub.qu,es=Ub.cG,Yi=0,Zi=0,Bk=0;if(bg<-Wh||bg>=Wh){var kq=Hg.AF, +$i=Hg.zF;Xi!==uh&&(Bk=Hg.computeAngle(Ub,Xi,$i),Ub.jm=Bk);Yi=kq.x-kf.x;Zi=kq.y-kf.y}else{var Af,Yh;if(0<=bg)Af=Vi.ia(bg),Yh=bgc||p>d)this.T(),ji(this,n>c?c:n,p>d?d:p);break;case xd:this.T(!0);ji(this,c+r,d+s,0,0);break;case yl:this.T(!0);ji(this,c+r,p+s,0,0);break;case xl:this.T(!0),ji(this,n+r,d+s,0,0)}}k=this.ba;k.x=a;k.y= -b;k.width=c;k.height=d;var t=this.da.Vb;switch(t){case "Position":for(var v=g.length,y=e.x-this.padding.left,A=e.y-this.padding.top,B=0;B=this.bq);ga++){var ha=this.nd(Rb+ga);Bb.height+=ha.total}for(ga=1;ga=this.lp);ga++){var Zc=this.md(Gd+ga);Bb.width+=Zc.total}var ah=Yd.mb+Bb.width,Ph=Yc.mb+Bb.height;h.x=Zb;h.y=Ge;h.width=ah;h.height=Ph;var uc=Zb,Qh=Ge,$b=ah,bh=Ph;Zb+ah>e.width&&($b=Math.max(e.width-Zb,0));Ge+Ph>e.height&&(bh=Math.max(e.height-Ge,0));var $c=Ka.alignment,me=0,Mc=0,qd=0,Ec=0;if($c.bd()){$c= +for(var Sb=Math.min(this.Zi,rc-1);Sb!==rc&&(void 0===this.Wd[Sb]||0===this.Wd[Sb].mb);)Sb++;for(var Sb=Math.min(Sb,rc-1),le=-this.Wd[Sb].fb,sc=Math.min(this.Li,Fb-1);sc!==Fb&&(void 0===this.Sd[sc]||0===this.Sd[sc].mb);)sc++;for(var sc=Math.min(sc,Fb-1),tc=-this.Sd[sc].fb,Bb=x.dm(),Rb=0;Rb=this.bq);ga++){var ha=this.nd(Rb+ga);Bb.height+=ha.total}for(ga=1;ga=this.lp);ga++){var Zc=this.md(Gd+ga);Bb.width+=Zc.total}var ah=Yd.mb+Bb.width,Ph=Yc.mb+Bb.height;h.x=Zb;h.y=Ge;h.width=ah;h.height=Ph;var uc=Zb,Qh=Ge,$b=ah,bh=Ph;Zb+ah>e.width&&($b=Math.max(e.width-Zb,0));Ge+Ph>e.height&&(bh=Math.max(e.height-Ge,0));var $c=Ka.alignment,me=0,Mc=0,qd=0,Ec=0;if($c.bd()){$c= this.Fl;$c.cd()||($c=dc);var me=$c.x,Mc=$c.y,qd=$c.offsetX,Ec=$c.offsetY,rd=Yd.alignment,Sf=Yc.alignment;rd.cd()&&(me=rd.x,qd=rd.offsetX);Sf.cd()&&(Mc=Sf.y,Ec=Sf.offsetY)}else me=$c.x,Mc=$c.y,qd=$c.offsetX,Ec=$c.offsetY;if(isNaN(me)||isNaN(Mc))Mc=me=.5,Ec=qd=0;var aa=He.width,ne=He.height,Ie=Ka.margin,Rh=Ie.left+Ie.right,Sh=Ie.top+Ie.bottom,Fc=$l(Ka,Yc,Yd,!1);!isNaN(Ka.Ba.width)||Fc!==xd&&Fc!==yl||(aa=Math.max(ah-Rh,0));!isNaN(Ka.Ba.height)||Fc!==xd&&Fc!==xl||(ne=Math.max(Ph-Sh,0));var pb=Ka.De,qb= Ka.Kf,aa=Math.min(pb.width,aa),ne=Math.min(pb.height,ne),aa=Math.max(qb.width,aa),ne=Math.max(qb.height,ne),qk=ne+Sh;h.x+=h.width*me-(aa+Rh)*me+qd+Ie.left;h.y+=h.height*Mc-qk*Mc+Ec+Ie.top;Ka.visible&&(Gb(uc,Qh,$b,bh,h.x,h.y,He.width,He.height)?Ka.Kc(h.x,h.y,aa,ne):Ka.Kc(h.x,h.y,aa,ne,new w(uc,Qh,$b,bh)))}else{Ka.Hi();Ka.Yb.Va();var Tf=Ka.Yb;Tf.x=Zd.type===Ml?$g:Zb;Tf.y=Zd.type===Nl?Cg:Ge;Tf.width=He.width;Tf.height=He.height;Ka.Yb.freeze();Kl(Ka,!1)}}x.tk(Bb);for(Rb=0;Rb=Wf){var Uh=this.zF,Gg=this.yF;Yf!==uh&&(vc=this.computeAngle(Nc,Yf,Gg),Nc.angle=vc);bb=Uh.x;Le=Uh.y}else{var Cb=void 0,ae=void 0;if(0<=db)Cb=Xf.o[db],ae=db=Wf){var Uh=this.AF,Gg=this.zF;Yf!==uh&&(vc=this.computeAngle(Nc,Yf,Gg),Nc.angle=vc);bb=Uh.x;Le=Uh.y}else{var Cb=void 0,ae=void 0;if(0<=db)Cb=Xf.o[db],ae=dbp.width||n.y>p.height||0>n.x+n.width||0>n.y+n.height)){n=m;m=m instanceof H?m:null;p=x.Hh();p.set(h);if(null!==m?m.sk(a,b,c,d,e,p):Hl(n,a,d,p))null!== -b&&(n=b(n)),null===n||null!==c&&!c(n)||e.add(n);x.kf(p)}}}void 0===g&&x.kf(h);return d}void 0===g&&x.kf(h);return!1};function mn(a,b,c,d){for(var e=a.wa.o,g=e.length;g--;){var h=e[g];if(h.visible){var k=h.ba,l=a.Ga;k.x>l.width||k.y>l.height||0>k.x+k.width||0>k.y+k.height||(h instanceof H&&mn(h,b,c,d),null!==b&&(h=b(h)),null===h||null!==c&&!c(h)||d.add(h))}}} -f.mn=function(a,b,c,d,e,g){if(!1===this.ig)return!1;void 0===c&&(c=null);void 0===d&&(d=null);var h=this.Ga,k=this.Pg(),l=k?a:rb(x.Xb(a.x,a.y),this.transform),m=k?b:rb(x.Xb(b.x,b.y),this.transform),n=l.qk(m),p=0s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.Pg()?(r=q.transform,rb(k.set(a),r),rb(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof H?q:null,null!==q?!q.mn(k,l,c,d,e,g):!r.RE(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||g.add(r))}}x.A(k);x.A(l)}return e? +f.sk=function(a,b,c,d,e,g){if(!1===this.ig)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=g;void 0===g&&(h=x.Hh(),h.reset());h.multiply(this.transform);if(this.fn(a,h))return mn(this,b,c,e),void 0===g&&x.lf(h),!0;if(this.Hg(a,h)){if(!this.Yg)for(var k=this.wa.o,l=k.length;l--;){var m=k[l];if(m.visible||m===this.$b){var n=m.ba,p=this.Ga;if(!(n.x>p.width||n.y>p.height||0>n.x+n.width||0>n.y+n.height)){n=m;m=m instanceof H?m:null;p=x.Hh();p.set(h);if(null!==m?m.sk(a,b,c,d,e,p):Hl(n,a,d,p))null!== +b&&(n=b(n)),null===n||null!==c&&!c(n)||e.add(n);x.lf(p)}}}void 0===g&&x.lf(h);return d}void 0===g&&x.lf(h);return!1};function mn(a,b,c,d){for(var e=a.wa.o,g=e.length;g--;){var h=e[g];if(h.visible){var k=h.ba,l=a.Ga;k.x>l.width||k.y>l.height||0>k.x+k.width||0>k.y+k.height||(h instanceof H&&mn(h,b,c,d),null!==b&&(h=b(h)),null===h||null!==c&&!c(h)||d.add(h))}}} +f.nn=function(a,b,c,d,e,g){if(!1===this.ig)return!1;void 0===c&&(c=null);void 0===d&&(d=null);var h=this.Ga,k=this.Pg(),l=k?a:rb(x.Xb(a.x,a.y),this.transform),m=k?b:rb(x.Xb(b.x,b.y),this.transform),n=l.qk(m),p=0s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.Pg()?(r=q.transform,rb(k.set(a),r),rb(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof H?q:null,null!==q?!q.nn(k,l,c,d,e,g):!r.SE(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||g.add(r))}}x.A(k);x.A(l)}return e? p:h}return!1};function bn(a){var b=a.C;if(void 0===b||b===Jc)b=null;null===b&&a instanceof Y&&(a=a.eb,null!==a&&(b=a.C));null===b&&(b=Xb);return b}function cn(a){var b=a.D;if(void 0===b||b===Jc)b=null;null===b&&a instanceof Y&&(a=a.eb,null!==a&&(b=a.D));null===b&&(b=lc);return b}H.prototype.add=H.prototype.add=function(a){x.l(a,O,H,"add:element");this.Od(this.wa.count,a)};H.prototype.elt=H.prototype.ia=function(a){return this.wa.ia(a)}; -H.prototype.insertAt=H.prototype.Od=function(a,b){b instanceof D&&x.k("Cannot add a Part to a Panel: "+b);if(this===b||this.Tl(b))this===b&&x.k("Cannot make a Panel contain itself: "+this.toString()),x.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.V;null!==c&&c!==this&&x.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ -this.toString());this.da!==yj||b instanceof Y||x.k("Can only add Shapes to a Grid Panel, not: "+b);b.Zl(this);b.Jm=null;if(null!==this.Rt){var d=b.data;null!==d&&"object"===typeof d&&(null===this.qg&&(this.qg=new ra(Object,H)),this.qg.add(d,b))}var e=this.wa,d=-1;if(c===this){for(var g=-1,h=this.wa.o,k=h.length,l=0;l=e.count&&a>=e.count)return;e.dd(g);d=g}else x.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> +H.prototype.insertAt=H.prototype.Od=function(a,b){b instanceof D&&x.k("Cannot add a Part to a Panel: "+b);if(this===b||this.Ul(b))this===b&&x.k("Cannot make a Panel contain itself: "+this.toString()),x.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.V;null!==c&&c!==this&&x.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ +this.toString());this.da!==yj||b instanceof Y||x.k("Can only add Shapes to a Grid Panel, not: "+b);b.$l(this);b.Km=null;if(null!==this.Rt){var d=b.data;null!==d&&"object"===typeof d&&(null===this.qg&&(this.qg=new ra(Object,H)),this.qg.add(d,b))}var e=this.wa,d=-1;if(c===this){for(var g=-1,h=this.wa.o,k=h.length,l=0;l=e.count&&a>=e.count)return;e.dd(g);d=g}else x.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> a||a>e.count)a=e.count;e.Od(a,b);this.T();b.T();null!==b.Ad?this.Sh=!0:b instanceof H&&!0===b.Sh&&(this.Sh=!0);c=this.ea;null!==c&&(c.kl=null,c.Sj=NaN,this.Sh&&c instanceof E&&(c.Sh=!0),c.Sh&&(c.Gd=null),e=this.h,null!==e&&e.qa.tb||(-1!==d&&c.Rc(ze,"elements",this,b,null,d,null),c.Rc(ye,"elements",this,null,b,null,a)))};H.prototype.remove=H.prototype.remove=function(a){x.l(a,O,H,"remove:element");for(var b=this.wa.o,c=b.length,d=-1,e=0;ea&&x.la(a,">= 0",H,"getRowDefinition:idx");a=Math.round(a);var b=this.Wd;if(void 0===b[a]){var c=new sf;c.Zl(this);c.qe=!0;c.index=a;b[a]=c}return b[a]};H.prototype.removeRowDefinition=H.prototype.NF=function(a){u&&x.p(a,H,"removeRowDefinition:idx");0>a&&x.la(a,">= 0",H,"removeRowDefinition:idx");a=Math.round(a);var b=this.Wd;this.Rc(ze,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.T()}; -x.w(H,{lp:"columnCount"},function(){return void 0===this.Sd?0:this.Sd.length});H.prototype.getColumnDefinition=H.prototype.md=function(a){u&&x.p(a,H,"getColumnDefinition:idx");0>a&&x.la(a,">= 0",H,"getColumnDefinition:idx");a=Math.round(a);var b=this.Sd;if(void 0===b[a]){var c=new sf;c.Zl(this);c.qe=!1;c.index=a;b[a]=c}return b[a]}; -H.prototype.removeColumnDefinition=H.prototype.JF=function(a){u&&x.p(a,H,"removeColumnDefinition:idx");0>a&&x.la(a,">= 0",H,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Sd;this.Rc(ze,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.T()}; -x.defineProperty(H,{QJ:"rowSizing"},function(){return void 0===this.Pm?Ym:this.Pm},function(a){if(void 0!==this.Pm){var b=this.Pm;b!==a&&(a!==Ym&&a!==en&&x.k("Panel.rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.Pm=a,this.T(),this.j("rowSizing",b,a))}}); -x.defineProperty(H,{JH:"columnSizing"},function(){return void 0===this.mm?Ym:this.mm},function(a){if(void 0!==this.mm){var b=this.mm;b!==a&&(a!==Ym&&a!==en&&x.k("Panel.columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.mm=a,this.T(),this.j("columnSizing",b,a))}}); -x.defineProperty(H,{tG:"topIndex"},function(){return void 0===this.Zi?0:this.Zi},function(a){if(void 0!==this.Zi){var b=this.Zi;b!==a&&((!isFinite(a)||0>a)&&x.k("Panel.topIndex must be greater than zero and a real number, not: "+a),this.Zi=a,this.T(),this.j("topIndex",b,a))}}); -x.defineProperty(H,{uF:"leftIndex"},function(){return void 0===this.Li?0:this.Li},function(a){if(void 0!==this.Li){var b=this.Li;b!==a&&((!isFinite(a)||0>a)&&x.k("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.Li=a,this.T(),this.j("leftIndex",b,a))}});H.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==ia)return NaN;for(var b=0,c=this.Wd,d=c.length,e=this.Zi;ea&&x.la(a,">= 0",H,"getRowDefinition:idx");a=Math.round(a);var b=this.Wd;if(void 0===b[a]){var c=new sf;c.$l(this);c.qe=!0;c.index=a;b[a]=c}return b[a]};H.prototype.removeRowDefinition=H.prototype.OF=function(a){u&&x.p(a,H,"removeRowDefinition:idx");0>a&&x.la(a,">= 0",H,"removeRowDefinition:idx");a=Math.round(a);var b=this.Wd;this.Rc(ze,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.T()}; +x.w(H,{lp:"columnCount"},function(){return void 0===this.Sd?0:this.Sd.length});H.prototype.getColumnDefinition=H.prototype.md=function(a){u&&x.p(a,H,"getColumnDefinition:idx");0>a&&x.la(a,">= 0",H,"getColumnDefinition:idx");a=Math.round(a);var b=this.Sd;if(void 0===b[a]){var c=new sf;c.$l(this);c.qe=!1;c.index=a;b[a]=c}return b[a]}; +H.prototype.removeColumnDefinition=H.prototype.KF=function(a){u&&x.p(a,H,"removeColumnDefinition:idx");0>a&&x.la(a,">= 0",H,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Sd;this.Rc(ze,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.T()}; +x.defineProperty(H,{QJ:"rowSizing"},function(){return void 0===this.Qm?Ym:this.Qm},function(a){if(void 0!==this.Qm){var b=this.Qm;b!==a&&(a!==Ym&&a!==en&&x.k("Panel.rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.Qm=a,this.T(),this.j("rowSizing",b,a))}}); +x.defineProperty(H,{KH:"columnSizing"},function(){return void 0===this.nm?Ym:this.nm},function(a){if(void 0!==this.nm){var b=this.nm;b!==a&&(a!==Ym&&a!==en&&x.k("Panel.columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.nm=a,this.T(),this.j("columnSizing",b,a))}}); +x.defineProperty(H,{uG:"topIndex"},function(){return void 0===this.Zi?0:this.Zi},function(a){if(void 0!==this.Zi){var b=this.Zi;b!==a&&((!isFinite(a)||0>a)&&x.k("Panel.topIndex must be greater than zero and a real number, not: "+a),this.Zi=a,this.T(),this.j("topIndex",b,a))}}); +x.defineProperty(H,{vF:"leftIndex"},function(){return void 0===this.Li?0:this.Li},function(a){if(void 0!==this.Li){var b=this.Li;b!==a&&((!isFinite(a)||0>a)&&x.k("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.Li=a,this.T(),this.j("leftIndex",b,a))}});H.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==ia)return NaN;for(var b=0,c=this.Wd,d=c.length,e=this.Zi;ea)return-1;if(this.type!==ia)return NaN;for(var b=0,c=this.Sd,d=c.length,e=this.Li;e=c.elements.count&&!(c instanceof D)){if(1===c.elements.count){var d=null!==c.Rt;if(!d)for(var e=b.i;e.next();)if("itemArray"===e.value.zu){d=!0;break}}d||(x.trace("Auto or Spot Panel should not have zero or one elements: "+ +x.defineProperty(H,{ZI:"itemIndex"},function(){return this.wr},function(a){var b=this.wr;b!==a&&(this.wr=a,this.j("itemIndex",b,a))});function im(a){a=a.lm;return null!==a&&a.H} +function Kf(a){var b=a.lm;if(null===b)null!==a.data&&x.k("Template cannot have .data be non-null: "+a),a.lm=b=new J(wf);else if(b.H)return;var c=new J(O);gn(a,a,function(a,d){var e=d.Uc;if(null!==e)for(cm(d,!1),e=e.i;e.next();){var g=e.value;g.mode===Cf&&cm(d,!0);if(null!==g.Fn){var h=Df(g,a,d);null!==h&&(c.add(h),null===h.Uo&&(h.Uo=new J(wf)),h.Uo.add(g))}b.add(g)}if(d instanceof H&&d.type===ia){if(0=c.elements.count&&!(c instanceof D)){if(1===c.elements.count){var d=null!==c.Rt;if(!d)for(var e=b.i;e.next();)if("itemArray"===e.value.zu){d=!0;break}}d||(x.trace("Auto or Spot Panel should not have zero or one elements: "+ c.toString()+" in "+a.toString()),nn=!0)}}))}var nn=!1; -H.prototype.updateTargetBindings=H.prototype.Ob=function(a){var b=this.km;if(null!==b)for(void 0===a&&(a=""),b=b.i;b.next();){var c=b.value,d=c.lG;if(""===a||""===d||d===a)if(d=c.zu,null!==c.PH||""!==d){var d=this.data,e=c.Fn;if(null!==e)d=""===e?this:"."===e?this:".."===e?this:this.me(e);else{var g=this.h;null!==g&&c.Qt&&(d=g.aa.yk)}if(null===d)u&&x.trace("Binding error: missing GraphObject named "+e+" in "+this.toString());else{var g=this,h=c.bm;if(-1!==h){if(g=this.ix(h),null===g)continue}else null!== -c.yg&&(g=c.yg);"."===e?d=g:".."===e&&(d=g.V);e=c.Iz;if(0!==e){if(!(g instanceof H))continue;h=g;1===e?g=h.md(c.Aw):2===e&&(g=h.nd(c.Aw))}void 0!==g&&c.DG(g,d)}}}};x.defineProperty(H,{Rt:"itemArray"},function(){return this.Ki},function(a){var b=this.Ki;if(b!==a){u&&null!==a&&!x.isArray(a)&&x.k("Panel.itemArray must be an Array-like object or null, not: "+a);var c=this.h;null!==c&&null!==b&&lk(c,this);this.Ki=a;null!==c&&null!==a&&hk(c,this);this.j("itemArray",b,a);null!==c&&c.qa.tb||this.ZA()}}); -function Nk(a){return a.type===Fh||a.type===vj||a.type===rh||a.type===ia&&0a;)this.Xe(a);a=this.Rt;if(null!==a)for(var b=x.ab(a),c=0;ca;)this.Xe(a);a=this.Rt;if(null!==a)for(var b=x.ab(a),c=0;cc)){var d;d=on(a,b);var e=a.$I,g=null;null!==e&&(g=e.oa(d));null===g&&(pn||(pn=!0,x.trace('No item template Panel found for category "'+d+'" on '+a),x.trace(" Using default item template."),d=new H,e=new sa,e.bind(new wf("text","",la)),d.add(e),qn=d),g=qn);d=g;null!==d&&(Kf(d),d=d.copy(),"object"===typeof b&&(null===a.qg&&(a.qg=new ra(Object,H)),a.qg.add(b,d)),e=c,Nk(a)&&e++,a.Od(e,d),Ok(a,e,c),d.data=b)}} function Ok(a,b,c){for(a=a.wa;ba&&x.la(a,">= 0",sf,"height"),this.ff=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("height",b,a))});x.defineProperty(sf,{width:"width"},function(){return this.ff},function(a){var b=this.ff;b!==a&&(u&&x.g(a,"number",sf,"width"),0>a&&x.la(a,">= 0",sf,"width"),this.ff=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("width",b,a))}); -x.defineProperty(sf,{qj:"minimum"},function(){return this.Wj},function(a){var b=this.Wj;b!==a&&(u&&x.g(a,"number",sf,"minimum"),(0>a||!isFinite(a))&&x.la(a,">= 0",sf,"minimum"),this.Wj=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("minimum",b,a))});x.defineProperty(sf,{qf:"maximum"},function(){return this.Uj},function(a){var b=this.Uj;b!==a&&(u&&x.g(a,"number",sf,"maximum"),0>a&&x.la(a,">= 0",sf,"maximum"),this.Uj=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("maximum",b,a))}); +x.defineProperty(sf,{qj:"minimum"},function(){return this.Wj},function(a){var b=this.Wj;b!==a&&(u&&x.g(a,"number",sf,"minimum"),(0>a||!isFinite(a))&&x.la(a,">= 0",sf,"minimum"),this.Wj=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("minimum",b,a))});x.defineProperty(sf,{rf:"maximum"},function(){return this.Uj},function(a){var b=this.Uj;b!==a&&(u&&x.g(a,"number",sf,"maximum"),0>a&&x.la(a,">= 0",sf,"maximum"),this.Uj=a,this.Ua=this.mb,null!==this.V&&this.V.T(),this.kd("maximum",b,a))}); x.defineProperty(sf,{alignment:"alignment"},function(){return this.Le},function(a){var b=this.Le;b.O(a)||(u&&x.l(a,R,sf,"alignment"),this.Le=a.Y(),null!==this.V&&this.V.T(),this.kd("alignment",b,a))});x.defineProperty(sf,{stretch:"stretch"},function(){return this.gi},function(a){var b=this.gi;b!==a&&(u&&x.Ca(a,O,sf,"stretch"),this.gi=a,null!==this.V&&this.V.T(),this.kd("stretch",b,a))}); -x.defineProperty(sf,{eG:"separatorPadding"},function(){return this.ak},function(a){"number"===typeof a?a=new yb(a):null!==a&&u&&x.l(a,yb,sf,"separatorPadding");var b=this.ak;null!==a&&null!==b&&b.O(a)||(null!==a&&(a=a.Y()),this.ak=a,null!==this.V&&this.V.T(),this.kd("separatorPadding",b,a))}); +x.defineProperty(sf,{fG:"separatorPadding"},function(){return this.ak},function(a){"number"===typeof a?a=new yb(a):null!==a&&u&&x.l(a,yb,sf,"separatorPadding");var b=this.ak;null!==a&&null!==b&&b.O(a)||(null!==a&&(a=a.Y()),this.ak=a,null!==this.V&&this.V.T(),this.kd("separatorPadding",b,a))}); x.defineProperty(sf,{cq:"separatorStroke"},function(){return this.Es},function(a){var b=this.Es;b!==a&&(null===a||"string"===typeof a||a instanceof Ea)&&(a instanceof Ea&&a.freeze(),this.Es=a,null!==this.V&&this.V.T(),this.kd("separatorStroke",b,a))});x.defineProperty(sf,{dq:"separatorStrokeWidth"},function(){return this.Fs},function(a){var b=this.Fs;b!==a&&(this.Fs=a,null!==this.V&&this.V.T(),this.kd("separatorStrokeWidth",b,a))}); x.defineProperty(sf,{UJ:"separatorDashArray"},function(){return this.$h},function(a){var b=this.$h;if(b!==a){null===a||Array.isArray(a)||x.jc(a,"Array",sf,"separatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;en)){for(var h=c[0],k=c[1],p=0,q=0,r=0,s=l=0,t=q=0,v=x.ub(),y=2;yp&&(p=1);c=p;for(var n=0,m=c,y=g/2,q=0===y?!1:!0,A=0,l=v[A],p=l[0],s=l[1],r=l[2],l=l[3],B=0;.1<=t;){0===B&&(q?(m=c,n++,m-=y,t-=y,q= !1):(m=c,n++),0===m&&(m=1));if(m>t){x.ya(v);return}m>l?(B=m-l,m=l):B=0;var C=Math.sqrt(m*m/(1+r*r));0>p&&(C=-C);h+=C;k+=r*C;a.translate(h,k);a.rotate(s);a.translate(-(g/2),-(e/2));0===B&&d.rk(a,b);a.translate(g/2,e/2);a.rotate(-s);a.translate(-h,-k);t-=m;l-=m;if(0!==B){A++;if(A===v.length){x.ya(v);return}l=v[A];p=l[0];s=l[1];r=l[2];l=l[3];m=B}}x.ya(v)}} -Y.prototype.rk=function(a,b){if(null!==this.Jc||null!==this.Dd){null!==this.Dd&&Tl(this,a,this.Dd,!0,!1);null!==this.Jc&&Tl(this,a,this.Jc,!1,!1);var c=this.ve;if(0===c){var d=this.ea;d instanceof fa&&d.type===rh&&"Selection"===d.Lc&&d.oc instanceof Y&&d.kh.Bf()===d.oc&&(c=d.oc.yb)}a.lineWidth=c;a.lineJoin=this.$o;a.lineCap=this.Yo;a.miterLimit=this.Sm;var e=!1;this.ea&&b.vk("drawShadows")&&(e=this.ea.xk);var g=!0;null!==this.Jc&&null===this.Dd&&(g=!1);var d=!1,h=!0,k=this.nG;null!==k&&(d=!0,void 0!== +Y.prototype.rk=function(a,b){if(null!==this.Jc||null!==this.Dd){null!==this.Dd&&Tl(this,a,this.Dd,!0,!1);null!==this.Jc&&Tl(this,a,this.Jc,!1,!1);var c=this.ve;if(0===c){var d=this.ea;d instanceof fa&&d.type===rh&&"Selection"===d.Lc&&d.oc instanceof Y&&d.kh.jf()===d.oc&&(c=d.oc.yb)}a.lineWidth=c;a.lineJoin=this.$o;a.lineCap=this.Yo;a.miterLimit=this.Tm;var e=!1;this.ea&&b.vk("drawShadows")&&(e=this.ea.xk);var g=!0;null!==this.Jc&&null===this.Dd&&(g=!1);var d=!1,h=!0,k=this.oG;null!==k&&(d=!0,void 0!== a.setLineDash?(a.setLineDash(k),a.lineDashOffset=this.vd):void 0!==a.webkitLineDash?(a.webkitLineDash=k,a.webkitLineDashOffset=this.vd):void 0!==a.mozDash?(a.mozDash=k,a.mozDashOffset=this.vd):h=!1);var l=this.eb;if(null!==l){if(l.da===yd)a.beginPath(),d&&!h?Dl(a,l.wc,l.Cc,l.Db,l.Ib,k,this.vd):(a.moveTo(l.wc,l.Cc),a.lineTo(l.Db,l.Ib)),null!==this.Dd&&Ul(a,this.Dd),0!==c&&null!==this.Jc&&Wl(a);else if(l.da===zd){var m=l.wc,n=l.Cc,p=l.Db,q=l.Ib,l=Math.min(m,p),r=Math.min(n,q),m=Math.abs(p-m),n=Math.abs(q- n);null!==this.Dd&&(a.beginPath(),a.rect(l,r,m,n),Ul(a,this.Dd));if(null!==this.Jc){var s=p=0,t=0;g&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0);d&&!h?(h=x.ub(),h.push(l),h.push(r),h.push(l+m),h.push(r),h.push(l+m),h.push(r+n),h.push(l),h.push(r+n),h.push(l),h.push(r),a.beginPath(),un(a,h,k,this.vd),Wl(a),x.ya(h)):0!==c&&(a.beginPath(),a.rect(l,r,m,n),Wl(a));g&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t)}}else if(l.da===Ad)m= l.wc,n=l.Cc,p=l.Db,q=l.Ib,l=Math.abs(p-m)/2,r=Math.abs(q-n)/2,m=Math.min(m,p)+l,n=Math.min(n,q)+r,a.beginPath(),a.moveTo(m,n-r),a.bezierCurveTo(m+Q.Ka*l,n-r,m+l,n-Q.Ka*r,m+l,n),a.bezierCurveTo(m+l,n+Q.Ka*r,m+Q.Ka*l,n+r,m,n+r),a.bezierCurveTo(m-Q.Ka*l,n+r,m-l,n+Q.Ka*r,m-l,n),a.bezierCurveTo(m-l,n-Q.Ka*r,m-Q.Ka*l,n-r,m,n-r),a.closePath(),null!==this.Dd&&Ul(a,this.Dd),d&&!h&&(h=x.ub(),Q.ze(m,n-r,m+Q.Ka*l,n-r,m+l,n-Q.Ka*r,m+l,n,.5,h),Q.ze(m+l,n,m+l,n+Q.Ka*r,m+Q.Ka*l,n+r,m,n+r,.5,h),Q.ze(m,n+r,m-Q.Ka* l,n+r,m-l,n+Q.Ka*r,m-l,n,.5,h),Q.ze(m-l,n,m-l,n-Q.Ka*r,m-Q.Ka*l,n-r,m,n-r,.5,h),a.beginPath(),un(a,h,k,this.vd),x.ya(h)),0!==c&&null!==this.Jc&&(t=s=p=0,g&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0),Wl(a),g&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t));else if(l.da===vd){r=l.Dj;n=r.length;for(q=0;qy.Nf);else{var v=Sd(y,m),A=v.length;if(0===A){a.lineTo(y.sa,y.Aa);break}for(var B=0;Be)) Y.prototype.ok=function(a,b){var c=this.eb;if(null===c||null===this.fill&&null===this.stroke)return!1;var d=c.Cb,e=this.yb/2;c.type!==yd||b||(e+=2);var g=x.kg();g.assign(d);g.cg(e+2,e+2);if(!g.Na(a))return x.qc(g),!1;d=e+1E-4;if(c.type===yd){if(null===this.stroke)return!1;d=(c.M-c.Ha)*(a.x-c.Ha)+(c.N-c.Da)*(a.y-c.Da);if(0>(c.Ha-c.M)*(a.x-c.M)+(c.Da-c.N)*(a.y-c.N)||0>d)return!1;x.qc(g);return Q.Qd(c.Ha,c.Da,c.M,c.N,e,a.x,a.y)}if(c.type===zd){var h=c.Ha,k=c.Da,l=c.M,m=c.N,c=Math.min(h,l),n=Math.min(k, m),h=Math.abs(l-h),k=Math.abs(m-k);g.x=c;g.y=n;g.width=h;g.height=k;if(null===this.fill){g.cg(-d,-d);if(g.Na(a))return x.qc(g),!1;g.cg(d,d)}null!==this.stroke&&g.cg(e,e);e=g.Na(a);x.qc(g);return e}if(c.type===Ad){h=c.Ha;k=c.Da;l=c.M;m=c.N;c=Math.min(h,l);n=Math.min(k,m);h=Math.abs(l-h);k=Math.abs(m-k);h/=2;k/=2;c=a.x-(c+h);n=a.y-(n+k);if(null===this.fill){h-=d;k-=d;if(0>=h||0>=k||1>=c*c/(h*h)+n*n/(k*k))return x.qc(g),!1;h+=d;k+=d}null!==this.stroke&&(h+=e,k+=e);x.qc(g);return 0>=h||0>=k?!1:1>=c*c/ (h*h)+n*n/(k*k)}if(c.type===vd)return x.qc(g),null===this.fill?fe(c,a.x,a.y,e):c.Na(a,e,1=this.yb)n=Q.wh(p.wc,p.Cc,p.Db,p.Ib,g,h,k,l,e);else{var r=0,s=0;p.wc===p.Db?(r=m,s=0):(b=(p.Ib-p.Cc)/(p.Db-p.wc),s=m/Math.sqrt(1+b*b),r=s*b);d=x.ub();b=new N;Q.wh(p.wc+ -r,p.Cc+s,p.Db+r,p.Ib+s,g,h,k,l,b)&&d.push(b);b=new N;Q.wh(p.wc-r,p.Cc-s,p.Db-r,p.Ib-s,g,h,k,l,b)&&d.push(b);b=new N;Q.wh(p.wc+r,p.Cc+s,p.wc-r,p.Cc-s,g,h,k,l,b)&&d.push(b);b=new N;Q.wh(p.Db+r,p.Ib+s,p.Db-r,p.Ib-s,g,h,k,l,b)&&d.push(b);b=d.length;if(0===b)return x.ya(d),!1;n=!0;s=Infinity;for(r=0;rMath.abs(c)){n=h-b-c*(g-d);if(0>a*a*c*c+v*v-n*n){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(a*a*c*c+v*v-n*n);k=(-(a*a*c*n)+a*v*m)/(v*v+a*a*c*c)+d;a=(-(a*a*c*n)-a*v*m)/(v*v+a*a*c*c)+d;l=c*(k-d)+n+b;b=c*(a-d)+n+b;d=Math.abs((g-k)*(g-k))+Math.abs((h-l)*(h-l));h=Math.abs((g-a)*(g-a))+Math.abs((h-b)* (h-b));dk){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(k);l=b+m;b-=m;d=Math.abs(l-h);h=Math.abs(b-h);dc?a-c:c-a)<(b>d?b-d:d-b)?(e=be||Q.jb(l.y,e))&&(l.ye||Q.jb(l.x,e))&&(l.x=h&&d<=a}a=h&&g<=a} -Y.prototype.RE=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.ok(a,!0))return!0;var e=a.qk(b);b=e;1.5=h&&d<=a}a=h&&g<=a} +Y.prototype.SE=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.ok(a,!0))return!0;var e=a.qk(b);b=e;1.5=e||tb(b,g,0,-p)>=e||tb(b,g,0,p)>=e||tb(b,g,n, 0)>=e?!1:!0}else if(g.type===vd){h=g.Cb;k=h.x;l=h.y;m=h.x+h.width;h=h.y+h.height;if(a.x>m&&a.xh&&a.ye&&sb(a.x,a.y,k,l,m,l)>e&&sb(a.x,a.y,m,h,k,h)>e&&sb(a.x,a.y,m,h,m,l)>e)return!1;b=Math.sqrt(e);if(c){if(null===this.fill?fe(g,a.x,a.y,b):g.Na(a,b,!0))return!0}else{c=g.ec;for(b=0;be)return!1;l=k.Eb.o;m=l.length;for(h=0;he)return!1;break;case Od:g= x.ub();Q.ze(n,p,q.zc,q.Qc,q.Ch,q.Dh,q.M,q.N,.8,g);n=d(g,a);x.ya(g);if(n)return!1;n=q.M;p=q.N;if(a.qp(n,p)>e)return!1;break;case Pd:g=x.ub();Q.Vp(n,p,q.zc,q.Qc,q.M,q.N,.8,g);n=d(g,a);x.ya(g);if(n)return!1;n=q.M;p=q.N;if(a.qp(n,p)>e)return!1;break;case Qd:case Rd:var r=q.type===Qd?Sd(q,k):de(q,k,n,p),s=r.length;if(0===s){n=q.sa;p=q.Aa;if(a.qp(n,p)>e)return!1;break}q=null;g=x.ub();for(b=0;b= 0",Y,"strokeWidth:value")}); x.defineProperty(Y,{mM:"strokeCap"},function(){return this.Yo},function(a){var b=this.Yo;b!==a&&("string"!==typeof a||"butt"!==a&&"round"!==a&&"square"!==a?x.la(a,'"butt", "round", or "square"',Y,"strokeCap"):(this.Yo=a,this.ua(),this.j("strokeCap",b,a)))}); x.defineProperty(Y,{oM:"strokeJoin"},function(){return this.$o},function(a){var b=this.$o;b!==a&&("string"!==typeof a||"miter"!==a&&"bevel"!==a&&"round"!==a?x.la(a,'"miter", "bevel", or "round"',Y,"strokeJoin"):(this.$o=a,this.ua(),this.j("strokeJoin",b,a)))}); -x.defineProperty(Y,{pM:"strokeMiterLimit"},function(){return this.Sm},function(a){var b=this.Sm;if(b!==a)if(u&&x.p(a,Y,"strokeMiterLimit"),1<=a){this.Sm=a;this.ua();var c=this.ea;null!==c&&(c.Sj=NaN);this.j("strokeMiterLimit",b,a)}else x.la(a,"value >= 1",Y,"strokeWidth:value")}); -x.defineProperty(Y,{nG:"strokeDashArray"},function(){return this.Zo},function(a){var b=this.Zo;if(b!==a){null===a||Array.isArray(a)||x.jc(a,"Array",Y,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e= 1",Y,"strokeWidth:value")}); +x.defineProperty(Y,{oG:"strokeDashArray"},function(){return this.Zo},function(a){var b=this.Zo;if(b!==a){null===a||Array.isArray(a)||x.jc(a,"Array",Y,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;em*k*k&&(h=!0);b.$e!==a&&(h=!1);!1===b.vk("textGreeking")&&(h=!1);for(var m=this.ck,k=this.dk,l=this.Qe,n=0;nc&&(p=c);var g=g+m,r=q,q=a,s=g,t=c, +x.w(sa,{Ga:"naturalBounds"},function(){if(!this.Wc.G()){var a=On(this,this.we,this.Pj,999999).width,b=Pn(this,a,this.Pj),c=this.Ba;isNaN(c.width)||(a=c.width);isNaN(c.height)||(b=c.height);vb(this.Wc,a,b)}return this.Wc});x.defineProperty(sa,{yx:"isMultiline"},function(){return this.nr},function(a){var b=this.nr;b!==a&&(u&&x.g(a,"boolean",sa,"isMultiline"),this.nr=a,this.T(),this.j("isMultiline",b,a))}); +x.defineProperty(sa,{xL:"isUnderline"},function(){return this.vm},function(a){var b=this.vm;b!==a&&(u&&x.g(a,"boolean",sa,"isUnderline"),this.vm=a,this.ua(),this.j("isUnderline",b,a))});x.defineProperty(sa,{vL:"isStrikethrough"},function(){return this.um},function(a){var b=this.um;b!==a&&(u&&x.g(a,"boolean",sa,"isStrikethrough"),this.um=a,this.ua(),this.j("isStrikethrough",b,a))}); +x.defineProperty(sa,{HG:"wrap"},function(){return this.Ym},function(a){var b=this.Ym;b!==a&&(u&&x.Ca(a,sa,sa,"wrap"),this.Ym=a,this.T(),this.j("wrap",b,a))});x.defineProperty(sa,{overflow:"overflow"},function(){return this.ol},function(a){var b=this.ol;b!==a&&(u&&x.Ca(a,sa,sa,"overflow"),this.ol=a,this.T(),this.j("overflow",b,a))}); +x.defineProperty(sa,{stroke:"stroke"},function(){return this.Jc},function(a){var b=this.Jc;b!==a&&(u&&null!==a&&x.lt(a,"TextBlock.stroke"),a instanceof Ea&&a.freeze(),this.Jc=a,this.ua(),this.j("stroke",b,a))});x.w(sa,{eJ:"lineCount"},function(){return this.Qe});x.defineProperty(sa,{lA:"editable"},function(){return this.Zq},function(a){var b=this.Zq;b!==a&&(u&&x.g(a,"boolean",sa,"editable"),this.Zq=a,this.j("editable",b,a))}); +x.defineProperty(sa,{qG:"textEditor"},function(){return this.Ps},function(a){var b=this.Ps;b!==a&&(a instanceof HTMLElement||x.k("textEditor must be an HTMLElement, not: "+a),this.Ps=a,this.j("textEditor",b,a))});x.defineProperty(sa,{mA:"errorFunction"},function(){return this.wf},function(a){var b=this.wf;b!==a&&(null!==a&&x.g(a,"function",sa,"errorFunction"),this.wf=a,this.j("errorFunction",b,a))});function Ql(a,b){var c=a.Wg;null!==c&&b.Hu!==c&&(b.font=c,b.Hu=c)} +sa.prototype.rk=function(a,b){if(null!==this.Jc&&0!==this.we.length&&null!==this.Wg){var c=this.Ga.width,d=Qn(this);a.textAlign=this.Ld;Tl(this,a,this.Jc,!0,!1);(this.vm||this.um)&&Tl(this,a,this.Jc,!1,!1);var e=this.Pj,g=0,h=!1,k=x.Xb(0,0);this.lh.Fb(k);var l=x.Xb(0,d);this.lh.Fb(l);var m=k.qk(l);x.A(k);x.A(l);k=b.scale;8>m*k*k&&(h=!0);b.$e!==a&&(h=!1);!1===b.vk("textGreeking")&&(h=!1);for(var m=this.ck,k=this.dk,l=this.Qe,n=0;nc&&(p=c);var g=g+m,r=q,q=a,s=g,t=c, v=d,y=0;h?("start"===this.Ld||"left"===this.Ld?y=0:"end"===this.Ld||"right"===this.Ld?y=t-p:"center"===this.Ld?y=(t-p)/2:x.k("textAlign must be start, end, left, right, or center: "+this.Ld),q.fillRect(0+y,s+.25*v,p,1)):("start"===this.Ld||"left"===this.Ld?y=0:"end"===this.Ld||"right"===this.Ld?y=t:"center"===this.Ld?y=t/2:x.k("textAlign must be start, end, left, right, or center: "+this.Ld),q.fillText(r,0+y,s+v-.25*v),r=v/20|0,0===r&&(r=1),"end"===this.Ld||"right"===this.Ld?y-=p:"center"===this.Ld&& -(y-=p/2),this.um&&(q.beginPath(),q.lineWidth=r,q.moveTo(0+y,s+v-.2*v),q.lineTo(0+y+p,s+v-.2*v),q.stroke()),this.tm&&(q.beginPath(),q.lineWidth=r,s=s+v-v/2.2|0,0!==r%2&&(s+=.5),q.moveTo(0+y,s),q.lineTo(0+y+p,s),q.stroke()));g+=d+k}}}; -sa.prototype.Mp=function(a,b,c,d){this.Iv=a;var e=this.Pj;e.reset();var g=0,h=0;if(isNaN(this.Ba.width)){g=this.we.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(0===g.length)g=0;else if(this.xx){for(var k=h=0,l=!1;!l;){var m=g.indexOf("\n",k);-1===m&&(m=g.length,l=!0);k=Rn(g.substr(k,m-k).replace(/^\s+|\s+$/g,""),this.Wg);k>h&&(h=k);k=m+1}g=h}else h=g.indexOf("\n",0),0<=h&&(g=g.substr(0,h)),g=k=Rn(g,this.Wg);g=Math.min(g,a/this.scale);g=Math.max(8,g)}else g=this.Ba.width;null!==this.V&&(g=Math.min(g, -this.V.De.width),g=Math.max(g,this.V.Kf.width));h=Pn(this,g,e);m=h=isNaN(this.Ba.height)?Math.min(h,b/this.scale):this.Ba.height;if(0!==e.df&&1!==e.Me.length&&this.ol===Mn&&(b=this.Wg,l=this.ol===Mn?Sn(b):0,k=this.ck+this.dk,k=Math.max(0,Qn(this)+k),m=Math.min(this.mJ-1,Math.max(Math.floor(m/k)-1,0)),!(m+1>=e.Me.length))){k=e.Me[m];for(a=Math.max(1,a-l);Rn(k,b)>a&&1=a.Mi)return new Fa(0,l);if(a.Xm===Kn){c.aj=1;g=Rn(b,k);if(0===h||g<=d)return c.df=g,c.tf.push(c.df),c.Me.push(b),new Fa(g,l);var m=Tn(b);b=b.substr(m.length);for(var n=Tn(b),g=Rn(m+n,k);0d&&1d;){n=1;g=Rn(m.substr(0,n),k);for(h=0;g<=d;)n++,h=g,g=Rn(m.substr(0,n),k);1===n?(c.tf[a.Qe+p]=g,e=Math.max(e,g)):(c.tf[a.Qe+p]=h,e=Math.max(e,h));n--;1>n&&(n=1);c.Me[a.Qe+p]=m.substr(0,n);p++;m=m.substr(n);if(a.Qe+p>a.Mi)break}n=Tn(b);for(g=Rn(m+n,k);0a.Mi))break}c.aj=Math.min(a.Mi,p);c.df=Math.max(c.df,e);return new Fa(c.df,l*c.aj)}function Tn(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function Rn(a,b){In!==b&&(In=Jn.font=b);return Jn.measureText(a).width} +(y-=p/2),this.vm&&(q.beginPath(),q.lineWidth=r,q.moveTo(0+y,s+v-.2*v),q.lineTo(0+y+p,s+v-.2*v),q.stroke()),this.um&&(q.beginPath(),q.lineWidth=r,s=s+v-v/2.2|0,0!==r%2&&(s+=.5),q.moveTo(0+y,s),q.lineTo(0+y+p,s),q.stroke()));g+=d+k}}}; +sa.prototype.Mp=function(a,b,c,d){this.Iv=a;var e=this.Pj;e.reset();var g=0,h=0;if(isNaN(this.Ba.width)){g=this.we.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(0===g.length)g=0;else if(this.yx){for(var k=h=0,l=!1;!l;){var m=g.indexOf("\n",k);-1===m&&(m=g.length,l=!0);k=Rn(g.substr(k,m-k).replace(/^\s+|\s+$/g,""),this.Wg);k>h&&(h=k);k=m+1}g=h}else h=g.indexOf("\n",0),0<=h&&(g=g.substr(0,h)),g=k=Rn(g,this.Wg);g=Math.min(g,a/this.scale);g=Math.max(8,g)}else g=this.Ba.width;null!==this.V&&(g=Math.min(g, +this.V.De.width),g=Math.max(g,this.V.Kf.width));h=Pn(this,g,e);m=h=isNaN(this.Ba.height)?Math.min(h,b/this.scale):this.Ba.height;if(0!==e.df&&1!==e.Me.length&&this.ol===Mn&&(b=this.Wg,l=this.ol===Mn?Sn(b):0,k=this.ck+this.dk,k=Math.max(0,Qn(this)+k),m=Math.min(this.mJ-1,Math.max(Math.floor(m/k+.01)-1,0)),!(m+1>=e.Me.length))){k=e.Me[m];for(a=Math.max(1,a-l);Rn(k,b)>a&&1=a.Mi)return new Fa(0,l);if(a.Ym===Kn){c.aj=1;g=Rn(b,k);if(0===h||g<=d)return c.df=g,c.uf.push(c.df),c.Me.push(b),new Fa(g,l);var m=Tn(b);b=b.substr(m.length);for(var n=Tn(b),g=Rn(m+n,k);0d&&1d;){n=1;g=Rn(m.substr(0,n),k);for(h=0;g<=d;)n++,h=g,g=Rn(m.substr(0,n),k);1===n?(c.uf[a.Qe+p]=g,e=Math.max(e,g)):(c.uf[a.Qe+p]=h,e=Math.max(e,h));n--;1>n&&(n=1);c.Me[a.Qe+p]=m.substr(0,n);p++;m=m.substr(n);if(a.Qe+p>a.Mi)break}n=Tn(b);for(g=Rn(m+n,k);0a.Mi))break}c.aj=Math.min(a.Mi,p);c.df=Math.max(c.df,e);return new Fa(c.df,l*c.aj)}function Tn(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function Rn(a,b){In!==b&&(In=Jn.font=b);return Jn.measureText(a).width} function Qn(a){if(null!==a.qo)return a.qo;var b=a.Wg;In!==b&&(In=Jn.font=b);var c=0;void 0!==Dn[b]&&5E3>En?c=Dn[b]:(c=1.3*Jn.measureText("M").width,Dn[b]=c,En++);return a.qo=c}function Sn(a){In!==a&&(In=Jn.font=a);var b=0;void 0!==Fn[a]&&5E3>Gn?b=Fn[a]:(b=Jn.measureText(Hn).width,Fn[a]=b,Gn++);return b} -function Pn(a,b,c){var d=a.we.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.ck+a.dk,e=Math.max(0,Qn(a)+e);if(0===d.length)return c.df=0,a.Qe=1,e;if(!a.xx){var g=d.indexOf("\n",0);0<=g&&(d=d.substr(0,g))}for(var g=0,h=a.Qe=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.Xm!==Kn?(c.aj=0,h=On(a,h,c,b),g+=h.height,a.Qe+=c.aj):(On(a,h,c,b),g+=e,a.Qe++),a.Qe===a.Mi&&(l=!0)),h=k+1;return a.Nv=g} -x.defineProperty(sa,{oB:"textValidation"},function(){return this.ql},function(a){var b=this.ql;b!==a&&(null!==a&&x.g(a,"function",sa,"textValidation"),this.ql=a,this.j("textValidation",b,a))});x.defineProperty(sa,{jM:"spacingAbove"},function(){return this.ck},function(a){var b=this.ck;b!==a&&(u&&x.g(a,"number",sa,"spacingAbove"),this.ck=a,this.j("spacingAbove",b,a))}); +function Pn(a,b,c){var d=a.we.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.ck+a.dk,e=Math.max(0,Qn(a)+e);if(0===d.length)return c.df=0,a.Qe=1,e;if(!a.yx){var g=d.indexOf("\n",0);0<=g&&(d=d.substr(0,g))}for(var g=0,h=a.Qe=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.Ym!==Kn?(c.aj=0,h=On(a,h,c,b),g+=h.height,a.Qe+=c.aj):(On(a,h,c,b),g+=e,a.Qe++),a.Qe===a.Mi&&(l=!0)),h=k+1;return a.Nv=g} +x.defineProperty(sa,{pB:"textValidation"},function(){return this.ql},function(a){var b=this.ql;b!==a&&(null!==a&&x.g(a,"function",sa,"textValidation"),this.ql=a,this.j("textValidation",b,a))});x.defineProperty(sa,{jM:"spacingAbove"},function(){return this.ck},function(a){var b=this.ck;b!==a&&(u&&x.g(a,"number",sa,"spacingAbove"),this.ck=a,this.j("spacingAbove",b,a))}); x.defineProperty(sa,{kM:"spacingBelow"},function(){return this.dk},function(a){var b=this.dk;b!==a&&(u&&x.g(a,"number",sa,"spacingBelow"),this.dk=a,this.j("spacingBelow",b,a))});x.defineProperty(sa,{mJ:"maxLines"},function(){return this.Mi},function(a){var b=this.Mi;b!==a&&(u&&x.g(a,"number",sa,"maxLines"),a=Math.floor(a),0>=a&&x.la(a,"> 0",sa,"maxLines"),this.Mi=a,this.j("maxLines",b,a),this.T())});x.w(sa,{JL:"metrics"},function(){return this.Pj}); -function Cn(){this.df=this.aj=0;this.tf=[];this.Me=[]}Cn.prototype.reset=function(){this.df=this.aj=0;this.tf=[];this.Me=[]};Cn.prototype.qt=function(a){this.aj=a.aj;this.df=a.df;this.tf=x.Bl(a.tf);this.Me=x.Bl(a.Me)};x.w(Cn,{OK:"arrSize"},function(){return this.tf});x.w(Cn,{PK:"arrText"},function(){return this.Me});x.w(Cn,{IL:"maxLineWidth"},function(){return this.df}); -function nj(){O.call(this);this.af=null;this.Ks="";this.bk=Q.MG;this.to=xd;this.ap=this.ek=this.vf=null;this.jz=!1;this.oo=!0;this.To=null}x.Qa(nj,O);x.ja("Picture",nj);nj.prototype.cloneProtected=function(a){O.prototype.cloneProtected.call(this,a);a.element=this.af;a.Ks=this.Ks;a.bk=this.bk.Y();a.to=this.to;a.vf=this.vf;a.ek=this.ek;a.oo=this.oo;a.To=this.To};var Un=new pa,Vn=0,hj=[]; +function Cn(){this.df=this.aj=0;this.uf=[];this.Me=[]}Cn.prototype.reset=function(){this.df=this.aj=0;this.uf=[];this.Me=[]};Cn.prototype.qt=function(a){this.aj=a.aj;this.df=a.df;this.uf=x.Bl(a.uf);this.Me=x.Bl(a.Me)};x.w(Cn,{OK:"arrSize"},function(){return this.uf});x.w(Cn,{PK:"arrText"},function(){return this.Me});x.w(Cn,{IL:"maxLineWidth"},function(){return this.df}); +function nj(){O.call(this);this.af=null;this.Ks="";this.bk=Q.NG;this.to=xd;this.ap=this.ek=this.wf=null;this.kz=!1;this.oo=!0;this.To=null}x.Qa(nj,O);x.ja("Picture",nj);nj.prototype.cloneProtected=function(a){O.prototype.cloneProtected.call(this,a);a.element=this.af;a.Ks=this.Ks;a.bk=this.bk.Y();a.to=this.to;a.wf=this.wf;a.ek=this.ek;a.oo=this.oo;a.To=this.To};var Un=new pa,Vn=0,hj=[]; function Wn(){var a=hj;if(0===a.length)for(var b=window.document.getElementsByTagName("canvas"),c=b.length,d=0;dr.fp.length&& -(ao(r,4,l,m),ao(r,16,l,m));for(var l=r.fp,m=l.length,q=l[0],t=0;te;e++)a.lineTo(d[e].x*b,d[e].y*c); x.ya(d);U(a);b=a.q;b.C=new R(.2,.22);b.D=new R(.8,.9);x.v(a);return b},DataTransmission:"Hexagon",Hexagon:function(a,b,c){var d=Q.Cl(6);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;6>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.07,.25);b.D=new R(.93,.75);x.v(a);return b},Heptagon:function(a,b,c){var d=Q.Cl(7);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;7>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.2,.15);b.D=new R(.8,.85);x.v(a);return b},Octagon:function(a, b,c){var d=Q.Cl(8);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;8>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.15,.15);b.D=new R(.85,.85);x.v(a);return b},Nonagon:function(a,b,c){var d=Q.Cl(9);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;9>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.17,.13);b.D=new R(.82,.82);x.v(a);return b},Decagon:function(a,b,c){var d=Q.Cl(10);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a); -b=a.q;b.C=new R(.16,.16);b.D=new R(.84,.84);x.v(a);return b},Dodecagon:function(a,b,c){var d=Q.Cl(12);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.16,.16);b.D=new R(.84,.84);x.v(a);return b},FivePointedStar:function(a,b,c){var d=Q.jn(5);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.312,.383);b.D=new R(.693,.765);x.v(a);return b},SixPointedStar:function(a,b,c){var d= -Q.jn(6);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.17,.251);b.D=new R(.833,.755);x.v(a);return b},SevenPointedStar:function(a,b,c){var d=Q.jn(7);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;14>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.363,.361);b.D=new R(.641,.709);x.v(a);return b},EightPointedStar:function(a,b,c){var d=Q.jn(8);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;16>e;e++)a.lineTo(d[e].x*b,d[e].y* -c);x.ya(d);U(a);b=a.q;b.C=new R(.252,.255);b.D=new R(.75,.75);x.v(a);return b},NinePointedStar:function(a,b,c){var d=Q.jn(9);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;18>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.355,.361);b.D=new R(.645,.651);x.v(a);return b},TenPointedStar:function(a,b,c){var d=Q.jn(10);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;20>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.281,.261);b.D=new R(.723,.748);x.v(a);return b},FivePointedBurst:function(a, +b=a.q;b.C=new R(.16,.16);b.D=new R(.84,.84);x.v(a);return b},Dodecagon:function(a,b,c){var d=Q.Cl(12);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.16,.16);b.D=new R(.84,.84);x.v(a);return b},FivePointedStar:function(a,b,c){var d=Q.kn(5);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.312,.383);b.D=new R(.693,.765);x.v(a);return b},SixPointedStar:function(a,b,c){var d= +Q.kn(6);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.17,.251);b.D=new R(.833,.755);x.v(a);return b},SevenPointedStar:function(a,b,c){var d=Q.kn(7);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;14>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.363,.361);b.D=new R(.641,.709);x.v(a);return b},EightPointedStar:function(a,b,c){var d=Q.kn(8);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;16>e;e++)a.lineTo(d[e].x*b,d[e].y* +c);x.ya(d);U(a);b=a.q;b.C=new R(.252,.255);b.D=new R(.75,.75);x.v(a);return b},NinePointedStar:function(a,b,c){var d=Q.kn(9);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;18>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.355,.361);b.D=new R(.645,.651);x.v(a);return b},TenPointedStar:function(a,b,c){var d=Q.kn(10);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;20>e;e++)a.lineTo(d[e].x*b,d[e].y*c);x.ya(d);U(a);b=a.q;b.C=new R(.281,.261);b.D=new R(.723,.748);x.v(a);return b},FivePointedBurst:function(a, b,c){var d=Q.np(5);a=x.u();S(a,d[0].x*b,d[0].y*c,!0);for(var e=1;ek&&a.y>l&&a.rightk&&b.y>l&&b.rightk&&a.y>l&&a.rightk&&b.y>l&&b.right=c.oJ)){this.U^=4096;var d=!1;if(null!==c){d=c.xb;c.xb=!0;var e=c.selection;e.Va();a?e.add(this):e.remove(this);e.freeze()}this.j("isSelected",b,a);this.oe();a=this.TJ;null!==a&&a(this);null!==c&&(c.Ee(),c.xb=d)}}}); x.defineProperty(D,{rh:"isHighlighted"},function(){return 0!==(this.U&524288)},function(a){var b=0!==(this.U&524288);if(b!==a){u&&x.g(a,"boolean",D,"isHighlighted");this.U^=524288;var c=this.h;null!==c&&(c=c.sn,c.Va(),a?c.add(this):c.remove(this),c.freeze());this.j("isHighlighted",b,a);this.ua()}});x.defineProperty(D,{xk:"isShadowed"},function(){return 0!==(this.U&8192)},function(a){var b=0!==(this.U&8192);b!==a&&(u&&x.g(a,"boolean",D,"isShadowed"),this.U^=8192,this.j("isShadowed",b,a),this.ua())}); -function Xj(a){return 0!==(a.U&32768)}function ho(a,b){a.U=b?a.U|32768:a.U&-32769}function Ll(a,b){a.U=b?a.U|65536:a.U&-65537}function Pi(a){return 0!==(a.U&131072)}D.prototype.Lf=function(a){this.U=a?this.U|131072:this.U&-131073};function oo(a,b){a.U=b?a.U|1048576:a.U&-1048577}x.defineProperty(D,{hF:"isAnimated"},function(){return 0!==(this.U&262144)},function(a){var b=0!==(this.U&262144);b!==a&&(u&&x.g(a,"boolean",D,"isAnimated"),this.U^=262144,this.j("isAnimated",b,a))}); -x.defineProperty(D,{Vx:"selectionObjectName"},function(){return this.Ds},function(a){var b=this.Ds;b!==a&&(u&&x.g(a,"string",D,"selectionObjectName"),this.Ds=a,this.Qm=null,this.j("selectionObjectName",b,a))});x.defineProperty(D,{SJ:"selectionAdornmentTemplate"},function(){return this.Bs},function(a){var b=this.Bs;b!==a&&(u&&x.l(a,fa,D,"selectionAdornmentTemplate"),this instanceof G&&(a.type=rh),this.Bs=a,this.j("selectionAdornmentTemplate",b,a))}); -x.w(D,{En:"selectionObject"},function(){if(null===this.Qm){var a=this.Vx;null!==a&&""!==a?(a=this.me(a),this.Qm=null!==a?a:this):this instanceof G?(a=this.path,this.Qm=null!==a?a:this):this.Qm=this}return this.Qm});x.defineProperty(D,{TJ:"selectionChanged"},function(){return this.Cs},function(a){var b=this.Cs;b!==a&&(null!==a&&x.g(a,"function",D,"selectionChanged"),this.Cs=a,this.j("selectionChanged",b,a))}); -x.defineProperty(D,{SF:"resizeAdornmentTemplate"},function(){return this.os},function(a){var b=this.os;b!==a&&(u&&x.l(a,fa,D,"resizeAdornmentTemplate"),this.os=a,this.j("resizeAdornmentTemplate",b,a))});x.defineProperty(D,{UF:"resizeObjectName"},function(){return this.qs},function(a){var b=this.qs;b!==a&&(u&&x.g(a,"string",D,"resizeObjectName"),this.qs=a,this.Po=null,this.j("resizeObjectName",b,a))}); -x.w(D,{TF:"resizeObject"},function(){if(null===this.Po){var a=this.UF;null!==a&&""!==a?(a=this.me(a),this.Po=null!==a?a:this):this.Po=this}return this.Po});x.defineProperty(D,{KJ:"resizeCellSize"},function(){return this.ps},function(a){var b=this.ps;b.O(a)||(u&&x.l(a,Fa,D,"resizeCellSize"),this.ps=a=a.Y(),this.j("resizeCellSize",b,a))}); +function Xj(a){return 0!==(a.U&32768)}function ho(a,b){a.U=b?a.U|32768:a.U&-32769}function Ll(a,b){a.U=b?a.U|65536:a.U&-65537}function Pi(a){return 0!==(a.U&131072)}D.prototype.Lf=function(a){this.U=a?this.U|131072:this.U&-131073};function oo(a,b){a.U=b?a.U|1048576:a.U&-1048577}x.defineProperty(D,{iF:"isAnimated"},function(){return 0!==(this.U&262144)},function(a){var b=0!==(this.U&262144);b!==a&&(u&&x.g(a,"boolean",D,"isAnimated"),this.U^=262144,this.j("isAnimated",b,a))}); +x.defineProperty(D,{Wx:"selectionObjectName"},function(){return this.Ds},function(a){var b=this.Ds;b!==a&&(u&&x.g(a,"string",D,"selectionObjectName"),this.Ds=a,this.Rm=null,this.j("selectionObjectName",b,a))});x.defineProperty(D,{SJ:"selectionAdornmentTemplate"},function(){return this.Bs},function(a){var b=this.Bs;b!==a&&(u&&x.l(a,fa,D,"selectionAdornmentTemplate"),this instanceof G&&(a.type=rh),this.Bs=a,this.j("selectionAdornmentTemplate",b,a))}); +x.w(D,{En:"selectionObject"},function(){if(null===this.Rm){var a=this.Wx;null!==a&&""!==a?(a=this.me(a),this.Rm=null!==a?a:this):this instanceof G?(a=this.path,this.Rm=null!==a?a:this):this.Rm=this}return this.Rm});x.defineProperty(D,{TJ:"selectionChanged"},function(){return this.Cs},function(a){var b=this.Cs;b!==a&&(null!==a&&x.g(a,"function",D,"selectionChanged"),this.Cs=a,this.j("selectionChanged",b,a))}); +x.defineProperty(D,{TF:"resizeAdornmentTemplate"},function(){return this.os},function(a){var b=this.os;b!==a&&(u&&x.l(a,fa,D,"resizeAdornmentTemplate"),this.os=a,this.j("resizeAdornmentTemplate",b,a))});x.defineProperty(D,{VF:"resizeObjectName"},function(){return this.qs},function(a){var b=this.qs;b!==a&&(u&&x.g(a,"string",D,"resizeObjectName"),this.qs=a,this.Po=null,this.j("resizeObjectName",b,a))}); +x.w(D,{UF:"resizeObject"},function(){if(null===this.Po){var a=this.VF;null!==a&&""!==a?(a=this.me(a),this.Po=null!==a?a:this):this.Po=this}return this.Po});x.defineProperty(D,{KJ:"resizeCellSize"},function(){return this.ps},function(a){var b=this.ps;b.O(a)||(u&&x.l(a,Fa,D,"resizeCellSize"),this.ps=a=a.Y(),this.j("resizeCellSize",b,a))}); x.defineProperty(D,{MJ:"rotateAdornmentTemplate"},function(){return this.rs},function(a){var b=this.rs;b!==a&&(u&&x.l(a,fa,D,"rotateAdornmentTemplate"),this.rs=a,this.j("rotateAdornmentTemplate",b,a))});x.defineProperty(D,{NJ:"rotateObjectName"},function(){return this.ss},function(a){var b=this.ss;b!==a&&(u&&x.g(a,"string",D,"rotateObjectName"),this.ss=a,this.Qo=null,this.j("rotateObjectName",b,a))}); -x.w(D,{XF:"rotateObject"},function(){if(null===this.Qo){var a=this.NJ;null!==a&&""!==a?(a=this.me(a),this.Qo=null!==a?a:this):this.Qo=this}return this.Qo});x.defineProperty(D,{text:"text"},function(){return this.we},function(a){var b=this.we;b!==a&&(u&&x.g(a,"string",D,"text"),this.we=a,this.j("text",b,a))}); +x.w(D,{YF:"rotateObject"},function(){if(null===this.Qo){var a=this.NJ;null!==a&&""!==a?(a=this.me(a),this.Qo=null!==a?a:this):this.Qo=this}return this.Qo});x.defineProperty(D,{text:"text"},function(){return this.we},function(a){var b=this.we;b!==a&&(u&&x.g(a,"string",D,"text"),this.we=a,this.j("text",b,a))}); x.defineProperty(D,{Xa:"containingGroup"},function(){return this.Tk},function(a){if(this.$d()){var b=this.Tk;if(b!==a){u&&null!==a&&x.l(a,F,D,"containingGroup");null===a||this!==a&&!a.pi(this)||(this===a&&x.k("Cannot make a Group a member of itself: "+this.toString()),x.k("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString()));this.J(mk);var c=this.h;null!==b?po(b,this):this instanceof F&&null!==c&&c.rl.remove(this);this.Tk=a;null!==a?qo(a,this):this instanceof -F&&null!==c&&c.rl.add(this);this.J(ek);if(null!==c){var d=this.data,e=c.aa;null!==d&&e instanceof X&&e.Yx(d,e.sb(null!==a?a.data:null))}d=this.tE;null!==d&&(e=!0,null!==c&&(e=c.Za,c.Za=!0),d(this,b,a),null!==c&&(c.Za=e));if(this instanceof F)for(c=new K(D),If(c,this,!0,0,!0),c=c.i;c.next();)if(d=c.value,d instanceof E)for(d=d.ce;d.next();)Sk(d.value);if(this instanceof E)for(d=this.ce;d.next();)Sk(d.value);this.j("containingGroup",b,a);null!==a&&(b=a.layer,null!==b&&ej(b,-1,a))}}else x.k("cannot set the Part.containingGroup of a Link or Adornment")}); -f=D.prototype;f.Rl=function(){var a=this.Xa;null!==a&&(a.T(),null!==a.Nb&&a.Nb.T(),a.nf())};f.ua=function(){var a=this.h;null!==a&&!Wj(this)&&!Xj(this)&&this.isVisible()&&this.Yb.G()&&a.ua(dj(this,this.Yb))};f.It=function(a){a||(a=this.Tk,null!==a&&qo(a,this))};f.Jt=function(a){a||(a=this.Tk,null!==a&&po(a,this))};f.ln=function(){var a=this.data;if(null!==a){var b=this.h;null!==b&&(b=b.aa,null!==b&&b.Qx(a))}}; -x.defineProperty(D,{tE:"containingGroupChanged"},function(){return this.Eq},function(a){var b=this.Eq;b!==a&&(null!==a&&x.g(a,"function",D,"containingGroupChanged"),this.Eq=a,this.j("containingGroupChanged",b,a))});D.prototype.findSubGraphLevel=function(){return ro(this,this)};function ro(a,b){var c=b.Xa;return null!==c?1+ro(a,c):b instanceof E&&(c=b.Pd,null!==c)?ro(a,c):0}D.prototype.findTopLevelPart=function(){return so(this,this)}; +F&&null!==c&&c.rl.add(this);this.J(ek);if(null!==c){var d=this.data,e=c.aa;null!==d&&e instanceof X&&e.Zx(d,e.sb(null!==a?a.data:null))}d=this.uE;null!==d&&(e=!0,null!==c&&(e=c.Za,c.Za=!0),d(this,b,a),null!==c&&(c.Za=e));if(this instanceof F)for(c=new K(D),If(c,this,!0,0,!0),c=c.i;c.next();)if(d=c.value,d instanceof E)for(d=d.ce;d.next();)Sk(d.value);if(this instanceof E)for(d=this.ce;d.next();)Sk(d.value);this.j("containingGroup",b,a);null!==a&&(b=a.layer,null!==b&&ej(b,-1,a))}}else x.k("cannot set the Part.containingGroup of a Link or Adornment")}); +f=D.prototype;f.Sl=function(){var a=this.Xa;null!==a&&(a.T(),null!==a.Nb&&a.Nb.T(),a.of())};f.ua=function(){var a=this.h;null!==a&&!Wj(this)&&!Xj(this)&&this.isVisible()&&this.Yb.G()&&a.ua(dj(this,this.Yb))};f.It=function(a){a||(a=this.Tk,null!==a&&qo(a,this))};f.Jt=function(a){a||(a=this.Tk,null!==a&&po(a,this))};f.mn=function(){var a=this.data;if(null!==a){var b=this.h;null!==b&&(b=b.aa,null!==b&&b.Rx(a))}}; +x.defineProperty(D,{uE:"containingGroupChanged"},function(){return this.Eq},function(a){var b=this.Eq;b!==a&&(null!==a&&x.g(a,"function",D,"containingGroupChanged"),this.Eq=a,this.j("containingGroupChanged",b,a))});D.prototype.findSubGraphLevel=function(){return ro(this,this)};function ro(a,b){var c=b.Xa;return null!==c?1+ro(a,c):b instanceof E&&(c=b.Pd,null!==c)?ro(a,c):0}D.prototype.findTopLevelPart=function(){return so(this,this)}; function so(a,b){var c=b.Xa;return null!==c?so(a,c):b instanceof E&&(c=b.Pd,null!==c)?so(a,c):b}x.w(D,{Fp:"isTopLevel"},function(){return null!==this.Xa||this instanceof E&&this.Ef?!1:!0});D.prototype.isMemberOf=D.prototype.pi=function(a){return a instanceof F?to(this,this,a):!1};function to(a,b,c){if(b===c||null===c)return!1;var d=b.Xa;return null===d||d!==c&&!to(a,d,c)?b instanceof E&&(b=b.Pd,null!==b)?to(a,b,c):!1:!0} D.prototype.findCommonContainingGroup=D.prototype.mI=function(a){if(null===a)return null;u&&x.l(a,D,D,"findCommonContainingGroup:other");if(this===a)return this.Xa;for(var b=this;null!==b;)b instanceof F&&oo(b,!0),b=b.Xa;for(var c=null,b=a;null!==b;){if(0!==(b.U&1048576)){c=b;break}b=b.Xa}for(b=this;null!==b;)b instanceof F&&oo(b,!1),b=b.Xa;return c}; -x.defineProperty(D,{dJ:"layoutConditions"},function(){return this.zr},function(a){var b=this.zr;b!==a&&(u&&x.g(a,"number",D,"layoutConditions"),this.zr=a,this.j("layoutConditions",b,a))});D.prototype.canLayout=function(){if(!this.AA||!this.isVisible())return!1;var a=this.layer;return null!==a&&a.Nc||this instanceof E&&this.Ef?!1:!0}; -D.prototype.invalidateLayout=D.prototype.J=function(a){void 0===a&&(a=16777215);var b;this.AA&&0!==(a&this.dJ)?(b=this.layer,null!==b&&b.Nc||this instanceof E&&this.Ef?b=!1:(b=this.h,b=null!==b&&b.qa.tb?!1:!0)):b=!1;if(b)if(b=this.Tk,null!==b){var c=b.Tb;null!==c?c.J():b.J(a)}else a=this.h,null!==a&&(c=a.Tb,null!==c&&c.J())};function jk(a){if(!a.isVisible())return!1;a=a.layer;return null!==a&&a.Nc?!1:!0} -x.defineProperty(D,{HE:"dragComputation"},function(){return this.Wq},function(a){var b=this.Wq;b!==a&&(null!==a&&x.g(a,"function",D,"dragComputation"),this.Wq=a,this.j("dragComputation",b,a))});x.defineProperty(D,{YJ:"shadowOffset"},function(){return this.Rm},function(a){var b=this.Rm;b.O(a)||(u&&x.l(a,N,D,"shadowOffset"),this.Rm=a=a.Y(),this.ua(),this.j("shadowOffset",b,a))}); +x.defineProperty(D,{dJ:"layoutConditions"},function(){return this.zr},function(a){var b=this.zr;b!==a&&(u&&x.g(a,"number",D,"layoutConditions"),this.zr=a,this.j("layoutConditions",b,a))});D.prototype.canLayout=function(){if(!this.BA||!this.isVisible())return!1;var a=this.layer;return null!==a&&a.Nc||this instanceof E&&this.Ef?!1:!0}; +D.prototype.invalidateLayout=D.prototype.J=function(a){void 0===a&&(a=16777215);var b;this.BA&&0!==(a&this.dJ)?(b=this.layer,null!==b&&b.Nc||this instanceof E&&this.Ef?b=!1:(b=this.h,b=null!==b&&b.qa.tb?!1:!0)):b=!1;if(b)if(b=this.Tk,null!==b){var c=b.Tb;null!==c?c.J():b.J(a)}else a=this.h,null!==a&&(c=a.Tb,null!==c&&c.J())};function jk(a){if(!a.isVisible())return!1;a=a.layer;return null!==a&&a.Nc?!1:!0} +x.defineProperty(D,{IE:"dragComputation"},function(){return this.Wq},function(a){var b=this.Wq;b!==a&&(null!==a&&x.g(a,"function",D,"dragComputation"),this.Wq=a,this.j("dragComputation",b,a))});x.defineProperty(D,{YJ:"shadowOffset"},function(){return this.Sm},function(a){var b=this.Sm;b.O(a)||(u&&x.l(a,N,D,"shadowOffset"),this.Sm=a=a.Y(),this.ua(),this.j("shadowOffset",b,a))}); x.defineProperty(D,{shadowColor:"shadowColor"},function(){return this.ih},function(a){var b=this.ih;b!==a&&(u&&x.g(a,"string",D,"shadowColor"),this.ih=a,this.ua(),this.j("shadowColor",b,a))});x.defineProperty(D,{shadowBlur:"shadowBlur"},function(){return this.di},function(a){var b=this.di;b!==a&&(u&&x.g(a,"number",D,"shadowBlur"),this.di=a,this.ua(),this.j("shadowBlur",b,a))}); function fa(a){0===arguments.length?D.call(this,Mh):D.call(this,a);this.U&=-257;this.Oj="Adornment";this.Nb=this.Tg=this.Kb=null}x.Qa(fa,D);x.ja("Adornment",fa);fa.prototype.toString=function(){var a=this.kh;return"Adornment("+this.Lc+")"+(null!==a?a.toString():"")};fa.prototype.updateRelationshipsFromData=function(){}; fa.prototype.Yt=function(a){var b=this.oc.ea,c=this.oc;if(b instanceof G&&c instanceof Y){var d=b.path,c=d.eb;b.Yt(a);c=d.eb;a=this.wa.o;b=a.length;for(d=0;da&&(a=1);var b=this.h;if(null!==b&&!b.qh){b.qh=!0;var c=new K(E);c.add(this);Fo(this,c,b.ae,a,b.$a,this,b.sB===kj);b.qh=!1}}; -function Fo(a,b,c,d,e,g,h){if(1a&&(a=2);var b=this.h;if(null!==b&&!b.qh){b.qh=!0;var c=new K(E);c.add(this);Ho(this,c,b.ae,a,b.$a,this,b.sB===kj);b.qh=!1}};function Ho(a,b,c,d,e,g,h){for(var k=g===a?!1:a.xd,l=c?a.jx():a.Fg();l.next();){var m=l.value;m.Oc&&(k||m.Yf||m.rc(),m=m.rA(a),null!==m&&m!==a&&!b.contains(m)&&(b.add(m),k||(m.yd(!0),m.Rl(),h&&Li(e,m,g)),2a&&(a=1);var b=this.h;if(null!==b&&!b.qh){b.qh=!0;var c=new K(E);c.add(this);Fo(this,c,b.ae,a,b.$a,this,b.tB===kj);b.qh=!1}}; +function Fo(a,b,c,d,e,g,h){if(1a&&(a=2);var b=this.h;if(null!==b&&!b.qh){b.qh=!0;var c=new K(E);c.add(this);Ho(this,c,b.ae,a,b.$a,this,b.tB===kj);b.qh=!1}};function Ho(a,b,c,d,e,g,h){for(var k=g===a?!1:a.xd,l=c?a.kx():a.Fg();l.next();){var m=l.value;m.Oc&&(k||m.Yf||m.rc(),m=m.sA(a),null!==m&&m!==a&&!b.contains(m)&&(b.add(m),k||(m.yd(!0),m.Sl(),h&&Li(e,m,g)),2a&&(a-=180);break;case No:a=Q.eu(c+90);90a&&(a-=180);break;case Oo:a=Q.eu(c-90);90a&&(a-=180);break;case Po:a=Q.eu(c);if(45a||225a)return 0;90a&&(a-=180)}return Q.eu(a)}; -x.defineProperty(G,{Z:"fromNode"},function(){return this.og},function(a){var b=this.og;if(b!==a){u&&null!==a&&x.l(a,E,G,"fromNode");var c=this.ad;null!==b&&(this.zg!==b&&Co(b,this,c),Qo(this),this.J(mk));this.og=a;null!==a&&this.yd(a.isVisible());this.Fi=null;this.rc();var d=this.h;if(null!==d){var e=this.data,g=d.aa;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.Xx(e,g.sb(h))}else g instanceof Ve&&(h=null!==a?a.data:null,d.ae?g.Gh(e,g.sb(h)):(null!==b&&g.Gh(b.data,void 0),g.Gh(h,g.sb(null!== -this.zg?this.zg.data:null))))}e=this.ad;g=this.VE;null!==g&&(h=!0,null!==d&&(h=d.Za,d.Za=!0),g(this,c,e),null!==d&&(d.Za=h));null!==a&&(this.zg!==a&&Bo(a,this,e),Ro(this),this.J(ek));this.j("fromNode",b,a);Sk(this)}}); -x.defineProperty(G,{bg:"fromPortId"},function(){return this.Rh},function(a){var b=this.Rh;if(b!==a){u&&x.g(a,"string",G,"fromPortId");var c=this.ad;null!==c&&Ao(this.Z,c);Qo(this);this.Rh=a;var d=this.ad;null!==d&&Ao(this.Z,d);var e=this.h;if(null!==e){var g=this.data,h=e.aa;null!==g&&h instanceof X&&h.gB(g,a)}c!==d&&(this.Fi=null,this.rc(),g=this.VE,null!==g&&(h=!0,null!==e&&(h=e.Za,e.Za=!0),g(this,c,d),null!==e&&(e.Za=h)));Ro(this);this.j("fromPortId",b,a)}}); -x.w(G,{ad:"fromPort"},function(){var a=this.og;return null===a?null:a.Kl(this.Rh)});x.defineProperty(G,{VE:"fromPortChanged"},function(){return this.dr},function(a){var b=this.dr;b!==a&&(null!==a&&x.g(a,"function",G,"fromPortChanged"),this.dr=a,this.j("fromPortChanged",b,a))}); -x.defineProperty(G,{fa:"toNode"},function(){return this.zg},function(a){var b=this.zg;if(b!==a){u&&null!==a&&x.l(a,E,G,"toNode");var c=this.Bd;null!==b&&(this.og!==b&&Co(b,this,c),Qo(this),this.J(mk));this.zg=a;null!==a&&this.yd(a.isVisible());this.Fi=null;this.rc();var d=this.h;if(null!==d){var e=this.data,g=d.aa;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.ay(e,g.sb(h))}else g instanceof Ve&&(h=null!==a?a.data:null,d.ae?(null!==b&&g.Gh(b.data,void 0),g.Gh(h,g.sb(null!==this.og?this.og.data: -null))):g.Gh(e,g.sb(h)))}e=this.Bd;g=this.rG;null!==g&&(h=!0,null!==d&&(h=d.Za,d.Za=!0),g(this,c,e),null!==d&&(d.Za=h));null!==a&&(this.og!==a&&Bo(a,this,e),Ro(this),this.J(ek));this.j("toNode",b,a);Sk(this)}}); -x.defineProperty(G,{Og:"toPortId"},function(){return this.hi},function(a){var b=this.hi;if(b!==a){u&&x.g(a,"string",G,"toPortId");var c=this.Bd;null!==c&&Ao(this.fa,c);Qo(this);this.hi=a;var d=this.Bd;null!==d&&Ao(this.fa,d);var e=this.h;if(null!==e){var g=this.data,h=e.aa;null!==g&&h instanceof X&&h.jB(g,a)}c!==d&&(this.Fi=null,this.rc(),g=this.rG,null!==g&&(h=!0,null!==e&&(h=e.Za,e.Za=!0),g(this,c,d),null!==e&&(e.Za=h)));Ro(this);this.j("toPortId",b,a)}}); -x.w(G,{Bd:"toPort"},function(){var a=this.zg;return null===a?null:a.Kl(this.hi)});x.defineProperty(G,{rG:"toPortChanged"},function(){return this.Ss},function(a){var b=this.Ss;b!==a&&(null!==a&&x.g(a,"function",G,"toPortChanged"),this.Ss=a,this.j("toPortChanged",b,a))});x.defineProperty(G,{Gb:"fromSpot"},function(){return null!==this.ma?this.ma.Hj:Jc},function(a){this.We();var b=this.ma.Hj;b.O(a)||(u&&x.l(a,R,G,"fromSpot"),a=a.Y(),this.ma.Hj=a,this.j("fromSpot",b,a),this.rc())}); +x.defineProperty(G,{Z:"fromNode"},function(){return this.og},function(a){var b=this.og;if(b!==a){u&&null!==a&&x.l(a,E,G,"fromNode");var c=this.ad;null!==b&&(this.zg!==b&&Co(b,this,c),Qo(this),this.J(mk));this.og=a;null!==a&&this.yd(a.isVisible());this.Fi=null;this.rc();var d=this.h;if(null!==d){var e=this.data,g=d.aa;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.Yx(e,g.sb(h))}else g instanceof Ve&&(h=null!==a?a.data:null,d.ae?g.Gh(e,g.sb(h)):(null!==b&&g.Gh(b.data,void 0),g.Gh(h,g.sb(null!== +this.zg?this.zg.data:null))))}e=this.ad;g=this.WE;null!==g&&(h=!0,null!==d&&(h=d.Za,d.Za=!0),g(this,c,e),null!==d&&(d.Za=h));null!==a&&(this.zg!==a&&Bo(a,this,e),Ro(this),this.J(ek));this.j("fromNode",b,a);Sk(this)}}); +x.defineProperty(G,{bg:"fromPortId"},function(){return this.Rh},function(a){var b=this.Rh;if(b!==a){u&&x.g(a,"string",G,"fromPortId");var c=this.ad;null!==c&&Ao(this.Z,c);Qo(this);this.Rh=a;var d=this.ad;null!==d&&Ao(this.Z,d);var e=this.h;if(null!==e){var g=this.data,h=e.aa;null!==g&&h instanceof X&&h.hB(g,a)}c!==d&&(this.Fi=null,this.rc(),g=this.WE,null!==g&&(h=!0,null!==e&&(h=e.Za,e.Za=!0),g(this,c,d),null!==e&&(e.Za=h)));Ro(this);this.j("fromPortId",b,a)}}); +x.w(G,{ad:"fromPort"},function(){var a=this.og;return null===a?null:a.Kl(this.Rh)});x.defineProperty(G,{WE:"fromPortChanged"},function(){return this.dr},function(a){var b=this.dr;b!==a&&(null!==a&&x.g(a,"function",G,"fromPortChanged"),this.dr=a,this.j("fromPortChanged",b,a))}); +x.defineProperty(G,{fa:"toNode"},function(){return this.zg},function(a){var b=this.zg;if(b!==a){u&&null!==a&&x.l(a,E,G,"toNode");var c=this.Bd;null!==b&&(this.og!==b&&Co(b,this,c),Qo(this),this.J(mk));this.zg=a;null!==a&&this.yd(a.isVisible());this.Fi=null;this.rc();var d=this.h;if(null!==d){var e=this.data,g=d.aa;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.by(e,g.sb(h))}else g instanceof Ve&&(h=null!==a?a.data:null,d.ae?(null!==b&&g.Gh(b.data,void 0),g.Gh(h,g.sb(null!==this.og?this.og.data: +null))):g.Gh(e,g.sb(h)))}e=this.Bd;g=this.sG;null!==g&&(h=!0,null!==d&&(h=d.Za,d.Za=!0),g(this,c,e),null!==d&&(d.Za=h));null!==a&&(this.og!==a&&Bo(a,this,e),Ro(this),this.J(ek));this.j("toNode",b,a);Sk(this)}}); +x.defineProperty(G,{Og:"toPortId"},function(){return this.hi},function(a){var b=this.hi;if(b!==a){u&&x.g(a,"string",G,"toPortId");var c=this.Bd;null!==c&&Ao(this.fa,c);Qo(this);this.hi=a;var d=this.Bd;null!==d&&Ao(this.fa,d);var e=this.h;if(null!==e){var g=this.data,h=e.aa;null!==g&&h instanceof X&&h.kB(g,a)}c!==d&&(this.Fi=null,this.rc(),g=this.sG,null!==g&&(h=!0,null!==e&&(h=e.Za,e.Za=!0),g(this,c,d),null!==e&&(e.Za=h)));Ro(this);this.j("toPortId",b,a)}}); +x.w(G,{Bd:"toPort"},function(){var a=this.zg;return null===a?null:a.Kl(this.hi)});x.defineProperty(G,{sG:"toPortChanged"},function(){return this.Ss},function(a){var b=this.Ss;b!==a&&(null!==a&&x.g(a,"function",G,"toPortChanged"),this.Ss=a,this.j("toPortChanged",b,a))});x.defineProperty(G,{Gb:"fromSpot"},function(){return null!==this.ma?this.ma.Hj:Jc},function(a){this.We();var b=this.ma.Hj;b.O(a)||(u&&x.l(a,R,G,"fromSpot"),a=a.Y(),this.ma.Hj=a,this.j("fromSpot",b,a),this.rc())}); x.defineProperty(G,{Ll:"fromEndSegmentLength"},function(){return null!==this.ma?this.ma.Fj:NaN},function(a){this.We();var b=this.ma.Fj;b!==a&&(u&&x.g(a,"number",G,"fromEndSegmentLength"),0>a&&x.la(a,">= 0",G,"fromEndSegmentLength"),this.ma.Fj=a,this.j("fromEndSegmentLength",b,a),this.rc())}); x.defineProperty(G,{Dt:"fromEndSegmentDirection"},function(){return null!==this.ma?this.ma.Ej:vo},function(a){this.We();var b=this.ma.Ej;b!==a&&(u&&x.Ca(a,E,G,"fromEndSegmentDirection"),this.ma.Ej=a,this.j("fromEndSegmentDirection",b,a),this.rc())});x.defineProperty(G,{Et:"fromShortLength"},function(){return null!==this.ma?this.ma.Gj:NaN},function(a){this.We();var b=this.ma.Gj;b!==a&&(u&&x.g(a,"number",G,"fromShortLength"),this.ma.Gj=a,this.j("fromShortLength",b,a),this.rc())}); -x.defineProperty(G,{Hb:"toSpot"},function(){return null!==this.ma?this.ma.jk:Jc},function(a){this.We();var b=this.ma.jk;b.O(a)||(u&&x.l(a,R,G,"toSpot"),a=a.Y(),this.ma.jk=a,this.j("toSpot",b,a),this.rc())});x.defineProperty(G,{dm:"toEndSegmentLength"},function(){return null!==this.ma?this.ma.hk:NaN},function(a){this.We();var b=this.ma.hk;b!==a&&(u&&x.g(a,"number",G,"toEndSegmentLength"),0>a&&x.la(a,">= 0",G,"toEndSegmentLength"),this.ma.hk=a,this.j("toEndSegmentLength",b,a),this.rc())}); +x.defineProperty(G,{Hb:"toSpot"},function(){return null!==this.ma?this.ma.jk:Jc},function(a){this.We();var b=this.ma.jk;b.O(a)||(u&&x.l(a,R,G,"toSpot"),a=a.Y(),this.ma.jk=a,this.j("toSpot",b,a),this.rc())});x.defineProperty(G,{em:"toEndSegmentLength"},function(){return null!==this.ma?this.ma.hk:NaN},function(a){this.We();var b=this.ma.hk;b!==a&&(u&&x.g(a,"number",G,"toEndSegmentLength"),0>a&&x.la(a,">= 0",G,"toEndSegmentLength"),this.ma.hk=a,this.j("toEndSegmentLength",b,a),this.rc())}); x.defineProperty(G,{Au:"toEndSegmentDirection"},function(){return null!==this.ma?this.ma.gk:vo},function(a){this.We();var b=this.ma.gk;b!==a&&(u&&x.Ca(a,E,G,"toEndSegmentDirection"),this.ma.gk=a,this.j("toEndSegmentDirection",b,a),this.rc())});x.defineProperty(G,{Bu:"toShortLength"},function(){return null!==this.ma?this.ma.ik:NaN},function(a){this.We();var b=this.ma.ik;b!==a&&(u&&x.g(a,"number",G,"toShortLength"),this.ma.ik=a,this.j("toShortLength",b,a),this.rc())}); -function Sk(a){var b=a.Z,c=a.fa;null!==b?null!==c?So(a,b.mI(c)):So(a,null):So(a,null)}function So(a,b){var c=a.Tk;if(c!==b){null!==c&&po(c,a);a.Tk=b;null!==b&&qo(b,a);var d=a.tE;if(null!==d){var e=!0,g=a.h;null!==g&&(e=g.Za,g.Za=!0);d(a,c,b);null!==g&&(g.Za=e)}!a.Yf||a.ED!==c&&a.GD!==c||a.rc()}}G.prototype.Rl=function(){var a=this.Xa;null!==a&&this.Z!==a&&this.fa!==a&&D.prototype.Rl.call(this)}; -G.prototype.getOtherNode=G.prototype.rA=function(a){u&&x.l(a,E,G,"getOtherNode:node");var b=this.Z;return a===b?this.fa:b};G.prototype.getOtherPort=function(a){u&&x.l(a,O,G,"getOtherPort:port");var b=this.ad;return a===b?this.Bd:b};x.w(G,{uL:"isLabeledLink"},function(){return null===this.Pe?!1:0=d&&(h=d-1);var l=this.m(h-1),g=this.m(h);Q.gp(e.x,e.y,k.x,k.y,l.x,l.y,g.x,g.y,.5,a);b=Math.min(g.x,b);c=Math.min(g.y,c);e=g}else for(e=this.m(0),g=this.m(1),b=Math.min(e.x,g.x),c=Math.min(e.y,g.y),a.n(e.x,e.y,0,0),a.wj(g),h=2;hc&&(c=-c)):Q.jb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.qk(d)),g.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}x.ya(g);b=this.m(h);g=this.m(h+1);b.x===g.x?b.y>g.y?a.n(b.x,b.y-(e/2-c)):a.n(b.x,b.y+(e/2-c)):b.y===g.y?b.x>g.x?a.n(b.x-(e/2-c),b.y):a.n(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.n(b.x+e*(g.x-b.x),b.y+e*(g.y-b.y)));return a};x.w(G,{yF:"midAngle"},function(){this.In();return this.computeMidAngle()}); -G.prototype.computeMidAngle=function(){var a=this.ta;if(2>a)return NaN;if(this.computeCurve()===Bh&&4<=a&&!this.sc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.m(c),b=this.m(c+1),d=this.m(c+2),c=this.m(c+3);return Q.BH(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e+10?a.ph(b):e>c+10?b.ph(d):a.ph(d)}; +e.y,d.x,d.y,d.x,d.y,g.x,g.y,.5,a);else for(var h=3;h=d&&(h=d-1);var l=this.m(h-1),g=this.m(h);Q.gp(e.x,e.y,k.x,k.y,l.x,l.y,g.x,g.y,.5,a);b=Math.min(g.x,b);c=Math.min(g.y,c);e=g}else for(e=this.m(0),g=this.m(1),b=Math.min(e.x,g.x),c=Math.min(e.y,g.y),a.n(e.x,e.y,0,0),a.wj(g),h=2;hc&&(c=-c)):Q.jb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.qk(d)),g.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}x.ya(g);b=this.m(h);g=this.m(h+1);b.x===g.x?b.y>g.y?a.n(b.x,b.y-(e/2-c)):a.n(b.x,b.y+(e/2-c)):b.y===g.y?b.x>g.x?a.n(b.x-(e/2-c),b.y):a.n(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.n(b.x+e*(g.x-b.x),b.y+e*(g.y-b.y)));return a};x.w(G,{zF:"midAngle"},function(){this.In();return this.computeMidAngle()}); +G.prototype.computeMidAngle=function(){var a=this.ta;if(2>a)return NaN;if(this.computeCurve()===Bh&&4<=a&&!this.sc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.m(c),b=this.m(c+1),d=this.m(c+2),c=this.m(c+3);return Q.CH(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e+10?a.ph(b):e>c+10?b.ph(d):a.ph(d)}; x.defineProperty(G,{points:"points"},function(){return this.Yc},function(a){var b=this.Yc;if(b!==a){var c=null;if(Array.isArray(a)){var d=0===a.length%2;if(d)for(var e=0;ep&&(t-=180));0>t?t+=360:360<=t&&(t-=360);k&&(v+=Math.abs(p));0===t?r=v:90===t?s=v:180===t?r=-v:270===t?s=-v:(r=v*Math.cos(t*Math.PI/180),s=v*Math.sin(t*Math.PI/180));if(g.Ce()&&k){var y=c.gb(dc,x.P()),A=x.Xb(y.x+1E3*r,y.y+1E3*s);this.getLinkPointFromPoint(b,c,y,A,!0,q);x.A(y);x.A(A)}}var v=this.getLinkPoint(d,e,h,!1,l,b,c),B=0,C= 0,M=0;if(l||h!==Wb||k)y=this.computeEndSegmentLength(d,e,h,!1),M=this.getLinkDirection(d,e,v,h,!1,l,b,c),k&&(M+=l?0:30,0>p&&(M+=180)),0>M?M+=360:360<=M&&(M-=360),k&&(y+=Math.abs(p)),0===M?B=y:90===M?C=y:180===M?B=-y:270===M?C=-y:(B=y*Math.cos(M*Math.PI/180),C=y*Math.sin(M*Math.PI/180)),h.Ce()&&k&&(y=e.gb(dc,x.P()),A=x.Xb(y.x+1E3*B,y.y+1E3*C),this.getLinkPointFromPoint(d,e,y,A,!1,v),x.A(y),x.A(A));e=q;if(l||g!==Wb||k)e=new N(q.x+r,q.y+s);c=v;if(l||h!==Wb||k)c=new N(v.x+B,v.y+C);!n&&!l&&g===Wb&&3c&&(g=-g),g=(0>b?-1:1)*g+a,k=h*(g-a)+n),this.ji(d),this.vl(g,k)):this.ji(d),this.ji(e)));return!0}; function Yo(a,b){Math.abs(b.x-a.x)>Math.abs(b.y-a.y)?(b.x=b.x>=a.x?a.x+9E9:a.x-9E9,b.y=a.y):(b.y=b.y>=a.y?a.y+9E9:a.y-9E9,b.x=a.x);return b} G.prototype.getLinkPointFromPoint=function(a,b,c,d,e,g){void 0===g&&(g=new N);if(null===a||null===b)return g.assign(c),g;a.isVisible()||(e=a.findVisibleNode(),null!==e&&e!==a&&(b=e.port));var h=e=0,k=0,l=0;a=null;e=b.V;null===e||e.Pg()||(e=e.V);if(null===e)e=d.x,h=d.y,k=c.x,l=c.y;else{a=e.lh;e=1/(a.m11*a.m22-a.m12*a.m21);var k=a.m22*e,l=-a.m12*e,m=-a.m21*e,n=a.m11*e,p=e*(a.m21*a.dy-a.m22*a.dx),q=e*(a.m12*a.dx-a.m11*a.dy);e=d.x*k+d.y*m+p;h=d.x*l+d.y*n+q;k=c.x*k+c.y*m+p;l=c.x*l+c.y*n+q}b.zp(e,h,k,l, -g);null!==a&&g.transform(a);return g};function Zo(a,b){var c=b.Km;null===c&&(c=new $o,c.port=b,c.Pc=b.ea,b.Km=c);return ap(c,a)} -G.prototype.getLinkPoint=function(a,b,c,d,e,g,h,k){void 0===k&&(k=new N);if(c.cd())return b.gb(c,k),k;if(c.mj()&&(c=Zo(this,b),null!==c)){k.assign(c.Jp);if(e&&this.Sx===Io){var l=Zo(this,h);if(null!==l&&c.hn=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);x.A(c);x.A(l)}}return k}g=b.gb(dc,x.P());l=c=null;this.ta>(e?6:2)?(l=d?this.m(1):this.m(this.ta-2),e&& +g);null!==a&&g.transform(a);return g};function Zo(a,b){var c=b.Lm;null===c&&(c=new $o,c.port=b,c.Pc=b.ea,b.Lm=c);return ap(c,a)} +G.prototype.getLinkPoint=function(a,b,c,d,e,g,h,k){void 0===k&&(k=new N);if(c.cd())return b.gb(c,k),k;if(c.mj()&&(c=Zo(this,b),null!==c)){k.assign(c.Jp);if(e&&this.Tx===Io){var l=Zo(this,h);if(null!==l&&c.jn=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);x.A(c);x.A(l)}}return k}g=b.gb(dc,x.P());l=c=null;this.ta>(e?6:2)?(l=d?this.m(1):this.m(this.ta-2),e&& (l=Yo(g,l.copy()))):(c=x.P(),l=h.gb(dc,c),e&&(l=Yo(g,l)));this.getLinkPointFromPoint(a,b,g,l,d,k);x.A(g);null!==c&&x.A(c);return k}; G.prototype.getLinkDirection=function(a,b,c,d,e,g,h,k){a:if(d.cd())c=d.x>d.y?d.x>1-d.y?0:d.x<1-d.y?270:315:d.x1-d.y?90:d.x<1-d.y?180:135:.5>d.x?225:.5(g?6:2)?(n=e?this.m(1):this.m(this.ta-2),n=g?Yo(l,n.copy()):c):(m=x.P(),n=k.gb(dc,m));c=0;c=Math.abs(n.x-l.x)>Math.abs(n.y-l.y)?n.x>= -l.x?0:180:n.y>=l.y?90:270;x.A(l);null!==m&&x.A(m)}d.Ce()&&h.pi(a)&&(c+=180,360<=c&&(c-=360));a=vo;a=e?this.Dt:this.Au;a===vo&&(a=e?b.Dt:b.Au);switch(a){case wo:b=b.Ml();c+=b;360<=c&&(c-=360);break;case vo:case Cl:b=b.Ml();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; -G.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.mj()&&(a=Zo(this,b),null!==a))return a.ex;a=NaN;a=d?this.Ll:this.dm;null!==b&&isNaN(a)&&(a=d?b.Ll:b.dm);isNaN(a)&&(a=10);return a};G.prototype.computeSpot=function(a){return a?Wo(this,this.ad):Xo(this,this.Bd)};function Wo(a,b){if(null===b)return dc;var c=a.Gb;c.bd()&&(void 0===b&&(b=a.ad),null!==b&&(c=b.Gb));return c===Jc?Wb:c} -function Xo(a,b){if(null===b)return dc;var c=a.Hb;c.bd()&&(void 0===b&&(b=a.Bd),null!==b&&(c=b.Hb));return c===Jc?Wb:c}G.prototype.computeOtherPoint=function(a,b){var c=b.gb(dc),d;d=b.Km;d=null!==d?ap(d,this):null;null!==d&&(c=d.Jp);return c};G.prototype.computeShortLength=function(a){return a?bp(this):cp(this)};function bp(a){var b=a.Et;isNaN(b)&&(a=a.ad,null!==a&&(b=a.Et));return isNaN(b)?0:b}function cp(a){var b=a.Bu;isNaN(b)&&(a=a.Bd,null!==a&&(b=a.Bu));return isNaN(b)?0:b} -G.prototype.sk=function(a,b,c,d,e,g){if(!1===this.ig)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=g;void 0===g&&(h=x.Hh(),h.reset());h.multiply(this.transform);if(this.en(a,h))return mn(this,b,c,e),void 0===g&&x.kf(h),!0;if(this.Hg(a,h)){var k=!1;if(!this.Yg)for(var l=this.wa.o,m=l.length;m--;){var n=l[m];if(n.visible||n===this.$b){var p=n.ba,q=this.Ga;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=x.Hh();p.set(h);if(n instanceof H)k=n.sk(a,b,c,d,e,p);else if(this.path=== -n){var k=n,r=a,s=d,q=p;if(!1===k.ig)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,v=q;if(k.en(t,v))k=!0;else{if(void 0===v&&(v=k.transform,t.pk(k.ba))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,y=x.P(),A=x.P(),B=x.P(),C=x.Hh();C.set(v);C.MA(k.transform);C.wA();A.x=r;A.y=s;A.transform(C);y.x=q;y.y=s;y.transform(C);v=!1;xn(k,y,A,B)?v=!0:(y.x=r,y.y=t,y.transform(C),xn(k,y,A,B)?v=!0:(A.x=q,A.y=t,A.transform(C),xn(k,y,A,B)?v=!0:(y.x=q,y.y=s,y.transform(C),xn(k,y,A,B)&&(v=!0))));x.kf(C); -x.A(y);x.A(A);x.A(B);k=v}}else k=k.en(r,q)}else k=Hl(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));x.kf(p)}}}void 0===g&&x.kf(h);return k||null!==this.background||null!==this.yl}void 0===g&&x.kf(h);return!1};x.w(G,{sc:"isOrthogonal"},function(){return 2===(this.Mm.value&2)});x.w(G,{lj:"isAvoiding"},function(){return 4===(this.Mm.value&4)});G.prototype.computeCurve=function(){if(null===this.Fi){var a=this.ad,b=this.sc;this.Fi=null!==a&&a===this.Bd&&!b}return this.Fi?Bh:this.Ue}; -G.prototype.computeCorner=function(){if(this.Ue===Bh)return 0;var a=this.eA;if(isNaN(a)||0>a)a=10;return a};G.prototype.findMidLabel=function(){for(var a=this.path,b=this.wa.o,c=b.length,d=0;d=l.y?90:270;x.A(l);null!==m&&x.A(m)}d.Ce()&&h.pi(a)&&(c+=180,360<=c&&(c-=360));a=vo;a=e?this.Dt:this.Au;a===vo&&(a=e?b.Dt:b.Au);switch(a){case wo:b=b.Nl();c+=b;360<=c&&(c-=360);break;case vo:case Cl:b=b.Nl();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; +G.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.mj()&&(a=Zo(this,b),null!==a))return a.gx;a=NaN;a=d?this.Ll:this.em;null!==b&&isNaN(a)&&(a=d?b.Ll:b.em);isNaN(a)&&(a=10);return a};G.prototype.computeSpot=function(a){return a?Wo(this,this.ad):Xo(this,this.Bd)};function Wo(a,b){if(null===b)return dc;var c=a.Gb;c.bd()&&(void 0===b&&(b=a.ad),null!==b&&(c=b.Gb));return c===Jc?Wb:c} +function Xo(a,b){if(null===b)return dc;var c=a.Hb;c.bd()&&(void 0===b&&(b=a.Bd),null!==b&&(c=b.Hb));return c===Jc?Wb:c}G.prototype.computeOtherPoint=function(a,b){var c=b.gb(dc),d;d=b.Lm;d=null!==d?ap(d,this):null;null!==d&&(c=d.Jp);return c};G.prototype.computeShortLength=function(a){return a?bp(this):cp(this)};function bp(a){var b=a.Et;isNaN(b)&&(a=a.ad,null!==a&&(b=a.Et));return isNaN(b)?0:b}function cp(a){var b=a.Bu;isNaN(b)&&(a=a.Bd,null!==a&&(b=a.Bu));return isNaN(b)?0:b} +G.prototype.sk=function(a,b,c,d,e,g){if(!1===this.ig)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=g;void 0===g&&(h=x.Hh(),h.reset());h.multiply(this.transform);if(this.fn(a,h))return mn(this,b,c,e),void 0===g&&x.lf(h),!0;if(this.Hg(a,h)){var k=!1;if(!this.Yg)for(var l=this.wa.o,m=l.length;m--;){var n=l[m];if(n.visible||n===this.$b){var p=n.ba,q=this.Ga;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=x.Hh();p.set(h);if(n instanceof H)k=n.sk(a,b,c,d,e,p);else if(this.path=== +n){var k=n,r=a,s=d,q=p;if(!1===k.ig)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,v=q;if(k.fn(t,v))k=!0;else{if(void 0===v&&(v=k.transform,t.pk(k.ba))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,y=x.P(),A=x.P(),B=x.P(),C=x.Hh();C.set(v);C.NA(k.transform);C.xA();A.x=r;A.y=s;A.transform(C);y.x=q;y.y=s;y.transform(C);v=!1;xn(k,y,A,B)?v=!0:(y.x=r,y.y=t,y.transform(C),xn(k,y,A,B)?v=!0:(A.x=q,A.y=t,A.transform(C),xn(k,y,A,B)?v=!0:(y.x=q,y.y=s,y.transform(C),xn(k,y,A,B)&&(v=!0))));x.lf(C); +x.A(y);x.A(A);x.A(B);k=v}}else k=k.fn(r,q)}else k=Hl(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));x.lf(p)}}}void 0===g&&x.lf(h);return k||null!==this.background||null!==this.yl}void 0===g&&x.lf(h);return!1};x.w(G,{sc:"isOrthogonal"},function(){return 2===(this.Nm.value&2)});x.w(G,{lj:"isAvoiding"},function(){return 4===(this.Nm.value&4)});G.prototype.computeCurve=function(){if(null===this.Fi){var a=this.ad,b=this.sc;this.Fi=null!==a&&a===this.Bd&&!b}return this.Fi?Bh:this.Ue}; +G.prototype.computeCorner=function(){if(this.Ue===Bh)return 0;var a=this.fA;if(isNaN(a)||0>a)a=10;return a};G.prototype.findMidLabel=function(){for(var a=this.path,b=this.wa.o,c=b.length,d=0;dl?-Math.PI/2:Math.PI/2:(n=Math.atan(l/Math.abs(k)),0>k&&(n=Math.PI-n));var h=b.x,p=b.y,l=d.x-h,q=d.y-p,r=Math.sqrt(l*l+q*q),k=0;Q.F(l,0)?k=0>q?-Math.PI/2:Math.PI/2:(k=Math.atan(q/Math.abs(l)),0>l&&(k=Math.PI-k));m=r/m;n=k-n;this.Mf(a,b);for(a+= 1;al?-Math.PI/2:Math.PI/2:(q=Math.atan(l/Math.abs(k)),0>k&&(q=Math.PI-q)),k=q+n,b*=m,this.ca(a,h+b*Math.cos(k),p+b*Math.sin(k)));this.Mf(c,d)}}return!0;case om:g=this.m(a);p=this.m(c);if(!g.wd(b)||!p.wd(d)){var e=g.x,g=g.y,h=p.x,p=p.y,m=(h-e)*(h-e)+(p-g)*(p-g),k=b.x,n=b.y,l=d.x,q=d.y,r=0,s=1,r=0!==l-k?(q-n)/(l-k):9E9;0!==r&&(s=Math.sqrt(1+1/(r*r)));this.Mf(a,b);for(a+=1;ah.left&&l.x=h.t c.y,!0),m.x=c.x,m.y=l.y):180===d&&c.x=a.x?(l.y=a.y>k.bottom?this.computeMidOrthoPosition(a.y,k.bottom,!0):a.y>k.top&&(180===d&&a.xk.right)?this.computeMidOrthoPosition(a.y,c.y,!0):k.top,m.x=c.x,m.y=l.y):270===d&&a.y>k.bottom&&a.x>k.left&&a.xh.right)90===d&&(k.Na(a)||h.Na(c))?l.x=this.computeMidOrthoPosition(a.x, c.x,!1):c.xa.x&&(90===d||180===d)&&(l.x=this.computeMidOrthoPosition(h.right,Math.min(c.x,k.left),!1)),m.x=l.x,m.y=c.y;if(l.x>h.left&&l.x=a.y||a.y>=k.top&&a.y<=c.y){if(0===d||180===d)l=new N(a.x,Math.min((a.y+c.y)/2,a.y)),m=new N(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xk&&0!==ep(e,c.x,c.y)){fp(this,e,c.x,c.y,d,!0);d=this.m(2);if(4>this.ta)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.ca(2,d.x,d.y),this.B(3,d.x,d.y);else if(c=this.m(3),0===b|| +h.cg(2*e.jp,2*e.hp),dp(e,a,b,c,d,h),k=ep(e,c.x,c.y),e.abort||999999!==k||(hl(e),k=e.lG,h.cg(e.jp*k,e.hp*k),dp(e,a,b,c,d,h),k=ep(e,c.x,c.y)),e.abort||999999!==k||(hl(e),k=e.uF,h.cg(e.jp*k,e.hp*k),dp(e,a,b,c,d,h),k=ep(e,c.x,c.y)),!e.abort&&999999===k&&e.FG&&(hl(e),dp(e,a,b,c,d,e.Cb),k=ep(e,c.x,c.y)),!e.abort&&999999>k&&0!==ep(e,c.x,c.y)){fp(this,e,c.x,c.y,d,!0);d=this.m(2);if(4>this.ta)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.ca(2,d.x,d.y),this.B(3,d.x,d.y);else if(c=this.m(3),0===b|| 180===b)Q.F(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.ca(2,b,a.y),this.ca(3,b,c.y)):Q.F(d.y,c.y)?(Math.abs(a.y-d.y)<=e.hp/2&&(this.ca(2,d.x,a.y),this.ca(3,c.x,a.y)),this.B(2,d.x,a.y)):this.ca(2,a.x,d.y);else if(90===b||270===b)Q.F(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.ca(2,a.x,b),this.ca(3,c.x,b)):Q.F(d.x,c.x)?(Math.abs(a.x-d.x)<=e.jp/2&&(this.ca(2,a.x,d.y),this.ca(3,a.x,c.y)),this.B(2,a.x,d.y)):this.ca(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.ji(l),this.ji(m))}}; G.prototype.computeMidOrthoPosition=function(a,b){if(this.hasCurviness()){var c=this.computeCurviness();return(a+b)/2+c}return(a+b)/2};function vg(a){if(!a.lj)return!1;var b=a.points.o,c=b.length;if(4>c)return!1;a=ka(a.h,!0,a.Xa,null);for(var d=1;da){var b=new ud(vd),c=new wd(0,0);b.ec.add(c);return b}var d=!1,b=this.h;null!==b&&To(this)&&b.Wk.contains(this)&&null!==this.gw&&(d=!0);var c=b=0,e=this.m(0).copy(),g=e.copy(),b=this.Yc.o,h=this.computeCurve();if(h===Bh&&3<=a&&!Q.jb(this.gq,0))if(3===a)var k=this.m(1),b=Math.min(e.x,k.x),c=Math.min(e.y,k.y),k=this.m(2),b=Math.min(b,k.x),c=Math.min(c,k.y);else{if(this.sc)for(k=0;k=a&&(k=a-1),b=this.m(k),g.x=Math.min(b.x,g.x),g.y=Math.min(b.y,g.y);b=g.x;c=g.y}else{for(k=0;k=a&&(k=a-1),b=this.m(k),g.x=Math.min(b.x,g.x),g.y=Math.min(b.y,g.y);b=g.x;c=g.y}else{for(k=0;ky?r>q?(t.x=A-C,t.y=q-C,v.x= A+s,v.y=q+s):(t.x=A-C,t.y=q+C,v.x=A+s,v.y=q-s):r>q?(t.x=A+C,t.y=q-C,v.x=A-s,v.y=q+s):(t.x=A+C,t.y=q+C,v.x=A-s,v.y=q-s));Q.jb(y,A)&&Q.jb(q,r)&&(q>p?(B>A?(t.x=A-C,t.y=q-C,v.x=A+s):(t.x=A+C,t.y=q-C,v.x=A-s),v.y=q+s):(B>A?(t.x=A-C,t.y=q+C,v.x=A+s):(t.x=A+C,t.y=q+C,v.x=A-s),v.y=q-s));if(Q.jb(y,A)&&Q.jb(A,B)||Q.jb(p,q)&&Q.jb(q,r))y=.5*(y+B),p=.5*(p+r),t.x=y,t.y=p,v.x=y,v.y=p;1===k?(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y)):2===k&&Q.jb(d.x,this.m(0).x)&&Q.jb(d.y,this.m(0).y)&&(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y)); T(l,e.x-b,e.y-c,h.x-b,h.y-c,m.x-b,m.y-c);g.set(h);e.set(a);d=m}}k=d.x;d=d.y;g=this.m(this.ta-1);k=.5*(k+g.x);d=.5*(d+g.y);T(l,a.x-b,a.y-c,k-b,d-c,g.x-b,g.y-c)}else for(k=3;k=a&&(k=a-1),g=this.m(k-1),e=this.m(k),k===a-1&&0!==cp(this)&&(e=e.copy(),gp(this,e,!1,Q.Ek)),T(l,d.x-b,d.y-c,g.x-b,g.y-c,e.x-b,e.y-c);else{g=x.P();g.assign(this.m(0));for(k=1;k=a-1){g!==t&&(0!==cp(this)&&(t=t.copy(),gp(this,t,!1,Q.Ek)),jp(this,l,-b,-c,g,t,d));break}k= @@ -1660,201 +1660,201 @@ function hp(a,b,c,d){for(var e=a.ta,g=b;Q.jb(b.x,g.x)&&Q.jb(b.y,g.y);){if(c>=e)r function jp(a,b,c,d,e,g,h){if(!h&&To(a)){h=[];var k=0;a.isVisible()&&(k=kp(a,e,g,h));var l=e.x,l=e.y;if(0p-10)m--,p=Math.max(q-5,g.x);else break;q=g.y-10+d;n=p+c;p=g.y+d;a.Ue===th?S(b,n,p,!1,!1):T(b,l,q,n,q,n,p)}else if(Q.F(e.x,g.x))if(e.yp-10)m--,p=Math.max(q-5,g.y);else break;q=g.x-10+c;n=g.x+c;p+=d;a.Ue===th?S(b,n,p,!1,!1):T(b,q,l,q,p,n,p)}}b.lineTo(g.x+c,g.y+d)} -function kp(a,b,c,d){var e=a.h;if(null===e||b.O(c))return 0;for(e=e.wn;e.next();){var g=e.value;if(null!==g&&g.visible)for(var g=g.pb.o,h=g.length,k=0;kh.x&&n.x>m.x||m.xh.y&&n.y>m.y||m.yt&&Math.min(h,y)q&&!Q.F(h,y)){n.x=t;n.y=q;n=!0;break a}}else if(!Q.F(q,s)&&Q.F(h,y)&&Math.min(q, -s)h&&Math.min(t,v)p&&!Q.F(t,v)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}x.A(k)}x.w(G,{At:"firstPickIndex"},function(){return 2>=this.ta?0:this.sc||Wo(this)!==Wb?1:0});x.w(G,{Ax:"lastPickIndex"},function(){var a=this.ta;return 0===a?0:2>=a?a-1:this.sc||Xo(this)!==Wb?a-2:a-1});function To(a){a=a.Ue;return a===sh||a===th}function Vo(a,b){if(b||To(a)){var c=a.h;null===c||c.Wk.contains(a)||null===a.gw||c.Wk.add(a,a.gw)}} +s)h&&Math.min(t,v)p&&!Q.F(t,v)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}x.A(k)}x.w(G,{At:"firstPickIndex"},function(){return 2>=this.ta?0:this.sc||Wo(this)!==Wb?1:0});x.w(G,{Bx:"lastPickIndex"},function(){var a=this.ta;return 0===a?0:2>=a?a-1:this.sc||Xo(this)!==Wb?a-2:a-1});function To(a){a=a.Ue;return a===sh||a===th}function Vo(a,b){if(b||To(a)){var c=a.h;null===c||c.Wk.contains(a)||null===a.gw||c.Wk.add(a,a.gw)}} function vh(a,b){var c=a.layer;if(null!==c&&c.visible&&!c.Nc){var d=c.h;if(null!==d)for(var e=!1,d=d.wn;d.next();){var g=d.value;if(g.visible)if(g===c)for(var e=!0,h=!1,g=g.pb.o,k=g.length,l=0;l=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.Uf=Math.floor((a.x-this.Rd)/this.Rd)*this.Rd;this.Vf=Math.floor((b-this.Cd)/this.Cd)*this.Cd;this.Hr=Math.ceil((c+2*this.Rd)/this.Rd)*this.Rd;this.Ir=Math.ceil((d+2*this.Cd)/this.Cd)*this.Cd;a=1+(Math.ceil((this.Hr-this.Uf)/this.Rd)|0);b=1+(Math.ceil((this.Ir-this.Vf)/this.Cd)|0);if(null===this.mc||this.Vmthis.Hr||a+cthis.Ir||b+da&&(c+=a,a=0);0>b&&(e+=b,b=0);if(0>c||0>e)return!0;d=Math.min(a+c-1,this.Vm)|0;for(c=Math.min(b+e-1,this.Wm)|0;a<=d;a++)for(e=b;e<=c;e++)if(0===this.mc[a][e])return!1;return!0}; +x.defineProperty(G,{dt:"adjusting"},function(){return this.rq},function(a){var b=this.rq;b!==a&&(u&&x.Ca(a,G,G,"adjusting"),this.rq=a,this.j("adjusting",b,a))});x.defineProperty(G,{fA:"corner"},function(){return this.Iq},function(a){var b=this.Iq;b!==a&&(u&&x.g(a,"number",G,"corner"),this.Iq=a,this.Be(),this.j("corner",b,a))}); +x.defineProperty(G,{Ue:"curve"},function(){return this.Lq},function(a){var b=this.Lq;b!==a&&(u&&x.Ca(a,G,G,"curve"),this.Lq=a,this.rc(),this.Be(),Vo(this,b===th||b===sh||a===th||a===sh),this.j("curve",b,a))});x.defineProperty(G,{$w:"curviness"},function(){return this.Mq},function(a){var b=this.Mq;b!==a&&(u&&x.g(a,"number",G,"curviness"),this.Mq=a,this.rc(),this.Be(),this.j("curviness",b,a))}); +x.defineProperty(G,{Tx:"routing"},function(){return this.Nm},function(a){var b=this.Nm;b!==a&&(u&&x.Ca(a,G,G,"routing"),this.Nm=a,this.Fi=null,this.rc(),Vo(this,2===(b.value&2)||2===(a.value&2)),this.j("routing",b,a))});x.defineProperty(G,{gq:"smoothness"},function(){return this.Js},function(a){var b=this.Js;b!==a&&(u&&x.g(a,"number",G,"smoothness"),this.Js=a,this.Be(),this.j("smoothness",b,a))}); +function Ro(a){var b=a.og;if(null!==b){var c=a.zg;if(null!==c){var d=a.Rh;a=a.hi;for(var e=null,g=null,h=b.nc.o,k=h.length,l=0;l=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.Uf=Math.floor((a.x-this.Rd)/this.Rd)*this.Rd;this.Vf=Math.floor((b-this.Cd)/this.Cd)*this.Cd;this.Hr=Math.ceil((c+2*this.Rd)/this.Rd)*this.Rd;this.Ir=Math.ceil((d+2*this.Cd)/this.Cd)*this.Cd;a=1+(Math.ceil((this.Hr-this.Uf)/this.Rd)|0);b=1+(Math.ceil((this.Ir-this.Vf)/this.Cd)|0);if(null===this.mc||this.Wmthis.Hr||a+cthis.Ir||b+da&&(c+=a,a=0);0>b&&(e+=b,b=0);if(0>c||0>e)return!0;d=Math.min(a+c-1,this.Wm)|0;for(c=Math.min(b+e-1,this.Xm)|0;a<=d;a++)for(e=b;e<=c;e++)if(0===this.mc[a][e])return!1;return!0}; function op(a,b,c,d,e,g,h,k,l){if(!(bh||cl)){var m,n;m=b|0;n=c|0;var p=a.mc[m][n];if(1<=p&&999999>p)for(e?n+=d:m+=d,p+=1;g<=m&&m<=h&&k<=n&&n<=l&&!(p>=a.mc[m][n]);)a.mc[m][n]=p,p+=1,e?n+=d:m+=d;m=e?n:m;if(e)if(0m;c+=d)op(a,b,c,1,!e,g,h,k,l),op(a,b,c,-1,!e,g,h,k,l);else if(0m;b+=d)op(a,b,c,1,!e,g,h,k,l),op(a,b,c,-1,!e,g,h, k,l)}}function pp(a,b,c,d,e,g,h,k,l,m,n){for(var p=b|0,q=c|0,r=a.mc[p][q];0===r&&p>k&&pm&&q=Math.abs(p-d)&&1>=Math.abs(q-e))return a.abort=!0,0;p=b|0;q=c|0;r=a.mc[p][q];b=1;for(a.mc[p][q]=b;0===r&&p>k&&pm&&q=Math.abs(h-l)&&1>=Math.abs(k-m))a.abort=!0;else{var n=g.x;b=g.y;d=g.x+g.width;var p=g.y+g.height,n=n-a.Uf,n=n/a.Rd;b-=a.Vf;b/=a.Cd;d-=a.Uf;d/=a.Rd;p-=a.Vf;p/=a.Cd;g=Math.max(0,Math.min(a.Vm,n|0));d=Math.min(a.Vm,Math.max(0,d|0));b=Math.max(0,Math.min(a.Wm,b|0));var p=Math.min(a.Wm,Math.max(0,p|0)),h=h|0,k=k|0,l=l|0, +function dp(a,b,c,d,e,g){if(null!==a.mc){a.abort=!1;var h=b.x,k=b.y;if(np(a,h,k)){var h=h-a.Uf,h=h/a.Rd,k=k-a.Vf,k=k/a.Cd,l=d.x,m=d.y;if(np(a,l,m))if(l-=a.Uf,l/=a.Rd,m-=a.Vf,m/=a.Cd,1>=Math.abs(h-l)&&1>=Math.abs(k-m))a.abort=!0;else{var n=g.x;b=g.y;d=g.x+g.width;var p=g.y+g.height,n=n-a.Uf,n=n/a.Rd;b-=a.Vf;b/=a.Cd;d-=a.Uf;d/=a.Rd;p-=a.Vf;p/=a.Cd;g=Math.max(0,Math.min(a.Wm,n|0));d=Math.min(a.Wm,Math.max(0,d|0));b=Math.max(0,Math.min(a.Xm,b|0));var p=Math.min(a.Xm,Math.max(0,p|0)),h=h|0,k=k|0,l=l|0, m=m|0,n=h,q=k,r=0===c||90===c?1:-1;(c=90===c||270===c)?q=pp(a,h,k,l,m,r,c,g,d,b,p):n=pp(a,h,k,l,m,r,c,g,d,b,p);if(!a.abort){a:{c=0===e||90===e?1:-1;e=90===e||270===e;for(var r=l|0,s=m|0,t=a.mc[r][s];0===t&&r>g&&rb&&s=Math.abs(r-h)&&1>=Math.abs(s-k)){a.abort=!0;break a}r=l|0;s=m|0;t=a.mc[r][s];for(a.mc[r][s]=999999;0===t&&r>g&&rb&&s=c?180:0}a=180*Math.atan2(a.height,a.width)/Math.PI;switch(b){case x.Tc|x.qd:return c>a&&c<=180+a?180:270;case x.qd|x.fd:return c>180-a&&c<=360-a?270:0;case x.fd|x.ed:return c>a&&c<=180+a?90:0;case x.ed|x.Tc:return c>180-a&&c<=360-a?180:90;case x.Tc|x.qd|x.fd:return 90180+a&&c<=360- a?270:0;case x.qd|x.fd|x.ed:return 180a&&180>=c?90:0;case x.fd|x.ed|x.Tc:return c>a&&c<=180-a?90:c>180-a&&270>=c?180:0;case x.ed|x.Tc|x.qd:return c>180-a&&c<=180+a?180:c>180+a?270:90}d&&b!==(x.Tc|x.qd|x.fd|x.ed)&&(c-=15,0>c&&(c+=360));return c>a&&c<180-a?90:c>=180-a&&c<=180+a?180:c>180+a&&c<360-a?270:0}$o.prototype.tn=function(){this.gg.length=0}; -function ap(a,b){var c=a.gg;if(0===c.length){a:if(!a.Rp){c=a.Rp;a.Rp=!0;var d,e=null,g=a.Pc,g=g instanceof F?g:null;if(null===g||g.re)d=a.Pc.PE(a.port.Ad);else{if(!g.ba.G()){a.Rp=c;break a}e=g;d=e.OE()}var h=a.gg.length=0,k=a.port.gb(Xb,x.P()),l=a.port.gb(lc,x.P()),g=x.Dk(k.x,k.y,0,0);g.wj(l);x.A(k);x.A(l);k=x.Xb(g.x+g.width/2,g.y+g.height/2);for(d=d.i;d.next();)if(l=d.value,l.isVisible()){var m=Wb,n=l.ad===a.port||l.Z.pi(e),m=n?Wo(l,a.port):Xo(l,a.port);if(m.mj()&&(n=n?l.Bd:l.ad,null!==n)){var p= -n.ea;if(null!==p){var n=l.computeOtherPoint(p,n),p=k.ph(n),m=qp(g,m,p,l.sc),q=0;0===m?(q=x.fd,180 Math.abs(I)?(B=Math.abs(I)/q,q=Math.abs(I)):B=1;break;case x.Tc:r>Math.abs(M)?(B=Math.abs(M)/r,r=Math.abs(M)):B=1;break;case x.qd:n>Math.abs(I)?(B=Math.abs(I)/n,n=Math.abs(I)):B=1;break;default:case x.fd:p>Math.abs(M)?(B=Math.abs(M)/p,p=Math.abs(M)):B=1}A=0}var V=t.Jp;if(e===xo){v=t.link.computeThickness();v*=B;V.set(C);switch(y){case x.ed:V.x=C.x+I/2+q/2-A-v/2;break;case x.Tc:V.y=C.y+M/2+r/2-A-v/2;break;case x.qd:V.x=C.x+I/2-n/2+A+v/2;break;default:case x.fd:V.y=C.y+M/2-p/2+A+v/2}A+=v}else v=.5, -e===uo&&(v=(t.Bp+1)/(t.hn+1)),V.x=C.x+I*v,V.y=C.y+M*v}x.A(k);x.A(d);x.A(l);x.A(m);C=a.gg;for(I=0;Ib.se?1:a.angleb.angle?1:0}; -$o.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Pc,this.port,Wb,b.ad===this.port),d=a.Bp;if(0>d)return c;var e=a.hn;if(1>=e||!b.sc)return c;var b=a.Ix,g=a.Jp;if(a.se===x.Tc||a.se===x.ed)d=e-1-d;return((a=a.se===x.Tc||a.se===x.fd)?b.yb.se?1:a.angleb.angle?1:0}; +$o.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Pc,this.port,Wb,b.ad===this.port),d=a.Bp;if(0>d)return c;var e=a.jn;if(1>=e||!b.sc)return c;var b=a.Jx,g=a.Jp;if(a.se===x.Tc||a.se===x.ed)d=e-1-d;return((a=a.se===x.Tc||a.se===x.fd)?b.ye&&(e=k.right);k.bottom>g&&(g=k.bottom)}}isFinite(c)&&isFinite(d)?a.n(c,d,e-c,g-d):(b=b.location,c=this.padding,a.n(b.x+c.left,b.y+c.top,0,0));return a}; +Gh.prototype.computeBorder=function(a){var b=this.ea;if(b instanceof F){var c=b;if(c.tE&&this.vs.G()){var d=c.h;if(null!==d&&(d=d.cb,d instanceof Mf&&!d.Xq&&null!==d.ic&&!d.ic.contains(c)))return a.assign(this.vs),a}}var c=x.kg(),d=this.computeMemberBounds(c),e=this.padding;a.n(d.x-e.left,d.y-e.top,d.width+e.left+e.right,d.height+e.top+e.bottom);x.qc(c);b instanceof F&&(c=b,c.NH&&c.location.G()&&a.wj(c.location));return a}; +Gh.prototype.computeMemberBounds=function(a){if(!(this.ea instanceof F))return a.n(0,0,0,0),a;for(var b=this.ea,c=Infinity,d=Infinity,e=-Infinity,g=-Infinity,h=b.Gc;h.next();){var k=h.value;if(k.isVisible()){if(k instanceof G){var l=k;if(!b.Yw)continue;if(Vj(l))continue;if(l.Z===b||l.fa===b)continue}k=k.ba;k.lefte&&(e=k.right);k.bottom>g&&(g=k.bottom)}}isFinite(c)&&isFinite(d)?a.n(c,d,e-c,g-d):(b=b.location,c=this.padding,a.n(b.x+c.left,b.y+c.top,0,0));return a}; x.defineProperty(Gh,{padding:"padding"},function(){return this.ef},function(a){"number"===typeof a?((isNaN(a)||0>a)&&x.la(a,">= 0",Gh,"padding"),a=new yb(a)):(x.l(a,yb,Gh,"padding"),(isNaN(a.left)||0>a.left)&&x.la(a.left,">= 0",Gh,"padding:value.left"),(isNaN(a.right)||0>a.right)&&x.la(a.right,">= 0",Gh,"padding:value.right"),(isNaN(a.top)||0>a.top)&&x.la(a.top,">= 0",Gh,"padding:value.top"),(isNaN(a.bottom)||0>a.bottom)&&x.la(a.bottom,">= 0",Gh,"padding:value.bottom"));var b=this.ef;b.O(a)||(this.ef= -a=a.Y(),this.j("padding",b,a))});function df(){0=c-1?(h=0,e=d,g+=k+20,k=0):h++}null!==a&&a.Nd("Layout")}this.Hf=!0};df.prototype.NA=function(a){return!a.location.G()||a instanceof F&&a.zz?!0:!1}; +df.prototype.doLayout=function(a){null===a&&x.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");var b=new K(D);a instanceof z?(up(this,b,a.xh,!0,this.OA,!0,!1,!0),up(this,b,a.sj,!0,this.OA,!0,!1,!0)):a instanceof F?up(this,b,a.Gc,!1,this.OA,!0,!1,!0):b.$c(a.i);var c=b.count;if(0=c-1?(h=0,e=d,g+=k+20,k=0):h++}null!==a&&a.Nd("Layout")}this.Hf=!0};df.prototype.OA=function(a){return!a.location.G()||a instanceof F&&a.Az?!0:!1}; function up(a,b,c,d,e,g,h,k){for(c=c.i;c.next();){var l=c.value;d&&!l.Fp||null!==e&&!e(l)||!l.canLayout()||(g&&l instanceof E?l.Ef||(l instanceof F?null===l.Tb?up(a,b,l.Gc,!1,e,g,h,k):b.add(l):b.add(l)):h&&l instanceof G?b.add(l):!k||!l.$d()||l instanceof E||b.add(l))}} -df.prototype.collectParts=df.prototype.GH=function(a){var b=new K(D);a instanceof z?(up(this,b,a.xh,!0,null,!0,!0,!0),up(this,b,a.links,!0,null,!0,!0,!0),up(this,b,a.sj,!0,null,!0,!0,!0)):a instanceof F?up(this,b,a.Gc,!1,null,!0,!0,!0):up(this,b,a.i,!1,null,!0,!0,!0);return b};x.defineProperty(df,{he:"arrangementOrigin"},function(){return this.uq},function(a){x.l(a,N,df,"arrangementOrigin");this.uq.O(a)||(this.uq.assign(a),this.J())}); +df.prototype.collectParts=df.prototype.HH=function(a){var b=new K(D);a instanceof z?(up(this,b,a.xh,!0,null,!0,!0,!0),up(this,b,a.links,!0,null,!0,!0,!0),up(this,b,a.sj,!0,null,!0,!0,!0)):a instanceof F?up(this,b,a.Gc,!1,null,!0,!0,!0):up(this,b,a.i,!1,null,!0,!0,!0);return b};x.defineProperty(df,{he:"arrangementOrigin"},function(){return this.uq},function(a){x.l(a,N,df,"arrangementOrigin");this.uq.O(a)||(this.uq.assign(a),this.J())}); df.prototype.initialOrigin=function(a){var b=this.group;if(null!==b){var c=b.position.copy();(isNaN(c.x)||isNaN(c.y))&&c.set(a);b=b.placeholder;null!==b&&(c=b.gb(Xb),(isNaN(c.x)||isNaN(c.y))&&c.set(a),c.x+=b.padding.left,c.y+=b.padding.top);return c}return a};function xa(){x.lc(this);this.ee=null;this.clear()}x.ja("LayoutNetwork",xa); -xa.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.i;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.i;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new K(ya);this.edges=new K(Aa);this.RA=new ra(E,ya);this.DA=new ra(G,Aa)}; +xa.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.i;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.i;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new K(ya);this.edges=new K(Aa);this.SA=new ra(E,ya);this.EA=new ra(G,Aa)}; xa.prototype.toString=function(a){void 0===a&&(a=0);var b="LayoutNetwork"+(null!==this.Tb?"("+this.Tb.toString()+")":"");if(0>=a)return b;b+=" vertexes: "+this.vertexes.count+" edges: "+this.edges.count;if(1d?1:0):1:null!==d?-1:0}; ya.smartComparer=function(a,b){u&&x.l(a,ya,ya,"smartComparer:m");u&&x.l(b,ya,ya,"smartComparer:n");if(null!==a){if(null!==b){var c=a.Ed,d=b.Ed;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=g&&0>=h&&(g=1);a=this.spacing.width;isFinite(a)||(a=0);c=this.spacing.height;isFinite(c)||(c=0);null!==b&&b.Wb("Layout");d=[];switch(this.alignment){case ym:var k=a,l=c,m=Math.max(this.ip.width,1);if(!isFinite(m))for(var n=m=0;n=g&&0>=h&&(g=1);a=this.spacing.width;isFinite(a)||(a=0);c=this.spacing.height;isFinite(c)||(c=0);null!==b&&b.Wb("Layout");d=[];switch(this.alignment){case ym:var k=a,l=c,m=Math.max(this.ip.width,1);if(!isFinite(m))for(var n=m=0;ng-1||0h)d.push(new w(0,y,h+k,B)),A=0,v=t,y+=B,B=0;B=Math.max(B,M);M=0;switch(s){case wm:M=-q.width;break;default:M=0}p.moveTo(v+M,y);switch(s){case wm:v-=C;break; -default:v+=C}A++}d.push(new w(0,y,h+k,B));break;case xm:k=g;l=a;m=c;n=Math.max(this.ip.width,1);p=y=C=0;q=x.P();for(g=0;g=C&&(h-=C);for(var C=M=0,I=Math.max(this.ip.height,1),ea=p=0,W=!0,P=x.P(),g=0;gk-1||0h){d.push(new w(0,W?A-p:A,h+l,ea+p+m));for(V=0;V=C&&(h-=C);for(var C=M=0,I=Math.max(this.ip.height,1),ea=p=0,W=!0,P=x.P(),g=0;gk-1||0h){d.push(new w(0,W?A-p:A,h+l,ea+p+m));for(V=0;VC&&(e.width+=e.x-C,e.x=C)}for(k=g=h=e=0;kd?1:0}; pl.smartComparer=function(a,b){u&&x.l(a,D,pl,"standardComparer:a");u&&x.l(b,D,pl,"standardComparer:b");if(null!==a){if(null!==b){for(var c=a.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=b.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=a.count)1===a.count&&(a=a.first(),a.sa=0,a.Aa=0);else{var b=new J(Dp);b.$c(a.i);a=new J(Dp);var c=new J(Dp),d;d=this.sort(b);var e=this.Yy,g=this.wC,h=this.Ud,k=this.lo,l=this.Zy,m=this.Yq,b=this.Xk,n=this.QD,p=this.Bg,q=this.bv,e=this.Zf,g=this.Fx,h=this.FJ;if(!isFinite(h)|| -0>=h)h=NaN;k=this.yH;if(!isFinite(k)||0>=k)k=1;l=this.Ge;isFinite(l)||(l=0);m=this.Nf;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Sm&&g===Tm?e=Rm:e===Sm&&g!==Tm&&(g=Tm,e=this.Zf);if((this.direction===Fm||this.direction===Gm)&&this.sorting!==Em){for(var r=0;!(r>=d.length);r+=2){a.add(d.ia(r));if(r+1>=d.length)break;c.add(d.ia(r+1))}this.direction===Fm?(this.Zf===Sm&&a.reverse(),d=new J(Dp),d.$c(a),d.$c(c)):(this.Zf===Sm&&c.reverse(),d=new J(Dp),d.$c(c),d.$c(a))}for(var s= +zm.prototype.doLayout=function(a){null===a&&x.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");null===this.network&&(this.network=this.makeNetwork(a));a=this.network.vertexes;if(1>=a.count)1===a.count&&(a=a.first(),a.sa=0,a.Aa=0);else{var b=new J(Dp);b.$c(a.i);a=new J(Dp);var c=new J(Dp),d;d=this.sort(b);var e=this.Zy,g=this.xC,h=this.Ud,k=this.lo,l=this.$y,m=this.Yq,b=this.Xk,n=this.RD,p=this.Bg,q=this.bv,e=this.Zf,g=this.Gx,h=this.FJ;if(!isFinite(h)|| +0>=h)h=NaN;k=this.zH;if(!isFinite(k)||0>=k)k=1;l=this.Ge;isFinite(l)||(l=0);m=this.Nf;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Sm&&g===Tm?e=Rm:e===Sm&&g!==Tm&&(g=Tm,e=this.Zf);if((this.direction===Fm||this.direction===Gm)&&this.sorting!==Em){for(var r=0;!(r>=d.length);r+=2){a.add(d.ia(r));if(r+1>=d.length)break;c.add(d.ia(r+1))}this.direction===Fm?(this.Zf===Sm&&a.reverse(),d=new J(Dp),d.$c(a),d.$c(c)):(this.Zf===Sm&&c.reverse(),d=new J(Dp),d.$c(c),d.$c(a))}for(var s= d.length,t=n=0,r=0;rm&&(0===r||r===d.length-1)&&(v/=2);n+=v;t++}if(isNaN(h)||e===Sm){isNaN(b)&&(b=6);if(e!==Rm&&e!==Sm){v=-Infinity;for(r=0;rh?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.Yy=e;this.wC=g;this.Ud=h;this.lo=k;this.Zy=l;this.Yq=m;this.Xk=b;this.QD=n;this.Bg=p;this.bv=q;b=d;d=this.Yy;e=this.Ud;g=this.Zy;k=this.Yq;l=this.Xk;m=this.Bg;n=this.bv;if(this.direction!==Fm&&this.direction!==Gm||d!==Sm)if(this.direction===Fm||this.direction===Gm){h=0;switch(d){case Qm:h=180*Hp(this,e,m,g,n)/Math.PI;break;case Rm:n=b=0;h=a.first();null!==h&&(b=Ep(h,Math.PI/2));h=c.first();null!==h&&(n=Ep(h,Math.PI/2));h=180*Hp(this,e,m,g,l+(b+ +m*Math.PI/180);r>h?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.Zy=e;this.xC=g;this.Ud=h;this.lo=k;this.$y=l;this.Yq=m;this.Xk=b;this.RD=n;this.Bg=p;this.bv=q;b=d;d=this.Zy;e=this.Ud;g=this.$y;k=this.Yq;l=this.Xk;m=this.Bg;n=this.bv;if(this.direction!==Fm&&this.direction!==Gm||d!==Sm)if(this.direction===Fm||this.direction===Gm){h=0;switch(d){case Qm:h=180*Hp(this,e,m,g,n)/Math.PI;break;case Rm:n=b=0;h=a.first();null!==h&&(b=Ep(h,Math.PI/2));h=c.first();null!==h&&(n=Ep(h,Math.PI/2));h=180*Hp(this,e,m,g,l+(b+ n)/2)/Math.PI;break;case Pm:h=k/b.length}if(this.direction===Fm){switch(d){case Qm:Ip(this,a,g,Om);break;case Rm:Jp(this,a,g,Om);break;case Pm:Kp(this,a,k/2,g,Om)}switch(d){case Qm:Ip(this,c,g+h,Hm);break;case Rm:Jp(this,c,g+h,Hm);break;case Pm:Kp(this,c,k/2,g+h,Hm)}}else{switch(d){case Qm:Ip(this,c,g,Om);break;case Rm:Jp(this,c,g,Om);break;case Pm:Kp(this,c,k/2,g,Om)}switch(d){case Qm:Ip(this,a,g+h,Hm);break;case Rm:Jp(this,a,g+h,Hm);break;case Pm:Kp(this,a,k/2,g+h,Hm)}}}else switch(d){case Qm:Ip(this, b,g,this.direction);break;case Rm:Jp(this,b,g,this.direction);break;case Pm:Kp(this,b,k,g,this.direction);break;case Sm:Lp(this,b,k,g,this.direction)}else Lp(this,b,k,g-k/2,Hm)}this.updateParts();this.network=null;this.Hf=!0}; function Kp(a,b,c,d,e){var g=a.Yq,h=a.Ud;a=a.Bg;d=d*Math.PI/180;c=c*Math.PI/180;for(var k=b.length,l=0;lc){for(g=d+(e===Hm?g:-g);0>g;)g+=360;g%=360;180c){for(g=d+(e===Hm?g:-g);0>g;)g+=360;g%=360;180=n.length-1)break;Op(a,l,m,n,p,e,g)||Pp(a,l,m,n,p,e,g);l=g.x;m=g.y}x.A(g);a.Hm++;if(!(23Math.abs(r)?Math.abs(l-g)<(n[0].width+n[n.length-1].width)/2&&(h=0):h=0Math.abs(q)?0:q;q=!1;q=Math.abs(g)>Math.abs(p)?0p:0a.Hm?a.Ud-h/(2*Math.PI):5>n.length&&10=p.length-1)break;Op(a,l,m,p,q,e,n)||Pp(a,l,m,p,q,e,n);l=n.x;m=n.y}x.A(n);a.Hm++;if(!(23a.Hm?a.Ud-g/(2*Math.PI):a.Ud-(0k){m=b-a;if(m<-k)return h.x=m,h.y=n,!1;p=!0}}else if(m=b-a,m<-k){m=b+a;if(m>k)return h.x=m,h.y=n,!1;p=!0}n=Math.sqrt(1-Math.min(1,m*m/(k*k)))*l;0>c!==p&&(n=-n);if(Math.abs(c-n)>(d[e].height+d[e+1].height)/2)return h.x=m,h.y=n,!1;h.x=m;h.y=n;return!0} +l;n[p].Aa=m;if(p>=n.length-1)break;Op(a,l,m,n,p,e,g)||Pp(a,l,m,n,p,e,g);l=g.x;m=g.y}x.A(g);a.Im++;if(!(23Math.abs(r)?Math.abs(l-g)<(n[0].width+n[n.length-1].width)/2&&(h=0):h=0Math.abs(q)?0:q;q=!1;q=Math.abs(g)>Math.abs(p)?0p:0a.Im?a.Ud-h/(2*Math.PI):5>n.length&&10=p.length-1)break;Op(a,l,m,p,q,e,n)||Pp(a,l,m,p,q,e,n);l=n.x;m=n.y}x.A(n);a.Im++;if(!(23a.Im?a.Ud-g/(2*Math.PI):a.Ud-(0k){m=b-a;if(m<-k)return h.x=m,h.y=n,!1;p=!0}}else if(m=b-a,m<-k){m=b+a;if(m>k)return h.x=m,h.y=n,!1;p=!0}n=Math.sqrt(1-Math.min(1,m*m/(k*k)))*l;0>c!==p&&(n=-n);if(Math.abs(c-n)>(d[e].height+d[e+1].height)/2)return h.x=m,h.y=n,!1;h.x=m;h.y=n;return!0} function Pp(a,b,c,d,e,g,h){var k=a.Ud,l=a.Bg,m=0,n=0;a=(d[e].height+d[e+1].height)/2+a.Xk;d=!1;if(0<=b!==(g===Hm)){if(n=c-a,n<-l){n=c+a;if(n>l){h.x=m;h.y=n;return}d=!0}}else if(n=c+a,n>l){n=c-a;if(n<-l){h.x=m;h.y=n;return}d=!0}m=Math.sqrt(1-Math.min(1,n*n/(l*l)))*k;0>b!==d&&(m=-m);h.x=m;h.y=n}zm.prototype.commitLayout=function(){this.commitNodes();this.Pt&&this.commitLinks()}; -zm.prototype.commitNodes=function(){for(var a=this.nH,b=this.network.vertexes.i;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};zm.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()}; -function Gp(a,b,c,d,e){var g=a.cH;if(.001>Math.abs(a.lo-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(g+1):Math.PI/(2*(g+1)),l=0,m=0;m<=g;m++)l=void 0!==d&&void 0!==e?d+m*e/g:m*Math.PI/(2*g),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function Fp(a,b,c,d,e){var g=0,g=void 0!==d&&void 0!==e?Gp(a,1,c,d,e):Gp(a,1,c);return b/g} +zm.prototype.commitNodes=function(){for(var a=this.oH,b=this.network.vertexes.i;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};zm.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()}; +function Gp(a,b,c,d,e){var g=a.dH;if(.001>Math.abs(a.lo-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(g+1):Math.PI/(2*(g+1)),l=0,m=0;m<=g;m++)l=void 0!==d&&void 0!==e?d+m*e/g:m*Math.PI/(2*g),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function Fp(a,b,c,d,e){var g=0,g=void 0!==d&&void 0!==e?Gp(a,1,c,d,e):Gp(a,1,c);return b/g} function Hp(a,b,c,d,e){if(.001>Math.abs(a.lo-1))return e/b;var g=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c,h=0;a=2*Math.PI/(700*a.network.vertexes.count);b>c&&(d+=Math.PI/2);for(var k=0;;k++){var l=Math.sin(d+k*a),h=h+(b>c?b:c)*Math.sqrt(1-g*g*l*l)*a;if(h>=e)return k*a}} zm.prototype.sort=function(a){switch(this.sorting){case Cm:break;case Dm:a.reverse();break;case Am:a.sort(this.comparer);break;case Bm:a.sort(this.comparer);a.reverse();break;case Em:for(var b=[],c=0;ce&&(e=k,g=h)}else for(h=0;he&&(e=k,g=h);d.add(a.ia(g));b[g]=-1;g=a.ia(g);e=0;for(h=g.tc;h.next();)e=a.indexOf(h.value.fromVertex),0>e||0<=b[e]&& b[e]++;for(g=g.hc;g.next();)e=a.indexOf(g.value.toVertex),0>e||0<=b[e]&&b[e]++}a=[];for(b=0;ba[b].indexOf(l)&&a[b].push(l);for(c=h.tc;c.next();)l=d.indexOf(c.value.fromVertex),l!==b&&0>a[b].indexOf(l)&&a[b].push(l)}h=[];for(b=0;ba[c[p]].indexOf(c[p===c.length-1?0:p+1])&&t.push(p===c.length-1?0:p+1);if(0===t.length)for(p=0;pM.indexOf(W)||PM.indexOf(W)|| P=v?l+1:l)),A+=l=v&&l++,C>=v&&C++,l>C&&(M=C,C=l,l=M),C-l<(c.length+2)/2===(lq||q===l||(s=q>l?q-l:l-q,p+=qm-s?1:-1);c.splice(0>p?l:l+1,0,b);e.splice(h,1);h--}else k=!1;if(k)break;else c.push(e[0]),e.splice(0,1)}for(b=0;b=a?a:360,this.J())}); +x.defineProperty(zm,{zH:"aspectRatio"},function(){return this.wq},function(a){this.wq!==a&&(x.g(a,"number",zm,"aspectRatio"),0=a?a:360,this.J())}); x.defineProperty(zm,{Zf:"arrangement"},function(){return this.rd},function(a){this.rd!==a&&(x.Ca(a,zm,zm,"arrangement"),a===Sm||a===Rm||a===Qm||a===Pm)&&(this.rd=a,this.J())});x.defineProperty(zm,{direction:"direction"},function(){return this.ga},function(a){this.ga!==a&&(x.Ca(a,zm,zm,"direction"),a===Hm||a===Om||a===Fm||a===Gm)&&(this.ga=a,this.J())}); x.defineProperty(zm,{sorting:"sorting"},function(){return this.ei},function(a){this.ei!==a&&(x.Ca(a,zm,zm,"sorting"),a===Cm||a===Dm||a===Am||Bm||a===Em)&&(this.ei=a,this.J())});x.defineProperty(zm,{comparer:"comparer"},function(){return this.Mh},function(a){this.Mh!==a&&(x.g(a,"function",zm,"comparer"),this.Mh=a,this.J())});x.defineProperty(zm,{spacing:"spacing"},function(){return this.fi},function(a){this.fi!==a&&(x.g(a,"number",zm,"spacing"),this.fi=a,this.J())}); -x.defineProperty(zm,{Fx:"nodeDiameterFormula"},function(){return this.Yr},function(a){this.Yr!==a&&(x.Ca(a,zm,zm,"nodeDiameterFormula"),a===Um||a===Tm)&&(this.Yr=a,this.J())});x.w(zm,{oH:"actualXRadius"},function(){return this.Ud});x.w(zm,{pH:"actualYRadius"},function(){return this.Bg});x.w(zm,{sK:"actualSpacing"},function(){return this.Xk});x.w(zm,{nH:"actualCenter"},function(){return isNaN(this.he.x)||isNaN(this.he.y)?new N(0,0):new N(this.he.x+this.oH,this.he.y+this.pH)});var Rm; +x.defineProperty(zm,{Gx:"nodeDiameterFormula"},function(){return this.Yr},function(a){this.Yr!==a&&(x.Ca(a,zm,zm,"nodeDiameterFormula"),a===Um||a===Tm)&&(this.Yr=a,this.J())});x.w(zm,{pH:"actualXRadius"},function(){return this.Ud});x.w(zm,{qH:"actualYRadius"},function(){return this.Bg});x.w(zm,{sK:"actualSpacing"},function(){return this.Xk});x.w(zm,{oH:"actualCenter"},function(){return isNaN(this.he.x)||isNaN(this.he.y)?new N(0,0):new N(this.he.x+this.pH,this.he.y+this.qH)});var Rm; zm.ConstantSpacing=Rm=x.s(zm,"ConstantSpacing",0);var Qm;zm.ConstantDistance=Qm=x.s(zm,"ConstantDistance",1);var Pm;zm.ConstantAngle=Pm=x.s(zm,"ConstantAngle",2);var Sm;zm.Packed=Sm=x.s(zm,"Packed",3);var Hm;zm.Clockwise=Hm=x.s(zm,"Clockwise",4);var Om;zm.Counterclockwise=Om=x.s(zm,"Counterclockwise",5);var Fm;zm.BidirectionalLeft=Fm=x.s(zm,"BidirectionalLeft",6);var Gm;zm.BidirectionalRight=Gm=x.s(zm,"BidirectionalRight",7);var Cm;zm.Forwards=Cm=x.s(zm,"Forwards",8);var Dm; zm.Reverse=Dm=x.s(zm,"Reverse",9);var Am;zm.Ascending=Am=x.s(zm,"Ascending",10);var Bm;zm.Descending=Bm=x.s(zm,"Descending",11);var Em;zm.Optimized=Em=x.s(zm,"Optimized",12);var Um;zm.Pythagorean=Um=x.s(zm,"Pythagorean",13);var Tm;zm.Circular=Tm=x.s(zm,"Circular",14);function Bp(){this.wp=-Infinity;this.kq=this.Kn=null} Bp.prototype.compare=function(a,b){if(0this.wp||Math.abs(a)a&&0g?(e=n.x+n.width/2,k=n.y+n.height/2,l[0]=new N(n.x+n.width+d.width,n.y),l[1]=new N(n.x,n.y+n.height+d.height),g=2):(p=Up(l,g, e,k,n.width,n.height,d),q=l[p],r=new N(q.x+n.width+d.width,q.y),s=new N(q.x,q.y+n.height+d.height),p+1this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().Cb,d=this.network.vertexes.i;d.next();){if(d.value.Cb.Hg(c)&&(a++,2a.network.vertexes.count)return!1;null===a.Ag?a.Ag=new J($p):a.Ag.clear();a.Ag.$c(a.network.vertexes);var c=a.Ag;c.sort(function(a,b){return null===a||null===b||a===b?0:b.hg-a.hg});for(var d=c.count-1;0<=d&&1>=c.ia(d).hg;)d--;return 1=h))){for(var m=0,n=0,p=l.count-h;p=h))){for(var m=0,n=0,p=l.count-h;ps&&(s=1);m=Q.sqrt((m+s+n*n*4/(h*h))/s);h=(m-1)*p/2;m=(m-1)*q/2;g.Cb=new w(l-r.x-h,k-r.y-m,p+2*h,q+2*m);g.focus=new N(r.x+h,r.y+m)}a.network=d;return c} -function Zp(a,b,c){u&&(x.l(b,Sp,Rp,"popNetwork:oldnet"),x.p(c,Rp,"popNetwork:level"));for(c=a.network.vertexes.i;c.next();){var d=c.value;d.network=b;if(null!==d.Fh){var e=d.Fh.ia(d.dB);d.hg=e.ny;var g=e.AB,h=e.BB;d.Cb=new w(d.sa-g,d.Aa-h,e.qy,e.my);d.focus=new N(g,h);d.dB--}}for(c=a.network.edges.i;c.next();)c.value.network=b;a.network=b} -function aq(a,b,c){u&&(x.l(b,$p,Rp,"surroundNode:oldnet"),x.p(c,Rp,"surroundNode:level"));var d=b.dn;if(null!==d&&0!==d.count){c=b.sa;var e=b.Aa,g=b.width,h=b.height;null!==b.Fh&&0=p.hg?l++:(k=!0,m++,h+=Math.atan2(b.Aa-p.Aa,b.sa-p.sa))}if(0!==l)for(0=p.hg?l++:(k=!0,m++,h+=Math.atan2(b.Aa-p.Aa,b.sa-p.sa))}if(0!==l)for(0>1)+m)*(0===k%2?1:-1);l.sa=c+n*Math.cos(p);l.Aa=e+n*Math.sin(p);k++}}} -function Up(a,b,c,d,e,g,h){var k=9E19,l=-1,m=0;a:for(;mn.y&&a[q].x-n.xn.x&&a[q].y-n.yn.y&&a[q].x-n.xn.x&&a[q].y-n.yl+h?(d=d+g-k,e=e-l-h,Q.sqrt(d*d+e*e)):e+ck+m?e>l+h?(d=d-k-m,e=e-l-h,Q.sqrt(d*d+e*e)):e+cl+h?e-(l+h):e+c=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.sa,e=d,g=c.Aa,h=g,c=1;ch-g)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.sa-b.sa}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.Aa-b.Aa});for(var h=a.Th,m=0,n=0,p=0,c=0;ch||p-d>h){if(g)break}else if(l-r>h||r-l>h){if(!g)break}else{var s=mq(k,e);1>s?(n=a.Nx,null===n&&(a.Nx=n=new Oa(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.Q.right-k.Q.x),n=(1+n)*m):dr?(p=Math.abs(e.Q.bottom-k.Q.y),p=(1+p)*s):ds?(n=a.Nx,null===n&&(a.Nx=n=new Oa(0)),m=n.random(),s= -n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=g.stiffness*(s-g.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Th/20,50);for(e=0;ed&&(g=d),h<-d?h=-d:h>d&&(h=d),k.sa+=g,k.Aa+=h,c=Math.max(c,g*g+h*h));return c>a.NE*a.NE}Rp.prototype.moveFixedVertex=function(){}; -Rp.prototype.commitLayout=function(){this.hB();this.commitNodes();this.Pt&&this.commitLinks()};Rp.prototype.hB=function(){if(this.eq)for(var a=this.network.edges.i;a.next();){var b=a.value.link;null!==b&&(b.Gb=Jc,b.Hb=Jc)}};Rp.prototype.commitNodes=function(){var a=0,b=0;if(this.xH){var c=x.kg();this.nh(this.network,c);b=this.he;a=b.x-c.x;b=b.y-c.y;x.qc(c)}for(var c=x.kg(),d=this.network.vertexes.i;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.Cb),c.x+=a,c.y+=b,e.Cb=c;e.commit()}x.qc(c)}; +b[c],l=k.Q,q=k.R,d=l.x+q.x,l=l.y+q.y,n=k.charge*a.electricalFieldX(d,l),p=k.charge*a.electricalFieldY(d,l),n=n+k.mass*a.gravitationalFieldX(d,l),p=p+k.mass*a.gravitationalFieldY(d,l);k.forceX+=n;k.forceY+=p;for(q=c+1;qh||p-d>h){if(g)break}else if(l-r>h||r-l>h){if(!g)break}else{var s=mq(k,e);1>s?(n=a.Ox,null===n&&(a.Ox=n=new Oa(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.Q.right-k.Q.x),n=(1+n)*m):dr?(p=Math.abs(e.Q.bottom-k.Q.y),p=(1+p)*s):ds?(n=a.Ox,null===n&&(a.Ox=n=new Oa(0)),m=n.random(),s= +n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=g.stiffness*(s-g.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Th/20,50);for(e=0;ed&&(g=d),h<-d?h=-d:h>d&&(h=d),k.sa+=g,k.Aa+=h,c=Math.max(c,g*g+h*h));return c>a.OE*a.OE}Rp.prototype.moveFixedVertex=function(){}; +Rp.prototype.commitLayout=function(){this.iB();this.commitNodes();this.Pt&&this.commitLinks()};Rp.prototype.iB=function(){if(this.eq)for(var a=this.network.edges.i;a.next();){var b=a.value.link;null!==b&&(b.Gb=Jc,b.Hb=Jc)}};Rp.prototype.commitNodes=function(){var a=0,b=0;if(this.yH){var c=x.kg();this.nh(this.network,c);b=this.he;a=b.x-c.x;b=b.y-c.y;x.qc(c)}for(var c=x.kg(),d=this.network.vertexes.i;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.Cb),c.x+=a,c.y+=b,e.Cb=c;e.commit()}x.qc(c)}; Rp.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()};Rp.prototype.springStiffness=function(a){a=a.stiffness;return isNaN(a)?this.fo:a};Rp.prototype.springLength=function(a){a=a.length;return isNaN(a)?this.eo:a};Rp.prototype.electricalCharge=function(a){a=a.charge;return isNaN(a)?this.ao:a};Rp.prototype.electricalFieldX=function(){return 0};Rp.prototype.electricalFieldY=function(){return 0}; -Rp.prototype.gravitationalMass=function(a){a=a.mass;return isNaN(a)?this.co:a};Rp.prototype.gravitationalFieldX=function(){return 0};Rp.prototype.gravitationalFieldY=function(){return 0};Rp.prototype.isFixed=function(a){return a.isFixed};x.w(Rp,{SK:"currentIteration"},function(){return this.xr});x.defineProperty(Rp,{gE:"arrangementSpacing"},function(){return this.lg},function(a){x.l(a,Fa,Rp,"arrangementSpacing");this.lg.O(a)||(this.lg.assign(a),this.J())}); -x.defineProperty(Rp,{xH:"arrangesToOrigin"},function(){return this.vq},function(a){this.vq!==a&&(x.g(a,"boolean",Rp,"arrangesToOrigin"),this.vq=a,this.J())});x.defineProperty(Rp,{eq:"setsPortSpots"},function(){return this.ci},function(a){this.ci!==a&&(x.g(a,"boolean",Rp,"setsPortSpots"),this.ci=a,this.J())});x.defineProperty(Rp,{comments:"comments"},function(){return this.Lh},function(a){this.Lh!==a&&(x.g(a,"boolean",Rp,"comments"),this.Lh=a,this.J())}); -x.defineProperty(Rp,{GA:"maxIterations"},function(){return this.Jo},function(a){this.Jo!==a&&(x.g(a,"number",Rp,"maxIterations"),0<=a&&(this.Jo=a,this.J()))});x.defineProperty(Rp,{NE:"epsilonDistance"},function(){return this.$q},function(a){this.$q!==a&&(x.g(a,"number",Rp,"epsilonDistance"),0b.toVertex.index&&(this.network.Rx(b),b.rev=!0);break;case pq:for(b=this.network.vertexes.i;b.next();)a=b.value,a.pp=-1,a.finish=-1;for(a=this.network.edges.i;a.next();)a.value.forest=!1;this.Ur=0;for(b.reset();b.next();)c=b.value,0===c.tc.count&&zq(this,c);for(b.reset();b.next();)c=b.value,-1===c.pp&&zq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, -d=c.finish,e=b.toVertex,g=e.finish,e.ppb.toVertex.index&&(this.network.Sx(b),b.rev=!0);break;case pq:for(b=this.network.vertexes.i;b.next();)a=b.value,a.pp=-1,a.finish=-1;for(a=this.network.edges.i;a.next();)a.value.forest=!1;this.Ur=0;for(b.reset();b.next();)c=b.value,0===c.tc.count&&zq(this,c);for(b.reset();b.next();)c=b.value,-1===c.pp&&zq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, +d=c.finish,e=b.toVertex,g=e.finish,e.pps&&0s&&0s&&0s&&0b[this.Tf]&&(this.Mv=b[c]-1,this.Tf=c),b[c]h)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.an===m.an||k++;var m=0,q,r=q=p=l=0,s,t=0,v=0;s=0;var y;if(0<=c)for(n=d[h].Ze,m=0;mh)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.bn===m.bn||k++;var m=0,q,r=q=p=l=0,s,t=0,v=0;s=0;var y;if(0<=c)for(n=d[h].Ze,m=0;mt||l===t&&q>s)&&k++,vl||t===l&&s>q)&&k++);if(0>=c)for(n=d[h].Ve,m=0;mt||l===t&&p>v)&&k++, sl||t===l&&v>p)&&k++);g[h*e+h]=k;for(n=h+1;n=c)for(k=d[h].Ve,y=d[n].Ve,m=0;mh.portFromColOffset&&(d=!0,c[e]=h,c[e+1]=g)}for(e=0;eh.portToColOffset&&(d=!0,c[e]=h,c[e+1]=g)}for(e=0;e=h;d--)g=Yq(this,d,-1)||g;e=this.countCrossings();e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=c;d>=h;d--)g=Yq(this,d,1)||g;e=this.countCrossings();e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=h;d<=c;d++)g=Yq(this,d,1)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1, d=h;d<=c;d++)g=Yq(this,d,-1)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=c;d>=h;d--)g=Yq(this,d,0)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=h;d<=c;d++)g=Yq(this,d,0)||g;e>=a?Gq(this,b):(a=e,b=Fq(this))}break;default:case sq:for(c=this.Bb,h=0,k=a+1;(d=this.countCrossings())=h;d--)g=Yq(this,d,-1)||g;e=this.countCrossings();e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=c;d>=h;d--)g=Yq(this,d,1)||g;e=this.countCrossings(); e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=h;d<=c;d++)g=Yq(this,d,1)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=h;d<=c;d++)g=Yq(this,d,-1)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=c;d>=h;d--)g=Yq(this,d,0)||g;e>=a?Gq(this,b):(a=e,b=Fq(this));for(g=!0;g;)for(g=!1,d=h;d<=c;d++)g=Yq(this,d,0)||g;e>=a?Gq(this,b):(a=e,b=Fq(this))}}Gq(this,b)}; @@ -1898,13 +1898,13 @@ function fr(a,b){u&&x.p(b,qm,"componentPack:direction");for(var c=0;c<=a.Mb;c++) function jr(a,b,c){a.ug=0;for(var d=a.network.vertexes.i;d.next();)d.value.component=-1;if(0c)for(d.reset();d.next();)e=d.value,e.column+a.nodeMinColumnSpace(e,!1)>=b&&(e.component=a.ug);a.ug++;for(d.reset();d.next();)b=d.value,-1===b.component&&(Mq(a,b,a.ug,-1,!0,!0),a.ug++);var g=0;b=[];for(g=0;gc)for(k=a.Mb;0c)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} -qm.prototype.commitLayout=function(){if(this.eq)for(var a=Aq(this,!0),b=Aq(this,!1),c=this.network.edges.i;c.next();){var d=c.value.link;null!==d&&(d.Gb=a,d.Hb=b)}this.commitNodes();this.$z();this.Pt&&this.commitLinks()};function Aq(a,b){return 270===a.ga?b?Rc:bd:90===a.ga?b?bd:Rc:180===a.ga?b?Sc:Tc:b?Tc:Sc} -qm.prototype.commitNodes=function(){this.sg=[];this.Sf=[];this.Rf=[];this.Sb=[];for(var a=0;a<=this.Bb;a++)this.sg[a]=0,this.Sf[a]=0,this.Rf[a]=0,this.Sb[a]=0;for(a=this.network.vertexes.i;a.next();){var b=a.value,c=b.layer;this.sg[c]=Math.max(this.sg[c],this.nodeMinLayerSpace(b,!0));this.Sf[c]=Math.max(this.Sf[c],this.nodeMinLayerSpace(b,!1))}for(var b=0,d=this.zm,c=0;c<=this.Bb;c++){var e=d;0>=this.sg[c]+this.Sf[c]&&(e=0);0=this.sg[c]+this.Sf[c]&&(e=0);0Nb.y&&(hc=Ag.y>Nb.y?0:Vc.xQb.x&&(Xd=Cg.x>Qb.x?0:Lb.yb.layer?1:a.Teb.Te?1:a.ieb.ie?1:0:0};qm.prototype.$F=function(a,b){return a instanceof kr&&b instanceof kr&&a!==b?a.firstb.first||a.rib.ri||a.Teb.Te?1:a.ieb.ie?1:0:0}; -qm.prototype.Tx=function(a,b){return a instanceof kr&&b instanceof kr&&a!==b?a.beb.be||a.rib.ri||a.Teb.Te?1:a.ieb.ie?1:0:0};qm.prototype.F=function(a,b){u&&(x.p(a,qm,"isApprox:a"),x.p(b,qm,"isApprox:b"));var c=a-b;return-1c};function lr(a,b,c,d){u&&(x.p(a,qm,"isUnoccupied2:px"),x.p(b,qm,"isUnoccupied2:py"),x.p(c,qm,"isUnoccupied2:qx"),x.p(d,qm,"isUnoccupied2:qy"));return!0} -function Cq(a,b){var c,d=a.de[b];if(d>=a.ah.length){c=[];for(var e=0;eNb.y&&(hc=Ag.y>Nb.y?0:Vc.xQb.x&&(Xd=Cg.x>Qb.x?0:Lb.yb.layer?1:a.Teb.Te?1:a.ieb.ie?1:0:0};qm.prototype.aG=function(a,b){return a instanceof kr&&b instanceof kr&&a!==b?a.firstb.first||a.rib.ri||a.Teb.Te?1:a.ieb.ie?1:0:0}; +qm.prototype.Ux=function(a,b){return a instanceof kr&&b instanceof kr&&a!==b?a.beb.be||a.rib.ri||a.Teb.Te?1:a.ieb.ie?1:0:0};qm.prototype.F=function(a,b){u&&(x.p(a,qm,"isApprox:a"),x.p(b,qm,"isApprox:b"));var c=a-b;return-1c};function lr(a,b,c,d){u&&(x.p(a,qm,"isUnoccupied2:px"),x.p(b,qm,"isUnoccupied2:py"),x.p(c,qm,"isUnoccupied2:qx"),x.p(d,qm,"isUnoccupied2:qy"));return!0} +function Cq(a,b){var c,d=a.de[b];if(d>=a.ah.length){c=[];for(var e=0;ea&&(this.Si=a,this.J()))});x.defineProperty(qm,{eq:"setsPortSpots"},function(){return this.ci},function(a){this.ci!==a&&(x.g(a,"boolean",qm,"setsPortSpots"),this.ci=a,this.J())});x.defineProperty(qm,{vF:"linkSpacing"},function(){return this.Cr},function(a){this.Cr!==a&&(x.g(a,"number",qm,"linkSpacing"),0<=a&&(this.Cr=a,this.J()))});x.w(qm,{lJ:"maxLayer"},function(){return this.Bb}); +x.defineProperty(qm,{MI:"initializeOption"},function(){return this.vo},function(a){this.vo!==a&&(x.Ca(a,qm,qm,"initializeOption"),a===rq||a===Vq||a===Tq)&&(this.vo=a,this.J())});x.defineProperty(qm,{AL:"iterations"},function(){return this.xm},function(a){this.xm!==a&&(x.p(a,uq,"iterations"),0<=a&&(this.xm=a,this.J()))});x.defineProperty(qm,{wH:"aggressiveOption"},function(){return this.Qn},function(a){this.Qn!==a&&(x.Ca(a,qm,qm,"aggressiveOption"),a===Zq||a===sq||a===$q)&&(this.Qn=a,this.J())}); +x.defineProperty(qm,{XL:"packOption"},function(){return this.Si},function(a){this.Si!==a&&(x.g(a,"number",qm,"packOption"),0<=a&&8>a&&(this.Si=a,this.J()))});x.defineProperty(qm,{eq:"setsPortSpots"},function(){return this.ci},function(a){this.ci!==a&&(x.g(a,"boolean",qm,"setsPortSpots"),this.ci=a,this.J())});x.defineProperty(qm,{wF:"linkSpacing"},function(){return this.Cr},function(a){this.Cr!==a&&(x.g(a,"number",qm,"linkSpacing"),0<=a&&(this.Cr=a,this.J()))});x.w(qm,{lJ:"maxLayer"},function(){return this.Bb}); x.w(qm,{GL:"maxIndex"},function(){return this.Mv});x.w(qm,{FL:"maxColumn"},function(){return this.Mb});x.w(qm,{LL:"minIndexLayer"},function(){return this.Mr});x.w(qm,{HL:"maxIndexLayer"},function(){return this.Tf});var pq;qm.CycleDepthFirst=pq=x.s(qm,"CycleDepthFirst",0);var vq;qm.CycleGreedy=vq=x.s(qm,"CycleGreedy",1);var qq;qm.LayerOptimalLinkLength=qq=x.s(qm,"LayerOptimalLinkLength",0);var Nq;qm.LayerLongestPathSink=Nq=x.s(qm,"LayerLongestPathSink",1);var Pq; qm.LayerLongestPathSource=Pq=x.s(qm,"LayerLongestPathSource",2);var rq;qm.InitDepthFirstOut=rq=x.s(qm,"InitDepthFirstOut",0);var Vq;qm.InitDepthFirstIn=Vq=x.s(qm,"InitDepthFirstIn",1);var Tq;qm.InitNaive=Tq=x.s(qm,"InitNaive",2);var Zq;qm.AggressiveNone=Zq=x.s(qm,"AggressiveNone",0);var sq;qm.AggressiveLess=sq=x.s(qm,"AggressiveLess",1);var $q;qm.AggressiveMore=$q=x.s(qm,"AggressiveMore",2);qm.PackNone=0;var ar;qm.PackExpand=ar=1;var br;qm.PackStraighten=br=2;var dr;qm.PackMedian=dr=4;var tq; qm.PackAll=tq=7;function kr(){this.index=this.ie=this.Te=this.be=this.first=this.layer=0;this.link=null;this.ri=0}x.Yd(kr,{layer:!0,first:!0,be:!0,Te:!0,ie:!0,index:!0,link:!0,ri:!0});function uq(){xa.call(this)}x.Qa(uq,xa);x.ja("LayeredDigraphNetwork",uq);uq.prototype.createVertex=function(){return new mr};uq.prototype.createEdge=function(){return new nr}; -function mr(){ya.call(this);this.index=this.column=this.layer=-1;this.component=NaN;this.near=null;this.valid=!1;this.finish=this.pp=NaN;this.an=0;this.OA=this.PA=null}x.Qa(mr,ya);x.ja("LayeredDigraphVertex",mr);function nr(){Aa.call(this);this.forest=this.rev=this.valid=!1;this.portToPos=this.portFromPos=NaN;this.portToColOffset=this.portFromColOffset=0}x.Qa(nr,Aa);x.ja("LayeredDigraphEdge",nr); -function Z(){0b.level)return!1;a.removeChild(c.parent,c)}return!0} Z.prototype.removeChild=function(a,b){if(null!==a&&null!==b){u&&x.l(a,tr,Z,"removeChild:p");u&&x.l(b,tr,Z,"removeChild:c");for(var c=a.children,d=0,e=0;eg?bs(a,k,ta,B,C):cs(a,k,ta,B,C);ta=W.x;B=W.width;C=W.height;break;case Qr:for(m=0;ms&&(Pg[0].x?g[2].assign(g[1]):g[1].assign(g[2])),g[3].yg[0].x?g[3].assign(g[2]):g[2].assign(g[3])),p[0].n(h+d,0),p[1].n(p[0].x,e),p[2].yg[0].y?g[2].assign(g[1]):g[1].assign(g[2])),g[3].xg[0].y?g[3].assign(g[2]):g[2].assign(g[3])),p[0].n(0,q+e),p[1].n(d,p[0].y),p[2].xc?bs(b,e,qa,M,I):cs(b,e,qa,M,I);qa=I.x;M=I.width;I=I.height;break;case Qr:for(k=0;kr&&(ear&&(We;)v=l[g++],n[d++].n(v.x+m,v.y);l=is(a,d);for(e=0;ep.length||null===g||2>g.length)e=null;else{n=is(a,p.length+g.length);for(m=y=l=0;lg;)e=p[l++], n[m++].n(e.x,e.y);e=is(a,m);for(l=0;lp.length||null===q||2>q.length))for(m=l=0;lg&&e.xe.x&&gb.length||null===l||2>l.length)d=null;else{n=is(a,b.length+l.length);for(d=g=e=0;ge;)v=l[g++],n[d++].n(v.x,v.y+m);l=is(a,d);for(e=0;ep.length||null===g||2>g.length)e=null;else{n=is(a,p.length+g.length);for(m=y=l=0;lg;)e=p[l++],n[m++].n(e.x,e.y);e=is(a,m);for(l=0;lg;)e=p[l++],n[m++].n(e.x,e.y);e=is(a,m);for(l=0;l=a?0:135>=a?90:225>=a?180:315>=a?270:0} function $r(a){u&&x.l(a,tr,Z,"computeLayerSpacing:v");var b=Xr(a),b=90===b||270===b,c=a.layerSpacing;if(0=a&&(this.xa.nodeIndentPastParent=a,this.J()))}); @@ -2035,19 +2035,19 @@ Z.LayerSiblings=Cr=x.s(Z,"LayerSiblings",61);var Br;Z.LayerUniform=Br=x.s(Z,"Lay function tr(){ya.call(this);this.initialized=!1;this.parent=null;this.children=[];this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0;this.comments=null;this.ra=new N(0,0);this.rb=new Fa(0,0);this.Ta=new N(0,0);this.aq=this.$p=this.PJ=!1;this.nu=this.Tt=null;this.sorting=Jr;this.comparer=zp;this.angle=0;this.alignment=Nr;this.nodeIndentPastParent=this.nodeIndent=0;this.nodeSpacing=20;this.layerSpacing=50;this.layerSpacingParentOverlap=0;this.compaction=Wr;this.breadthLimit= 0;this.rowSpacing=25;this.commentSpacing=this.rowIndent=10;this.commentMargin=20;this.setsPortSpot=!0;this.portSpot=Jc;this.setsChildPortSpot=!0;this.childPortSpot=Jc}x.Qa(tr,ya);x.ja("TreeVertex",tr); tr.prototype.copyInheritedPropertiesFrom=function(a){null!==a&&(this.sorting=a.sorting,this.comparer=a.comparer,this.angle=a.angle,this.alignment=a.alignment,this.nodeIndent=a.nodeIndent,this.nodeIndentPastParent=a.nodeIndentPastParent,this.nodeSpacing=a.nodeSpacing,this.layerSpacing=a.layerSpacing,this.layerSpacingParentOverlap=a.layerSpacingParentOverlap,this.compaction=a.compaction,this.breadthLimit=a.breadthLimit,this.rowSpacing=a.rowSpacing,this.rowIndent=a.rowIndent,this.commentSpacing=a.commentSpacing, -this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};x.w(tr,{cn:"childrenCount"},function(){return this.children.length});x.defineProperty(tr,{fM:"relativePosition"},function(){return this.ra},function(a){this.ra.set(a)});x.defineProperty(tr,{rM:"subtreeSize"},function(){return this.rb},function(a){this.rb.set(a)}); +this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};x.w(tr,{dn:"childrenCount"},function(){return this.children.length});x.defineProperty(tr,{fM:"relativePosition"},function(){return this.ra},function(a){this.ra.set(a)});x.defineProperty(tr,{rM:"subtreeSize"},function(){return this.rb},function(a){this.rb.set(a)}); x.defineProperty(tr,{qM:"subtreeOffset"},function(){return this.Ta},function(a){this.Ta.set(a)});function zs(){Aa.call(this);this.ks=new N(0,0)}x.Qa(zs,Aa);x.ja("TreeEdge",zs); -zs.prototype.commit=function(){var a=this.link;if(null!==a&&!a.lj){var b=this.network.Tb,c=null,d=null;switch(b.Qf){case pr:c=this.fromVertex;d=this.toVertex;break;case wr:c=this.toVertex;d=this.fromVertex;break;default:x.k("Unhandled path value "+b.Qf.toString())}if(null!==c&&null!==d)if(b=this.ks,0!==b.x||0!==b.y||c.PJ){var d=c.Cb,e=Xr(c),g=$r(c),h=c.rowSpacing;a.In();var k=a.Ue===Bh,l=a.sc,m=0,n,p;a.$l();if(l||k){for(m=2;4q.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-as(c))))):c.alignment===Yr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-as(c))))):c.alignment===Yr?(r=d.left+b.x,0===b.x&&n.xq.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-as(c))))):c.alignment===Yr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-as(c))))):c.alignment===Yr?(r=d.left+b.x,0===b.x&&n.x=a.length?a.push(c):a.splice(b,0,c):v.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},Wh:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):v.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},Rx:[],M:function(){var a=v.Rx.pop();return void 0===a?new w:a},Sb:function(a,b){var c=v.Rx.pop();if(void 0===c)return new w(a,b);c.x=a;c.y=b;return c},v:function(a){v.Rx.push(a)}, -fB:[],Ll:function(){var a=v.fB.pop();return void 0===a?new ia:a},ck:function(a){v.fB.push(a)},Sx:[],Zf:function(){var a=v.Sx.pop();return void 0===a?new z:a},kk:function(a,b,c,d){var e=v.Sx.pop();if(void 0===e)return new z(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},ic:function(a){v.Sx.push(a)},gB:[],sh:function(){var a=v.gB.pop();return void 0===a?new la:a},af:function(a){v.gB.push(a)},Tx:null,q:function(){var a=v.Tx;return null!==a?(v.Tx=null,a):new na},s:function(a){a.reset();v.Tx=a},eB:[], -lb:function(){var a=v.eB.pop();return void 0===a?[]:a},ta:function(a){a.length=0;v.eB.push(a)},vh:Object.freeze([]),Pl:1,ec:function(a){a.__gohashid=v.Pl++},ot:function(a){var b=a.__gohashid;void 0===b&&(b=v.Pl++,a.__gohashid=b);return b},pd:function(a){return a.__gohashid},ea:function(a,b){b.ay=a;ea[a]=b},Ja:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Xh:function(a){a.uG=!0},defineProperty:function(a,b,c,d,e){v.j(a,"function","Util.defineProperty:classfunc"); +fa&&a.pe===b||(c=v.getTypeName(c),void 0!==d&&(c+="."+d),v.Ed(a,"a constant of class "+v.cf(b),c))},gK:function(a,b){"string"===typeof a?ga(a)||v.k('Color "'+a+'" is not a valid color string for '+b):a instanceof ha||v.k("Value for "+b+" must be a color string or a Brush, not "+a)},Ed:function(a,b,c,d){b=v.getTypeName(b);c=v.getTypeName(c);void 0!==d&&(c+="."+d);"string"===typeof a?v.k(c+" value is not an instance of "+b+': "'+a+'"'):v.k(c+" value is not an instance of "+b+": "+a)},wa:function(a, +b,c,d){c=v.getTypeName(c);void 0!==d&&(c+="."+d);v.k(c+" is not in the range "+b+": "+a)},gd:function(a){v.k(v.cf(a)+" constructor cannot take any arguments.")},La:function(a){v.k("Collection was modified during iteration: "+a.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")},trace:function(a){window.console&&window.console.log(a)},Ta:function(a){return"object"===typeof a&&null!==a},isArray:function(a){return Array.isArray(a)|| +a instanceof NodeList||a instanceof HTMLCollection},eI:function(a){return Array.isArray(a)},xz:function(a,b,c){v.isArray(a)||v.Ed(a,"Array or NodeList or HTMLCollection",b,c)},Va:function(a){return a.length},fl:function(a){return Array.prototype.slice.call(a)},Pa:function(a,b){Array.isArray(a);return a[b]},HD:function(a,b,c){Array.isArray(a)?a[b]=c:v.k("Cannot replace an object in an HTMLCollection or NodeList at "+b)},wz:function(a,b){if(Array.isArray(a))return a.indexOf(b);for(var c=a.length,d= +0;d=a.length?a.push(c):a.splice(b,0,c):v.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},Wh:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):v.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},Sx:[],M:function(){var a=v.Sx.pop();return void 0===a?new w:a},Sb:function(a,b){var c=v.Sx.pop();if(void 0===c)return new w(a,b);c.x=a;c.y=b;return c},v:function(a){v.Sx.push(a)}, +gB:[],Ml:function(){var a=v.gB.pop();return void 0===a?new ia:a},ck:function(a){v.gB.push(a)},Tx:[],Zf:function(){var a=v.Tx.pop();return void 0===a?new z:a},kk:function(a,b,c,d){var e=v.Tx.pop();if(void 0===e)return new z(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},ic:function(a){v.Tx.push(a)},hB:[],sh:function(){var a=v.hB.pop();return void 0===a?new la:a},bf:function(a){v.hB.push(a)},Ux:null,q:function(){var a=v.Ux;return null!==a?(v.Ux=null,a):new na},s:function(a){a.reset();v.Ux=a},fB:[], +lb:function(){var a=v.fB.pop();return void 0===a?[]:a},ta:function(a){a.length=0;v.fB.push(a)},vh:Object.freeze([]),Ql:1,ec:function(a){a.__gohashid=v.Ql++},ot:function(a){var b=a.__gohashid;void 0===b&&(b=v.Ql++,a.__gohashid=b);return b},pd:function(a){return a.__gohashid},ea:function(a,b){b.by=a;ea[a]=b},Ja:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Xh:function(a){a.vG=!0},defineProperty:function(a,b,c,d,e){v.j(a,"function","Util.defineProperty:classfunc"); v.j(b,"object","Util.defineProperty:propobj");v.j(c,"function","Util.defineProperty:getter");v.j(d,"function","Util.defineProperty:setter");for(var f in b){b=b[f];c={get:c,set:d,enumerable:!0};if(void 0!==e)for(var h in e)c[h]=e[h];Object.defineProperty(a.prototype,f,c);e=Object.getOwnPropertyDescriptor(a.prototype,f);b&&e&&Object.defineProperty(a.prototype,b,e);break}},IJ:!1,u:function(a,b,c,d){v.j(a,"function","Util.defineReadOnlyProperty:classfunc");v.j(b,"object","Util.defineReadOnlyProperty:propobj"); -v.j(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var f=b[e];b={get:c,set:function(a){v.k('The property "'+f+'" is read-only and cannot be set to '+a)},enumerable:!0};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);f&&d&&Object.defineProperty(a.prototype,f,d);break}},Nd:function(a,b){for(var c in b)b[c]=!0;a.prototype.qG=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"=== -typeof a?v.bf(a):null===a?"*":""},bf:function(a){if("function"===typeof a){if(a.ay)return a.ay;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.ay=b}else if("object"===typeof a&&a.constructor)return v.bf(a.constructor);return typeof a},p:function(a,b,c){v.j(a,"function","Util.defineEnumValue:classfunc");v.j(b,"string","Util.defineEnumValue:name");v.j(c,"number","Util.defineEnumValue:num");c=new fa(a,b,c);Object.freeze(c);a[b]=c;var d=a.lu;d instanceof +v.j(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var f=b[e];b={get:c,set:function(a){v.k('The property "'+f+'" is read-only and cannot be set to '+a)},enumerable:!0};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);f&&d&&Object.defineProperty(a.prototype,f,d);break}},Nd:function(a,b){for(var c in b)b[c]=!0;a.prototype.rG=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"=== +typeof a?v.cf(a):null===a?"*":""},cf:function(a){if("function"===typeof a){if(a.by)return a.by;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.by=b}else if("object"===typeof a&&a.constructor)return v.cf(a.constructor);return typeof a},p:function(a,b,c){v.j(a,"function","Util.defineEnumValue:classfunc");v.j(b,"string","Util.defineEnumValue:name");v.j(c,"number","Util.defineEnumValue:num");c=new fa(a,b,c);Object.freeze(c);a[b]=c;var d=a.lu;d instanceof pa||(d=new pa("string",fa),a.lu=d);d.add(b,c);return c},tb:function(a,b){if(!a||!b)return null;var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){}return c},Ka:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){}},Yt:function(a,b){v.j(a,"object","Setting properties requires Objects as arguments");v.j(b,"object","Setting properties requires Objects as arguments"); -var c=a instanceof C,d=a instanceof E,e;for(e in b){""===e&&v.k("Setting properties requires non-empty property names");var f=a,h=e;if(c||d){var k=e.indexOf(".");if(0c;c++)b[c]=c;for(var d= +var c=a instanceof C,d=a instanceof E,e;for(e in b){""===e&&v.k("Setting properties requires non-empty property names");var f=a,h=e;if(c||d){var k=e.indexOf(".");if(0c;c++)b[c]=c;for(var d= 0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0,f="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;cd;d++)b[v.qg("7ca11abfd7330390")](v.qg(c[d-1]),10,15*d+0);b[v.qg("7ca11abfd022028846")]=v.qg("39f046ebb36e4b");for(d=1;5>d;d++)b[v.qg("7ca11abfd7330390")](v.qg(c[d- -1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])v.p=function(a,b){var c=new fa(a,b,2);Object.freeze(c);a[b]=c;var d=a.lu;d instanceof pa||(d=new pa("string",fa),a.lu=d);d.add(b,c);return c};return a}();function fa(a,b,c){v.ec(this);this.uB=a;this.Pb=b;this.zG=c}v.ea("EnumValue",fa);fa.prototype.toString=function(){return v.bf(this.uB)+"."+this.Pb};v.u(fa,{pe:"classType"},function(){return this.uB});v.u(fa,{name:"name"},function(){return this.Pb});v.u(fa,{value:"value"},function(){return this.zG}); -var ra;fa.findName=ra=function(a,b){if(void 0===b||null===b||""===b)return null;v.j(a,"function","findName:classfunc");v.j(b,"string","EnumValue.findName:name");var c=a.lu;return c instanceof pa?c.ka(b):null};function sa(){this.sB=[]}sa.prototype.toString=function(){return this.sB.join("")};sa.prototype.add=function(a){""!==a&&this.sB.push(a)};function ua(){} -function va(a){void 0===a&&(a=42);this.seed=a;this.Jx=48271;this.ku=2147483647;this.cB=this.ku/this.Jx;this.$F=this.ku%this.Jx;this.VF=1/this.ku;this.random()}va.prototype.random=function(){var a=this.seed%this.cB*this.Jx-this.seed/this.cB*this.$F;this.seed=0d;d++)b[v.qg("7ca11abfd7330390")](v.qg(c[d-1]),10,15*d+0);b[v.qg("7ca11abfd022028846")]=v.qg("39f046ebb36e4b");for(d=1;5>d;d++)b[v.qg("7ca11abfd7330390")](v.qg(c[d- +1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])v.p=function(a,b){var c=new fa(a,b,2);Object.freeze(c);a[b]=c;var d=a.lu;d instanceof pa||(d=new pa("string",fa),a.lu=d);d.add(b,c);return c};return a}();function fa(a,b,c){v.ec(this);this.vB=a;this.Pb=b;this.AG=c}v.ea("EnumValue",fa);fa.prototype.toString=function(){return v.cf(this.vB)+"."+this.Pb};v.u(fa,{pe:"classType"},function(){return this.vB});v.u(fa,{name:"name"},function(){return this.Pb});v.u(fa,{value:"value"},function(){return this.AG}); +var ra;fa.findName=ra=function(a,b){if(void 0===b||null===b||""===b)return null;v.j(a,"function","findName:classfunc");v.j(b,"string","EnumValue.findName:name");var c=a.lu;return c instanceof pa?c.ka(b):null};function sa(){this.tB=[]}sa.prototype.toString=function(){return this.tB.join("")};sa.prototype.add=function(a){""!==a&&this.tB.push(a)};function ua(){} +function va(a){void 0===a&&(a=42);this.seed=a;this.Kx=48271;this.ku=2147483647;this.dB=this.ku/this.Kx;this.aG=this.ku%this.Kx;this.WF=1/this.ku;this.random()}va.prototype.random=function(){var a=this.seed%this.dB*this.Kx-this.seed/this.dB*this.aG;this.seed=0a&&v.wa(a,">= 0",H,"insertAt:i");this.F&&v.la(this,a);var c=this.n;a>=c.length?c.push(b):c.splice(a,0,b);this.zc();return!0};H.prototype.remove=H.prototype["delete"]=H.prototype.remove=function(a){if(null===a)return!1;this.F&&v.la(this,a);var b=this.n;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.zc();return!0}; H.prototype.removeAt=H.prototype.Uc=function(a){var b=this.n;(0>a||a>=b.length)&&v.wa(a,"0 <= i < length",H,"removeAt:i");this.F&&v.la(this,a);a===b.length-1?b.pop():b.splice(a,1);this.zc()};H.prototype.removeRange=H.prototype.removeRange=function(a,b){var c=this.n;(0>a||a>=c.length)&&v.wa(a,"0 <= from < length",H,"elt:from");(0>b||b>=c.length)&&v.wa(b,"0 <= to < length",H,"elt:to");this.F&&v.la(this,a);var d=c.slice((b||a)+1||c.length);c.length=0>a?c.length+a:a;c.push.apply(c,d);this.zc()}; -H.prototype.copy=function(){var a=new H(this.ja),b=this.n;0=f)return this;(0>b||b>=e-1)&&v.wa(b,"0 <= from < length",H,"sortRange:from");if(2===f)return c=d[b],e=d[b+1],0=e)d.sort(a);else for(f=d.slice(0,c),f.sort(a),a=0;a=e)for(f=d.slice(b),f.sort(a),a=b;a=this.n.length)return xa;var a=this.Xb;return null!==a?(a.reset(),a):new Aa(this)}); v.u(H,{an:"iteratorBackwards"},function(){if(0>=this.n.length)return xa;var a=this.wj;return null!==a?(a.reset(),a):new Ca(this)});function Da(a){this.Nh=a;this.reset()}v.Nd(Da,{key:!0,value:!0});v.u(Da,{i:"iterator"},function(){return this});Da.prototype.reset=Da.prototype.reset=function(){var a=this.Nh;a.Xb=null;this.gb=a.G;this.fb=null}; @@ -68,7 +68,7 @@ J.prototype.contains=J.prototype.has=J.prototype.contains=function(a){if(null=== J.prototype.any=function(a){for(var b=this.G,c=this.Ea;null!==c;){if(a(c.value))return!0;this.G!==b&&v.La(this);c=c.Ua}return!1};J.prototype.all=function(a){for(var b=this.G,c=this.Ea;null!==c;){if(!a(c.value))return!1;this.G!==b&&v.La(this);c=c.Ua}return!0};J.prototype.each=function(a){for(var b=this.G,c=this.Ea;null!==c;)a(c.value),this.G!==b&&v.La(this),c=c.Ua;return this};J.prototype.map=function(a){for(var b=new J,c=this.G,d=this.Ea;null!==d;)b.add(a(d.value)),this.G!==c&&v.La(this),d=d.Ua;return b}; J.prototype.filter=function(a){for(var b=new J(this.ja),c=this.G,d=this.Ea;null!==d;){var e=d.value;a(e)&&b.add(e);this.G!==c&&v.La(this);d=d.Ua}return b};J.prototype.concat=function(a){return this.copy().Sc(a)}; J.prototype.remove=J.prototype["delete"]=J.prototype.remove=function(a){if(null===a)return!1;this.F&&v.la(this,a);var b=a;if(v.Ta(a)&&(b=v.pd(a),void 0===b))return!1;a=this.ld[b];if(void 0===a)return!1;var c=a.Ua,d=a.so;null!==c&&(c.so=d);null!==d&&(d.Ua=c);this.Ea===a&&(this.Ea=c);this.Hh===a&&(this.Hh=d);delete this.ld[b];this.kd--;this.zc();return!0}; -J.prototype.removeAll=J.prototype.yA=function(a){if(null===a)return this;this.F&&v.la(this);if(v.isArray(a))for(var b=v.Va(a),c=0;c=this.kd)return xa;var a=this.Xb;return null!==a?(a.reset(),a):new Da(this)});function Ia(a){this.Ha=a;this.reset()}v.Nd(Ia,{key:!0,value:!0});v.u(Ia,{i:"iterator"},function(){return this});Ia.prototype.reset=Ia.prototype.reset=function(){this.gb=this.Ha.G;this.fb=null}; Ia.prototype.next=Ia.prototype.hasNext=Ia.prototype.next=function(){var a=this.Ha;if(a.G!==this.gb){if(null===this.key)return!1;v.La(a)}var b=this.fb,b=null===b?a.Ea:b.Ua;if(null!==b)return this.fb=b,this.value=this.key=a=b.key,!0;this.Cf();return!1};Ia.prototype.first=Ia.prototype.first=function(){var a=this.Ha;this.gb=a.G;a=a.Ea;return null!==a?(this.fb=a,this.value=this.key=a=a.key):null}; @@ -77,7 +77,7 @@ Ia.prototype.map=function(a){var b=this.Ha,c=b.G;this.fb=null;for(var d=new H,e= Ia.prototype.toString=function(){return null!==this.fb?"MapKeySetIterator@"+this.fb.value:"MapKeySetIterator"};function Ka(a){v.ec(this);this.F=!0;this.Ha=a}v.Ja(Ka,J);Ka.prototype.freeze=function(){return this};Ka.prototype.Oa=function(){return this};Ka.prototype.toString=function(){return"MapKeySet("+this.Ha.toString()+")"};Ka.prototype.add=Ka.prototype.set=Ka.prototype.add=function(){v.k("This Set is read-only: "+this.toString());return!1}; Ka.prototype.contains=Ka.prototype.has=Ka.prototype.contains=function(a){return this.Ha.contains(a)};Ka.prototype.remove=Ka.prototype["delete"]=Ka.prototype.remove=function(){v.k("This Set is read-only: "+this.toString());return!1};Ka.prototype.clear=Ka.prototype.clear=function(){v.k("This Set is read-only: "+this.toString())};Ka.prototype.first=Ka.prototype.first=function(){var a=this.Ha.Ea;return null!==a?a.key:null}; Ka.prototype.any=function(a){for(var b=this.Ha.Ea;null!==b;){if(a(b.key))return!0;b=b.Ua}return!1};Ka.prototype.all=function(a){for(var b=this.Ha.Ea;null!==b;){if(!a(b.key))return!1;b=b.Ua}return!0};Ka.prototype.each=function(a){for(var b=this.Ha.Ea;null!==b;)a(b.key),b=b.Ua;return this};Ka.prototype.map=function(a){for(var b=new J,c=this.Ha.Ea;null!==c;)b.add(a(c.key)),c=c.Ua;return b}; -Ka.prototype.filter=function(a){for(var b=new J(this.Ha.xi),c=this.Ha.Ea;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.Ua}return b};Ka.prototype.concat=function(a){return this.FF().Sc(a)};Ka.prototype.copy=function(){return new Ka(this.Ha)};Ka.prototype.toSet=Ka.prototype.FF=function(){var a=new J(this.Ha.xi),b=this.Ha.ld,c;for(c in b)a.add(b[c].key);return a};Ka.prototype.toArray=Ka.prototype.dc=function(){var a=this.Ha.ld,b=Array(this.Ha.kd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b}; +Ka.prototype.filter=function(a){for(var b=new J(this.Ha.xi),c=this.Ha.Ea;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.Ua}return b};Ka.prototype.concat=function(a){return this.GF().Sc(a)};Ka.prototype.copy=function(){return new Ka(this.Ha)};Ka.prototype.toSet=Ka.prototype.GF=function(){var a=new J(this.Ha.xi),b=this.Ha.ld,c;for(c in b)a.add(b[c].key);return a};Ka.prototype.toArray=Ka.prototype.dc=function(){var a=this.Ha.ld,b=Array(this.Ha.kd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b}; Ka.prototype.toList=function(){var a=new H(this.ja),b=this.Ha.ld,c;for(c in b)a.add(b[c].key);return a};v.u(Ka,{count:"count"},function(){return this.Ha.kd});v.u(Ka,{size:"size"},function(){return this.Ha.kd});v.u(Ka,{i:"iterator"},function(){return 0>=this.Ha.kd?xa:new Ia(this.Ha)});function La(a){this.Ha=a;this.reset()}v.Nd(La,{key:!0,value:!0});v.u(La,{i:"iterator"},function(){return this});La.prototype.reset=La.prototype.reset=function(){var a=this.Ha;a.xj=null;this.gb=a.G;this.fb=null}; La.prototype.next=La.prototype.hasNext=La.prototype.next=function(){var a=this.Ha;if(a.G!==this.gb){if(null===this.key)return!1;v.La(a)}var b=this.fb,b=null===b?a.Ea:b.Ua;if(null!==b)return this.fb=b,this.value=b.value,this.key=b.key,!0;this.Cf();return!1};La.prototype.first=La.prototype.first=function(){var a=this.Ha;this.gb=a.G;a=a.Ea;if(null!==a){this.fb=a;var b=a.value;this.key=a.key;return this.value=b}return null}; La.prototype.any=function(a){var b=this.Ha;b.xj=null;var c=b.G;this.fb=null;for(var d=b.Ea;null!==d;){if(a(d.value))return!0;b.G!==c&&v.La(b);d=d.Ua}return!1};La.prototype.all=function(a){var b=this.Ha;b.xj=null;var c=b.G;this.fb=null;for(var d=b.Ea;null!==d;){if(!a(d.value))return!1;b.G!==c&&v.La(b);d=d.Ua}return!0};La.prototype.each=function(a){var b=this.Ha;b.xj=null;var c=b.G;this.fb=null;for(var d=b.Ea;null!==d;)a(d.value),b.G!==c&&v.La(b),d=d.Ua;return this}; @@ -96,10 +96,10 @@ pa.prototype.map=function(a){for(var b=new pa(this.xi),c=this.G,d=this.Ea;null!= pa.prototype.getValue=pa.prototype.get=pa.prototype.ka=function(a){var b=a;if(v.Ta(a)&&(b=v.pd(a),void 0===b))return null;a=this.ld[b];return void 0===a?null:a.value}; pa.prototype.remove=pa.prototype["delete"]=pa.prototype.remove=function(a){if(null===a)return!1;this.F&&v.la(this,a);var b=a;if(v.Ta(a)&&(b=v.pd(a),void 0===b))return!1;a=this.ld[b];if(void 0===a)return!1;var c=a.Ua,d=a.so;null!==c&&(c.so=d);null!==d&&(d.Ua=c);this.Ea===a&&(this.Ea=c);this.Hh===a&&(this.Hh=d);delete this.ld[b];this.kd--;this.zc();return!0};pa.prototype.clear=pa.prototype.clear=function(){this.F&&v.la(this);this.ld={};this.kd=0;this.Hh=this.Ea=null;this.zc()}; pa.prototype.copy=function(){var a=new pa(this.xi,this.Ds),b=this.ld,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};pa.prototype.toArray=pa.prototype.dc=function(){var a=this.ld,b=Array(this.kd),c=0,d;for(d in a){var e=a[d];b[c]=new Ga(e.key,e.value);c++}return b};pa.prototype.toKeySet=pa.prototype.ej=function(){return new Ka(this)};v.u(pa,{count:"count"},function(){return this.kd});v.u(pa,{size:"size"},function(){return this.kd}); -v.u(pa,{i:"iterator"},function(){if(0>=this.count)return xa;var a=this.Xb;return null!==a?(a.reset(),a):new Ma(this)});v.u(pa,{LE:"iteratorKeys"},function(){return 0>=this.count?xa:new Ia(this)});v.u(pa,{ME:"iteratorValues"},function(){if(0>=this.count)return xa;var a=this.xj;return null!==a?(a.reset(),a):new La(this)});function w(a,b){void 0===a?this.y=this.x=0:(this.x=a,this.y=b);this.F=!1}v.ea("Point",w);v.Xh(w);v.Nd(w,{x:!0,y:!0});w.prototype.assign=function(a){this.x=a.x;this.y=a.y}; +v.u(pa,{i:"iterator"},function(){if(0>=this.count)return xa;var a=this.Xb;return null!==a?(a.reset(),a):new Ma(this)});v.u(pa,{ME:"iteratorKeys"},function(){return 0>=this.count?xa:new Ia(this)});v.u(pa,{NE:"iteratorValues"},function(){if(0>=this.count)return xa;var a=this.xj;return null!==a?(a.reset(),a):new La(this)});function w(a,b){void 0===a?this.y=this.x=0:(this.x=a,this.y=b);this.F=!1}v.ea("Point",w);v.Xh(w);v.Nd(w,{x:!0,y:!0});w.prototype.assign=function(a){this.x=a.x;this.y=a.y}; w.prototype.setTo=w.prototype.m=function(a,b){this.x=a;this.y=b;return this};w.prototype.set=w.prototype.set=function(a){this.Eb();this.x=a.x;this.y=a.y;return this};w.prototype.copy=function(){var a=new w;a.x=this.x;a.y=this.y;return a};g=w.prototype;g.Fa=function(){this.F=!0;Object.freeze(this);return this};g.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.F=!0;return this}; g.Oa=function(){Object.isFrozen(this)&&v.k("cannot thaw constant: "+this);this.F=!1;return this};g.Eb=function(a){if(this.F){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v.k(b)}};w.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new w(c,e)}return new w}; -w.stringify=function(a){return a instanceof w?a.x.toString()+" "+a.y.toString():a.toString()};w.prototype.toString=function(){return"Point("+this.x+","+this.y+")"};w.prototype.equals=w.prototype.L=function(a){return a instanceof w?this.x===a.x&&this.y===a.y:!1};w.prototype.equalTo=w.prototype.Gw=function(a,b){return this.x===a&&this.y===b};w.prototype.equalsApprox=w.prototype.od=function(a){return K.D(this.x,a.x)&&K.D(this.y,a.y)}; +w.stringify=function(a){return a instanceof w?a.x.toString()+" "+a.y.toString():a.toString()};w.prototype.toString=function(){return"Point("+this.x+","+this.y+")"};w.prototype.equals=w.prototype.L=function(a){return a instanceof w?this.x===a.x&&this.y===a.y:!1};w.prototype.equalTo=w.prototype.Hw=function(a,b){return this.x===a&&this.y===b};w.prototype.equalsApprox=w.prototype.od=function(a){return K.D(this.x,a.x)&&K.D(this.y,a.y)}; w.prototype.add=w.prototype.add=function(a){this.Eb();this.x+=a.x;this.y+=a.y;return this};w.prototype.subtract=w.prototype.eu=function(a){this.Eb();this.x-=a.x;this.y-=a.y;return this};w.prototype.offset=w.prototype.offset=function(a,b){this.Eb();this.x+=a;this.y+=b;return this}; w.prototype.rotate=w.prototype.rotate=function(a){this.Eb();if(0===a)return this;var b=this.x,c=this.y;if(0===b&&0===c)return this;var d=0,e=0;360<=a?a-=360:0>a&&(a+=360);90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(a=a*Math.PI/180,d=Math.cos(a),e=Math.sin(a));this.x=d*b-e*c;this.y=e*b+d*c;return this};w.prototype.scale=w.prototype.scale=function(a,b){this.x*=a;this.y*=b;return this}; w.prototype.distanceSquaredPoint=w.prototype.$j=function(a){var b=a.x-this.x;a=a.y-this.y;return b*b+a*a};w.prototype.distanceSquared=w.prototype.Xo=function(a,b){var c=a-this.x,d=b-this.y;return c*c+d*d};w.prototype.normalize=w.prototype.normalize=function(){this.Eb();var a=this.x,b=this.y,c=Math.sqrt(a*a+b*b);0b?270:0;if(0===b)return 0a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d};w.prototype.isReal=w.prototype.K=function(){return isFinite(this.x)&&isFinite(this.y)};function ia(a,b){void 0===a?this.height=this.width=0:(this.width=a,this.height=b);this.F=!1}v.ea("Size",ia);v.Xh(ia);v.Nd(ia,{width:!0,height:!0}); ia.prototype.assign=function(a){this.width=a.width;this.height=a.height};ia.prototype.setTo=ia.prototype.m=function(a,b){this.width=a;this.height=b;return this};ia.prototype.set=ia.prototype.set=function(a){this.Eb();this.width=a.width;this.height=a.height;return this};ia.prototype.copy=function(){var a=new ia;a.width=this.width;a.height=this.height;return a};g=ia.prototype;g.Fa=function(){this.F=!0;Object.freeze(this);return this};g.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()}; g.freeze=function(){this.F=!0;return this};g.Oa=function(){Object.isFrozen(this)&&v.k("cannot thaw constant: "+this);this.F=!1;return this};g.Eb=function(a){if(this.F){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v.k(b)}};ia.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new ia(c,e)}return new ia}; -ia.stringify=function(a){return a instanceof ia?a.width.toString()+" "+a.height.toString():a.toString()};ia.prototype.toString=function(){return"Size("+this.width+","+this.height+")"};ia.prototype.equals=ia.prototype.L=function(a){return a instanceof ia?this.width===a.width&&this.height===a.height:!1};ia.prototype.equalTo=ia.prototype.Gw=function(a,b){return this.width===a&&this.height===b};ia.prototype.equalsApprox=ia.prototype.od=function(a){return K.D(this.width,a.width)&&K.D(this.height,a.height)}; +ia.stringify=function(a){return a instanceof ia?a.width.toString()+" "+a.height.toString():a.toString()};ia.prototype.toString=function(){return"Size("+this.width+","+this.height+")"};ia.prototype.equals=ia.prototype.L=function(a){return a instanceof ia?this.width===a.width&&this.height===a.height:!1};ia.prototype.equalTo=ia.prototype.Hw=function(a,b){return this.width===a&&this.height===b};ia.prototype.equalsApprox=ia.prototype.od=function(a){return K.D(this.width,a.width)&&K.D(this.height,a.height)}; ia.prototype.isReal=ia.prototype.K=function(){return isFinite(this.width)&&isFinite(this.height)}; function z(a,b,c,d){void 0===a?this.height=this.width=this.y=this.x=0:a instanceof w?b instanceof w?(this.x=Math.min(a.x,b.x),this.y=Math.min(a.y,b.y),this.width=Math.abs(a.x-b.x),this.height=Math.abs(a.y-b.y)):b instanceof ia?(this.x=a.x,this.y=a.y,this.width=b.width,this.height=b.height):v.k("Incorrect arguments supplied to Rect constructor"):(this.x=a,this.y=b,this.width=c,this.height=d);this.F=!1}v.ea("Rect",z);v.Xh(z);v.Nd(z,{x:!0,y:!0,width:!0,height:!0}); z.prototype.assign=function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height};function Ua(a,b,c){a.width=b;a.height=c}z.prototype.setTo=z.prototype.m=function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d;return this};z.prototype.set=z.prototype.set=function(a){this.Eb();this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height;return this};z.prototype.setPoint=z.prototype.zf=function(a){this.Eb();this.x=a.x;this.y=a.y;return this}; z.prototype.setSize=function(a){this.Eb();this.width=a.width;this.height=a.height;return this};z.prototype.copy=function(){var a=new z;a.x=this.x;a.y=this.y;a.width=this.width;a.height=this.height;return a};g=z.prototype;g.Fa=function(){this.F=!0;Object.freeze(this);return this};g.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.F=!0;return this};g.Oa=function(){Object.isFrozen(this)&&v.k("cannot thaw constant: "+this);this.F=!1;return this}; g.Eb=function(a){if(this.F){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v.k(b)}};z.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));for(var f=0;""===a[b];)b++;(d=a[b++])&&(f=parseFloat(d));for(var h=0;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return new z(c,e,f,h)}return new z}; -z.stringify=function(a){return a instanceof z?a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString():a.toString()};z.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};z.prototype.equals=z.prototype.L=function(a){return a instanceof z?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1};z.prototype.equalTo=z.prototype.Gw=function(a,b,c,d){return this.x===a&&this.y===b&&this.width===c&&this.height===d}; +z.stringify=function(a){return a instanceof z?a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString():a.toString()};z.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};z.prototype.equals=z.prototype.L=function(a){return a instanceof z?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1};z.prototype.equalTo=z.prototype.Hw=function(a,b,c,d){return this.x===a&&this.y===b&&this.width===c&&this.height===d}; z.prototype.equalsApprox=z.prototype.od=function(a){return K.D(this.x,a.x)&&K.D(this.y,a.y)&&K.D(this.width,a.width)&&K.D(this.height,a.height)};z.prototype.containsPoint=z.prototype.Ga=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y};z.prototype.containsRect=z.prototype.Zj=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height}; z.prototype.contains=z.prototype.contains=function(a,b,c,d){void 0===c&&(c=0);void 0===d&&(d=0);return this.x<=a&&a+c<=this.x+this.width&&this.y<=b&&b+d<=this.y+this.height};z.prototype.reset=function(){this.Eb();this.height=this.width=this.y=this.x=0};z.prototype.offset=z.prototype.offset=function(a,b){this.Eb();this.x+=a;this.y+=b;return this};z.prototype.inflate=z.prototype.Pf=function(a,b){return Va(this,b,a,b,a)}; z.prototype.addMargin=z.prototype.nw=function(a){return Va(this,a.top,a.right,a.bottom,a.left)};z.prototype.subtractMargin=z.prototype.tJ=function(a){return Va(this,-a.top,-a.right,-a.bottom,-a.left)};z.prototype.grow=function(a,b,c,d){return Va(this,a,b,c,d)};function Va(a,b,c,d,e){a.Eb();var f=a.width;c+e<=-f?(a.x+=f/2,a.width=0):(a.x-=e,a.width+=c+e);c=a.height;b+d<=-c?(a.y+=c/2,a.height=0):(a.y-=b,a.height+=b+d);return a}z.prototype.intersectRect=function(a){return Wa(this,a.x,a.y,a.width,a.height)}; -z.prototype.intersect=function(a,b,c,d){return Wa(this,a,b,c,d)};function Wa(a,b,c,d,e){a.Eb();var f=Math.max(a.x,b),h=Math.max(a.y,c);b=Math.min(a.x+a.width,b+d);c=Math.min(a.y+a.height,c+e);a.x=f;a.y=h;a.width=Math.max(0,b-f);a.height=Math.max(0,c-h);return a}z.prototype.intersectsRect=z.prototype.vg=function(a){return this.xE(a.x,a.y,a.width,a.height)}; -z.prototype.intersects=z.prototype.xE=function(a,b,c,d){var e=this.width,f=this.x;if(Infinity!==e&&Infinity!==c&&(e+=f,c+=a,isNaN(c)||isNaN(e)||f>c||a>e))return!1;a=this.height;c=this.y;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0};function Xa(a,b){var c=a.width,d=b.width+10+10,e=a.x,f=b.x-10;if(e>d+f||f>c+e)return!1;c=a.height;d=b.height+10+10;e=a.y;f=b.y-10;return e>d+f||f>c+e?!1:!0}z.prototype.unionPoint=z.prototype.fj=function(a){return Ya(this,a.x,a.y,0,0)}; -z.prototype.unionRect=z.prototype.di=function(a){return Ya(this,a.x,a.y,a.width,a.height)};z.prototype.union=z.prototype.OF=function(a,b,c,d){this.Eb();void 0===c&&(c=0);void 0===d&&(d=0);return Ya(this,a,b,c,d)};function Ya(a,b,c,d,e){var f=Math.min(a.x,b),h=Math.min(a.y,c);b=Math.max(a.x+a.width,b+d);c=Math.max(a.y+a.height,c+e);a.x=f;a.y=h;a.width=b-f;a.height=c-h;return a} +z.prototype.intersect=function(a,b,c,d){return Wa(this,a,b,c,d)};function Wa(a,b,c,d,e){a.Eb();var f=Math.max(a.x,b),h=Math.max(a.y,c);b=Math.min(a.x+a.width,b+d);c=Math.min(a.y+a.height,c+e);a.x=f;a.y=h;a.width=Math.max(0,b-f);a.height=Math.max(0,c-h);return a}z.prototype.intersectsRect=z.prototype.vg=function(a){return this.yE(a.x,a.y,a.width,a.height)}; +z.prototype.intersects=z.prototype.yE=function(a,b,c,d){var e=this.width,f=this.x;if(Infinity!==e&&Infinity!==c&&(e+=f,c+=a,isNaN(c)||isNaN(e)||f>c||a>e))return!1;a=this.height;c=this.y;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0};function Xa(a,b){var c=a.width,d=b.width+10+10,e=a.x,f=b.x-10;if(e>d+f||f>c+e)return!1;c=a.height;d=b.height+10+10;e=a.y;f=b.y-10;return e>d+f||f>c+e?!1:!0}z.prototype.unionPoint=z.prototype.fj=function(a){return Ya(this,a.x,a.y,0,0)}; +z.prototype.unionRect=z.prototype.di=function(a){return Ya(this,a.x,a.y,a.width,a.height)};z.prototype.union=z.prototype.PF=function(a,b,c,d){this.Eb();void 0===c&&(c=0);void 0===d&&(d=0);return Ya(this,a,b,c,d)};function Ya(a,b,c,d,e){var f=Math.min(a.x,b),h=Math.min(a.y,c);b=Math.max(a.x+a.width,b+d);c=Math.max(a.y+a.height,c+e);a.x=f;a.y=h;a.width=b-f;a.height=c-h;return a} z.prototype.setSpot=z.prototype.au=function(a,b,c){this.Eb();this.x=a-c.offsetX-c.x*this.width;this.y=b-c.offsetY-c.y*this.height;return this};var ab;z.contains=ab=function(a,b,c,d,e,f,h,k){void 0===h&&(h=0);void 0===k&&(k=0);return a<=e&&e+h<=a+c&&b<=f&&f+k<=b+d};z.intersects=function(a,b,c,d,e,f,h,k){c+=a;h+=e;if(a>h||e>c)return!1;a=d+b;k+=f;return b>k||f>a?!1:!0};v.defineProperty(z,{left:"left"},function(){return this.x},function(a){this.Eb(a);this.x=a}); v.defineProperty(z,{top:"top"},function(){return this.y},function(a){this.Eb(a);this.y=a});v.defineProperty(z,{right:"right"},function(){return this.x+this.width},function(a){this.Eb(a);this.x+=a-(this.x+this.width)});v.defineProperty(z,{bottom:"bottom"},function(){return this.y+this.height},function(a){this.Eb(a);this.y+=a-(this.y+this.height)});v.defineProperty(z,{position:"position"},function(){return new w(this.x,this.y)},function(a){this.Eb(a);this.x=a.x;this.y=a.y}); v.defineProperty(z,{size:"size"},function(){return new ia(this.width,this.height)},function(a){this.Eb(a);this.width=a.width;this.height=a.height});v.defineProperty(z,{el:"center"},function(){return new w(this.x+this.width/2,this.y+this.height/2)},function(a){this.Eb(a);this.x=a.x-this.width/2;this.y=a.y-this.height/2});v.defineProperty(z,{oa:"centerX"},function(){return this.x+this.width/2},function(a){this.Eb(a);this.x=a-this.width/2}); @@ -131,16 +131,16 @@ cb.prototype.setTo=cb.prototype.m=function(a,b,c,d){this.Eb();this.top=a;this.ri g.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.F=!0;return this};g.Oa=function(){Object.isFrozen(this)&&v.k("cannot thaw constant: "+this);this.F=!1;return this};g.Eb=function(a){if(this.F){var b="The Margin is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v.k(b)}}; cb.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=NaN;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));if(isNaN(c))return new cb;for(var e=NaN;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));if(isNaN(e))return new cb(c);for(var f=NaN;""===a[b];)b++;(d=a[b++])&&(f=parseFloat(d));if(isNaN(f))return new cb(c,e);for(var h=NaN;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return isNaN(h)?new cb(c,e):new cb(c,e,f,h)}return new cb}; cb.stringify=function(a){return a instanceof cb?a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString():a.toString()};cb.prototype.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"};cb.prototype.equals=cb.prototype.L=function(a){return a instanceof cb?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1}; -cb.prototype.equalTo=cb.prototype.Gw=function(a,b,c,d){return this.top===a&&this.right===b&&this.bottom===c&&this.left===d};cb.prototype.equalsApprox=cb.prototype.od=function(a){return K.D(this.top,a.top)&&K.D(this.right,a.right)&&K.D(this.bottom,a.bottom)&&K.D(this.left,a.left)};cb.prototype.isReal=cb.prototype.K=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function la(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}v.Xh(la); +cb.prototype.equalTo=cb.prototype.Hw=function(a,b,c,d){return this.top===a&&this.right===b&&this.bottom===c&&this.left===d};cb.prototype.equalsApprox=cb.prototype.od=function(a){return K.D(this.top,a.top)&&K.D(this.right,a.right)&&K.D(this.bottom,a.bottom)&&K.D(this.left,a.left)};cb.prototype.isReal=cb.prototype.K=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function la(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}v.Xh(la); v.Nd(la,{m11:!0,m12:!0,m21:!0,m22:!0,dx:!0,dy:!0});la.prototype.set=la.prototype.set=function(a){this.m11=a.m11;this.m12=a.m12;this.m21=a.m21;this.m22=a.m22;this.dx=a.dx;this.dy=a.dy;return this};la.prototype.copy=function(){var a=new la;a.m11=this.m11;a.m12=this.m12;a.m21=this.m21;a.m22=this.m22;a.dx=this.dx;a.dy=this.dy;return a};la.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"}; la.prototype.equals=la.prototype.L=function(a){return a instanceof la?this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy:!1};la.prototype.isIdentity=la.prototype.ut=function(){return 1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22&&0===this.dx&&0===this.dy};la.prototype.reset=la.prototype.reset=function(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0;return this}; la.prototype.multiply=la.prototype.multiply=function(a){var b=this.m12*a.m11+this.m22*a.m12,c=this.m11*a.m21+this.m21*a.m22,d=this.m12*a.m21+this.m22*a.m22,e=this.m11*a.dx+this.m21*a.dy+this.dx,f=this.m12*a.dx+this.m22*a.dy+this.dy;this.m11=this.m11*a.m11+this.m21*a.m12;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=f;return this}; -la.prototype.multiplyInverted=la.prototype.UE=function(a){var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,f=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*f;e=this.m12*e+this.m22*f;f=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=f;this.dy=h;return this}; -la.prototype.invert=la.prototype.Tz=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),f=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=f;return this}; +la.prototype.multiplyInverted=la.prototype.VE=function(a){var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,f=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*f;e=this.m12*e+this.m22*f;f=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=f;this.dy=h;return this}; +la.prototype.invert=la.prototype.Uz=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),f=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=f;return this}; la.prototype.rotate=la.prototype.rotate=function(a,b,c){360<=a?a-=360:0>a&&(a+=360);if(0===a)return this;this.translate(b,c);var d=0,e=0;90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(e=a*Math.PI/180,d=Math.cos(e),e=Math.sin(e));a=this.m12*d+this.m22*e;var f=this.m11*-e+this.m21*d,h=this.m12*-e+this.m22*d;this.m11=this.m11*d+this.m21*e;this.m12=a;this.m21=f;this.m22=h;this.translate(-b,-c);return this}; la.prototype.translate=la.prototype.translate=function(a,b){this.dx+=this.m11*a+this.m21*b;this.dy+=this.m12*a+this.m22*b;return this};la.prototype.scale=la.prototype.scale=function(a,b){void 0===b&&(b=a);this.m11*=a;this.m12*=a;this.m21*=b;this.m22*=b;return this};la.prototype.transformPoint=la.prototype.xb=function(a){var b=a.x,c=a.y;a.x=b*this.m11+c*this.m21+this.dx;a.y=b*this.m12+c*this.m22+this.dy;return a}; la.prototype.invertedTransformPoint=la.prototype.$h=function(a){var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),f=a.x,h=a.y;a.x=f*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.y=f*c+h*d+e;return a}; -la.prototype.transformRect=la.prototype.MF=function(a){var b=a.x,c=a.y,d=b+a.width,e=c+a.height,f=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*f+c*k+m,q=b*h+c*l+n,r=d*f+c*k+m,c=d*h+c*l+n,s=b*f+e*k+m,b=b*h+e*l+n,f=d*f+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,f),e=Math.max(e,f),h=Math.min(h,d),q=Math.max(q,d);a.x=p;a.y=h;a.width=e-p;a.height=q-h;return a}; +la.prototype.transformRect=la.prototype.NF=function(a){var b=a.x,c=a.y,d=b+a.width,e=c+a.height,f=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*f+c*k+m,q=b*h+c*l+n,r=d*f+c*k+m,c=d*h+c*l+n,s=b*f+e*k+m,b=b*h+e*l+n,f=d*f+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,f),e=Math.max(e,f),h=Math.min(h,d),q=Math.max(q,d);a.x=p;a.y=h;a.width=e-p;a.height=q-h;return a}; function L(a,b,c,d){void 0===a?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.F=!1}v.ea("Spot",L);v.Xh(L);v.Nd(L,{x:!0,y:!0,offsetX:!0,offsetY:!0});L.prototype.assign=function(a){this.x=a.x;this.y=a.y;this.offsetX=a.offsetX;this.offsetY=a.offsetY};L.prototype.setTo=L.prototype.m=function(a,b,c,d){this.Eb();this.x=a;this.y=b;this.offsetX=c;this.offsetY=d;return this}; L.prototype.set=L.prototype.set=function(a){this.Eb();this.x=a.x;this.y=a.y;this.offsetX=a.offsetX;this.offsetY=a.offsetY;return this};L.prototype.copy=function(){var a=new L;a.x=this.x;a.y=this.y;a.offsetX=this.offsetX;a.offsetY=this.offsetY;return a};g=L.prototype;g.Fa=function(){this.F=!0;Object.freeze(this);return this};g.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.F=!0;return this}; g.Oa=function(){Object.isFrozen(this)&&v.k("cannot thaw constant: "+this);this.F=!1;return this};g.Eb=function(a){if(this.F){var b="The Spot is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v.k(b)}};function db(a,b){a.x=NaN;a.y=NaN;a.offsetX=b;return a}var jb; @@ -153,53 +153,53 @@ L.prototype.opposite=function(){return new L(.5-(this.x-.5),.5-(this.y-.5),-this L.prototype.isSide=L.prototype.Yi=function(){return this.se()&&1===this.offsetX&&0!==this.offsetY};L.prototype.isDefault=L.prototype.Tc=function(){return isNaN(this.x)&&isNaN(this.y)&&-1===this.offsetX&&0===this.offsetY};var ob;L.None=ob=db(new L(0,0,0,0),0).Fa();var jc;L.Default=jc=db(new L(0,0,-1,0),-1).Fa();var pb;L.TopLeft=pb=(new L(0,0,0,0)).Fa();var qb;L.TopCenter=qb=(new L(.5,0,0,0)).Fa();var rb;L.TopRight=rb=(new L(1,0,0,0)).Fa();var tb;L.LeftCenter=tb=(new L(0,.5,0,0)).Fa();var ub; L.Center=ub=(new L(.5,.5,0,0)).Fa();var vb;L.RightCenter=vb=(new L(1,.5,0,0)).Fa();var yb;L.BottomLeft=yb=(new L(0,1,0,0)).Fa();var zb;L.BottomCenter=zb=(new L(.5,1,0,0)).Fa();var Cb;L.BottomRight=Cb=(new L(1,1,0,0)).Fa();var uc;L.MiddleTop=uc=qb;var vc;L.MiddleLeft=vc=tb;var wc;L.MiddleRight=wc=vb;var xc;L.MiddleBottom=xc=zb;var mc;L.Top=mc=qb;var kc;L.Left=kc=tb;var lc;L.Right=lc=vb;var nc;L.Bottom=nc=zb;var Db;L.TopSide=Db=db(new L(0,0,1,v.hd),1).Fa();var Eb; L.LeftSide=Eb=db(new L(0,0,1,v.Mc),1).Fa();var Ib;L.RightSide=Ib=db(new L(0,0,1,v.Wc),1).Fa();var Jb;L.BottomSide=Jb=db(new L(0,0,1,v.Vc),1).Fa();var Qb;L.TopBottomSides=Qb=db(new L(0,0,1,v.hd|v.Vc),1).Fa();var Rb;L.LeftRightSides=Rb=db(new L(0,0,1,v.Mc|v.Wc),1).Fa();var Sb;L.TopLeftSides=Sb=db(new L(0,0,1,v.hd|v.Mc),1).Fa();var Xb;L.TopRightSides=Xb=db(new L(0,0,1,v.hd|v.Wc),1).Fa();var Yb;L.BottomLeftSides=Yb=db(new L(0,0,1,v.Vc|v.Mc),1).Fa();var Zb; -L.BottomRightSides=Zb=db(new L(0,0,1,v.Vc|v.Wc),1).Fa();var $b;L.NotTopSide=$b=db(new L(0,0,1,v.Mc|v.Wc|v.Vc),1).Fa();var ac;L.NotLeftSide=ac=db(new L(0,0,1,v.hd|v.Wc|v.Vc),1).Fa();var bc;L.NotRightSide=bc=db(new L(0,0,1,v.hd|v.Mc|v.Vc),1).Fa();var cc;L.NotBottomSide=cc=db(new L(0,0,1,v.hd|v.Mc|v.Wc),1).Fa();var ic;L.AllSides=ic=db(new L(0,0,1,v.hd|v.Mc|v.Wc|v.Vc),1).Fa();function yc(){this.ff=[1,0,0,1,0,0]} -yc.prototype.copy=function(){var a=new yc;a.ff[0]=this.ff[0];a.ff[1]=this.ff[1];a.ff[2]=this.ff[2];a.ff[3]=this.ff[3];a.ff[4]=this.ff[4];a.ff[5]=this.ff[5];return a};function zc(a){this.type=a;this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0;this.ND=[]}zc.prototype.addColorStop=function(a,b){this.ND.push({offset:a,color:b})}; -function Ac(a,b,c){this.fillStyle="#000000";this.font="10px sans-serif";this.globalAlpha=1;this.lineCap="butt";this.$w=0;this.lineJoin="miter";this.lineWidth=1;this.miterLimit=10;this.shadowBlur=0;this.shadowColor="rgba(0, 0, 0, 0)";this.shadowOffsetY=this.shadowOffsetX=0;this.strokeStyle="#000000";this.textAlign="start";this.document=b||document;this.eE=c;this.Xw=null;this.path=[];this.Ui=new yc;this.stack=[];this.tf=[];this.Ew=a;this.KI="http://www.w3.org/2000/svg";this.width=this.Ew.width;this.height= -this.Ew.height;this.Jl=Bc(this,"svg",{width:this.width+"px",height:this.height+"px",GL:"0 0 "+this.Ew.width+" "+this.Ew.height});this.Jl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.Jl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");Cc(this,1,0,0,1,0,0);a=v.Pl++;b=Bc(this,"clipPath",{id:"mainClip"+a});b.appendChild(Bc(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.Jl.appendChild(b);this.tf[0].setAttributeNS(null, +L.BottomRightSides=Zb=db(new L(0,0,1,v.Vc|v.Wc),1).Fa();var $b;L.NotTopSide=$b=db(new L(0,0,1,v.Mc|v.Wc|v.Vc),1).Fa();var ac;L.NotLeftSide=ac=db(new L(0,0,1,v.hd|v.Wc|v.Vc),1).Fa();var bc;L.NotRightSide=bc=db(new L(0,0,1,v.hd|v.Mc|v.Vc),1).Fa();var cc;L.NotBottomSide=cc=db(new L(0,0,1,v.hd|v.Mc|v.Wc),1).Fa();var ic;L.AllSides=ic=db(new L(0,0,1,v.hd|v.Mc|v.Wc|v.Vc),1).Fa();function yc(){this.gf=[1,0,0,1,0,0]} +yc.prototype.copy=function(){var a=new yc;a.gf[0]=this.gf[0];a.gf[1]=this.gf[1];a.gf[2]=this.gf[2];a.gf[3]=this.gf[3];a.gf[4]=this.gf[4];a.gf[5]=this.gf[5];return a};function zc(a){this.type=a;this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0;this.OD=[]}zc.prototype.addColorStop=function(a,b){this.OD.push({offset:a,color:b})}; +function Ac(a,b,c){this.fillStyle="#000000";this.font="10px sans-serif";this.globalAlpha=1;this.lineCap="butt";this.ax=0;this.lineJoin="miter";this.lineWidth=1;this.miterLimit=10;this.shadowBlur=0;this.shadowColor="rgba(0, 0, 0, 0)";this.shadowOffsetY=this.shadowOffsetX=0;this.strokeStyle="#000000";this.textAlign="start";this.document=b||document;this.fE=c;this.Yw=null;this.path=[];this.Ui=new yc;this.stack=[];this.tf=[];this.Fw=a;this.KI="http://www.w3.org/2000/svg";this.width=this.Fw.width;this.height= +this.Fw.height;this.Kl=Bc(this,"svg",{width:this.width+"px",height:this.height+"px",GL:"0 0 "+this.Fw.width+" "+this.Fw.height});this.Kl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.Kl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");Cc(this,1,0,0,1,0,0);a=v.Ql++;b=Bc(this,"clipPath",{id:"mainClip"+a});b.appendChild(Bc(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.Kl.appendChild(b);this.tf[0].setAttributeNS(null, "clip-path","url(#mainClip"+a+")")}g=Ac.prototype;g.arc=function(a,b,c,d,e,f){Fc(this,a,b,c,d,e,f)};g.beginPath=function(){this.path=[]};g.bezierCurveTo=function(a,b,c,d,e,f){this.path.push(["C",a,b,c,d,e,f])};g.clearRect=function(){};g.clip=function(){Gc(this,"clipPath",this.path,new yc)};g.closePath=function(){this.path.push(["z"])};g.createLinearGradient=function(a,b,c,d){var e=new zc("linear");e.x1=a;e.y1=b;e.x2=c;e.y2=d;return e};g.createPattern=function(){}; g.createRadialGradient=function(a,b,c,d,e,f){var h=new zc("radial");h.x1=a;h.y1=b;h.r1=c;h.x2=d;h.y2=e;h.r2=f;return h}; -g.drawImage=function(a,b,c,d,e,f,h,k,l){var m="";a instanceof HTMLCanvasElement&&(m=a.toDataURL());a instanceof HTMLImageElement&&(m=a.src);m={x:0,y:0,width:a.naturalWidth,height:a.naturalHeight,href:m};m.preserveAspectRatio=K.bb(d,k)&&K.bb(e,l)?"xMidYMid slice":"none";var n="";k/=d;l/=e;if(0!==f||0!==h)n+=" translate("+f+", "+h+")";if(1!==k||1!==l)n+=" scale("+k+", "+l+")";if(0!==b||0!==c)n+=" translate("+-b+", "+-c+")";if(0!==b||0!==c||d!==a.naturalWidth||e!==a.naturalHeight)a="CLIP"+v.Pl++,f=Bc(this, -"clipPath",{id:a}),f.appendChild(Bc(this,"rect",{x:b,y:c,width:d,height:e})),this.Jl.appendChild(f),m["clip-path"]="url(#"+a+")";Hc(this,"image",m,this.Ui,n);this.addElement("image",m)};g.fill=function(){Gc(this,"fill",this.path,this.Ui)};g.fillRect=function(a,b,c,d){Ic(this,"fill",[a,b,c,d],this.Ui)}; +g.drawImage=function(a,b,c,d,e,f,h,k,l){var m="";a instanceof HTMLCanvasElement&&(m=a.toDataURL());a instanceof HTMLImageElement&&(m=a.src);m={x:0,y:0,width:a.naturalWidth,height:a.naturalHeight,href:m};m.preserveAspectRatio=K.bb(d,k)&&K.bb(e,l)?"xMidYMid slice":"none";var n="";k/=d;l/=e;if(0!==f||0!==h)n+=" translate("+f+", "+h+")";if(1!==k||1!==l)n+=" scale("+k+", "+l+")";if(0!==b||0!==c)n+=" translate("+-b+", "+-c+")";if(0!==b||0!==c||d!==a.naturalWidth||e!==a.naturalHeight)a="CLIP"+v.Ql++,f=Bc(this, +"clipPath",{id:a}),f.appendChild(Bc(this,"rect",{x:b,y:c,width:d,height:e})),this.Kl.appendChild(f),m["clip-path"]="url(#"+a+")";Hc(this,"image",m,this.Ui,n);this.addElement("image",m)};g.fill=function(){Gc(this,"fill",this.path,this.Ui)};g.fillRect=function(a,b,c,d){Ic(this,"fill",[a,b,c,d],this.Ui)}; g.fillText=function(a,b,c){a=[a,b,c];b=this.textAlign;"left"===b?b="start":"right"===b?b="end":"center"===b&&(b="middle");b={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":b};Hc(this,"fill",b,this.Ui);this.addElement("text",b,a[0])};g.lineTo=function(a,b){this.path.push(["L",a,b])};g.moveTo=function(a,b){this.path.push(["M",a,b])};g.quadraticCurveTo=function(a,b,c,d){this.path.push(["Q",a,b,c,d])};g.rect=function(a,b,c,d){this.path.push(["M",a,b],["L",a+c,b],["L",a+c,b+d],["L",a,b+d],["z"])}; -g.restore=function(){this.Ui=this.stack.pop();this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle;this.font=a.font;this.globalAlpha=a.globalAlpha;this.lineCap=a.lineCap;this.$w=a.$w;this.lineJoin=a.lineJoin;this.lineWidth=a.lineWidth;this.miterLimit=a.miterLimit;this.shadowBlur=a.shadowBlur;this.shadowColor=a.shadowColor;this.shadowOffsetX=a.shadowOffsetX;this.shadowOffsetY=a.shadowOffsetY;this.strokeStyle=a.strokeStyle;this.textAlign=a.textAlign}; -g.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,$w:this.$w,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign});for(var a=[],b=0;bb.offset?1:-1});for(k=0;k=2*Math.PI?(Fc(a,b,c,d,e,e+Math.PI,h),Fc(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,f])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k===!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,f]))}}function Cc(a,b,c,d,e,f,h){var k=new yc;k.ff=[b,c,d,e,f,h];b={};Hc(a,"g",b,k);k=a.addElement("g",b);a.tf.push(k)} -g.$a=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+v.Pl++,b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,f,h;c=Bc(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",wL:this.shadowBlur/2});d=Bc(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=Bc(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});f=Bc(this,"feOffset",{"in":"comp",result:"offsetBlur", +c.stroke="rgb("+b[1]+","+b[2]+","+b[3]+")",c["stroke-opacity"]=b[4]):c.stroke=a.strokeStyle instanceof zc?Jc(a,a.strokeStyle):a.strokeStyle,c["stroke-width"]=a.lineWidth,c["stroke-linecap"]=a.lineCap,c["stroke-linejoin"]=a.lineJoin,c["stroke-miterlimit"]=a.miterLimit);d=d.gf;d="matrix("+d[0]+", "+d[1]+", "+d[2]+", "+d[3]+", "+d[4]+", "+d[5]+")";void 0!==e&&(d+=e);c.transform=d} +function Jc(a,b){var c="GRAD"+v.Ql++,d;if("linear"===b.type)d={x1:b.x1,x2:b.x2,y1:b.y1,y2:b.y2,id:c,gradientUnits:"userSpaceOnUse"},d=Bc(a,"linearGradient",d);else if("radial"===b.type)d={x1:b.x1,x2:b.x2,y1:b.y1,y2:b.y2,r1:b.r1,r2:b.r2,id:c},d=Bc(a,"radialGradient",d);else throw Error("invalid gradient");for(var e=b.OD,f=e.length,h=[],k=0;kb.offset?1:-1});for(k=0;k=2*Math.PI?(Fc(a,b,c,d,e,e+Math.PI,h),Fc(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,f])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k===!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,f]))}}function Cc(a,b,c,d,e,f,h){var k=new yc;k.gf=[b,c,d,e,f,h];b={};Hc(a,"g",b,k);k=a.addElement("g",b);a.tf.push(k)} +g.$a=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+v.Ql++,b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,f,h;c=Bc(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",wL:this.shadowBlur/2});d=Bc(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=Bc(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});f=Bc(this,"feOffset",{"in":"comp",result:"offsetBlur", dx:this.shadowOffsetX,dy:this.shadowOffsetY});h=Bc(this,"feMerge",{});h.appendChild(Bc(this,"feMergeNode",{"in":"offsetBlur"}));h.appendChild(Bc(this,"feMergeNode",{"in":"SourceGraphic"}));b.appendChild(c);b.appendChild(d);b.appendChild(e);b.appendChild(f);b.appendChild(h);0= -a)return 0;var b=K.dB;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);K.dB=b}return 1>a?(c=1/a,2E3>=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},D:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(f=(d-b)/(c-a)*(f-a)+b,f-e<=h&&h<=f+e)return!0}else return!0;else if(b-d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=f&&f<=h+e)return!0}else return!0;return!1},ww:function(a,b,c,d,e,f,h,k,l,m,n,p){if(K.Dd(a,b,h,k,p,c,d)&&K.Dd(a,b,h,k,p,e,f))return K.Dd(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+f)/2,u=(d+s)/2,x=(c+t)/2;return K.ww(a,b,q,r,d,c,u,x,l,m,n,p)||K.ww(u,x,s,t,e,f,h,k,l,m,n,p)},RG:function(a, -b,c,d,e,f,h,k,l){var m=(c+e)/2,n=(d+f)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+(f+k)/2)/2)/2;return l},QG:function(a,b,c,d,e,f,h,k){var l=(c+e)/2,m=(d+f)/2;return Ta(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(f+k)/2)/2)},No:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,h,k,l,c,d)&&K.Dd(a,b,h,k,l,e,f))Ya(m,a,b,0,0),Ya(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.No(a,b,n,p,d,c,s, -t,l,m);K.No(s,t,q,r,e,f,h,k,l,m)}return m},oe:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,h,k,l,c,d)&&K.Dd(a,b,h,k,l,e,f))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.oe(a,b,n,p,d,c,s,t,l,m);K.oe(s,t,q,r,e,f,h,k,l,m)}return m},rA:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,e,f,m,c,d))return K.Dd(a,b,e,f,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var q= -(n+c)/2,r=(p+d)/2;return K.rA(a,b,n,p,q,r,h,k,l,m)||K.rA(q,r,c,d,e,f,h,k,l,m)},oL:function(a,b,c,d,e,f,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+f)/2)/2;return h},qA:function(a,b,c,d,e,f,h,k){if(K.Dd(a,b,e,f,h,c,d))Ya(k,a,b,0,0),Ya(k,e,f,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var n=(l+c)/2,p=(m+d)/2;K.qA(a,b,l,m,n,p,h,k);K.qA(n,p,c,d,e,f,h,k)}return k},zp:function(a,b,c,d,e,f,h,k){if(K.Dd(a,b,e,f,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(f);else{var l=(a+c)/2,m=(b+ +var K={Da:4*((Math.sqrt(2)-1)/3),lk:(new w(0,0)).Fa(),Rx:(new z(0,0,0,0)).Fa(),Rp:(new cb(0,0,0,0)).Fa(),dG:(new cb(2,2,2,2)).Fa(),bG:(new w(6,6)).Fa(),YF:(new w(-Infinity,-Infinity)).Fa(),XF:(new w(Infinity,Infinity)).Fa(),Sp:(new ia(0,0)).Fa(),Ox:(new ia(1,1)).Fa(),Qp:(new ia(6,6)).Fa(),Lx:(new ia(8,8)).Fa(),cG:(new ia(10,10)).Fa(),eG:(new ia(Infinity,Infinity)).Fa(),ZF:(new w(NaN,NaN)).Fa(),cB:(new ia(NaN,NaN)).Fa(),$F:(new z(NaN,NaN,NaN,NaN)).Fa(),Px:new ua,hj:new ua,eB:null,sqrt:function(a){if(0>= +a)return 0;var b=K.eB;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);K.eB=b}return 1>a?(c=1/a,2E3>=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},D:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(f=(d-b)/(c-a)*(f-a)+b,f-e<=h&&h<=f+e)return!0}else return!0;else if(b-d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=f&&f<=h+e)return!0}else return!0;return!1},ww:function(a,b,c,d,e,f,h,k,l,m,n,p){if(K.Dd(a,b,h,k,p,c,d)&&K.Dd(a,b,h,k,p,e,f))return K.Dd(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+f)/2,u=(d+s)/2,x=(c+t)/2;return K.ww(a,b,q,r,d,c,u,x,l,m,n,p)||K.ww(u,x,s,t,e,f,h,k,l,m,n,p)},SG:function(a, +b,c,d,e,f,h,k,l){var m=(c+e)/2,n=(d+f)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+(f+k)/2)/2)/2;return l},RG:function(a,b,c,d,e,f,h,k){var l=(c+e)/2,m=(d+f)/2;return Ta(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(f+k)/2)/2)},No:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,h,k,l,c,d)&&K.Dd(a,b,h,k,l,e,f))Ya(m,a,b,0,0),Ya(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.No(a,b,n,p,d,c,s, +t,l,m);K.No(s,t,q,r,e,f,h,k,l,m)}return m},oe:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,h,k,l,c,d)&&K.Dd(a,b,h,k,l,e,f))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.oe(a,b,n,p,d,c,s,t,l,m);K.oe(s,t,q,r,e,f,h,k,l,m)}return m},sA:function(a,b,c,d,e,f,h,k,l,m){if(K.Dd(a,b,e,f,m,c,d))return K.Dd(a,b,e,f,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var q= +(n+c)/2,r=(p+d)/2;return K.sA(a,b,n,p,q,r,h,k,l,m)||K.sA(q,r,c,d,e,f,h,k,l,m)},oL:function(a,b,c,d,e,f,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+f)/2)/2;return h},rA:function(a,b,c,d,e,f,h,k){if(K.Dd(a,b,e,f,h,c,d))Ya(k,a,b,0,0),Ya(k,e,f,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var n=(l+c)/2,p=(m+d)/2;K.rA(a,b,l,m,n,p,h,k);K.rA(n,p,c,d,e,f,h,k)}return k},zp:function(a,b,c,d,e,f,h,k){if(K.Dd(a,b,e,f,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(f);else{var l=(a+c)/2,m=(b+ d)/2;c=(c+e)/2;d=(d+f)/2;var n=(l+c)/2,p=(m+d)/2;K.zp(a,b,l,m,n,p,h,k);K.zp(n,p,c,d,e,f,h,k)}return k},Rs:function(a,b,c,d,e,f,h,k,l,m,n,p,q,r){0>=q&&(q=1E-6);if(K.Dd(a,b,h,k,q,c,d)&&K.Dd(a,b,h,k,q,e,f)){var s=(a-h)*(m-p)-(b-k)*(l-n);if(0===s)return!1;q=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/s;s=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/s;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(h=l=0,bh)return!1}else if(ah)return!1;r.x=q;r.y=s;return!0}var s=(a+c)/2,t=(b+d)/2;c= (c+e)/2;d=(d+f)/2;e=(e+h)/2;f=(f+k)/2;var u=(s+c)/2,x=(t+d)/2;c=(c+e)/2;d=(d+f)/2;var y=(u+c)/2,A=(x+d)/2,B=(n-l)*(n-l)+(p-m)*(p-m),I=!1;K.Rs(a,b,s,t,u,x,y,A,l,m,n,p,q,r)&&(b=(r.x-l)*(r.x-l)+(r.y-m)*(r.y-m),b=q&&(q=1E-6);if(K.Dd(a,b,h,k,q,c,d)&&K.Dd(a,b,h,k,q,e,f)){q=(a-h)*(m-p)-(b-k)*(l-n);if(0===q)return r;var s=((a* k-b*h)*(l-n)-(a-h)*(l*p-m*n))/q,t=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/q;if(s>=n)return r;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(a=l=0,ba)return r}else if(aa)return r;0q&&r--}else{var s=(a+c)/2,t=(b+d)/2,u=(c+e)/2,x=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(s+u)/2;c=(t+x)/2;var u=(u+e)/2,x=(x+f)/2,y=(d+u)/2,A=(c+x)/2,r=r+K.Ss(a,b,s,t,d,c,y,A,l,m,n,p,q),r=r+K.Ss(y,A,u,x,e,f,h,k,l,m,n,p,q)}return r},cn:function(a,b,c,d,e,f,h){if(K.bb(a,c)){var k=0;c=0;b< d?(k=b,c=d):(k=d,c=b);d=f;if(dc)return h.x=a,h.y=c,!1;h.x=a;h.y=d;return!0}if(K.bb(b,d)){ac)return h.x=c,h.y=b,!1;h.x=d;h.y=b;return!0}k=((a-e)*(a-c)+(b-f)*(b-d))/((c-a)*(c-a)+(d-b)*(d-b));if(-5E-6>k)return h.x=a,h.y=b,!1;if(1.000005c)return l.x=a,l.y=c,!1;l.x=a;l.y=f;return!0}h=(d-b)/(c-a);if(K.bb(k,h))return K.cn(a,b,c,d,e,f,l),!1;e=(h*a-k*e+f-b)/(h-k);if(K.bb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}f=h*(e-a)+b;return K.cn(a,b,c,d,e,f,l)},PK:function(a,b,c,d,e){return K.hh(c.x,c.y,d.x,d.y,a.x,a.y,b.x, b.y,e)},AK:function(a,b,c,d,e,f,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);e(c>a?c-a:a-c)){q=1-(c-e)*(c-e)/(q*q);if(0>q)return l;q=Math.sqrt(q);d=-m*q+f;n(c,m*q+f);n(c,d)}else{c=(d-b)/(c-a);d=1/(q*q)+c*c/(m*m);k=2*c*(b-c*a)/(m*m)-2*c*f/(m*m)-2*e/(q*q);q=k*k-4*d*(2*c*a*f/(m*m)-2*b*f/(m*m)+f*f/(m*m)+ -e*e/(q*q)-1+(b-c*a)*(b-c*a)/(m*m));if(0>q)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q,c*q-c*a+b)}return l},sl:function(a,b,c,d,e,f,h,k,l){var m=1E21,n=a,p=b;if(K.hh(a,b,a,d,e,f,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-f)*(l.y-f);qm},Pw:function(a,b,c){var d=b.x,e=b.y,f=c.x,h=c.y,k=a.left,l=a.right,m=a.top,n=a.bottom;return d===f?(f=a=0,e=m):e===h?(d=k):a.Ga(b)||a.Ga(c)||K.Ow(k,m,l,m,d,e,f,h)||K.Ow(l,m,l,n,d,e,f,h)||K.Ow(l,n,k,n,d,e,f,h)||K.Ow(k,n,k,m,d,e,f,h)?!0:!1},Ow:function(a,b,c,d,e,f,h,k){return 0>=K.zw(a,b,c,d,e,f)*K.zw(a,b,c,d,h,k)&&0>=K.zw(e,f,h,k,a,b)*K.zw(e,f,h,k,c,d)},zw:function(a,b, -c,d,e,f){c-=a;d-=b;a=e-a;b=f-b;f=a*d-b*c;0===f&&(f=a*c+b*d,0f&&(f=0)));return 0>f?-1:0a&&(a+=360);360<=a&&(a-=360);return a},WD:function(a,b,c,d,e,f){var h=Math.PI;f||(d*=h/180,e*=h/180);f=dc,f=0>d,h=0,k=h=0;aq)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q,c*q-c*a+b)}return l},tl:function(a,b,c,d,e,f,h,k,l){var m=1E21,n=a,p=b;if(K.hh(a,b,a,d,e,f,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-f)*(l.y-f);qm},Qw:function(a,b,c){var d=b.x,e=b.y,f=c.x,h=c.y,k=a.left,l=a.right,m=a.top,n=a.bottom;return d===f?(f=a=0,e=m):e===h?(d=k):a.Ga(b)||a.Ga(c)||K.Pw(k,m,l,m,d,e,f,h)||K.Pw(l,m,l,n,d,e,f,h)||K.Pw(l,n,k,n,d,e,f,h)||K.Pw(k,n,k,m,d,e,f,h)?!0:!1},Pw:function(a,b,c,d,e,f,h,k){return 0>=K.zw(a,b,c,d,e,f)*K.zw(a,b,c,d,h,k)&&0>=K.zw(e,f,h,k,a,b)*K.zw(e,f,h,k,c,d)},zw:function(a,b, +c,d,e,f){c-=a;d-=b;a=e-a;b=f-b;f=a*d-b*c;0===f&&(f=a*c+b*d,0f&&(f=0)));return 0>f?-1:0a&&(a+=360);360<=a&&(a-=360);return a},XD:function(a,b,c,d,e,f){var h=Math.PI;f||(d*=h/180,e*=h/180);f=dc,f=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+f),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=f*c/(b+f)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,ea?"M"+this.Aa.toString()+" "+this.xa.toString()+"L"+this.I.toString()+" "+this.J.toString():"M"+this.Aa.toFixed(a)+" "+this.xa.toFixed(a)+"L"+this.I.toFixed(a)+" "+this.J.toFixed(a);case Zc:var b=new z(this.Aa,this.xa,0,0);b.OF(this.I,this.J,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ -"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case $c:b=new z(this.Aa,this.xa,0,0);b.OF(this.I,this.J,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ +Oc.prototype.toString=function(a){void 0===a&&(a=-1);switch(this.type){case Yc:return 0>a?"M"+this.Aa.toString()+" "+this.xa.toString()+"L"+this.I.toString()+" "+this.J.toString():"M"+this.Aa.toFixed(a)+" "+this.xa.toFixed(a)+"L"+this.I.toFixed(a)+" "+this.J.toFixed(a);case Zc:var b=new z(this.Aa,this.xa,0,0);b.PF(this.I,this.J,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ +"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case $c:b=new z(this.Aa,this.xa,0,0);b.PF(this.I,this.J,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ 2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+d+"A"+(b.width/2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+c;case Pc:for(var b="",c=this.Wb.n,d=c.length,e=0;e=t-1?!0:null!==l[m+1].match(/[A-Za-z]/)}function d(){m++;return l[m]}function e(){var a=new w(parseFloat(d()),parseFloat(d()));n===n.toLowerCase()&&(a.x=s.x+a.x,a.y=s.y+a.y);return a}function f(){return s=e()}function h(){return r=e()}function k(){return"c"!==p.toLowerCase()&&"s"!==p.toLowerCase()?s:new w(2*s.x-r.x,2*s.y-r.y)}void 0===b&&(b=!1);"string"!==typeof a&&v.Ed(a,"string",Oc,"parse:str");a=a.replace(/,/gm," ");a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm, @@ -208,14 +208,14 @@ Oc.parse=dd=function(a,b){function c(){return m>=t-1?!0:null!==l[m+1].match(/[A- case "C":for(;!c();){var I=e(),D=h(),B=f();O(u,I.x,I.y,D.x,D.y,B.x,B.y)}break;case "S":for(;!c();)I=k(),D=h(),B=f(),O(u,I.x,I.y,D.x,D.y,B.x,B.y);break;case "Q":for(;!c();)D=h(),B=f(),ed(u,D.x,D.y,B.x,B.y);break;case "T":for(;!c();)r=D=k(),B=f(),ed(u,D.x,D.y,B.x,B.y);break;case "B":for(;!c();){var B=parseFloat(d()),I=parseFloat(d()),D=parseFloat(d()),U=parseFloat(d()),ba=parseFloat(d()),V=ba,M=!1;c()||(V=parseFloat(d()),c()||(M=0!==parseFloat(d())));n===n.toLowerCase()&&(D+=s.x,U+=s.y);u.arcTo(B,I, D,U,ba,V,M)}break;case "A":for(;!c();)I=Math.abs(parseFloat(d())),D=Math.abs(parseFloat(d())),U=parseFloat(d()),ba=!!parseFloat(d()),V=!!parseFloat(d()),B=f(),fd(u,I,D,U,ba,V,B.x,B.y);break;case "Z":B=u.o.Wb.n[u.o.Wb.length-1];P(u);s=q;break;case "F":B="";for(I=1;l[m+I];)if(null!==l[m+I].match(/[Uu]/))I++;else if(null===l[m+I].match(/[A-Za-z]/))I++;else{B=l[m+I];break}B.match(/[Mm]/)?x=!0:od(u);break;case "U":B="";for(I=1;l[m+I];)if(null!==l[m+I].match(/[Ff]/))I++;else if(null===l[m+I].match(/[A-Za-z]/))I++; else{B=l[m+I];break}B.match(/[Mm]/)?y=!0:u.$a(!1)}q=u.o;v.s(u);if(b)for(u=q.Wb.i;u.next();)B=u.value,B.tt=!0;return q};function pd(a,b){for(var c=a.length,d=v.M(),e=0;eh&&(h+=360),s.we+=h);0>a&&(s.we=180-s.we,s.Af=-s.Af);0>d&&(s.we=-s.we,s.Af=-s.Af);s.radiusX*=Math.sqrt(a*a+c*c);void 0!==s.radiusY&&(s.radiusY*=Math.sqrt(b*b+d*d));break;case vd:h=s.I;k=s.J;s.I=h* -a+k*c+e;s.J=h*b+k*d+f;0!==b&&(h=180*Math.atan2(b,a)/Math.PI,0>h&&(h+=360),s.gj+=h);0>a&&(s.gj=180-s.gj,s.wl=!s.wl);0>d&&(s.gj=-s.gj,s.wl=!s.wl);s.radiusX*=Math.sqrt(a*a+c*c);s.radiusY*=Math.sqrt(b*b+d*d);break;default:v.k("Unknown Segment type: "+s.type)}}}}this.ab=!0;return this}; +a+k*c+e;s.J=h*b+k*d+f;0!==b&&(h=180*Math.atan2(b,a)/Math.PI,0>h&&(h+=360),s.gj+=h);0>a&&(s.gj=180-s.gj,s.xl=!s.xl);0>d&&(s.gj=-s.gj,s.xl=!s.xl);s.radiusX*=Math.sqrt(a*a+c*c);s.radiusY*=Math.sqrt(b*b+d*d);break;default:v.k("Unknown Segment type: "+s.type)}}}}this.ab=!0;return this}; Oc.prototype.Ga=function(a,b,c,d){var e=a.x,f=a.y,h=this.rb.x-20;a=a.y;for(var k=0,l=0,m=0,n=0,p=0,q=0,r=this.Wb.n,s=r.length,t=0;t=a)return 0;if((e>h?e-h:h-e)<(f>k?f-k:k-f)){if(e=a=0,fe)return 0}else if(ee)return 0;return 0a)return n=(a-q)/p,v.ta(c),new w(b+(e-b)*n,d+(f-d)*n);q+=p}b=e;d=f}v.ta(c);return null};v.defineProperty(Oc,{type:"type"},function(){return this.ja},function(a){this.ja!==a&&(this.F&&v.la(this,a),this.ja=a,this.ab=!0)});v.defineProperty(Oc,{Aa:"startX"},function(){return this.vc},function(a){this.vc!==a&&(this.F&&v.la(this,a),this.vc=a,this.ab=!0)}); v.defineProperty(Oc,{xa:"startY"},function(){return this.Ac},function(a){this.Ac!==a&&(this.F&&v.la(this,a),this.Ac=a,this.ab=!0)});v.defineProperty(Oc,{I:"endX"},function(){return this.yb},function(a){this.yb!==a&&(this.F&&v.la(this,a),this.yb=a,this.ab=!0)});v.defineProperty(Oc,{J:"endY"},function(){return this.Db},function(a){this.Db!==a&&(this.F&&v.la(this,a),this.Db=a,this.ab=!0)}); v.defineProperty(Oc,{Wb:"figures"},function(){return this.mj},function(a){this.mj!==a&&(this.F&&v.la(this,a),this.mj=a,this.ab=!0)});Oc.prototype.add=Oc.prototype.add=function(a){this.mj.add(a);return this};v.defineProperty(Oc,{B:"spot1"},function(){return this.Ji},function(a){this.F&&v.la(this,a);this.Ji=a.S()});v.defineProperty(Oc,{C:"spot2"},function(){return this.Ki},function(a){this.F&&v.la(this,a);this.Ki=a.S()}); -v.defineProperty(Oc,{Md:"defaultStretch"},function(){return this.pi},function(a){this.F&&v.la(this,a);this.pi=a});v.u(Oc,{rb:"bounds"},function(){this.Xz()&&(this.TA(),this.Yg());return this.Gu});function Qc(a,b,c,d){v.ec(this);this.F=!1;void 0===c&&(c=!0);this.$l=c;void 0===d&&(d=!0);this.$n=d;this.vc=void 0!==a?a:0;this.Ac=void 0!==b?b:0;this.wo=new H(Ed);this.Vv=this.wo.G;this.ab=!0}v.ea("PathFigure",Qc);v.Xh(Qc); -Qc.prototype.copy=function(){var a=new Qc;a.$l=this.$l;a.$n=this.$n;a.vc=this.vc;a.Ac=this.Ac;for(var b=this.wo.n,c=b.length,d=a.wo,e=0;ea?"M"+this.Aa.toString()+" "+this.xa.toString():"M"+this.Aa.toFixed(a)+" "+this.xa.toFixed(a),c=this.wb.n,d=c.length,e=0;ea&&(a+=360),this.vd=a,this.Ie=0,this.Sg=Math.max(d,0),this.kg=Math.max(e,0),this.fo="boolean"===typeof h?!!h:!1,this.xn=!!k):(this.vd=d,this.Ie=e,a===ud&&(f=Math.max(f,0)),this.Sg=f,"number"===typeof h?(a===ud&&(h=Math.max(h,0)),this.kg=h):this.kg=0,this.xn=this.fo=!1);this.Gh=!1;this.ab= !0;this.ag=null}v.ea("PathSegment",Ed);v.Xh(Ed);Ed.prototype.copy=function(){var a=new Ed;a.ja=this.ja;a.yb=this.yb;a.Db=this.Db;a.vd=this.vd;a.Ie=this.Ie;a.Sg=this.Sg;a.kg=this.kg;a.fo=this.fo;a.xn=this.xn;a.Gh=this.Gh;a.ab=this.ab;return a}; -Ed.prototype.equalsApprox=Ed.prototype.od=function(a){if(!(a instanceof Ed)||this.type!==a.type||this.Rw!==a.Rw)return!1;switch(this.type){case rd:case bd:return K.D(this.I,a.I)&&K.D(this.J,a.J);case sd:return K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.rc,a.rc)&&K.D(this.Jc,a.Jc)&&K.D(this.nh,a.nh)&&K.D(this.oh,a.oh);case td:return K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.rc,a.rc)&&K.D(this.Jc,a.Jc);case ud:return K.D(this.we,a.we)&&K.D(this.Af,a.Af)&&K.D(this.oa,a.oa)&&K.D(this.va,a.va)&&K.D(this.radiusX, -a.radiusX)&&K.D(this.radiusY,a.radiusY);case vd:return this.wl===a.wl&&this.Uw===a.Uw&&K.D(this.gj,a.gj)&&K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.radiusX,a.radiusX)&&K.D(this.radiusY,a.radiusY);default:return!1}}; +Ed.prototype.equalsApprox=Ed.prototype.od=function(a){if(!(a instanceof Ed)||this.type!==a.type||this.Sw!==a.Sw)return!1;switch(this.type){case rd:case bd:return K.D(this.I,a.I)&&K.D(this.J,a.J);case sd:return K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.rc,a.rc)&&K.D(this.Jc,a.Jc)&&K.D(this.nh,a.nh)&&K.D(this.oh,a.oh);case td:return K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.rc,a.rc)&&K.D(this.Jc,a.Jc);case ud:return K.D(this.we,a.we)&&K.D(this.Af,a.Af)&&K.D(this.oa,a.oa)&&K.D(this.va,a.va)&&K.D(this.radiusX, +a.radiusX)&&K.D(this.radiusY,a.radiusY);case vd:return this.xl===a.xl&&this.Vw===a.Vw&&K.D(this.gj,a.gj)&&K.D(this.I,a.I)&&K.D(this.J,a.J)&&K.D(this.radiusX,a.radiusX)&&K.D(this.radiusY,a.radiusY);default:return!1}}; Ed.prototype.toString=function(a){void 0===a&&(a=-1);var b="";switch(this.type){case rd:b=0>a?"M"+this.I.toString()+" "+this.J.toString():"M"+this.I.toFixed(a)+" "+this.J.toFixed(a);break;case bd:b=0>a?"L"+this.I.toString()+" "+this.J.toString():"L"+this.I.toFixed(a)+" "+this.J.toFixed(a);break;case sd:b=0>a?"C"+this.rc.toString()+" "+this.Jc.toString()+" "+this.nh.toString()+" "+this.oh.toString()+" "+this.I.toString()+" "+this.J.toString():"C"+this.rc.toFixed(a)+" "+this.Jc.toFixed(a)+" "+this.nh.toFixed(a)+ " "+this.oh.toFixed(a)+" "+this.I.toFixed(a)+" "+this.J.toFixed(a);break;case td:b=0>a?"Q"+this.rc.toString()+" "+this.Jc.toString()+" "+this.I.toString()+" "+this.J.toString():"Q"+this.rc.toFixed(a)+" "+this.Jc.toFixed(a)+" "+this.I.toFixed(a)+" "+this.J.toFixed(a);break;case ud:b=0>a?"B"+this.we.toString()+" "+this.Af.toString()+" "+this.oa.toString()+" "+this.va.toString()+" "+this.radiusX:"B"+this.we.toFixed(a)+" "+this.Af.toFixed(a)+" "+this.oa.toFixed(a)+" "+this.va.toFixed(a)+" "+this.radiusX; -break;case vd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.gj.toString()+" "+(this.Uw?1:0)+" "+(this.wl?1:0)+" "+this.I.toString()+" "+this.J.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.gj.toFixed(a)+" "+(this.Uw?1:0)+" "+(this.wl?1:0)+" "+this.I.toFixed(a)+" "+this.J.toFixed(a);break;default:b=this.type.toString()}return b+(this.Gh?"z":"")};var rd;Ed.Move=rd=v.p(Ed,"Move",0);var bd;Ed.Line=bd=v.p(Ed,"Line",1);var sd; +break;case vd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.gj.toString()+" "+(this.Vw?1:0)+" "+(this.xl?1:0)+" "+this.I.toString()+" "+this.J.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.gj.toFixed(a)+" "+(this.Vw?1:0)+" "+(this.xl?1:0)+" "+this.I.toFixed(a)+" "+this.J.toFixed(a);break;default:b=this.type.toString()}return b+(this.Gh?"z":"")};var rd;Ed.Move=rd=v.p(Ed,"Move",0);var bd;Ed.Line=bd=v.p(Ed,"Line",1);var sd; Ed.Bezier=sd=v.p(Ed,"Bezier",2);var td;Ed.QuadraticBezier=td=v.p(Ed,"QuadraticBezier",3);var ud;Ed.Arc=ud=v.p(Ed,"Arc",4);var vd;Ed.SvgArc=vd=v.p(Ed,"SvgArc",4);Ed.prototype.freeze=function(){this.F=!0;return this};Ed.prototype.Oa=function(){this.F=!1;return this};Ed.prototype.close=Ed.prototype.close=function(){this.Gh=!0;return this}; -function wd(a,b){if(null!==a.ag&&!1===b.ab)return a.ag;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);if(0===c||0===d)return a.ag=[],a.ag;var e=a.vd,f=a.Ie,h=K.WD(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=K.WD(0,0,b>h?b:h,p,p+k,!0);h=v.sh();h.reset();h.translate(c,d);h.rotate(a.vd,0,0);h.scale(m,s);pd(b,h);v.af(h);a.ag=b;return a.ag} -v.defineProperty(Ed,{Rw:"isClosed"},function(){return this.Gh},function(a){this.Gh!==a&&(this.Gh=a,this.ab=!0)});v.defineProperty(Ed,{type:"type"},function(){return this.ja},function(a){this.F&&v.la(this,a);this.ja=a;this.ab=!0});v.defineProperty(Ed,{I:"endX"},function(){return this.yb},function(a){this.F&&v.la(this,a);this.yb=a;this.ab=!0});v.defineProperty(Ed,{J:"endY"},function(){return this.Db},function(a){this.F&&v.la(this,a);this.Db=a;this.ab=!0}); +s*s));isNaN(t)&&(t=0);l=t*b*k/h;t=t*-h*s/b;isNaN(l)&&(l=0);isNaN(t)&&(t=0);c=(c+n)/2+q*l-r*t;d=(d+p)/2+r*l+q*t;p=e(1,0,(s-l)/b,(k-t)/h);q=(s-l)/b;n=(k-t)/h;s=(-s-l)/b;l=(-k-t)/h;k=e(q,n,s,l);s=f(q,n,s,l);-1>=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=K.XD(0,0,b>h?b:h,p,p+k,!0);h=v.sh();h.reset();h.translate(c,d);h.rotate(a.vd,0,0);h.scale(m,s);pd(b,h);v.bf(h);a.ag=b;return a.ag} +v.defineProperty(Ed,{Sw:"isClosed"},function(){return this.Gh},function(a){this.Gh!==a&&(this.Gh=a,this.ab=!0)});v.defineProperty(Ed,{type:"type"},function(){return this.ja},function(a){this.F&&v.la(this,a);this.ja=a;this.ab=!0});v.defineProperty(Ed,{I:"endX"},function(){return this.yb},function(a){this.F&&v.la(this,a);this.yb=a;this.ab=!0});v.defineProperty(Ed,{J:"endY"},function(){return this.Db},function(a){this.F&&v.la(this,a);this.Db=a;this.ab=!0}); v.defineProperty(Ed,{rc:"point1X"},function(){return this.vd},function(a){this.F&&v.la(this,a);this.vd=a;this.ab=!0});v.defineProperty(Ed,{Jc:"point1Y"},function(){return this.Ie},function(a){this.F&&v.la(this,a);this.Ie=a;this.ab=!0});v.defineProperty(Ed,{nh:"point2X"},function(){return this.Sg},function(a){this.F&&v.la(this,a);this.Sg=a;this.ab=!0});v.defineProperty(Ed,{oh:"point2Y"},function(){return this.kg},function(a){this.F&&v.la(this,a);this.kg=a;this.ab=!0}); v.defineProperty(Ed,{oa:"centerX"},function(){return this.vd},function(a){this.F&&v.la(this,a);this.vd=a;this.ab=!0});v.defineProperty(Ed,{va:"centerY"},function(){return this.Ie},function(a){this.F&&v.la(this,a);this.Ie=a;this.ab=!0});v.defineProperty(Ed,{radiusX:"radiusX"},function(){return this.Sg},function(a){0>a&&v.wa(a,">= zero",Ed,"radiusX");this.F&&v.la(this,a);this.Sg=a;this.ab=!0}); v.defineProperty(Ed,{radiusY:"radiusY"},function(){return this.kg},function(a){0>a&&v.wa(a,">= zero",Ed,"radiusY");this.F&&v.la(this,a);this.kg=a;this.ab=!0});v.defineProperty(Ed,{we:"startAngle"},function(){return this.yb},function(a){this.yb!==a&&(this.F&&v.la(this,a),a%=360,0>a&&(a+=360),this.yb=a,this.ab=!0)});v.defineProperty(Ed,{Af:"sweepAngle"},function(){return this.Db},function(a){this.F&&v.la(this,a);360a&&(a=-360);this.Db=a;this.ab=!0}); -v.defineProperty(Ed,{wl:"isClockwiseArc"},function(){return this.xn},function(a){this.F&&v.la(this,a);this.xn=a;this.ab=!0});v.defineProperty(Ed,{Uw:"isLargeArc"},function(){return this.fo},function(a){this.F&&v.la(this,a);this.fo=a;this.ab=!0});v.defineProperty(Ed,{gj:"xAxisRotation"},function(){return this.vd},function(a){a%=360;0>a&&(a+=360);this.F&&v.la(this,a);this.vd=a;this.ab=!0}); -function Fd(){this.U=null;this.lz=(new w(0,0)).freeze();this.sy=(new w(0,0)).freeze();this.Cu=this.yv=0;this.Du=1;this.nv="";this.iw=this.Su=!1;this.Ou=this.Fu=0;this.ij=this.$u=this.jv=!1;this.Hq=null;this.gw=0;this.lg=this.ew=null}v.ea("InputEvent",Fd); -Fd.prototype.copy=function(){var a=new Fd;a.U=this.U;a.lz.assign(this.lf);a.sy.assign(this.da);a.yv=this.yv;a.Cu=this.Cu;a.Du=this.Du;a.nv=this.nv;a.Su=this.Su;a.iw=this.iw;a.Fu=this.Fu;a.Ou=this.Ou;a.jv=this.jv;a.$u=this.$u;a.ij=this.ij;a.Hq=this.Hq;a.gw=this.gw;a.ew=this.ew;a.lg=this.lg;return a}; -Fd.prototype.toString=function(){var a="^";0!==this.sd&&(a+="M:"+this.sd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.Ye&&(a+="C:"+this.Ye);0!==this.kl&&(a+="D:"+this.kl);this.Ec&&(a+="h");this.bubbles&&(a+="b");null!==this.da&&(a+="@"+this.da.toString());return a};v.defineProperty(Fd,{g:"diagram"},function(){return this.U},function(a){this.U=a});v.defineProperty(Fd,{lf:"viewPoint"},function(){return this.lz},function(a){v.A(a,w,Fd,"viewPoint");this.lz.assign(a)}); -v.defineProperty(Fd,{da:"documentPoint"},function(){return this.sy},function(a){v.A(a,w,Fd,"documentPoint");this.sy.assign(a)});v.defineProperty(Fd,{sd:"modifiers"},function(){return this.yv},function(a){this.yv=a});v.defineProperty(Fd,{button:"button"},function(){return this.Cu},function(a){this.Cu=a;if(null===this.event)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}); +v.defineProperty(Ed,{xl:"isClockwiseArc"},function(){return this.xn},function(a){this.F&&v.la(this,a);this.xn=a;this.ab=!0});v.defineProperty(Ed,{Vw:"isLargeArc"},function(){return this.fo},function(a){this.F&&v.la(this,a);this.fo=a;this.ab=!0});v.defineProperty(Ed,{gj:"xAxisRotation"},function(){return this.vd},function(a){a%=360;0>a&&(a+=360);this.F&&v.la(this,a);this.vd=a;this.ab=!0}); +function Fd(){this.U=null;this.mz=(new w(0,0)).freeze();this.ty=(new w(0,0)).freeze();this.Cu=this.yv=0;this.Du=1;this.nv="";this.iw=this.Su=!1;this.Ou=this.Fu=0;this.ij=this.$u=this.jv=!1;this.Hq=null;this.gw=0;this.lg=this.ew=null}v.ea("InputEvent",Fd); +Fd.prototype.copy=function(){var a=new Fd;a.U=this.U;a.mz.assign(this.mf);a.ty.assign(this.da);a.yv=this.yv;a.Cu=this.Cu;a.Du=this.Du;a.nv=this.nv;a.Su=this.Su;a.iw=this.iw;a.Fu=this.Fu;a.Ou=this.Ou;a.jv=this.jv;a.$u=this.$u;a.ij=this.ij;a.Hq=this.Hq;a.gw=this.gw;a.ew=this.ew;a.lg=this.lg;return a}; +Fd.prototype.toString=function(){var a="^";0!==this.sd&&(a+="M:"+this.sd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.Ye&&(a+="C:"+this.Ye);0!==this.kl&&(a+="D:"+this.kl);this.Ec&&(a+="h");this.bubbles&&(a+="b");null!==this.da&&(a+="@"+this.da.toString());return a};v.defineProperty(Fd,{g:"diagram"},function(){return this.U},function(a){this.U=a});v.defineProperty(Fd,{mf:"viewPoint"},function(){return this.mz},function(a){v.A(a,w,Fd,"viewPoint");this.mz.assign(a)}); +v.defineProperty(Fd,{da:"documentPoint"},function(){return this.ty},function(a){v.A(a,w,Fd,"documentPoint");this.ty.assign(a)});v.defineProperty(Fd,{sd:"modifiers"},function(){return this.yv},function(a){this.yv=a});v.defineProperty(Fd,{button:"button"},function(){return this.Cu},function(a){this.Cu=a;if(null===this.event)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}); v.defineProperty(Fd,{buttons:"buttons"},function(){return this.Du},function(a){this.Du=a});v.defineProperty(Fd,{key:"key"},function(){return this.nv},function(a){this.nv=a});v.defineProperty(Fd,{ml:"down"},function(){return this.Su},function(a){this.Su=a});v.defineProperty(Fd,{up:"up"},function(){return this.iw},function(a){this.iw=a});v.defineProperty(Fd,{Ye:"clickCount"},function(){return this.Fu},function(a){this.Fu=a}); v.defineProperty(Fd,{kl:"delta"},function(){return this.Ou},function(a){this.Ou=a});v.defineProperty(Fd,{vt:"isMultiTouch"},function(){return this.jv},function(a){this.jv=a});v.defineProperty(Fd,{Ec:"handled"},function(){return this.$u},function(a){this.$u=a});v.defineProperty(Fd,{bubbles:"bubbles"},function(){return this.ij},function(a){this.ij=a});v.defineProperty(Fd,{event:"event"},function(){return this.Hq},function(a){this.Hq=a}); v.u(Fd,{Zi:"isTouchEvent"},function(){var a=window.TouchEvent;return a&&this.event instanceof a?!0:(a=window.PointerEvent)&&this.event instanceof a&&"touch"===this.event.pointerType});v.u(Fd,{fk:"isMac"},function(){return v.fk});v.defineProperty(Fd,{timestamp:"timestamp"},function(){return this.gw},function(a){this.gw=a});v.defineProperty(Fd,{Cg:"targetDiagram"},function(){return this.ew},function(a){this.ew=a}); v.defineProperty(Fd,{xe:"targetObject"},function(){return this.lg},function(a){this.lg=a});v.defineProperty(Fd,{control:"control"},function(){return 0!==(this.sd&1)},function(a){this.sd=a?this.sd|1:this.sd&-2});v.defineProperty(Fd,{shift:"shift"},function(){return 0!==(this.sd&4)},function(a){this.sd=a?this.sd|4:this.sd&-5});v.defineProperty(Fd,{alt:"alt"},function(){return 0!==(this.sd&2)},function(a){this.sd=a?this.sd|2:this.sd&-3}); v.defineProperty(Fd,{Ft:"meta"},function(){return 0!==(this.sd&8)},function(a){this.sd=a?this.sd|8:this.sd&-9});v.defineProperty(Fd,{left:"left"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?0===this.button:0!==(this.buttons&1)},function(a){this.buttons=a?this.buttons|1:this.buttons&-2}); v.defineProperty(Fd,{right:"right"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?2===this.button:0!==(this.buttons&2)},function(a){this.buttons=a?this.buttons|2:this.buttons&-3});v.defineProperty(Fd,{YK:"middle"},function(){var a=this.event;return null!==a&&a instanceof MouseEvent&&("mousedown"===a.type||"mouseup"===a.type)?1===this.button:0!==(this.buttons&4)},function(a){this.buttons=a?this.buttons|4:this.buttons&-5}); -function Gd(){this.U=null;this.Pb="";this.Hv=this.aw=null;this.Eu=!1}v.ea("DiagramEvent",Gd);Gd.prototype.copy=function(){var a=new Gd;a.U=this.U;a.Pb=this.Pb;a.aw=this.aw;a.Hv=this.Hv;a.Eu=this.Eu;return a};Gd.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.LA&&(a+=":"+this.LA.toString());null!==this.pA&&(a+="("+this.pA.toString()+")");return a};v.defineProperty(Gd,{g:"diagram"},function(){return this.U},function(a){this.U=a}); -v.defineProperty(Gd,{name:"name"},function(){return this.Pb},function(a){this.Pb=a});v.defineProperty(Gd,{LA:"subject"},function(){return this.aw},function(a){this.aw=a});v.defineProperty(Gd,{pA:"parameter"},function(){return this.Hv},function(a){this.Hv=a});v.defineProperty(Gd,{cancel:"cancel"},function(){return this.Eu},function(a){this.Eu=a});function Hd(){this.fq=Id;this.sm=this.xv="";this.Cr=this.Dr=this.Gr=this.Hr=this.Fr=this.U=this.Vd=null}v.ea("ChangedEvent",Hd);var Jd; +function Gd(){this.U=null;this.Pb="";this.Hv=this.aw=null;this.Eu=!1}v.ea("DiagramEvent",Gd);Gd.prototype.copy=function(){var a=new Gd;a.U=this.U;a.Pb=this.Pb;a.aw=this.aw;a.Hv=this.Hv;a.Eu=this.Eu;return a};Gd.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.MA&&(a+=":"+this.MA.toString());null!==this.qA&&(a+="("+this.qA.toString()+")");return a};v.defineProperty(Gd,{g:"diagram"},function(){return this.U},function(a){this.U=a}); +v.defineProperty(Gd,{name:"name"},function(){return this.Pb},function(a){this.Pb=a});v.defineProperty(Gd,{MA:"subject"},function(){return this.aw},function(a){this.aw=a});v.defineProperty(Gd,{qA:"parameter"},function(){return this.Hv},function(a){this.Hv=a});v.defineProperty(Gd,{cancel:"cancel"},function(){return this.Eu},function(a){this.Eu=a});function Hd(){this.fq=Id;this.tm=this.xv="";this.Cr=this.Dr=this.Gr=this.Hr=this.Fr=this.U=this.Vd=null}v.ea("ChangedEvent",Hd);var Jd; Hd.Transaction=Jd=v.p(Hd,"Transaction",-1);var Id;Hd.Property=Id=v.p(Hd,"Property",0);var Kd;Hd.Insert=Kd=v.p(Hd,"Insert",1);var Ld;Hd.Remove=Ld=v.p(Hd,"Remove",2);Hd.prototype.clear=Hd.prototype.clear=function(){this.Cr=this.Dr=this.Gr=this.Hr=this.Fr=this.U=this.Vd=null}; -Hd.prototype.copy=function(){var a=new Hd;a.fq=this.fq;a.xv=this.xv;a.sm=this.sm;a.Vd=this.Vd;a.U=this.U;a.Fr=this.Fr;var b=this.Hr;a.Hr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Gr;a.Gr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Dr;a.Dr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Cr;a.Cr=v.Ta(b)&&"function"===typeof b.S?b.S():b;return a}; -Hd.prototype.toString=function(){var a="",a=this.wc===Jd?a+"* ":this.wc===Id?a+(null!==this.ca?"!m":"!d"):a+((null!==this.ca?"!m":"!d")+this.wc);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.jf&&this.jf!==this.propertyName&&(a+=" "+this.jf);a+=": ";this.wc===Jd?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=Md(this.object)),null!==this.oldValue&&(a+=" old: "+Md(this.oldValue)),null!==this.zg&&(a+=" "+this.zg),null!==this.newValue&& -(a+=" new: "+Md(this.newValue)),null!==this.xg&&(a+=" "+this.xg));return a};Hd.prototype.getValue=Hd.prototype.ka=function(a){return a?this.oldValue:this.newValue};Hd.prototype.getParam=function(a){return a?this.zg:this.xg};Hd.prototype.canUndo=Hd.prototype.canUndo=function(){return null!==this.ca||null!==this.g?!0:!1};Hd.prototype.undo=Hd.prototype.undo=function(){this.canUndo()&&(null!==this.ca?this.ca.Im(this,!0):null!==this.g&&this.g.Im(this,!0))}; -Hd.prototype.canRedo=Hd.prototype.canRedo=function(){return null!==this.ca||null!==this.g?!0:!1};Hd.prototype.redo=Hd.prototype.redo=function(){this.canRedo()&&(null!==this.ca?this.ca.Im(this,!1):null!==this.g&&this.g.Im(this,!1))};v.defineProperty(Hd,{ca:"model"},function(){return this.Vd},function(a){this.Vd=a});v.defineProperty(Hd,{g:"diagram"},function(){return this.U},function(a){this.U=a});v.defineProperty(Hd,{wc:"change"},function(){return this.fq},function(a){this.fq=a}); -v.defineProperty(Hd,{jf:"modelChange"},function(){return this.xv},function(a){this.xv=a});v.defineProperty(Hd,{propertyName:"propertyName"},function(){return this.sm},function(a){this.sm=a});v.u(Hd,{JE:"isTransactionFinished"},function(){return this.fq===Jd&&("CommittedTransaction"===this.sm||"FinishedUndo"===this.sm||"FinishedRedo"===this.sm)});v.defineProperty(Hd,{object:"object"},function(){return this.Fr},function(a){this.Fr=a}); +Hd.prototype.copy=function(){var a=new Hd;a.fq=this.fq;a.xv=this.xv;a.tm=this.tm;a.Vd=this.Vd;a.U=this.U;a.Fr=this.Fr;var b=this.Hr;a.Hr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Gr;a.Gr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Dr;a.Dr=v.Ta(b)&&"function"===typeof b.S?b.S():b;b=this.Cr;a.Cr=v.Ta(b)&&"function"===typeof b.S?b.S():b;return a}; +Hd.prototype.toString=function(){var a="",a=this.wc===Jd?a+"* ":this.wc===Id?a+(null!==this.ca?"!m":"!d"):a+((null!==this.ca?"!m":"!d")+this.wc);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.kf&&this.kf!==this.propertyName&&(a+=" "+this.kf);a+=": ";this.wc===Jd?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=Md(this.object)),null!==this.oldValue&&(a+=" old: "+Md(this.oldValue)),null!==this.zg&&(a+=" "+this.zg),null!==this.newValue&& +(a+=" new: "+Md(this.newValue)),null!==this.xg&&(a+=" "+this.xg));return a};Hd.prototype.getValue=Hd.prototype.ka=function(a){return a?this.oldValue:this.newValue};Hd.prototype.getParam=function(a){return a?this.zg:this.xg};Hd.prototype.canUndo=Hd.prototype.canUndo=function(){return null!==this.ca||null!==this.g?!0:!1};Hd.prototype.undo=Hd.prototype.undo=function(){this.canUndo()&&(null!==this.ca?this.ca.Jm(this,!0):null!==this.g&&this.g.Jm(this,!0))}; +Hd.prototype.canRedo=Hd.prototype.canRedo=function(){return null!==this.ca||null!==this.g?!0:!1};Hd.prototype.redo=Hd.prototype.redo=function(){this.canRedo()&&(null!==this.ca?this.ca.Jm(this,!1):null!==this.g&&this.g.Jm(this,!1))};v.defineProperty(Hd,{ca:"model"},function(){return this.Vd},function(a){this.Vd=a});v.defineProperty(Hd,{g:"diagram"},function(){return this.U},function(a){this.U=a});v.defineProperty(Hd,{wc:"change"},function(){return this.fq},function(a){this.fq=a}); +v.defineProperty(Hd,{kf:"modelChange"},function(){return this.xv},function(a){this.xv=a});v.defineProperty(Hd,{propertyName:"propertyName"},function(){return this.tm},function(a){this.tm=a});v.u(Hd,{KE:"isTransactionFinished"},function(){return this.fq===Jd&&("CommittedTransaction"===this.tm||"FinishedUndo"===this.tm||"FinishedRedo"===this.tm)});v.defineProperty(Hd,{object:"object"},function(){return this.Fr},function(a){this.Fr=a}); v.defineProperty(Hd,{oldValue:"oldValue"},function(){return this.Hr},function(a){this.Hr=a});v.defineProperty(Hd,{zg:"oldParam"},function(){return this.Gr},function(a){this.Gr=a});v.defineProperty(Hd,{newValue:"newValue"},function(){return this.Dr},function(a){this.Dr=a});v.defineProperty(Hd,{xg:"newParam"},function(){return this.Cr},function(a){this.Cr=a}); -function F(a){1=d)return"[]";var e=new sa;e.add("[ ");c&&1b||(v.Wh(this.If,b),Pe(this,"nodeDataArray",Ld,"nodeDataArray",this,a,null,b,null),this.hu(a)))}}; -F.prototype.removeNodeDataCollection=function(a){if(v.isArray(a))for(var b=v.Va(a),c=0;cb||(v.Wh(this.If,b),Pe(this,"nodeDataArray",Ld,"nodeDataArray",this,a,null,b,null),this.hu(a)))}}; +F.prototype.removeNodeDataCollection=function(a){if(v.isArray(a))for(var b=v.Va(a),c=0;cb&&(b=v.Va(a));v.Qi(a,b,c);Pe(this,"",Kd,"",a,null,c,null,b)};F.prototype.removeArrayItem=function(a,b){void 0===b&&(b=-1);a===this.If&&v.k("Model.removeArrayItem should not be called on the Model.nodeDataArray");-1===b&&(b=v.Va(a)-1);var c=v.Pa(a,b);v.Wh(a,b);Pe(this,"",Ld,"",a,c,null,b,null)}; -v.defineProperty(F,{dn:"nodeCategoryProperty"},function(){return this.nm},function(a){var b=this.nm;b!==a&&(Qe(a,F,"nodeCategoryProperty"),this.nm=a,this.h("nodeCategoryProperty",b,a))});F.prototype.getCategoryForNodeData=F.prototype.Nz=function(a){if(null===a)return"";var b=this.nm;if(""===b)return"";b=v.tb(a,b);if(void 0===b)return"";if("string"===typeof b)return b;v.k("getCategoryForNodeData found a non-string category for "+a+": "+b);return""}; -F.prototype.setCategoryForNodeData=F.prototype.wx=function(a,b){v.j(b,"string",F,"setCategoryForNodeData:cat");if(null!==a){var c=this.nm;if(""!==c)if(this.Ke(a)){var d=v.tb(a,c);void 0===d&&(d="");d!==b&&(v.Ka(a,c,b),Pe(this,"nodeCategory",Id,c,a,d,b))}else v.Ka(a,c,b)}}; -function Q(a,b){2e||(v.Wh(d,e),this.Zg(a)&&(Ue(this,b,a),Pe(this,"linkLabelKeys",Ld,c,a,b,null)))}else void 0!==d&&v.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; -v.defineProperty(Q,{dh:"linkDataArray"},function(){return this.Gf},function(a){var b=this.Gf;if(b!==a){v.wz(a,Q,"linkDataArray");this.Yc.clear();for(var c=v.Va(a),d=0;de||(v.Wh(d,e),this.Zg(a)&&(Ue(this,b,a),Pe(this,"linkLabelKeys",Ld,c,a,b,null)))}else void 0!==d&&v.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; +v.defineProperty(Q,{dh:"linkDataArray"},function(){return this.Gf},function(a){var b=this.Gf;if(b!==a){v.xz(a,Q,"linkDataArray");this.Yc.clear();for(var c=v.Va(a),d=0;db)){v.Wh(this.Gf,b);Pe(this,"linkDataArray",Ld,"linkDataArray",this,a,null,b,null);b=this.ql(a);Ue(this,b,a);b=this.tl(a);Ue(this,b,a);var c=this.dk(a);if(v.isArray(c))for(var d=v.Va(c),e=0;eb)){v.Wh(this.Gf,b);Pe(this,"linkDataArray",Ld,"linkDataArray",this,a,null,b,null);b=this.rl(a);Ue(this,b,a);b=this.ul(a);Ue(this,b,a);var c=this.dk(a);if(v.isArray(c))for(var d=v.Va(c),e=0;ea.uh&&v.trace("Ending transaction without having started a transaction: "+c);var d=1===a.uh;d&&b&&a.isEnabled&&a.ad("CommittingTransaction",c,a.Ti);var e=0;if(0a.Xi;e--)f=d.ha(e),null!== -f&&f.clear(),d.Uc(e),a.Ny=!0;e=a.QE;0===e&&(e=1);0=e&&(f=d.ha(0),null!==f&&f.clear(),d.Uc(0),a.Kg--);d.add(b);a.Kg++;d.freeze();f=b}a.ad("CommittedTransaction",c,f)}else{a.wi=!0;try{a.isEnabled&&null!==f&&(f.st=!0,f.undo())}finally{a.ad("RolledBackTransaction",c,f),a.wi=!1}null!==f&&f.clear()}a.Nu=null;return!0}if(a.isEnabled&&!b&&null!==f){a=e;c=f.Nf;for(b=c.count-1;b>=a;b--)d=c.ha(b),null!==d&&d.undo(),c.Oa(),c.Uc(b);c.freeze()}return!1} -Nd.prototype.canUndo=Nd.prototype.canUndo=function(){if(!this.isEnabled||0=this.uh&&!this.Ay&&(a=a.g,null!==a&&!1===a.De||v.trace("Change not within a transaction: "+c.toString()))}}; -Nd.prototype.skipsEvent=function(a){if(null===a||0>a.wc.value)return!0;a=a.object;if(a instanceof G){if(a=a.layer,null!==a&&a.Fc)return!0}else if(a instanceof xe&&a.Fc)return!0;return!1};v.u(Nd,{DI:"models"},function(){return this.Uy.i});v.defineProperty(Nd,{isEnabled:"isEnabled"},function(){return this.Te},function(a){this.Te=a});v.u(Nd,{KF:"transactionToUndo"},function(){return 0<=this.Xi&&this.Xi<=this.history.count-1?this.history.ha(this.Xi):null}); -v.u(Nd,{JF:"transactionToRedo"},function(){return this.Xia.uh&&v.trace("Ending transaction without having started a transaction: "+c);var d=1===a.uh;d&&b&&a.isEnabled&&a.ad("CommittingTransaction",c,a.Ti);var e=0;if(0a.Xi;e--)f=d.ha(e),null!== +f&&f.clear(),d.Uc(e),a.Oy=!0;e=a.RE;0===e&&(e=1);0=e&&(f=d.ha(0),null!==f&&f.clear(),d.Uc(0),a.Kg--);d.add(b);a.Kg++;d.freeze();f=b}a.ad("CommittedTransaction",c,f)}else{a.wi=!0;try{a.isEnabled&&null!==f&&(f.st=!0,f.undo())}finally{a.ad("RolledBackTransaction",c,f),a.wi=!1}null!==f&&f.clear()}a.Nu=null;return!0}if(a.isEnabled&&!b&&null!==f){a=e;c=f.Nf;for(b=c.count-1;b>=a;b--)d=c.ha(b),null!==d&&d.undo(),c.Oa(),c.Uc(b);c.freeze()}return!1} +Nd.prototype.canUndo=Nd.prototype.canUndo=function(){if(!this.isEnabled||0=this.uh&&!this.By&&(a=a.g,null!==a&&!1===a.De||v.trace("Change not within a transaction: "+c.toString()))}}; +Nd.prototype.skipsEvent=function(a){if(null===a||0>a.wc.value)return!0;a=a.object;if(a instanceof G){if(a=a.layer,null!==a&&a.Fc)return!0}else if(a instanceof xe&&a.Fc)return!0;return!1};v.u(Nd,{DI:"models"},function(){return this.Vy.i});v.defineProperty(Nd,{isEnabled:"isEnabled"},function(){return this.Te},function(a){this.Te=a});v.u(Nd,{LF:"transactionToUndo"},function(){return 0<=this.Xi&&this.Xi<=this.history.count-1?this.history.ha(this.Xi):null}); +v.u(Nd,{KF:"transactionToRedo"},function(){return this.Xib.eh||(b.scale=a))};Me.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.Ix);v.Xe(a,Me,"canDecreaseZoom:factor");var b=this.g;if(null===b||b.dl!==zf)return!1;a*=b.scale;return ab.eh?!1:b.uw}; -Me.prototype.increaseZoom=function(a){void 0===a&&(a=this.Ix);v.Xe(a,Me,"increaseZoom:factor");var b=this.g;null!==b&&b.dl===zf&&(a*=b.scale,ab.eh||(b.scale=a))};Me.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.Ix);v.Xe(a,Me,"canIncreaseZoom:factor");var b=this.g;if(null===b||b.dl!==zf)return!1;a*=b.scale;return ab.eh?!1:b.uw};Me.prototype.resetZoom=function(a){void 0===a&&(a=this.Cw);v.Xe(a,Me,"resetZoom:newscale");var b=this.g;null===b||ab.eh||(b.scale=a)}; -Me.prototype.canResetZoom=function(a){void 0===a&&(a=this.Cw);v.Xe(a,Me,"canResetZoom:newscale");var b=this.g;return null===b||ab.eh?!1:b.uw};Me.prototype.zoomToFit=function(){var a=this.g;if(null!==a){var b=a.scale,c=a.position;b===this.oz&&!isNaN(this.Oy)&&a.Bd.L(this.nz)?(a.scale=this.Oy,a.position=this.rC,this.oz=NaN,this.nz=K.Qx):(this.Oy=b,this.rC=c.copy(),a.zoomToFit(),this.oz=a.scale,this.nz=a.Bd.copy())}};Me.prototype.canZoomToFit=function(){var a=this.g;return null===a?!1:a.uw}; -Me.prototype.scrollToPart=function(a){void 0===a&&(a=null);null!==a&&v.A(a,R,Me,"part");var b=this.g;if(null!==b){if(null===a){try{null!==this.Jj&&(this.Jj.next()?a=this.Jj.value:this.Jj=null)}catch(c){}null===a&&(0b.eh||(b.scale=a))};Me.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.Jx);v.Xe(a,Me,"canDecreaseZoom:factor");var b=this.g;if(null===b||b.dl!==zf)return!1;a*=b.scale;return ab.eh?!1:b.uw}; +Me.prototype.increaseZoom=function(a){void 0===a&&(a=this.Jx);v.Xe(a,Me,"increaseZoom:factor");var b=this.g;null!==b&&b.dl===zf&&(a*=b.scale,ab.eh||(b.scale=a))};Me.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.Jx);v.Xe(a,Me,"canIncreaseZoom:factor");var b=this.g;if(null===b||b.dl!==zf)return!1;a*=b.scale;return ab.eh?!1:b.uw};Me.prototype.resetZoom=function(a){void 0===a&&(a=this.Dw);v.Xe(a,Me,"resetZoom:newscale");var b=this.g;null===b||ab.eh||(b.scale=a)}; +Me.prototype.canResetZoom=function(a){void 0===a&&(a=this.Dw);v.Xe(a,Me,"canResetZoom:newscale");var b=this.g;return null===b||ab.eh?!1:b.uw};Me.prototype.zoomToFit=function(){var a=this.g;if(null!==a){var b=a.scale,c=a.position;b===this.pz&&!isNaN(this.Py)&&a.Bd.L(this.oz)?(a.scale=this.Py,a.position=this.sC,this.pz=NaN,this.oz=K.Rx):(this.Py=b,this.sC=c.copy(),a.zoomToFit(),this.pz=a.scale,this.oz=a.Bd.copy())}};Me.prototype.canZoomToFit=function(){var a=this.g;return null===a?!1:a.uw}; +Me.prototype.scrollToPart=function(a){void 0===a&&(a=null);null!==a&&v.A(a,R,Me,"part");var b=this.g;if(null!==b){if(null===a){try{null!==this.Jj&&(this.Jj.next()?a=this.Jj.value:this.Jj=null)}catch(c){}null===a&&(0b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Jf[0])c=a.Jf[0],d=a.Jf[1];else return;this.doCancel();if(a.cp("hasGestureZoom")){a.By=!0;a.DC=a.scale;var e=Df(a),f=c,h=f.clientX-e.x,c=f.clientY-e.y,f=d,d=f.clientX-e.x,f=f.clientY-e.y;v.v(e);e=d-h;c=f-c;e=Math.sqrt(e*e+c*c);a.ZC=e;b.preventDefault();b.cancelBubble=!0}}}; -Le.prototype.standardPinchZoomMove=function(){var a=this.g;if(null!==a){var b=a.P.event;this.doCancel();var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Jf[0])c=a.Jf[0],d=a.Jf[1];else return;if(a.cp("hasGestureZoom")&&a.By){var e=Df(a),f=c,c=f.clientX-e.x,h=f.clientY-e.y,f=d,d=f.clientX-e.x,f=f.clientY-e.y;v.v(e);var e=d-c,k=f-h,e=Math.sqrt(e*e+k*k)/a.ZC,c=new w((Math.min(d,c)+Math.max(d,c))/2,(Math.min(f, -h)+Math.max(f,h))/2),h=a.DC*e,d=a.pb;h!==a.scale&&d.canResetZoom(h)&&(e=a.Ol,a.Ol=c,d.resetZoom(h),a.Ol=e);b.preventDefault();b.cancelBubble=!0}}};Le.prototype.doKeyDown=function(){var a=this.g;null!==a&&"Esc"===a.P.key&&this.doCancel()};Le.prototype.doKeyUp=function(){};Le.prototype.startTransaction=Le.prototype.Rb=function(a){void 0===a&&(a=this.name);this.Bf=null;var b=this.g;return null===b?!1:b.Rb(a)}; +Le.prototype.standardPinchZoomStart=function(){var a=this.g;if(null!==a){var b=a.P.event,c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Jf[0])c=a.Jf[0],d=a.Jf[1];else return;this.doCancel();if(a.cp("hasGestureZoom")){a.Cy=!0;a.EC=a.scale;var e=Df(a),f=c,h=f.clientX-e.x,c=f.clientY-e.y,f=d,d=f.clientX-e.x,f=f.clientY-e.y;v.v(e);e=d-h;c=f-c;e=Math.sqrt(e*e+c*c);a.$C=e;b.preventDefault();b.cancelBubble=!0}}}; +Le.prototype.standardPinchZoomMove=function(){var a=this.g;if(null!==a){var b=a.P.event;this.doCancel();var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Jf[0])c=a.Jf[0],d=a.Jf[1];else return;if(a.cp("hasGestureZoom")&&a.Cy){var e=Df(a),f=c,c=f.clientX-e.x,h=f.clientY-e.y,f=d,d=f.clientX-e.x,f=f.clientY-e.y;v.v(e);var e=d-c,k=f-h,e=Math.sqrt(e*e+k*k)/a.$C,c=new w((Math.min(d,c)+Math.max(d,c))/2,(Math.min(f, +h)+Math.max(f,h))/2),h=a.EC*e,d=a.pb;h!==a.scale&&d.canResetZoom(h)&&(e=a.Pl,a.Pl=c,d.resetZoom(h),a.Pl=e);b.preventDefault();b.cancelBubble=!0}}};Le.prototype.doKeyDown=function(){var a=this.g;null!==a&&"Esc"===a.P.key&&this.doCancel()};Le.prototype.doKeyUp=function(){};Le.prototype.startTransaction=Le.prototype.Rb=function(a){void 0===a&&(a=this.name);this.Bf=null;var b=this.g;return null===b?!1:b.Rb(a)}; Le.prototype.stopTransaction=Le.prototype.jk=function(){var a=this.g;return null===a?!1:null===this.Bf?a.Dp():a.Ad(this.Bf)}; -Le.prototype.standardMouseSelect=function(){var a=this.g;if(null!==a&&a.pf){var b=a.P,c=a.ft(b.da,!1);if(null!==c)if(v.fk?b.Ft:b.control){a.Ba("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&(b.jb=!b.jb);a.Ba("ChangedSelection")}else if(b.shift){if(!c.jb){a.Ba("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&(b.jb=!0);a.Ba("ChangedSelection")}}else{if(!c.jb){for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&a.select(b)}}else!b.left||(v.fk?b.Ft:b.control)|| +Le.prototype.standardMouseSelect=function(){var a=this.g;if(null!==a&&a.qf){var b=a.P,c=a.ft(b.da,!1);if(null!==c)if(v.fk?b.Ft:b.control){a.Ba("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&(b.jb=!b.jb);a.Ba("ChangedSelection")}else if(b.shift){if(!c.jb){a.Ba("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&(b.jb=!0);a.Ba("ChangedSelection")}}else{if(!c.jb){for(b=c;null!==b&&!b.canSelect();)b=b.Sa;null!==b&&a.select(b)}}else!b.left||(v.fk?b.Ft:b.control)|| b.shift||a.yw()}};Le.prototype.standardMouseClick=function(a,b){void 0===a&&(a=null);void 0===b&&(b=function(a){return!a.layer.Fc});var c=this.g;if(null!==c){var d=c.P,e=c.qe(d.da,a,b);d.xe=e;Ef(e,d,c)}}; function Ef(a,b,c){var d=0;b.left?d=1===b.Ye?1:2===b.Ye?2:1:b.right&&1===b.Ye&&(d=3);var e="";if(null!==a){switch(d){case 1:e="ObjectSingleClicked";break;case 2:e="ObjectDoubleClicked";break;case 3:e="ObjectContextClicked"}0!==d&&c.Ba(e,a)}else{switch(d){case 1:e="BackgroundSingleClicked";break;case 2:e="BackgroundDoubleClicked";break;case 3:e="BackgroundContextClicked"}0!==d&&c.Ba(e)}if(null!==a)for(b.Ec=!1;null!==a;){c=null;switch(d){case 1:c=a.click;break;case 2:c=a.Zs?a.Zs:a.click;break;case 3:c= -a.zz}if(null!==c&&(c(b,a),b.Ec))break;a=a.T}else{a=null;switch(d){case 1:a=c.click;break;case 2:a=c.Zs?c.Zs:c.click;break;case 3:a=c.zz}null!==a&&a(b)}} -Le.prototype.standardMouseOver=function(){var a=this.g;if(null!==a){var b=a.P;if(null!==b.g&&!0!==a.Ra.uc){var c=a.nb;a.nb=!0;var d=a.qe(b.da,null,null);b.xe=d;var e=!1;if(d!==a.Cn){var f=a.Cn,h=f;a.Cn=d;this.doCurrentObjectChanged(f,d);for(b.Ec=!1;null!==f;){var k=f.Ht;if(null!==k){if(d===f)break;if(null!==d&&d.xl(f))break;k(b,f,d);e=!0;if(b.Ec)break}f=f.T}f=h;for(b.Ec=!1;null!==d;){k=d.Gt;if(null!==k){if(f===d)break;if(null!==f&&f.xl(d))break;k(b,d,f);e=!0;if(b.Ec)break}d=d.T}d=a.Cn}if(null!==d){f= -d;for(k="";null!==f;){k=f.cursor;if(""!==k)break;f=f.T}a.Zb=k;b.Ec=!1;for(f=d;null!==f;){k=f.iA;if(null!==k&&(k(b,f),e=!0,b.Ec))break;f=f.T}}else a.Zb="",k=a.iA,null!==k&&(k(b),e=!0);e&&a.ue();a.nb=c}}};Le.prototype.doCurrentObjectChanged=function(){}; -Le.prototype.standardMouseWheel=function(){var a=this.g;if(null!==a){var b=a.P,c=b.kl;if(0!==c&&a.Bd.K()){var d=a.pb,e=a.mb.It;if((e===Ff&&!b.shift||e===Gf&&b.control)&&(0e||Math.abs(b.y-a.y)>d};v.u(Le,{g:"diagram"},function(){return this.U});v.defineProperty(Le,{name:"name"},function(){return this.Pb},function(a){v.j(a,"string",Le,"name");this.Pb=a}); -v.defineProperty(Le,{isEnabled:"isEnabled"},function(){return this.Te},function(a){v.j(a,"boolean",Le,"isEnabled");this.Te=a});v.defineProperty(Le,{ra:"isActive"},function(){return this.dC},function(a){v.j(a,"boolean",Le,"isActive");this.dC=a});v.defineProperty(Le,{Bf:"transactionResult"},function(){return this.qD},function(a){null!==a&&v.j(a,"string",Le,"transactionResult");this.qD=a}); -function yf(){0e||Math.abs(b.y-a.y)>d};v.u(Le,{g:"diagram"},function(){return this.U});v.defineProperty(Le,{name:"name"},function(){return this.Pb},function(a){v.j(a,"string",Le,"name");this.Pb=a}); +v.defineProperty(Le,{isEnabled:"isEnabled"},function(){return this.Te},function(a){v.j(a,"boolean",Le,"isEnabled");this.Te=a});v.defineProperty(Le,{ra:"isActive"},function(){return this.eC},function(a){v.j(a,"boolean",Le,"isActive");this.eC=a});v.defineProperty(Le,{Bf:"transactionResult"},function(){return this.rD},function(a){null!==a&&v.j(a,"string",Le,"transactionResult");this.rD=a}); +function yf(){0e&&(e=k),l>f&&(f=l))}}Infinity===c?b.m(0,0,0,0):b.m(c,d,e-c,f-d)} -function kg(a,b){if(null===a.hc){var c=a.g;if(!(null===c||b&&(c.cb||c.wf))&&null!==a.ac){var d=c.ma;d.isEnabled&&d.FE?null!==d.Ti&&0c.pa)){var d=a.g;if(null!==d&&!d.cb&&(d=a.Gi,null!==d)){var e=null,f=null;null===c.V&&(e=Fg(a,c.l(0),!1),null!==e&&(f=e.Y));var h=null,k=null;null===c.aa&&(h=Fg(a,c.l(c.pa-1),!0),null!==h&&(k=h.Y));d.isValidLink(f,e,k,h)?b?(c.Gn=c.l(0).copy(),c.Kn=c.l(c.pa-1).copy(),c.Np=!1,c.V=f,null!==e&&(c.tg=e.Sd),c.aa=k,null!==h&&(c.th=h.Sd)):Gg(d,f,e,k,h):Gg(d,null,null,null,null)}}}yf.prototype.doDragOver=function(){}; -function Hg(a,b){var c=a.g;if(null!==c){a.Vi&&qg(a,!0);ag(a);var d=rg(c,b,null,function(b){return!og(a,b)}),e=c.P;e.xe=d;if(null!==d){e.Ec=!1;for(var f=d;null!==f;){var h=f.fA;if(null!==h&&(h(e,f),e.Ec))break;f=Eg(f)}}else h=c.fA,null!==h&&h(e);if(a.ra||null!==Jf)if(a.doDropOnto(b,d),a.ra||null!==Jf)for(d=c.selection.i;d.next();)e=d.value,e instanceof S&&Ig(c,e.Z)}}yf.prototype.doDropOnto=function(){}; -yf.prototype.doMouseMove=function(){if(this.ra){var a=this.g;if(null!==a&&null!==this.Qm&&null!==this.ac){var b=!1,c=!1;this.mayCopy()?(b=!0,a.Zb="copy",kg(this,!1),If(this,this.hc),lg(this,this.hc,!1),bg(this,this.hc)):this.mayMove()?(c=!0,a.Zb="default",eg(this),lg(this,this.ac,!0)):this.mayDragOut()?(a.Zb="no-drop",kg(this,!1),lg(this,this.hc,!1)):eg(this);pg(this,a.P.da,c,b)}}}; -yf.prototype.doMouseUp=function(){if(this.ra){var a=this.g;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.hc?(eg(this),kg(this,!0),If(this,this.hc),lg(this,this.hc,!1),bg(this,this.hc),null!==this.hc&&a.rF(this.hc.ej())):(b=!0,eg(this),this.mayMove()&&(lg(this,this.ac,!0),this.Xv=!1,pg(this,a.P.da,!0,!1),this.Xv=!0));this.Dq=!0;Hg(this,a.P.da);if(this.ra){this.hc=null;if(b&&null!==this.ac)for(b=this.ac.i;b.next();){var d=b.key;d instanceof S&&(d=d.Sa,null===d||null===d.placeholder||this.ac.contains(d)|| -d.RD&&d.Q())}a.pc();bg(this,this.ac);this.Bf=c?"Copy":"Move";a.Ba(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};yf.prototype.mayCopy=function(){if(!this.CE)return!1;var a=this.g;if(null===a||a.cb||a.wf||!a.Lo||!a.Xj||(v.fk?!a.P.alt:!a.P.control))return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canCopy())return!0}return null!==this.bd&&this.Vi&&this.bd.canCopy()?!0:!1}; -yf.prototype.mayDragOut=function(){if(!this.CE)return!1;var a=this.g;if(null===a||!a.Os||!a.Xj||a.cl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canCopy())return!0}return null!==this.bd&&this.Vi&&this.bd.canCopy()?!0:!1};yf.prototype.mayMove=function(){var a=this.g;if(null===a||a.cb||!a.cl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canMove())return!0}return null!==this.bd&&this.Vi&&this.bd.canMove()?!0:!1};var cg=new H(yf),Jf=null,Kf=null; -yf.prototype.mayDragIn=function(){var a=this.g;if(null===a||!a.BD||a.cb||a.wf||!a.Lo)return!1;var b=Jf;return null===b||b.g.ca.il!==a.ca.il?!1:!0};yf.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.g;a.Ra.dj();Jg(a);a=Jf;null!==a&&(a.g.Zb="copy")}};yf.prototype.doSimulatedDragLeave=function(){var a=Jf;null!==a&&a.doSimulatedDragOut();this.doCancel()}; +function Hg(a,b){var c=a.g;if(null!==c){a.Vi&&qg(a,!0);ag(a);var d=rg(c,b,null,function(b){return!og(a,b)}),e=c.P;e.xe=d;if(null!==d){e.Ec=!1;for(var f=d;null!==f;){var h=f.gA;if(null!==h&&(h(e,f),e.Ec))break;f=Eg(f)}}else h=c.gA,null!==h&&h(e);if(a.ra||null!==Jf)if(a.doDropOnto(b,d),a.ra||null!==Jf)for(d=c.selection.i;d.next();)e=d.value,e instanceof S&&Ig(c,e.Z)}}yf.prototype.doDropOnto=function(){}; +yf.prototype.doMouseMove=function(){if(this.ra){var a=this.g;if(null!==a&&null!==this.Rm&&null!==this.ac){var b=!1,c=!1;this.mayCopy()?(b=!0,a.Zb="copy",kg(this,!1),If(this,this.hc),lg(this,this.hc,!1),bg(this,this.hc)):this.mayMove()?(c=!0,a.Zb="default",eg(this),lg(this,this.ac,!0)):this.mayDragOut()?(a.Zb="no-drop",kg(this,!1),lg(this,this.hc,!1)):eg(this);pg(this,a.P.da,c,b)}}}; +yf.prototype.doMouseUp=function(){if(this.ra){var a=this.g;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.hc?(eg(this),kg(this,!0),If(this,this.hc),lg(this,this.hc,!1),bg(this,this.hc),null!==this.hc&&a.sF(this.hc.ej())):(b=!0,eg(this),this.mayMove()&&(lg(this,this.ac,!0),this.Xv=!1,pg(this,a.P.da,!0,!1),this.Xv=!0));this.Dq=!0;Hg(this,a.P.da);if(this.ra){this.hc=null;if(b&&null!==this.ac)for(b=this.ac.i;b.next();){var d=b.key;d instanceof S&&(d=d.Sa,null===d||null===d.placeholder||this.ac.contains(d)|| +d.SD&&d.Q())}a.pc();bg(this,this.ac);this.Bf=c?"Copy":"Move";a.Ba(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};yf.prototype.mayCopy=function(){if(!this.DE)return!1;var a=this.g;if(null===a||a.cb||a.wf||!a.Lo||!a.Xj||(v.fk?!a.P.alt:!a.P.control))return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canCopy())return!0}return null!==this.bd&&this.Vi&&this.bd.canCopy()?!0:!1}; +yf.prototype.mayDragOut=function(){if(!this.DE)return!1;var a=this.g;if(null===a||!a.Os||!a.Xj||a.cl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canCopy())return!0}return null!==this.bd&&this.Vi&&this.bd.canCopy()?!0:!1};yf.prototype.mayMove=function(){var a=this.g;if(null===a||a.cb||!a.cl)return!1;for(a=a.selection.i;a.next();){var b=a.value;if(b.Pd()&&b.canMove())return!0}return null!==this.bd&&this.Vi&&this.bd.canMove()?!0:!1};var cg=new H(yf),Jf=null,Kf=null; +yf.prototype.mayDragIn=function(){var a=this.g;if(null===a||!a.CD||a.cb||a.wf||!a.Lo)return!1;var b=Jf;return null===b||b.g.ca.il!==a.ca.il?!1:!0};yf.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.g;a.Ra.dj();Jg(a);a=Jf;null!==a&&(a.g.Zb="copy")}};yf.prototype.doSimulatedDragLeave=function(){var a=Jf;null!==a&&a.doSimulatedDragOut();this.doCancel()}; yf.prototype.doSimulatedDragOver=function(){var a=this.g;if(null!==a){var b=Jf;null!==b&&null!==b.ac&&this.mayDragIn()&&(a.Zb="copy",Kg(this,b.ac.ej(),!1),lg(this,this.hc,!1),pg(this,a.P.da,!1,!0))}}; -yf.prototype.doSimulatedDrop=function(){var a=this.g;if(null!==a){var b=Jf;if(null!==b){var c=b.g;b.Dq=!0;eg(this);this.mayDragIn()&&(this.Rb("Drop"),Kg(this,b.ac.ej(),!0),lg(this,this.hc,!1),null!==this.hc&&a.rF(this.hc.ej()),Hg(this,a.P.da),a.pc(),b=a.selection,null!==this.hc?this.Bf="ExternalCopy":b=new J(R),this.hc=null,a.focus(),a.Ba("ExternalObjectsDropped",b,c),this.jk())}}}; -function Kg(a,b,c){if(null===a.hc){var d=a.g;if(null!==d&&!d.cb&&!d.wf){d.nb=!c;d.tn=!c;a.ik=d.P.da;d=d.To(b,d,!0);c=v.Zf();jg(b,c);var e=c.x+c.width/2,f=c.y+c.height/2;v.ic(c);var h=a.Zv;c=new pa(R);var k=v.M();for(b=b.i;b.next();){var l=b.value;if(l.Pd()&&l.canCopy()){var m=l.location,l=d.ka(l);k.m(h.x-(e-m.x),h.y-(f-m.y));l.location=k;l.rf();c.add(l,Nf(k))}}v.v(k);for(d=d.i;d.next();)e=d.value,e instanceof W&&e.canCopy()&&c.add(e,Nf());a.hc=c;Hf(a,c.ej());null!==a.bd&&(c=a.bd,d=c.hn,c.Bl(a.ik.x- -(d.x+d.width/2),a.ik.y-(d.y+d.height/2)))}}}yf.prototype.doSimulatedDragOut=function(){var a=this.g;null!==a&&(this.mayCopy()||this.mayMove()?a.Zb="":a.Zb="no-drop")};function Zf(a){this.point=a;this.wF=K.lk}v.ea("DraggingInfo",Zf);function mg(a,b,c){this.Ic=a;this.info=b;this.NH=c} -function Lg(){0=d&&(d=.1);for(var e=this,f=b.Sm(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,f=f.i;f.next();){var h=f.value,k=h.Y;if(k instanceof S){var l=h.Za(ub,v.M()),m=c.x-l.x,n=c.y-l.y;v.v(l);l=m*m+n*n;lc){if(null!==this.qc&&a===this.jh&&b===this.kh)return!0;var d=b.Sd;null===d&&(d="");if(a.Jw(d).count>=c)return!1}return!0}; -Lg.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.jp;if(this.g.Ya===this&&(null!==a.layer&&!a.layer.Ps||!0!==b.DF))return!1;var c=b.zJ;if(Infinity>c){if(null!==this.qc&&a===this.lh&&b===this.mh)return!0;var d=b.Sd;null===d&&(d="");if(a.sg(d).count>=c)return!1}return!0};Lg.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.Y,d=b.Y;return null!==c&&c===d}; +yf.prototype.doSimulatedDrop=function(){var a=this.g;if(null!==a){var b=Jf;if(null!==b){var c=b.g;b.Dq=!0;eg(this);this.mayDragIn()&&(this.Rb("Drop"),Kg(this,b.ac.ej(),!0),lg(this,this.hc,!1),null!==this.hc&&a.sF(this.hc.ej()),Hg(this,a.P.da),a.pc(),b=a.selection,null!==this.hc?this.Bf="ExternalCopy":b=new J(R),this.hc=null,a.focus(),a.Ba("ExternalObjectsDropped",b,c),this.jk())}}}; +function Kg(a,b,c){if(null===a.hc){var d=a.g;if(null!==d&&!d.cb&&!d.wf){d.nb=!c;d.tn=!c;a.ik=d.P.da;d=d.To(b,d,!0);c=v.Zf();jg(b,c);var e=c.x+c.width/2,f=c.y+c.height/2;v.ic(c);var h=a.Zv;c=new pa(R);var k=v.M();for(b=b.i;b.next();){var l=b.value;if(l.Pd()&&l.canCopy()){var m=l.location,l=d.ka(l);k.m(h.x-(e-m.x),h.y-(f-m.y));l.location=k;l.sf();c.add(l,Nf(k))}}v.v(k);for(d=d.i;d.next();)e=d.value,e instanceof W&&e.canCopy()&&c.add(e,Nf());a.hc=c;Hf(a,c.ej());null!==a.bd&&(c=a.bd,d=c.hn,c.Cl(a.ik.x- +(d.x+d.width/2),a.ik.y-(d.y+d.height/2)))}}}yf.prototype.doSimulatedDragOut=function(){var a=this.g;null!==a&&(this.mayCopy()||this.mayMove()?a.Zb="":a.Zb="no-drop")};function Zf(a){this.point=a;this.xF=K.lk}v.ea("DraggingInfo",Zf);function mg(a,b,c){this.Ic=a;this.info=b;this.NH=c} +function Lg(){0=d&&(d=.1);for(var e=this,f=b.Tm(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,f=f.i;f.next();){var h=f.value,k=h.Y;if(k instanceof S){var l=h.Za(ub,v.M()),m=c.x-l.x,n=c.y-l.y;v.v(l);l=m*m+n*n;lc){if(null!==this.qc&&a===this.jh&&b===this.kh)return!0;var d=b.Sd;null===d&&(d="");if(a.Kw(d).count>=c)return!1}return!0}; +Lg.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.jp;if(this.g.Ya===this&&(null!==a.layer&&!a.layer.Ps||!0!==b.EF))return!1;var c=b.zJ;if(Infinity>c){if(null!==this.qc&&a===this.lh&&b===this.mh)return!0;var d=b.Sd;null===d&&(d="");if(a.sg(d).count>=c)return!1}return!0};Lg.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.Y,d=b.Y;return null!==c&&c===d}; Lg.prototype.isLinked=function(a,b){if(null===a||null===b)return!1;var c=a.Y;if(!(c instanceof S))return!1;var d=a.Sd;null===d&&(d="");var e=b.Y;if(!(e instanceof S))return!1;var f=b.Sd;null===f&&(f="");for(e=e.sg(f);e.next();)if(f=e.value,f.V===c&&f.tg===d)return!0;return!1}; -Lg.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.EH&&d.yJ||!this.isInSameNode(b,d))&&(b.DH&&d.xJ||!this.isLinked(b,d)))||null!==this.qc&&(null!==a&&this.isLabelDependentOnLink(a,this.qc)||null!==c&&this.isLabelDependentOnLink(c,this.qc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.qc))return!1;if(null!==a){var e=a.ax;if(null!==e&&!e(a,b,c,d,this.qc))return!1}if(null!== -c&&(e=c.ax,null!==e&&!e(a,b,c,d,this.qc)))return!1;e=this.ax;return null!==e?e(a,b,c,d,this.qc):!0};Lg.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.fe;if(null===c)return!1;if(c===b)return!0;var d=new J(S);d.add(a);return Mg(this,c,b,d)};function Mg(a,b,c,d){if(b===c)return!0;var e=b.V;if(null!==e&&e.vf&&(d.add(e),Mg(a,e.fe,c,d)))return!0;b=b.aa;return null!==b&&b.vf&&(d.add(b),Mg(a,b.fe,c,d))?!0:!1} +Lg.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.EH&&d.yJ||!this.isInSameNode(b,d))&&(b.DH&&d.xJ||!this.isLinked(b,d)))||null!==this.qc&&(null!==a&&this.isLabelDependentOnLink(a,this.qc)||null!==c&&this.isLabelDependentOnLink(c,this.qc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.qc))return!1;if(null!==a){var e=a.bx;if(null!==e&&!e(a,b,c,d,this.qc))return!1}if(null!== +c&&(e=c.bx,null!==e&&!e(a,b,c,d,this.qc)))return!1;e=this.bx;return null!==e?e(a,b,c,d,this.qc):!0};Lg.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.fe;if(null===c)return!1;if(c===b)return!0;var d=new J(S);d.add(a);return Mg(this,c,b,d)};function Mg(a,b,c,d){if(b===c)return!0;var e=b.V;if(null!==e&&e.vf&&(d.add(e),Mg(a,e.fe,c,d)))return!0;b=b.aa;return null!==b&&b.vf&&(d.add(b),Mg(a,b.fe,c,d))?!0:!1} Lg.prototype.isValidCycle=function(a,b,c){void 0===c&&(c=null);if(null===a||null===b)return this.jp;var d=this.g.FJ;if(d!==Ng){if(d===Og){if(null!==c&&!c.Gc)return!0;for(d=b.te;d.next();){var e=d.value;if(e!==c&&e.Gc&&e.aa===b)return!1}return!Pg(this,a,b,c,!0)}if(d===Qg){if(null!==c&&!c.Gc)return!0;for(d=a.te;d.next();)if(e=d.value,e!==c&&e.Gc&&e.V===a)return!1;return!Pg(this,a,b,c,!0)}if(d===Rg)return a===b?a=!0:(d=new J(S),d.add(b),a=Sg(this,d,a,b,c)),!a;if(d===Tg)return!Pg(this,a,b,c,!1);if(d=== Ug)return a===b?a=!0:(d=new J(S),d.add(b),a=ah(this,d,a,b,c)),!a}return!0};function Pg(a,b,c,d,e){if(b===c)return!0;if(null===b||null===c)return!1;for(var f=b.te;f.next();){var h=f.value;if(h!==d&&(!e||h.Gc)&&h.aa===b&&(h=h.V,h!==b&&Pg(a,h,c,d,e)))return!0}return!1}function Sg(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var f=c.te;f.next();){var h=f.value;if(h!==e&&h.aa===c&&(h=h.V,h!==c&&Sg(a,b,h,d,e)))return!0}return!1} -function ah(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var f=c.te;f.next();){var h=f.value;if(h!==e){var k=h.V,h=h.aa,k=k===c?h:k;if(k!==c&&ah(a,b,k,d,e))return!0}}return!1}v.defineProperty(Lg,{ax:"linkValidation"},function(){return this.Nk},function(a){null!==a&&v.j(a,"function",Lg,"linkValidation");this.Nk=a});v.defineProperty(Lg,{mx:"portTargeted"},function(){return this.OC},function(a){null!==a&&v.j(a,"function",Lg,"portTargeted");this.OC=a}); -function bh(){0b.ht+1&&cb.ht+1&&c=a.x)c=0>=a.y?c+225:1<=a.y?c+135:c+180;else if(1<=a.x)0>=a.y?c+=315:1<=a.y&&(c+=45);else if(0>=a.y)c+=270;else if(1<=a.y)c+=90;else break a;0>c?c+=360:360<=c&&(c-=360);b.cursor=22.5>c?"e-resize":67.5>c?"se-resize":112.5>c?"s-resize":157.5>c?"sw-resize":202.5>c?"w-resize":247.5>c?"nw-resize":292.5>c?"n-resize":337.5>c?"ne-resize":"e-resize"}else if(b instanceof C)for(b=b.elements;b.next();)sh(a, b.value,c)}v.defineProperty(rh,{nt:"handleArchetype"},function(){return this.Ek},function(a){null!==a&&v.A(a,G,rh,"handleArchetype");this.Ek=a});v.u(rh,{handle:"handle"},function(){return this.Ub});v.defineProperty(rh,{gc:"adornedObject"},function(){return this.Fb},function(a){null!==a&&v.A(a,G,rh,"adornedObject");this.Fb=a});rh.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.g;return null!==a&&!a.cb&&a.Qs&&a.P.left?null!==this.findToolHandleAt(a.xc.da,this.name)?!0:!1:!1}; -rh.prototype.doActivate=function(){var a=this.g;null!==a&&(this.Ub=this.findToolHandleAt(a.xc.da,this.name),null!==this.Ub&&(this.Fb=this.Ub.Y.gc,this.Yy.set(this.Fb.Y.location),this.Dv.set(this.Fb.za),this.xy=this.computeCellSize(),this.zy=this.computeMinSize(),this.yy=this.computeMaxSize(),a.Pe=!0,this.BC=a.Ra.isEnabled,a.Ra.isEnabled=!1,this.Rb(this.name),this.ra=!0))};rh.prototype.doDeactivate=function(){var a=this.g;null!==a&&(this.jk(),this.Fb=this.Ub=null,this.ra=a.Pe=!1,a.Ra.isEnabled=this.BC)}; -rh.prototype.doCancel=function(){this.Fb.za=this.Dv;this.Fb.Y.location=this.Yy;this.stopTool()};rh.prototype.doMouseMove=function(){var a=this.g;if(this.ra&&null!==a){var b=this.zy,c=this.yy,d=this.xy,e=this.Fb.pE(a.P.da,v.M()),f=vh;this.Fb instanceof X&&(f=wh(this.Fb));b=this.computeResize(e,this.Ub.alignment,b,c,d,!(f===xh||f===yh||a.P.shift));this.resize(b);a.Tf();v.v(e)}}; -rh.prototype.doMouseUp=function(){var a=this.g;if(this.ra&&null!==a){var b=this.zy,c=this.yy,d=this.xy,e=this.Fb.pE(a.P.da,v.M()),f=vh;this.Fb instanceof X&&(f=wh(this.Fb));b=this.computeResize(e,this.Ub.alignment,b,c,d,!(f===xh||f===yh||a.P.shift));this.resize(b);v.v(e);a.pc();this.Bf=this.name;a.Ba("PartResized",this.Fb,this.Dv)}this.stopTool()}; -rh.prototype.resize=function(a){if(null!==this.g){var b=this.gc,c=b.Y,d=b.pl(),e=b.Wi(),f=Math.PI*d/180,h=Math.cos(f),f=Math.sin(f),k=0d?1:0,l=90d?1:0,d=180d?1:0,m=b.Ia.width,n=b.Ia.height;b.za=a.size;var p=c.position.copy();c.rf();m=b.Ia.width-m;n=b.Ia.height-n;if(0!==m||0!==n)0!==m&&(p.x+=e*((a.x+m*l)*h-(a.y+n*k)*f)),0!==n&&(p.y+=e*((a.x+m*d)*f+(a.y+n*l)*h)),c.move(p),c instanceof S&&c.df()}}; +rh.prototype.doActivate=function(){var a=this.g;null!==a&&(this.Ub=this.findToolHandleAt(a.xc.da,this.name),null!==this.Ub&&(this.Fb=this.Ub.Y.gc,this.Zy.set(this.Fb.Y.location),this.Dv.set(this.Fb.za),this.yy=this.computeCellSize(),this.Ay=this.computeMinSize(),this.zy=this.computeMaxSize(),a.Pe=!0,this.CC=a.Ra.isEnabled,a.Ra.isEnabled=!1,this.Rb(this.name),this.ra=!0))};rh.prototype.doDeactivate=function(){var a=this.g;null!==a&&(this.jk(),this.Fb=this.Ub=null,this.ra=a.Pe=!1,a.Ra.isEnabled=this.CC)}; +rh.prototype.doCancel=function(){this.Fb.za=this.Dv;this.Fb.Y.location=this.Zy;this.stopTool()};rh.prototype.doMouseMove=function(){var a=this.g;if(this.ra&&null!==a){var b=this.Ay,c=this.zy,d=this.yy,e=this.Fb.qE(a.P.da,v.M()),f=vh;this.Fb instanceof X&&(f=wh(this.Fb));b=this.computeResize(e,this.Ub.alignment,b,c,d,!(f===xh||f===yh||a.P.shift));this.resize(b);a.Tf();v.v(e)}}; +rh.prototype.doMouseUp=function(){var a=this.g;if(this.ra&&null!==a){var b=this.Ay,c=this.zy,d=this.yy,e=this.Fb.qE(a.P.da,v.M()),f=vh;this.Fb instanceof X&&(f=wh(this.Fb));b=this.computeResize(e,this.Ub.alignment,b,c,d,!(f===xh||f===yh||a.P.shift));this.resize(b);v.v(e);a.pc();this.Bf=this.name;a.Ba("PartResized",this.Fb,this.Dv)}this.stopTool()}; +rh.prototype.resize=function(a){if(null!==this.g){var b=this.gc,c=b.Y,d=b.ql(),e=b.Wi(),f=Math.PI*d/180,h=Math.cos(f),f=Math.sin(f),k=0d?1:0,l=90d?1:0,d=180d?1:0,m=b.Ia.width,n=b.Ia.height;b.za=a.size;var p=c.position.copy();c.sf();m=b.Ia.width-m;n=b.Ia.height-n;if(0!==m||0!==n)0!==m&&(p.x+=e*((a.x+m*l)*h-(a.y+n*k)*f)),0!==n&&(p.y+=e*((a.x+m*d)*f+(a.y+n*l)*h)),c.move(p),c instanceof S&&c.ef()}}; rh.prototype.computeResize=function(a,b,c,d,e,f){b.se()&&(b=ub);var h=this.gc.Ia,k=h.x,l=h.y,m=h.x+h.width,n=h.y+h.height,p=1;if(!f){var p=h.width,q=h.height;0>=p&&(p=1);0>=q&&(q=1);p=q/p}q=v.M();K.dt(a.x,a.y,k,l,e.width,e.height,q);a=h.copy();0>=b.x?0>=b.y?(a.x=Math.max(q.x,m-d.width),a.x=Math.min(a.x,m-c.width),a.width=Math.max(m-a.x,c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=Math.max(n-a.y,c.height),f||(b=a.height/a.width,p=b.y?(a.width=Math.max(Math.min(q.x-k,d.width),c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n- c.height),a.height=Math.max(n-a.y,c.height),f||(b=a.height/a.width,p=b.y?(a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=n-a.y,f||(a.width=a.height/ p,a.x=k+.5*(m-k-a.width))):1<=b.y&&(a.height=Math.max(Math.min(q.y-l,d.height),c.height),f||(a.width=a.height/p,a.x=k+.5*(m-k-a.width)));v.v(q);return a};rh.prototype.computeMinSize=function(){var a=this.gc.wg.copy(),b=this.wg;!isNaN(b.width)&&b.width>a.width&&(a.width=b.width);!isNaN(b.height)&&b.height>a.height&&(a.height=b.height);return a}; -rh.prototype.computeMaxSize=function(){var a=this.gc.gf.copy(),b=this.gf;!isNaN(b.width)&&b.widtha&&(a+=360));var b=Math.min(Math.abs(this.pJ),180),c=Math.min(Math.abs(this.oJ),b/2);!this.g.P.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};v.defineProperty(zh,{pJ:"snapAngleMultiple"},function(){return this.XC},function(a){v.j(a,"number",zh,"snapAngleMultiple");this.XC=a}); -v.defineProperty(zh,{oJ:"snapAngleEpsilon"},function(){return this.WC},function(a){v.j(a,"number",zh,"snapAngleEpsilon");this.WC=a});v.u(zh,{eL:"originalAngle"},function(){return this.Cv});function Bh(){0a&&(a+=360));var b=Math.min(Math.abs(this.pJ),180),c=Math.min(Math.abs(this.oJ),b/2);!this.g.P.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};v.defineProperty(zh,{pJ:"snapAngleMultiple"},function(){return this.YC},function(a){v.j(a,"number",zh,"snapAngleMultiple");this.YC=a}); +v.defineProperty(zh,{oJ:"snapAngleEpsilon"},function(){return this.XC},function(a){v.j(a,"number",zh,"snapAngleEpsilon");this.XC=a});v.u(zh,{eL:"originalAngle"},function(){return this.Cv});function Bh(){0e.right&&(c.x-=d.width+5);c.xe.bottom&&(c.y-=d.height+5);c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ya?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} -v.defineProperty(Xe,{KA:"starting"},function(){return this.Bo},function(a){this.Bo!==a&&(null!==a&&v.j(a,"function",Xe,"starting"),this.Bo=a)});v.u(Xe,{dK:"animationReasons"},function(){return this.xu});Xe.prototype.prepareAutomaticAnimation=Xe.prototype.fn=function(a){if(this.Te&&(this.uj||this.U.De)){this.xu.add(a);var b=this.KA;if(null===b||b(this,a))this.tj&&this.dj(),this.uc=!0,this.zu=!1}}; +nf.prototype.doCancel=function(){null!==Jf&&Jf.doCancel();Le.prototype.doCancel.call(this)};nf.prototype.findTool=function(a){v.j(a,"string",nf,"findTool:name");for(var b=this.lf.length,c=0;ca?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} +v.defineProperty(Xe,{LA:"starting"},function(){return this.Bo},function(a){this.Bo!==a&&(null!==a&&v.j(a,"function",Xe,"starting"),this.Bo=a)});v.u(Xe,{dK:"animationReasons"},function(){return this.xu});Xe.prototype.prepareAutomaticAnimation=Xe.prototype.fn=function(a){if(this.Te&&(this.uj||this.U.De)){this.xu.add(a);var b=this.LA;if(null===b||b(this,a))this.tj&&this.dj(),this.uc=!0,this.zu=!1}}; function qi(a){a.Te&&(a.xu.clear(),a.uc&&requestAnimationFrame(function(){!1===a.uc||a.tj||(a.U.Pj=1,ri(a.U),a.uc=!1,a.U.Ba("AnimationStarting"),si(a))}))} -function ti(a,b,c,d,e,f){if(!(!a.uc||"position"===c&&d.L(e)||b instanceof R&&!b.zE)){void 0===f&&(f=!1);var h=a.Rk;if(h.contains(b)){a=h.ka(b);var k=a.start,l=a.end;void 0===k[c]&&(k[c]=ui(d));a.Ez&&void 0!==l[c]?a.Jz[c]=ui(e):(f||(a.Jz[c]=ui(e)),l[c]=ui(e))}else k=new ua,l=new ua,k[c]=ui(d),l[c]=ui(e),c=l,d=k.position,d instanceof w&&!d.K()&&a.xu.contains("Expand SubGraph")&&d.assign(c.position),h.add(b,new pi(k,l,f))}}function ui(a){return a instanceof w?a.copy():a instanceof ia?a.copy():a} -function si(a){var b;void 0===b&&(b=new ua);var c=a.U;if(null!==c){a.tj=!0;var d=b.zK||a.HB,e=b.cL||null,f=b.dL||null,h=b.duration||a.uy,k=a.pG;for(b=a.Rk.i;b.next();){var l=b.value.start.position;l instanceof w&&(l.K()||l.assign(k))}a.EB=d;a.Ku=e;a.Lu=f;a.DB=h;var m=a.Rk;for(b=m.i;b.next();)e=b.value.end,e["position:placeholder"]&&(f=e["position:placeholder"],k=f.Za(pb),k.x+=f.padding.left,k.y+=f.padding.top,e["position:placeholder"]=k);vi(a);wi(a,c,m,d,0,h);Jg(a.U);xi(a);requestAnimationFrame(function(b){var e= +function ti(a,b,c,d,e,f){if(!(!a.uc||"position"===c&&d.L(e)||b instanceof R&&!b.AE)){void 0===f&&(f=!1);var h=a.Rk;if(h.contains(b)){a=h.ka(b);var k=a.start,l=a.end;void 0===k[c]&&(k[c]=ui(d));a.Fz&&void 0!==l[c]?a.Kz[c]=ui(e):(f||(a.Kz[c]=ui(e)),l[c]=ui(e))}else k=new ua,l=new ua,k[c]=ui(d),l[c]=ui(e),c=l,d=k.position,d instanceof w&&!d.K()&&a.xu.contains("Expand SubGraph")&&d.assign(c.position),h.add(b,new pi(k,l,f))}}function ui(a){return a instanceof w?a.copy():a instanceof ia?a.copy():a} +function si(a){var b;void 0===b&&(b=new ua);var c=a.U;if(null!==c){a.tj=!0;var d=b.zK||a.IB,e=b.cL||null,f=b.dL||null,h=b.duration||a.vy,k=a.qG;for(b=a.Rk.i;b.next();){var l=b.value.start.position;l instanceof w&&(l.K()||l.assign(k))}a.FB=d;a.Ku=e;a.Lu=f;a.EB=h;var m=a.Rk;for(b=m.i;b.next();)e=b.value.end,e["position:placeholder"]&&(f=e["position:placeholder"],k=f.Za(pb),k.x+=f.padding.left,k.y+=f.padding.top,e["position:placeholder"]=k);vi(a);wi(a,c,m,d,0,h);Jg(a.U);xi(a);requestAnimationFrame(function(b){var e= b||+new Date,f=e+h;(function s(b){if(!1!==a.tj){b=b||+new Date;var k=b>f?h:b-e;vi(a);wi(a,c,m,d,k,h);a.Ku&&a.Ku();Jg(c);xi(a);b>f?yi(a):requestAnimationFrame(s)}})(e)})}} -var zi={opacity:function(a,b,c,d,e,f){a.opacity=d(e,b,c-b,f)},position:function(a,b,c,d,e,f){e!==f?a.Ax(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f)):a.position=new w(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f))},"position:node":function(a,b,c,d,e,f){var h=a.Z,k=c.Z;c=k.x+k.width/2-h.width/2;h=k.y+k.height/2-h.height/2;e!==f?a.Ax(d(e,b.x,c-b.x,f),d(e,b.y,h-b.y,f)):a.position=new w(d(e,b.x,c-b.x,f),d(e,b.y,h-b.y,f))},"position:placeholder":function(a,b,c,d,e,f){e!==f?a.Ax(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f)): -a.position=new w(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f))},scale:function(a,b,c,d,e,f){a.scale=d(e,b,c-b,f)},visible:function(a,b,c,d,e,f){a.visible=e!==f?b:c}};function vi(a){if(!a.ao){var b=a.U;a.rD=b.nb;a.qB=b.Dx;a.rB=b.cu;b.nb=!0;b.Dx=!0;b.cu=!0;a.ao=!0}}function xi(a){var b=a.U;b.nb=a.rD;b.Dx=a.qB;b.cu=a.rB;a.ao=!1} -function wi(a,b,c,d,e,f){for(c=c.i;c.next();){var h=c.key,k=c.value,l=k.start,k=k.end,m;for(m in k)if(("position"!==m||!k["position:placeholder"]&&!k["position:node"])&&void 0!==zi[m])zi[m](h,l[m],k[m],d,e,f)}d=b.Uz;b.Uz=!0;m=a.HB;0!==a.Bq&&0!==a.Aq&&(c=a.Bq,b.Vb=m(e,c,a.Aq-c,f));null!==a.zq&&null!==a.yq&&(c=a.zq,a=a.yq,b.Xa=new w(m(e,c.x,a.x-c.x,f),m(e,c.y,a.y-c.y,f)));b.Uz=d}Xe.prototype.stopAnimation=Xe.prototype.dj=function(){!0===this.uc&&(this.uc=!1,this.zu&&this.U.ue());this.tj&&this.Te&&yi(this)}; -function yi(a){a.tj=!1;a.zq=null;a.yq=null;a.Bq=0;a.Aq=0;vi(a);for(var b=a.U,c=a.EB,d=a.DB,e=a.Rk.i;e.next();){var f=e.key,h=e.value,k=h.start,l=h.end,m=h.Jz,n;for(n in l)if(void 0!==zi[n]){var p=n;!h.Ez||"position:node"!==p&&"position:placeholder"!==p||(p="position");zi[p](f,k[n],h.Ez?void 0!==m[n]?m[n]:k[n]:l[n],c,d,d)}h.ox&&f.rd(!1)}for(c=a.U.links;c.next();)d=c.value,null!==d.vo&&(d.points=d.vo,d.vo=null);b.bx.clear();b.Pj=null;b.pc();b.Tf();Ai(b);xi(a);a.Rk=new pa(G,pi);a.Lu&&a.Lu();a.Lu=null; +var zi={opacity:function(a,b,c,d,e,f){a.opacity=d(e,b,c-b,f)},position:function(a,b,c,d,e,f){e!==f?a.Bx(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f)):a.position=new w(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f))},"position:node":function(a,b,c,d,e,f){var h=a.Z,k=c.Z;c=k.x+k.width/2-h.width/2;h=k.y+k.height/2-h.height/2;e!==f?a.Bx(d(e,b.x,c-b.x,f),d(e,b.y,h-b.y,f)):a.position=new w(d(e,b.x,c-b.x,f),d(e,b.y,h-b.y,f))},"position:placeholder":function(a,b,c,d,e,f){e!==f?a.Bx(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f)): +a.position=new w(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f))},scale:function(a,b,c,d,e,f){a.scale=d(e,b,c-b,f)},visible:function(a,b,c,d,e,f){a.visible=e!==f?b:c}};function vi(a){if(!a.ao){var b=a.U;a.sD=b.nb;a.rB=b.Ex;a.sB=b.cu;b.nb=!0;b.Ex=!0;b.cu=!0;a.ao=!0}}function xi(a){var b=a.U;b.nb=a.sD;b.Ex=a.rB;b.cu=a.sB;a.ao=!1} +function wi(a,b,c,d,e,f){for(c=c.i;c.next();){var h=c.key,k=c.value,l=k.start,k=k.end,m;for(m in k)if(("position"!==m||!k["position:placeholder"]&&!k["position:node"])&&void 0!==zi[m])zi[m](h,l[m],k[m],d,e,f)}d=b.Vz;b.Vz=!0;m=a.IB;0!==a.Bq&&0!==a.Aq&&(c=a.Bq,b.Vb=m(e,c,a.Aq-c,f));null!==a.zq&&null!==a.yq&&(c=a.zq,a=a.yq,b.Xa=new w(m(e,c.x,a.x-c.x,f),m(e,c.y,a.y-c.y,f)));b.Vz=d}Xe.prototype.stopAnimation=Xe.prototype.dj=function(){!0===this.uc&&(this.uc=!1,this.zu&&this.U.ue());this.tj&&this.Te&&yi(this)}; +function yi(a){a.tj=!1;a.zq=null;a.yq=null;a.Bq=0;a.Aq=0;vi(a);for(var b=a.U,c=a.FB,d=a.EB,e=a.Rk.i;e.next();){var f=e.key,h=e.value,k=h.start,l=h.end,m=h.Kz,n;for(n in l)if(void 0!==zi[n]){var p=n;!h.Fz||"position:node"!==p&&"position:placeholder"!==p||(p="position");zi[p](f,k[n],h.Fz?void 0!==m[n]?m[n]:k[n]:l[n],c,d,d)}h.px&&f.rd(!1)}for(c=a.U.links;c.next();)d=c.value,null!==d.vo&&(d.points=d.vo,d.vo=null);b.ex.clear();b.Pj=null;b.pc();b.Tf();Ai(b);xi(a);a.Rk=new pa(G,pi);a.Lu&&a.Lu();a.Lu=null; a.Ku=null;b.Ba("AnimationFinished");b.ue()}function Bi(a,b,c){var d=b.Z,e=c.Z,f=null;c instanceof T&&(f=c.placeholder);null!==f?(d=f.Za(pb),d.x+=f.padding.left,d.y+=f.padding.top,ti(a,b,"position",d,b.position,!1)):ti(a,b,"position",new w(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position,!1);ti(a,b,"scale",.01,b.scale,!1);if(b instanceof T)for(b=b.Hc;b.next();)f=b.value,f instanceof S&&Bi(a,f,c)} -function Ci(a,b,c){if(b.isVisible()){var d=null;c instanceof T&&(d=c.placeholder);null!==d?ti(a,b,"position:placeholder",b.position,d,!0):ti(a,b,"position:node",b.position,c,!0);ti(a,b,"scale",b.scale,.01,!0);a.uc&&(d=a.Rk,d.contains(b)&&(d.ka(b).ox=!0));if(b instanceof T)for(b=b.Hc;b.next();)d=b.value,d instanceof S&&Ci(a,d,c)}}function Di(a,b,c){a.uc&&(null===a.zq&&b.K()&&null===a.yq&&(a.zq=b.copy()),a.yq=c.copy(),a.zu=!0)} -function Ei(a,b,c){a.uc&&a.U.De&&(0===a.Bq&&0===a.Aq&&(a.Bq=b),a.Aq=c,a.zu=!0)}v.defineProperty(Xe,{isEnabled:"isEnabled"},function(){return this.Te},function(a){v.j(a,"boolean",Xe,"isEnabled");this.Te=a});v.defineProperty(Xe,{duration:"duration"},function(){return this.uy},function(a){v.j(a,"number",Xe,"duration");1>a&&v.wa(a,">= 1",Xe,"duration");this.uy=a});v.u(Xe,{uf:"isAnimating"},function(){return this.tj});v.u(Xe,{JK:"isTicking"},function(){return this.ao}); -v.defineProperty(Xe,{GE:"isInitial"},function(){return this.uj},function(a){v.j(a,"boolean",Xe,"isInitial");this.uj=a});function pi(a,b,c){this.start=a;this.end=b;this.Jz=new ua;this.Ez=c;this.ox=!1}function xe(){0a&&v.wa(a,">= 1",Xe,"duration");this.vy=a});v.u(Xe,{uf:"isAnimating"},function(){return this.tj});v.u(Xe,{JK:"isTicking"},function(){return this.ao}); +v.defineProperty(Xe,{HE:"isInitial"},function(){return this.uj},function(a){v.j(a,"boolean",Xe,"isInitial");this.uj=a});function pi(a,b,c){this.start=a;this.end=b;this.Kz=new ua;this.Fz=c;this.px=!1}function xe(){0=a)return b;for(var c=0,d=0,e=0,f=0,h=0,k=this.zb.i;k.next();){var l=k.value;l instanceof T?e++:l instanceof S?d++:l instanceof W?f++:l instanceof pf?h++:c++}k="";0=d.count)a=d.count;else if(d.ha(a)===b)return-1;d.Cd(a,b);b.pt(c);d=this.g;null!==d&&(c?d.qa():d.gp(b));Li(this,a,b);return a}; g.Oe=function(a,b,c){if(!c&&b.layer!==this&&null!==b.layer)return b.layer.Oe(a,b,c);var d=this.zb;if(0>a||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ha(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.qt(c);d.Uc(a);d=this.g;null!==d&&(c?d.qa():d.Oe(b));b.pv=null;return a}; function Li(a,b,c){b=Mi(a,b,c);if(c instanceof T&&null!==c&&isNaN(c.pn)){if(0!==c.Hc.count){for(var d=-1,e=a.zb.n,f=e.length,h=0;hd&&k.Sa===c&&(d=h,0<=b))break}!(0>d)&&d=e)return b;0>b&&(b=a.indexOf(c));if(0>b)return-1;for(var f=b-1,h=NaN;0<=f;){h=a.ha(f).pn;if(!isNaN(h))break;f--}for(var k=b+1,l=NaN;kd)for(;;){if(-1===f||h<=d){f++;if(f===b)break;a.Uc(b);a.Cd(f,c);return f}for(h=NaN;0<=--f&&(h=a.ha(f).pn,isNaN(h)););}else if(!isNaN(l)&&l=d){k--;if(k===b)break;a.Uc(b);a.Cd(k,c);return k}for(l=NaN;++ka||1a||1=a)return b;for(var c=this.Yb.i;c.next();)b+="\n "+c.value.toString(a-1);return b};E.fromDiv=function(a){var b=a;"string"===typeof a&&(b=window.document.getElementById(a));return b instanceof HTMLDivElement&&b.U instanceof E?b.U:null}; -v.defineProperty(E,{ll:"div"},function(){return this.Nb},function(a){null!==a&&v.A(a,HTMLDivElement,E,"div");if(this.Nb!==a){Oi=[];var b=this.Nb;null!==b?(b.U=void 0,b.innerHTML="",null!==this.vb&&(this.vb.removeEventListener("touchstart",this.IF,!1),this.vb.removeEventListener("touchmove",this.HF,!1),this.vb.removeEventListener("touchend",this.GF,!1),this.vb.Od.U=null),b=this.mb,null!==b&&(b.kf.each(function(a){a.cancelWaitAfter()}),b.Uf.each(function(a){a.cancelWaitAfter()}),b.Vf.each(function(a){a.cancelWaitAfter()})), -b.cancelWaitAfter(),this.Ya.doCancel(),this.Ig=this.vb=null,window.removeEventListener("resize",this.SF,!1),window.removeEventListener("mousemove",this.rp,!0),window.removeEventListener("mousedown",this.qp,!0),window.removeEventListener("mouseup",this.tp,!0),window.removeEventListener("mousewheel",this.gh,!0),window.removeEventListener("DOMMouseScroll",this.gh,!0),window.removeEventListener("mouseout",this.sp,!0)):this.De=!1;this.Nb=null;if(null!==a){if(b=a.U)b.ll=null;jj(this,a);this.wA()}}}); -function mj(a){var b=a.vb;b.addEventListener("touchstart",a.IF,!1);b.addEventListener("touchmove",a.HF,!1);b.addEventListener("touchend",a.GF,!1);b.addEventListener("mousemove",a.rp,!1);b.addEventListener("mousedown",a.qp,!1);b.addEventListener("mouseup",a.tp,!1);b.addEventListener("mousewheel",a.gh,!1);b.addEventListener("DOMMouseScroll",a.gh,!1);b.addEventListener("mouseout",a.sp,!1);b.addEventListener("keydown",a.kI,!1);b.addEventListener("keyup",a.lI,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); -return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.mb.bp===li&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.MI,!1);b.addEventListener("pointermove",a.OI,!1);b.addEventListener("pointerleave",a.NI,!1);window.addEventListener("resize",a.SF,!1)} +v.defineProperty(E,{ll:"div"},function(){return this.Nb},function(a){null!==a&&v.A(a,HTMLDivElement,E,"div");if(this.Nb!==a){Oi=[];var b=this.Nb;null!==b?(b.U=void 0,b.innerHTML="",null!==this.vb&&(this.vb.removeEventListener("touchstart",this.JF,!1),this.vb.removeEventListener("touchmove",this.IF,!1),this.vb.removeEventListener("touchend",this.HF,!1),this.vb.Od.U=null),b=this.mb,null!==b&&(b.lf.each(function(a){a.cancelWaitAfter()}),b.Uf.each(function(a){a.cancelWaitAfter()}),b.Vf.each(function(a){a.cancelWaitAfter()})), +b.cancelWaitAfter(),this.Ya.doCancel(),this.Ig=this.vb=null,window.removeEventListener("resize",this.TF,!1),window.removeEventListener("mousemove",this.rp,!0),window.removeEventListener("mousedown",this.qp,!0),window.removeEventListener("mouseup",this.tp,!0),window.removeEventListener("mousewheel",this.gh,!0),window.removeEventListener("DOMMouseScroll",this.gh,!0),window.removeEventListener("mouseout",this.sp,!0)):this.De=!1;this.Nb=null;if(null!==a){if(b=a.U)b.ll=null;jj(this,a);this.xA()}}}); +function mj(a){var b=a.vb;b.addEventListener("touchstart",a.JF,!1);b.addEventListener("touchmove",a.IF,!1);b.addEventListener("touchend",a.HF,!1);b.addEventListener("mousemove",a.rp,!1);b.addEventListener("mousedown",a.qp,!1);b.addEventListener("mouseup",a.tp,!1);b.addEventListener("mousewheel",a.gh,!1);b.addEventListener("DOMMouseScroll",a.gh,!1);b.addEventListener("mouseout",a.sp,!1);b.addEventListener("keydown",a.kI,!1);b.addEventListener("keyup",a.lI,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); +return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.mb.bp===li&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.MI,!1);b.addEventListener("pointermove",a.OI,!1);b.addEventListener("pointerleave",a.NI,!1);window.addEventListener("resize",a.TF,!1)} E.prototype.computePixelRatio=function(){if(null!==this.Pj)return this.Pj;var a=this.Ig;return(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1)};E.prototype.doMouseMove=function(){this.Ya.doMouseMove()};E.prototype.doMouseDown=function(){this.Ya.doMouseDown()};E.prototype.doMouseUp=function(){this.Ya.doMouseUp()};E.prototype.doMouseWheel=function(){this.Ya.doMouseWheel()}; -E.prototype.doKeyDown=function(){this.Ya.doKeyDown()};E.prototype.doKeyUp=function(){this.Ya.doKeyUp()};E.prototype.focus=E.prototype.focus=function(){this.vb&&this.vb.focus()};function ri(a){if(null!==a.vb){var b=a.Nb;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.Fk?a.yd:0,d=a.rj?a.yd:0,e=a.He;a.He=a.computePixelRatio();a.He!==e&&(a.Rq=!0,a.ue());if(b.clientWidth!==a.Gb+c||b.clientHeight!==a.Lb+d)a.Zl=!0,a.je=!0,b=a.Qb,null!==b&&b.Ww&&a.dl===zf&&b.H(),a.Kd||a.ue()}}} -function nj(a,b,c){void 0===b&&(b=a.Ig);void 0===c&&(c=!0);c&&(b.mu="");b.rn="";b.qn=""}function gj(a){var b=new xe;b.name="Background";a.Js(b);b=new xe;b.name="";a.Js(b);b=new xe;b.name="Foreground";a.Js(b);b=new xe;b.name="Adornment";b.Fc=!0;a.Js(b);b=new xe;b.name="Tool";b.Fc=!0;b.AE=!0;a.Js(b);b=new xe;b.name="Grid";b.pf=!1;b.Ag=!1;b.Fc=!0;a.GG(b,a.bt("Background"))} +E.prototype.doKeyDown=function(){this.Ya.doKeyDown()};E.prototype.doKeyUp=function(){this.Ya.doKeyUp()};E.prototype.focus=E.prototype.focus=function(){this.vb&&this.vb.focus()};function ri(a){if(null!==a.vb){var b=a.Nb;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.Fk?a.yd:0,d=a.rj?a.yd:0,e=a.He;a.He=a.computePixelRatio();a.He!==e&&(a.Rq=!0,a.ue());if(b.clientWidth!==a.Gb+c||b.clientHeight!==a.Lb+d)a.$l=!0,a.je=!0,b=a.Qb,null!==b&&b.Xw&&a.dl===zf&&b.H(),a.Kd||a.ue()}}} +function nj(a,b,c){void 0===b&&(b=a.Ig);void 0===c&&(c=!0);c&&(b.mu="");b.rn="";b.qn=""}function gj(a){var b=new xe;b.name="Background";a.Js(b);b=new xe;b.name="";a.Js(b);b=new xe;b.name="Foreground";a.Js(b);b=new xe;b.name="Adornment";b.Fc=!0;a.Js(b);b=new xe;b.name="Tool";b.Fc=!0;b.BE=!0;a.Js(b);b=new xe;b.name="Grid";b.qf=!1;b.Ag=!1;b.Fc=!0;a.HG(b,a.bt("Background"))} function oj(a){a.md=new C(pj);a.md.name="GRID";var b=new X;b.Cb="LineH";b.stroke="lightgray";b.ob=.5;b.interval=1;a.md.add(b);b=new X;b.Cb="LineH";b.stroke="gray";b.ob=.5;b.interval=5;a.md.add(b);b=new X;b.Cb="LineH";b.stroke="gray";b.ob=1;b.interval=10;a.md.add(b);b=new X;b.Cb="LineV";b.stroke="lightgray";b.ob=.5;b.interval=1;a.md.add(b);b=new X;b.Cb="LineV";b.stroke="gray";b.ob=.5;b.interval=5;a.md.add(b);b=new X;b.Cb="LineV";b.stroke="gray";b.ob=1;b.interval=10;a.md.add(b);b=new R;b.add(a.md); -b.Sf="Grid";b.pn=0;b.Wz=!1;b.zE=!1;b.Ag=!1;b.aA="GRID";a.add(b);a.zb.remove(b);a.md.visible=!1} -E.prototype.oG=function(){if(this.U.isEnabled){var a=this.U;if(a.$y&&null!==a.vb){a.Pv=!0;var b=a.Bd,c=a.ub,d=b.width,e=c.width,f=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale,s;el&& -(a.position=s.m(-(a.Tv.scrollWidth-a.Gb)+this.scrollLeft-a.Gb/r+a.Bd.right,a.position.y))),this.tG&&a.ne&&(bn&&(a.position=s.m(a.position.x,-(a.Tv.scrollHeight-a.Lb)+this.scrollTop-a.Lb/r+a.Bd.bottom))),v.v(s),qj(a),a.Pv=!1,a.Zl=!1,b=a.Bd,c=a.ub,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.cs.style.width="1px"),h>=f&&b>=c&&m<=n&&(a.cs.style.height="1px"))}}else rj(this.U)}; -E.prototype.CC=function(a){this.U.isEnabled?(this.U.$y=!0,this.U.TC=a.target.scrollTop,this.U.SC=a.target.scrollLeft):rj(this.U)};E.prototype.computeBounds=E.prototype.Yg=function(){0c&&(e=c),ea.eh&&(e=a.eh),e):b===zj?(e=l>k?(h-a.yd)/d:(f-a.yd)/e,e>c&&(e=c),ea.eh&&(e=a.eh),e):a.scale}E.prototype.zoomToFit=E.prototype.zoomToFit=function(){this.scale=vj(this,yj)}; -E.prototype.zoomToRect=function(a,b){void 0===b&&(b=yj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===yj||b===zj)if(isNaN(c))e=this.ub.height*this.scale/d;else if(isNaN(d))e=this.ub.width*this.scale/c;else var e=this.Gb,f=this.Lb,e=b===zj?f/d>e/c?(f-(this.rj?this.yd:0))/d:(e-(this.Fk?this.yd:0))/c:Math.min(f/d,e/c);this.scale=e;this.position=new w(a.x,a.y)}};v.defineProperty(E,{Uz:null},function(){return this.Xc},function(a){this.Xc=a}); +b.Sf="Grid";b.pn=0;b.Xz=!1;b.AE=!1;b.Ag=!1;b.bA="GRID";a.add(b);a.zb.remove(b);a.md.visible=!1} +E.prototype.pG=function(){if(this.U.isEnabled){var a=this.U;if(a.az&&null!==a.vb){a.Pv=!0;var b=a.Bd,c=a.ub,d=b.width,e=c.width,f=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale,s;el&& +(a.position=s.m(-(a.Tv.scrollWidth-a.Gb)+this.scrollLeft-a.Gb/r+a.Bd.right,a.position.y))),this.uG&&a.ne&&(bn&&(a.position=s.m(a.position.x,-(a.Tv.scrollHeight-a.Lb)+this.scrollTop-a.Lb/r+a.Bd.bottom))),v.v(s),qj(a),a.Pv=!1,a.$l=!1,b=a.Bd,c=a.ub,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.cs.style.width="1px"),h>=f&&b>=c&&m<=n&&(a.cs.style.height="1px"))}}else rj(this.U)}; +E.prototype.DC=function(a){this.U.isEnabled?(this.U.az=!0,this.U.UC=a.target.scrollTop,this.U.TC=a.target.scrollLeft):rj(this.U)};E.prototype.computeBounds=E.prototype.Yg=function(){0c&&(e=c),ea.eh&&(e=a.eh),e):b===zj?(e=l>k?(h-a.yd)/d:(f-a.yd)/e,e>c&&(e=c),ea.eh&&(e=a.eh),e):a.scale}E.prototype.zoomToFit=E.prototype.zoomToFit=function(){this.scale=vj(this,yj)}; +E.prototype.zoomToRect=function(a,b){void 0===b&&(b=yj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===yj||b===zj)if(isNaN(c))e=this.ub.height*this.scale/d;else if(isNaN(d))e=this.ub.width*this.scale/c;else var e=this.Gb,f=this.Lb,e=b===zj?f/d>e/c?(f-(this.rj?this.yd:0))/d:(e-(this.Fk?this.yd:0))/c:Math.min(f/d,e/c);this.scale=e;this.position=new w(a.x,a.y)}};v.defineProperty(E,{Vz:null},function(){return this.Xc},function(a){this.Xc=a}); E.prototype.alignDocument=function(a,b){this.sj&&xj(this,this.Yg());var c=this.Bd,d=this.ub;this.position=new w(c.x+(a.x*c.width+a.offsetX)-(b.x*d.width-b.offsetX),c.y+(a.y*c.height+a.offsetY)-(b.y*d.height-b.offsetY))}; -function wj(a,b,c,d,e,f,h){var k=b.x,l=b.y;if(h||a.CA===Zi)f.fd()&&(d>c.width&&(k=c.x+(f.x*c.width+f.offsetX)-(f.x*d-f.offsetX)),e>c.height&&(l=c.y+(f.y*c.height+f.offsetY)-(f.y*e-f.offsetY))),f=a.nF,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lc.width&&(k=c.x+(f.x*c.width+f.offsetX)-(f.x*d-f.offsetX)),e>c.height&&(l=c.y+(f.y*c.height+f.offsetY)-(f.y*e-f.offsetY))),f=a.oF,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lb.touches.length)&&b.preventDefault();b.cancelBubble=!0;return!1} E.prototype.kI=function(a){if(!this.U.isEnabled)return!1;var b=this.U.Ob;Aj(this.U,this.U,a,b,!1);b.key=String.fromCharCode(a.which);b.ml=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key= "Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}this.U.doKeyDown();return 187!==a.which&&189!==a.which&&48!==a.which&&107!==a.which&&109!==a.which&&61!==a.which&&173!==a.which||!0!==a.ctrlKey?Ej(b,a):(a.cancelBubble=!0,a.preventDefault(),a.stopPropagation(),!1)}; E.prototype.lI=function(a){if(!this.U.isEnabled)return!1;var b=this.U.Ob;Aj(this.U,this.U,a,b,!1);b.key=String.fromCharCode(a.which);b.up=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 93:a.preventDefault()}this.U.doKeyUp(); -return Ej(b,a)};E.prototype.Mq=function(a){var b=this.vb;if(null===b)return new w(0,0);var c=this.Gb,d=this.Lb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.le?(a=new w(c,a),Oa(a,this.le),a):new w(c,a)};function Bj(a,b,c){var d=a.vb,e=a.Gb,f=a.Lb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-f/d.height*d.top);c.lf.m(h,k);null!==a.le?(b=v.Sb(h,k),a.le.$h(b),c.da.assign(b),v.v(b)):c.da.m(h,k)} -E.prototype.invalidateDocumentBounds=E.prototype.pc=function(){this.sj||(this.sj=!0,this.ue(!0))};function Ai(a){a.Kd||sj(a);a.sj&&xj(a,a.Yg())}E.prototype.redraw=E.prototype.wA=function(){this.Xc||this.Kd||(this.qa(),Fj(this),qj(this),this.pc(),this.Tf())};E.prototype.isUpdateRequested=function(){return this.Kf};E.prototype.delayInitialization=function(a){void 0===a&&(a=null);var b=this.Ra,c=b.isEnabled;b.dj();b.isEnabled=!1;Jg(this);this.De=!1;b.isEnabled=c;null!==a&&v.setTimeout(a,1)}; -E.prototype.requestUpdate=E.prototype.ue=function(a){void 0===a&&(a=!1);if(!0!==this.Kf&&!(this.Xc||!1===a&&this.Kd)){this.Kf=!0;var b=this;requestAnimationFrame(function(){b.Kf&&b.Tf()})}};E.prototype.maybeUpdate=E.prototype.Tf=function(){if(!this.Rn||this.Kf)this.Rn&&(this.Rn=!1),Jg(this)};function Gj(a,b){a.Ra.uf||a.Xc||!a.Zl||rj(a)||(b&&sj(a),uj(a,!1))} -function Jg(a){if(!a.Kd&&(a.Kf=!1,null!==a.Nb)){a.Kd=!0;var b=a.Ra,c=a.LC;if(!b.ao&&0!==c.length){for(var d=c.n,e=d.length,f=0;fb;b++){var c=a.cg.i;if(null===c||0===a.cg.count)break;a.cg=new J(G);a.SA(c,a.cg)}} -E.prototype.SA=function(a,b){for(a.reset();a.next();){var c=a.value;!c.Pd()||c instanceof T||!c.isVisible()||(c.yl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c))}for(a.reset();a.next();)c=a.value,c instanceof T&&c.isVisible()&&Mj(this,c);for(a.reset();a.next();)c=a.value,c instanceof W&&c.isVisible()&&(c.yl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c));for(a.reset();a.next();)c=a.value,c instanceof pf&&c.isVisible()&&(c.yl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c))}; +function Kj(a){var b=a.Yb.n;a.yf(b,b.length,a);a.Hk!==zf?a.scale=vj(a,a.Hk):a.Tl!==zf?a.scale=vj(a,a.Tl):(b=a.WH,isFinite(b)&&0b;b++){var c=a.cg.i;if(null===c||0===a.cg.count)break;a.cg=new J(G);a.TA(c,a.cg)}} +E.prototype.TA=function(a,b){for(a.reset();a.next();){var c=a.value;!c.Pd()||c instanceof T||!c.isVisible()||(c.zl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c))}for(a.reset();a.next();)c=a.value,c instanceof T&&c.isVisible()&&Mj(this,c);for(a.reset();a.next();)c=a.value,c instanceof W&&c.isVisible()&&(c.zl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c));for(a.reset();a.next();)c=a.value,c instanceof pf&&c.isVisible()&&(c.zl()?($h(c,Infinity,Infinity),c.Cc()):b.add(c))}; function Mj(a,b){for(var c=v.lb(),d=v.lb(),e=b.Hc;e.next();){var f=e.value;f.isVisible()&&(f instanceof T?(Nj(f)||Oj(f)||Pj(f))&&Mj(a,f):f instanceof W?f.V===b||f.aa===b?d.push(f):c.push(f):($h(f,Infinity,Infinity),f.Cc()))}for(var e=c.length,h=0;hx+1&& -(B=Math.max((u-x)*D+a.Gb,B)),q+k+1n+1&&(I=Math.max((p-n)*D+a.Lb,I)),r+l+1x+1&&(B=Math.max((u-x)*D+a.Gb,B)),q+1n+1&&(I=Math.max((p-n)*D+l,I)),r+1x+1&&(b.scrollLeft=a.position.x*D));a.Rz&&a.ne&&(r+1n+1&&(b.scrollTop=a.position.y*D));h&&(a.Rq=!0);m=a.Gb;c=a.Lb;b.style.width=m+(a.Fk?a.yd:0)+"px";b.style.height=c+(a.rj?a.yd:0)+"px";a.$y=!1;return d!==m||e!==c||a.Ra.uc?(n=a.ub,a.Mt(f,n,h),!1):!0} +u.x),Math.abs(r.y-u.y)));Oa(r,y);Oa(u,y);m.push(new z(Math.min(r.x,u.x),Math.min(r.y,u.y),Math.abs(r.x-u.x),Math.abs(r.y-u.y)));this.Gk.Ol(this)&&(h=0x+1&& +(B=Math.max((u-x)*D+a.Gb,B)),q+k+1n+1&&(I=Math.max((p-n)*D+a.Lb,I)),r+l+1x+1&&(B=Math.max((u-x)*D+a.Gb,B)),q+1n+1&&(I=Math.max((p-n)*D+l,I)),r+1x+1&&(b.scrollLeft=a.position.x*D));a.Sz&&a.ne&&(r+1n+1&&(b.scrollTop=a.position.y*D));h&&(a.Rq=!0);m=a.Gb;c=a.Lb;b.style.width=m+(a.Fk?a.yd:0)+"px";b.style.height=c+(a.rj?a.yd:0)+"px";a.az=!1;return d!==m||e!==c||a.Ra.uc?(n=a.ub,a.Mt(f,n,h),!1):!0} E.prototype.add=E.prototype.add=function(a){v.A(a,R,E,"add:part");var b=a.g;if(b!==this){null!==b&&v.k("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+b.toString());this.tn&&(a.yj="Tool");var c=a.Sf,b=this.bt(c);null===b&&(b=this.bt(""));null===b&&v.k('Cannot add a Part when unable find a Layer named "'+c+'" and there is no default Layer');a.layer!==b&&(c=b.gp(99999999,a,a.g===this),0<=c&&this.Kc(Kd,"parts",b,null,a,null,c),b.Fc||this.pc(),a.H(Wj),c=a.yt,null!== c&&c(a,null,b))}}; E.prototype.gp=function(a){if(a instanceof S){if(this.qo.add(a),a instanceof T){var b=a.Sa;null===b?this.Xk.add(a):b.no.add(a);b=a.Qb;null!==b&&(b.g=this)}}else a instanceof W?this.jo.add(a):a instanceof pf||this.zb.add(a);var c=this;Xj(a,function(a){Yj(c,a)});a.Ib&&a.Q();b=a.data;null!==b&&(a instanceof pf||(a instanceof W?this.Ak.add(b,a):this.ni.add(b,a)),Xj(a,function(a){Zj(c,a)}));!0!==Oj(a)&&!0!==Pj(a)||this.cg.add(a);ak(a,!0,this);bk(a)?(a.Z.K()&&this.qa(Ki(a,a.Z)),this.pc()):a.isVisible()&& a.Z.K()&&this.qa(Ki(a,a.Z));this.ue()}; E.prototype.Oe=function(a){a.Ts();if(a instanceof S){if(this.qo.remove(a),a instanceof T){var b=a.Sa;null===b?this.Xk.remove(a):b.no.remove(a);b=a.Qb;null!==b&&(b.g=null)}}else a instanceof W?this.jo.remove(a):a instanceof pf||this.zb.remove(a);var c=this;Xj(a,function(a){ck(c,a)});b=a.data;null!==b&&(a instanceof pf||(a instanceof W?this.Ak.remove(b):this.ni.remove(b)),Xj(a,function(a){dk(c,a)}));this.cg.remove(a);bk(a)?(a.Z.K()&&this.qa(Ki(a,a.Z)),this.pc()):a.isVisible()&&a.Z.K()&&this.qa(Ki(a, -a.Z));this.ue()};E.prototype.remove=E.prototype.remove=function(a){v.A(a,R,E,"remove:part");a.jb=!1;a.bh=!1;var b=a.layer;if(null!==b&&b.g===this){a.H(ek);a.Rm();var c=b.Oe(-1,a,!1);0<=c&&this.Kc(Ld,"parts",b,a,null,c,null);c=a.yt;null!==c&&c(a,b,null)}};E.prototype.removeParts=E.prototype.zA=function(a,b){if(v.isArray(a))for(var c=v.Va(a),d=0;dd&&this.pc()}; +E.prototype.addLayerBefore=E.prototype.HG=function(a,b){fk(this,a,b);a.Lc(this);var c=this.Yb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.Vd&&this.Kc(Ld,"layers",this,a,null,d,null));for(var e=c.count,f=0;fd&&this.pc()}; E.prototype.addLayerAfter=function(a,b){fk(this,a,b);a.Lc(this);var c=this.Yb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.Vd&&this.Kc(Ld,"layers",this,a,null,d,null));for(var e=c.count,f=0;fd&&this.pc()}; -E.prototype.removeLayer=function(a){v.A(a,xe,E,"removeLayer:layer");a.g!==this&&v.k("Cannot remove a Layer from another Diagram: "+a+" of "+a.g);if(""!==a.name){var b=this.Yb,c=b.indexOf(a);if(b.remove(a)){for(b=a.zb.copy().i;b.next();){var d=b.value,e=d.Sf;d.Sf=e!==a.name?e:""}null!==this.Vd&&this.Kc(Ld,"layers",this,a,null,c,null);this.qa();this.pc()}}};E.prototype.findLayer=E.prototype.bt=function(a){for(var b=this.Zw;b.next();){var c=b.value;if(c.name===a)return c}return null}; -E.prototype.addModelChangedListener=E.prototype.IG=function(a){v.j(a,"function",E,"addModelChangedListener:listener");null===this.Mg&&(this.Mg=new H("function"));this.Mg.add(a);this.ca.Dm(a)};E.prototype.removeModelChangedListener=function(a){v.j(a,"function",E,"removeModelChangedListener:listener");null!==this.Mg&&(this.Mg.remove(a),0===this.Mg.count&&(this.Mg=null));this.ca.Pt(a)}; -E.prototype.addChangedListener=E.prototype.Dm=function(a){v.j(a,"function",E,"addChangedListener:listener");null===this.hi&&(this.hi=new H("function"));this.hi.add(a)};E.prototype.removeChangedListener=E.prototype.Pt=function(a){v.j(a,"function",E,"removeChangedListener:listener");null!==this.hi&&(this.hi.remove(a),0===this.hi.count&&(this.hi=null))}; -E.prototype.xw=function(a){this.nb||this.ma.tE(a);a.wc!==Jd&&(this.bi=!0);if(null!==this.hi){var b=this.hi,c=b.length;if(1===c)b=b.ha(0),b(a);else if(0!==c)for(var d=b.dc(),e=0;ea.eh&&(c=a.eh);e=v.Sb(a.Xa.x+h/b-h/c,a.Xa.y+k/b-k/c);a.position=e;v.v(e);a.Vb=c;a.Mt(d,a.ub);a.Xc=!1;uj(a,!1);c= -a.Ra;c.uc&&Ei(c,b,a.Vb);a.qa();Fj(a)}}E.prototype.Mt=function(a,b,c){void 0===c&&(c=!1);c||Fj(this);qj(this);var d=this.Qb;null===d||!d.Ww||this.dl!==zf||c||a.width===b.width&&a.height===b.height||d.H();d=this.Ya;!0===this.am&&d instanceof nf&&(this.P.da=this.NF(this.P.lf),d.doMouseMove());this.yE(a,b);Ij(this);this.Ba("ViewportBoundsChanged",c?v.vh:null,a)}; -function Ij(a,b){void 0===b&&(b=null);var c=a.md;if(null!==c&&c.visible){for(var d=v.Ll(),e=1,f=1,h=c.ya.n,k=h.length,l=0;ln||(hk(m.Cb)?f=f*n/K.oE(f,n):e=e*n/K.oE(e,n))}h=c.Nw;d.m(f*h.width,e*h.height);h=f=l=k=0;if(null!==b)k=b.width,l=b.height,f=b.x,h=b.y;else{e=v.Zf();f=a.ub;e.m(f.x,f.y,f.width,f.height);for(h=a.Gv.i;h.next();)f=h.value.ub,f.K()&&Ya(e,f.x,f.y,f.width,f.height);k=e.width;l=e.height;f=e.x;h=e.y;if(!e.K())return}c.width=k+2*d.width;c.height=l+2*d.height; +E.prototype.updateAllTargetBindings=E.prototype.QF=function(a){void 0===a&&(a="");for(var b=this.El;b.next();)b.value.Jb(a);for(b=this.ih;b.next();)b.value.Jb(a);for(b=this.links;b.next();)b.value.Jb(a)};E.prototype.updateAllRelationshipsFromData=E.prototype.EJ=function(){for(var a=this.El;a.next();)a.value.updateRelationshipsFromData();for(a=this.ih;a.next();)a.value.updateRelationshipsFromData();for(a=this.links;a.next();)a.value.updateRelationshipsFromData()}; +function gk(a,b,c){if(a.Xc||a.Kd)a.Vb=c,c=a.Ra,c.uc&&Ei(c,b,a.Vb);else if(a.Xc=!0,null===a.vb)a.Vb=c;else{var d=a.ub.copy(),e=a.Gb,f=a.Lb;d.width=a.Gb/b;d.height=a.Lb/b;var h=a.Pl.x,k=a.Pl.y,l=a.UD;isNaN(h)&&(l.Yi()?l.ep(Eb)?h=0:l.ep(Ib)&&(h=e-1):h=l.fd()?l.x*(e-1):e/2);isNaN(k)&&(l.Yi()?l.ep(Db)?k=0:l.ep(Jb)&&(k=f-1):k=l.fd()?l.y*(f-1):f/2);null!==a.nF&&(c=a.nF(a,c));ca.eh&&(c=a.eh);e=v.Sb(a.Xa.x+h/b-h/c,a.Xa.y+k/b-k/c);a.position=e;v.v(e);a.Vb=c;a.Mt(d,a.ub);a.Xc=!1;uj(a,!1);c= +a.Ra;c.uc&&Ei(c,b,a.Vb);a.qa();Fj(a)}}E.prototype.Mt=function(a,b,c){void 0===c&&(c=!1);c||Fj(this);qj(this);var d=this.Qb;null===d||!d.Xw||this.dl!==zf||c||a.width===b.width&&a.height===b.height||d.H();d=this.Ya;!0===this.bm&&d instanceof nf&&(this.P.da=this.OF(this.P.mf),d.doMouseMove());this.zE(a,b);Ij(this);this.Ba("ViewportBoundsChanged",c?v.vh:null,a)}; +function Ij(a,b){void 0===b&&(b=null);var c=a.md;if(null!==c&&c.visible){for(var d=v.Ml(),e=1,f=1,h=c.ya.n,k=h.length,l=0;ln||(hk(m.Cb)?f=f*n/K.pE(f,n):e=e*n/K.pE(e,n))}h=c.Ow;d.m(f*h.width,e*h.height);h=f=l=k=0;if(null!==b)k=b.width,l=b.height,f=b.x,h=b.y;else{e=v.Zf();f=a.ub;e.m(f.x,f.y,f.width,f.height);for(h=a.Gv.i;h.next();)f=h.value.ub,f.K()&&Ya(e,f.x,f.y,f.width,f.height);k=e.width;l=e.height;f=e.x;h=e.y;if(!e.K())return}c.width=k+2*d.width;c.height=l+2*d.height; e=v.M();K.dt(f,h,0,0,d.width,d.height,e);e.offset(-d.width,-d.height);v.ck(d);c.Y.location=e;v.v(e)}}E.prototype.clearSelection=E.prototype.yw=function(){var a=0a&&v.wa(a,">= 0",E,"scrollHorizontalLineChange"),this.Qv=a,this.h("scrollHorizontalLineChange",b,a))}); v.defineProperty(E,{Vt:"scrollVerticalLineChange"},function(){return this.Uv},function(a){var b=this.Uv;b!==a&&(v.j(a,"number",E,"scrollVerticalLineChange"),0>a&&v.wa(a,">= 0",E,"scrollVerticalLineChange"),this.Uv=a,this.h("scrollVerticalLineChange",b,a))});v.defineProperty(E,{P:"lastInput"},function(){return this.Ob},function(a){this.Ob=a});v.defineProperty(E,{xc:"firstInput"},function(){return this.ti},function(a){this.ti=a}); -v.defineProperty(E,{Zb:"currentCursor"},function(){return this.jy},function(a){""===a&&(a=this.xq);this.jy!==a&&(v.j(a,"string",E,"currentCursor"),null!==this.vb&&(this.jy=a,this.vb.style.cursor=a,this.Nb.style.cursor=a))});v.defineProperty(E,{oK:"defaultCursor"},function(){return this.xq},function(a){""===a&&(a="auto");var b=this.xq;b!==a&&(v.j(a,"string",E,"defaultCursor"),this.xq=a,this.h("defaultCursor",b,a))}); +v.defineProperty(E,{Zb:"currentCursor"},function(){return this.ky},function(a){""===a&&(a=this.xq);this.ky!==a&&(v.j(a,"string",E,"currentCursor"),null!==this.vb&&(this.ky=a,this.vb.style.cursor=a,this.Nb.style.cursor=a))});v.defineProperty(E,{oK:"defaultCursor"},function(){return this.xq},function(a){""===a&&(a="auto");var b=this.xq;b!==a&&(v.j(a,"string",E,"defaultCursor"),this.xq=a,this.h("defaultCursor",b,a))}); v.defineProperty(E,{click:"click"},function(){return this.ii},function(a){var b=this.ii;b!==a&&(null!==a&&v.j(a,"function",E,"click"),this.ii=a,this.h("click",b,a))});v.defineProperty(E,{Zs:"doubleClick"},function(){return this.ri},function(a){var b=this.ri;b!==a&&(null!==a&&v.j(a,"function",E,"doubleClick"),this.ri=a,this.h("doubleClick",b,a))}); -v.defineProperty(E,{zz:"contextClick"},function(){return this.li},function(a){var b=this.li;b!==a&&(null!==a&&v.j(a,"function",E,"contextClick"),this.li=a,this.h("contextClick",b,a))});v.defineProperty(E,{iA:"mouseOver"},function(){return this.Di},function(a){var b=this.Di;b!==a&&(null!==a&&v.j(a,"function",E,"mouseOver"),this.Di=a,this.h("mouseOver",b,a))}); -v.defineProperty(E,{hA:"mouseHover"},function(){return this.Ci},function(a){var b=this.Ci;b!==a&&(null!==a&&v.j(a,"function",E,"mouseHover"),this.Ci=a,this.h("mouseHover",b,a))});v.defineProperty(E,{gA:"mouseHold"},function(){return this.Bi},function(a){var b=this.Bi;b!==a&&(null!==a&&v.j(a,"function",E,"mouseHold"),this.Bi=a,this.h("mouseHold",b,a))}); -v.defineProperty(E,{GI:"mouseDragOver"},function(){return this.zv},function(a){var b=this.zv;b!==a&&(null!==a&&v.j(a,"function",E,"mouseDragOver"),this.zv=a,this.h("mouseDragOver",b,a))});v.defineProperty(E,{fA:"mouseDrop"},function(){return this.Ai},function(a){var b=this.Ai;b!==a&&(null!==a&&v.j(a,"function",E,"mouseDrop"),this.Ai=a,this.h("mouseDrop",b,a))}); -v.defineProperty(E,{PA:"toolTip"},function(){return this.Li},function(a){var b=this.Li;b!==a&&(null!==a&&v.A(a,pf,E,"toolTip"),this.Li=a,this.h("toolTip",b,a))});v.defineProperty(E,{contextMenu:"contextMenu"},function(){return this.mi},function(a){var b=this.mi;b!==a&&(null!==a&&v.A(a,pf,E,"contextMenu"),this.mi=a,this.h("contextMenu",b,a))}); -v.defineProperty(E,{pb:"commandHandler"},function(){return this.by},function(a){var b=this.by;b!==a&&(v.A(a,Me,E,"commandHandler"),null!==a.g&&v.k("Cannot share CommandHandlers between Diagrams: "+a.toString()),null!==b&&b.Lc(null),this.by=a,a.Lc(this))});v.defineProperty(E,{mb:"toolManager"},function(){return this.jz},function(a){var b=this.jz;b!==a&&(v.A(a,nf,E,"toolManager"),null!==a.g&&v.k("Cannot share ToolManagers between Diagrams: "+a.toString()),null!==b&&b.Lc(null),this.jz=a,a.Lc(this))}); -v.defineProperty(E,{Ys:"defaultTool"},function(){return this.ny},function(a){var b=this.ny;b!==a&&(v.A(a,Le,E,"defaultTool"),this.ny=a,this.Ya===b&&(this.Ya=a))});v.defineProperty(E,{Ya:"currentTool"},function(){return this.ky},function(a){var b=this.ky;null!==b&&(b.ra&&b.doDeactivate(),b.cancelWaitAfter(),b.doStop());null===a&&(a=this.Ys);null!==a&&(v.A(a,Le,E,"currentTool"),this.ky=a,a.Lc(this),a.doStart())});v.u(E,{selection:"selection"},function(){return this.Wv}); +v.defineProperty(E,{Az:"contextClick"},function(){return this.li},function(a){var b=this.li;b!==a&&(null!==a&&v.j(a,"function",E,"contextClick"),this.li=a,this.h("contextClick",b,a))});v.defineProperty(E,{jA:"mouseOver"},function(){return this.Di},function(a){var b=this.Di;b!==a&&(null!==a&&v.j(a,"function",E,"mouseOver"),this.Di=a,this.h("mouseOver",b,a))}); +v.defineProperty(E,{iA:"mouseHover"},function(){return this.Ci},function(a){var b=this.Ci;b!==a&&(null!==a&&v.j(a,"function",E,"mouseHover"),this.Ci=a,this.h("mouseHover",b,a))});v.defineProperty(E,{hA:"mouseHold"},function(){return this.Bi},function(a){var b=this.Bi;b!==a&&(null!==a&&v.j(a,"function",E,"mouseHold"),this.Bi=a,this.h("mouseHold",b,a))}); +v.defineProperty(E,{GI:"mouseDragOver"},function(){return this.zv},function(a){var b=this.zv;b!==a&&(null!==a&&v.j(a,"function",E,"mouseDragOver"),this.zv=a,this.h("mouseDragOver",b,a))});v.defineProperty(E,{gA:"mouseDrop"},function(){return this.Ai},function(a){var b=this.Ai;b!==a&&(null!==a&&v.j(a,"function",E,"mouseDrop"),this.Ai=a,this.h("mouseDrop",b,a))}); +v.defineProperty(E,{QA:"toolTip"},function(){return this.Li},function(a){var b=this.Li;b!==a&&(null!==a&&v.A(a,pf,E,"toolTip"),this.Li=a,this.h("toolTip",b,a))});v.defineProperty(E,{contextMenu:"contextMenu"},function(){return this.mi},function(a){var b=this.mi;b!==a&&(null!==a&&v.A(a,pf,E,"contextMenu"),this.mi=a,this.h("contextMenu",b,a))}); +v.defineProperty(E,{pb:"commandHandler"},function(){return this.ey},function(a){var b=this.ey;b!==a&&(v.A(a,Me,E,"commandHandler"),null!==a.g&&v.k("Cannot share CommandHandlers between Diagrams: "+a.toString()),null!==b&&b.Lc(null),this.ey=a,a.Lc(this))});v.defineProperty(E,{mb:"toolManager"},function(){return this.kz},function(a){var b=this.kz;b!==a&&(v.A(a,nf,E,"toolManager"),null!==a.g&&v.k("Cannot share ToolManagers between Diagrams: "+a.toString()),null!==b&&b.Lc(null),this.kz=a,a.Lc(this))}); +v.defineProperty(E,{Ys:"defaultTool"},function(){return this.oy},function(a){var b=this.oy;b!==a&&(v.A(a,Le,E,"defaultTool"),this.oy=a,this.Ya===b&&(this.Ya=a))});v.defineProperty(E,{Ya:"currentTool"},function(){return this.ly},function(a){var b=this.ly;null!==b&&(b.ra&&b.doDeactivate(),b.cancelWaitAfter(),b.doStop());null===a&&(a=this.Ys);null!==a&&(v.A(a,Le,E,"currentTool"),this.ly=a,a.Lc(this),a.doStart())});v.u(E,{selection:"selection"},function(){return this.Wv}); v.defineProperty(E,{yI:"maxSelectionCount"},function(){return this.vv},function(a){var b=this.vv;if(b!==a)if(v.j(a,"number",E,"maxSelectionCount"),0<=a&&!isNaN(a)){if(this.vv=a,this.h("maxSelectionCount",b,a),!this.ma.kb&&(a=this.selection.count-a,0= 0",E,"maxSelectionCount")}); v.defineProperty(E,{JI:"nodeSelectionAdornmentTemplate"},function(){return this.Av},function(a){var b=this.Av;b!==a&&(v.A(a,pf,E,"nodeSelectionAdornmentTemplate"),this.Av=a,this.h("nodeSelectionAdornmentTemplate",b,a))});v.defineProperty(E,{OH:"groupSelectionAdornmentTemplate"},function(){return this.Zu},function(a){var b=this.Zu;b!==a&&(v.A(a,pf,E,"groupSelectionAdornmentTemplate"),this.Zu=a,this.h("groupSelectionAdornmentTemplate",b,a))}); v.defineProperty(E,{sI:"linkSelectionAdornmentTemplate"},function(){return this.rv},function(a){var b=this.rv;b!==a&&(v.A(a,pf,E,"linkSelectionAdornmentTemplate"),this.rv=a,this.h("linkSelectionAdornmentTemplate",b,a))});v.u(E,{Ym:"highlighteds"},function(){return this.dv}); -v.defineProperty(E,{bi:"isModified"},function(){var a=this.ma;return a.isEnabled?null!==a.Ti?!0:this.Ky&&this.Kg!==a.Xi:this.Ky},function(a){if(this.Ky!==a){v.j(a,"boolean",E,"isModified");this.Ky=a;var b=this.ma;!a&&b.isEnabled&&(this.Kg=b.Xi);a||lk(this)}});function lk(a){var b=a.bi;a.tD!==b&&(a.tD=b,a.Ba("Modified"))} -v.defineProperty(E,{ca:"model"},function(){return this.Vd},function(a){var b=this.Vd;if(b!==a){v.A(a,F,E,"model");this.Ya.doCancel();null!==b&&b.ma!==a.ma&&b.ma.FE&&v.k("Do not replace a Diagram.model while a transaction is in progress.");this.Ra.dj();this.yw();this.De=!1;this.Rn=!0;this.Kg=-2;this.Kf=!1;var c=this.Kd;this.Kd=!0;this.Ra.fn("Model");null!==b&&(null!==this.Mg&&this.Mg.each(function(a){b.Pt(a)}),b.Pt(this.yC),b instanceof Q&&wk(this,b.dh),wk(this,b.yg));this.Vd=a;a.Dm(this.xC);xk(this, -a.yg);a instanceof Q&&yk(this,a.dh);a.Pt(this.xC);a.Dm(this.yC);null!==this.Mg&&this.Mg.each(function(b){a.Dm(b)});this.Kd=c;this.Xc||this.qa();null!==b&&(a.ma.isEnabled=b.ma.isEnabled)}});v.defineProperty(E,{Qa:null},function(){return this.qC},function(a){this.qC=a});v.u(E,{bx:null},function(){return this.jG}); -function cj(a,b){if(b.ca===a.ca){var c=b.wc,d=b.propertyName;if(c===Jd&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.mb,c.kf.each(function(b){b.Lc(a)}),c.Uf.each(function(b){b.Lc(a)}),c.Vf.each(function(b){b.Lc(a)}),a.Kd||a.De||(a.Pu=!0,a.Rn&&(a.Kf=!0));else if("StartingUndo"===d||"StartingRedo"===d){var e=a.Ra;e.uf&&!a.nb&&e.dj();a.Ba("ChangingSelection")}else"StartedTransaction"===d&&(e=a.Ra,e.uf&&!a.nb&&e.dj());else if(a.Qa){a.Qa=!1;try{var f=b.jf;if(""!==f)if(c===Id){if("linkFromKey"===f){var h= -b.object,k=a.rg(h);if(null!==k){var l=b.newValue,m=a.$e(l);k.V=m}}else if("linkToKey"===f)h=b.object,k=a.rg(h),null!==k&&(l=b.newValue,m=a.$e(l),k.aa=m);else if("linkFromPortId"===f){if(h=b.object,k=a.rg(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.tg=n)}}else if("linkToPortId"===f)h=b.object,k=a.rg(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.th=n));else if("nodeGroupKey"===f){var h=b.object,p=a.Zh(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.$e(q);p.Sa=r instanceof T?r: -null}else p.Sa=null}}else if("linkLabelKeys"===f){if(h=b.object,k=a.rg(h),null!==k){var s=b.oldValue,t=b.newValue;if(v.isArray(s))for(var u=v.Va(s),x=0;xl)){var m=l;Fk(k)&&m++;k.Oe(m);Gk(k,m,l)}}}}function Zj(a,b){var c=b.vj;if(v.isArray(c)){var d=a.dm.ka(c);if(null===d)d=[],d.push(b),a.dm.add(c,d);else{for(c=0;cl)){var m=l;Fk(k)&&m++;k.Oe(m);Gk(k,m,l)}}}}function Zj(a,b){var c=b.vj;if(v.isArray(c)){var d=a.em.ka(c);if(null===d)d=[],d.push(b),a.em.add(c,d);else{for(c=0;c=f.length)return!1;for(var h=0;hthis.scale&&(this.scale=a)):v.wa(a,"> 0",E,"minScale"))}); -v.defineProperty(E,{eh:"maxScale"},function(){return this.uv},function(a){v.Xe(a,E,"maxScale");var b=this.uv;b!==a&&(0 0",E,"maxScale"))});v.defineProperty(E,{Ol:"zoomPoint"},function(){return this.mw},function(a){this.mw.L(a)||(v.A(a,w,E,"zoomPoint"),this.mw=a=a.S())}); -v.defineProperty(E,{TD:"contentAlignment"},function(){return this.zn},function(a){var b=this.zn;b.L(a)||(v.A(a,L,E,"contentAlignment"),this.zn=a=a.S(),this.h("contentAlignment",b,a),uj(this,!1))});v.defineProperty(E,{EK:"initialContentAlignment"},function(){return this.Vn},function(a){var b=this.Vn;b.L(a)||(v.A(a,L,E,"initialContentAlignment"),this.Vn=a=a.S(),this.h("initialContentAlignment",b,a))}); -v.defineProperty(E,{padding:"padding"},function(){return this.Ve},function(a){"number"===typeof a?a=new cb(a):v.A(a,cb,E,"padding");var b=this.Ve;b.L(a)||(this.Ve=a=a.S(),this.pc(),this.h("padding",b,a))});v.u(E,{ih:"nodes"},function(){return this.qo.i});v.u(E,{links:"links"},function(){return this.jo.i});v.u(E,{Dl:"parts"},function(){return this.zb.i}); +v.defineProperty(E,{eh:"maxScale"},function(){return this.uv},function(a){v.Xe(a,E,"maxScale");var b=this.uv;b!==a&&(0 0",E,"maxScale"))});v.defineProperty(E,{Pl:"zoomPoint"},function(){return this.mw},function(a){this.mw.L(a)||(v.A(a,w,E,"zoomPoint"),this.mw=a=a.S())}); +v.defineProperty(E,{UD:"contentAlignment"},function(){return this.zn},function(a){var b=this.zn;b.L(a)||(v.A(a,L,E,"contentAlignment"),this.zn=a=a.S(),this.h("contentAlignment",b,a),uj(this,!1))});v.defineProperty(E,{EK:"initialContentAlignment"},function(){return this.Vn},function(a){var b=this.Vn;b.L(a)||(v.A(a,L,E,"initialContentAlignment"),this.Vn=a=a.S(),this.h("initialContentAlignment",b,a))}); +v.defineProperty(E,{padding:"padding"},function(){return this.Ve},function(a){"number"===typeof a?a=new cb(a):v.A(a,cb,E,"padding");var b=this.Ve;b.L(a)||(this.Ve=a=a.S(),this.pc(),this.h("padding",b,a))});v.u(E,{ih:"nodes"},function(){return this.qo.i});v.u(E,{links:"links"},function(){return this.jo.i});v.u(E,{El:"parts"},function(){return this.zb.i}); E.prototype.findTopLevelNodesAndLinks=function(){for(var a=new J(R),b=this.qo.i;b.next();){var c=b.value;c.ip&&a.add(c)}for(b=this.jo.i;b.next();)c=b.value,c.ip&&a.add(c);return a.i};E.prototype.findTopLevelGroups=function(){return this.Xk.i};v.defineProperty(E,{Qb:"layout"},function(){return this.Ud},function(a){var b=this.Ud;b!==a&&(v.A(a,Ne,E,"layout"),null!==b&&(b.g=null,b.group=null),this.Ud=a,a.g=this,a.group=null,this.yu=!0,this.h("layout",b,a),this.ue())}); E.prototype.layoutDiagram=function(a){sj(this);a&&Lk(this,!0);Jj(this,!1)};function Lk(a,b){for(var c=a.Xk.i;c.next();)Tk(a,c.value,b);null!==a.Qb&&(b?a.Qb.xf=!1:a.Qb.H())}function Tk(a,b,c){if(null!==b){for(var d=b.no.i;d.next();)Tk(a,d.value,c);null!==b.Qb&&(c?b.Qb.xf=!1:b.Qb.H())}} -function Jj(a,b){if(!a.oy){var c=a.Qb,d=a.Qa;a.Qa=!0;try{a.Rb("Layout");var e=a.Ra;1!==a.ma.uh||e.uf||e.uc||e.fn("Layout");for(var f=a.Xk.i;f.next();)Uk(a,f.value,b);c.xf||b&&!c.IE&&1!==a.ma.uh||(c.doLayout(a),sj(a),c.xf=!0)}finally{a.Ad("Layout"),a.yu=!c.xf,a.Qa=d}}}function Uk(a,b,c){if(null!==b){for(var d=b.no.i;d.next();)Uk(a,d.value,c);d=b.Qb;null===d||d.xf||c&&!d.IE||(b.Wy=!b.location.K(),d.doLayout(b),b.H(Vk),d.xf=!0,Mj(a,b))}} +function Jj(a,b){if(!a.py){var c=a.Qb,d=a.Qa;a.Qa=!0;try{a.Rb("Layout");var e=a.Ra;1!==a.ma.uh||e.uf||e.uc||e.fn("Layout");for(var f=a.Xk.i;f.next();)Uk(a,f.value,b);c.xf||b&&!c.JE&&1!==a.ma.uh||(c.doLayout(a),sj(a),c.xf=!0)}finally{a.Ad("Layout"),a.yu=!c.xf,a.Qa=d}}}function Uk(a,b,c){if(null!==b){for(var d=b.no.i;d.next();)Uk(a,d.value,c);d=b.Qb;null===d||d.xf||c&&!d.JE||(b.Xy=!b.location.K(),d.doLayout(b),b.H(Vk),d.xf=!0,Mj(a,b))}} v.defineProperty(E,{Qd:"isTreePathToChildren"},function(){return this.mv},function(a){var b=this.mv;if(b!==a&&(v.j(a,"boolean",E,"isTreePathToChildren"),this.mv=a,this.h("isTreePathToChildren",b,a),!this.ma.kb))for(a=this.ih;a.next();)Wk(a.value)});E.prototype.findTreeRoots=function(){for(var a=new H(S),b=this.ih;b.next();){var c=b.value;c.ip&&null===c.gt()&&a.add(c)}return a.i}; -v.defineProperty(E,{QA:"treeCollapsePolicy"},function(){return this.hw},function(a){var b=this.hw;b!==a&&(v.sb(a,E,E,"treeCollapsePolicy"),this.hw=a,this.h("treeCollapsePolicy",b,a))});v.defineProperty(E,{ah:null},function(){return this.eC},function(a){this.eC=a}); +v.defineProperty(E,{RA:"treeCollapsePolicy"},function(){return this.hw},function(a){var b=this.hw;b!==a&&(v.sb(a,E,E,"treeCollapsePolicy"),this.hw=a,this.h("treeCollapsePolicy",b,a))});v.defineProperty(E,{ah:null},function(){return this.fC},function(a){this.fC=a}); function $i(a){function b(a){var b=a.toLowerCase(),h=new H("function");c.add(a,h);c.add(b,h);d.add(a,a);d.add(b,a)}var c=new pa("string",H),d=new pa("string","string");b("AnimationStarting");b("AnimationFinished");b("BackgroundSingleClicked");b("BackgroundDoubleClicked");b("BackgroundContextClicked");b("ClipboardChanged");b("ClipboardPasted");b("DocumentBoundsChanged");b("ExternalObjectsDropped");b("InitialLayoutCompleted");b("LayoutCompleted");b("LinkDrawn");b("LinkRelinked");b("LinkReshaped");b("Modified"); -b("ObjectSingleClicked");b("ObjectDoubleClicked");b("ObjectContextClicked");b("PartCreated");b("PartResized");b("PartRotated");b("SelectionMoved");b("SelectionCopied");b("SelectionDeleting");b("SelectionDeleted");b("SelectionGrouped");b("SelectionUngrouped");b("ChangingSelection");b("ChangedSelection");b("SubGraphCollapsed");b("SubGraphExpanded");b("TextEdited");b("TreeCollapsed");b("TreeExpanded");b("ViewportBoundsChanged");a.qy=c;a.py=d} -function qa(a,b){var c=a.py.ka(b);return null!==c?c:a.py.ka(b.toLowerCase())}function Xk(a,b){var c=a.qy.ka(b);if(null!==c)return c;c=a.qy.ka(b.toLowerCase());if(null!==c)return c;v.k("Unknown DiagramEvent name: "+b);return null}E.prototype.addDiagramListener=E.prototype.pz=function(a,b){v.j(a,"string",E,"addDiagramListener:name");v.j(b,"function",E,"addDiagramListener:listener");var c=Xk(this,a);null!==c&&c.add(b)}; -E.prototype.removeDiagramListener=E.prototype.bF=function(a,b){v.j(a,"string",E,"removeDiagramListener:name");v.j(b,"function",E,"addDiagramListener:listener");var c=Xk(this,a);null!==c&&c.remove(b)};E.prototype.raiseDiagramEvent=E.prototype.Ba=function(a,b,c){var d=Xk(this,a),e=new Gd;e.g=this;e.name=qa(this,a);void 0!==b&&(e.LA=b);void 0!==c&&(e.pA=c);a=d.length;if(1===a)d=d.ha(0),d(e);else if(0!==a)for(b=d.dc(),c=0;c=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.ub,f=a.scale,e=v.kk(0,0,e.width*f,e.height*f),h=v.Sb(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.Ut,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.ye.y+e.height-d.bottom&&(k=Math.max(a.Vt,1),k|=0,h.y+=k,b.y>e.y+e.height-d.bottom/2&&(h.y+=k),b.y>e.y+e.height-d.bottom/4&&(h.y+=4*k));h.od(K.lk)||(c=new w(c.x+h.x/f,c.y+h.y/f));v.ic(e);v.v(h);return c}E.prototype.makeSVG=E.prototype.makeSvg=function(a){void 0===a&&(a=new ua);a.context="svg";a=fl(this,a);return null!==a?a.Jl:null}; +E.prototype.simulatedMouseMove=E.prototype.Dx=function(a,b,c){if(null!==Jf){var d=Jf.g;c instanceof E||(c=null);var e=Kf;c!==e&&(null!==e&&e!==d&&null!==e.mb.Zd&&($f(e),Jf.Tw=!1,e.mb.Zd.doSimulatedDragLeave()),Kf=c,null!==c&&c!==d&&null!==c.mb.Zd&&(gg(),e=c.mb.Zd,cg.contains(e)||cg.add(e),c.mb.Zd.doSimulatedDragEnter()));if(null===c||c===d||!c.CD||c.cb||!c.Lo)return!1;d=c.mb.Zd;null!==d&&(null!==a?b=c.Mq(a):null===b&&(b=new w),c.Ob.da=b,c.Ob.ml=!1,c.Ob.up=!1,d.doSimulatedDragOver());return!0}return!1}; +E.prototype.simulatedMouseUp=E.prototype.yF=function(a,b,c,d){if(null!==Jf){null===d&&(d=b);b=Kf;var e=Jf.g;if(d!==b){if(null!==b&&b!==e&&null!==b.mb.Zd)return $f(b),Jf.Tw=!1,b.mb.Zd.doSimulatedDragLeave(),!1;Kf=d;null!==d&&null!==d.mb.Zd&&(gg(),b=d.mb.Zd,cg.contains(b)||cg.add(b),d.mb.Zd.doSimulatedDragEnter())}if(null===d)return Jf.doCancel(),!0;if(d!==this)return null!==a&&(c=d.Mq(a)),d.Ob.da=c,d.Ob.ml=!1,d.Ob.up=!0,a=d.mb.Zd,null!==a&&a.doSimulatedDrop(),a=Jf,null!==a&&(d=a.mayCopy(),a.Bf=d?"Copy": +"Move",a.stopTool()),!0}return!1};v.defineProperty(E,{JD:"autoScrollRegion"},function(){return this.Bu},function(a){"number"===typeof a?a=new cb(a):v.A(a,cb,E,"autoScrollRegion");var b=this.Bu;b.L(a)||(this.Bu=a=a.S(),this.pc(),this.h("autoScrollRegion",b,a))});function sg(a,b){a.Au.assign(b);dl(a,a.Au).od(a.position)?$f(a):el(a)} +function el(a){-1===a.vn&&(a.vn=v.setTimeout(function(){if(-1!==a.vn){$f(a);var b=a.P.event;if(null!==b){var c=dl(a,a.Au);c.od(a.position)||(a.position=c,a.P.da=a.OF(a.Au),a.Dx(b,null,b.target.U)||a.doMouseMove(),a.sj=!0,xj(a,a.Yg()),a.je=!0,a.Tf(),el(a))}}},a.qB))}function $f(a){-1!==a.vn&&(v.clearTimeout(a.vn),a.vn=-1)} +function dl(a,b){var c=a.position,d=a.JD;if(0>=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.ub,f=a.scale,e=v.kk(0,0,e.width*f,e.height*f),h=v.Sb(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.Ut,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.ye.y+e.height-d.bottom&&(k=Math.max(a.Vt,1),k|=0,h.y+=k,b.y>e.y+e.height-d.bottom/2&&(h.y+=k),b.y>e.y+e.height-d.bottom/4&&(h.y+=4*k));h.od(K.lk)||(c=new w(c.x+h.x/f,c.y+h.y/f));v.ic(e);v.v(h);return c}E.prototype.makeSVG=E.prototype.makeSvg=function(a){void 0===a&&(a=new ua);a.context="svg";a=fl(this,a);return null!==a?a.Kl:null}; E.prototype.makeImage=function(a){void 0===a&&(a=new ua);var b=(a.document||document).createElement("img");b.src=this.tI(a);return b};E.prototype.makeImageData=E.prototype.tI=function(a){void 0===a&&(a=new ua);var b=fl(this,a);return null!==b?b.toDataURL(a.type,a.details):""};var gl=!1; function fl(a,b){a.Ra.dj();a.Tf();if(null===a.vb)return null;"object"!==typeof b&&v.k("properties argument must be an Object.");var c=!1,d=b.size||null,e=b.scale||null;void 0!==b.scale&&isNaN(b.scale)&&(e="NaN");var f=b.maxSize;void 0===b.maxSize&&(c=!0,f="svg"===b.context?new ia(Infinity,Infinity):new ia(2E3,2E3));var h=b.position||null,k=b.parts||null,l=void 0===b.padding?1:b.padding,m=b.background||null,n=b.omitTemporary;void 0===n&&(n=!0);var p=b.document||document,q=b.elementFinished||null,r= b.showTemporary;void 0===r&&(r=!n);n=b.showGrid;void 0===n&&(n=r);null!==d&&isNaN(d.width)&&isNaN(d.height)&&(d=null);"number"===typeof l?l=new cb(l):l instanceof cb||(l=new cb(0));l.left=Math.max(l.left,0);l.right=Math.max(l.right,0);l.top=Math.max(l.top,0);l.bottom=Math.max(l.bottom,0);a.Nn=!1;nj(a);var s=new Nc(null,p),t=s.getContext("2d"),u=s;if(!(d||e||k||h))return s.width=a.Gb+Math.ceil(l.left+l.right),s.height=a.Lb+Math.ceil(l.top+l.bottom),"svg"===b.context&&(t=u=new Ac(s.Od,p,q),t instanceof -Ac&&(a.Nn=!0)),Tj(a,t,l,new ia(s.width,s.height),a.Vb,a.Xa,k,m,r,n),a.Nn=!0,u;var x=a.pb.Cw,y=new w(0,0),A=a.Bd.copy();A.tJ(a.padding);if(r)for(var B=!0,B=a.Yb.n,I=B.length,D=0;Dx?(e=x,h=A.width,aa=A.height):(h=f.width,aa=f.height)):(h=A.width*e,aa=A.height*e):(e=x,h=A.width,aa=A.height);null!==l?(h+=ba,aa+=B):l=new cb(0);null!==f&&(d=f.width,f=f.height,"svg"!==b.context&&c&&!gl&&(h>d||aa>f)&&(v.trace("Diagram.makeImage(data): Diagram width or height is larger than the default max size. ("+Math.ceil(h)+"x"+Math.ceil(aa)+" vs 2000x2000) Consider increasing the max size."), -gl=!0),isNaN(d)&&(d=2E3),isNaN(f)&&(f=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(f)&&(aa=Math.min(aa,f)));s.width=Math.ceil(h);s.height=Math.ceil(aa);"svg"===b.context&&(t=u=new Ac(s.Od,p,q),t instanceof Ac&&(a.Nn=!0));Tj(a,t,l,new ia(Math.ceil(h),Math.ceil(aa)),e,y,k,m,r,n);a.Nn=!0;return u}E.inherit=function(a,b){v.j(a,"function",E,"inherit");v.j(b,"function",E,"inherit");b.uG&&v.k("Cannot inherit from "+v.bf(b));v.Ja(a,b)}; -function ij(){this.xG="63ad05bbe23a1786468a4c741b6d2";this.Ch=this.xG===this._tk?!0:null} -ij.prototype.Nl=function(a){a.Ig.setTransform(a.He,0,0,a.He,0,0);if(null===this.Ch)a:{var b="f",c=window[v.qg("76a715b2f73f148a")][v.qg("72ba13b5")];a=v.qg;if(a("77bb5bb2f32603de")===window[a("76a715b2f73f148a")][a("6aba19a7ec351488")])try{this.Ch=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b")])([a("7bb8069ae7")]===a(v.adym));if(!1===this.Ch)break a;this.Ch=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([a("7bb8069ae7")]=== +gl=!0),isNaN(d)&&(d=2E3),isNaN(f)&&(f=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(f)&&(aa=Math.min(aa,f)));s.width=Math.ceil(h);s.height=Math.ceil(aa);"svg"===b.context&&(t=u=new Ac(s.Od,p,q),t instanceof Ac&&(a.Nn=!0));Tj(a,t,l,new ia(Math.ceil(h),Math.ceil(aa)),e,y,k,m,r,n);a.Nn=!0;return u}E.inherit=function(a,b){v.j(a,"function",E,"inherit");v.j(b,"function",E,"inherit");b.vG&&v.k("Cannot inherit from "+v.cf(b));v.Ja(a,b)}; +function ij(){this.yG="63ad05bbe23a1786468a4c741b6d2";this.Ch=this.yG===this._tk?!0:null} +ij.prototype.Ol=function(a){a.Ig.setTransform(a.He,0,0,a.He,0,0);if(null===this.Ch)a:{var b="f",c=window[v.qg("76a715b2f73f148a")][v.qg("72ba13b5")];a=v.qg;if(a("77bb5bb2f32603de")===window[a("76a715b2f73f148a")][a("6aba19a7ec351488")])try{this.Ch=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b")])([a("7bb8069ae7")]===a(v.adym));if(!1===this.Ch)break a;this.Ch=!window[a("4da118b7ec2108")]([a("5bb806bfea351a904a84515e1b6d38b6")])([a("49bc19a1e6")])([a("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([a("7bb8069ae7")]=== a(v.adym));if(!1===this.Ch)break a}catch(d){}for(var e=c[a("76ad18b4f73e")],f=c[a("73a612b6fb191d")](a("35e7"))+2;fc&&a(v.adym)!==a("7da71ca0ad381e90")&&(c=b[a("73a612b6fb191d")](a("76a715b2ef3e149757")));if(this.Ch=!(0<=c&&cb.timeStamp-a.gm?b.preventDefault():a.lv&&2===b.button?b.preventDefault():(a.Rc=a.Ob,a.Ob=c,Aj(a,a,b,c,!0),c.ml=!0,c.Ye=b.detail,a.ti=c,a.focus(),!0===c.Hq.simulated?(b.preventDefault(),b.simulated=!0):(Jf=null,a.doMouseDown(),a.ti=a.ti.copy(),1===b.button?b.preventDefault():Ej(c,b)))}};a.tp=function(b){if(a.isEnabled){a.am=!0;var c=a.Rc;if(v.$m){if(400> -b.timeStamp-a.gm){b.preventDefault();return}a.gm=b.timeStamp}if(v.$m&&null!==a.os)a.os=null,b.preventDefault();else{a.Rc=a.Ob;a.Ob=c;Aj(a,a,b,c,!0);c.up=!0;c.Ye=b.detail;if(v.cI||v.dI)b.timeStamp-a.gma.Jv)){var c=a.Jf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Rc,a.Rc=a.Ob,a.Ob=c,Dj(a,b,b,c,!0),a.Cx(b,null,c.Cg)||(a.doMouseMove(),Ej(c,b)))}};a.NI=function(b){if("touch"===b.pointerType){var c=a.MC;void 0!==c[b.pointerId]&&(a.Jv--,delete c[b.pointerId],c=a.Jf, -null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId===b.pointerId&&(c[1]=null))}};nj(a);mj(a)}function hl(a){1b.timeStamp-a.hm?b.preventDefault():a.lv&&2===b.button?b.preventDefault():(a.Rc=a.Ob,a.Ob=c,Aj(a,a,b,c,!0),c.ml=!0,c.Ye=b.detail,a.ti=c,a.focus(),!0===c.Hq.simulated?(b.preventDefault(),b.simulated=!0):(Jf=null,a.doMouseDown(),a.ti=a.ti.copy(),1===b.button?b.preventDefault():Ej(c,b)))}};a.tp=function(b){if(a.isEnabled){a.bm=!0;var c=a.Rc;if(v.$m){if(400> +b.timeStamp-a.hm){b.preventDefault();return}a.hm=b.timeStamp}if(v.$m&&null!==a.os)a.os=null,b.preventDefault();else{a.Rc=a.Ob;a.Ob=c;Aj(a,a,b,c,!0);c.up=!0;c.Ye=b.detail;if(v.cI||v.dI)b.timeStamp-a.hma.Jv)){var c=a.Jf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Rc,a.Rc=a.Ob,a.Ob=c,Dj(a,b,b,c,!0),a.Dx(b,null,c.Cg)||(a.doMouseMove(),Ej(c,b)))}};a.NI=function(b){if("touch"===b.pointerType){var c=a.NC;void 0!==c[b.pointerId]&&(a.Jv--,delete c[b.pointerId],c=a.Jf, +null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId===b.pointerId&&(c[1]=null))}};nj(a);mj(a)}function hl(a){1a)&&v.wa(a,"0 <= loc <= 1",ha,"addColorStop:loc");v.j(b,"string",ha,"addColorStop:color");null===this.Gg&&(this.Gg=new pa("number","string"));this.Gg.add(a,b);this.ja===ue&&(this.type=ve);this.Hg=null}; @@ -933,258 +933,258 @@ v.defineProperty(ha,{start:"start"},function(){return this.zo},function(a){this. v.defineProperty(ha,{$s:"endRadius"},function(){return this.Uu},function(a){this.F&&v.la(this,a);v.Xe(a,ha,"endRadius");0>a&&v.wa(a,">= zero",ha,"endRadius");this.Uu=a;this.Hg=null});v.defineProperty(ha,{Ws:"colorStops"},function(){return this.Gg},function(a){this.F&&v.la(this,a);this.Gg=a;this.Hg=null});v.defineProperty(ha,{pattern:"pattern"},function(){return this.Iv},function(a){this.F&&v.la(this,a);this.Iv=a;this.Hg=null}); ha.randomColor=function(a,b){void 0===a&&(a=128);void 0===b&&(b=Math.max(a,255));var c=Math.abs(b-a),d=Math.floor(a+Math.random()*c).toString(16),e=Math.floor(a+Math.random()*c).toString(16),c=Math.floor(a+Math.random()*c).toString(16);2>d.length&&(d="0"+d);2>e.length&&(e="0"+e);2>c.length&&(c="0"+c);return"#"+d+e+c};var ol=v.createElement("canvas").getContext("2d"),ga; ha.isValidColor=ga=function(a){if("black"===a)return!0;if(""===a)return!1;ol.fillStyle="#000000";var b=ol.fillStyle;ol.fillStyle=a;if(ol.fillStyle!==b)return!0;ol.fillStyle="#FFFFFF";b=ol.fillStyle;ol.fillStyle=a;return ol.fillStyle!==b}; -function G(){v.ec(this);this.fa=30723;this.Qc=1;this.Rg=null;this.Pb="";this.nc=this.Kb=null;this.Xa=(new w(NaN,NaN)).freeze();this.nf=K.bB;this.Ej=K.Sp;this.Cj=K.dG;this.le=new la;this.$p=new la;this.Ok=new la;this.Vb=this.Ru=1;this.Ql=0;this.Th=pl;this.mr=K.Rp;this.Zc=(new z(NaN,NaN,NaN,NaN)).freeze();this.mc=(new z(NaN,NaN,NaN,NaN)).freeze();this.Pc=(new z(0,0,NaN,NaN)).freeze();this.xs=this.Iq=this.ga=this.Mr=this.rm=null;this.ys=this.Jq=Infinity;this.Zp=this.Be=jc;this.$r=0;this.Hi=1;this.gq= -0;this.ki=1;this.ss=null;this.es=-Infinity;this.ds=0;this.fs=K.lk;this.gs=ih;this.qq="";this.Nc=this.ia=null;this.wn=-1;this.qm=this.ns=this.ji=this.zk=this.yo=null}v.Xh(G);v.ea("GraphObject",G); -G.prototype.cloneProtected=function(a){a.fa=this.fa|6144;a.Qc=this.Qc;a.Pb=this.Pb;a.Kb=this.Kb;a.nc=this.nc;a.Xa.assign(this.Xa);a.nf=this.nf.S();a.Ej=this.Ej.S();a.Cj=this.Cj.S();a.Ok=this.Ok.copy();a.Vb=this.Vb;a.Ql=this.Ql;a.Th=this.Th;a.mr=this.mr.S();a.Zc.assign(this.Zc);a.mc.assign(this.mc);a.Pc.assign(this.Pc);a.Mr=this.Mr;null!==this.ga&&(a.ga=this.ga.copy());a.Iq=this.Iq;a.xs=this.xs;a.Jq=this.Jq;a.ys=this.ys;a.Be=this.Be.S();a.Zp=this.Zp.S();a.$r=this.$r;a.Hi=this.Hi;a.gq=this.gq;a.ki= -this.ki;a.ss=this.ss;a.es=this.es;a.ds=this.ds;a.fs=this.fs.S();a.gs=this.gs;a.qq=this.qq;null!==this.ia&&(a.ia=this.ia.copy());a.Nc=this.Nc;a.wn=this.wn;null!==this.zk&&(a.zk=v.fl(this.zk));null!==this.ji&&(a.ji=this.ji.copy());a.ns=this.ns};G.prototype.addCopyProperty=G.prototype.FG=function(a){var b=this.zk;if(v.isArray(b))for(var c=0;ck;)k+=f[n++%l],p=!p;q=!1}else k=f[n++%l];k>m&&(k=m);var r=Math.sqrt(k*k/(1+e*e));0>d&&(r=-r);b+=r;c+=e*r;p?a.lineTo(b,c):a.moveTo(b,c);m-=k;p=!p}}G.prototype.raiseChangedEvent=G.prototype.Kc=function(a,b,c,d,e,f,h){var k=this.Y;null!==k&&(k.gn(a,b,c,d,e,f,h),0!==(this.fa&1024)&&c===this&&a===Id&&xl(this,k,b))}; -function xl(a,b,c){var d=a.$o();if(null!==d)for(var e=a.Nc.i;e.next();){var f=e.value,h=null;if(null!==f.jn){h=jf(f,d,a);if(null===h)continue;f.Gx(a,h,c,null)}else if(f.xt){var k=b.g;null!==k&&f.Gx(a,k.ca.gk,c,k)}else{var l=d.data;if(null===l)continue;k=b.g;null!==k&&k.Dx||f.Gx(a,l,c,k)}null!==h&&(k=d.Iw(f.Kl),null!==k&&f.QF(k,h,c))}}G.prototype.Iw=function(a){return this.wn===a?this:null};G.prototype.raiseChanged=G.prototype.h=function(a,b,c){this.Kc(Id,a,this,b,c)}; -function yl(a,b,c,d,e){var f=a.Zc,h=a.Ok;h.reset();zl(a,h,b,c,d,e);a.Ok=h;f.x=b;f.y=c;f.width=d;f.height=e;h.ut()||h.MF(f)}function Al(a,b,c,d){if(!1===a.Ag)return!1;d.multiply(a.transform);return c?a.vg(b,d):a.Lm(b,d)} -G.prototype.jE=function(a,b,c){if(!1===this.Ag)return!1;var d=this.Ia;b=a.$j(b);var e=!1;c&&(e=Qa(a.x,a.y,0,0,0,d.height)a&&(a+=360));return a}; -G.prototype.getDocumentScale=G.prototype.Wi=function(){if(0!==(this.fa&4096)===!1)return this.Ru;var a=this.Vb;return null!==this.T?a*this.T.Wi():a};G.prototype.getLocalPoint=G.prototype.pE=function(a,b){void 0===b&&(b=new w);b.assign(a);this.Wg.$h(b);return b};G.prototype.getNearestIntersectionPoint=G.prototype.sl=function(a,b,c){return this.dp(a.x,a.y,b.x,b.y,c)};g=G.prototype; -g.dp=function(a,b,c,d,e){var f=this.transform,h=1/(f.m11*f.m22-f.m12*f.m21),k=f.m22*h,l=-f.m12*h,m=-f.m21*h,n=f.m11*h,p=h*(f.m21*f.dy-f.m22*f.dx),q=h*(f.m12*f.dx-f.m11*f.dy);if(null!==this.Gm)return f=this.Z,K.sl(f.left,f.top,f.right,f.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.m(0,0);d=this.Ia;c=K.sl(0,0,d.width,d.height,h,a,b,c,e);e.transform(f);return c}; +(K.Qw(a,e,f)||K.Qw(a,f,h)||K.Qw(a,h,k)||K.Qw(a,k,e))&&(l=!0)}v.v(e);v.v(f);v.v(h);v.v(k);return l};G.prototype.getDocumentPoint=G.prototype.Za=function(a,b){void 0===b&&(b=new w);a.se()&&v.k("getDocumentPoint:s Spot must be specific: "+a.toString());var c=this.Ia;b.m(a.x*c.width+a.offsetX,a.y*c.height+a.offsetY);this.Wg.xb(b);return b};G.prototype.getDocumentAngle=G.prototype.ql=function(){var a;a=this.Wg;1===a.m11&&0===a.m12?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360));return a}; +G.prototype.getDocumentScale=G.prototype.Wi=function(){if(0!==(this.fa&4096)===!1)return this.Ru;var a=this.Vb;return null!==this.T?a*this.T.Wi():a};G.prototype.getLocalPoint=G.prototype.qE=function(a,b){void 0===b&&(b=new w);b.assign(a);this.Wg.$h(b);return b};G.prototype.getNearestIntersectionPoint=G.prototype.tl=function(a,b,c){return this.dp(a.x,a.y,b.x,b.y,c)};g=G.prototype; +g.dp=function(a,b,c,d,e){var f=this.transform,h=1/(f.m11*f.m22-f.m12*f.m21),k=f.m22*h,l=-f.m12*h,m=-f.m21*h,n=f.m11*h,p=h*(f.m21*f.dy-f.m22*f.dx),q=h*(f.m12*f.dx-f.m11*f.dy);if(null!==this.Hm)return f=this.Z,K.tl(f.left,f.top,f.right,f.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.m(0,0);d=this.Ia;c=K.tl(0,0,d.width,d.height,h,a,b,c,e);e.transform(f);return c}; function $h(a,b,c,d,e){if(!1!==Nj(a)){var f=a.margin,h=f.right+f.left,f=f.top+f.bottom;b=Math.max(b-h,0);c=Math.max(c-f,0);e=e||0;d=Math.max((d||0)-h,0);e=Math.max(e-f,0);var h=a.angle,f=0,f=a.za,k=0;a.ob&&(k=a.ob);90===h||270===h?(b=isFinite(f.height)?f.height+k:b,c=isFinite(f.width)?f.width+k:c):(b=isFinite(f.width)?f.width+k:b,c=isFinite(f.height)?f.height+k:c);var f=d||0,k=e||0,l=a instanceof C;switch(Bl(a,!0)){case vh:k=f=0;l&&(c=b=Infinity);break;case Rc:isFinite(b)&&b>d&&(f=b);isFinite(c)&& -c>e&&(k=c);break;case rl:isFinite(b)&&b>d&&(f=b);k=0;l&&(c=Infinity);break;case ql:isFinite(c)&&c>e&&(k=c),f=0,l&&(b=Infinity)}var l=a.gf,m=a.wg;f>l.width&&m.widthl.height&&m.heighte&&(k=c);break;case rl:isFinite(b)&&b>d&&(f=b);k=0;l&&(c=Infinity);break;case ql:isFinite(c)&&c>e&&(k=c),f=0,l&&(b=Infinity)}var l=a.hf,m=a.wg;f>l.width&&m.widthl.height&&m.heighta.height||this.Lk.Ue>a.width))&&(c=!0);this.fa=c?this.fa|256:this.fa&-257;this.mc.K()|| -v.k("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.mc.toString());this.hx(f,this.mc);v.ic(f)};g.Pi=function(){}; +g.Cc=function(a,b,c,d,e){this.ui();var f=v.Zf();f.assign(this.mc);this.mc.Oa();if(!1===Oj(this)){var h=this.mc;h.x=a;h.y=b;h.width=c;h.height=d}else this.Pi(a,b,c,d);this.mc.freeze();this.ji=void 0===e?null:e;c=!1;void 0!==e?c=!0:null!==this.T&&(e=this.T.Pc,d=this.Ca,null!==this.Hm&&(d=this.mc),c=b+d.height,d=a+d.width,c=!(0<=a+.05&&d<=e.width+.05&&0<=b+.05&&c<=e.height+.05),this instanceof Bf&&(a=this.Pc,this.tv>a.height||this.Lk.Ue>a.width))&&(c=!0);this.fa=c?this.fa|256:this.fa&-257;this.mc.K()|| +v.k("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.mc.toString());this.ix(f,this.mc);v.ic(f)};g.Pi=function(){}; function Cl(a,b,c,d,e){var f=a.Z;f.x=b;f.y=c;f.width=d;f.height=e;if(!a.za.K()){f=a.Zc;c=a.margin;b=c.right+c.left;var h=c.top+c.bottom;c=f.width+b;f=f.height+h;d+=b;e+=h;b=Bl(a,!0);c===d&&f===e&&(b=vh);switch(b){case vh:if(c>d||f>e)Hj(a,!0),$h(a,c>d?d:c,f>e?e:f);break;case Rc:Hj(a,!0);$h(a,d,e,0,0);break;case rl:Hj(a,!0);$h(a,d,f,0,0);break;case ql:Hj(a,!0),$h(a,c,e,0,0)}}} -g.hx=function(a,b){Dl(this,!1);var c=this.Y;if(null!==c&&null!==c.g){var d=this.Y;null!==d&&(d.Xt!==this&&d.iF!==this&&d.lF!==this||El(d,!0));this.qa();a.L(b)||(c.ul(),this.Bv(c))}};g.Bv=function(a){null!==this.Sd&&El(a,!0)};v.defineProperty(G,{Kp:"shadowVisible"},function(){return this.ns},function(a){var b=this.ns;b!==a&&(this.ns=a,this.h("shadowVisible",b,a))}); -G.prototype.Ze=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof Ac)a:{if(this.visible){var e=null,f=a.Xw;if(this instanceof C&&(this.type===Fl||this.type===Gl))Hl(this,a,b);else{var h=this.mc;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.T;0!==(this.fa&4096)===!0&&Il(this);var m=0!==(this.fa&256),n=!1;this instanceof Bf&&Jl(this,a);if(m){n=l.Eg()?l.Ia:l.Z;if(null!==this.ji)var p= -this.ji,q=p.x,r=p.y,s=p.width,p=p.height;else q=Math.max(h.x,n.x),r=Math.max(h.y,n.y),s=Math.min(h.right,n.right)-q,p=Math.min(h.bottom,n.bottom)-r;if(q>h.width+h.x||h.x>n.width+n.x||r>h.height+h.y||h.y>n.height+n.y)break a;n=!0;Cc(a,1,0,0,1,0,0);a.save();a.beginPath();a.rect(q,r,s,p);a.clip()}q=!1;if(this instanceof R){var t=this,q=!0;if(!t.isVisible())break a}a.Ui.ff=[1,0,0,1,0,0];r=!1;q&&this.zl&&b.ek("drawShadows")&&(s=this.ym,b.az=s.x*b.scale*b.He,b.bz=s.y*b.scale*b.He,b.Qh=t.Qh,b.Tg=t.Tg,Kl(b, -a),a.shadowColor=b.Tg);t=!1;this.Y&&b.ek("drawShadows")&&(t=this.Y.zl);!0===this.Kp?(Kl(b,a),!1===r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0)):!1===this.Kp&&Ll(a);null!==this.nc&&(Ml(this,a,this.nc,!0,!0),!1===r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0),this.nc instanceof ha&&this.nc.type===we?(a.beginPath(),a.rect(h.x,h.y,h.width,h.height),Nl(a,this.nc)):a.fillRect(h.x,h.y,h.width,h.height));this instanceof C?Cc(a,k.m11,k.m12,k.m21,k.m22,k.dx,k.dy):a.Ui.ff=[k.m11,k.m12,k.m21,k.m22,k.dx,k.dy];if(null!==this.Kb){!1=== -r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0);var p=this.Ia,k=h=0,s=p.width,p=p.height,u=0;this instanceof X&&(p=this.Wa.rb,h=p.x,k=p.y,s=p.width,p=p.height,u=this.Ug);Ml(this,a,this.Kb,!0,!1);this.Kb instanceof ha&&this.Kb.type===we?(a.beginPath(),a.rect(h-u/2,k-u/2,s+u,p+u),Nl(a,this.Kb)):a.fillRect(h-u/2,k-u/2,s+u,p+u)}t&&(null!==this.Kb||null!==this.nc||null!==l&&0!==(l.fa&512)||null!==l&&(l.type===lj||l.type===th)&&l.sf()!==this)?(Ol(this,!0),null===this.Kp&&Ll(a)):Ol(this,!1);this.ak(a,b);t&&0!==(this.fa& -512)===!0&&Kl(b,a);q&&t&&Ll(a);m&&(a.restore(),n&&a.tf.pop(),nj(b,a));this instanceof C&&(e=a.tf.pop());!0===r&&a.tf.pop();null!==a.eE&&(null===e&&(f===a.Xw?(Cc(a,1,0,0,1,0,0),e=a.tf.pop()):e=a.Xw),a.eE(this,e))}}}}else{if(this instanceof C&&(this.type===Fl||this.type===Gl)){Hl(this,a,b);1!==c&&(a.globalAlpha=d);return}m=this.mc;if(0!==m.width&&0!==m.height&&!isNaN(m.x)&&!isNaN(m.y)){this instanceof W&&this.Et(!1);e=this.transform;f=this.T;0!==(this.fa&4096)===!0&&Il(this);l=0!==(this.fa&256);this instanceof -Bf&&Jl(this,a);if(l){n=f.Eg()?f.Ia:f.Z;null!==this.ji?(r=this.ji,h=r.x,k=r.y,q=r.width,r=r.height):(h=Math.max(m.x,n.x),k=Math.max(m.y,n.y),q=Math.min(m.right,n.right)-h,r=Math.min(m.bottom,n.bottom)-k);if(h>m.width+m.x||m.x>n.width+n.x||k>m.height+m.y||m.y>n.height+n.y){1!==c&&(a.globalAlpha=d);return}a.save();a.beginPath();a.rect(h,k,q,r);a.clip()}n=!1;if(this instanceof R){n=!0;if(!this.isVisible()){1!==c&&(a.globalAlpha=d);return}this.zl&&b.ek("drawShadows")&&(h=this.ym,b.az=h.x*b.scale*b.He, -b.bz=h.y*b.scale*b.He,b.Qh=this.Qh,b.Tg=this.Tg,Kl(b,a),a.shadowColor=b.Tg)}h=!1;this.Y&&b.ek("drawShadows")&&(h=this.Y.zl);!0===this.Kp?Kl(b,a):!1===this.Kp&&Ll(a);null!==this.nc&&(Ml(this,a,this.nc,!0,!0),this.nc instanceof ha&&this.nc.type===we?(a.beginPath(),a.rect(m.x,m.y,m.width,m.height),Nl(a,this.nc)):a.fillRect(m.x,m.y,m.width,m.height));e.ut()||a.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);null!==this.Kb&&(r=this.Ia,k=m=0,q=r.width,r=r.height,t=0,this instanceof X&&(r=this.Wa.rb,m=r.x, -k=r.y,q=r.width,r=r.height,t=this.Ug),Ml(this,a,this.Kb,!0,!1),this.Kb instanceof ha&&this.Kb.type===we?(a.beginPath(),a.rect(m-t/2,k-t/2,q+t,r+t),Nl(a,this.Kb)):a.fillRect(m-t/2,k-t/2,q+t,r+t));h&&(null!==this.Kb||null!==this.nc||null!==f&&0!==(f.fa&512)||null!==f&&(f.type===lj||f.type===th)&&f.sf()!==this)?(Ol(this,!0),null===this.Kp&&Ll(a)):Ol(this,!1);this.ak(a,b);h&&0!==(this.fa&512)===!0&&Kl(b,a);n&&h&&Ll(a);l?(a.restore(),this instanceof C?nj(b,a,!0):nj(b,a,!1)):e.ut()||(f=1/(e.m11*e.m22-e.m12* -e.m21),a.transform(e.m22*f,-e.m12*f,-e.m21*f,e.m11*f,f*(e.m21*e.dy-e.m22*e.dx),f*(e.m12*e.dx-e.m11*e.dy)))}}1!==c&&(a.globalAlpha=d)}};function Ll(a){a.shadowOffsetX=0;a.shadowOffsetY=0;a.shadowBlur=0}function Kl(a,b){b.shadowOffsetX=a.az;b.shadowOffsetY=a.bz;b.shadowBlur=a.Qh} +g.ix=function(a,b){Dl(this,!1);var c=this.Y;if(null!==c&&null!==c.g){var d=this.Y;null!==d&&(d.Xt!==this&&d.jF!==this&&d.mF!==this||El(d,!0));this.qa();a.L(b)||(c.vl(),this.Bv(c))}};g.Bv=function(a){null!==this.Sd&&El(a,!0)};v.defineProperty(G,{Kp:"shadowVisible"},function(){return this.ns},function(a){var b=this.ns;b!==a&&(this.ns=a,this.h("shadowVisible",b,a))}); +G.prototype.Ze=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof Ac)a:{if(this.visible){var e=null,f=a.Yw;if(this instanceof C&&(this.type===Fl||this.type===Gl))Hl(this,a,b);else{var h=this.mc;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.T;0!==(this.fa&4096)===!0&&Il(this);var m=0!==(this.fa&256),n=!1;this instanceof Bf&&Jl(this,a);if(m){n=l.Eg()?l.Ia:l.Z;if(null!==this.ji)var p= +this.ji,q=p.x,r=p.y,s=p.width,p=p.height;else q=Math.max(h.x,n.x),r=Math.max(h.y,n.y),s=Math.min(h.right,n.right)-q,p=Math.min(h.bottom,n.bottom)-r;if(q>h.width+h.x||h.x>n.width+n.x||r>h.height+h.y||h.y>n.height+n.y)break a;n=!0;Cc(a,1,0,0,1,0,0);a.save();a.beginPath();a.rect(q,r,s,p);a.clip()}q=!1;if(this instanceof R){var t=this,q=!0;if(!t.isVisible())break a}a.Ui.gf=[1,0,0,1,0,0];r=!1;q&&this.Al&&b.ek("drawShadows")&&(s=this.zm,b.bz=s.x*b.scale*b.He,b.cz=s.y*b.scale*b.He,b.Qh=t.Qh,b.Tg=t.Tg,Kl(b, +a),a.shadowColor=b.Tg);t=!1;this.Y&&b.ek("drawShadows")&&(t=this.Y.Al);!0===this.Kp?(Kl(b,a),!1===r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0)):!1===this.Kp&&Ll(a);null!==this.nc&&(Ml(this,a,this.nc,!0,!0),!1===r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0),this.nc instanceof ha&&this.nc.type===we?(a.beginPath(),a.rect(h.x,h.y,h.width,h.height),Nl(a,this.nc)):a.fillRect(h.x,h.y,h.width,h.height));this instanceof C?Cc(a,k.m11,k.m12,k.m21,k.m22,k.dx,k.dy):a.Ui.gf=[k.m11,k.m12,k.m21,k.m22,k.dx,k.dy];if(null!==this.Kb){!1=== +r&&t&&(Cc(a,1,0,0,1,0,0),a.$a(),r=!0);var p=this.Ia,k=h=0,s=p.width,p=p.height,u=0;this instanceof X&&(p=this.Wa.rb,h=p.x,k=p.y,s=p.width,p=p.height,u=this.Ug);Ml(this,a,this.Kb,!0,!1);this.Kb instanceof ha&&this.Kb.type===we?(a.beginPath(),a.rect(h-u/2,k-u/2,s+u,p+u),Nl(a,this.Kb)):a.fillRect(h-u/2,k-u/2,s+u,p+u)}t&&(null!==this.Kb||null!==this.nc||null!==l&&0!==(l.fa&512)||null!==l&&(l.type===lj||l.type===th)&&l.$e()!==this)?(Ol(this,!0),null===this.Kp&&Ll(a)):Ol(this,!1);this.ak(a,b);t&&0!==(this.fa& +512)===!0&&Kl(b,a);q&&t&&Ll(a);m&&(a.restore(),n&&a.tf.pop(),nj(b,a));this instanceof C&&(e=a.tf.pop());!0===r&&a.tf.pop();null!==a.fE&&(null===e&&(f===a.Yw?(Cc(a,1,0,0,1,0,0),e=a.tf.pop()):e=a.Yw),a.fE(this,e))}}}}else{if(this instanceof C&&(this.type===Fl||this.type===Gl)){Hl(this,a,b);1!==c&&(a.globalAlpha=d);return}m=this.mc;if(0!==m.width&&0!==m.height&&!isNaN(m.x)&&!isNaN(m.y)){this instanceof W&&this.Et(!1);e=this.transform;f=this.T;0!==(this.fa&4096)===!0&&Il(this);l=0!==(this.fa&256);this instanceof +Bf&&Jl(this,a);if(l){n=f.Eg()?f.Ia:f.Z;null!==this.ji?(r=this.ji,h=r.x,k=r.y,q=r.width,r=r.height):(h=Math.max(m.x,n.x),k=Math.max(m.y,n.y),q=Math.min(m.right,n.right)-h,r=Math.min(m.bottom,n.bottom)-k);if(h>m.width+m.x||m.x>n.width+n.x||k>m.height+m.y||m.y>n.height+n.y){1!==c&&(a.globalAlpha=d);return}a.save();a.beginPath();a.rect(h,k,q,r);a.clip()}n=!1;if(this instanceof R){n=!0;if(!this.isVisible()){1!==c&&(a.globalAlpha=d);return}this.Al&&b.ek("drawShadows")&&(h=this.zm,b.bz=h.x*b.scale*b.He, +b.cz=h.y*b.scale*b.He,b.Qh=this.Qh,b.Tg=this.Tg,Kl(b,a),a.shadowColor=b.Tg)}h=!1;this.Y&&b.ek("drawShadows")&&(h=this.Y.Al);!0===this.Kp?Kl(b,a):!1===this.Kp&&Ll(a);null!==this.nc&&(Ml(this,a,this.nc,!0,!0),this.nc instanceof ha&&this.nc.type===we?(a.beginPath(),a.rect(m.x,m.y,m.width,m.height),Nl(a,this.nc)):a.fillRect(m.x,m.y,m.width,m.height));e.ut()||a.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);null!==this.Kb&&(r=this.Ia,k=m=0,q=r.width,r=r.height,t=0,this instanceof X&&(r=this.Wa.rb,m=r.x, +k=r.y,q=r.width,r=r.height,t=this.Ug),Ml(this,a,this.Kb,!0,!1),this.Kb instanceof ha&&this.Kb.type===we?(a.beginPath(),a.rect(m-t/2,k-t/2,q+t,r+t),Nl(a,this.Kb)):a.fillRect(m-t/2,k-t/2,q+t,r+t));h&&(null!==this.Kb||null!==this.nc||null!==f&&0!==(f.fa&512)||null!==f&&(f.type===lj||f.type===th)&&f.$e()!==this)?(Ol(this,!0),null===this.Kp&&Ll(a)):Ol(this,!1);this.ak(a,b);h&&0!==(this.fa&512)===!0&&Kl(b,a);n&&h&&Ll(a);l?(a.restore(),this instanceof C?nj(b,a,!0):nj(b,a,!1)):e.ut()||(f=1/(e.m11*e.m22-e.m12* +e.m21),a.transform(e.m22*f,-e.m12*f,-e.m21*f,e.m11*f,f*(e.m21*e.dy-e.m22*e.dx),f*(e.m12*e.dx-e.m11*e.dy)))}}1!==c&&(a.globalAlpha=d)}};function Ll(a){a.shadowOffsetX=0;a.shadowOffsetY=0;a.shadowBlur=0}function Kl(a,b){b.shadowOffsetX=a.bz;b.shadowOffsetY=a.cz;b.shadowBlur=a.Qh} function Hl(a,b,c){var d=a.mc;0===d.width||0===d.height||isNaN(d.x)||isNaN(d.y)||(null!==a.nc&&(Ml(a,b,a.nc,!0,!0),a.nc instanceof ha&&a.nc.type===we?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Nl(b,a.nc)):b.fillRect(d.x,d.y,d.width,d.height)),null!==a.Kb&&(Ml(a,b,a.Kb,!0,!1),a.Kb instanceof ha&&a.Kb.type===we?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Nl(b,a.Kb)):b.fillRect(d.x,d.y,d.width,d.height)),a.ak(b,c))}G.prototype.ak=function(){}; -function Nl(a,b){if(b instanceof ha&&b.type===we&&!(a instanceof Ac)){var c=b.hy,d=b.gy;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.nu?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.nu?a.clip():a.fill()}function Pl(a){a.nu||a.stroke()} -function Ml(a,b,c,d,e){if(null!==c){var f=1,h=1;if("string"===typeof c)d?b.qn!==c&&(b.fillStyle=c,b.qn=c):b.rn!==c&&(b.strokeStyle=c,b.rn=c);else if(c.type===ue)c=c.color,d?b.qn!==c&&(b.fillStyle=c,b.qn=c):b.rn!==c&&(b.strokeStyle=c,b.rn=c);else{var k,h=a.Ia,f=h.width,h=h.height;if(e)var l=a.Z,f=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Hg&&c.type===nl||c.hy===f&&c.gy===h))k=c.Hg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.Z,f=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* -f+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*f+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===ve?k=b.createLinearGradient(l,n,p,q):c.type===we?(s=isNaN(c.$s)?Math.max(f,h)/2:c.$s,isNaN(c.du)?(r=0,s=Math.max(f,h)/2):r=c.du,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===nl?k=b.createPattern(c.pattern,"repeat"):v.Ed(c.type,"Brush type");if(c.type!==nl&&(a=c.Ws,null!==a))for(a=a.i;a.next();)k.addColorStop(a.key,a.value);m&&(c.Hg=k,c.hy=f,c.gy=h)}d?b.qn!==k&&(b.fillStyle= -k,b.qn=k):b.rn!==k&&(b.strokeStyle=k,b.rn=k)}}}G.prototype.isContainedBy=G.prototype.xl=function(a){if(a instanceof C)a:{if(this!==a&&null!==a)for(var b=this.T;null!==b;){if(b===a){a=!0;break a}b=b.T}a=!1}else a=!1;return a};G.prototype.isVisibleObject=G.prototype.Al=function(){if(!this.visible)return!1;var a=this.T;return null!==a?a.Al():!0}; +function Nl(a,b){if(b instanceof ha&&b.type===we&&!(a instanceof Ac)){var c=b.iy,d=b.hy;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.nu?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.nu?a.clip():a.fill()}function Pl(a){a.nu||a.stroke()} +function Ml(a,b,c,d,e){if(null!==c){var f=1,h=1;if("string"===typeof c)d?b.qn!==c&&(b.fillStyle=c,b.qn=c):b.rn!==c&&(b.strokeStyle=c,b.rn=c);else if(c.type===ue)c=c.color,d?b.qn!==c&&(b.fillStyle=c,b.qn=c):b.rn!==c&&(b.strokeStyle=c,b.rn=c);else{var k,h=a.Ia,f=h.width,h=h.height;if(e)var l=a.Z,f=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Hg&&c.type===nl||c.iy===f&&c.hy===h))k=c.Hg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.Z,f=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* +f+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*f+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===ve?k=b.createLinearGradient(l,n,p,q):c.type===we?(s=isNaN(c.$s)?Math.max(f,h)/2:c.$s,isNaN(c.du)?(r=0,s=Math.max(f,h)/2):r=c.du,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===nl?k=b.createPattern(c.pattern,"repeat"):v.Ed(c.type,"Brush type");if(c.type!==nl&&(a=c.Ws,null!==a))for(a=a.i;a.next();)k.addColorStop(a.key,a.value);m&&(c.Hg=k,c.iy=f,c.hy=h)}d?b.qn!==k&&(b.fillStyle= +k,b.qn=k):b.rn!==k&&(b.strokeStyle=k,b.rn=k)}}}G.prototype.isContainedBy=G.prototype.yl=function(a){if(a instanceof C)a:{if(this!==a&&null!==a)for(var b=this.T;null!==b;){if(b===a){a=!0;break a}b=b.T}a=!1}else a=!1;return a};G.prototype.isVisibleObject=G.prototype.Bl=function(){if(!this.visible)return!1;var a=this.T;return null!==a?a.Bl():!0}; function Il(a){if(0!==(a.fa&2048)===!0){var b=a.le;b.reset();if(!a.mc.K()||!a.Zc.K()){Ql(a,!1);return}b.translate(a.mc.x,a.mc.y);b.translate(-a.Ca.x,-a.Ca.y);var c=a.Ia;zl(a,b,c.x,c.y,c.width,c.height);Ql(a,!1);Rl(a,!0)}0!==(a.fa&4096)===!0&&(b=a.T,null===b?(a.$p.set(a.le),a.Ru=a.scale,Rl(a,!1)):null!==b.Wg&&(c=a.$p,c.reset(),b.Eg()?c.multiply(b.$p):null!==b.T&&c.multiply(b.T.$p),c.multiply(a.le),a.Ru=a.scale*b.Ru,Rl(a,!1)))} -function zl(a,b,c,d,e,f){1!==a.scale&&b.scale(a.scale);if(0!==a.angle){var h=ub;a.ef&&a.ef.fd()&&(h=a.ef);var k=v.M();if(a instanceof R&&a.bc!==a)for(c=a.bc,d=c.Ia,k.au(d.x,d.y,d.width,d.height,h),c.Ok.xb(k),k.offset(-c.Ca.x,-c.Ca.y),h=c.T;null!==h&&h!==a;)h.Ok.xb(k),k.offset(-h.Ca.x,-h.Ca.y),h=h.T;else k.au(c,d,e,f,h);b.rotate(a.angle,k.x,k.y);v.v(k)}}g=G.prototype; -g.Q=function(a){void 0===a&&(a=!1);if(!0!==Nj(this)){Hj(this,!0);Dl(this,!0);var b=this.T;null!==b?a||b.Q():(a=this.g,null!==a&&(a.cg.add(this),this instanceof S&&(a.ma.kb||this.df(),null!==this.fe&&Sl(this.fe)),a.ue(!0)));if(this instanceof C){if(this.ja===lj||this.ja===fh)a=this.sf(),null!==a&&a.Q(!0);a=this.ya.n;for(var b=a.length,c=0;ca?a=0:1a||1a?a=0:1a||1=a&&v.k("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Vb=a,this.ui(),this.Q(),this.h("scale",b,a))});v.defineProperty(G,{angle:"angle"},function(){return this.Ql},function(a){var b=this.Ql;b!==a&&(a%=360,0>a&&(a+=360),b!==a&&(this.Ql=a,this.Q(),this.ui(),this.h("angle",b,a)))}); -v.defineProperty(G,{za:"desiredSize"},function(){return this.nf},function(a){var b=this.nf;b.L(a)||(this.nf=a=a.S(),this.Q(),this instanceof X&&this.re(),this.h("desiredSize",b,a),a=this.Y,null!==a&&0!==(this.fa&1024)&&(xl(this,a,"width"),xl(this,a,"height")))}); -v.defineProperty(G,{width:"width"},function(){return this.nf.width},function(a){if(this.nf.width!==a){var b=this.nf;this.nf=a=(new ia(a,this.nf.height)).freeze();this.Q();this instanceof X&&this.re();this.h("desiredSize",b,a);b=this.Y;null!==b&&0!==(this.fa&1024)&&xl(this,b,"width")}}); -v.defineProperty(G,{height:"height"},function(){return this.nf.height},function(a){if(this.nf.height!==a){var b=this.nf;this.nf=a=(new ia(this.nf.width,a)).freeze();this.Q();this instanceof X&&this.re();this.h("desiredSize",b,a);b=this.Y;null!==b&&0!==(this.fa&1024)&&xl(this,b,"height")}}); -v.defineProperty(G,{wg:"minSize"},function(){return this.Ej},function(a){var b=this.Ej;b.L(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),this.Ej=a,this.Q(),this.h("minSize",b,a))});v.defineProperty(G,{gf:"maxSize"},function(){return this.Cj},function(a){var b=this.Cj;b.L(a)||(a=a.copy(),isNaN(a.width)&&(a.width=Infinity),isNaN(a.height)&&(a.height=Infinity),a.freeze(),this.Cj=a,this.Q(),this.h("maxSize",b,a))});v.u(G,{Ca:"measuredBounds"},function(){return this.Zc}); +v.defineProperty(G,{Qf:"isPanelMain"},function(){return 0!==(this.fa&64)},function(a){var b=0!==(this.fa&64);b!==a&&(this.fa^=64,this.Q(),this.h("isPanelMain",b,a))});v.defineProperty(G,{Rw:"isActionable"},function(){return 0!==(this.fa&128)},function(a){var b=0!==(this.fa&128);b!==a&&(this.fa^=128,this.h("isActionable",b,a))}); +v.defineProperty(G,{Hm:"areaBackground"},function(){return this.nc},function(a){var b=this.nc;b!==a&&(a instanceof ha&&a.freeze(),this.nc=a,this.qa(),this.h("areaBackground",b,a))});v.defineProperty(G,{background:"background"},function(){return this.Kb},function(a){var b=this.Kb;b!==a&&(a instanceof ha&&a.freeze(),this.Kb=a,this.qa(),this.h("background",b,a))});function Ol(a,b){a.fa=b?a.fa|512:a.fa&-513}function Xl(a,b){a.fa=b?a.fa|1024:a.fa&-1025}function Ql(a,b){a.fa=b?a.fa|2048:a.fa&-2049} +function Rl(a,b){a.fa=b?a.fa|4096:a.fa&-4097}function Nj(a){return 0!==(a.fa&8192)}function Hj(a,b){a.fa=b?a.fa|8192:a.fa&-8193}function Oj(a){return 0!==(a.fa&16384)}function Dl(a,b){a.fa=b?a.fa|16384:a.fa&-16385}v.u(G,{Y:"part"},function(){if(this instanceof R)return this;if(null!==this.rm)return this.rm;var a;for(a=this.T;a;){if(a instanceof R)return this.rm=a;a=a.T}return null});v.u(G,{T:"panel"},function(){return this.Rg});G.prototype.Il=function(a){this.Rg=a}; +v.u(G,{layer:"layer"},function(){var a=this.Y;return null!==a?a.layer:null},{configurable:!0});v.u(G,{g:"diagram"},function(){var a=this.Y;return null!==a?a.g:null},{configurable:!0});v.defineProperty(G,{position:"position"},function(){return this.Xa},function(a){var b=this.Xa;b.L(a)||(a=a.S(),this.IA(a,b)&&this.h("position",b,a))});G.prototype.IA=function(a){this.Xa=a;Sl(this);this.ui();return!0};G.prototype.Bx=function(a,b){this.Xa.m(a,b);Yl(this,!0);this.ui()};v.u(G,{Z:"actualBounds"},function(){return this.mc}); +v.defineProperty(G,{scale:"scale"},function(){return this.Vb},function(a){var b=this.Vb;b!==a&&(0>=a&&v.k("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Vb=a,this.ui(),this.Q(),this.h("scale",b,a))});v.defineProperty(G,{angle:"angle"},function(){return this.Rl},function(a){var b=this.Rl;b!==a&&(a%=360,0>a&&(a+=360),b!==a&&(this.Rl=a,this.Q(),this.ui(),this.h("angle",b,a)))}); +v.defineProperty(G,{za:"desiredSize"},function(){return this.of},function(a){var b=this.of;b.L(a)||(this.of=a=a.S(),this.Q(),this instanceof X&&this.re(),this.h("desiredSize",b,a),a=this.Y,null!==a&&0!==(this.fa&1024)&&(xl(this,a,"width"),xl(this,a,"height")))}); +v.defineProperty(G,{width:"width"},function(){return this.of.width},function(a){if(this.of.width!==a){var b=this.of;this.of=a=(new ia(a,this.of.height)).freeze();this.Q();this instanceof X&&this.re();this.h("desiredSize",b,a);b=this.Y;null!==b&&0!==(this.fa&1024)&&xl(this,b,"width")}}); +v.defineProperty(G,{height:"height"},function(){return this.of.height},function(a){if(this.of.height!==a){var b=this.of;this.of=a=(new ia(this.of.width,a)).freeze();this.Q();this instanceof X&&this.re();this.h("desiredSize",b,a);b=this.Y;null!==b&&0!==(this.fa&1024)&&xl(this,b,"height")}}); +v.defineProperty(G,{wg:"minSize"},function(){return this.Ej},function(a){var b=this.Ej;b.L(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),this.Ej=a,this.Q(),this.h("minSize",b,a))});v.defineProperty(G,{hf:"maxSize"},function(){return this.Cj},function(a){var b=this.Cj;b.L(a)||(a=a.copy(),isNaN(a.width)&&(a.width=Infinity),isNaN(a.height)&&(a.height=Infinity),a.freeze(),this.Cj=a,this.Q(),this.h("maxSize",b,a))});v.u(G,{Ca:"measuredBounds"},function(){return this.Zc}); v.u(G,{Ia:"naturalBounds"},function(){return this.Pc},{configurable:!0});v.defineProperty(G,{margin:"margin"},function(){return this.mr},function(a){"number"===typeof a&&(a=new cb(a));var b=this.mr;b.L(a)||(this.mr=a=a.S(),this.Q(),this.h("margin",b,a))});v.u(G,{transform:null},function(){0!==(this.fa&2048)===!0&&Il(this);return this.le});v.u(G,{Wg:null},function(){0!==(this.fa&4096)===!0&&Il(this);return this.$p}); v.defineProperty(G,{alignment:"alignment"},function(){return this.Be},function(a){var b=this.Be;b.L(a)||(a.se()&&!a.Tc()&&v.k("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Be=a=a.S(),Sl(this),this.h("alignment",b,a))});v.defineProperty(G,{column:"column"},function(){return this.gq},function(a){a=Math.round(a);var b=this.gq;b!==a&&(0>a&&v.wa(a,">= 0",G,"column"),this.gq=a,this.Q(),this.h("column",b,a))}); -v.defineProperty(G,{ZG:"columnSpan"},function(){return this.ki},function(a){a=Math.round(a);var b=this.ki;b!==a&&(1>a&&v.wa(a,">= 1",G,"columnSpan"),this.ki=a,this.Q(),this.h("columnSpan",b,a))});v.defineProperty(G,{cc:"row"},function(){return this.$r},function(a){a=Math.round(a);var b=this.$r;b!==a&&(0>a&&v.wa(a,">= 0",G,"row"),this.$r=a,this.Q(),this.h("row",b,a))}); -v.defineProperty(G,{rowSpan:"rowSpan"},function(){return this.Hi},function(a){a=Math.round(a);var b=this.Hi;b!==a&&(1>a&&v.wa(a,">= 1",G,"rowSpan"),this.Hi=a,this.Q(),this.h("rowSpan",b,a))});v.defineProperty(G,{Ex:"spanAllocation"},function(){return this.ss},function(a){var b=this.ss;b!==a&&(null!==a&&v.j(a,"function",G,"spanAllocation"),this.ss=a,this.h("spanAllocation",b,a))}); +v.defineProperty(G,{$G:"columnSpan"},function(){return this.ki},function(a){a=Math.round(a);var b=this.ki;b!==a&&(1>a&&v.wa(a,">= 1",G,"columnSpan"),this.ki=a,this.Q(),this.h("columnSpan",b,a))});v.defineProperty(G,{cc:"row"},function(){return this.$r},function(a){a=Math.round(a);var b=this.$r;b!==a&&(0>a&&v.wa(a,">= 0",G,"row"),this.$r=a,this.Q(),this.h("row",b,a))}); +v.defineProperty(G,{rowSpan:"rowSpan"},function(){return this.Hi},function(a){a=Math.round(a);var b=this.Hi;b!==a&&(1>a&&v.wa(a,">= 1",G,"rowSpan"),this.Hi=a,this.Q(),this.h("rowSpan",b,a))});v.defineProperty(G,{Fx:"spanAllocation"},function(){return this.ss},function(a){var b=this.ss;b!==a&&(null!==a&&v.j(a,"function",G,"spanAllocation"),this.ss=a,this.h("spanAllocation",b,a))}); v.defineProperty(G,{Wj:"alignmentFocus"},function(){return this.Zp},function(a){var b=this.Zp;b.L(a)||(!a.se()||a.Tc()||a.L(ob)&&this instanceof S||v.k("GraphObject.alignmentFocus must be a real Spot or Spot.Default, not: "+a),this.Zp=a=a.S(),this.Q(),this.h("alignmentFocus",b,a))}); v.defineProperty(G,{Sd:"portId"},function(){return this.Mr},function(a){var b=this.Mr;if(b!==a){var c=this.Y;null===c||c instanceof S||(v.k("Cannot set portID on a Link: "+a),c=null);null!==b&&null!==c&&Zl(c,this);this.Mr=a;if(null!==a&&c){c.Eh=!0;null===c.Wd&&$l(c);var d=this.Sd;null!==d&&c.Wd.add(d,this)}this.h("portId",b,a)}});function am(a){var b={value:null};bm(a,b);return b.value}function bm(a,b){var c=a.T;return null===c||!bm(c,b)&&a.visible?(b.value=a,!1):!0} -function Wl(a){var b=a.Y;b instanceof S&&(a=a.g,null===a||a.ma.kb||b.df())}v.defineProperty(G,{Bb:"toSpot"},function(){return null!==this.ga?this.ga.Tj:ob},function(a){this.Ne();var b=this.ga.Tj;b.L(a)||(a=a.S(),this.ga.Tj=a,this.h("toSpot",b,a),Wl(this))});v.defineProperty(G,{Ml:"toEndSegmentLength"},function(){return null!==this.ga?this.ga.Rj:10},function(a){this.Ne();var b=this.ga.Rj;b!==a&&(0>a&&v.wa(a,">= 0",G,"toEndSegmentLength"),this.ga.Rj=a,this.h("toEndSegmentLength",b,a),Wl(this))}); +function Wl(a){var b=a.Y;b instanceof S&&(a=a.g,null===a||a.ma.kb||b.ef())}v.defineProperty(G,{Bb:"toSpot"},function(){return null!==this.ga?this.ga.Tj:ob},function(a){this.Ne();var b=this.ga.Tj;b.L(a)||(a=a.S(),this.ga.Tj=a,this.h("toSpot",b,a),Wl(this))});v.defineProperty(G,{Nl:"toEndSegmentLength"},function(){return null!==this.ga?this.ga.Rj:10},function(a){this.Ne();var b=this.ga.Rj;b!==a&&(0>a&&v.wa(a,">= 0",G,"toEndSegmentLength"),this.ga.Rj=a,this.h("toEndSegmentLength",b,a),Wl(this))}); v.defineProperty(G,{fu:"toEndSegmentDirection"},function(){return null!==this.ga?this.ga.Qj:vl},function(a){this.Ne();var b=this.ga.Qj;b!==a&&(this.ga.Qj=a,this.h("toEndSegmentDirection",b,a),Wl(this))});v.defineProperty(G,{gu:"toShortLength"},function(){return null!==this.ga?this.ga.Sj:0},function(a){this.Ne();var b=this.ga.Sj;b!==a&&(this.ga.Sj=a,this.h("toShortLength",b,a),Wl(this))}); -v.defineProperty(G,{DF:"toLinkable"},function(){return this.xs},function(a){var b=this.xs;b!==a&&(this.xs=a,this.h("toLinkable",b,a))});v.defineProperty(G,{zJ:"toMaxLinks"},function(){return this.ys},function(a){var b=this.ys;b!==a&&(0>a&&v.wa(a,">= 0",G,"toMaxLinks"),this.ys=a,this.h("toMaxLinks",b,a))});v.defineProperty(G,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.qj:ob},function(a){this.Ne();var b=this.ga.qj;b.L(a)||(a=a.S(),this.ga.qj=a,this.h("fromSpot",b,a),Wl(this))}); +v.defineProperty(G,{EF:"toLinkable"},function(){return this.xs},function(a){var b=this.xs;b!==a&&(this.xs=a,this.h("toLinkable",b,a))});v.defineProperty(G,{zJ:"toMaxLinks"},function(){return this.ys},function(a){var b=this.ys;b!==a&&(0>a&&v.wa(a,">= 0",G,"toMaxLinks"),this.ys=a,this.h("toMaxLinks",b,a))});v.defineProperty(G,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.qj:ob},function(a){this.Ne();var b=this.ga.qj;b.L(a)||(a=a.S(),this.ga.qj=a,this.h("fromSpot",b,a),Wl(this))}); v.defineProperty(G,{ol:"fromEndSegmentLength"},function(){return null!==this.ga?this.ga.oj:10},function(a){this.Ne();var b=this.ga.oj;b!==a&&(0>a&&v.wa(a,">= 0",G,"fromEndSegmentLength"),this.ga.oj=a,this.h("fromEndSegmentLength",b,a),Wl(this))});v.defineProperty(G,{kt:"fromEndSegmentDirection"},function(){return null!==this.ga?this.ga.nj:vl},function(a){this.Ne();var b=this.ga.nj;b!==a&&(this.ga.nj=a,this.h("fromEndSegmentDirection",b,a),Wl(this))}); -v.defineProperty(G,{lt:"fromShortLength"},function(){return null!==this.ga?this.ga.pj:0},function(a){this.Ne();var b=this.ga.pj;b!==a&&(this.ga.pj=a,this.h("fromShortLength",b,a),Wl(this))});v.defineProperty(G,{mE:"fromLinkable"},function(){return this.Iq},function(a){var b=this.Iq;b!==a&&(this.Iq=a,this.h("fromLinkable",b,a))}); +v.defineProperty(G,{lt:"fromShortLength"},function(){return null!==this.ga?this.ga.pj:0},function(a){this.Ne();var b=this.ga.pj;b!==a&&(this.ga.pj=a,this.h("fromShortLength",b,a),Wl(this))});v.defineProperty(G,{nE:"fromLinkable"},function(){return this.Iq},function(a){var b=this.Iq;b!==a&&(this.Iq=a,this.h("fromLinkable",b,a))}); v.defineProperty(G,{FH:"fromMaxLinks"},function(){return this.Jq},function(a){var b=this.Jq;b!==a&&(0>a&&v.wa(a,">= 0",G,"fromMaxLinks"),this.Jq=a,this.h("fromMaxLinks",b,a))});v.defineProperty(G,{cursor:"cursor"},function(){return this.qq},function(a){var b=this.qq;b!==a&&(v.j(a,"string",G,"cursor"),this.qq=a,this.h("cursor",b,a))}); v.defineProperty(G,{click:"click"},function(){return null!==this.ia?this.ia.ii:null},function(a){sl(this);var b=this.ia.ii;b!==a&&(null!==a&&v.j(a,"function",G,"click"),this.ia.ii=a,this.h("click",b,a))});v.defineProperty(G,{Zs:"doubleClick"},function(){return null!==this.ia?this.ia.ri:null},function(a){sl(this);var b=this.ia.ri;b!==a&&(null!==a&&v.j(a,"function",G,"doubleClick"),this.ia.ri=a,this.h("doubleClick",b,a))}); -v.defineProperty(G,{zz:"contextClick"},function(){return null!==this.ia?this.ia.li:null},function(a){sl(this);var b=this.ia.li;b!==a&&(null!==a&&v.j(a,"function",G,"contextClick"),this.ia.li=a,this.h("contextClick",b,a))});v.defineProperty(G,{Gt:"mouseEnter"},function(){return null!==this.ia?this.ia.xr:null},function(a){sl(this);var b=this.ia.xr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseEnter"),this.ia.xr=a,this.h("mouseEnter",b,a))}); -v.defineProperty(G,{Ht:"mouseLeave"},function(){return null!==this.ia?this.ia.yr:null},function(a){sl(this);var b=this.ia.yr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseLeave"),this.ia.yr=a,this.h("mouseLeave",b,a))});v.defineProperty(G,{iA:"mouseOver"},function(){return null!==this.ia?this.ia.Di:null},function(a){sl(this);var b=this.ia.Di;b!==a&&(null!==a&&v.j(a,"function",G,"mouseOver"),this.ia.Di=a,this.h("mouseOver",b,a))}); -v.defineProperty(G,{hA:"mouseHover"},function(){return null!==this.ia?this.ia.Ci:null},function(a){sl(this);var b=this.ia.Ci;b!==a&&(null!==a&&v.j(a,"function",G,"mouseHover"),this.ia.Ci=a,this.h("mouseHover",b,a))});v.defineProperty(G,{gA:"mouseHold"},function(){return null!==this.ia?this.ia.Bi:null},function(a){sl(this);var b=this.ia.Bi;b!==a&&(null!==a&&v.j(a,"function",G,"mouseHold"),this.ia.Bi=a,this.h("mouseHold",b,a))}); +v.defineProperty(G,{Az:"contextClick"},function(){return null!==this.ia?this.ia.li:null},function(a){sl(this);var b=this.ia.li;b!==a&&(null!==a&&v.j(a,"function",G,"contextClick"),this.ia.li=a,this.h("contextClick",b,a))});v.defineProperty(G,{Gt:"mouseEnter"},function(){return null!==this.ia?this.ia.xr:null},function(a){sl(this);var b=this.ia.xr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseEnter"),this.ia.xr=a,this.h("mouseEnter",b,a))}); +v.defineProperty(G,{Ht:"mouseLeave"},function(){return null!==this.ia?this.ia.yr:null},function(a){sl(this);var b=this.ia.yr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseLeave"),this.ia.yr=a,this.h("mouseLeave",b,a))});v.defineProperty(G,{jA:"mouseOver"},function(){return null!==this.ia?this.ia.Di:null},function(a){sl(this);var b=this.ia.Di;b!==a&&(null!==a&&v.j(a,"function",G,"mouseOver"),this.ia.Di=a,this.h("mouseOver",b,a))}); +v.defineProperty(G,{iA:"mouseHover"},function(){return null!==this.ia?this.ia.Ci:null},function(a){sl(this);var b=this.ia.Ci;b!==a&&(null!==a&&v.j(a,"function",G,"mouseHover"),this.ia.Ci=a,this.h("mouseHover",b,a))});v.defineProperty(G,{hA:"mouseHold"},function(){return null!==this.ia?this.ia.Bi:null},function(a){sl(this);var b=this.ia.Bi;b!==a&&(null!==a&&v.j(a,"function",G,"mouseHold"),this.ia.Bi=a,this.h("mouseHold",b,a))}); v.defineProperty(G,{EI:"mouseDragEnter"},function(){return null!==this.ia?this.ia.vr:null},function(a){sl(this);var b=this.ia.vr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseDragEnter"),this.ia.vr=a,this.h("mouseDragEnter",b,a))});v.defineProperty(G,{FI:"mouseDragLeave"},function(){return null!==this.ia?this.ia.wr:null},function(a){sl(this);var b=this.ia.wr;b!==a&&(null!==a&&v.j(a,"function",G,"mouseDragLeave"),this.ia.wr=a,this.h("mouseDragLeave",b,a))}); -v.defineProperty(G,{fA:"mouseDrop"},function(){return null!==this.ia?this.ia.Ai:null},function(a){sl(this);var b=this.ia.Ai;b!==a&&(null!==a&&v.j(a,"function",G,"mouseDrop"),this.ia.Ai=a,this.h("mouseDrop",b,a))});v.defineProperty(G,{wD:"actionDown"},function(){return null!==this.ia?this.ia.Up:null},function(a){sl(this);var b=this.ia.Up;b!==a&&(null!==a&&v.j(a,"function",G,"actionDown"),this.ia.Up=a,this.h("actionDown",b,a))}); -v.defineProperty(G,{xD:"actionMove"},function(){return null!==this.ia?this.ia.Vp:null},function(a){sl(this);var b=this.ia.Vp;b!==a&&(null!==a&&v.j(a,"function",G,"actionMove"),this.ia.Vp=a,this.h("actionMove",b,a))});v.defineProperty(G,{yD:"actionUp"},function(){return null!==this.ia?this.ia.Wp:null},function(a){sl(this);var b=this.ia.Wp;b!==a&&(null!==a&&v.j(a,"function",G,"actionUp"),this.ia.Wp=a,this.h("actionUp",b,a))}); -v.defineProperty(G,{vD:"actionCancel"},function(){return null!==this.ia?this.ia.Tp:null},function(a){sl(this);var b=this.ia.Tp;b!==a&&(null!==a&&v.j(a,"function",G,"actionCancel"),this.ia.Tp=a,this.h("actionCancel",b,a))});v.defineProperty(G,{PA:"toolTip"},function(){return null!==this.ia?this.ia.Li:null},function(a){sl(this);var b=this.ia.Li;b!==a&&(null!==a&&v.A(a,pf,G,"toolTip"),this.ia.Li=a,this.h("toolTip",b,a))}); +v.defineProperty(G,{gA:"mouseDrop"},function(){return null!==this.ia?this.ia.Ai:null},function(a){sl(this);var b=this.ia.Ai;b!==a&&(null!==a&&v.j(a,"function",G,"mouseDrop"),this.ia.Ai=a,this.h("mouseDrop",b,a))});v.defineProperty(G,{xD:"actionDown"},function(){return null!==this.ia?this.ia.Up:null},function(a){sl(this);var b=this.ia.Up;b!==a&&(null!==a&&v.j(a,"function",G,"actionDown"),this.ia.Up=a,this.h("actionDown",b,a))}); +v.defineProperty(G,{yD:"actionMove"},function(){return null!==this.ia?this.ia.Vp:null},function(a){sl(this);var b=this.ia.Vp;b!==a&&(null!==a&&v.j(a,"function",G,"actionMove"),this.ia.Vp=a,this.h("actionMove",b,a))});v.defineProperty(G,{zD:"actionUp"},function(){return null!==this.ia?this.ia.Wp:null},function(a){sl(this);var b=this.ia.Wp;b!==a&&(null!==a&&v.j(a,"function",G,"actionUp"),this.ia.Wp=a,this.h("actionUp",b,a))}); +v.defineProperty(G,{wD:"actionCancel"},function(){return null!==this.ia?this.ia.Tp:null},function(a){sl(this);var b=this.ia.Tp;b!==a&&(null!==a&&v.j(a,"function",G,"actionCancel"),this.ia.Tp=a,this.h("actionCancel",b,a))});v.defineProperty(G,{QA:"toolTip"},function(){return null!==this.ia?this.ia.Li:null},function(a){sl(this);var b=this.ia.Li;b!==a&&(null!==a&&v.A(a,pf,G,"toolTip"),this.ia.Li=a,this.h("toolTip",b,a))}); v.defineProperty(G,{contextMenu:"contextMenu"},function(){return null!==this.ia?this.ia.mi:null},function(a){sl(this);var b=this.ia.mi;b!==a&&(null!==a&&v.A(a,pf,G,"contextMenu"),this.ia.mi=a,this.h("contextMenu",b,a))});G.prototype.bind=G.prototype.bind=function(a){a.lg=this;var b=this.$o();null!==b&&cm(b)&&v.k("Cannot add a Binding to a template that has already been copied: "+a);null===this.Nc&&(this.Nc=new H(ff));this.Nc.add(a)}; -G.prototype.findTemplateBinder=G.prototype.$o=function(){for(var a=this instanceof C?this:this.T;null!==a;){if(null!==a.Tl)return a;a=a.T}return null};G.prototype.setProperties=function(a){v.Yt(this,a)};var dm; +G.prototype.findTemplateBinder=G.prototype.$o=function(){for(var a=this instanceof C?this:this.T;null!==a;){if(null!==a.Ul)return a;a=a.T}return null};G.prototype.setProperties=function(a){v.Yt(this,a)};var dm; G.make=dm=function(a,b){var c=arguments,d=null,e=null;if("function"===typeof a)e=a;else if("string"===typeof a){var f=em.ka(a);"function"===typeof f?(c=v.fl(arguments),d=f(c)):e=ea[a]}null===d&&(void 0===e&&(d=window.$,void 0!==d&&void 0!==d.noop&&v.k("GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)"),v.k("GraphObject.make failed to complete, it may be conflicting with another var.")),null!==e&&e.constructor||v.k("GraphObject.make requires a class function or class name, not: "+ a),d=new e);f=1;if(d instanceof E&&1e)&&v.k("Must specify non-negative integer row for RowColumnDefinition "+ b+", not: "+e),a.de=!0,a.index=e):void 0!==b.column&&(e=b.column,(void 0===e||null===e||Infinity===e||isNaN(e)||0>e)&&v.k("Must specify non-negative integer column for RowColumnDefinition "+b+", not: "+e),a.de=!1,a.index=e);e=new ua;for(c in b)"row"!==c&&"column"!==c&&(e[c]=b[c]);v.Yt(a,e)}else v.Yt(a,b);else v.k('Unknown initializer "'+b+'" for object being constructed by GraphObject.make: '+a)}var em=new pa("string","function"); G.getBuilders=function(){var a=new pa("string","function"),b;for(b in em)if(b!==b.toLowerCase()){var c=em[b];"function"===typeof c&&a.add(b,c)}a.freeze();return a};var Pm;G.defineBuilder=Pm=function(a,b){v.j(a,"string",G,"defineBuilder:name");v.j(b,"function",G,"defineBuilder:func");var c=a.toLowerCase();""!==a&&"none"!==c&&a!==c||v.k("Shape.defineFigureGenerator name must not be empty or None or all-lower-case: "+a);em.add(a,b)};var Qm; G.takeBuilderArgument=Qm=function(a,b,c){void 0===c&&(c=null);var d=a[1];if("function"===typeof c?c(d):"string"===typeof d)return a.splice(1,1),d;if(void 0===b)throw Error("no "+("function"===typeof c?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return b}; -Pm("Button",function(){var a=new ha(ve);a.addColorStop(0,"white");a.addColorStop(1,"lightgray");var b=new ha(ve);b.addColorStop(0,"white");b.addColorStop(1,"dodgerblue");a=dm(C,lj,{Qw:!0},{_buttonFillNormal:a,_buttonStrokeNormal:"gray",_buttonFillOver:b,_buttonStrokeOver:"blue"},dm(X,{name:"ButtonBorder",Cb:"Rectangle",B:new L(0,0,2.761423749153968,2.761423749153968),C:new L(1,1,-2.761423749153968,-2.761423749153968),fill:a,stroke:"gray"}));a.Gt=function(a,b){var e=b.ae("ButtonBorder");if(e instanceof +Pm("Button",function(){var a=new ha(ve);a.addColorStop(0,"white");a.addColorStop(1,"lightgray");var b=new ha(ve);b.addColorStop(0,"white");b.addColorStop(1,"dodgerblue");a=dm(C,lj,{Rw:!0},{_buttonFillNormal:a,_buttonStrokeNormal:"gray",_buttonFillOver:b,_buttonStrokeOver:"blue"},dm(X,{name:"ButtonBorder",Cb:"Rectangle",B:new L(0,0,2.761423749153968,2.761423749153968),C:new L(1,1,-2.761423749153968,-2.761423749153968),fill:a,stroke:"gray"}));a.Gt=function(a,b){var e=b.ae("ButtonBorder");if(e instanceof X){var f=b._buttonFillOver;b._buttonFillNormal=e.fill;e.fill=f;f=b._buttonStrokeOver;b._buttonStrokeNormal=e.stroke;e.stroke=f}};a.Ht=function(a,b){var e=b.ae("ButtonBorder");e instanceof X&&(e.fill=b._buttonFillNormal,e.stroke=b._buttonStrokeNormal)};return a}); -Pm("TreeExpanderButton",function(){var a=dm("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},dm(X,{name:"ButtonIcon",Cb:"MinusLine",za:K.Qp},(new ff("figure","isTreeExpanded",function(a,c){var d=c.T;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).gx()),{visible:!1},(new ff("visible","isTreeLeaf",function(a){return!a})).gx());a.click=function(a,c){var d=c.Y;d instanceof pf&&(d=d.Vg);if(d instanceof S){var e=d.g;if(null!==e){e=e.pb;if(d.qd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; +Pm("TreeExpanderButton",function(){var a=dm("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},dm(X,{name:"ButtonIcon",Cb:"MinusLine",za:K.Qp},(new ff("figure","isTreeExpanded",function(a,c){var d=c.T;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).hx()),{visible:!1},(new ff("visible","isTreeLeaf",function(a){return!a})).hx());a.click=function(a,c){var d=c.Y;d instanceof pf&&(d=d.Vg);if(d instanceof S){var e=d.g;if(null!==e){e=e.pb;if(d.qd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; a.Ec=!0;d.qd?e.collapseTree(d):e.expandTree(d)}}};return a}); -Pm("SubGraphExpanderButton",function(){var a=dm("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},dm(X,{name:"ButtonIcon",Cb:"MinusLine",za:K.Qp},(new ff("figure","isSubGraphExpanded",function(a,c){var d=c.T;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).gx()));a.click=function(a,c){var d=c.Y;d instanceof pf&&(d=d.Vg);if(d instanceof T){var e=d.g;if(null!==e){e=e.pb;if(d.ee){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.Ec= +Pm("SubGraphExpanderButton",function(){var a=dm("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},dm(X,{name:"ButtonIcon",Cb:"MinusLine",za:K.Qp},(new ff("figure","isSubGraphExpanded",function(a,c){var d=c.T;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).hx()));a.click=function(a,c){var d=c.Y;d instanceof pf&&(d=d.Vg);if(d instanceof T){var e=d.g;if(null!==e){e=e.pb;if(d.ee){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.Ec= !0;d.ee?e.collapseSubGraph(d):e.expandSubGraph(d)}}};return a});Pm("ContextMenuButton",function(){var a=dm("Button");a.stretch=rl;var b=a.ae("ButtonBorder");b instanceof X&&(b.Cb="Rectangle",b.B=new L(0,0,2,3),b.C=new L(1,1,-2,-2));return a}); -Pm("PanelExpanderButton",function(a){var b=Qm(a,"COLLAPSIBLE");a=dm("Button",dm(X,"TriangleUp",{za:new ia(6,4)},(new ff("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).gx(b)));var c=a.ae("ButtonBorder");c instanceof X&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var f=c.g;if(null!==f&&!f.cb){var h=c.Y.ae(b);null!==h&&(f.Rb("Collapse/Expand Panel"),h.visible=!h.visible,f.Ad("Collapse/Expand Panel"))}};return a}); -Pm("CheckBoxButton",function(a){var b=Qm(a);a=dm("Button",{"ButtonBorder.fill":"white","ButtonBorder.stroke":"gray",width:14,height:14},dm(X,{name:"ButtonIcon",GH:"M0 4 L3 9 9 0",ob:2,stretch:Rc,Mz:xh,visible:!1},""!==b?(new ff("visible",b)).uI():[]));a.click=function(a,d){if(!(a.g.cb||""!==b&&a.g.ca.cb)){a.Ec=!0;var e=d.ae("ButtonIcon");e.g.Rb("checkbox");e.visible=!e.visible;"function"===typeof d._doClick&&d._doClick(a,d);e.g.Ad("checkbox")}};return a}); -Pm("CheckBox",function(a){a=Qm(a);a=dm("CheckBoxButton",a,{name:"Button",margin:new cb(0,1,0,0)});var b=dm(C,"Horizontal",a,{Qw:!0,margin:1,_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,Gt:a.Gt,Ht:a.Ht,click:a.click,_buttonClick:a.click});a.Gt=null;a.Ht=null;a.click=null;return b}); +Pm("PanelExpanderButton",function(a){var b=Qm(a,"COLLAPSIBLE");a=dm("Button",dm(X,"TriangleUp",{za:new ia(6,4)},(new ff("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).hx(b)));var c=a.ae("ButtonBorder");c instanceof X&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var f=c.g;if(null!==f&&!f.cb){var h=c.Y.ae(b);null!==h&&(f.Rb("Collapse/Expand Panel"),h.visible=!h.visible,f.Ad("Collapse/Expand Panel"))}};return a}); +Pm("CheckBoxButton",function(a){var b=Qm(a);a=dm("Button",{"ButtonBorder.fill":"white","ButtonBorder.stroke":"gray",width:14,height:14},dm(X,{name:"ButtonIcon",GH:"M0 4 L3 9 9 0",ob:2,stretch:Rc,Nz:xh,visible:!1},""!==b?(new ff("visible",b)).uI():[]));a.click=function(a,d){if(!(a.g.cb||""!==b&&a.g.ca.cb)){a.Ec=!0;var e=d.ae("ButtonIcon");e.g.Rb("checkbox");e.visible=!e.visible;"function"===typeof d._doClick&&d._doClick(a,d);e.g.Ad("checkbox")}};return a}); +Pm("CheckBox",function(a){a=Qm(a);a=dm("CheckBoxButton",a,{name:"Button",margin:new cb(0,1,0,0)});var b=dm(C,"Horizontal",a,{Rw:!0,margin:1,_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,Gt:a.Gt,Ht:a.Ht,click:a.click,_buttonClick:a.click});a.Gt=null;a.Ht=null;a.click=null;return b}); function tl(){this.mi=this.Li=this.Tp=this.Wp=this.Vp=this.Up=this.Ai=this.wr=this.vr=this.Bi=this.Ci=this.Di=this.yr=this.xr=this.li=this.ri=this.ii=null}tl.prototype.copy=function(){var a=new tl;a.ii=this.ii;a.ri=this.ri;a.li=this.li;a.xr=this.xr;a.yr=this.yr;a.Di=this.Di;a.Ci=this.Ci;a.Bi=this.Bi;a.vr=this.vr;a.wr=this.wr;a.Ai=this.Ai;a.Up=this.Up;a.Vp=this.Vp;a.Wp=this.Wp;a.Tp=this.Tp;a.Li=this.Li;a.mi=this.mi;return a}; -function C(a){G.call(this);void 0===a?0===arguments.length?this.ja=Ah:v.k("invalid argument to Panel constructor: undefined"):(v.sb(a,C,C,"type"),this.ja=a);this.ya=new H(G);this.Ve=K.Rp;this.Lg=!1;this.ja===pj&&(this.Lg=!0);this.Sq=!1;this.uq=jc;this.pi=pl;this.ja===Tl&&Rm(this);this.Jo=xh;this.Nq=K.bG;this.Oq=K.lk;this.Tl=this.Re=null;this.dr=NaN;this.eg=this.vj=null;this.co="category";this.dg=null;this.Ni=new z(NaN,NaN,NaN,NaN);this.Am=null;this.Eh=!1;this.as=null}v.Ja(C,G);v.Xh(C); -v.ea("Panel",C);function Rm(a){a.kj=K.Rp;a.Bh=1;a.oi=null;a.Yl=null;a.Ah=1;a.zh=null;a.Xl=null;a.Ld=[];a.Gd=[];a.wm=Sm;a.Vl=Sm;a.Mi=0;a.yi=0} -C.prototype.cloneProtected=function(a){G.prototype.cloneProtected.call(this,a);a.ja=this.ja;a.Ve=this.Ve.S();a.Lg=this.Lg;a.Sq=this.Sq;a.uq=this.uq.S();a.pi=this.pi;if(a.ja===Tl){a.kj=this.kj.S();a.Bh=this.Bh;a.oi=this.oi;a.Yl=this.Yl;a.Ah=this.Ah;a.zh=this.zh;a.Xl=this.Xl;var b=[];if(0a&&v.wa(a,">= 0",C,"padding"),a=new cb(a)):(v.A(a,cb,C,"padding"),0>a.left&&v.wa(a.left,">= 0",C,"padding:value.left"),0>a.right&&v.wa(a.right,">= 0",C,"padding:value.right"),0>a.top&&v.wa(a.top,">= 0",C,"padding:value.top"),0>a.bottom&&v.wa(a.bottom,">= 0",C,"padding:value.bottom"));var b=this.Ve;b.L(a)||(this.Ve=a=a.S(),this.Q(),this.h("padding",b,a))}); v.defineProperty(C,{jl:"defaultAlignment"},function(){return this.uq},function(a){var b=this.uq;b.L(a)||(this.uq=a=a.S(),this.Q(),this.h("defaultAlignment",b,a))});v.defineProperty(C,{Md:"defaultStretch"},function(){return this.pi},function(a){var b=this.pi;b!==a&&(v.sb(a,G,C,"defaultStretch"),this.pi=a,this.Q(),this.h("defaultStretch",b,a))}); v.defineProperty(C,{uK:"defaultSeparatorPadding"},function(){return void 0===this.kj?K.Rp:this.kj},function(a){if(void 0!==this.kj){"number"===typeof a&&(a=new cb(a));var b=this.kj;b.L(a)||(this.kj=a=a.S(),this.h("defaultSeparatorPadding",b,a))}}); v.defineProperty(C,{sK:"defaultRowSeparatorStroke"},function(){return void 0===this.oi?null:this.oi},function(a){var b=this.oi;b!==a&&(null===a||"string"===typeof a||a instanceof ha)&&(a instanceof ha&&a.freeze(),this.oi=a,this.h("defaultRowSeparatorStroke",b,a))});v.defineProperty(C,{tK:"defaultRowSeparatorStrokeWidth"},function(){return void 0===this.Bh?1:this.Bh},function(a){if(void 0!==this.Bh){var b=this.Bh;b!==a&&isFinite(a)&&0<=a&&(this.Bh=a,this.h("defaultRowSeparatorStrokeWidth",b,a))}}); -v.defineProperty(C,{rK:"defaultRowSeparatorDashArray"},function(){return void 0===this.Yl?null:this.Yl},function(a){if(void 0!==this.Yl){var b=this.Yl;if(b!==a){null===a||Array.isArray(a)||v.Ed(a,"Array",C,"defaultRowSeparatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e=c&&(c=1);var d=this.Nw,e=d.width,d=d.height,f=this.Ia,h=f.width,f=f.height,k=Math.ceil(h/e),l=Math.ceil(f/d),m=this.rE;a.save();a.beginPath();a.rect(0,0,h,f);a.clip();for(var n=[],p=this.ya.n,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===y.Cb){a.lineWidth= +v.defineProperty(C,{Ow:"gridCellSize"},function(){return this.Nq},function(a){var b=this.Nq;b.L(a)||(v.A(a,ia,C,"gridCellSize"),a.K()&&0!==a.width&&0!==a.height||v.k("Invalid Panel.gridCellSize: "+a),this.Nq=a.S(),null!==this.g&&this===this.g.mt&&Ij(this.g),this.qa(),this.h("gridCellSize",b,a))}); +v.defineProperty(C,{sE:"gridOrigin"},function(){return this.Oq},function(a){var b=this.Oq;b.L(a)||(v.A(a,w,C,"gridOrigin"),a.K()||v.k("Invalid Panel.gridOrigin: "+a),this.Oq=a.S(),null!==this.g&&Ij(this.g),this.qa(),this.h("gridOrigin",b,a))});g=C.prototype;g.Bv=function(a){G.prototype.Bv.call(this,a);for(var b=this.ya.n,c=b.length,d=0;d=c&&(c=1);var d=this.Ow,e=d.width,d=d.height,f=this.Ia,h=f.width,f=f.height,k=Math.ceil(h/e),l=Math.ceil(f/d),m=this.sE;a.save();a.beginPath();a.rect(0,0,h,f);a.clip();for(var n=[],p=this.ya.n,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===y.Cb){a.lineWidth= y.ob;Ml(this,a,y.stroke,!1,!1);a.beginPath();for(I=x=Math.floor(-m.y/d);I<=x+l&&!(D=I*d+m.y,0<=D&&D<=f&&Tm(I,s,t)&&(u&&!A?wl(a,0,D,h,D,B,y.nd):(a.moveTo(0,D),a.lineTo(h,D)),2>d*s*c));I++);a.stroke()}else if("BarV"===y.Cb)for(Ml(this,a,y.fill,!0,!1),y=y.width,isNaN(y)&&(y=e),I=x=Math.floor(-m.x/e);I<=x+k&&!(D=I*e+m.x,0<=D&&De*s*c));I++);else if("BarH"===y.Cb)for(Ml(this,a,y.fill,!0,!1),y=y.height,isNaN(y)&&(y=d),I=x=Math.floor(-m.y/d);I<=x+l&&!(D=I*d+m.y,0<=D&& -D<=f&&Tm(I,s,t)&&(a.fillRect(0,D,h,y),2>d*s*c));I++);u&&(void 0!==a.setLineDash?(a.setLineDash(v.vh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=v.vh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();nj(b,a,!1)}else{this.ja===Tl&&(a.lineCap="butt",Um(this,a,!0,this.Ld,!0),Um(this,a,!1,this.Gd,!0),Vm(this,a,!0,this.Ld),Vm(this,a,!1,this.Gd),Um(this,a,!0,this.Ld,!1),Um(this,a,!1,this.Gd,!1));(c=this.BE)&&a.save();e=this.sf();d=this.ya.n; +D<=f&&Tm(I,s,t)&&(a.fillRect(0,D,h,y),2>d*s*c));I++);u&&(void 0!==a.setLineDash?(a.setLineDash(v.vh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=v.vh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();nj(b,a,!1)}else{this.ja===Tl&&(a.lineCap="butt",Um(this,a,!0,this.Ld,!0),Um(this,a,!1,this.Gd,!0),Vm(this,a,!0,this.Ld),Vm(this,a,!1,this.Gd),Um(this,a,!0,this.Ld,!1),Um(this,a,!1,this.Gd,!1));(c=this.CE)&&a.save();e=this.$e();d=this.ya.n; h=d.length;for(f=0;ff.height)continue}else if(l.position>f.width)continue;var m=l.Ip;isNaN(m)&&(m=c?a.Bh:a.Ah);var n=l.Hp;null===n&&(n=c?a.oi:a.zh);if(0!==m&&null!==n){Ml(a,b,n,!1,!1);var n=!1,p=!0,q=l.jJ;null!==q&&(n=!0,void 0!==b.setLineDash?(b.setLineDash(q),b.lineDashOffset=a.nd):void 0!==b.webkitLineDash?(b.webkitLineDash=q,b.webkitLineDashOffset=a.nd):void 0!==b.mozDash? (b.mozDash=q,b.mozDashOffset=a.nd):p=!1);b.beginPath();var r=l.position+m;c?r>f.height&&(m-=r-f.height):r>f.width&&(m-=r-f.width);l=l.position+m/2;b.lineWidth=m;r=a.padding;c?(l+=r.top,m=r.left,r=f.width-r.right,n&&!p?wl(b,m,l,r,l,q,0):(b.moveTo(m,l),b.lineTo(r,l))):(l+=r.left,m=r.top,r=f.height-r.bottom,n&&!p?wl(b,l,m,l,r,q,0):(b.moveTo(l,m),b.lineTo(l,r)));b.stroke();n&&(void 0!==b.setLineDash?(b.setLineDash(v.vh),b.lineDashOffset=0):void 0!==b.webkitLineDash?(b.webkitLineDash=v.vh,b.webkitLineDashOffset= 0):void 0!==b.mozDash&&(b.mozDash=null,b.mozDashOffset=0))}}}} -function Um(a,b,c,d,e){for(var f=d.length,h=a.Z,k=0;km)){var n=l.qf(),p=l.Ip;isNaN(p)&&(p=c?a.Bh:a.Ah);var q=l.Hp;null===q&&(q=c?a.oi:a.zh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Na;p+n>m&&(n=m-p);0>=n||(m=a.padding,Ml(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} +function Um(a,b,c,d,e){for(var f=d.length,h=a.Z,k=0;km)){var n=l.rf(),p=l.Ip;isNaN(p)&&(p=c?a.Bh:a.Ah);var q=l.Hp;null===q&&(q=c?a.oi:a.zh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Na;p+n>m&&(n=m-p);0>=n||(m=a.padding,Ml(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} function Tm(a,b,c){if(0!==a%b)return!1;b=c.length;for(var d=0;dmd&&(Ec=Math.max(md-Xc,0));var $g=0===Z.Na;Z.Na+=Ec;md=Math.max(md-(Ec+($g?Xc:0)),0)}1!==da.ki||Xd!==vh&&Xd!==ql||(Z=this.dd(sc),Xc=Z.qf(),Ec=Math.max(Fe-Z.Na,0),Ec+ +Dm;Bg||Xd===vh||Qh||camd&&(Ec=Math.max(md-Xc,0));var $g=0===Z.Na;Z.Na+=Ec;md=Math.max(md-(Ec+($g?Xc:0)),0)}1!==da.ki||Xd!==vh&&Xd!==ql||(Z=this.dd(sc),Xc=Z.rf(),Ec=Math.max(Fe-Z.Na,0),Ec+ Xc>Dc&&(Ec=Math.max(Dc-Xc,0)),$g=0===Z.Na,Z.Na+=Ec,Dc=Math.max(Dc-(Ec+($g?Xc:0)),0));Bg&&da.hp()}}}v.ta(Zg);for(var me=0,ne=0,Ea=this.So,ca=0;ca=this.Gp);$a++)Z=this.ed(da.cc+$a),uf.height+=Math.max(Z.bj,isNaN(Z.We)?Z.hf:Math.min(Z.We,Z.hf));for($a=1;$a=this.So);$a++)Z=this.dd(da.column+$a),uf.width+=Math.max(Z.bj,isNaN(Z.We)?Z.hf:Math.min(Z.We,Z.hf));bb.width+= -uf.width;bb.height+=uf.height;Ob=da.margin;Qf=Ob.right+Ob.left;Rf=Ob.top+Ob.bottom;$h(da,bb.width,bb.height,Lh,Pi);for(var Ee=da.Ca,Fe=Math.max(Ee.width+Qf,0),nd=Math.max(Ee.height+Rf,0),Ge=0,$a=0;$a=this.Gp);$a++)Z=this.ed(da.cc+$a),Ge+=Z.total||0;if(Ge=tc)&&!(da.cc+$a>=this.Gp);$a++){var Z=this.ed(da.cc+$a),xb=Z.eb||0,vf=Cg(da,Z,Rh);Z.Na=Math.min(Z.hf,xb+vf);Z.eb!==xb&&(tc-=Z.eb-xb)}for(;0xb&&(Z.Na=Math.min(Z.hf,xb+tc),Z.eb!==xb&&(tc-=Z.eb-xb));if(0===Z.index)break;Z=this.ed(Z.index-1)}}for(var Vf=0,$a=0;$a=this.So);$a++)Z=this.dd(da.column+$a),Vf+=Z.total||0;if(Vf=tc)&&!(da.column+$a>=this.So);$a++)Z=this.dd(da.column+$a),xb=Z.eb||0,vf=Cg(da,Z,Rh),Z.Na=Math.min(Z.hf,xb+vf),Z.eb!==xb&&(tc-=Z.eb-xb);for(;0xb&&(Z.Na=Math.min(Z.hf, -xb+tc),Z.eb!==xb&&(tc-=Z.eb-xb));if(0===Z.index)break;Z=this.dd(Z.index-1)}}}v.ta(Wc);v.ck(uf);v.ck(bb);for(var pe=0,Wf=0,Xd=Bl(this,!0),wf=this.za,cf=this.gf,qe=ne=me=0,re=0,Ea=this.So,ca=0;ca=this.Gp);$a++)Z=this.ed(da.cc+$a),uf.height+=Math.max(Z.bj,isNaN(Z.We)?Z.jf:Math.min(Z.We,Z.jf));for($a=1;$a=this.So);$a++)Z=this.dd(da.column+$a),uf.width+=Math.max(Z.bj,isNaN(Z.We)?Z.jf:Math.min(Z.We,Z.jf));bb.width+= +uf.width;bb.height+=uf.height;Ob=da.margin;Qf=Ob.right+Ob.left;Rf=Ob.top+Ob.bottom;$h(da,bb.width,bb.height,Lh,Pi);for(var Ee=da.Ca,Fe=Math.max(Ee.width+Qf,0),nd=Math.max(Ee.height+Rf,0),Ge=0,$a=0;$a=this.Gp);$a++)Z=this.ed(da.cc+$a),Ge+=Z.total||0;if(Ge=tc)&&!(da.cc+$a>=this.Gp);$a++){var Z=this.ed(da.cc+$a),xb=Z.eb||0,vf=Cg(da,Z,Rh);Z.Na=Math.min(Z.jf,xb+vf);Z.eb!==xb&&(tc-=Z.eb-xb)}for(;0xb&&(Z.Na=Math.min(Z.jf,xb+tc),Z.eb!==xb&&(tc-=Z.eb-xb));if(0===Z.index)break;Z=this.ed(Z.index-1)}}for(var Vf=0,$a=0;$a=this.So);$a++)Z=this.dd(da.column+$a),Vf+=Z.total||0;if(Vf=tc)&&!(da.column+$a>=this.So);$a++)Z=this.dd(da.column+$a),xb=Z.eb||0,vf=Cg(da,Z,Rh),Z.Na=Math.min(Z.jf,xb+vf),Z.eb!==xb&&(tc-=Z.eb-xb);for(;0xb&&(Z.Na=Math.min(Z.jf, +xb+tc),Z.eb!==xb&&(tc-=Z.eb-xb));if(0===Z.index)break;Z=this.dd(Z.index-1)}}}v.ta(Wc);v.ck(uf);v.ck(bb);for(var pe=0,Wf=0,Xd=Bl(this,!0),wf=this.za,cf=this.hf,qe=ne=me=0,re=0,Ea=this.So,ca=0;caTh)$h(Pb,Infinity,Infinity),Zd=Pb.Ca,Ie.di(Zd),this.Fg.add(Zd);else{var Yf=Pb.ve,fq=Pb.vx,Fm=Pb.Wj;Fm.se()&&(Fm=ub);var Ui=Pb.Wt,Yr=Pb.qF,Vi=0,Wi=0,tk=0;if(Yf<-Th||Yf>=Th){var gq=Dg.SE,Xi=Dg.RE;Ui!==ih&&(tk=Dg.computeAngle(Pb,Ui,Xi),Pb.Ql= -tk);Vi=gq.x-ef.x;Wi=gq.y-ef.y}else{var xf,Vh;if(0<=Yf)xf=Si.ha(Yf),Vh=YfTh)$h(Pb,Infinity,Infinity),Zd=Pb.Ca,Ie.di(Zd),this.Fg.add(Zd);else{var Yf=Pb.ve,fq=Pb.wx,Fm=Pb.Wj;Fm.se()&&(Fm=ub);var Ui=Pb.Wt,Yr=Pb.rF,Vi=0,Wi=0,tk=0;if(Yf<-Th||Yf>=Th){var gq=Dg.TE,Xi=Dg.SE;Ui!==ih&&(tk=Dg.computeAngle(Pb,Ui,Xi),Pb.Rl= +tk);Vi=gq.x-ef.x;Wi=gq.y-ef.y}else{var xf,Vh;if(0<=Yf)xf=Si.ha(Yf),Vh=Yfc||p>d)this.Q(),$h(this,n>c?c:n,p>d?d:p);break;case Rc:this.Q(!0);$h(this,c+r,d+s,0,0);break;case rl:this.Q(!0);$h(this,c+r,p+s,0,0);break;case ql:this.Q(!0),$h(this,n+r,d+s,0,0)}}k=this.Z;k.x=a;k.y=b; -k.width=c;k.height=d;var t=this.ja.Pb;switch(t){case "Position":for(var u=f.length,x=e.x-this.padding.left,y=e.y-this.padding.top,A=0;A=this.Gp);ca++){var da=this.ed(Mb+ca);wb.height+=da.total}for(ca=1;ca=this.So);ca++){var zg=this.dd(Dd+ca);wb.width+=zg.total}var Yg=Vd.eb+wb.width,Mh=Vc.eb+wb.height;h.x=Vb;h.y=Be;h.width=Yg;h.height=Mh;var sc=Vb,Nh=Be,Wb=Yg,Zg=Mh;Vb+Yg>e.width&&(Wb=Math.max(e.width-Vb,0));Be+Mh>e.height&&(Zg=Math.max(e.height-Be,0));var Wc=Ea.alignment,je=0,Lc=0,ld=0,Dc=0;if(Wc.Tc()){Wc= -this.jl;Wc.fd()||(Wc=ub);var je=Wc.x,Lc=Wc.y,ld=Wc.offsetX,Dc=Wc.offsetY,md=Vd.alignment,Of=Vc.alignment;md.fd()&&(je=md.x,ld=md.offsetX);Of.fd()&&(Lc=Of.y,Dc=Of.offsetY)}else je=Wc.x,Lc=Wc.y,ld=Wc.offsetX,Dc=Wc.offsetY;if(isNaN(je)||isNaN(Lc))Lc=je=.5,Dc=ld=0;var Z=Ce.width,ke=Ce.height,De=Ea.margin,Oh=De.left+De.right,Ph=De.top+De.bottom,Ec=Ul(Ea,Vc,Vd,!1);!isNaN(Ea.za.width)||Ec!==Rc&&Ec!==rl||(Z=Math.max(Yg-Oh,0));!isNaN(Ea.za.height)||Ec!==Rc&&Ec!==ql||(ke=Math.max(Mh-Ph,0));var mb=Ea.gf,nb= +Math.min(this.Mi,pc-1);Nb!==pc&&(void 0===this.Ld[Nb]||0===this.Ld[Nb].eb);)Nb++;for(var Nb=Math.min(Nb,pc-1),ie=-this.Ld[Nb].Xa,qc=Math.min(this.yi,Bb-1);qc!==Bb&&(void 0===this.Gd[qc]||0===this.Gd[qc].eb);)qc++;for(var qc=Math.min(qc,Bb-1),rc=-this.Gd[qc].Xa,wb=v.Ml(),Mb=0;Mb=this.Gp);ca++){var da=this.ed(Mb+ca);wb.height+=da.total}for(ca=1;ca=this.So);ca++){var zg=this.dd(Dd+ca);wb.width+=zg.total}var Yg=Vd.eb+wb.width,Mh=Vc.eb+wb.height;h.x=Vb;h.y=Be;h.width=Yg;h.height=Mh;var sc=Vb,Nh=Be,Wb=Yg,Zg=Mh;Vb+Yg>e.width&&(Wb=Math.max(e.width-Vb,0));Be+Mh>e.height&&(Zg=Math.max(e.height-Be,0));var Wc=Ea.alignment,je=0,Lc=0,ld=0,Dc=0;if(Wc.Tc()){Wc= +this.jl;Wc.fd()||(Wc=ub);var je=Wc.x,Lc=Wc.y,ld=Wc.offsetX,Dc=Wc.offsetY,md=Vd.alignment,Of=Vc.alignment;md.fd()&&(je=md.x,ld=md.offsetX);Of.fd()&&(Lc=Of.y,Dc=Of.offsetY)}else je=Wc.x,Lc=Wc.y,ld=Wc.offsetX,Dc=Wc.offsetY;if(isNaN(je)||isNaN(Lc))Lc=je=.5,Dc=ld=0;var Z=Ce.width,ke=Ce.height,De=Ea.margin,Oh=De.left+De.right,Ph=De.top+De.bottom,Ec=Ul(Ea,Vc,Vd,!1);!isNaN(Ea.za.width)||Ec!==Rc&&Ec!==rl||(Z=Math.max(Yg-Oh,0));!isNaN(Ea.za.height)||Ec!==Rc&&Ec!==ql||(ke=Math.max(Mh-Ph,0));var mb=Ea.hf,nb= Ea.wg,Z=Math.min(mb.width,Z),ke=Math.min(mb.height,ke),Z=Math.max(nb.width,Z),ke=Math.max(nb.height,ke),ik=ke+Ph;h.x+=h.width*je-(Z+Oh)*je+ld+De.left;h.y+=h.height*Lc-ik*Lc+Dc+De.top;Ea.visible&&(ab(sc,Nh,Wb,Zg,h.x,h.y,Ce.width,Ce.height)?Ea.Cc(h.x,h.y,Z,ke):Ea.Cc(h.x,h.y,Z,ke,new z(sc,Nh,Wb,Zg)))}else{Ea.ui();Ea.mc.Oa();var Pf=Ea.mc;Pf.x=Wd.type===Fl?Xg:Vb;Pf.y=Wd.type===Gl?yg:Be;Pf.width=Ce.width;Pf.height=Ce.height;Ea.mc.freeze();Dl(Ea,!1)}}v.ck(wb);for(Mb=0;Mb=Sf){var Rh=this.SE,Cg=this.RE;Uf!==ih&&(tc=this.computeAngle(Mc,Uf,Cg),Mc.angle=tc);$a=Rh.x;Ge=Rh.y}else{var xb=void 0,vf=void 0;if(0<=bb)xb=Tf.n[bb],vf=bb=Sf){var Rh=this.TE,Cg=this.SE;Uf!==ih&&(tc=this.computeAngle(Mc,Uf,Cg),Mc.angle=tc);$a=Rh.x;Ge=Rh.y}else{var xb=void 0,vf=void 0;if(0<=bb)xb=Tf.n[bb],vf=bbp.width||n.y>p.height||0>n.x+n.width||0>n.y+n.height)){n=m;m=m instanceof C?m:null;p=v.sh();p.set(h);if(null!==m?m.bk(a,b,c,d,e,p):Al(n,a,d,p))null!== -b&&(n=b(n)),null===n||null!==c&&!c(n)||e.add(n);v.af(p)}}}void 0===f&&v.af(h);return d}void 0===f&&v.af(h);return!1};function fn(a,b,c,d){for(var e=a.ya.n,f=e.length;f--;){var h=e[f];if(h.visible){var k=h.Z,l=a.Ia;k.x>l.width||k.y>l.height||0>k.x+k.width||0>k.y+k.height||(h instanceof C&&fn(h,b,c,d),null!==b&&(h=b(h)),null===h||null!==c&&!c(h)||d.add(h))}}} -g.Sm=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===c&&(c=null);void 0===d&&(d=null);var h=this.Ia,k=this.Eg(),l=k?a:Oa(v.Sb(a.x,a.y),this.transform),m=k?b:Oa(v.Sb(b.x,b.y),this.transform),n=l.$j(m),p=0s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.Eg()?(r=q.transform,Oa(k.set(a),r),Oa(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof C?q:null,null!==q?!q.Sm(k,l,c,d,e,f):!r.jE(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||f.add(r))}}v.v(k);v.v(l)}return e? +v.v(h);return null!==this.background||null!==this.Hm}f||v.v(h);return!1}; +g.bk=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=f;void 0===f&&(h=v.sh(),h.reset());h.multiply(this.transform);if(this.Mm(a,h))return fn(this,b,c,e),void 0===f&&v.bf(h),!0;if(this.vg(a,h)){if(!this.Lg)for(var k=this.ya.n,l=k.length;l--;){var m=k[l];if(m.visible||m===this.bc){var n=m.Z,p=this.Ia;if(!(n.x>p.width||n.y>p.height||0>n.x+n.width||0>n.y+n.height)){n=m;m=m instanceof C?m:null;p=v.sh();p.set(h);if(null!==m?m.bk(a,b,c,d,e,p):Al(n,a,d,p))null!== +b&&(n=b(n)),null===n||null!==c&&!c(n)||e.add(n);v.bf(p)}}}void 0===f&&v.bf(h);return d}void 0===f&&v.bf(h);return!1};function fn(a,b,c,d){for(var e=a.ya.n,f=e.length;f--;){var h=e[f];if(h.visible){var k=h.Z,l=a.Ia;k.x>l.width||k.y>l.height||0>k.x+k.width||0>k.y+k.height||(h instanceof C&&fn(h,b,c,d),null!==b&&(h=b(h)),null===h||null!==c&&!c(h)||d.add(h))}}} +g.Tm=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===c&&(c=null);void 0===d&&(d=null);var h=this.Ia,k=this.Eg(),l=k?a:Oa(v.Sb(a.x,a.y),this.transform),m=k?b:Oa(v.Sb(b.x,b.y),this.transform),n=l.$j(m),p=0s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.Eg()?(r=q.transform,Oa(k.set(a),r),Oa(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof C?q:null,null!==q?!q.Tm(k,l,c,d,e,f):!r.kE(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||f.add(r))}}v.v(k);v.v(l)}return e? p:h}return!1};function Wm(a){var b=a.B;if(void 0===b||b===jc)b=null;null===b&&a instanceof X&&(a=a.Wa,null!==a&&(b=a.B));null===b&&(b=pb);return b}function Xm(a){var b=a.C;if(void 0===b||b===jc)b=null;null===b&&a instanceof X&&(a=a.Wa,null!==a&&(b=a.C));null===b&&(b=Cb);return b}C.prototype.add=C.prototype.add=function(a){v.A(a,G,C,"add:element");this.Cd(this.ya.count,a)};C.prototype.elt=C.prototype.ha=function(a){return this.ya.ha(a)}; -C.prototype.insertAt=C.prototype.Cd=function(a,b){b instanceof R&&v.k("Cannot add a Part to a Panel: "+b);if(this===b||this.xl(b))this===b&&v.k("Cannot make a Panel contain itself: "+this.toString()),v.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.T;null!==c&&c!==this&&v.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ -this.toString());this.ja!==pj||b instanceof X||v.k("Can only add Shapes to a Grid Panel, not: "+b);b.Hl(this);b.qm=null;if(null!==this.KE){var d=b.data;null!==d&&"object"===typeof d&&(null===this.dg&&(this.dg=new pa(Object,C)),this.dg.add(d,b))}var e=this.ya,d=-1;if(c===this){for(var f=-1,h=this.ya.n,k=h.length,l=0;l=e.count&&a>=e.count)return;e.Uc(f);d=f}else v.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> -a||a>e.count)a=e.count;e.Cd(a,b);this.Q();b.Q();null!==b.Sd?this.Eh=!0:b instanceof C&&!0===b.Eh&&(this.Eh=!0);c=this.Y;null!==c&&(c.mm=null,c.Bj=NaN,this.Eh&&c instanceof S&&(c.Eh=!0),c.Eh&&(c.Wd=null),e=this.g,null!==e&&e.ma.kb||(-1!==d&&c.Kc(Ld,"elements",this,b,null,d,null),c.Kc(Kd,"elements",this,null,b,null,a)))};C.prototype.remove=C.prototype.remove=function(a){v.A(a,G,C,"remove:element");for(var b=this.ya.n,c=b.length,d=-1,e=0;ea&&v.wa(a,">= 0",C,"getRowDefinition:idx");a=Math.round(a);var b=this.Ld;if(void 0===b[a]){var c=new We;c.Hl(this);c.de=!0;c.index=a;b[a]=c}return b[a]};C.prototype.removeRowDefinition=C.prototype.eF=function(a){0>a&&v.wa(a,">= 0",C,"removeRowDefinition:idx");a=Math.round(a);var b=this.Ld;this.Kc(Ld,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.Q()};v.u(C,{So:"columnCount"},function(){return void 0===this.Gd?0:this.Gd.length}); -C.prototype.getColumnDefinition=C.prototype.dd=function(a){0>a&&v.wa(a,">= 0",C,"getColumnDefinition:idx");a=Math.round(a);var b=this.Gd;if(void 0===b[a]){var c=new We;c.Hl(this);c.de=!1;c.index=a;b[a]=c}return b[a]};C.prototype.removeColumnDefinition=C.prototype.aF=function(a){0>a&&v.wa(a,">= 0",C,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Gd;this.Kc(Ld,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.Q()}; -v.defineProperty(C,{eJ:"rowSizing"},function(){return void 0===this.wm?Sm:this.wm},function(a){if(void 0!==this.wm){var b=this.wm;b!==a&&(a!==Sm&&a!==Zm&&v.k("Panel.rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.wm=a,this.Q(),this.h("rowSizing",b,a))}}); -v.defineProperty(C,{YG:"columnSizing"},function(){return void 0===this.Vl?Sm:this.Vl},function(a){if(void 0!==this.Vl){var b=this.Vl;b!==a&&(a!==Sm&&a!==Zm&&v.k("Panel.columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.Vl=a,this.Q(),this.h("columnSizing",b,a))}}); +C.prototype.insertAt=C.prototype.Cd=function(a,b){b instanceof R&&v.k("Cannot add a Part to a Panel: "+b);if(this===b||this.yl(b))this===b&&v.k("Cannot make a Panel contain itself: "+this.toString()),v.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.T;null!==c&&c!==this&&v.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ +this.toString());this.ja!==pj||b instanceof X||v.k("Can only add Shapes to a Grid Panel, not: "+b);b.Il(this);b.rm=null;if(null!==this.LE){var d=b.data;null!==d&&"object"===typeof d&&(null===this.dg&&(this.dg=new pa(Object,C)),this.dg.add(d,b))}var e=this.ya,d=-1;if(c===this){for(var f=-1,h=this.ya.n,k=h.length,l=0;l=e.count&&a>=e.count)return;e.Uc(f);d=f}else v.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> +a||a>e.count)a=e.count;e.Cd(a,b);this.Q();b.Q();null!==b.Sd?this.Eh=!0:b instanceof C&&!0===b.Eh&&(this.Eh=!0);c=this.Y;null!==c&&(c.nm=null,c.Bj=NaN,this.Eh&&c instanceof S&&(c.Eh=!0),c.Eh&&(c.Wd=null),e=this.g,null!==e&&e.ma.kb||(-1!==d&&c.Kc(Ld,"elements",this,b,null,d,null),c.Kc(Kd,"elements",this,null,b,null,a)))};C.prototype.remove=C.prototype.remove=function(a){v.A(a,G,C,"remove:element");for(var b=this.ya.n,c=b.length,d=-1,e=0;ea&&v.wa(a,">= 0",C,"getRowDefinition:idx");a=Math.round(a);var b=this.Ld;if(void 0===b[a]){var c=new We;c.Il(this);c.de=!0;c.index=a;b[a]=c}return b[a]};C.prototype.removeRowDefinition=C.prototype.fF=function(a){0>a&&v.wa(a,">= 0",C,"removeRowDefinition:idx");a=Math.round(a);var b=this.Ld;this.Kc(Ld,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.Q()};v.u(C,{So:"columnCount"},function(){return void 0===this.Gd?0:this.Gd.length}); +C.prototype.getColumnDefinition=C.prototype.dd=function(a){0>a&&v.wa(a,">= 0",C,"getColumnDefinition:idx");a=Math.round(a);var b=this.Gd;if(void 0===b[a]){var c=new We;c.Il(this);c.de=!1;c.index=a;b[a]=c}return b[a]};C.prototype.removeColumnDefinition=C.prototype.bF=function(a){0>a&&v.wa(a,">= 0",C,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Gd;this.Kc(Ld,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.Q()}; +v.defineProperty(C,{eJ:"rowSizing"},function(){return void 0===this.xm?Sm:this.xm},function(a){if(void 0!==this.xm){var b=this.xm;b!==a&&(a!==Sm&&a!==Zm&&v.k("Panel.rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.xm=a,this.Q(),this.h("rowSizing",b,a))}}); +v.defineProperty(C,{ZG:"columnSizing"},function(){return void 0===this.Wl?Sm:this.Wl},function(a){if(void 0!==this.Wl){var b=this.Wl;b!==a&&(a!==Sm&&a!==Zm&&v.k("Panel.columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+a),this.Wl=a,this.Q(),this.h("columnSizing",b,a))}}); v.defineProperty(C,{EL:"topIndex"},function(){return void 0===this.Mi?0:this.Mi},function(a){if(void 0!==this.Mi){var b=this.Mi;b!==a&&((!isFinite(a)||0>a)&&v.k("Panel.topIndex must be greater than zero and a real number, not: "+a),this.Mi=a,this.Q(),this.h("topIndex",b,a))}}); v.defineProperty(C,{OK:"leftIndex"},function(){return void 0===this.yi?0:this.yi},function(a){if(void 0!==this.yi){var b=this.yi;b!==a&&((!isFinite(a)||0>a)&&v.k("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.yi=a,this.Q(),this.h("leftIndex",b,a))}});C.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==Tl)return NaN;for(var b=0,c=this.Ld,d=c.length,e=this.Mi;ea)return-1;if(this.type!==Tl)return NaN;for(var b=0,c=this.Gd,d=c.length,e=this.yi;ea;)this.Oe(a);a=this.KE;if(null!==a)for(var b=v.Va(a),c=0;ca;)this.Oe(a);a=this.LE;if(null!==a)for(var b=v.Va(a),c=0;cc)){var d;d=gn(a,b);var e=a.jI,f=null;null!==e&&(f=e.ka(d));null===f&&(hn||(hn=!0,v.trace('No item template Panel found for category "'+d+'" on '+a),v.trace(" Using default item template."),d=new C,e=new Bf,e.bind(new ff("text","",Md)),d.add(e),jn=d),f=jn);d=f;null!==d&&(rf(d),d=d.copy(),"object"===typeof b&&(null===a.dg&&(a.dg=new pa(Object,C)),a.dg.add(b,d)),e=c,Fk(a)&&e++,a.Cd(e,d),Gk(a,e,c),d.data=b)}} function Gk(a,b,c){for(a=a.ya;ba&&v.wa(a,">= 0",We,"height"),this.We=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("height",b,a))});v.defineProperty(We,{width:"width"},function(){return this.We},function(a){var b=this.We;b!==a&&(0>a&&v.wa(a,">= 0",We,"width"),this.We=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("width",b,a))}); -v.defineProperty(We,{bj:"minimum"},function(){return this.Fj},function(a){var b=this.Fj;b!==a&&((0>a||!isFinite(a))&&v.wa(a,">= 0",We,"minimum"),this.Fj=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("minimum",b,a))});v.defineProperty(We,{hf:"maximum"},function(){return this.Dj},function(a){var b=this.Dj;b!==a&&(0>a&&v.wa(a,">= 0",We,"maximum"),this.Dj=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("maximum",b,a))}); +v.defineProperty(We,{bj:"minimum"},function(){return this.Fj},function(a){var b=this.Fj;b!==a&&((0>a||!isFinite(a))&&v.wa(a,">= 0",We,"minimum"),this.Fj=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("minimum",b,a))});v.defineProperty(We,{jf:"maximum"},function(){return this.Dj},function(a){var b=this.Dj;b!==a&&(0>a&&v.wa(a,">= 0",We,"maximum"),this.Dj=a,this.Na=this.eb,null!==this.T&&this.T.Q(),this.ad("maximum",b,a))}); v.defineProperty(We,{alignment:"alignment"},function(){return this.Be},function(a){var b=this.Be;b.L(a)||(this.Be=a.S(),null!==this.T&&this.T.Q(),this.ad("alignment",b,a))});v.defineProperty(We,{stretch:"stretch"},function(){return this.Th},function(a){var b=this.Th;b!==a&&(this.Th=a,null!==this.T&&this.T.Q(),this.ad("stretch",b,a))}); -v.defineProperty(We,{sF:"separatorPadding"},function(){return this.Kj},function(a){"number"===typeof a&&(a=new cb(a));var b=this.Kj;null!==a&&null!==b&&b.L(a)||(null!==a&&(a=a.S()),this.Kj=a,null!==this.T&&this.T.Q(),this.ad("separatorPadding",b,a))});v.defineProperty(We,{Hp:"separatorStroke"},function(){return this.ls},function(a){var b=this.ls;b!==a&&(null===a||"string"===typeof a||a instanceof ha)&&(a instanceof ha&&a.freeze(),this.ls=a,null!==this.T&&this.T.Q(),this.ad("separatorStroke",b,a))}); +v.defineProperty(We,{tF:"separatorPadding"},function(){return this.Kj},function(a){"number"===typeof a&&(a=new cb(a));var b=this.Kj;null!==a&&null!==b&&b.L(a)||(null!==a&&(a=a.S()),this.Kj=a,null!==this.T&&this.T.Q(),this.ad("separatorPadding",b,a))});v.defineProperty(We,{Hp:"separatorStroke"},function(){return this.ls},function(a){var b=this.ls;b!==a&&(null===a||"string"===typeof a||a instanceof ha)&&(a instanceof ha&&a.freeze(),this.ls=a,null!==this.T&&this.T.Q(),this.ad("separatorStroke",b,a))}); v.defineProperty(We,{Ip:"separatorStrokeWidth"},function(){return this.ms},function(a){var b=this.ms;b!==a&&(this.ms=a,null!==this.T&&this.T.Q(),this.ad("separatorStrokeWidth",b,a))}); v.defineProperty(We,{jJ:"separatorDashArray"},function(){return this.Mh},function(a){var b=this.Mh;if(b!==a){null===a||Array.isArray(a)||v.Ed(a,"Array",We,"separatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;en)){for(var h=c[0],k=c[1],p=0,q=0,r=0,s=l=0,t=q=0,u=v.lb(),x=2;xp&&(p=1);c=p;for(var n=0,m=c,x=f/2,q=0===x?!1:!0,y=0,l=u[y],p=l[0],s=l[1],r=l[2],l=l[3],A=0;.1<=t;){0===A&&(q?(m=c,n++,m-=x,t-=x,q= !1):(m=c,n++),0===m&&(m=1));if(m>t){v.ta(u);return}m>l?(A=m-l,m=l):A=0;var B=Math.sqrt(m*m/(1+r*r));0>p&&(B=-B);h+=B;k+=r*B;a.translate(h,k);a.rotate(s);a.translate(-(f/2),-(e/2));0===A&&d.ak(a,b);a.translate(f/2,e/2);a.rotate(-s);a.translate(-h,-k);t-=m;l-=m;if(0!==A){y++;if(y===u.length){v.ta(u);return}l=u[y];p=l[0];s=l[1];r=l[2];l=l[3];m=A}}v.ta(u)}} -X.prototype.ak=function(a,b){if(null!==this.Bc||null!==this.td){null!==this.td&&Ml(this,a,this.td,!0,!1);null!==this.Bc&&Ml(this,a,this.Bc,!1,!1);var c=this.Ug;if(0===c){var d=this.Y;d instanceof pf&&d.type===fh&&"Selection"===d.Dc&&d.gc instanceof X&&d.Vg.sf()===d.gc&&(c=d.gc.ob)}a.lineWidth=c;a.lineJoin=this.Eo;a.lineCap=this.Co;a.miterLimit=this.zm;var e=!1;this.Y&&b.ek("drawShadows")&&(e=this.Y.zl);var f=!0;null!==this.Bc&&null===this.td&&(f=!1);var d=!1,h=!0,k=this.BF;null!==k&&(d=!0,void 0!== +X.prototype.ak=function(a,b){if(null!==this.Bc||null!==this.td){null!==this.td&&Ml(this,a,this.td,!0,!1);null!==this.Bc&&Ml(this,a,this.Bc,!1,!1);var c=this.Ug;if(0===c){var d=this.Y;d instanceof pf&&d.type===fh&&"Selection"===d.Dc&&d.gc instanceof X&&d.Vg.$e()===d.gc&&(c=d.gc.ob)}a.lineWidth=c;a.lineJoin=this.Eo;a.lineCap=this.Co;a.miterLimit=this.Am;var e=!1;this.Y&&b.ek("drawShadows")&&(e=this.Y.Al);var f=!0;null!==this.Bc&&null===this.td&&(f=!1);var d=!1,h=!0,k=this.CF;null!==k&&(d=!0,void 0!== a.setLineDash?(a.setLineDash(k),a.lineDashOffset=this.nd):void 0!==a.webkitLineDash?(a.webkitLineDash=k,a.webkitLineDashOffset=this.nd):void 0!==a.mozDash?(a.mozDash=k,a.mozDashOffset=this.nd):h=!1);var l=this.Wa;if(null!==l){if(l.ja===Yc)a.beginPath(),d&&!h?wl(a,l.vc,l.Ac,l.yb,l.Db,k,this.nd):(a.moveTo(l.vc,l.Ac),a.lineTo(l.yb,l.Db)),null!==this.td&&Nl(a,this.td),0!==c&&null!==this.Bc&&Pl(a);else if(l.ja===Zc){var m=l.vc,n=l.Ac,p=l.yb,q=l.Db,l=Math.min(m,p),r=Math.min(n,q),m=Math.abs(p-m),n=Math.abs(q- n);null!==this.td&&(a.beginPath(),a.rect(l,r,m,n),Nl(a,this.td));if(null!==this.Bc){var s=p=0,t=0;f&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0);d&&!h?(h=v.lb(),h.push(l),h.push(r),h.push(l+m),h.push(r),h.push(l+m),h.push(r+n),h.push(l),h.push(r+n),h.push(l),h.push(r),a.beginPath(),nn(a,h,k,this.nd),Pl(a),v.ta(h)):0!==c&&(a.beginPath(),a.rect(l,r,m,n),Pl(a));f&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t)}}else if(l.ja===$c)m= l.vc,n=l.Ac,p=l.yb,q=l.Db,l=Math.abs(p-m)/2,r=Math.abs(q-n)/2,m=Math.min(m,p)+l,n=Math.min(n,q)+r,a.beginPath(),a.moveTo(m,n-r),a.bezierCurveTo(m+K.Da*l,n-r,m+l,n-K.Da*r,m+l,n),a.bezierCurveTo(m+l,n+K.Da*r,m+K.Da*l,n+r,m,n+r),a.bezierCurveTo(m-K.Da*l,n+r,m-l,n+K.Da*r,m-l,n),a.bezierCurveTo(m-l,n-K.Da*r,m-K.Da*l,n-r,m,n-r),a.closePath(),null!==this.td&&Nl(a,this.td),d&&!h&&(h=v.lb(),K.oe(m,n-r,m+K.Da*l,n-r,m+l,n-K.Da*r,m+l,n,.5,h),K.oe(m+l,n,m+l,n+K.Da*r,m+K.Da*l,n+r,m,n+r,.5,h),K.oe(m,n+r,m-K.Da* l,n+r,m-l,n+K.Da*r,m-l,n,.5,h),K.oe(m-l,n,m-l,n-K.Da*r,m-K.Da*l,n-r,m,n-r,.5,h),a.beginPath(),nn(a,h,k,this.nd),v.ta(h)),0!==c&&null!==this.Bc&&(t=s=p=0,f&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0),Pl(a),f&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t));else if(l.ja===Pc){r=l.mj;n=r.length;for(q=0;qx.Af);else{var u=wd(x,m),y=u.length;if(0===y){a.lineTo(x.oa,x.va);break}for(var A=0;Ae)) X.prototype.Yj=function(a,b){var c=this.Wa;if(null===c||null===this.fill&&null===this.stroke)return!1;var d=c.rb,e=this.ob/2;c.type!==Yc||b||(e+=2);var f=v.Zf();f.assign(d);f.Pf(e+2,e+2);if(!f.Ga(a))return v.ic(f),!1;d=e+1E-4;if(c.type===Yc){if(null===this.stroke)return!1;d=(c.I-c.Aa)*(a.x-c.Aa)+(c.J-c.xa)*(a.y-c.xa);if(0>(c.Aa-c.I)*(a.x-c.I)+(c.xa-c.J)*(a.y-c.J)||0>d)return!1;v.ic(f);return K.Dd(c.Aa,c.xa,c.I,c.J,e,a.x,a.y)}if(c.type===Zc){var h=c.Aa,k=c.xa,l=c.I,m=c.J,c=Math.min(h,l),n=Math.min(k, m),h=Math.abs(l-h),k=Math.abs(m-k);f.x=c;f.y=n;f.width=h;f.height=k;if(null===this.fill){f.Pf(-d,-d);if(f.Ga(a))return v.ic(f),!1;f.Pf(d,d)}null!==this.stroke&&f.Pf(e,e);e=f.Ga(a);v.ic(f);return e}if(c.type===$c){h=c.Aa;k=c.xa;l=c.I;m=c.J;c=Math.min(h,l);n=Math.min(k,m);h=Math.abs(l-h);k=Math.abs(m-k);h/=2;k/=2;c=a.x-(c+h);n=a.y-(n+k);if(null===this.fill){h-=d;k-=d;if(0>=h||0>=k||1>=c*c/(h*h)+n*n/(k*k))return v.ic(f),!1;h+=d;k+=d}null!==this.stroke&&(h+=e,k+=e);v.ic(f);return 0>=h||0>=k?!1:1>=c*c/ (h*h)+n*n/(k*k)}if(c.type===Pc)return v.ic(f),null===this.fill?zd(c,a.x,a.y,e):c.Ga(a,e,1=this.ob)n=K.hh(p.vc,p.Ac,p.yb,p.Db,f,h,k,l,e);else{var r=0,s=0;p.vc===p.yb?(r=m,s=0):(b=(p.Db-p.Ac)/(p.yb-p.vc),s=m/Math.sqrt(1+b*b),r=s*b);d=v.lb();b=new w;K.hh(p.vc+ -r,p.Ac+s,p.yb+r,p.Db+s,f,h,k,l,b)&&d.push(b);b=new w;K.hh(p.vc-r,p.Ac-s,p.yb-r,p.Db-s,f,h,k,l,b)&&d.push(b);b=new w;K.hh(p.vc+r,p.Ac+s,p.vc-r,p.Ac-s,f,h,k,l,b)&&d.push(b);b=new w;K.hh(p.yb+r,p.Db+s,p.yb-r,p.Db-s,f,h,k,l,b)&&d.push(b);b=d.length;if(0===b)return v.ta(d),!1;n=!0;s=Infinity;for(r=0;rMath.abs(c)){n=h-b-c*(f-d);if(0>a*a*c*c+u*u-n*n){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(a*a*c*c+u*u-n*n);k=(-(a*a*c*n)+a*u*m)/(u*u+a*a*c*c)+d;a=(-(a*a*c*n)-a*u*m)/(u*u+a*a*c*c)+d;l=c*(k-d)+n+b;b=c*(a-d)+n+b;d=Math.abs((f-k)*(f-k))+Math.abs((h-l)*(h-l));h=Math.abs((f-a)*(f-a))+Math.abs((h-b)* (h-b));dk){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(k);l=b+m;b-=m;d=Math.abs(l-h);h=Math.abs(b-h);dc?a-c:c-a)<(b>d?b-d:d-b)?(e=be||K.bb(l.y,e))&&(l.ye||K.bb(l.x,e))&&(l.x=h&&d<=a}a=h&&f<=a} -X.prototype.jE=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.Yj(a,!0))return!0;var e=a.$j(b);b=e;1.5=h&&d<=a}a=h&&f<=a} +X.prototype.kE=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.Yj(a,!0))return!0;var e=a.$j(b);b=e;1.5=e||Ra(b,f,0,-p)>=e||Ra(b,f,0,p)>=e||Ra(b,f,n, 0)>=e?!1:!0}else if(f.type===Pc){h=f.rb;k=h.x;l=h.y;m=h.x+h.width;h=h.y+h.height;if(a.x>m&&a.xh&&a.ye&&Qa(a.x,a.y,k,l,m,l)>e&&Qa(a.x,a.y,m,h,k,h)>e&&Qa(a.x,a.y,m,h,m,l)>e)return!1;b=Math.sqrt(e);if(c){if(null===this.fill?zd(f,a.x,a.y,b):f.Ga(a,b,!0))return!0}else{c=f.Wb;for(b=0;be)return!1;l=k.wb.n;m=l.length;for(h=0;he)return!1;break;case sd:f= v.lb();K.oe(n,p,q.rc,q.Jc,q.nh,q.oh,q.I,q.J,.8,f);n=d(f,a);v.ta(f);if(n)return!1;n=q.I;p=q.J;if(a.Xo(n,p)>e)return!1;break;case td:f=v.lb();K.zp(n,p,q.rc,q.Jc,q.I,q.J,.8,f);n=d(f,a);v.ta(f);if(n)return!1;n=q.I;p=q.J;if(a.Xo(n,p)>e)return!1;break;case ud:case vd:var r=q.type===ud?wd(q,k):xd(q,k,n,p),s=r.length;if(0===s){n=q.oa;p=q.va;if(a.Xo(n,p)>e)return!1;break}q=null;f=v.lb();for(b=0;b= 0",X,"strokeWidth:value")});v.defineProperty(X,{xL:"strokeCap"},function(){return this.Co},function(a){var b=this.Co;b!==a&&("string"!==typeof a||"butt"!==a&&"round"!==a&&"square"!==a?v.wa(a,'"butt", "round", or "square"',X,"strokeCap"):(this.Co=a,this.qa(),this.h("strokeCap",b,a)))}); -v.defineProperty(X,{zL:"strokeJoin"},function(){return this.Eo},function(a){var b=this.Eo;b!==a&&("string"!==typeof a||"miter"!==a&&"bevel"!==a&&"round"!==a?v.wa(a,'"miter", "bevel", or "round"',X,"strokeJoin"):(this.Eo=a,this.qa(),this.h("strokeJoin",b,a)))});v.defineProperty(X,{AL:"strokeMiterLimit"},function(){return this.zm},function(a){var b=this.zm;if(b!==a)if(1<=a){this.zm=a;this.qa();var c=this.Y;null!==c&&(c.Bj=NaN);this.h("strokeMiterLimit",b,a)}else v.wa(a,"value >= 1",X,"strokeWidth:value")}); -v.defineProperty(X,{BF:"strokeDashArray"},function(){return this.Do},function(a){var b=this.Do;if(b!==a){null===a||Array.isArray(a)||v.Ed(a,"Array",X,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e= 1",X,"strokeWidth:value")}); +v.defineProperty(X,{CF:"strokeDashArray"},function(){return this.Do},function(a){var b=this.Do;if(b!==a){null===a||Array.isArray(a)||v.Ed(a,"Array",X,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;em*k*k&&(h=!0);b.Ig!==a&&(h=!1);!1===b.ek("textGreeking")&&(h=!1);for(var m=this.Mj,k=this.Nj,l=this.Fe,n=0;nc&&(p=c);var f=f+m,r=q,q=a,s=f,t=c, +v.u(Bf,{Ia:"naturalBounds"},function(){if(!this.Pc.K()){var a=Gn(this,this.ke,this.Lk,999999).width,b=Hn(this,a,this.Lk),c=this.za;isNaN(c.width)||(a=c.width);isNaN(c.height)||(b=c.height);Ua(this.Pc,a,b)}return this.Pc});v.defineProperty(Bf,{Ww:"isMultiline"},function(){return this.Vq},function(a){var b=this.Vq;b!==a&&(this.Vq=a,this.Q(),this.h("isMultiline",b,a))}); +v.defineProperty(Bf,{KK:"isUnderline"},function(){return this.dm},function(a){var b=this.dm;b!==a&&(this.dm=a,this.qa(),this.h("isUnderline",b,a))});v.defineProperty(Bf,{IK:"isStrikethrough"},function(){return this.cm},function(a){var b=this.cm;b!==a&&(this.cm=a,this.qa(),this.h("isStrikethrough",b,a))});v.defineProperty(Bf,{UF:"wrap"},function(){return this.Dm},function(a){var b=this.Dm;b!==a&&(this.Dm=a,this.Q(),this.h("wrap",b,a))}); +v.defineProperty(Bf,{overflow:"overflow"},function(){return this.Uk},function(a){var b=this.Uk;b!==a&&(this.Uk=a,this.Q(),this.h("overflow",b,a))});v.defineProperty(Bf,{stroke:"stroke"},function(){return this.Bc},function(a){var b=this.Bc;b!==a&&(a instanceof ha&&a.freeze(),this.Bc=a,this.qa(),this.h("stroke",b,a))});v.u(Bf,{oI:"lineCount"},function(){return this.Fe});v.defineProperty(Bf,{Iz:"editable"},function(){return this.Fq},function(a){var b=this.Fq;b!==a&&(this.Fq=a,this.h("editable",b,a))}); +v.defineProperty(Bf,{DF:"textEditor"},function(){return this.ws},function(a){var b=this.ws;b!==a&&(a instanceof HTMLElement||v.k("textEditor must be an HTMLElement, not: "+a),this.ws=a,this.h("textEditor",b,a))});v.defineProperty(Bf,{Jz:"errorFunction"},function(){return this.pf},function(a){var b=this.pf;b!==a&&(null!==a&&v.j(a,"function",Bf,"errorFunction"),this.pf=a,this.h("errorFunction",b,a))});function Jl(a,b){var c=a.Jg;null!==c&&b.mu!==c&&(b.font=c,b.mu=c)} +Bf.prototype.ak=function(a,b){if(null!==this.Bc&&0!==this.ke.length&&null!==this.Jg){var c=this.Ia.width,d=In(this);a.textAlign=this.zd;Ml(this,a,this.Bc,!0,!1);(this.dm||this.cm)&&Ml(this,a,this.Bc,!1,!1);var e=this.Lk,f=0,h=!1,k=v.Sb(0,0);this.Wg.xb(k);var l=v.Sb(0,d);this.Wg.xb(l);var m=k.$j(l);v.v(k);v.v(l);k=b.scale;8>m*k*k&&(h=!0);b.Ig!==a&&(h=!1);!1===b.ek("textGreeking")&&(h=!1);for(var m=this.Mj,k=this.Nj,l=this.Fe,n=0;nc&&(p=c);var f=f+m,r=q,q=a,s=f,t=c, u=d,x=0;h?("start"===this.zd||"left"===this.zd?x=0:"end"===this.zd||"right"===this.zd?x=t-p:"center"===this.zd?x=(t-p)/2:v.k("textAlign must be start, end, left, right, or center: "+this.zd),q.fillRect(0+x,s+.25*u,p,1)):("start"===this.zd||"left"===this.zd?x=0:"end"===this.zd||"right"===this.zd?x=t:"center"===this.zd?x=t/2:v.k("textAlign must be start, end, left, right, or center: "+this.zd),q.fillText(r,0+x,s+u-.25*u),r=u/20|0,0===r&&(r=1),"end"===this.zd||"right"===this.zd?x-=p:"center"===this.zd&& -(x-=p/2),this.cm&&(q.beginPath(),q.lineWidth=r,q.moveTo(0+x,s+u-.2*u),q.lineTo(0+x+p,s+u-.2*u),q.stroke()),this.bm&&(q.beginPath(),q.lineWidth=r,s=s+u-u/2.2|0,0!==r%2&&(s+=.5),q.moveTo(0+x,s),q.lineTo(0+x+p,s),q.stroke()));f+=d+k}}}; -Bf.prototype.pp=function(a,b,c,d){this.ov=a;var e=this.Lk;e.reset();var f=0,h=0;if(isNaN(this.za.width)){f=this.ke.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(0===f.length)f=0;else if(this.Vw){for(var k=h=0,l=!1;!l;){var m=f.indexOf("\n",k);-1===m&&(m=f.length,l=!0);k=Jn(f.substr(k,m-k).replace(/^\s+|\s+$/g,""),this.Jg);k>h&&(h=k);k=m+1}f=h}else h=f.indexOf("\n",0),0<=h&&(f=f.substr(0,h)),f=k=Jn(f,this.Jg);f=Math.min(f,a/this.scale);f=Math.max(8,f)}else f=this.za.width;null!==this.T&&(f=Math.min(f, -this.T.gf.width),f=Math.max(f,this.T.wg.width));h=Hn(this,f,e);m=h=isNaN(this.za.height)?Math.min(h,b/this.scale):this.za.height;if(0!==e.Ue&&1!==e.Ce.length&&this.Uk===Fn&&(b=this.Jg,l=this.Uk===Fn?Kn(b):0,k=this.Mj+this.Nj,k=Math.max(0,In(this)+k),m=Math.min(this.wI-1,Math.max(Math.floor(m/k)-1,0)),!(m+1>=e.Ce.length))){k=e.Ce[m];for(a=Math.max(1,a-l);Jn(k,b)>a&&1=a.zi)return new ia(0,l);if(a.Cm===Dn){c.Oi=1;f=Jn(b,k);if(0===h||f<=d)return c.Ue=f,c.mf.push(c.Ue),c.Ce.push(b),new ia(f,l);var m=Ln(b);b=b.substr(m.length);for(var n=Ln(b),f=Jn(m+n,k);0d&&1d;){n=1;f=Jn(m.substr(0,n),k);for(h=0;f<=d;)n++,h=f,f=Jn(m.substr(0,n),k);1===n?(c.mf[a.Fe+p]=f,e=Math.max(e,f)):(c.mf[a.Fe+p]=h,e=Math.max(e,h));n--;1>n&&(n=1);c.Ce[a.Fe+p]=m.substr(0,n);p++;m=m.substr(n);if(a.Fe+p>a.zi)break}n=Ln(b);for(f=Jn(m+n,k);0a.zi))break}c.Oi=Math.min(a.zi,p);c.Ue=Math.max(c.Ue,e);return new ia(c.Ue,l*c.Oi)}function Ln(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function Jn(a,b){Bn!==b&&(Bn=Cn.font=b);return Cn.measureText(a).width} +(x-=p/2),this.dm&&(q.beginPath(),q.lineWidth=r,q.moveTo(0+x,s+u-.2*u),q.lineTo(0+x+p,s+u-.2*u),q.stroke()),this.cm&&(q.beginPath(),q.lineWidth=r,s=s+u-u/2.2|0,0!==r%2&&(s+=.5),q.moveTo(0+x,s),q.lineTo(0+x+p,s),q.stroke()));f+=d+k}}}; +Bf.prototype.pp=function(a,b,c,d){this.ov=a;var e=this.Lk;e.reset();var f=0,h=0;if(isNaN(this.za.width)){f=this.ke.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(0===f.length)f=0;else if(this.Ww){for(var k=h=0,l=!1;!l;){var m=f.indexOf("\n",k);-1===m&&(m=f.length,l=!0);k=Jn(f.substr(k,m-k).replace(/^\s+|\s+$/g,""),this.Jg);k>h&&(h=k);k=m+1}f=h}else h=f.indexOf("\n",0),0<=h&&(f=f.substr(0,h)),f=k=Jn(f,this.Jg);f=Math.min(f,a/this.scale);f=Math.max(8,f)}else f=this.za.width;null!==this.T&&(f=Math.min(f, +this.T.hf.width),f=Math.max(f,this.T.wg.width));h=Hn(this,f,e);m=h=isNaN(this.za.height)?Math.min(h,b/this.scale):this.za.height;if(0!==e.Ue&&1!==e.Ce.length&&this.Uk===Fn&&(b=this.Jg,l=this.Uk===Fn?Kn(b):0,k=this.Mj+this.Nj,k=Math.max(0,In(this)+k),m=Math.min(this.wI-1,Math.max(Math.floor(m/k+.01)-1,0)),!(m+1>=e.Ce.length))){k=e.Ce[m];for(a=Math.max(1,a-l);Jn(k,b)>a&&1=a.zi)return new ia(0,l);if(a.Dm===Dn){c.Oi=1;f=Jn(b,k);if(0===h||f<=d)return c.Ue=f,c.nf.push(c.Ue),c.Ce.push(b),new ia(f,l);var m=Ln(b);b=b.substr(m.length);for(var n=Ln(b),f=Jn(m+n,k);0d&&1d;){n=1;f=Jn(m.substr(0,n),k);for(h=0;f<=d;)n++,h=f,f=Jn(m.substr(0,n),k);1===n?(c.nf[a.Fe+p]=f,e=Math.max(e,f)):(c.nf[a.Fe+p]=h,e=Math.max(e,h));n--;1>n&&(n=1);c.Ce[a.Fe+p]=m.substr(0,n);p++;m=m.substr(n);if(a.Fe+p>a.zi)break}n=Ln(b);for(f=Jn(m+n,k);0a.zi))break}c.Oi=Math.min(a.zi,p);c.Ue=Math.max(c.Ue,e);return new ia(c.Ue,l*c.Oi)}function Ln(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function Jn(a,b){Bn!==b&&(Bn=Cn.font=b);return Cn.measureText(a).width} function In(a){if(null!==a.Sn)return a.Sn;var b=a.Jg;Bn!==b&&(Bn=Cn.font=b);var c=0;void 0!==wn[b]&&5E3>xn?c=wn[b]:(c=1.3*Cn.measureText("M").width,wn[b]=c,xn++);return a.Sn=c}function Kn(a){Bn!==a&&(Bn=Cn.font=a);var b=0;void 0!==yn[a]&&5E3>zn?b=yn[a]:(b=Cn.measureText(An).width,yn[a]=b,zn++);return b} -function Hn(a,b,c){var d=a.ke.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.Mj+a.Nj,e=Math.max(0,In(a)+e);if(0===d.length)return c.Ue=0,a.Fe=1,e;if(!a.Vw){var f=d.indexOf("\n",0);0<=f&&(d=d.substr(0,f))}for(var f=0,h=a.Fe=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.Cm!==Dn?(c.Oi=0,h=Gn(a,h,c,b),f+=h.height,a.Fe+=c.Oi):(Gn(a,h,c,b),f+=e,a.Fe++),a.Fe===a.zi&&(l=!0)),h=k+1;return a.tv=f} -v.defineProperty(Bf,{NA:"textValidation"},function(){return this.Wk},function(a){var b=this.Wk;b!==a&&(null!==a&&v.j(a,"function",Bf,"textValidation"),this.Wk=a,this.h("textValidation",b,a))});v.defineProperty(Bf,{uL:"spacingAbove"},function(){return this.Mj},function(a){var b=this.Mj;b!==a&&(this.Mj=a,this.h("spacingAbove",b,a))});v.defineProperty(Bf,{vL:"spacingBelow"},function(){return this.Nj},function(a){var b=this.Nj;b!==a&&(this.Nj=a,this.h("spacingBelow",b,a))}); -v.defineProperty(Bf,{wI:"maxLines"},function(){return this.zi},function(a){var b=this.zi;b!==a&&(a=Math.floor(a),0>=a&&v.wa(a,"> 0",Bf,"maxLines"),this.zi=a,this.h("maxLines",b,a),this.Q())});v.u(Bf,{XK:"metrics"},function(){return this.Lk});function vn(){this.Ue=this.Oi=0;this.mf=[];this.Ce=[]}vn.prototype.reset=function(){this.Ue=this.Oi=0;this.mf=[];this.Ce=[]};vn.prototype.Xs=function(a){this.Oi=a.Oi;this.Ue=a.Ue;this.mf=v.fl(a.mf);this.Ce=v.fl(a.Ce)};v.u(vn,{eK:"arrSize"},function(){return this.mf}); -v.u(vn,{fK:"arrText"},function(){return this.Ce});v.u(vn,{WK:"maxLineWidth"},function(){return this.Ue});function dj(){G.call(this);this.Se=null;this.rs="";this.Lj=K.ZF;this.Un=Rc;this.Fo=this.Oj=this.of=null;this.Hy=!1;this.Wu=!0;this.xo=null}v.Ja(dj,G);v.ea("Picture",dj);dj.prototype.cloneProtected=function(a){G.prototype.cloneProtected.call(this,a);a.element=this.Se;a.rs=this.rs;a.Lj=this.Lj.S();a.Un=this.Un;a.of=this.of;a.Oj=this.Oj;a.Wu=this.Wu;a.xo=this.xo};var Mn=new ua,Nn=0,Oi=[]; +function Hn(a,b,c){var d=a.ke.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.Mj+a.Nj,e=Math.max(0,In(a)+e);if(0===d.length)return c.Ue=0,a.Fe=1,e;if(!a.Ww){var f=d.indexOf("\n",0);0<=f&&(d=d.substr(0,f))}for(var f=0,h=a.Fe=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.Dm!==Dn?(c.Oi=0,h=Gn(a,h,c,b),f+=h.height,a.Fe+=c.Oi):(Gn(a,h,c,b),f+=e,a.Fe++),a.Fe===a.zi&&(l=!0)),h=k+1;return a.tv=f} +v.defineProperty(Bf,{OA:"textValidation"},function(){return this.Wk},function(a){var b=this.Wk;b!==a&&(null!==a&&v.j(a,"function",Bf,"textValidation"),this.Wk=a,this.h("textValidation",b,a))});v.defineProperty(Bf,{uL:"spacingAbove"},function(){return this.Mj},function(a){var b=this.Mj;b!==a&&(this.Mj=a,this.h("spacingAbove",b,a))});v.defineProperty(Bf,{vL:"spacingBelow"},function(){return this.Nj},function(a){var b=this.Nj;b!==a&&(this.Nj=a,this.h("spacingBelow",b,a))}); +v.defineProperty(Bf,{wI:"maxLines"},function(){return this.zi},function(a){var b=this.zi;b!==a&&(a=Math.floor(a),0>=a&&v.wa(a,"> 0",Bf,"maxLines"),this.zi=a,this.h("maxLines",b,a),this.Q())});v.u(Bf,{XK:"metrics"},function(){return this.Lk});function vn(){this.Ue=this.Oi=0;this.nf=[];this.Ce=[]}vn.prototype.reset=function(){this.Ue=this.Oi=0;this.nf=[];this.Ce=[]};vn.prototype.Xs=function(a){this.Oi=a.Oi;this.Ue=a.Ue;this.nf=v.fl(a.nf);this.Ce=v.fl(a.Ce)};v.u(vn,{eK:"arrSize"},function(){return this.nf}); +v.u(vn,{fK:"arrText"},function(){return this.Ce});v.u(vn,{WK:"maxLineWidth"},function(){return this.Ue});function dj(){G.call(this);this.Se=null;this.rs="";this.Lj=K.$F;this.Un=Rc;this.Fo=this.Oj=this.pf=null;this.Iy=!1;this.Wu=!0;this.xo=null}v.Ja(dj,G);v.ea("Picture",dj);dj.prototype.cloneProtected=function(a){G.prototype.cloneProtected.call(this,a);a.element=this.Se;a.rs=this.rs;a.Lj=this.Lj.S();a.Un=this.Un;a.pf=this.pf;a.Oj=this.Oj;a.Wu=this.Wu;a.xo=this.xo};var Mn=new ua,Nn=0,Oi=[]; function On(){var a=Oi;if(0===a.length)for(var b=window.document.getElementsByTagName("canvas"),c=b.length,d=0;dr.Mo.length&& -(Tn(r,4,l,m),Tn(r,16,l,m));for(var l=r.Mo,m=l.length,q=l[0],t=0;te;e++)a.lineTo(d[e].x*b,d[e].y*c); v.ta(d);P(a);b=a.o;b.B=new L(.2,.22);b.C=new L(.8,.9);v.s(a);return b},DataTransmission:"Hexagon",Hexagon:function(a,b,c){var d=K.gl(6);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;6>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.07,.25);b.C=new L(.93,.75);v.s(a);return b},Heptagon:function(a,b,c){var d=K.gl(7);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;7>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.2,.15);b.C=new L(.8,.85);v.s(a);return b},Octagon:function(a, b,c){var d=K.gl(8);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;8>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.15,.15);b.C=new L(.85,.85);v.s(a);return b},Nonagon:function(a,b,c){var d=K.gl(9);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;9>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.17,.13);b.C=new L(.82,.82);v.s(a);return b},Decagon:function(a,b,c){var d=K.gl(10);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a); -b=a.o;b.B=new L(.16,.16);b.C=new L(.84,.84);v.s(a);return b},Dodecagon:function(a,b,c){var d=K.gl(12);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.16,.16);b.C=new L(.84,.84);v.s(a);return b},FivePointedStar:function(a,b,c){var d=K.Pm(5);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.312,.383);b.C=new L(.693,.765);v.s(a);return b},SixPointedStar:function(a,b,c){var d= -K.Pm(6);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.17,.251);b.C=new L(.833,.755);v.s(a);return b},SevenPointedStar:function(a,b,c){var d=K.Pm(7);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;14>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.363,.361);b.C=new L(.641,.709);v.s(a);return b},EightPointedStar:function(a,b,c){var d=K.Pm(8);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;16>e;e++)a.lineTo(d[e].x*b,d[e].y* -c);v.ta(d);P(a);b=a.o;b.B=new L(.252,.255);b.C=new L(.75,.75);v.s(a);return b},NinePointedStar:function(a,b,c){var d=K.Pm(9);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;18>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.355,.361);b.C=new L(.645,.651);v.s(a);return b},TenPointedStar:function(a,b,c){var d=K.Pm(10);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;20>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.281,.261);b.C=new L(.723,.748);v.s(a);return b},FivePointedBurst:function(a, +b=a.o;b.B=new L(.16,.16);b.C=new L(.84,.84);v.s(a);return b},Dodecagon:function(a,b,c){var d=K.gl(12);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.16,.16);b.C=new L(.84,.84);v.s(a);return b},FivePointedStar:function(a,b,c){var d=K.Qm(5);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;10>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.312,.383);b.C=new L(.693,.765);v.s(a);return b},SixPointedStar:function(a,b,c){var d= +K.Qm(6);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;12>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.17,.251);b.C=new L(.833,.755);v.s(a);return b},SevenPointedStar:function(a,b,c){var d=K.Qm(7);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;14>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.363,.361);b.C=new L(.641,.709);v.s(a);return b},EightPointedStar:function(a,b,c){var d=K.Qm(8);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;16>e;e++)a.lineTo(d[e].x*b,d[e].y* +c);v.ta(d);P(a);b=a.o;b.B=new L(.252,.255);b.C=new L(.75,.75);v.s(a);return b},NinePointedStar:function(a,b,c){var d=K.Qm(9);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;18>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.355,.361);b.C=new L(.645,.651);v.s(a);return b},TenPointedStar:function(a,b,c){var d=K.Qm(10);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;20>e;e++)a.lineTo(d[e].x*b,d[e].y*c);v.ta(d);P(a);b=a.o;b.B=new L(.281,.261);b.C=new L(.723,.748);v.s(a);return b},FivePointedBurst:function(a, b,c){var d=K.Uo(5);a=v.q();N(a,d[0].x*b,d[0].y*c,!0);for(var e=1;ek&&a.y>l&&a.rightk&&b.y>l&&b.rightk&&a.y>l&&a.rightk&&b.y>l&&b.right=c.yI)){this.R^=4096;var d=!1;if(null!==c){d=c.nb;c.nb=!0;var e=c.selection;e.Oa();a?e.add(this):e.remove(this);e.freeze()}this.h("isSelected",b,a);this.be();a=this.iJ;null!==a&&a(this);null!==c&&(c.ue(),c.nb=d)}}}); -v.defineProperty(R,{bh:"isHighlighted"},function(){return 0!==(this.R&524288)},function(a){var b=0!==(this.R&524288);if(b!==a){this.R^=524288;var c=this.g;null!==c&&(c=c.Ym,c.Oa(),a?c.add(this):c.remove(this),c.freeze());this.h("isHighlighted",b,a);this.qa()}});v.defineProperty(R,{zl:"isShadowed"},function(){return 0!==(this.R&8192)},function(a){var b=0!==(this.R&8192);b!==a&&(this.R^=8192,this.h("isShadowed",b,a),this.qa())});function Pj(a){return 0!==(a.R&32768)} -function Yn(a,b){a.R=b?a.R|32768:a.R&-32769}function El(a,b){a.R=b?a.R|65536:a.R&-65537}function Fi(a){return 0!==(a.R&131072)}R.prototype.yf=function(a){this.R=a?this.R|131072:this.R&-131073};function fo(a,b){a.R=b?a.R|1048576:a.R&-1048577}v.defineProperty(R,{zE:"isAnimated"},function(){return 0!==(this.R&262144)},function(a){var b=0!==(this.R&262144);b!==a&&(this.R^=262144,this.h("isAnimated",b,a))}); -v.defineProperty(R,{DA:"selectionObjectName"},function(){return this.ks},function(a){var b=this.ks;b!==a&&(this.ks=a,this.xm=null,this.h("selectionObjectName",b,a))});v.defineProperty(R,{hJ:"selectionAdornmentTemplate"},function(){return this.hs},function(a){var b=this.hs;b!==a&&(this instanceof W&&(a.type=fh),this.hs=a,this.h("selectionAdornmentTemplate",b,a))}); -v.u(R,{Xt:"selectionObject"},function(){if(null===this.xm){var a=this.DA;null!==a&&""!==a?(a=this.ae(a),this.xm=null!==a?a:this):this instanceof W?(a=this.path,this.xm=null!==a?a:this):this.xm=this}return this.xm});v.defineProperty(R,{iJ:"selectionChanged"},function(){return this.js},function(a){var b=this.js;b!==a&&(null!==a&&v.j(a,"function",R,"selectionChanged"),this.js=a,this.h("selectionChanged",b,a))}); -v.defineProperty(R,{hF:"resizeAdornmentTemplate"},function(){return this.Vr},function(a){var b=this.Vr;b!==a&&(this.Vr=a,this.h("resizeAdornmentTemplate",b,a))});v.defineProperty(R,{jF:"resizeObjectName"},function(){return this.Xr},function(a){var b=this.Xr;b!==a&&(this.Xr=a,this.to=null,this.h("resizeObjectName",b,a))});v.u(R,{iF:"resizeObject"},function(){if(null===this.to){var a=this.jF;null!==a&&""!==a?(a=this.ae(a),this.to=null!==a?a:this):this.to=this}return this.to}); +v.defineProperty(R,{bh:"isHighlighted"},function(){return 0!==(this.R&524288)},function(a){var b=0!==(this.R&524288);if(b!==a){this.R^=524288;var c=this.g;null!==c&&(c=c.Ym,c.Oa(),a?c.add(this):c.remove(this),c.freeze());this.h("isHighlighted",b,a);this.qa()}});v.defineProperty(R,{Al:"isShadowed"},function(){return 0!==(this.R&8192)},function(a){var b=0!==(this.R&8192);b!==a&&(this.R^=8192,this.h("isShadowed",b,a),this.qa())});function Pj(a){return 0!==(a.R&32768)} +function Yn(a,b){a.R=b?a.R|32768:a.R&-32769}function El(a,b){a.R=b?a.R|65536:a.R&-65537}function Fi(a){return 0!==(a.R&131072)}R.prototype.yf=function(a){this.R=a?this.R|131072:this.R&-131073};function fo(a,b){a.R=b?a.R|1048576:a.R&-1048577}v.defineProperty(R,{AE:"isAnimated"},function(){return 0!==(this.R&262144)},function(a){var b=0!==(this.R&262144);b!==a&&(this.R^=262144,this.h("isAnimated",b,a))}); +v.defineProperty(R,{EA:"selectionObjectName"},function(){return this.ks},function(a){var b=this.ks;b!==a&&(this.ks=a,this.ym=null,this.h("selectionObjectName",b,a))});v.defineProperty(R,{hJ:"selectionAdornmentTemplate"},function(){return this.hs},function(a){var b=this.hs;b!==a&&(this instanceof W&&(a.type=fh),this.hs=a,this.h("selectionAdornmentTemplate",b,a))}); +v.u(R,{Xt:"selectionObject"},function(){if(null===this.ym){var a=this.EA;null!==a&&""!==a?(a=this.ae(a),this.ym=null!==a?a:this):this instanceof W?(a=this.path,this.ym=null!==a?a:this):this.ym=this}return this.ym});v.defineProperty(R,{iJ:"selectionChanged"},function(){return this.js},function(a){var b=this.js;b!==a&&(null!==a&&v.j(a,"function",R,"selectionChanged"),this.js=a,this.h("selectionChanged",b,a))}); +v.defineProperty(R,{iF:"resizeAdornmentTemplate"},function(){return this.Vr},function(a){var b=this.Vr;b!==a&&(this.Vr=a,this.h("resizeAdornmentTemplate",b,a))});v.defineProperty(R,{kF:"resizeObjectName"},function(){return this.Xr},function(a){var b=this.Xr;b!==a&&(this.Xr=a,this.to=null,this.h("resizeObjectName",b,a))});v.u(R,{jF:"resizeObject"},function(){if(null===this.to){var a=this.kF;null!==a&&""!==a?(a=this.ae(a),this.to=null!==a?a:this):this.to=this}return this.to}); v.defineProperty(R,{YI:"resizeCellSize"},function(){return this.Wr},function(a){var b=this.Wr;b.L(a)||(this.Wr=a=a.S(),this.h("resizeCellSize",b,a))});v.defineProperty(R,{aJ:"rotateAdornmentTemplate"},function(){return this.Yr},function(a){var b=this.Yr;b!==a&&(this.Yr=a,this.h("rotateAdornmentTemplate",b,a))});v.defineProperty(R,{bJ:"rotateObjectName"},function(){return this.Zr},function(a){var b=this.Zr;b!==a&&(this.Zr=a,this.uo=null,this.h("rotateObjectName",b,a))}); -v.u(R,{lF:"rotateObject"},function(){if(null===this.uo){var a=this.bJ;null!==a&&""!==a?(a=this.ae(a),this.uo=null!==a?a:this):this.uo=this}return this.uo});v.defineProperty(R,{text:"text"},function(){return this.ke},function(a){var b=this.ke;b!==a&&(this.ke=a,this.h("text",b,a))}); +v.u(R,{mF:"rotateObject"},function(){if(null===this.uo){var a=this.bJ;null!==a&&""!==a?(a=this.ae(a),this.uo=null!==a?a:this):this.uo=this}return this.uo});v.defineProperty(R,{text:"text"},function(){return this.ke},function(a){var b=this.ke;b!==a&&(this.ke=a,this.h("text",b,a))}); v.defineProperty(R,{Sa:"containingGroup"},function(){return this.yk},function(a){if(this.Pd()){var b=this.yk;if(b!==a){null===a||this!==a&&!a.ai(this)||(this===a&&v.k("Cannot make a Group a member of itself: "+this.toString()),v.k("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString()));this.H(ek);var c=this.g;null!==b?ho(b,this):this instanceof T&&null!==c&&c.Xk.remove(this);this.yk=a;null!==a?io(a,this):this instanceof T&&null!==c&&c.Xk.add(this);this.H(Wj); -if(null!==c){var d=this.data,e=c.ca;null!==d&&e instanceof Q&&e.yx(d,e.ib(null!==a?a.data:null))}d=this.SD;null!==d&&(e=!0,null!==c&&(e=c.Qa,c.Qa=!0),d(this,b,a),null!==c&&(c.Qa=e));if(this instanceof T)for(c=new J(R),of(c,this,!0,0,!0),c=c.i;c.next();)if(d=c.value,d instanceof S)for(d=d.te;d.next();)Kk(d.value);if(this instanceof S)for(d=this.te;d.next();)Kk(d.value);this.h("containingGroup",b,a);null!==a&&(b=a.layer,null!==b&&Li(b,-1,a))}}else v.k("cannot set the Part.containingGroup of a Link or Adornment")}); -g=R.prototype;g.ul=function(){var a=this.Sa;null!==a&&(a.Q(),null!==a.Ib&&a.Ib.Q(),a.df())};g.qa=function(){var a=this.g;null!==a&&!Oj(this)&&!Pj(this)&&this.isVisible()&&this.mc.K()&&a.qa(Ki(this,this.mc))};g.pt=function(a){a||(a=this.yk,null!==a&&io(a,this))};g.qt=function(a){a||(a=this.yk,null!==a&&ho(a,this))};g.Rm=function(){var a=this.data;if(null!==a){var b=this.g;null!==b&&(b=b.ca,null!==b&&b.qx(a))}}; -v.defineProperty(R,{SD:"containingGroupChanged"},function(){return this.kq},function(a){var b=this.kq;b!==a&&(null!==a&&v.j(a,"function",R,"containingGroupChanged"),this.kq=a,this.h("containingGroupChanged",b,a))});R.prototype.findSubGraphLevel=function(){return jo(this,this)};function jo(a,b){var c=b.Sa;return null!==c?1+jo(a,c):b instanceof S&&(c=b.fe,null!==c)?jo(a,c):0}R.prototype.findTopLevelPart=function(){return ko(this,this)}; +if(null!==c){var d=this.data,e=c.ca;null!==d&&e instanceof Q&&e.zx(d,e.ib(null!==a?a.data:null))}d=this.TD;null!==d&&(e=!0,null!==c&&(e=c.Qa,c.Qa=!0),d(this,b,a),null!==c&&(c.Qa=e));if(this instanceof T)for(c=new J(R),of(c,this,!0,0,!0),c=c.i;c.next();)if(d=c.value,d instanceof S)for(d=d.te;d.next();)Kk(d.value);if(this instanceof S)for(d=this.te;d.next();)Kk(d.value);this.h("containingGroup",b,a);null!==a&&(b=a.layer,null!==b&&Li(b,-1,a))}}else v.k("cannot set the Part.containingGroup of a Link or Adornment")}); +g=R.prototype;g.vl=function(){var a=this.Sa;null!==a&&(a.Q(),null!==a.Ib&&a.Ib.Q(),a.ef())};g.qa=function(){var a=this.g;null!==a&&!Oj(this)&&!Pj(this)&&this.isVisible()&&this.mc.K()&&a.qa(Ki(this,this.mc))};g.pt=function(a){a||(a=this.yk,null!==a&&io(a,this))};g.qt=function(a){a||(a=this.yk,null!==a&&ho(a,this))};g.Sm=function(){var a=this.data;if(null!==a){var b=this.g;null!==b&&(b=b.ca,null!==b&&b.sx(a))}}; +v.defineProperty(R,{TD:"containingGroupChanged"},function(){return this.kq},function(a){var b=this.kq;b!==a&&(null!==a&&v.j(a,"function",R,"containingGroupChanged"),this.kq=a,this.h("containingGroupChanged",b,a))});R.prototype.findSubGraphLevel=function(){return jo(this,this)};function jo(a,b){var c=b.Sa;return null!==c?1+jo(a,c):b instanceof S&&(c=b.fe,null!==c)?jo(a,c):0}R.prototype.findTopLevelPart=function(){return ko(this,this)}; function ko(a,b){var c=b.Sa;return null!==c?ko(a,c):b instanceof S&&(c=b.fe,null!==c)?ko(a,c):b}v.u(R,{ip:"isTopLevel"},function(){return null!==this.Sa||this instanceof S&&this.vf?!1:!0});R.prototype.isMemberOf=R.prototype.ai=function(a){return a instanceof T?lo(this,this,a):!1};function lo(a,b,c){if(b===c||null===c)return!1;var d=b.Sa;return null===d||d!==c&&!lo(a,d,c)?b instanceof S&&(b=b.fe,null!==b)?lo(a,b,c):!1:!0} R.prototype.findCommonContainingGroup=R.prototype.xH=function(a){if(null===a)return null;if(this===a)return this.Sa;for(var b=this;null!==b;)b instanceof T&&fo(b,!0),b=b.Sa;for(var c=null,b=a;null!==b;){if(0!==(b.R&1048576)){c=b;break}b=b.Sa}for(b=this;null!==b;)b instanceof T&&fo(b,!1),b=b.Sa;return c};v.defineProperty(R,{nI:"layoutConditions"},function(){return this.gr},function(a){var b=this.gr;b!==a&&(this.gr=a,this.h("layoutConditions",b,a))}); -R.prototype.canLayout=function(){if(!this.HE||!this.isVisible())return!1;var a=this.layer;return null!==a&&a.Fc||this instanceof S&&this.vf?!1:!0};R.prototype.invalidateLayout=R.prototype.H=function(a){void 0===a&&(a=16777215);var b;this.HE&&0!==(a&this.nI)?(b=this.layer,null!==b&&b.Fc||this instanceof S&&this.vf?b=!1:(b=this.g,b=null!==b&&b.ma.kb?!1:!0)):b=!1;if(b)if(b=this.yk,null!==b){var c=b.Qb;null!==c?c.H():b.H(a)}else a=this.g,null!==a&&(c=a.Qb,null!==c&&c.H())}; -function bk(a){if(!a.isVisible())return!1;a=a.layer;return null!==a&&a.Fc?!1:!0}v.defineProperty(R,{dE:"dragComputation"},function(){return this.Cq},function(a){var b=this.Cq;b!==a&&(null!==a&&v.j(a,"function",R,"dragComputation"),this.Cq=a,this.h("dragComputation",b,a))});v.defineProperty(R,{nJ:"shadowOffset"},function(){return this.ym},function(a){var b=this.ym;b.L(a)||(this.ym=a=a.S(),this.qa(),this.h("shadowOffset",b,a))}); +R.prototype.canLayout=function(){if(!this.IE||!this.isVisible())return!1;var a=this.layer;return null!==a&&a.Fc||this instanceof S&&this.vf?!1:!0};R.prototype.invalidateLayout=R.prototype.H=function(a){void 0===a&&(a=16777215);var b;this.IE&&0!==(a&this.nI)?(b=this.layer,null!==b&&b.Fc||this instanceof S&&this.vf?b=!1:(b=this.g,b=null!==b&&b.ma.kb?!1:!0)):b=!1;if(b)if(b=this.yk,null!==b){var c=b.Qb;null!==c?c.H():b.H(a)}else a=this.g,null!==a&&(c=a.Qb,null!==c&&c.H())}; +function bk(a){if(!a.isVisible())return!1;a=a.layer;return null!==a&&a.Fc?!1:!0}v.defineProperty(R,{eE:"dragComputation"},function(){return this.Cq},function(a){var b=this.Cq;b!==a&&(null!==a&&v.j(a,"function",R,"dragComputation"),this.Cq=a,this.h("dragComputation",b,a))});v.defineProperty(R,{nJ:"shadowOffset"},function(){return this.zm},function(a){var b=this.zm;b.L(a)||(this.zm=a=a.S(),this.qa(),this.h("shadowOffset",b,a))}); v.defineProperty(R,{shadowColor:"shadowColor"},function(){return this.Tg},function(a){var b=this.Tg;b!==a&&(this.Tg=a,this.qa(),this.h("shadowColor",b,a))});v.defineProperty(R,{shadowBlur:"shadowBlur"},function(){return this.Qh},function(a){var b=this.Qh;b!==a&&(this.Qh=a,this.qa(),this.h("shadowBlur",b,a))});function pf(a){0===arguments.length?R.call(this,Ah):R.call(this,a);this.R&=-257;this.yj="Adornment";this.Ib=this.Fg=this.Fb=null}v.Ja(pf,R);v.ea("Adornment",pf); pf.prototype.toString=function(){var a=this.Vg;return"Adornment("+this.Dc+")"+(null!==a?a.toString():"")};pf.prototype.updateRelationshipsFromData=function(){};pf.prototype.Et=function(a){var b=this.gc.Y,c=this.gc;if(b instanceof W&&c instanceof X){var d=b.path,c=d.Wa;b.Et(a);c=d.Wa;a=this.ya.n;b=a.length;for(d=0;da&&(a=1);var b=this.g;if(null!==b&&!b.ah){b.ah=!0;var c=new J(S);c.add(this);xo(this,c,b.Qd,a,b.Ra,this,b.QA===aj);b.ah=!1}}; -function xo(a,b,c,d,e,f,h){if(1a&&(a=2);var b=this.g;if(null!==b&&!b.ah){b.ah=!0;var c=new J(S);c.add(this);zo(this,c,b.Qd,a,b.Ra,this,b.QA===aj);b.ah=!1}};function zo(a,b,c,d,e,f,h){for(var k=f===a?!1:a.qd,l=c?a.Jw():a.sg();l.next();){var m=l.value;m.Gc&&(k||m.Lf||m.jc(),m=m.Oz(a),null!==m&&m!==a&&!b.contains(m)&&(b.add(m),k||(m.rd(!0),m.ul(),h&&Bi(e,m,f)),2a&&(a=1);var b=this.g;if(null!==b&&!b.ah){b.ah=!0;var c=new J(S);c.add(this);xo(this,c,b.Qd,a,b.Ra,this,b.RA===aj);b.ah=!1}}; +function xo(a,b,c,d,e,f,h){if(1a&&(a=2);var b=this.g;if(null!==b&&!b.ah){b.ah=!0;var c=new J(S);c.add(this);zo(this,c,b.Qd,a,b.Ra,this,b.RA===aj);b.ah=!1}};function zo(a,b,c,d,e,f,h){for(var k=f===a?!1:a.qd,l=c?a.Kw():a.sg();l.next();){var m=l.value;m.Gc&&(k||m.Lf||m.jc(),m=m.Pz(a),null!==m&&m!==a&&!b.contains(m)&&(b.add(m),k||(m.rd(!0),m.vl(),h&&Bi(e,m,f)),2a&&(a-=180);break;case Fo:a=K.Lt(c+90);90a&&(a-=180);break;case Go:a=K.Lt(c-90);90a&&(a-=180);break;case Ho:a=K.Lt(c);if(45a||225a)return 0;90a&&(a-=180)}return K.Lt(a)}; -v.defineProperty(W,{V:"fromNode"},function(){return this.bg},function(a){var b=this.bg;if(b!==a){var c=this.cd;null!==b&&(this.mg!==b&&uo(b,this,c),Io(this),this.H(ek));this.bg=a;null!==a&&this.rd(a.isVisible());this.si=null;this.jc();var d=this.g;if(null!==d){var e=this.data,f=d.ca;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.xx(e,f.ib(h))}else f instanceof ee&&(h=null!==a?a.data:null,d.Qd?f.rh(e,f.ib(h)):(null!==b&&f.rh(b.data,void 0),f.rh(h,f.ib(null!==this.mg?this.mg.data:null))))}e= -this.cd;f=this.nE;null!==f&&(h=!0,null!==d&&(h=d.Qa,d.Qa=!0),f(this,c,e),null!==d&&(d.Qa=h));null!==a&&(this.mg!==a&&to(a,this,e),Jo(this),this.H(Wj));this.h("fromNode",b,a);Kk(this)}}); -v.defineProperty(W,{tg:"fromPortId"},function(){return this.Dh},function(a){var b=this.Dh;if(b!==a){var c=this.cd;null!==c&&so(this.V,c);Io(this);this.Dh=a;var d=this.cd;null!==d&&so(this.V,d);var e=this.g;if(null!==e){var f=this.data,h=e.ca;null!==f&&h instanceof Q&&h.FA(f,a)}c!==d&&(this.si=null,this.jc(),f=this.nE,null!==f&&(h=!0,null!==e&&(h=e.Qa,e.Qa=!0),f(this,c,d),null!==e&&(e.Qa=h)));Jo(this);this.h("fromPortId",b,a)}});v.u(W,{cd:"fromPort"},function(){var a=this.bg;return null===a?null:a.nl(this.Dh)}); -v.defineProperty(W,{nE:"fromPortChanged"},function(){return this.Kq},function(a){var b=this.Kq;b!==a&&(null!==a&&v.j(a,"function",W,"fromPortChanged"),this.Kq=a,this.h("fromPortChanged",b,a))}); -v.defineProperty(W,{aa:"toNode"},function(){return this.mg},function(a){var b=this.mg;if(b!==a){var c=this.Fd;null!==b&&(this.bg!==b&&uo(b,this,c),Io(this),this.H(ek));this.mg=a;null!==a&&this.rd(a.isVisible());this.si=null;this.jc();var d=this.g;if(null!==d){var e=this.data,f=d.ca;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.Bx(e,f.ib(h))}else f instanceof ee&&(h=null!==a?a.data:null,d.Qd?(null!==b&&f.rh(b.data,void 0),f.rh(h,f.ib(null!==this.bg?this.bg.data:null))):f.rh(e,f.ib(h)))}e= -this.Fd;f=this.EF;null!==f&&(h=!0,null!==d&&(h=d.Qa,d.Qa=!0),f(this,c,e),null!==d&&(d.Qa=h));null!==a&&(this.bg!==a&&to(a,this,e),Jo(this),this.H(Wj));this.h("toNode",b,a);Kk(this)}}); -v.defineProperty(W,{th:"toPortId"},function(){return this.Uh},function(a){var b=this.Uh;if(b!==a){var c=this.Fd;null!==c&&so(this.aa,c);Io(this);this.Uh=a;var d=this.Fd;null!==d&&so(this.aa,d);var e=this.g;if(null!==e){var f=this.data,h=e.ca;null!==f&&h instanceof Q&&h.IA(f,a)}c!==d&&(this.si=null,this.jc(),f=this.EF,null!==f&&(h=!0,null!==e&&(h=e.Qa,e.Qa=!0),f(this,c,d),null!==e&&(e.Qa=h)));Jo(this);this.h("toPortId",b,a)}});v.u(W,{Fd:"toPort"},function(){var a=this.mg;return null===a?null:a.nl(this.Uh)}); -v.defineProperty(W,{EF:"toPortChanged"},function(){return this.zs},function(a){var b=this.zs;b!==a&&(null!==a&&v.j(a,"function",W,"toPortChanged"),this.zs=a,this.h("toPortChanged",b,a))});v.defineProperty(W,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.qj:jc},function(a){this.Ne();var b=this.ga.qj;b.L(a)||(a=a.S(),this.ga.qj=a,this.h("fromSpot",b,a),this.jc())}); +v.defineProperty(W,{V:"fromNode"},function(){return this.bg},function(a){var b=this.bg;if(b!==a){var c=this.cd;null!==b&&(this.mg!==b&&uo(b,this,c),Io(this),this.H(ek));this.bg=a;null!==a&&this.rd(a.isVisible());this.si=null;this.jc();var d=this.g;if(null!==d){var e=this.data,f=d.ca;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.yx(e,f.ib(h))}else f instanceof ee&&(h=null!==a?a.data:null,d.Qd?f.rh(e,f.ib(h)):(null!==b&&f.rh(b.data,void 0),f.rh(h,f.ib(null!==this.mg?this.mg.data:null))))}e= +this.cd;f=this.oE;null!==f&&(h=!0,null!==d&&(h=d.Qa,d.Qa=!0),f(this,c,e),null!==d&&(d.Qa=h));null!==a&&(this.mg!==a&&to(a,this,e),Jo(this),this.H(Wj));this.h("fromNode",b,a);Kk(this)}}); +v.defineProperty(W,{tg:"fromPortId"},function(){return this.Dh},function(a){var b=this.Dh;if(b!==a){var c=this.cd;null!==c&&so(this.V,c);Io(this);this.Dh=a;var d=this.cd;null!==d&&so(this.V,d);var e=this.g;if(null!==e){var f=this.data,h=e.ca;null!==f&&h instanceof Q&&h.GA(f,a)}c!==d&&(this.si=null,this.jc(),f=this.oE,null!==f&&(h=!0,null!==e&&(h=e.Qa,e.Qa=!0),f(this,c,d),null!==e&&(e.Qa=h)));Jo(this);this.h("fromPortId",b,a)}});v.u(W,{cd:"fromPort"},function(){var a=this.bg;return null===a?null:a.nl(this.Dh)}); +v.defineProperty(W,{oE:"fromPortChanged"},function(){return this.Kq},function(a){var b=this.Kq;b!==a&&(null!==a&&v.j(a,"function",W,"fromPortChanged"),this.Kq=a,this.h("fromPortChanged",b,a))}); +v.defineProperty(W,{aa:"toNode"},function(){return this.mg},function(a){var b=this.mg;if(b!==a){var c=this.Fd;null!==b&&(this.bg!==b&&uo(b,this,c),Io(this),this.H(ek));this.mg=a;null!==a&&this.rd(a.isVisible());this.si=null;this.jc();var d=this.g;if(null!==d){var e=this.data,f=d.ca;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.Cx(e,f.ib(h))}else f instanceof ee&&(h=null!==a?a.data:null,d.Qd?(null!==b&&f.rh(b.data,void 0),f.rh(h,f.ib(null!==this.bg?this.bg.data:null))):f.rh(e,f.ib(h)))}e= +this.Fd;f=this.FF;null!==f&&(h=!0,null!==d&&(h=d.Qa,d.Qa=!0),f(this,c,e),null!==d&&(d.Qa=h));null!==a&&(this.bg!==a&&to(a,this,e),Jo(this),this.H(Wj));this.h("toNode",b,a);Kk(this)}}); +v.defineProperty(W,{th:"toPortId"},function(){return this.Uh},function(a){var b=this.Uh;if(b!==a){var c=this.Fd;null!==c&&so(this.aa,c);Io(this);this.Uh=a;var d=this.Fd;null!==d&&so(this.aa,d);var e=this.g;if(null!==e){var f=this.data,h=e.ca;null!==f&&h instanceof Q&&h.JA(f,a)}c!==d&&(this.si=null,this.jc(),f=this.FF,null!==f&&(h=!0,null!==e&&(h=e.Qa,e.Qa=!0),f(this,c,d),null!==e&&(e.Qa=h)));Jo(this);this.h("toPortId",b,a)}});v.u(W,{Fd:"toPort"},function(){var a=this.mg;return null===a?null:a.nl(this.Uh)}); +v.defineProperty(W,{FF:"toPortChanged"},function(){return this.zs},function(a){var b=this.zs;b!==a&&(null!==a&&v.j(a,"function",W,"toPortChanged"),this.zs=a,this.h("toPortChanged",b,a))});v.defineProperty(W,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.qj:jc},function(a){this.Ne();var b=this.ga.qj;b.L(a)||(a=a.S(),this.ga.qj=a,this.h("fromSpot",b,a),this.jc())}); v.defineProperty(W,{ol:"fromEndSegmentLength"},function(){return null!==this.ga?this.ga.oj:NaN},function(a){this.Ne();var b=this.ga.oj;b!==a&&(0>a&&v.wa(a,">= 0",W,"fromEndSegmentLength"),this.ga.oj=a,this.h("fromEndSegmentLength",b,a),this.jc())});v.defineProperty(W,{kt:"fromEndSegmentDirection"},function(){return null!==this.ga?this.ga.nj:no},function(a){this.Ne();var b=this.ga.nj;b!==a&&(this.ga.nj=a,this.h("fromEndSegmentDirection",b,a),this.jc())}); v.defineProperty(W,{lt:"fromShortLength"},function(){return null!==this.ga?this.ga.pj:NaN},function(a){this.Ne();var b=this.ga.pj;b!==a&&(this.ga.pj=a,this.h("fromShortLength",b,a),this.jc())});v.defineProperty(W,{Bb:"toSpot"},function(){return null!==this.ga?this.ga.Tj:jc},function(a){this.Ne();var b=this.ga.Tj;b.L(a)||(a=a.S(),this.ga.Tj=a,this.h("toSpot",b,a),this.jc())}); -v.defineProperty(W,{Ml:"toEndSegmentLength"},function(){return null!==this.ga?this.ga.Rj:NaN},function(a){this.Ne();var b=this.ga.Rj;b!==a&&(0>a&&v.wa(a,">= 0",W,"toEndSegmentLength"),this.ga.Rj=a,this.h("toEndSegmentLength",b,a),this.jc())});v.defineProperty(W,{fu:"toEndSegmentDirection"},function(){return null!==this.ga?this.ga.Qj:no},function(a){this.Ne();var b=this.ga.Qj;b!==a&&(this.ga.Qj=a,this.h("toEndSegmentDirection",b,a),this.jc())}); -v.defineProperty(W,{gu:"toShortLength"},function(){return null!==this.ga?this.ga.Sj:NaN},function(a){this.Ne();var b=this.ga.Sj;b!==a&&(this.ga.Sj=a,this.h("toShortLength",b,a),this.jc())});function Kk(a){var b=a.V,c=a.aa;null!==b?null!==c?Ko(a,b.xH(c)):Ko(a,null):Ko(a,null)}function Ko(a,b){var c=a.yk;if(c!==b){null!==c&&ho(c,a);a.yk=b;null!==b&&io(b,a);var d=a.SD;if(null!==d){var e=!0,f=a.g;null!==f&&(e=f.Qa,f.Qa=!0);d(a,c,b);null!==f&&(f.Qa=e)}!a.Lf||a.dD!==c&&a.fD!==c||a.jc()}} -W.prototype.ul=function(){var a=this.Sa;null!==a&&this.V!==a&&this.aa!==a&&R.prototype.ul.call(this)};W.prototype.getOtherNode=W.prototype.Oz=function(a){var b=this.V;return a===b?this.aa:b};W.prototype.getOtherPort=function(a){var b=this.cd;return a===b?this.Fd:b};v.u(W,{HK:"isLabeledLink"},function(){return null===this.Ee?!1:0a&&v.wa(a,">= 0",W,"toEndSegmentLength"),this.ga.Rj=a,this.h("toEndSegmentLength",b,a),this.jc())});v.defineProperty(W,{fu:"toEndSegmentDirection"},function(){return null!==this.ga?this.ga.Qj:no},function(a){this.Ne();var b=this.ga.Qj;b!==a&&(this.ga.Qj=a,this.h("toEndSegmentDirection",b,a),this.jc())}); +v.defineProperty(W,{gu:"toShortLength"},function(){return null!==this.ga?this.ga.Sj:NaN},function(a){this.Ne();var b=this.ga.Sj;b!==a&&(this.ga.Sj=a,this.h("toShortLength",b,a),this.jc())});function Kk(a){var b=a.V,c=a.aa;null!==b?null!==c?Ko(a,b.xH(c)):Ko(a,null):Ko(a,null)}function Ko(a,b){var c=a.yk;if(c!==b){null!==c&&ho(c,a);a.yk=b;null!==b&&io(b,a);var d=a.TD;if(null!==d){var e=!0,f=a.g;null!==f&&(e=f.Qa,f.Qa=!0);d(a,c,b);null!==f&&(f.Qa=e)}!a.Lf||a.eD!==c&&a.gD!==c||a.jc()}} +W.prototype.vl=function(){var a=this.Sa;null!==a&&this.V!==a&&this.aa!==a&&a.Aw&&R.prototype.vl.call(this)};W.prototype.getOtherNode=W.prototype.Pz=function(a){var b=this.V;return a===b?this.aa:b};W.prototype.getOtherPort=function(a){var b=this.cd;return a===b?this.Fd:b};v.u(W,{HK:"isLabeledLink"},function(){return null===this.Ee?!1:0=d&&(h=d-1);var l=this.l(h-1),f=this.l(h);K.No(e.x,e.y,k.x,k.y,l.x,l.y,f.x,f.y,.5,a);b=Math.min(f.x,b);c=Math.min(f.y,c);e=f}else for(e=this.l(0),f=this.l(1),b=Math.min(e.x,f.x),c=Math.min(e.y,f.y),a.m(e.x,e.y,0,0),a.fj(f),h=2;hc&&(c=-c)):K.bb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.$j(d)),f.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}v.ta(f);b=this.l(h);f=this.l(h+1);b.x===f.x?b.y>f.y?a.m(b.x,b.y-(e/2-c)):a.m(b.x,b.y+(e/2-c)):b.y===f.y?b.x>f.x?a.m(b.x-(e/2-c),b.y):a.m(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.m(b.x+e*(f.x-b.x),b.y+e*(f.y-b.y)));return a};v.u(W,{RE:"midAngle"},function(){this.mn();return this.computeMidAngle()}); -W.prototype.computeMidAngle=function(){var a=this.pa;if(2>a)return NaN;if(this.computeCurve()===ph&&4<=a&&!this.kc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.l(c),b=this.l(c+1),d=this.l(c+2),c=this.l(c+3);return K.QG(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e+10?a.$g(b):e>c+10?b.$g(d):a.$g(d)}; +e.y,d.x,d.y,d.x,d.y,f.x,f.y,.5,a);else for(var h=3;h=d&&(h=d-1);var l=this.l(h-1),f=this.l(h);K.No(e.x,e.y,k.x,k.y,l.x,l.y,f.x,f.y,.5,a);b=Math.min(f.x,b);c=Math.min(f.y,c);e=f}else for(e=this.l(0),f=this.l(1),b=Math.min(e.x,f.x),c=Math.min(e.y,f.y),a.m(e.x,e.y,0,0),a.fj(f),h=2;hc&&(c=-c)):K.bb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.$j(d)),f.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}v.ta(f);b=this.l(h);f=this.l(h+1);b.x===f.x?b.y>f.y?a.m(b.x,b.y-(e/2-c)):a.m(b.x,b.y+(e/2-c)):b.y===f.y?b.x>f.x?a.m(b.x-(e/2-c),b.y):a.m(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.m(b.x+e*(f.x-b.x),b.y+e*(f.y-b.y)));return a};v.u(W,{SE:"midAngle"},function(){this.mn();return this.computeMidAngle()}); +W.prototype.computeMidAngle=function(){var a=this.pa;if(2>a)return NaN;if(this.computeCurve()===ph&&4<=a&&!this.kc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.l(c),b=this.l(c+1),d=this.l(c+2),c=this.l(c+3);return K.RG(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e+10?a.$g(b):e>c+10?b.$g(d):a.$g(d)}; v.defineProperty(W,{points:"points"},function(){return this.$c},function(a){var b=this.$c;if(b!==a){var c=null;if(Array.isArray(a)){var d=0===a.length%2;if(d)for(var e=0;ep&&(t-=180));0>t?t+=360:360<=t&&(t-=360);k&&(u+=Math.abs(p));0===t?r=u:90===t?s=u:180===t?r=-u:270===t?s=-u:(r=u*Math.cos(t*Math.PI/180),s=u*Math.sin(t*Math.PI/180));if(f.se()&&k){var x=c.Za(ub,v.M()),y=v.Sb(x.x+1E3*r,x.y+1E3*s);this.getLinkPointFromPoint(b,c,x,y,!0,q);v.v(x);v.v(y)}}var u=this.getLinkPoint(d,e,h,!1,l,b,c),A=0,B= 0,I=0;if(l||h!==ob||k)x=this.computeEndSegmentLength(d,e,h,!1),I=this.getLinkDirection(d,e,u,h,!1,l,b,c),k&&(I+=l?0:30,0>p&&(I+=180)),0>I?I+=360:360<=I&&(I-=360),k&&(x+=Math.abs(p)),0===I?A=x:90===I?B=x:180===I?A=-x:270===I?B=-x:(A=x*Math.cos(I*Math.PI/180),B=x*Math.sin(I*Math.PI/180)),h.se()&&k&&(x=e.Za(ub,v.M()),y=v.Sb(x.x+1E3*A,x.y+1E3*B),this.getLinkPointFromPoint(d,e,x,y,!1,u),v.v(x),v.v(y));e=q;if(l||f!==ob||k)e=new w(q.x+r,q.y+s);c=u;if(l||h!==ob||k)c=new w(u.x+A,u.y+B);!n&&!l&&f===ob&&3c&&(f=-f),f=(0>b?-1:1)*f+a,k=h*(f-a)+n),this.Vh(d),this.al(f,k)):this.Vh(d),this.Vh(e)));return!0}; function Qo(a,b){Math.abs(b.x-a.x)>Math.abs(b.y-a.y)?(b.x=b.x>=a.x?a.x+9E9:a.x-9E9,b.y=a.y):(b.y=b.y>=a.y?a.y+9E9:a.y-9E9,b.x=a.x);return b} W.prototype.getLinkPointFromPoint=function(a,b,c,d,e,f){void 0===f&&(f=new w);if(null===a||null===b)return f.assign(c),f;a.isVisible()||(e=a.findVisibleNode(),null!==e&&e!==a&&(b=e.port));var h=e=0,k=0,l=0;a=null;e=b.T;null===e||e.Eg()||(e=e.T);if(null===e)e=d.x,h=d.y,k=c.x,l=c.y;else{a=e.Wg;e=1/(a.m11*a.m22-a.m12*a.m21);var k=a.m22*e,l=-a.m12*e,m=-a.m21*e,n=a.m11*e,p=e*(a.m21*a.dy-a.m22*a.dx),q=e*(a.m12*a.dx-a.m11*a.dy);e=d.x*k+d.y*m+p;h=d.x*l+d.y*n+q;k=c.x*k+c.y*m+p;l=c.x*l+c.y*n+q}b.dp(e,h,k,l, -f);null!==a&&f.transform(a);return f};function Ro(a,b){var c=b.rm;null===c&&(c=new So,c.port=b,c.Ic=b.Y,b.rm=c);return To(c,a)} -W.prototype.getLinkPoint=function(a,b,c,d,e,f,h,k){void 0===k&&(k=new w);if(c.fd())return b.Za(c,k),k;if(c.Yi()&&(c=Ro(this,b),null!==c)){k.assign(c.mp);if(e&&this.tx===Ao){var l=Ro(this,h);if(null!==l&&c.Om=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);v.v(c);v.v(l)}}return k}f=b.Za(ub,v.M());l=c=null;this.pa>(e?6:2)?(l=d?this.l(1):this.l(this.pa-2),e&& +f);null!==a&&f.transform(a);return f};function Ro(a,b){var c=b.sm;null===c&&(c=new So,c.port=b,c.Ic=b.Y,b.sm=c);return To(c,a)} +W.prototype.getLinkPoint=function(a,b,c,d,e,f,h,k){void 0===k&&(k=new w);if(c.fd())return b.Za(c,k),k;if(c.Yi()&&(c=Ro(this,b),null!==c)){k.assign(c.mp);if(e&&this.ux===Ao){var l=Ro(this,h);if(null!==l&&c.Pm=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);v.v(c);v.v(l)}}return k}f=b.Za(ub,v.M());l=c=null;this.pa>(e?6:2)?(l=d?this.l(1):this.l(this.pa-2),e&& (l=Qo(f,l.copy()))):(c=v.M(),l=h.Za(ub,c),e&&(l=Qo(f,l)));this.getLinkPointFromPoint(a,b,f,l,d,k);v.v(f);null!==c&&v.v(c);return k}; W.prototype.getLinkDirection=function(a,b,c,d,e,f,h,k){a:if(d.fd())c=d.x>d.y?d.x>1-d.y?0:d.x<1-d.y?270:315:d.x1-d.y?90:d.x<1-d.y?180:135:.5>d.x?225:.5(f?6:2)?(n=e?this.l(1):this.l(this.pa-2),n=f?Qo(l,n.copy()):c):(m=v.M(),n=k.Za(ub,m));c=0;c=Math.abs(n.x-l.x)>Math.abs(n.y-l.y)?n.x>= -l.x?0:180:n.y>=l.y?90:270;v.v(l);null!==m&&v.v(m)}d.se()&&h.ai(a)&&(c+=180,360<=c&&(c-=360));a=no;a=e?this.kt:this.fu;a===no&&(a=e?b.kt:b.fu);switch(a){case oo:b=b.pl();c+=b;360<=c&&(c-=360);break;case no:case vl:b=b.pl();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; -W.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.Yi()&&(a=Ro(this,b),null!==a))return a.Fw;a=NaN;a=d?this.ol:this.Ml;null!==b&&isNaN(a)&&(a=d?b.ol:b.Ml);isNaN(a)&&(a=10);return a};W.prototype.computeSpot=function(a){return a?Oo(this,this.cd):Po(this,this.Fd)};function Oo(a,b){if(null===b)return ub;var c=a.Ab;c.Tc()&&(void 0===b&&(b=a.cd),null!==b&&(c=b.Ab));return c===jc?ob:c} -function Po(a,b){if(null===b)return ub;var c=a.Bb;c.Tc()&&(void 0===b&&(b=a.Fd),null!==b&&(c=b.Bb));return c===jc?ob:c}W.prototype.computeOtherPoint=function(a,b){var c=b.Za(ub),d;d=b.rm;d=null!==d?To(d,this):null;null!==d&&(c=d.mp);return c};W.prototype.computeShortLength=function(a){return a?Uo(this):Vo(this)};function Uo(a){var b=a.lt;isNaN(b)&&(a=a.cd,null!==a&&(b=a.lt));return isNaN(b)?0:b}function Vo(a){var b=a.gu;isNaN(b)&&(a=a.Fd,null!==a&&(b=a.gu));return isNaN(b)?0:b} -W.prototype.bk=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=f;void 0===f&&(h=v.sh(),h.reset());h.multiply(this.transform);if(this.Lm(a,h))return fn(this,b,c,e),void 0===f&&v.af(h),!0;if(this.vg(a,h)){var k=!1;if(!this.Lg)for(var l=this.ya.n,m=l.length;m--;){var n=l[m];if(n.visible||n===this.bc){var p=n.Z,q=this.Ia;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=v.sh();p.set(h);if(n instanceof C)k=n.bk(a,b,c,d,e,p);else if(this.path=== -n){var k=n,r=a,s=d,q=p;if(!1===k.Ag)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,u=q;if(k.Lm(t,u))k=!0;else{if(void 0===u&&(u=k.transform,t.Zj(k.Z))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,x=v.M(),y=v.M(),A=v.M(),B=v.sh();B.set(u);B.UE(k.transform);B.Tz();y.x=r;y.y=s;y.transform(B);x.x=q;x.y=s;x.transform(B);u=!1;qn(k,x,y,A)?u=!0:(x.x=r,x.y=t,x.transform(B),qn(k,x,y,A)?u=!0:(y.x=q,y.y=t,y.transform(B),qn(k,x,y,A)?u=!0:(x.x=q,x.y=s,x.transform(B),qn(k,x,y,A)&&(u=!0))));v.af(B); -v.v(x);v.v(y);v.v(A);k=u}}else k=k.Lm(r,q)}else k=Al(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));v.af(p)}}}void 0===f&&v.af(h);return k||null!==this.background||null!==this.Gm}void 0===f&&v.af(h);return!1};v.u(W,{kc:"isOrthogonal"},function(){return 2===(this.tm.value&2)});v.u(W,{vl:"isAvoiding"},function(){return 4===(this.tm.value&4)});W.prototype.computeCurve=function(){if(null===this.si){var a=this.cd,b=this.kc;this.si=null!==a&&a===this.Fd&&!b}return this.si?ph:this.Le}; -W.prototype.computeCorner=function(){if(this.Le===ph)return 0;var a=this.Dz;if(isNaN(a)||0>a)a=10;return a};W.prototype.findMidLabel=function(){for(var a=this.path,b=this.ya.n,c=b.length,d=0;d=l.y?90:270;v.v(l);null!==m&&v.v(m)}d.se()&&h.ai(a)&&(c+=180,360<=c&&(c-=360));a=no;a=e?this.kt:this.fu;a===no&&(a=e?b.kt:b.fu);switch(a){case oo:b=b.ql();c+=b;360<=c&&(c-=360);break;case no:case vl:b=b.ql();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; +W.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.Yi()&&(a=Ro(this,b),null!==a))return a.Gw;a=NaN;a=d?this.ol:this.Nl;null!==b&&isNaN(a)&&(a=d?b.ol:b.Nl);isNaN(a)&&(a=10);return a};W.prototype.computeSpot=function(a){return a?Oo(this,this.cd):Po(this,this.Fd)};function Oo(a,b){if(null===b)return ub;var c=a.Ab;c.Tc()&&(void 0===b&&(b=a.cd),null!==b&&(c=b.Ab));return c===jc?ob:c} +function Po(a,b){if(null===b)return ub;var c=a.Bb;c.Tc()&&(void 0===b&&(b=a.Fd),null!==b&&(c=b.Bb));return c===jc?ob:c}W.prototype.computeOtherPoint=function(a,b){var c=b.Za(ub),d;d=b.sm;d=null!==d?To(d,this):null;null!==d&&(c=d.mp);return c};W.prototype.computeShortLength=function(a){return a?Uo(this):Vo(this)};function Uo(a){var b=a.lt;isNaN(b)&&(a=a.cd,null!==a&&(b=a.lt));return isNaN(b)?0:b}function Vo(a){var b=a.gu;isNaN(b)&&(a=a.Fd,null!==a&&(b=a.gu));return isNaN(b)?0:b} +W.prototype.bk=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=f;void 0===f&&(h=v.sh(),h.reset());h.multiply(this.transform);if(this.Mm(a,h))return fn(this,b,c,e),void 0===f&&v.bf(h),!0;if(this.vg(a,h)){var k=!1;if(!this.Lg)for(var l=this.ya.n,m=l.length;m--;){var n=l[m];if(n.visible||n===this.bc){var p=n.Z,q=this.Ia;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=v.sh();p.set(h);if(n instanceof C)k=n.bk(a,b,c,d,e,p);else if(this.path=== +n){var k=n,r=a,s=d,q=p;if(!1===k.Ag)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,u=q;if(k.Mm(t,u))k=!0;else{if(void 0===u&&(u=k.transform,t.Zj(k.Z))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,x=v.M(),y=v.M(),A=v.M(),B=v.sh();B.set(u);B.VE(k.transform);B.Uz();y.x=r;y.y=s;y.transform(B);x.x=q;x.y=s;x.transform(B);u=!1;qn(k,x,y,A)?u=!0:(x.x=r,x.y=t,x.transform(B),qn(k,x,y,A)?u=!0:(y.x=q,y.y=t,y.transform(B),qn(k,x,y,A)?u=!0:(x.x=q,x.y=s,x.transform(B),qn(k,x,y,A)&&(u=!0))));v.bf(B); +v.v(x);v.v(y);v.v(A);k=u}}else k=k.Mm(r,q)}else k=Al(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));v.bf(p)}}}void 0===f&&v.bf(h);return k||null!==this.background||null!==this.Hm}void 0===f&&v.bf(h);return!1};v.u(W,{kc:"isOrthogonal"},function(){return 2===(this.um.value&2)});v.u(W,{wl:"isAvoiding"},function(){return 4===(this.um.value&4)});W.prototype.computeCurve=function(){if(null===this.si){var a=this.cd,b=this.kc;this.si=null!==a&&a===this.Fd&&!b}return this.si?ph:this.Le}; +W.prototype.computeCorner=function(){if(this.Le===ph)return 0;var a=this.Ez;if(isNaN(a)||0>a)a=10;return a};W.prototype.findMidLabel=function(){for(var a=this.path,b=this.ya.n,c=b.length,d=0;dl?-Math.PI/2:Math.PI/2:(n=Math.atan(l/Math.abs(k)),0>k&&(n=Math.PI-n));var h=b.x,p=b.y,l=d.x-h,q=d.y-p,r=Math.sqrt(l*l+q*q),k=0;K.D(l,0)?k=0>q?-Math.PI/2:Math.PI/2:(k=Math.atan(q/Math.abs(l)),0>l&&(k=Math.PI-k));m=r/m;n=k-n;this.zf(a,b);for(a+= 1;al?-Math.PI/2:Math.PI/2:(q=Math.atan(l/Math.abs(k)),0>k&&(q=Math.PI-q)),k=q+n,b*=m,this.W(a,h+b*Math.cos(k),p+b*Math.sin(k)));this.zf(c,d)}}return!0;case im:f=this.l(a);p=this.l(c);if(!f.od(b)||!p.od(d)){var e=f.x,f=f.y,h=p.x,p=p.y,m=(h-e)*(h-e)+(p-f)*(p-f),k=b.x,n=b.y,l=d.x,q=d.y,r=0,s=1,r=0!==l-k?(q-n)/(l-k):9E9;0!==r&&(s=Math.sqrt(1+1/(r*r)));this.zf(a,b);for(a+=1;ah.left&&l.x=h.top&&c.y<=a.y||a.y<=k.bottom&&a.y>=c.y){if(0===d||180===d)l=new w(a.x,Math.max((a.y+c.y)/2,a.y)),m=new w(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xa.x&&k.top=a.x?(l.y=a.y>k.bottom?this.computeMidOrthoPosition(a.y,k.bottom,!0):a.y>k.top&&(180===d&&a.xk.right)?this.computeMidOrthoPosition(a.y,c.y,!0):k.top,m.x=c.x,m.y=l.y):270===d&&a.y>k.bottom&&a.x>k.left&&a.xh.right)90===d&&(k.Ga(a)||h.Ga(c))?l.x=this.computeMidOrthoPosition(a.x, c.x,!1):c.xa.x&&(90===d||180===d)&&(l.x=this.computeMidOrthoPosition(h.right,Math.min(c.x,k.left),!1)),m.x=l.x,m.y=c.y;if(l.x>h.left&&l.x=a.y||a.y>=k.top&&a.y<=c.y){if(0===d||180===d)l=new w(a.x,Math.min((a.y+c.y)/2,a.y)),m=new w(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xk&&0!==Xo(e,c.x,c.y)){Yo(this,e,c.x,c.y,d,!0);d=this.l(2);if(4>this.pa)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.W(2,d.x,d.y),this.w(3,d.x,d.y);else if(c=this.l(3),0===b|| +k.right)),m.x=l.x,m.y=c.y}var n=l,p=m;if(this.wl){var q=this.g,r;(r=null===q)||(q.Ra.uf?r=!1:(r=q.Ya,r=r instanceof yf?!r.bw||r.$H:!0),r=!r);if(r||h.Ga(c)&&!f.ai(e)||k.Ga(a)&&!e.ai(f)||e===f||this.layer.Fc)a=!1;else if(e=Yk(q,!0,this.Sa,null),e.kp(Math.min(a.x,n.x),Math.min(a.y,n.y),Math.abs(a.x-n.x),Math.abs(a.y-n.y))&&e.kp(Math.min(n.x,p.x),Math.min(n.y,p.y),Math.abs(n.x-p.x),Math.abs(n.y-p.y))&&e.kp(Math.min(p.x,c.x),Math.min(p.y,c.y),Math.abs(p.x-c.x),Math.abs(p.y-c.y)))a=!1;else if(h=h.copy().di(k), +h.Pf(2*e.Qo,2*e.Oo),Wo(e,a,b,c,d,h),k=Xo(e,c.x,c.y),e.abort||999999!==k||(al(e),k=e.zF,h.Pf(e.Qo*k,e.Oo*k),Wo(e,a,b,c,d,h),k=Xo(e,c.x,c.y)),e.abort||999999!==k||(al(e),k=e.OE,h.Pf(e.Qo*k,e.Oo*k),Wo(e,a,b,c,d,h),k=Xo(e,c.x,c.y)),!e.abort&&999999===k&&e.SF&&(al(e),Wo(e,a,b,c,d,e.rb),k=Xo(e,c.x,c.y)),!e.abort&&999999>k&&0!==Xo(e,c.x,c.y)){Yo(this,e,c.x,c.y,d,!0);d=this.l(2);if(4>this.pa)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.W(2,d.x,d.y),this.w(3,d.x,d.y);else if(c=this.l(3),0===b|| 180===b)K.D(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.W(2,b,a.y),this.W(3,b,c.y)):K.D(d.y,c.y)?(Math.abs(a.y-d.y)<=e.Oo/2&&(this.W(2,d.x,a.y),this.W(3,c.x,a.y)),this.w(2,d.x,a.y)):this.W(2,a.x,d.y);else if(90===b||270===b)K.D(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.W(2,a.x,b),this.W(3,c.x,b)):K.D(d.x,c.x)?(Math.abs(a.x-d.x)<=e.Qo/2&&(this.W(2,a.x,d.y),this.W(3,a.x,c.y)),this.w(2,a.x,d.y)):this.W(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.Vh(l),this.Vh(m))}}; -W.prototype.computeMidOrthoPosition=function(a,b){if(this.hasCurviness()){var c=this.computeCurviness();return(a+b)/2+c}return(a+b)/2};function ig(a){if(!a.vl)return!1;var b=a.points.n,c=b.length;if(4>c)return!1;a=Yk(a.g,!0,a.Sa,null);for(var d=1;dc)return!1;a=Yk(a.g,!0,a.Sa,null);for(var d=1;da){var b=new Oc(Pc),c=new Qc(0,0);b.Wb.add(c);return b}var d=!1,b=this.g;null!==b&&Lo(this)&&b.Bk.contains(this)&&null!==this.Lv&&(d=!0);var c=b=0,e=this.l(0).copy(),f=e.copy(),b=this.$c.n,h=this.computeCurve();if(h===ph&&3<=a&&!K.bb(this.Lp,0))if(3===a)var k=this.l(1),b=Math.min(e.x,k.x),c=Math.min(e.y,k.y),k=this.l(2),b=Math.min(b,k.x),c=Math.min(c,k.y);else{if(this.kc)for(k=0;k=a&&(k=a-1),b=this.l(k),f.x=Math.min(b.x,f.x),f.y=Math.min(b.y,f.y);b=f.x;c=f.y}else{for(k=0;k=a&&(k=a-1),b=this.l(k),f.x=Math.min(b.x,f.x),f.y=Math.min(b.y,f.y);b=f.x;c=f.y}else{for(k=0;kx?r>q?(t.x=y-B,t.y=q-B,u.x= y+s,u.y=q+s):(t.x=y-B,t.y=q+B,u.x=y+s,u.y=q-s):r>q?(t.x=y+B,t.y=q-B,u.x=y-s,u.y=q+s):(t.x=y+B,t.y=q+B,u.x=y-s,u.y=q-s));K.bb(x,y)&&K.bb(q,r)&&(q>p?(A>y?(t.x=y-B,t.y=q-B,u.x=y+s):(t.x=y+B,t.y=q-B,u.x=y-s),u.y=q+s):(A>y?(t.x=y-B,t.y=q+B,u.x=y+s):(t.x=y+B,t.y=q+B,u.x=y-s),u.y=q-s));if(K.bb(x,y)&&K.bb(y,A)||K.bb(p,q)&&K.bb(q,r))x=.5*(x+A),p=.5*(p+r),t.x=x,t.y=p,u.x=x,u.y=p;1===k?(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y)):2===k&&K.bb(d.x,this.l(0).x)&&K.bb(d.y,this.l(0).y)&&(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y)); O(l,e.x-b,e.y-c,h.x-b,h.y-c,m.x-b,m.y-c);f.set(h);e.set(a);d=m}}k=d.x;d=d.y;f=this.l(this.pa-1);k=.5*(k+f.x);d=.5*(d+f.y);O(l,a.x-b,a.y-c,k-b,d-c,f.x-b,f.y-c)}else for(k=3;k=a&&(k=a-1),f=this.l(k-1),e=this.l(k),k===a-1&&0!==Vo(this)&&(e=e.copy(),Zo(this,e,!1,K.lk)),O(l,d.x-b,d.y-c,f.x-b,f.y-c,e.x-b,e.y-c);else{f=v.M();f.assign(this.l(0));for(k=1;k=a-1){f!==t&&(0!==Vo(this)&&(t=t.copy(),Zo(this,t,!1,K.lk)),bp(this,l,-b,-c,f,t,d));break}k= @@ -1586,18 +1586,18 @@ function $o(a,b,c,d){for(var e=a.pa,f=b;K.bb(b.x,f.x)&&K.bb(b.y,f.y);){if(c>=e)r function bp(a,b,c,d,e,f,h){if(!h&&Lo(a)){h=[];var k=0;a.isVisible()&&(k=cp(a,e,f,h));var l=e.x,l=e.y;if(0p-10)m--,p=Math.max(q-5,f.x);else break;q=f.y-10+d;n=p+c;p=f.y+d;a.Le===hh?N(b,n,p,!1,!1):O(b,l,q,n,q,n,p)}else if(K.D(e.x,f.x))if(e.yp-10)m--,p=Math.max(q-5,f.y);else break;q=f.x-10+c;n=f.x+c;p+=d;a.Le===hh?N(b,n,p,!1,!1):O(b,q,l,q,p,n,p)}}b.lineTo(f.x+c,f.y+d)} -function cp(a,b,c,d){var e=a.g;if(null===e||b.L(c))return 0;for(e=e.Zw;e.next();){var f=e.value;if(null!==f&&f.visible)for(var f=f.zb.n,h=f.length,k=0;kh.x&&n.x>m.x||m.xh.y&&n.y>m.y||m.yt&&Math.min(h,x)q&&!K.D(h,x)){n.x=t;n.y=q;n=!0;break a}}else if(!K.D(q,s)&&K.D(h,x)&&Math.min(q, -s)h&&Math.min(t,u)p&&!K.D(t,u)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}v.v(k)}v.u(W,{ht:"firstPickIndex"},function(){return 2>=this.pa?0:this.kc||Oo(this)!==ob?1:0});v.u(W,{Yw:"lastPickIndex"},function(){var a=this.pa;return 0===a?0:2>=a?a-1:this.kc||Po(this)!==ob?a-2:a-1});function Lo(a){a=a.Le;return a===gh||a===hh}function No(a,b){if(b||Lo(a)){var c=a.g;null===c||c.Bk.contains(a)||null===a.Lv||c.Bk.add(a,a.Lv)}} -function jh(a,b){var c=a.layer;if(null!==c&&c.visible&&!c.Fc){var d=c.g;if(null!==d)for(var e=!1,d=d.Zw;d.next();){var f=d.value;if(f.visible)if(f===c)for(var e=!0,h=!1,f=f.zb.n,k=f.length,l=0;lh&&Math.min(t,u)p&&!K.D(t,u)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}v.v(k)}v.u(W,{ht:"firstPickIndex"},function(){return 2>=this.pa?0:this.kc||Oo(this)!==ob?1:0});v.u(W,{Zw:"lastPickIndex"},function(){var a=this.pa;return 0===a?0:2>=a?a-1:this.kc||Po(this)!==ob?a-2:a-1});function Lo(a){a=a.Le;return a===gh||a===hh}function No(a,b){if(b||Lo(a)){var c=a.g;null===c||c.Bk.contains(a)||null===a.Lv||c.Bk.add(a,a.Lv)}} +function jh(a,b){var c=a.layer;if(null!==c&&c.visible&&!c.Fc){var d=c.g;if(null!==d)for(var e=!1,d=d.$w;d.next();){var f=d.value;if(f.visible)if(f===c)for(var e=!0,h=!1,f=f.zb.n,k=f.length,l=0;l=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.hg=Math.floor((a.x-this.he)/this.he)*this.he;this.ig=Math.floor((b-this.ie)/this.ie)*this.ie;this.or=Math.ceil((c+2*this.he)/this.he)*this.he;this.pr=Math.ceil((d+2*this.ie)/this.ie)*this.ie;a=1+(Math.ceil((this.or-this.hg)/this.he)|0);b=1+(Math.ceil((this.pr-this.ig)/this.ie)|0);if(null===this.oc||this.Ho=c?180:0}a=180*Math.atan2(a.height,a.width)/Math.PI;switch(b){case v.Mc|v.hd:return c>a&&c<=180+a?180:270;case v.hd|v.Wc:return c>180-a&&c<=360-a?270:0;case v.Wc|v.Vc:return c>a&&c<=180+a?90:0;case v.Vc|v.Mc:return c>180-a&&c<=360-a?180:90;case v.Mc|v.hd|v.Wc:return 90180+a&&c<=360- a?270:0;case v.hd|v.Wc|v.Vc:return 180a&&180>=c?90:0;case v.Wc|v.Vc|v.Mc:return c>a&&c<=180-a?90:c>180-a&&270>=c?180:0;case v.Vc|v.Mc|v.hd:return c>180-a&&c<=180+a?180:c>180+a?270:90}d&&b!==(v.Mc|v.hd|v.Wc|v.Vc)&&(c-=15,0>c&&(c+=360));return c>a&&c<180-a?90:c>=180-a&&c<=180+a?180:c>180+a&&c<360-a?270:0}So.prototype.Zm=function(){this.Wf.length=0}; -function To(a,b){var c=a.Wf;if(0===c.length){a:if(!a.vp){c=a.vp;a.vp=!0;var d,e=null,f=a.Ic,f=f instanceof T?f:null;if(null===f||f.ee)d=a.Ic.hE(a.port.Sd);else{if(!f.Z.K()){a.vp=c;break a}e=f;d=e.gE()}var h=a.Wf.length=0,k=a.port.Za(pb,v.M()),l=a.port.Za(Cb,v.M()),f=v.kk(k.x,k.y,0,0);f.fj(l);v.v(k);v.v(l);k=v.Sb(f.x+f.width/2,f.y+f.height/2);for(d=d.i;d.next();)if(l=d.value,l.isVisible()){var m=ob,n=l.cd===a.port||l.V.ai(e),m=n?Oo(l,a.port):Po(l,a.port);if(m.Yi()&&(n=n?l.Fd:l.cd,null!==n)){var p= -n.Y;if(null!==p){var n=l.computeOtherPoint(p,n),p=k.$g(n),m=ip(f,m,p,l.kc),q=0;0===m?(q=v.Wc,180 Math.abs(D)?(A=Math.abs(D)/q,q=Math.abs(D)):A=1;break;case v.Mc:r>Math.abs(I)?(A=Math.abs(I)/r,r=Math.abs(I)):A=1;break;case v.hd:n>Math.abs(D)?(A=Math.abs(D)/n,n=Math.abs(D)):A=1;break;default:case v.Wc:p>Math.abs(I)?(A=Math.abs(I)/p,p=Math.abs(I)):A=1}y=0}var U=t.mp;if(e===po){u=t.link.computeThickness();u*=A;U.set(B);switch(x){case v.Vc:U.x=B.x+D/2+q/2-y-u/2;break;case v.Mc:U.y=B.y+I/2+r/2-y-u/2;break;case v.hd:U.x=B.x+D/2-n/2+y+u/2;break;default:case v.Wc:U.y=B.y+I/2-p/2+y+u/2}y+=u}else u=.5, -e===mo&&(u=(t.fp+1)/(t.Om+1)),U.x=B.x+D*u,U.y=B.y+I*u}v.v(k);v.v(d);v.v(l);v.v(m);B=a.Wf;for(D=0;Db.ge?1:a.angleb.angle?1:0}; -So.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Ic,this.port,ob,b.cd===this.port),d=a.fp;if(0>d)return c;var e=a.Om;if(1>=e||!b.kc)return c;var b=a.ix,f=a.mp;if(a.ge===v.Mc||a.ge===v.Vc)d=e-1-d;return((a=a.ge===v.Mc||a.ge===v.Wc)?b.yb.ge?1:a.angleb.angle?1:0}; +So.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Ic,this.port,ob,b.cd===this.port),d=a.fp;if(0>d)return c;var e=a.Pm;if(1>=e||!b.kc)return c;var b=a.jx,f=a.mp;if(a.ge===v.Mc||a.ge===v.Vc)d=e-1-d;return((a=a.ge===v.Mc||a.ge===v.Wc)?b.ye&&(e=k.right);k.bottom>f&&(f=k.bottom)}}isFinite(c)&&isFinite(d)?a.m(c,d,e-c,f-d):(b=b.location,c=this.padding,a.m(b.x+c.left,b.y+c.top,0,0));return a}; +uh.prototype.computeBorder=function(a){var b=this.Y;if(b instanceof T){var c=b;if(c.SD&&this.bs.K()){var d=c.g;if(null!==d&&(d=d.Ya,d instanceof yf&&!d.Dq&&null!==d.ac&&!d.ac.contains(c)))return a.assign(this.bs),a}}var c=v.Zf(),d=this.computeMemberBounds(c),e=this.padding;a.m(d.x-e.left,d.y-e.top,d.width+e.left+e.right,d.height+e.top+e.bottom);v.ic(c);b instanceof T&&(c=b,c.bH&&c.location.K()&&a.fj(c.location));return a}; +uh.prototype.computeMemberBounds=function(a){if(!(this.Y instanceof T))return a.m(0,0,0,0),a;for(var b=this.Y,c=Infinity,d=Infinity,e=-Infinity,f=-Infinity,h=b.Hc;h.next();){var k=h.value;if(k.isVisible()){if(k instanceof W){var l=k;if(!b.Aw)continue;if(Nj(l))continue;if(l.V===b||l.aa===b)continue}k=k.Z;k.lefte&&(e=k.right);k.bottom>f&&(f=k.bottom)}}isFinite(c)&&isFinite(d)?a.m(c,d,e-c,f-d):(b=b.location,c=this.padding,a.m(b.x+c.left,b.y+c.top,0,0));return a}; v.defineProperty(uh,{padding:"padding"},function(){return this.Ve},function(a){"number"===typeof a?((isNaN(a)||0>a)&&v.wa(a,">= 0",uh,"padding"),a=new cb(a)):(v.A(a,cb,uh,"padding"),(isNaN(a.left)||0>a.left)&&v.wa(a.left,">= 0",uh,"padding:value.left"),(isNaN(a.right)||0>a.right)&&v.wa(a.right,">= 0",uh,"padding:value.right"),(isNaN(a.top)||0>a.top)&&v.wa(a.top,">= 0",uh,"padding:value.top"),(isNaN(a.bottom)||0>a.bottom)&&v.wa(a.bottom,">= 0",uh,"padding:value.bottom"));var b=this.Ve;b.L(a)||(this.Ve= -a=a.S(),this.h("padding",b,a))});function Ne(){0=c-1?(h=0,e=d,f+=k+20,k=0):h++}null!==a&&a.Ad("Layout")}this.xf=!0};Ne.prototype.jA=function(a){return!a.location.K()||a instanceof T&&a.Wy?!0:!1}; +Ne.prototype.doLayout=function(a){null===a&&v.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");var b=new J(R);a instanceof E?(mp(this,b,a.ih,!0,this.kA,!0,!1,!0),mp(this,b,a.El,!0,this.kA,!0,!1,!0)):a instanceof T?mp(this,b,a.Hc,!1,this.kA,!0,!1,!0):b.Sc(a.i);var c=b.count;if(0=c-1?(h=0,e=d,f+=k+20,k=0):h++}null!==a&&a.Ad("Layout")}this.xf=!0};Ne.prototype.kA=function(a){return!a.location.K()||a instanceof T&&a.Xy?!0:!1}; function mp(a,b,c,d,e,f,h,k){for(c=c.i;c.next();){var l=c.value;d&&!l.ip||null!==e&&!e(l)||!l.canLayout()||(f&&l instanceof S?l.vf||(l instanceof T?null===l.Qb?mp(a,b,l.Hc,!1,e,f,h,k):b.add(l):b.add(l)):h&&l instanceof W?b.add(l):!k||!l.Pd()||l instanceof S||b.add(l))}} -Ne.prototype.collectParts=Ne.prototype.VG=function(a){var b=new J(R);a instanceof E?(mp(this,b,a.ih,!0,null,!0,!0,!0),mp(this,b,a.links,!0,null,!0,!0,!0),mp(this,b,a.Dl,!0,null,!0,!0,!0)):a instanceof T?mp(this,b,a.Hc,!1,null,!0,!0,!0):mp(this,b,a.i,!1,null,!0,!0,!0);return b};v.defineProperty(Ne,{Xd:"arrangementOrigin"},function(){return this.aq},function(a){v.A(a,w,Ne,"arrangementOrigin");this.aq.L(a)||(this.aq.assign(a),this.H())}); +Ne.prototype.collectParts=Ne.prototype.WG=function(a){var b=new J(R);a instanceof E?(mp(this,b,a.ih,!0,null,!0,!0,!0),mp(this,b,a.links,!0,null,!0,!0,!0),mp(this,b,a.El,!0,null,!0,!0,!0)):a instanceof T?mp(this,b,a.Hc,!1,null,!0,!0,!0):mp(this,b,a.i,!1,null,!0,!0,!0);return b};v.defineProperty(Ne,{Xd:"arrangementOrigin"},function(){return this.aq},function(a){v.A(a,w,Ne,"arrangementOrigin");this.aq.L(a)||(this.aq.assign(a),this.H())}); Ne.prototype.initialOrigin=function(a){var b=this.group;if(null!==b){var c=b.position.copy();(isNaN(c.x)||isNaN(c.y))&&c.set(a);b=b.placeholder;null!==b&&(c=b.Za(pb),(isNaN(c.x)||isNaN(c.y))&&c.set(a),c.x+=b.padding.left,c.y+=b.padding.top);return c}return a};function Oe(){v.ec(this);this.Ud=null;this.clear()}v.ea("LayoutNetwork",Oe); -Oe.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.i;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.i;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new J(np);this.edges=new J(op);this.nA=new pa(S,np);this.$z=new pa(W,op)}; +Oe.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.i;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.i;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new J(np);this.edges=new J(op);this.oA=new pa(S,np);this.aA=new pa(W,op)}; Oe.prototype.toString=function(a){void 0===a&&(a=0);var b="LayoutNetwork"+(null!==this.Qb?"("+this.Qb.toString()+")":"");if(0>=a)return b;b+=" vertexes: "+this.vertexes.count+" edges: "+this.edges.count;if(1d?1:0):1:null!==d?-1:0}; np.smartComparer=function(a,b){if(null!==a){if(null!==b){var c=a.ud,d=b.ud;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=f&&0>=h&&(f=1);a=this.spacing.width;isFinite(a)||(a=0);c=this.spacing.height;isFinite(c)||(c=0);null!==b&&b.Rb("Layout");d=[];switch(this.alignment){case sm:var k=a,l=c,m=Math.max(this.Po.width,1);if(!isFinite(m))for(var n=m=0;n=f&&0>=h&&(f=1);a=this.spacing.width;isFinite(a)||(a=0);c=this.spacing.height;isFinite(c)||(c=0);null!==b&&b.Rb("Layout");d=[];switch(this.alignment){case sm:var k=a,l=c,m=Math.max(this.Po.width,1);if(!isFinite(m))for(var n=m=0;nf-1||0h)d.push(new z(0,x,h+k,A)),y=0,u=t,x+=A,A=0;A=Math.max(A,I);I=0;switch(s){case qm:I=-q.width;break;default:I=0}p.moveTo(u+I,x);switch(s){case qm:u-=B;break; -default:u+=B}y++}d.push(new z(0,x,h+k,A));break;case rm:k=f;l=a;m=c;n=Math.max(this.Po.width,1);p=x=B=0;q=v.M();for(f=0;f=B&&(h-=B);for(var B=I=0,D=Math.max(this.Po.height,1),ba=p=0,V=!0,M=v.M(),f=0;fk-1||0h){d.push(new z(0,V?y-p:y,h+l,ba+p+m));for(U=0;U=B&&(h-=B);for(var B=I=0,D=Math.max(this.Po.height,1),ba=p=0,V=!0,M=v.M(),f=0;fk-1||0h){d.push(new z(0,V?y-p:y,h+l,ba+p+m));for(U=0;UB&&(e.width+=e.x-B,e.x=B)}for(k=f=h=e=0;kd?1:0}; il.smartComparer=function(a,b){if(null!==a){if(null!==b){for(var c=a.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=b.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=a.count)1===a.count&&(a=a.first(),a.oa=0,a.va=0);else{var b=new H(xp);b.Sc(a.i);a=new H(xp);var c=new H(xp),d;d=this.sort(b);var e=this.vy,f=this.WB,h=this.Jd,k=this.On,l=this.wy,m=this.Eq,b=this.Ck,n=this.oD,p=this.og,q=this.Hu,e=this.Mf,f=this.ex,h=this.RI;if(!isFinite(h)|| -0>=h)h=NaN;k=this.NG;if(!isFinite(k)||0>=k)k=1;l=this.we;isFinite(l)||(l=0);m=this.Af;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Mm&&f===Nm?e=Lm:e===Mm&&f!==Nm&&(f=Nm,e=this.Mf);if((this.direction===zm||this.direction===Am)&&this.sorting!==ym){for(var r=0;!(r>=d.length);r+=2){a.add(d.ha(r));if(r+1>=d.length)break;c.add(d.ha(r+1))}this.direction===zm?(this.Mf===Mm&&a.reverse(),d=new H(xp),d.Sc(a),d.Sc(c)):(this.Mf===Mm&&c.reverse(),d=new H(xp),d.Sc(c),d.Sc(a))}for(var s= +tm.prototype.doLayout=function(a){null===a&&v.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");null===this.network&&(this.network=this.makeNetwork(a));a=this.network.vertexes;if(1>=a.count)1===a.count&&(a=a.first(),a.oa=0,a.va=0);else{var b=new H(xp);b.Sc(a.i);a=new H(xp);var c=new H(xp),d;d=this.sort(b);var e=this.wy,f=this.XB,h=this.Jd,k=this.On,l=this.xy,m=this.Eq,b=this.Ck,n=this.pD,p=this.og,q=this.Hu,e=this.Mf,f=this.gx,h=this.RI;if(!isFinite(h)|| +0>=h)h=NaN;k=this.OG;if(!isFinite(k)||0>=k)k=1;l=this.we;isFinite(l)||(l=0);m=this.Af;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Mm&&f===Nm?e=Lm:e===Mm&&f!==Nm&&(f=Nm,e=this.Mf);if((this.direction===zm||this.direction===Am)&&this.sorting!==ym){for(var r=0;!(r>=d.length);r+=2){a.add(d.ha(r));if(r+1>=d.length)break;c.add(d.ha(r+1))}this.direction===zm?(this.Mf===Mm&&a.reverse(),d=new H(xp),d.Sc(a),d.Sc(c)):(this.Mf===Mm&&c.reverse(),d=new H(xp),d.Sc(c),d.Sc(a))}for(var s= d.length,t=n=0,r=0;rm&&(0===r||r===d.length-1)&&(u/=2);n+=u;t++}if(isNaN(h)||e===Mm){isNaN(b)&&(b=6);if(e!==Lm&&e!==Mm){u=-Infinity;for(r=0;rh?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.vy=e;this.WB=f;this.Jd=h;this.On=k;this.wy=l;this.Eq=m;this.Ck=b;this.oD=n;this.og=p;this.Hu=q;b=d;d=this.vy;e=this.Jd;f=this.wy;k=this.Eq;l=this.Ck;m=this.og;n=this.Hu;if(this.direction!==zm&&this.direction!==Am||d!==Mm)if(this.direction===zm||this.direction===Am){h=0;switch(d){case Km:h=180*Bp(this,e,m,f,n)/Math.PI;break;case Lm:n=b=0;h=a.first();null!==h&&(b=yp(h,Math.PI/2));h=c.first();null!==h&&(n=yp(h,Math.PI/2));h=180*Bp(this,e,m,f,l+(b+ +m*Math.PI/180);r>h?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.wy=e;this.XB=f;this.Jd=h;this.On=k;this.xy=l;this.Eq=m;this.Ck=b;this.pD=n;this.og=p;this.Hu=q;b=d;d=this.wy;e=this.Jd;f=this.xy;k=this.Eq;l=this.Ck;m=this.og;n=this.Hu;if(this.direction!==zm&&this.direction!==Am||d!==Mm)if(this.direction===zm||this.direction===Am){h=0;switch(d){case Km:h=180*Bp(this,e,m,f,n)/Math.PI;break;case Lm:n=b=0;h=a.first();null!==h&&(b=yp(h,Math.PI/2));h=c.first();null!==h&&(n=yp(h,Math.PI/2));h=180*Bp(this,e,m,f,l+(b+ n)/2)/Math.PI;break;case Jm:h=k/b.length}if(this.direction===zm){switch(d){case Km:Cp(this,a,f,Cm);break;case Lm:Dp(this,a,f,Cm);break;case Jm:Ep(this,a,k/2,f,Cm)}switch(d){case Km:Cp(this,c,f+h,Bm);break;case Lm:Dp(this,c,f+h,Bm);break;case Jm:Ep(this,c,k/2,f+h,Bm)}}else{switch(d){case Km:Cp(this,c,f,Cm);break;case Lm:Dp(this,c,f,Cm);break;case Jm:Ep(this,c,k/2,f,Cm)}switch(d){case Km:Cp(this,a,f+h,Bm);break;case Lm:Dp(this,a,f+h,Bm);break;case Jm:Ep(this,a,k/2,f+h,Bm)}}}else switch(d){case Km:Cp(this, b,f,this.direction);break;case Lm:Dp(this,b,f,this.direction);break;case Jm:Ep(this,b,k,f,this.direction);break;case Mm:Fp(this,b,k,f,this.direction)}else Fp(this,b,k,f-k/2,Bm)}this.updateParts();this.network=null;this.xf=!0}; function Ep(a,b,c,d,e){var f=a.Eq,h=a.Jd;a=a.og;d=d*Math.PI/180;c=c*Math.PI/180;for(var k=b.length,l=0;lc){for(f=d+(e===Bm?f:-f);0>f;)f+=360;f%=360;180c){for(f=d+(e===Bm?f:-f);0>f;)f+=360;f%=360;180=n.length-1)break;Ip(a,l,m,n,p,e,f)||Jp(a,l,m,n,p,e,f);l=f.x;m=f.y}v.v(f);a.om++;if(!(23Math.abs(r)?Math.abs(l-f)<(n[0].width+n[n.length-1].width)/2&&(h=0):h=0Math.abs(q)?0:q;q=!1;q=Math.abs(f)>Math.abs(p)?0p:0a.om?a.Jd-h/(2*Math.PI):5>n.length&&10=p.length-1)break;Ip(a,l,m,p,q,e,n)||Jp(a,l,m,p,q,e,n);l=n.x;m=n.y}v.v(n);a.om++;if(!(23a.om?a.Jd-f/(2*Math.PI):a.Jd-(0k){m=b-a;if(m<-k)return h.x=m,h.y=n,!1;p=!0}}else if(m=b-a,m<-k){m=b+a;if(m>k)return h.x=m,h.y=n,!1;p=!0}n=Math.sqrt(1-Math.min(1,m*m/(k*k)))*l;0>c!==p&&(n=-n);if(Math.abs(c-n)>(d[e].height+d[e+1].height)/2)return h.x=m,h.y=n,!1;h.x=m;h.y=n;return!0} +l;n[p].va=m;if(p>=n.length-1)break;Ip(a,l,m,n,p,e,f)||Jp(a,l,m,n,p,e,f);l=f.x;m=f.y}v.v(f);a.pm++;if(!(23Math.abs(r)?Math.abs(l-f)<(n[0].width+n[n.length-1].width)/2&&(h=0):h=0Math.abs(q)?0:q;q=!1;q=Math.abs(f)>Math.abs(p)?0p:0a.pm?a.Jd-h/(2*Math.PI):5>n.length&&10=p.length-1)break;Ip(a,l,m,p,q,e,n)||Jp(a,l,m,p,q,e,n);l=n.x;m=n.y}v.v(n);a.pm++;if(!(23a.pm?a.Jd-f/(2*Math.PI):a.Jd-(0k){m=b-a;if(m<-k)return h.x=m,h.y=n,!1;p=!0}}else if(m=b-a,m<-k){m=b+a;if(m>k)return h.x=m,h.y=n,!1;p=!0}n=Math.sqrt(1-Math.min(1,m*m/(k*k)))*l;0>c!==p&&(n=-n);if(Math.abs(c-n)>(d[e].height+d[e+1].height)/2)return h.x=m,h.y=n,!1;h.x=m;h.y=n;return!0} function Jp(a,b,c,d,e,f,h){var k=a.Jd,l=a.og,m=0,n=0;a=(d[e].height+d[e+1].height)/2+a.Ck;d=!1;if(0<=b!==(f===Bm)){if(n=c-a,n<-l){n=c+a;if(n>l){h.x=m;h.y=n;return}d=!0}}else if(n=c+a,n>l){n=c-a;if(n<-l){h.x=m;h.y=n;return}d=!0}m=Math.sqrt(1-Math.min(1,n*n/(l*l)))*k;0>b!==d&&(m=-m);h.x=m;h.y=n}tm.prototype.commitLayout=function(){this.commitNodes();this.wt&&this.commitLinks()}; -tm.prototype.commitNodes=function(){for(var a=this.CG,b=this.network.vertexes.i;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};tm.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()}; -function Ap(a,b,c,d,e){var f=a.rG;if(.001>Math.abs(a.On-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(f+1):Math.PI/(2*(f+1)),l=0,m=0;m<=f;m++)l=void 0!==d&&void 0!==e?d+m*e/f:m*Math.PI/(2*f),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function zp(a,b,c,d,e){var f=0,f=void 0!==d&&void 0!==e?Ap(a,1,c,d,e):Ap(a,1,c);return b/f} +tm.prototype.commitNodes=function(){for(var a=this.DG,b=this.network.vertexes.i;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};tm.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()}; +function Ap(a,b,c,d,e){var f=a.sG;if(.001>Math.abs(a.On-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(f+1):Math.PI/(2*(f+1)),l=0,m=0;m<=f;m++)l=void 0!==d&&void 0!==e?d+m*e/f:m*Math.PI/(2*f),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function zp(a,b,c,d,e){var f=0,f=void 0!==d&&void 0!==e?Ap(a,1,c,d,e):Ap(a,1,c);return b/f} function Bp(a,b,c,d,e){if(.001>Math.abs(a.On-1))return e/b;var f=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c,h=0;a=2*Math.PI/(700*a.network.vertexes.count);b>c&&(d+=Math.PI/2);for(var k=0;;k++){var l=Math.sin(d+k*a),h=h+(b>c?b:c)*Math.sqrt(1-f*f*l*l)*a;if(h>=e)return k*a}} tm.prototype.sort=function(a){switch(this.sorting){case wm:break;case xm:a.reverse();break;case um:a.sort(this.comparer);break;case vm:a.sort(this.comparer);a.reverse();break;case ym:for(var b=[],c=0;ce&&(e=k,f=h)}else for(h=0;he&&(e=k,f=h);d.add(a.ha(f));b[f]=-1;f=a.ha(f);e=0;for(h=f.lc;h.next();)e=a.indexOf(h.value.fromVertex),0>e||0<=b[e]&& b[e]++;for(f=f.$b;f.next();)e=a.indexOf(f.value.toVertex),0>e||0<=b[e]&&b[e]++}a=[];for(b=0;ba[b].indexOf(l)&&a[b].push(l);for(c=h.lc;c.next();)l=d.indexOf(c.value.fromVertex),l!==b&&0>a[b].indexOf(l)&&a[b].push(l)}h=[];for(b=0;ba[c[p]].indexOf(c[p===c.length-1?0:p+1])&&t.push(p===c.length-1?0:p+1);if(0===t.length)for(p=0;pI.indexOf(V)||MI.indexOf(V)|| M=u?l+1:l)),y+=l=u&&l++,B>=u&&B++,l>B&&(I=B,B=l,l=I),B-l<(c.length+2)/2===(lq||q===l||(s=q>l?q-l:l-q,p+=qm-s?1:-1);c.splice(0>p?l:l+1,0,b);e.splice(h,1);h--}else k=!1;if(k)break;else c.push(e[0]),e.splice(0,1)}for(b=0;b=a?a:360,this.H())}); +v.defineProperty(tm,{OG:"aspectRatio"},function(){return this.cq},function(a){this.cq!==a&&(v.j(a,"number",tm,"aspectRatio"),0=a?a:360,this.H())}); v.defineProperty(tm,{Mf:"arrangement"},function(){return this.jd},function(a){this.jd!==a&&(v.sb(a,tm,tm,"arrangement"),a===Mm||a===Lm||a===Km||a===Jm)&&(this.jd=a,this.H())});v.defineProperty(tm,{direction:"direction"},function(){return this.ba},function(a){this.ba!==a&&(v.sb(a,tm,tm,"direction"),a===Bm||a===Cm||a===zm||a===Am)&&(this.ba=a,this.H())}); v.defineProperty(tm,{sorting:"sorting"},function(){return this.Rh},function(a){this.Rh!==a&&(v.sb(a,tm,tm,"sorting"),a===wm||a===xm||a===um||vm||a===ym)&&(this.Rh=a,this.H())});v.defineProperty(tm,{comparer:"comparer"},function(){return this.yh},function(a){this.yh!==a&&(v.j(a,"function",tm,"comparer"),this.yh=a,this.H())});v.defineProperty(tm,{spacing:"spacing"},function(){return this.Sh},function(a){this.Sh!==a&&(v.j(a,"number",tm,"spacing"),this.Sh=a,this.H())}); -v.defineProperty(tm,{ex:"nodeDiameterFormula"},function(){return this.Er},function(a){this.Er!==a&&(v.sb(a,tm,tm,"nodeDiameterFormula"),a===Om||a===Nm)&&(this.Er=a,this.H())});v.u(tm,{DG:"actualXRadius"},function(){return this.Jd});v.u(tm,{EG:"actualYRadius"},function(){return this.og});v.u(tm,{JJ:"actualSpacing"},function(){return this.Ck});v.u(tm,{CG:"actualCenter"},function(){return isNaN(this.Xd.x)||isNaN(this.Xd.y)?new w(0,0):new w(this.Xd.x+this.DG,this.Xd.y+this.EG)});var Lm; +v.defineProperty(tm,{gx:"nodeDiameterFormula"},function(){return this.Er},function(a){this.Er!==a&&(v.sb(a,tm,tm,"nodeDiameterFormula"),a===Om||a===Nm)&&(this.Er=a,this.H())});v.u(tm,{EG:"actualXRadius"},function(){return this.Jd});v.u(tm,{FG:"actualYRadius"},function(){return this.og});v.u(tm,{JJ:"actualSpacing"},function(){return this.Ck});v.u(tm,{DG:"actualCenter"},function(){return isNaN(this.Xd.x)||isNaN(this.Xd.y)?new w(0,0):new w(this.Xd.x+this.EG,this.Xd.y+this.FG)});var Lm; tm.ConstantSpacing=Lm=v.p(tm,"ConstantSpacing",0);var Km;tm.ConstantDistance=Km=v.p(tm,"ConstantDistance",1);var Jm;tm.ConstantAngle=Jm=v.p(tm,"ConstantAngle",2);var Mm;tm.Packed=Mm=v.p(tm,"Packed",3);var Bm;tm.Clockwise=Bm=v.p(tm,"Clockwise",4);var Cm;tm.Counterclockwise=Cm=v.p(tm,"Counterclockwise",5);var zm;tm.BidirectionalLeft=zm=v.p(tm,"BidirectionalLeft",6);var Am;tm.BidirectionalRight=Am=v.p(tm,"BidirectionalRight",7);var wm;tm.Forwards=wm=v.p(tm,"Forwards",8);var xm; tm.Reverse=xm=v.p(tm,"Reverse",9);var um;tm.Ascending=um=v.p(tm,"Ascending",10);var vm;tm.Descending=vm=v.p(tm,"Descending",11);var ym;tm.Optimized=ym=v.p(tm,"Optimized",12);var Om;tm.Pythagorean=Om=v.p(tm,"Pythagorean",13);var Nm;tm.Circular=Nm=v.p(tm,"Circular",14);function vp(){this.ap=-Infinity;this.Pp=this.on=null} vp.prototype.compare=function(a,b){if(0this.ap||Math.abs(a)a&&0f?(e=n.x+n.width/2,k=n.y+n.height/2,l[0]=new w(n.x+n.width+d.width,n.y),l[1]=new w(n.x,n.y+n.height+d.height),f=2):(p=Op(l,f,e,k,n.width,n.height,d),q=l[p],r=new w(q.x+n.width+d.width, q.y),s=new w(q.x,q.y+n.height+d.height),p+1this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().rb,d=this.network.vertexes.i;d.next();){if(d.value.rb.vg(c)&&(a++,2a.network.vertexes.count)return!1;null===a.ng?a.ng=new H(Tp):a.ng.clear();a.ng.Sc(a.network.vertexes);var c=a.ng;c.sort(function(a,b){return null===a||null===b||a===b?0:b.Xf-a.Xf});for(var d=c.count-1;0<=d&&1>=c.ha(d).Xf;)d--;return 1=h))){for(var m=0,n=0,p=l.count-h;ps&&(s=1);m=K.sqrt((m+s+n*n*4/(h*h))/s);h=(m-1)*p/2;m=(m-1)*q/2;f.rb=new z(l-r.x-h,k-r.y-m,p+2*h,q+2*m);f.focus=new w(r.x+h,r.y+m)}a.network=d;return c}function Sp(a,b){for(var c=a.network.vertexes.i;c.next();){var d=c.value;d.network=b;if(null!==d.qh){var e=d.qh.ha(d.BA);d.Xf=e.Mx;var f=e.YA,h=e.ZA;d.rb=new z(d.oa-f,d.va-h,e.Px,e.Lx);d.focus=new w(f,h);d.BA--}}for(c=a.network.edges.i;c.next();)c.value.network=b;a.network=b} -function Up(a,b){var c=b.Km;if(null!==c&&0!==c.count){var d=b.oa,e=b.va,f=b.width,h=b.height;null!==b.qh&&0=p.Xf?l++:(k=!0,m++,h+=Math.atan2(b.va-p.va,b.oa-p.oa))}if(0!==l)for(0=h))){for(var m=0,n=0,p=l.count-h;ps&&(s=1);m=K.sqrt((m+s+n*n*4/(h*h))/s);h=(m-1)*p/2;m=(m-1)*q/2;f.rb=new z(l-r.x-h,k-r.y-m,p+2*h,q+2*m);f.focus=new w(r.x+h,r.y+m)}a.network=d;return c}function Sp(a,b){for(var c=a.network.vertexes.i;c.next();){var d=c.value;d.network=b;if(null!==d.qh){var e=d.qh.ha(d.CA);d.Xf=e.Nx;var f=e.ZA,h=e.$A;d.rb=new z(d.oa-f,d.va-h,e.Qx,e.Mx);d.focus=new w(f,h);d.CA--}}for(c=a.network.edges.i;c.next();)c.value.network=b;a.network=b} +function Up(a,b){var c=b.Lm;if(null!==c&&0!==c.count){var d=b.oa,e=b.va,f=b.width,h=b.height;null!==b.qh&&0=p.Xf?l++:(k=!0,m++,h+=Math.atan2(b.va-p.va,b.oa-p.oa))}if(0!==l)for(0>1)+n)*(0===k%2?1:-1);l.oa=d+p*Math.cos(q);l.va=e+p*Math.sin(q);k++}}}function Op(a,b,c,d,e,f,h){var k=9E19,l=-1,m=0;a:for(;mn.y&&a[q].x-n.xn.x&&a[q].y-n.yl+h?(d=d+f-k,e=e-l-h,K.sqrt(d*d+e*e)):e+ck+m?e>l+h?(d=d-k-m,e=e-l-h,K.sqrt(d*d+e*e)):e+cl+h?e-(l+h):e+c=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.oa,e=d,f=c.va,h=f,c=1;ch-f)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.oa-b.oa}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.va-b.va});for(var h=a.Fh,m=0,n=0,p=0,c=0;ch||p-d>h){if(f)break}else if(l-r>h||r-l>h){if(!f)break}else{var s=Wp(k,e);1>s?(n=a.nx,null===n&&(a.nx=n=new va(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.N.right-k.N.x),n=(1+n)*m):dr?(p=Math.abs(e.N.bottom-k.N.y),p=(1+p)*s):ds?(n=a.nx,null===n&&(a.nx=n=new va(0)),m=n.random(),s= -n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=f.stiffness*(s-f.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Fh/20,50);for(e=0;ed&&(f=d),h<-d?h=-d:h>d&&(h=d),k.oa+=f,k.va+=h,c=Math.max(c,f*f+h*h));return c>a.fE*a.fE}Lp.prototype.moveFixedVertex=function(){}; -Lp.prototype.commitLayout=function(){this.GA();this.commitNodes();this.wt&&this.commitLinks()};Lp.prototype.GA=function(){if(this.Jp)for(var a=this.network.edges.i;a.next();){var b=a.value.link;null!==b&&(b.Ab=jc,b.Bb=jc)}};Lp.prototype.commitNodes=function(){var a=0,b=0;if(this.MG){var c=v.Zf();this.Yg(this.network,c);b=this.Xd;a=b.x-c.x;b=b.y-c.y;v.ic(c)}for(var c=v.Zf(),d=this.network.vertexes.i;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.rb),c.x+=a,c.y+=b,e.rb=c;e.commit()}v.ic(c)}; +b[c],l=k.N,q=k.O,d=l.x+q.x,l=l.y+q.y,n=k.charge*a.electricalFieldX(d,l),p=k.charge*a.electricalFieldY(d,l),n=n+k.mass*a.gravitationalFieldX(d,l),p=p+k.mass*a.gravitationalFieldY(d,l);k.forceX+=n;k.forceY+=p;for(q=c+1;qh||p-d>h){if(f)break}else if(l-r>h||r-l>h){if(!f)break}else{var s=Wp(k,e);1>s?(n=a.ox,null===n&&(a.ox=n=new va(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.N.right-k.N.x),n=(1+n)*m):dr?(p=Math.abs(e.N.bottom-k.N.y),p=(1+p)*s):ds?(n=a.ox,null===n&&(a.ox=n=new va(0)),m=n.random(),s= +n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=f.stiffness*(s-f.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Fh/20,50);for(e=0;ed&&(f=d),h<-d?h=-d:h>d&&(h=d),k.oa+=f,k.va+=h,c=Math.max(c,f*f+h*h));return c>a.gE*a.gE}Lp.prototype.moveFixedVertex=function(){}; +Lp.prototype.commitLayout=function(){this.HA();this.commitNodes();this.wt&&this.commitLinks()};Lp.prototype.HA=function(){if(this.Jp)for(var a=this.network.edges.i;a.next();){var b=a.value.link;null!==b&&(b.Ab=jc,b.Bb=jc)}};Lp.prototype.commitNodes=function(){var a=0,b=0;if(this.NG){var c=v.Zf();this.Yg(this.network,c);b=this.Xd;a=b.x-c.x;b=b.y-c.y;v.ic(c)}for(var c=v.Zf(),d=this.network.vertexes.i;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.rb),c.x+=a,c.y+=b,e.rb=c;e.commit()}v.ic(c)}; Lp.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()};Lp.prototype.springStiffness=function(a){a=a.stiffness;return isNaN(a)?this.Jn:a};Lp.prototype.springLength=function(a){a=a.length;return isNaN(a)?this.In:a};Lp.prototype.electricalCharge=function(a){a=a.charge;return isNaN(a)?this.Fn:a};Lp.prototype.electricalFieldX=function(){return 0};Lp.prototype.electricalFieldY=function(){return 0}; -Lp.prototype.gravitationalMass=function(a){a=a.mass;return isNaN(a)?this.Hn:a};Lp.prototype.gravitationalFieldX=function(){return 0};Lp.prototype.gravitationalFieldY=function(){return 0};Lp.prototype.isFixed=function(a){return a.isFixed};v.u(Lp,{jK:"currentIteration"},function(){return this.er});v.defineProperty(Lp,{FD:"arrangementSpacing"},function(){return this.$f},function(a){v.A(a,ia,Lp,"arrangementSpacing");this.$f.L(a)||(this.$f.assign(a),this.H())}); -v.defineProperty(Lp,{MG:"arrangesToOrigin"},function(){return this.bq},function(a){this.bq!==a&&(v.j(a,"boolean",Lp,"arrangesToOrigin"),this.bq=a,this.H())});v.defineProperty(Lp,{Jp:"setsPortSpots"},function(){return this.Ph},function(a){this.Ph!==a&&(v.j(a,"boolean",Lp,"setsPortSpots"),this.Ph=a,this.H())});v.defineProperty(Lp,{comments:"comments"},function(){return this.xh},function(a){this.xh!==a&&(v.j(a,"boolean",Lp,"comments"),this.xh=a,this.H())}); -v.defineProperty(Lp,{dA:"maxIterations"},function(){return this.mo},function(a){this.mo!==a&&(v.j(a,"number",Lp,"maxIterations"),0<=a&&(this.mo=a,this.H()))});v.defineProperty(Lp,{fE:"epsilonDistance"},function(){return this.Gq},function(a){this.Gq!==a&&(v.j(a,"number",Lp,"epsilonDistance"),0b.toVertex.index&&(this.network.sx(b),b.rev=!0);break;case iq:for(b=this.network.vertexes.i;b.next();)a=b.value,a.Wo=-1,a.finish=-1;for(a=this.network.edges.i;a.next();)a.value.forest=!1;this.Ar=0;for(b.reset();b.next();)c=b.value,0===c.lc.count&&sq(this,c);for(b.reset();b.next();)c=b.value,-1===c.Wo&&sq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, -d=c.finish,e=b.toVertex,f=e.finish,e.Wob.toVertex.index&&(this.network.tx(b),b.rev=!0);break;case iq:for(b=this.network.vertexes.i;b.next();)a=b.value,a.Wo=-1,a.finish=-1;for(a=this.network.edges.i;a.next();)a.value.forest=!1;this.Ar=0;for(b.reset();b.next();)c=b.value,0===c.lc.count&&sq(this,c);for(b.reset();b.next();)c=b.value,-1===c.Wo&&sq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, +d=c.finish,e=b.toVertex,f=e.finish,e.Wos&&0s&&0s&&0s&&0b[this.Hf]&&(this.sv=b[c]-1,this.Hf=c),b[c]h)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.Hm===m.Hm||k++;var m=0,q,r=q=p=l=0,s,t=0,u=0;s=0;var x;if(0<=c)for(n=d[h].Qe,m=0;mh)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.Im===m.Im||k++;var m=0,q,r=q=p=l=0,s,t=0,u=0;s=0;var x;if(0<=c)for(n=d[h].Qe,m=0;mt||l===t&&q>s)&&k++,ul||t===l&&s>q)&&k++);if(0>=c)for(n=d[h].Me,m=0;mt||l===t&&p>u)&&k++,sl||t===l&&u>p)&&k++);f[h*e+h]=k;for(n=h+1;n=c)for(k=d[h].Me,x=d[n].Me,m=0;mh.portFromColOffset&&(d=!0,c[e]=h,c[e+1]=f)}for(e=0;eh.portToColOffset&&(d=!0,c[e]=h,c[e+1]=f)}for(e=0;e=h;d--)f=Rq(this,d,-1)||f;e=this.countCrossings();e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=c;d>=h;d--)f=Rq(this,d,1)||f;e=this.countCrossings();e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=h;d<=c;d++)f=Rq(this,d,1)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1, d=h;d<=c;d++)f=Rq(this,d,-1)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=c;d>=h;d--)f=Rq(this,d,0)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=h;d<=c;d++)f=Rq(this,d,0)||f;e>=a?zq(this,b):(a=e,b=yq(this))}break;default:case lq:for(c=this.qb,h=0,k=a+1;(d=this.countCrossings())=h;d--)f=Rq(this,d,-1)||f;e=this.countCrossings();e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=c;d>=h;d--)f=Rq(this,d,1)||f;e=this.countCrossings(); e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=h;d<=c;d++)f=Rq(this,d,1)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=h;d<=c;d++)f=Rq(this,d,-1)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=c;d>=h;d--)f=Rq(this,d,0)||f;e>=a?zq(this,b):(a=e,b=yq(this));for(f=!0;f;)for(f=!1,d=h;d<=c;d++)f=Rq(this,d,0)||f;e>=a?zq(this,b):(a=e,b=yq(this))}}zq(this,b)}; @@ -1814,13 +1814,13 @@ function Zq(a,b){for(var c=0;c<=a.Hb;c++)for(;ar(a,c););a.normalize();for(c=0;c< function cr(a,b,c){a.jg=0;for(var d=a.network.vertexes.i;d.next();)d.value.component=-1;if(0c)for(d.reset();d.next();)e=d.value,e.column+a.nodeMinColumnSpace(e,!1)>=b&&(e.component=a.jg);a.jg++;for(d.reset();d.next();)b=d.value,-1===b.component&&(Fq(a,b,a.jg,-1,!0,!0),a.jg++);var f=0;b=[];for(f=0;fc)for(k=a.Hb;0c)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} -km.prototype.commitLayout=function(){if(this.Jp)for(var a=tq(this,!0),b=tq(this,!1),c=this.network.edges.i;c.next();){var d=c.value.link;null!==d&&(d.Ab=a,d.Bb=b)}this.commitNodes();this.yz();this.wt&&this.commitLinks()};function tq(a,b){return 270===a.ba?b?uc:xc:90===a.ba?b?xc:uc:180===a.ba?b?vc:wc:b?wc:vc} -km.prototype.commitNodes=function(){this.fg=[];this.Ff=[];this.Ef=[];this.Mb=[];for(var a=0;a<=this.qb;a++)this.fg[a]=0,this.Ff[a]=0,this.Ef[a]=0,this.Mb[a]=0;for(a=this.network.vertexes.i;a.next();){var b=a.value,c=b.layer;this.fg[c]=Math.max(this.fg[c],this.nodeMinLayerSpace(b,!0));this.Ff[c]=Math.max(this.Ff[c],this.nodeMinLayerSpace(b,!1))}for(var b=0,d=this.hm,c=0;c<=this.qb;c++){var e=d;0>=this.fg[c]+this.Ff[c]&&(e=0);0=this.fg[c]+this.Ff[c]&&(e=0);0Ub.y&&(ec=wg.y>Ub.y?0:Bd.xUb.y&&(ec=wg.y>Ub.y?0:Bd.xgc.x&&(Ud=yg.x>gc.x?0:Lb.yb.layer?1:a.Jeb.Je?1:a.Ydb.Yd?1:0:0};km.prototype.oF=function(a,b){return a instanceof dr&&b instanceof dr&&a!==b?a.firstb.first||a.cib.ci||a.Jeb.Je?1:a.Ydb.Yd?1:0:0}; -km.prototype.ux=function(a,b){return a instanceof dr&&b instanceof dr&&a!==b?a.Rdb.Rd||a.cib.ci||a.Jeb.Je?1:a.Ydb.Yd?1:0:0};km.prototype.D=function(a,b){var c=a-b;return-1c};function vq(a,b){var c,d=a.Td[b];if(d>=a.Ng.length){c=[];for(var e=0;egc.x&&(Ud=yg.x>gc.x?0:Lb.yb.layer?1:a.Jeb.Je?1:a.Ydb.Yd?1:0:0};km.prototype.pF=function(a,b){return a instanceof dr&&b instanceof dr&&a!==b?a.firstb.first||a.cib.ci||a.Jeb.Je?1:a.Ydb.Yd?1:0:0}; +km.prototype.vx=function(a,b){return a instanceof dr&&b instanceof dr&&a!==b?a.Rdb.Rd||a.cib.ci||a.Jeb.Je?1:a.Ydb.Yd?1:0:0};km.prototype.D=function(a,b){var c=a-b;return-1c};function vq(a,b){var c,d=a.Td[b];if(d>=a.Ng.length){c=[];for(var e=0;ea&&(this.Fi=a,this.H()))});v.defineProperty(km,{Jp:"setsPortSpots"},function(){return this.Ph},function(a){this.Ph!==a&&(v.j(a,"boolean",km,"setsPortSpots"),this.Ph=a,this.H())});v.defineProperty(km,{OE:"linkSpacing"},function(){return this.jr},function(a){this.jr!==a&&(v.j(a,"number",km,"linkSpacing"),0<=a&&(this.jr=a,this.H()))});v.u(km,{vI:"maxLayer"},function(){return this.qb}); +v.defineProperty(km,{YH:"initializeOption"},function(){return this.Wn},function(a){this.Wn!==a&&(v.sb(a,km,km,"initializeOption"),a===kq||a===Oq||a===Mq)&&(this.Wn=a,this.H())});v.defineProperty(km,{NK:"iterations"},function(){return this.fm},function(a){this.fm!==a&&(v.Xe(a,nq,"iterations"),0<=a&&(this.fm=a,this.H()))});v.defineProperty(km,{LG:"aggressiveOption"},function(){return this.un},function(a){this.un!==a&&(v.sb(a,km,km,"aggressiveOption"),a===Sq||a===lq||a===Tq)&&(this.un=a,this.H())}); +v.defineProperty(km,{kL:"packOption"},function(){return this.Fi},function(a){this.Fi!==a&&(v.j(a,"number",km,"packOption"),0<=a&&8>a&&(this.Fi=a,this.H()))});v.defineProperty(km,{Jp:"setsPortSpots"},function(){return this.Ph},function(a){this.Ph!==a&&(v.j(a,"boolean",km,"setsPortSpots"),this.Ph=a,this.H())});v.defineProperty(km,{PE:"linkSpacing"},function(){return this.jr},function(a){this.jr!==a&&(v.j(a,"number",km,"linkSpacing"),0<=a&&(this.jr=a,this.H()))});v.u(km,{vI:"maxLayer"},function(){return this.qb}); v.u(km,{UK:"maxIndex"},function(){return this.sv});v.u(km,{TK:"maxColumn"},function(){return this.Hb});v.u(km,{ZK:"minIndexLayer"},function(){return this.tr});v.u(km,{VK:"maxIndexLayer"},function(){return this.Hf});var iq;km.CycleDepthFirst=iq=v.p(km,"CycleDepthFirst",0);var oq;km.CycleGreedy=oq=v.p(km,"CycleGreedy",1);var jq;km.LayerOptimalLinkLength=jq=v.p(km,"LayerOptimalLinkLength",0);var Gq;km.LayerLongestPathSink=Gq=v.p(km,"LayerLongestPathSink",1);var Iq; km.LayerLongestPathSource=Iq=v.p(km,"LayerLongestPathSource",2);var kq;km.InitDepthFirstOut=kq=v.p(km,"InitDepthFirstOut",0);var Oq;km.InitDepthFirstIn=Oq=v.p(km,"InitDepthFirstIn",1);var Mq;km.InitNaive=Mq=v.p(km,"InitNaive",2);var Sq;km.AggressiveNone=Sq=v.p(km,"AggressiveNone",0);var lq;km.AggressiveLess=lq=v.p(km,"AggressiveLess",1);var Tq;km.AggressiveMore=Tq=v.p(km,"AggressiveMore",2);km.PackNone=0;var Uq;km.PackExpand=Uq=1;var Vq;km.PackStraighten=Vq=2;var Xq;km.PackMedian=Xq=4;var mq; km.PackAll=mq=7;function dr(){this.index=this.Yd=this.Je=this.Rd=this.first=this.layer=0;this.link=null;this.ci=0}v.Nd(dr,{layer:!0,first:!0,Rd:!0,Je:!0,Yd:!0,index:!0,link:!0,ci:!0});function nq(){Oe.call(this)}v.Ja(nq,Oe);v.ea("LayeredDigraphNetwork",nq);nq.prototype.createVertex=function(){return new er};nq.prototype.createEdge=function(){return new fr}; -function er(){np.call(this);this.index=this.column=this.layer=-1;this.component=NaN;this.near=null;this.valid=!1;this.finish=this.Wo=NaN;this.Hm=0;this.kA=this.lA=null}v.Ja(er,np);v.ea("LayeredDigraphVertex",er);function fr(){op.call(this);this.forest=this.rev=this.valid=!1;this.portToPos=this.portFromPos=NaN;this.portToColOffset=this.portFromColOffset=0}v.Ja(fr,op);v.ea("LayeredDigraphEdge",fr); -function Y(){0b.level)return!1;a.removeChild(c.parent,c)}return!0}Y.prototype.removeChild=function(a,b){if(null!==a&&null!==b){for(var c=a.children,d=0,e=0;ef?Ur(a,k,oa,A,B):Vr(a,k,oa,A,B);oa=V.x;A=V.width;B=V.height;break;case Ir:for(m=0;ms&&(Mf[0].x?f[2].assign(f[1]):f[1].assign(f[2])),f[3].yf[0].x?f[3].assign(f[2]):f[2].assign(f[3])),p[0].m(h+d,0),p[1].m(p[0].x,e),p[2].yf[0].y?f[2].assign(f[1]):f[1].assign(f[2])),f[3].xf[0].y?f[3].assign(f[2]):f[2].assign(f[3])),p[0].m(0,q+e),p[1].m(d,p[0].y),p[2].xc?Ur(b,e,ma,I,D):Vr(b,e,ma,I,D);ma=D.x;I=D.width;D=D.height;break;case Ir:for(k=0;kr&&(bar&&(Ve;)u=l[f++],n[d++].m(u.x+m,u.y);l=Wr(a,d);for(e=0;ep.length||null===f||2>f.length)e=null;else{n=Wr(a,p.length+f.length);for(m=x=l=0;lf;)e=p[l++],n[m++].m(e.x,e.y);e=Wr(a,m);for(l=0;lp.length||null===q||2>q.length))for(m=l=0;lf&&e.xe.x&&fb.length||null===l||2>l.length)d=null;else{n=Wr(a, b.length+l.length);for(d=f=e=0;fe;)u=l[f++],n[d++].m(u.x,u.y+m);l=Wr(a,d);for(e=0;ep.length||null===f||2>f.length)e=null;else{n=Wr(a,p.length+f.length);for(m=x=l=0;lf;)e=p[l++],n[m++].m(e.x,e.y);e=Wr(a,m);for(l=0;lf;)e=p[l++],n[m++].m(e.x,e.y);e=Wr(a,m);for(l=0;l=a?0:135>=a?90:225>=a?180:315>=a?270:0} function Sr(a){var b=Pr(a),b=90===b||270===b,c=a.layerSpacing;if(0=a&&(this.sa.nodeIndentPastParent=a,this.H()))}); @@ -1947,18 +1947,18 @@ Y.LayerSiblings=ur=v.p(Y,"LayerSiblings",61);var tr;Y.LayerUniform=tr=v.p(Y,"Lay function lr(){np.call(this);this.initialized=!1;this.parent=null;this.children=[];this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0;this.comments=null;this.na=new w(0,0);this.hb=new ia(0,0);this.Ma=new w(0,0);this.Fp=this.Ep=this.dJ=!1;this.Tt=this.zt=null;this.sorting=Br;this.comparer=tp;this.angle=0;this.alignment=Fr;this.nodeIndentPastParent=this.nodeIndent=0;this.nodeSpacing=20;this.layerSpacing=50;this.layerSpacingParentOverlap=0;this.compaction=Or;this.breadthLimit= 0;this.rowSpacing=25;this.commentSpacing=this.rowIndent=10;this.commentMargin=20;this.setsPortSpot=!0;this.portSpot=jc;this.setsChildPortSpot=!0;this.childPortSpot=jc}v.Ja(lr,np);v.ea("TreeVertex",lr); lr.prototype.copyInheritedPropertiesFrom=function(a){null!==a&&(this.sorting=a.sorting,this.comparer=a.comparer,this.angle=a.angle,this.alignment=a.alignment,this.nodeIndent=a.nodeIndent,this.nodeIndentPastParent=a.nodeIndentPastParent,this.nodeSpacing=a.nodeSpacing,this.layerSpacing=a.layerSpacing,this.layerSpacingParentOverlap=a.layerSpacingParentOverlap,this.compaction=a.compaction,this.breadthLimit=a.breadthLimit,this.rowSpacing=a.rowSpacing,this.rowIndent=a.rowIndent,this.commentSpacing=a.commentSpacing, -this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};v.u(lr,{Jm:"childrenCount"},function(){return this.children.length});v.defineProperty(lr,{qL:"relativePosition"},function(){return this.na},function(a){this.na.set(a)});v.defineProperty(lr,{CL:"subtreeSize"},function(){return this.hb},function(a){this.hb.set(a)}); +this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};v.u(lr,{Km:"childrenCount"},function(){return this.children.length});v.defineProperty(lr,{qL:"relativePosition"},function(){return this.na},function(a){this.na.set(a)});v.defineProperty(lr,{CL:"subtreeSize"},function(){return this.hb},function(a){this.hb.set(a)}); v.defineProperty(lr,{BL:"subtreeOffset"},function(){return this.Ma},function(a){this.Ma.set(a)});function rs(){op.call(this);this.Rr=new w(0,0)}v.Ja(rs,op);v.ea("TreeEdge",rs); -rs.prototype.commit=function(){var a=this.link;if(null!==a&&!a.vl){var b=this.network.Qb,c=null,d=null;switch(b.Df){case hr:c=this.fromVertex;d=this.toVertex;break;case or:c=this.toVertex;d=this.fromVertex;break;default:v.k("Unhandled path value "+b.Df.toString())}if(null!==c&&null!==d)if(b=this.Rr,0!==b.x||0!==b.y||c.dJ){var d=c.rb,e=Pr(c),f=Sr(c),h=c.rowSpacing;a.mn();var k=a.Le===ph,l=a.kc,m=0,n,p;a.Il();if(l||k){for(m=2;4q.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-Tr(c))))):c.alignment===Qr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-Tr(c))))):c.alignment===Qr?(r=d.left+b.x,0===b.x&&n.xq.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-Tr(c))))):c.alignment===Qr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-Tr(c))))):c.alignment===Qr?(r=d.left+b.x,0===b.x&&n.x + HTML DOM Tree diff --git a/samples/IVRtree.html b/samples/IVRtree.html index b926aa3b9..1cf53e1b2 100644 --- a/samples/IVRtree.html +++ b/samples/IVRtree.html @@ -1,4 +1,4 @@ - + Interactive Voice Response Tree diff --git a/samples/PERT.html b/samples/PERT.html index d351f21af..d882cafaa 100644 --- a/samples/PERT.html +++ b/samples/PERT.html @@ -1,4 +1,4 @@ - + PERT chart diff --git a/samples/absolute.html b/samples/absolute.html index 5c366aeb3..d91f27d42 100644 --- a/samples/absolute.html +++ b/samples/absolute.html @@ -1,4 +1,4 @@ - + Absolute positioning within the viewport diff --git a/samples/addRemoveColumns.html b/samples/addRemoveColumns.html index a0c638009..ee3d80c38 100644 --- a/samples/addRemoveColumns.html +++ b/samples/addRemoveColumns.html @@ -1,4 +1,4 @@ - + Add or Remove Columns diff --git a/samples/adornmentButtons.html b/samples/adornmentButtons.html index e7c87ab8d..387bc4715 100644 --- a/samples/adornmentButtons.html +++ b/samples/adornmentButtons.html @@ -1,4 +1,4 @@ - + Selection Adornment Buttons diff --git a/samples/angular.html b/samples/angular.html index 89cf23761..cd4803c9a 100644 --- a/samples/angular.html +++ b/samples/angular.html @@ -1,4 +1,4 @@ - + Minimal GoJS Sample with AngularJS diff --git a/samples/arrowheads.html b/samples/arrowheads.html index c7633089d..8f80bc881 100644 --- a/samples/arrowheads.html +++ b/samples/arrowheads.html @@ -1,4 +1,4 @@ - + GoJS Arrowheads diff --git a/samples/barCharts.html b/samples/barCharts.html index 615fbd05f..1b59a1212 100644 --- a/samples/barCharts.html +++ b/samples/barCharts.html @@ -1,4 +1,4 @@ - + Bar Charts diff --git a/samples/basic.html b/samples/basic.html index 1d6d6d2c2..dc2f126b5 100644 --- a/samples/basic.html +++ b/samples/basic.html @@ -1,4 +1,4 @@ - + Basic GoJS Sample diff --git a/samples/beatPaths.html b/samples/beatPaths.html index 69742b649..884692feb 100644 --- a/samples/beatPaths.html +++ b/samples/beatPaths.html @@ -1,4 +1,4 @@ - + Beat Paths diff --git a/samples/cLayout.html b/samples/cLayout.html index 1dc7f75d8..fb52a12b8 100644 --- a/samples/cLayout.html +++ b/samples/cLayout.html @@ -1,4 +1,4 @@ - + Circular Layout diff --git a/samples/candlestickCharts.html b/samples/candlestickCharts.html index 7dd8f448f..ba0dd6cc2 100644 --- a/samples/candlestickCharts.html +++ b/samples/candlestickCharts.html @@ -1,4 +1,4 @@ - + Candlestick or Range Charts diff --git a/samples/canvases.html b/samples/canvases.html index 2634a611d..743d6c0e6 100644 --- a/samples/canvases.html +++ b/samples/canvases.html @@ -1,4 +1,4 @@ - + Canvases diff --git a/samples/classHierarchy.html b/samples/classHierarchy.html index 6a5a51d8f..1b298a5cf 100644 --- a/samples/classHierarchy.html +++ b/samples/classHierarchy.html @@ -1,4 +1,4 @@ - + GoJS Class Hierarchy diff --git a/samples/comments.html b/samples/comments.html index ebc960766..71fb69f60 100644 --- a/samples/comments.html +++ b/samples/comments.html @@ -1,4 +1,4 @@ - + Comments diff --git a/samples/conceptMap.html b/samples/conceptMap.html index 1fbae1a8c..0b8866372 100644 --- a/samples/conceptMap.html +++ b/samples/conceptMap.html @@ -1,4 +1,4 @@ - + Concept Map diff --git a/samples/constantSize.html b/samples/constantSize.html index 113861785..cf3eda005 100644 --- a/samples/constantSize.html +++ b/samples/constantSize.html @@ -1,4 +1,4 @@ - + Kitten Monitor diff --git a/samples/contentAlign.html b/samples/contentAlign.html index 0480ca0fa..6c062c324 100644 --- a/samples/contentAlign.html +++ b/samples/contentAlign.html @@ -1,4 +1,4 @@ - + Content Alignment examples diff --git a/samples/curviness.html b/samples/curviness.html index 9889cf3d7..85ce2ba48 100644 --- a/samples/curviness.html +++ b/samples/curviness.html @@ -1,4 +1,4 @@ - + Curviness diff --git a/samples/customContextMenu.html b/samples/customContextMenu.html index b2f12578a..8c983a0ae 100644 --- a/samples/customContextMenu.html +++ b/samples/customContextMenu.html @@ -1,4 +1,4 @@ - + HTML Context Menu diff --git a/samples/customTextEditingTool.html b/samples/customTextEditingTool.html index 758de738a..d80f86b1e 100644 --- a/samples/customTextEditingTool.html +++ b/samples/customTextEditingTool.html @@ -1,4 +1,4 @@ - + Text Editing Examples diff --git a/samples/dataFlow.html b/samples/dataFlow.html index c6aefa586..4629c5141 100644 --- a/samples/dataFlow.html +++ b/samples/dataFlow.html @@ -1,4 +1,4 @@ - + Data Flow Diagram diff --git a/samples/dataFlowVertical.html b/samples/dataFlowVertical.html index e11dc8ed0..9de2db217 100644 --- a/samples/dataFlowVertical.html +++ b/samples/dataFlowVertical.html @@ -1,4 +1,4 @@ - + Data Flow Diagram diff --git a/samples/dataVisualization.html b/samples/dataVisualization.html index 269020c0d..27e962ae9 100644 --- a/samples/dataVisualization.html +++ b/samples/dataVisualization.html @@ -1,4 +1,4 @@ - + Data Visualization GoJS Sample diff --git a/samples/decisionTree.html b/samples/decisionTree.html index c9c09cd39..5a82acd42 100644 --- a/samples/decisionTree.html +++ b/samples/decisionTree.html @@ -1,4 +1,4 @@ - + Decision Tree diff --git a/samples/distances.html b/samples/distances.html index 1665fee8a..998d11067 100644 --- a/samples/distances.html +++ b/samples/distances.html @@ -1,4 +1,4 @@ - + Graph Distances and Paths diff --git a/samples/doubleCircle.html b/samples/doubleCircle.html index 22184dcba..69ad37956 100644 --- a/samples/doubleCircle.html +++ b/samples/doubleCircle.html @@ -1,4 +1,4 @@ - + Double Circle diff --git a/samples/doubleTree.html b/samples/doubleTree.html index 57d99b4af..6b3dce95c 100644 --- a/samples/doubleTree.html +++ b/samples/doubleTree.html @@ -1,4 +1,4 @@ - + Double Tree diff --git a/samples/doubleTreeJSON.html b/samples/doubleTreeJSON.html index d19477359..292fd6911 100644 --- a/samples/doubleTreeJSON.html +++ b/samples/doubleTreeJSON.html @@ -1,4 +1,4 @@ - + Double Tree diff --git a/samples/dragDropFields.html b/samples/dragDropFields.html index f870b07c7..13f3a8fa3 100644 --- a/samples/dragDropFields.html +++ b/samples/dragDropFields.html @@ -1,4 +1,4 @@ - + Dragging Fields Between Records diff --git a/samples/dragOutFields.html b/samples/dragOutFields.html index 9d978e650..3fb060cc4 100644 --- a/samples/dragOutFields.html +++ b/samples/dragOutFields.html @@ -1,4 +1,4 @@ - + Dragging a Field from a Record onto an HTML Element diff --git a/samples/dragUnoccupied.html b/samples/dragUnoccupied.html index f1c8f0e18..cd3256fba 100644 --- a/samples/dragUnoccupied.html +++ b/samples/dragUnoccupied.html @@ -1,4 +1,4 @@ - + Drag Unoccupied diff --git a/samples/draggableLink.html b/samples/draggableLink.html index d4ba42f9d..9ed64d80f 100644 --- a/samples/draggableLink.html +++ b/samples/draggableLink.html @@ -1,4 +1,4 @@ - + Draggable Link diff --git a/samples/draggablePorts.html b/samples/draggablePorts.html index d5ddceda4..c2f7f977d 100644 --- a/samples/draggablePorts.html +++ b/samples/draggablePorts.html @@ -1,4 +1,4 @@ - + Movable, Copyable, Deletable Ports diff --git a/samples/dynamicPorts.html b/samples/dynamicPorts.html index fcd0238a9..8667d7a56 100644 --- a/samples/dynamicPorts.html +++ b/samples/dynamicPorts.html @@ -1,4 +1,4 @@ - + Dynamic Ports diff --git a/samples/entityRelationship.html b/samples/entityRelationship.html index a0617a024..3b8b2c497 100644 --- a/samples/entityRelationship.html +++ b/samples/entityRelationship.html @@ -1,4 +1,4 @@ - + Entity Relationship diff --git a/samples/euler.html b/samples/euler.html index 1fef566de..b72a10370 100644 --- a/samples/euler.html +++ b/samples/euler.html @@ -1,4 +1,4 @@ - + Euler Diagram diff --git a/samples/familyTree.html b/samples/familyTree.html index cddc6ff0b..46293250f 100644 --- a/samples/familyTree.html +++ b/samples/familyTree.html @@ -1,4 +1,4 @@ - + Family Tree (British) diff --git a/samples/familyTreeJP.html b/samples/familyTreeJP.html index dc2613374..fb8e4a4a7 100644 --- a/samples/familyTreeJP.html +++ b/samples/familyTreeJP.html @@ -1,4 +1,4 @@ - + Family Tree (Japanese) diff --git a/samples/faultTree.html b/samples/faultTree.html index a57d5fc9c..4512cc27c 100644 --- a/samples/faultTree.html +++ b/samples/faultTree.html @@ -1,4 +1,4 @@ - + Fault Tree diff --git a/samples/fdLayout.html b/samples/fdLayout.html index 89793c032..48a21e615 100644 --- a/samples/fdLayout.html +++ b/samples/fdLayout.html @@ -1,4 +1,4 @@ - + Force Directed Layout diff --git a/samples/flowBuilder.html b/samples/flowBuilder.html index 5c23860c9..6e9321e10 100644 --- a/samples/flowBuilder.html +++ b/samples/flowBuilder.html @@ -1,4 +1,4 @@ - + Flow Builder diff --git a/samples/flowchart.html b/samples/flowchart.html index b5da39a57..18b29fb87 100644 --- a/samples/flowchart.html +++ b/samples/flowchart.html @@ -1,4 +1,4 @@ - + Flowchart diff --git a/samples/flowgrammer.html b/samples/flowgrammer.html index c220a4435..816dc8362 100644 --- a/samples/flowgrammer.html +++ b/samples/flowgrammer.html @@ -1,4 +1,4 @@ - + Flowgrammer diff --git a/samples/friendWheel.html b/samples/friendWheel.html index 4d6c25558..f0f1028e2 100644 --- a/samples/friendWheel.html +++ b/samples/friendWheel.html @@ -1,4 +1,4 @@ - + Friend Wheel diff --git a/samples/gLayout.html b/samples/gLayout.html index c4766ce82..b15ac058b 100644 --- a/samples/gLayout.html +++ b/samples/gLayout.html @@ -1,4 +1,4 @@ - + Grid Layout diff --git a/samples/gantt.html b/samples/gantt.html index 0517dd283..863a1b682 100644 --- a/samples/gantt.html +++ b/samples/gantt.html @@ -1,4 +1,4 @@ - + Gantt chart diff --git a/samples/genogram.html b/samples/genogram.html index ff68e88ff..935d1fbe2 100644 --- a/samples/genogram.html +++ b/samples/genogram.html @@ -1,4 +1,4 @@ - + Genogram diff --git a/samples/grafcet.html b/samples/grafcet.html index bcf7f5de6..76fdc1cba 100644 --- a/samples/grafcet.html +++ b/samples/grafcet.html @@ -1,4 +1,4 @@ - + Grafcet Diagrams diff --git a/samples/grouping.html b/samples/grouping.html index a219315d6..097ed58ec 100644 --- a/samples/grouping.html +++ b/samples/grouping.html @@ -1,4 +1,4 @@ - + Grouping diff --git a/samples/hoverButtons.html b/samples/hoverButtons.html index 779dd6d22..5ebe3acc7 100644 --- a/samples/hoverButtons.html +++ b/samples/hoverButtons.html @@ -1,4 +1,4 @@ - + Buttons that show on Hover diff --git a/samples/htmlDragDrop.html b/samples/htmlDragDrop.html index 85d737be7..e05f94783 100644 --- a/samples/htmlDragDrop.html +++ b/samples/htmlDragDrop.html @@ -1,4 +1,4 @@ - + diff --git a/samples/htmlInteraction.html b/samples/htmlInteraction.html index 3287ce358..07e358aef 100644 --- a/samples/htmlInteraction.html +++ b/samples/htmlInteraction.html @@ -1,4 +1,4 @@ - + HTML Interaction diff --git a/samples/htmlLightBoxContextMenu.html b/samples/htmlLightBoxContextMenu.html index 25c3233ef..7aff5226f 100644 --- a/samples/htmlLightBoxContextMenu.html +++ b/samples/htmlLightBoxContextMenu.html @@ -1,4 +1,4 @@ - + LightBox Style HTML Custom Context Menu diff --git a/samples/icons.html b/samples/icons.html index 8d179ed6d..1c8b6a573 100644 --- a/samples/icons.html +++ b/samples/icons.html @@ -1,4 +1,4 @@ - + Icons GoJS Sample diff --git a/samples/incrementalTree.html b/samples/incrementalTree.html index 3b25f35b8..116973cc2 100644 --- a/samples/incrementalTree.html +++ b/samples/incrementalTree.html @@ -1,4 +1,4 @@ - + Incremental Tree diff --git a/samples/index.html b/samples/index.html index 916e363b0..fab200dd7 100644 --- a/samples/index.html +++ b/samples/index.html @@ -1,4 +1,4 @@ - + diff --git a/samples/interactiveForce.html b/samples/interactiveForce.html index 52a8d4279..9bc4c067e 100644 --- a/samples/interactiveForce.html +++ b/samples/interactiveForce.html @@ -1,4 +1,4 @@ - + Interactive Force Directed Layout diff --git a/samples/jQueryDragDrop.html b/samples/jQueryDragDrop.html index 2cd330ba7..38c01a20b 100644 --- a/samples/jQueryDragDrop.html +++ b/samples/jQueryDragDrop.html @@ -1,4 +1,4 @@ - + HTML Drag and Drop diff --git a/samples/kanban.html b/samples/kanban.html index aada2262d..fa18212a4 100644 --- a/samples/kanban.html +++ b/samples/kanban.html @@ -1,4 +1,4 @@ - + Kanban Board diff --git a/samples/kittenMonitor.html b/samples/kittenMonitor.html index 8827a3a68..d4c3a062b 100644 --- a/samples/kittenMonitor.html +++ b/samples/kittenMonitor.html @@ -1,4 +1,4 @@ - + Kitten Monitor diff --git a/samples/ldLayout.html b/samples/ldLayout.html index d73f585b0..a77c32509 100644 --- a/samples/ldLayout.html +++ b/samples/ldLayout.html @@ -1,4 +1,4 @@ - + Layered Digraph Layout diff --git a/samples/leaflet.html b/samples/leaflet.html index 12634d6cb..3f5a3548d 100644 --- a/samples/leaflet.html +++ b/samples/leaflet.html @@ -1,4 +1,4 @@ - + Leaflet.js and GoJS diff --git a/samples/linksToLinks.html b/samples/linksToLinks.html index 107be79cf..36423e189 100644 --- a/samples/linksToLinks.html +++ b/samples/linksToLinks.html @@ -1,4 +1,4 @@ - + Links to Links diff --git a/samples/localView.html b/samples/localView.html index 54dfb27f0..ea0fa94a6 100644 --- a/samples/localView.html +++ b/samples/localView.html @@ -1,4 +1,4 @@ - + Local View diff --git a/samples/logicCircuit.html b/samples/logicCircuit.html index 88753aee8..9c501fd70 100644 --- a/samples/logicCircuit.html +++ b/samples/logicCircuit.html @@ -1,4 +1,4 @@ - + Logic Circuit diff --git a/samples/macros.html b/samples/macros.html index 7f315209c..23c407d39 100644 --- a/samples/macros.html +++ b/samples/macros.html @@ -1,4 +1,4 @@ - + Graphical Macros via Auto Ungrouping diff --git a/samples/magnifier.html b/samples/magnifier.html index 9648eac0b..5c3ed2711 100644 --- a/samples/magnifier.html +++ b/samples/magnifier.html @@ -1,4 +1,4 @@ - + Magnifier diff --git a/samples/mindMap.html b/samples/mindMap.html index 0f5a6ed8a..153f2c676 100644 --- a/samples/mindMap.html +++ b/samples/mindMap.html @@ -1,4 +1,4 @@ - + Mind Map diff --git a/samples/minimal.html b/samples/minimal.html index 9768252f2..d94d1a35f 100644 --- a/samples/minimal.html +++ b/samples/minimal.html @@ -1,4 +1,4 @@ - + Minimal GoJS Sample diff --git a/samples/minimalJSON.html b/samples/minimalJSON.html index 7cd7b9b95..dbb0b72f9 100644 --- a/samples/minimalJSON.html +++ b/samples/minimalJSON.html @@ -1,4 +1,4 @@ - + Minimal GoJS Sample diff --git a/samples/minimalXML.html b/samples/minimalXML.html index 96d8487e8..a0cdb8516 100644 --- a/samples/minimalXML.html +++ b/samples/minimalXML.html @@ -1,4 +1,4 @@ - + Minimal XML GoJS Sample diff --git a/samples/multiArrow.html b/samples/multiArrow.html index fa77e45e2..3db6ab51f 100644 --- a/samples/multiArrow.html +++ b/samples/multiArrow.html @@ -1,4 +1,4 @@ - + Multi-Arrow Links diff --git a/samples/multiNodePathLinks.html b/samples/multiNodePathLinks.html index 7b7e897e3..8f76a5043 100644 --- a/samples/multiNodePathLinks.html +++ b/samples/multiNodePathLinks.html @@ -1,4 +1,4 @@ - + Multi-Node Path Links diff --git a/samples/navigation.html b/samples/navigation.html index fc7bb90b4..044b2d171 100644 --- a/samples/navigation.html +++ b/samples/navigation.html @@ -1,4 +1,4 @@ - + Navigation of Graphs diff --git a/samples/network.html b/samples/network.html index 02890fb4e..c916c45bd 100644 --- a/samples/network.html +++ b/samples/network.html @@ -1,4 +1,4 @@ - + Network Configuration diff --git a/samples/orgChartEditor.html b/samples/orgChartEditor.html index 63c18f085..02e3bff84 100644 --- a/samples/orgChartEditor.html +++ b/samples/orgChartEditor.html @@ -1,4 +1,4 @@ - + Org Chart Editor diff --git a/samples/orgChartExtras.html b/samples/orgChartExtras.html index d706e7f44..7f6dc7d6c 100644 --- a/samples/orgChartExtras.html +++ b/samples/orgChartExtras.html @@ -1,4 +1,4 @@ - + Org Chart Extras diff --git a/samples/orgChartStatic.html b/samples/orgChartStatic.html index bac8dd270..a40b00c23 100644 --- a/samples/orgChartStatic.html +++ b/samples/orgChartStatic.html @@ -1,4 +1,4 @@ - + Org Chart Static diff --git a/samples/pageFlow.html b/samples/pageFlow.html index 49d24f3b4..764094b77 100644 --- a/samples/pageFlow.html +++ b/samples/pageFlow.html @@ -1,4 +1,4 @@ - + Page Flow diff --git a/samples/parseTree.html b/samples/parseTree.html index f57e46133..28bcefadf 100644 --- a/samples/parseTree.html +++ b/samples/parseTree.html @@ -1,4 +1,4 @@ - + Parse Tree diff --git a/samples/pathAnimation.html b/samples/pathAnimation.html index 3a634f048..35e243408 100644 --- a/samples/pathAnimation.html +++ b/samples/pathAnimation.html @@ -1,4 +1,4 @@ - + Concept Map with animation along paths diff --git a/samples/pieCharts.html b/samples/pieCharts.html index a18fe3c79..f73f6a06b 100644 --- a/samples/pieCharts.html +++ b/samples/pieCharts.html @@ -1,4 +1,4 @@ - + Pie Charts diff --git a/samples/pipeTree.html b/samples/pipeTree.html index c23d5fffa..205998891 100644 --- a/samples/pipeTree.html +++ b/samples/pipeTree.html @@ -1,4 +1,4 @@ - + Pipe Tree diff --git a/samples/pipes.html b/samples/pipes.html index 998f474b0..070f3f68a 100644 --- a/samples/pipes.html +++ b/samples/pipes.html @@ -1,4 +1,4 @@ - + Pipes diff --git a/samples/planogram.html b/samples/planogram.html index b45478c3c..45a884b6d 100644 --- a/samples/planogram.html +++ b/samples/planogram.html @@ -1,4 +1,4 @@ - + Planogram diff --git a/samples/processFlow.html b/samples/processFlow.html index a7ca0ba23..080ea9fe5 100644 --- a/samples/processFlow.html +++ b/samples/processFlow.html @@ -1,4 +1,4 @@ - + Process Flow diff --git a/samples/productionProcess.html b/samples/productionProcess.html index b2b16b34d..a2fba09a8 100644 --- a/samples/productionProcess.html +++ b/samples/productionProcess.html @@ -1,4 +1,4 @@ - + Production Process GoJS Sample diff --git a/samples/radial.html b/samples/radial.html index dd331dca0..24242fd56 100644 --- a/samples/radial.html +++ b/samples/radial.html @@ -1,4 +1,4 @@ - + Radial Layout diff --git a/samples/radialPartition.html b/samples/radialPartition.html index 43ba2fe02..ec23e180d 100644 --- a/samples/radialPartition.html +++ b/samples/radialPartition.html @@ -1,4 +1,4 @@ - + Radial Partition Layout diff --git a/samples/records.html b/samples/records.html index e2d8e552b..441693583 100644 --- a/samples/records.html +++ b/samples/records.html @@ -1,4 +1,4 @@ - + Mapping Fields of Records diff --git a/samples/regrouping.html b/samples/regrouping.html index 183d46045..ec91c1053 100644 --- a/samples/regrouping.html +++ b/samples/regrouping.html @@ -1,4 +1,4 @@ - + Regrouping Demo diff --git a/samples/regroupingScaled.html b/samples/regroupingScaled.html index 8541deace..f54662c95 100644 --- a/samples/regroupingScaled.html +++ b/samples/regroupingScaled.html @@ -1,4 +1,4 @@ - + Regrouping Demo with shrinking members diff --git a/samples/regroupingTreeView.html b/samples/regroupingTreeView.html index 110a36578..2610bc2fb 100644 --- a/samples/regroupingTreeView.html +++ b/samples/regroupingTreeView.html @@ -1,4 +1,4 @@ - + Regrouping Demo with Tree View diff --git a/samples/relationships.html b/samples/relationships.html index 60fc06727..4bf9b86ad 100644 --- a/samples/relationships.html +++ b/samples/relationships.html @@ -1,4 +1,4 @@ - + Custom Relationships diff --git a/samples/sankey.html b/samples/sankey.html index 163f7090e..ff5a89697 100644 --- a/samples/sankey.html +++ b/samples/sankey.html @@ -1,4 +1,4 @@ - + Sankey Diagram diff --git a/samples/scrollModes.html b/samples/scrollModes.html index 0ceb1637d..ab56ca424 100644 --- a/samples/scrollModes.html +++ b/samples/scrollModes.html @@ -1,4 +1,4 @@ - + Scroll Modes GoJS Sample diff --git a/samples/seatingChart.html b/samples/seatingChart.html index ca69ee8e0..557991747 100644 --- a/samples/seatingChart.html +++ b/samples/seatingChart.html @@ -1,4 +1,4 @@ - + Seating Chart diff --git a/samples/selectableFields.html b/samples/selectableFields.html index 36cbc949b..9ae2433f3 100644 --- a/samples/selectableFields.html +++ b/samples/selectableFields.html @@ -1,4 +1,4 @@ - + Mapping Selectable Fields of Records diff --git a/samples/selectablePorts.html b/samples/selectablePorts.html index 438192c18..ed4943d6b 100644 --- a/samples/selectablePorts.html +++ b/samples/selectablePorts.html @@ -1,4 +1,4 @@ - + Selectable Ports diff --git a/samples/sequenceDiagram.html b/samples/sequenceDiagram.html index 7bb04fcf0..c2b0afbdc 100644 --- a/samples/sequenceDiagram.html +++ b/samples/sequenceDiagram.html @@ -1,4 +1,4 @@ - + Sequence Diagram diff --git a/samples/sequentialFunction.html b/samples/sequentialFunction.html index 847647a7f..6109e3c2c 100644 --- a/samples/sequentialFunction.html +++ b/samples/sequentialFunction.html @@ -1,4 +1,4 @@ - + Sequential Function Chart diff --git a/samples/shapes.html b/samples/shapes.html index b6aaa2ed3..60c7475cb 100644 --- a/samples/shapes.html +++ b/samples/shapes.html @@ -1,4 +1,4 @@ - + GoJS Shapes diff --git a/samples/sharedStates.html b/samples/sharedStates.html index 47ca29af0..cc898c02a 100644 --- a/samples/sharedStates.html +++ b/samples/sharedStates.html @@ -1,4 +1,4 @@ - + Shared States diff --git a/samples/shopFloorMonitor.html b/samples/shopFloorMonitor.html index 09b07e989..029ad4efd 100644 --- a/samples/shopFloorMonitor.html +++ b/samples/shopFloorMonitor.html @@ -1,4 +1,4 @@ - + Shop Floor Monitor diff --git a/samples/spacingZoom.html b/samples/spacingZoom.html index 8f73caa3f..e09608fdf 100644 --- a/samples/spacingZoom.html +++ b/samples/spacingZoom.html @@ -1,4 +1,4 @@ - + Spacing rather than Scaling when Zooming diff --git a/samples/sparklineGraphs.html b/samples/sparklineGraphs.html index e994faea7..548f1cad3 100644 --- a/samples/sparklineGraphs.html +++ b/samples/sparklineGraphs.html @@ -1,4 +1,4 @@ - + Sparkline Charts diff --git a/samples/spreadsheet.html b/samples/spreadsheet.html index a8178bb99..db09d633c 100644 --- a/samples/spreadsheet.html +++ b/samples/spreadsheet.html @@ -1,4 +1,4 @@ - + GoJS Spreadsheet diff --git a/samples/stateChart.html b/samples/stateChart.html index 31119a02e..076e8de6d 100644 --- a/samples/stateChart.html +++ b/samples/stateChart.html @@ -1,4 +1,4 @@ - + State Chart diff --git a/samples/stateChartIncremental.html b/samples/stateChartIncremental.html index 829df31cb..2c741b58f 100644 --- a/samples/stateChartIncremental.html +++ b/samples/stateChartIncremental.html @@ -1,4 +1,4 @@ - + State Chart With Incremental Saves diff --git a/samples/swimBands.html b/samples/swimBands.html index fb7cda46b..c6e92ae34 100644 --- a/samples/swimBands.html +++ b/samples/swimBands.html @@ -1,4 +1,4 @@ - + Layer Bands using a Background Part diff --git a/samples/swimLanesVertical.html b/samples/swimLanesVertical.html index 729be0e3c..1d8dfafd8 100644 --- a/samples/swimLanesVertical.html +++ b/samples/swimLanesVertical.html @@ -1,4 +1,4 @@ - + Swim Lanes (vertical) diff --git a/samples/swimlanes.html b/samples/swimlanes.html index 6a58d8736..b036743ee 100644 --- a/samples/swimlanes.html +++ b/samples/swimlanes.html @@ -1,4 +1,4 @@ - + Swim Lanes diff --git a/samples/systemDynamics.html b/samples/systemDynamics.html index a40e39822..cc4fd0d15 100644 --- a/samples/systemDynamics.html +++ b/samples/systemDynamics.html @@ -1,4 +1,4 @@ - + Minimal System Dynamics diagramming in GoJS diff --git a/samples/tLayout.html b/samples/tLayout.html index b7a173cc1..94ba7b8a8 100644 --- a/samples/tLayout.html +++ b/samples/tLayout.html @@ -1,4 +1,4 @@ - + Tree Layout diff --git a/samples/tabs.html b/samples/tabs.html index febc120c4..6958a2a29 100644 --- a/samples/tabs.html +++ b/samples/tabs.html @@ -1,4 +1,4 @@ - + A GoJS Diagram in a jQuery UI Tab diff --git a/samples/taperedLinks.html b/samples/taperedLinks.html index 18a7b9fc5..0180faa09 100644 --- a/samples/taperedLinks.html +++ b/samples/taperedLinks.html @@ -1,4 +1,4 @@ - + Tapered Links diff --git a/samples/tiger.html b/samples/tiger.html index 254ebf79d..089a245d7 100644 --- a/samples/tiger.html +++ b/samples/tiger.html @@ -1,4 +1,4 @@ - + SVG Tiger Drawing in GoJS diff --git a/samples/timeline.html b/samples/timeline.html index 4efacb28d..2017cf0c6 100644 --- a/samples/timeline.html +++ b/samples/timeline.html @@ -1,4 +1,4 @@ - + Timeline Sample diff --git a/samples/tournament.html b/samples/tournament.html index 383593211..dd868a3a2 100644 --- a/samples/tournament.html +++ b/samples/tournament.html @@ -1,4 +1,4 @@ - + Tournament diff --git a/samples/treeMapper.html b/samples/treeMapper.html index 9d7d38f1d..7122ac43c 100644 --- a/samples/treeMapper.html +++ b/samples/treeMapper.html @@ -1,4 +1,4 @@ - + GoJS Tree Mapper diff --git a/samples/treeView.html b/samples/treeView.html index 0ef716ee5..a197fb4dd 100644 --- a/samples/treeView.html +++ b/samples/treeView.html @@ -1,4 +1,4 @@ - + GoJS Tree View diff --git a/samples/twoDiagrams.html b/samples/twoDiagrams.html index 450cb2b39..fe21e830f 100644 --- a/samples/twoDiagrams.html +++ b/samples/twoDiagrams.html @@ -1,4 +1,4 @@ - + Two Diagrams diff --git a/samples/umlClass.html b/samples/umlClass.html index 53e5b0f0d..d100773f4 100644 --- a/samples/umlClass.html +++ b/samples/umlClass.html @@ -1,4 +1,4 @@ - + UML Class Nodes diff --git a/samples/unlisted.html b/samples/unlisted.html index 36dabff77..6c6bca89a 100644 --- a/samples/unlisted.html +++ b/samples/unlisted.html @@ -1,4 +1,4 @@ - + Unlisted Samples diff --git a/samples/updateDemo.html b/samples/updateDemo.html index 7e50c74c4..4e91caa90 100644 --- a/samples/updateDemo.html +++ b/samples/updateDemo.html @@ -1,4 +1,4 @@ - + Update Demo GoJS Sample diff --git a/samples/virtualized.html b/samples/virtualized.html index 2c58c2888..38a1c624b 100644 --- a/samples/virtualized.html +++ b/samples/virtualized.html @@ -1,4 +1,4 @@ - + Virtualized Sample with no Layout diff --git a/samples/virtualizedForceLayout.html b/samples/virtualizedForceLayout.html index c72388f22..7af30d0e4 100644 --- a/samples/virtualizedForceLayout.html +++ b/samples/virtualizedForceLayout.html @@ -1,4 +1,4 @@ - + Virtualized Graph with ForceDirectedLayout diff --git a/samples/virtualizedTree.html b/samples/virtualizedTree.html index 156d2f578..19fe58cc5 100644 --- a/samples/virtualizedTree.html +++ b/samples/virtualizedTree.html @@ -1,4 +1,4 @@ - + Virtualized Tree with custom layout diff --git a/samples/virtualizedTreeLayout.html b/samples/virtualizedTreeLayout.html index 58b77fc2d..249ea8e8f 100644 --- a/samples/virtualizedTreeLayout.html +++ b/samples/virtualizedTreeLayout.html @@ -1,4 +1,4 @@ - + Virtualized Tree with TreeLayout diff --git a/samples/visualTree.html b/samples/visualTree.html index e06c9835a..eda385110 100644 --- a/samples/visualTree.html +++ b/samples/visualTree.html @@ -1,4 +1,4 @@ - + GoJS Visual Tree diff --git a/samples/visualTreeGrouping.html b/samples/visualTreeGrouping.html index 79db1bab0..7f19ae778 100644 --- a/samples/visualTreeGrouping.html +++ b/samples/visualTreeGrouping.html @@ -1,4 +1,4 @@ - + GoJS Visual Tree Using Nested Groups