From 740dcafbba941114159e0a4be0102ef8e890b681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Gonz=C3=A1lez=20Santamarta?= Date: Fri, 9 Aug 2024 15:27:49 +0200 Subject: [PATCH] current_hidden_fsm fixed in viewer --- .../build/asset-manifest.json | 6 +++--- .../yasmin_viewer_web_client/build/index.html | 2 +- .../js/{main.259d4f59.js => main.713a3c3e.js} | 6 +++--- ...js.LICENSE.txt => main.713a3c3e.js.LICENSE.txt} | 0 .../{main.259d4f59.js.map => main.713a3c3e.js.map} | 2 +- .../yasmin_viewer_web_client/src/components/FSM.js | 14 +++++++++++++- 6 files changed, 21 insertions(+), 9 deletions(-) rename yasmin_viewer/yasmin_viewer_web_client/build/static/js/{main.259d4f59.js => main.713a3c3e.js} (86%) rename yasmin_viewer/yasmin_viewer_web_client/build/static/js/{main.259d4f59.js.LICENSE.txt => main.713a3c3e.js.LICENSE.txt} (100%) rename yasmin_viewer/yasmin_viewer_web_client/build/static/js/{main.259d4f59.js.map => main.713a3c3e.js.map} (55%) diff --git a/yasmin_viewer/yasmin_viewer_web_client/build/asset-manifest.json b/yasmin_viewer/yasmin_viewer_web_client/build/asset-manifest.json index d0f1c22..6caf041 100644 --- a/yasmin_viewer/yasmin_viewer_web_client/build/asset-manifest.json +++ b/yasmin_viewer/yasmin_viewer_web_client/build/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/static/css/main.073c9b0a.css", - "main.js": "/static/js/main.259d4f59.js", + "main.js": "/static/js/main.713a3c3e.js", "static/js/787.d1eb2cfc.chunk.js": "/static/js/787.d1eb2cfc.chunk.js", "index.html": "/index.html", "main.073c9b0a.css.map": "/static/css/main.073c9b0a.css.map", - "main.259d4f59.js.map": "/static/js/main.259d4f59.js.map", + "main.713a3c3e.js.map": "/static/js/main.713a3c3e.js.map", "787.d1eb2cfc.chunk.js.map": "/static/js/787.d1eb2cfc.chunk.js.map" }, "entrypoints": [ "static/css/main.073c9b0a.css", - "static/js/main.259d4f59.js" + "static/js/main.713a3c3e.js" ] } \ No newline at end of file diff --git a/yasmin_viewer/yasmin_viewer_web_client/build/index.html b/yasmin_viewer/yasmin_viewer_web_client/build/index.html index 55fccee..a5d5792 100644 --- a/yasmin_viewer/yasmin_viewer_web_client/build/index.html +++ b/yasmin_viewer/yasmin_viewer_web_client/build/index.html @@ -1 +1 @@ -YASMIN Viewer
\ No newline at end of file +YASMIN Viewer
\ No newline at end of file diff --git a/yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.259d4f59.js b/yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.713a3c3e.js similarity index 86% rename from yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.259d4f59.js rename to yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.713a3c3e.js index f4585ca..f410f88 100644 --- a/yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.259d4f59.js +++ b/yasmin_viewer/yasmin_viewer_web_client/build/static/js/main.713a3c3e.js @@ -1,3 +1,3 @@ -/*! For license information please see main.259d4f59.js.LICENSE.txt */ -!function(){var e={789:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";var r=n(4),i=n(1),a=n(2),o={addUnnecessaryBendpoints:"de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",alignment:"de.cau.cs.kieler.alignment",aspectRatio:"de.cau.cs.kieler.aspectRatio",borderSpacing:"borderSpacing",compactComponents:"de.cau.cs.kieler.klay.layered.components.compact",compactionStrategy:"de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",contentAlignment:"de.cau.cs.kieler.klay.layered.contentAlignment",crossingMinimization:"de.cau.cs.kieler.klay.layered.crossMin",cycleBreaking:"de.cau.cs.kieler.klay.layered.cycleBreaking",debugMode:"de.cau.cs.kieler.debugMode",direction:"de.cau.cs.kieler.direction",edgeLabelSideSelection:"de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",edgeRouting:"de.cau.cs.kieler.edgeRouting",edgeSpacingFactor:"de.cau.cs.kieler.klay.layered.edgeSpacingFactor",feedbackEdges:"de.cau.cs.kieler.klay.layered.feedBackEdges",fixedAlignment:"de.cau.cs.kieler.klay.layered.fixedAlignment",greedySwitchCrossingMinimization:"de.cau.cs.kieler.klay.layered.greedySwitch",hierarchyHandling:"de.cau.cs.kieler.hierarchyHandling",inLayerSpacingFactor:"de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",interactiveReferencePoint:"de.cau.cs.kieler.klay.layered.interactiveReferencePoint",layerConstraint:"de.cau.cs.kieler.klay.layered.layerConstraint",layoutHierarchy:"de.cau.cs.kieler.layoutHierarchy",linearSegmentsDeflectionDampening:"de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",mergeEdges:"de.cau.cs.kieler.klay.layered.mergeEdges",mergeHierarchyCrossingEdges:"de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",noLayout:"de.cau.cs.kieler.noLayout",nodeLabelPlacement:"de.cau.cs.kieler.nodeLabelPlacement",nodeLayering:"de.cau.cs.kieler.klay.layered.nodeLayering",nodePlacement:"de.cau.cs.kieler.klay.layered.nodePlace",portAlignment:"de.cau.cs.kieler.portAlignment",portAlignmentEastern:"de.cau.cs.kieler.portAlignment.east",portAlignmentNorth:"de.cau.cs.kieler.portAlignment.north",portAlignmentSouth:"de.cau.cs.kieler.portAlignment.south",portAlignmentWest:"de.cau.cs.kieler.portAlignment.west",portConstraints:"de.cau.cs.kieler.portConstraints",portLabelPlacement:"de.cau.cs.kieler.portLabelPlacement",portOffset:"de.cau.cs.kieler.offset",portSide:"de.cau.cs.kieler.portSide",portSpacing:"de.cau.cs.kieler.portSpacing",postCompaction:"de.cau.cs.kieler.klay.layered.postCompaction",priority:"de.cau.cs.kieler.priority",randomizationSeed:"de.cau.cs.kieler.randomSeed",routeSelfLoopInside:"de.cau.cs.kieler.selfLoopInside",separateConnectedComponents:"de.cau.cs.kieler.separateConnComp",sizeConstraint:"de.cau.cs.kieler.sizeConstraint",sizeOptions:"de.cau.cs.kieler.sizeOptions",spacing:"de.cau.cs.kieler.spacing",splineSelfLoopPlacement:"de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",thoroughness:"de.cau.cs.kieler.klay.layered.thoroughness",wideNodesOnMultipleLayers:"de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers"},c=function(e){for(var t=Object.keys(e),n={},r=0;r1?t-1:0),r=1;rt?1:0},G=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],c=r[1]&&r[2]&&r[3];if(o&&!c)return;var u=n[4];if(void 0!==u){if((u=parseFloat(u))<0||u>1)return;t.push(u)}}return t}(e)||function(e){var t,n,r,i,a,o,c,u;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var s=new RegExp("^hsl[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?)))\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(e);if(s){if((n=parseInt(s[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(s[2]))<0||r>100)return;if(r/=100,(i=parseFloat(s[3]))<0||i>100)return;if(i/=100,void 0!==(a=s[4])&&((a=parseFloat(a))<0||a>1))return;if(0===r)o=c=u=Math.round(255*i);else{var f=i<.5?i*(1+r):i+r-i*r,d=2*i-f;o=Math.round(255*l(d,f,n+1/3)),c=Math.round(255*l(d,f,n)),u=Math.round(255*l(d,f,n-1/3))}t=[o,c,u,a]}return t}(e)},Y={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},W=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:Z,r=n;!(t=e.next()).done;)r=r*J+t.value|0;return r},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z;return t*J+e|0},re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return(t<<5)+t+e|0},ie=function(e){return 2097152*e[0]+e[1]},ae=function(e,t){return[ne(e[0],t[0]),re(e[1],t[1])]},oe=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return te({next:function(){return r=0&&(e[r]!==t||(e.splice(r,1),!n));r--);},Pe=function(e){e.splice(0,e.length)},_e=function(e,t,n){return n&&(t=z(n,t)),e[t]},Te=function(e,t,n,r){n&&(t=z(n,t)),e[t]=r},Oe="undefined"!==typeof Map?Map:function(){function e(){s(this,e),this._obj={}}return d(e,[{key:"set",value:function(e,t){return this._obj[e]=t,this}},{key:"delete",value:function(e){return this._obj[e]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(e){return void 0!==this._obj[e]}},{key:"get",value:function(e){return this._obj[e]}}]),e}(),je=function(){function e(t){if(s(this,e),this._obj=Object.create(null),this.size=0,null!=t){var n;n=null!=t.instanceString&&t.instanceString()===this.instanceString()?t.toArray():t;for(var r=0;r2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&R(e)){var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new Re,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),c=e.zoom();i.position={x:(a.x-o.x)/c,y:(a.y-o.y)/c}}var u=[];E(t.classes)?u=t.classes:k(t.classes)&&(u=t.classes.split(/\s+/));for(var l=0,s=u.length;l0;){var S=m.pop(),E=b(S),P=S.id();if(d[P]=E,E!==1/0)for(var _=S.neighborhood().intersect(p),T=0;T<_.length;T++){var O=_[T],j=O.id(),R=x(S,O),M=E+R.dist;M0)for(n.unshift(t);f[i];){var a=f[i];n.unshift(a.edge),n.unshift(a.node),i=(r=a.node).id()}return c.spawn(n)}}}},De={kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=new Array(i),o=n,c=function(e){for(var t=0;t0;){if(l=b.pop(),s=l.id(),v.delete(s),k++,s===d){for(var S=[],E=i,C=d,P=y[C];S.unshift(E),null!=P&&S.unshift(P),null!=(E=m[C]);)P=y[C=E.id()];return{found:!0,distance:h[s],path:this.spawn(S),steps:k}}g[s]=!0;for(var _=l._private.edges,T=0;T<_.length;T++){var O=_[T];if(this.hasElementWithId(O.id())&&(!c||O.data("source")===s)){var j=O.source(),R=O.target(),M=j.id()!==s?j:R,I=M.id();if(this.hasElementWithId(I)&&!g[I]){var N=h[s]+u(O);x=I,v.has(x)?N_&&(h[P]=_,v[P]=C,m[P]=w),!i){var T=C*l+E;!i&&h[T]>_&&(h[T]=_,v[T]=E,m[T]=w)}}}for(var O=0;O1&&void 0!==arguments[1]?arguments[1]:a,r=m(e),i=[],o=r;;){if(null==o)return t.spawn();var u=v(o),l=u.edge,s=u.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;null!=l&&i.unshift(l),o=s}return c.spawn(i)},hasNegativeWeightCycle:p,negativeWeightCycles:g}}},Ye=Math.sqrt(2),We=function(e,t,n){0===n.length&&ve("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],i=r[1],a=r[2],o=t[i],c=t[a],u=n,l=u.length-1;l>=0;l--){var s=u[l],f=s[1],d=s[2];(t[f]===o&&t[d]===c||t[f]===c&&t[d]===o)&&u.splice(l,1)}for(var h=0;hr;){var i=Math.floor(Math.random()*t.length);t=We(i,e,t),n--}return t},Ue={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy((function(e){return e.isLoop()}));var i=n.length,a=r.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),c=Math.floor(i/Ye);if(!(i<2)){for(var u=[],l=0;l0?1:e<0?-1:0},et=function(e,t){return Math.sqrt(tt(e,t))},tt=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},nt=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},ct=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},lt=function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)t=n=r=i=a[0];else if(2===a.length)t=r=a[0],i=n=a[1];else if(4===a.length){var o=p(a,4);t=o[0],n=o[1],r=o[2],i=o[3]}return e.x1-=i,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},st=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},ft=function(e,t){return!(e.x1>t.x2)&&(!(t.x1>e.x2)&&(!(e.x2t.y2)&&!(t.y1>e.y2)))))))},dt=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},ht=function(e,t){return dt(e,t.x1,t.y1)&&dt(e,t.x2,t.y2)},pt=function(e,t,n,r,i,a,o){var c,u=Mt(i,a),l=i/2,s=a/2,f=r-s-o;if((c=Pt(e,t,n,r,n-l+u-o,f,n+l-u+o,f,!1)).length>0)return c;var d=n+l+o;if((c=Pt(e,t,n,r,d,r-s+u-o,d,r+s-u+o,!1)).length>0)return c;var h=r+s+o;if((c=Pt(e,t,n,r,n-l+u-o,h,n+l-u+o,h,!1)).length>0)return c;var p,g=n-l-o;if((c=Pt(e,t,n,r,g,r-s+u-o,g,r+s-u+o,!1)).length>0)return c;var b=n-l+u,v=r-s+u;if((p=Et(e,t,n,r,b,v,u+o)).length>0&&p[0]<=b&&p[1]<=v)return[p[0],p[1]];var m=n+l-u,y=r-s+u;if((p=Et(e,t,n,r,m,y,u+o)).length>0&&p[0]>=m&&p[1]<=y)return[p[0],p[1]];var w=n+l-u,x=r+s-u;if((p=Et(e,t,n,r,w,x,u+o)).length>0&&p[0]>=w&&p[1]>=x)return[p[0],p[1]];var k=n-l+u,S=r+s-u;return(p=Et(e,t,n,r,k,S,u+o)).length>0&&p[0]<=k&&p[1]>=S?[p[0],p[1]]:[]},gt=function(e,t,n,r,i,a,o){var c=o,u=Math.min(n,i),l=Math.max(n,i),s=Math.min(r,a),f=Math.max(r,a);return u-c<=e&&e<=l+c&&s-c<=t&&t<=f+c},bt=function(e,t,n,r,i,a,o,c,u){var l=Math.min(n,o,i)-u,s=Math.max(n,o,i)+u,f=Math.min(r,c,a)-u,d=Math.max(r,c,a)+u;return!(es||td)},vt=function(e,t,n,r,i,a,o,c){var u=[];!function(e,t,n,r,i){var a,o,c,u,l,s,f,d;0===e&&(e=1e-5),c=-27*(r/=e)+(t/=e)*(9*(n/=e)-t*t*2),a=(o=(3*n-t*t)/9)*o*o+(c/=54)*c,i[1]=0,f=t/3,a>0?(l=(l=c+Math.sqrt(a))<0?-Math.pow(-l,1/3):Math.pow(l,1/3),s=(s=c-Math.sqrt(a))<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=-f+l+s,f+=(l+s)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-s+l)/2,i[3]=f,i[5]=-f):(i[5]=i[3]=0,0===a?(d=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=2*d-f,i[4]=i[2]=-(d+f)):(u=(o=-o)*o*o,u=Math.acos(c/Math.sqrt(u)),d=2*Math.sqrt(o),i[0]=-f+d*Math.cos(u/3),i[2]=-f+d*Math.cos((u+2*Math.PI)/3),i[4]=-f+d*Math.cos((u+4*Math.PI)/3)))}(1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*c+4*a*a-4*a*c+c*c,9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*c-6*a*a+3*a*c,3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*c-r*t+2*a*a+2*a*t-c*t,1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,u);for(var l=[],s=0;s<6;s+=2)Math.abs(u[s+1])<1e-7&&u[s]>=0&&u[s]<=1&&l.push(u[s]);l.push(1),l.push(0);for(var f,d,h,p=-1,g=0;g=0?hu?(e-i)*(e-i)+(t-a)*(t-a):l-f},yt=function(e,t,n){for(var r,i,a,o,c=0,u=0;u=e&&e>=a||r<=e&&e<=a))continue;(e-r)/(a-r)*(o-i)+i>t&&c++}return c%2!==0},wt=function(e,t,n,r,i,a,o,c,u){var l,s=new Array(n.length);null!=c[0]?(l=Math.atan(c[1]/c[0]),c[0]<0?l+=Math.PI/2:l=-l-Math.PI/2):l=c;for(var f,d=Math.cos(-l),h=Math.sin(-l),p=0;p0){var g=kt(s,-u);f=xt(g)}else f=s;return yt(e,t,f)},xt=function(e){for(var t,n,r,i,a,o,c,u,l=new Array(e.length/2),s=0;s=0&&p<=1&&b.push(p),g>=0&&g<=1&&b.push(g),0===b.length)return[];var v=b[0]*c[0]+e,m=b[0]*c[1]+t;return b.length>1?b[0]==b[1]?[v,m]:[v,m,b[1]*c[0]+e,b[1]*c[1]+t]:[v,m]},Ct=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},Pt=function(e,t,n,r,i,a,o,c,u){var l=e-i,s=n-e,f=o-i,d=t-a,h=r-t,p=c-a,g=f*d-p*l,b=s*d-h*l,v=p*s-f*h;if(0!==v){var m=g/v,y=b/v,w=-.001;return w<=m&&m<=1.001&&w<=y&&y<=1.001||u?[e+m*s,t+m*h]:[]}return 0===g||0===b?Ct(e,n,o)===o?[o,c]:Ct(e,n,i)===i?[i,a]:Ct(i,o,n)===n?[n,r]:[]:[]},_t=function(e,t,n,r,i,a,o,c){var u,l,s,f,d,h,p=[],g=new Array(n.length),b=!0;if(null==a&&(b=!1),b){for(var v=0;v0){var m=kt(g,-c);l=xt(m)}else l=g}else l=n;for(var y=0;ys&&(s=t)},d=function(e){return l[e]},h=0;h0?w.edgesTo(y)[0]:y.edgesTo(w)[0];var k=r(x);y=y.id(),h[y]>h[v]+k&&(h[y]=h[v]+k,p.nodes.indexOf(y)<0?p.push(y):p.updateItem(y),s[y]=0,l[y]=[]),h[y]==h[v]+k&&(s[y]=s[y]+s[v],l[y].push(v))}else for(var S=0;S0;){for(var _=n.pop(),T=0;T0&&o.push(n[c]);0!==o.length&&i.push(r.collection(o))}return i}(s,u,t,r);return y=function(e){for(var t=0;t5&&void 0!==arguments[5]?arguments[5]:Jt,o=r,c=0;c=2?on(e,t,n,0,nn,rn):on(e,t,n,0,tn)},squaredEuclidean:function(e,t,n){return on(e,t,n,0,nn)},manhattan:function(e,t,n){return on(e,t,n,0,tn)},max:function(e,t,n){return on(e,t,n,-1/0,an)}};function un(e,t,n,r,i,a){var o;return o=S(e)?e:cn[e]||cn.euclidean,0===t&&S(e)?o(i,a):o(t,n,r,i,a)}cn["squared-euclidean"]=cn.squaredEuclidean,cn.squaredeuclidean=cn.squaredEuclidean;var ln=Ee({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),sn=function(e){return ln(e)},fn=function(e,t,n,r,i){var a="kMedoids"!==i?function(e){return n[e]}:function(e){return r[e](n)},o=n,c=t;return un(e,r.length,a,(function(e){return r[e](t)}),o,c)},dn=function(e,t,n){for(var r=n.length,i=new Array(r),a=new Array(r),o=new Array(t),c=null,u=0;un)return!1}return!0},bn=function(e,t,n){for(var r=0;ri&&(i=t[u][l],a=l);o[a].push(e[u])}for(var s=0;s=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var h,p=t[o],g=t[r[o]];h="dendrogram"===i.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key},e[p.index]=h,e.splice(g.index,1),t[p.key]=h;for(var b=0;bn[g.key][v.key]&&(a=n[g.key][v.key])):"max"===i.linkage?(a=n[p.key][v.key],n[p.key][v.key]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n0&&e.splice(0,t)):e=e.slice(t,n);for(var a=0,o=e.length-1;o>=0;o--){var c=e[o];i?isFinite(c)||(e[o]=-1/0,a++):e.splice(o,1)}r&&e.sort((function(e,t){return e-t}));var u=e.length,l=Math.floor(u/2);return u%2!==0?e[l+1+a]:(e[l-1+a]+e[l+a])/2}(e):"mean"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0,a=t;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,i=t;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,i=t;io&&(a=u,o=t[i*e+u])}a>0&&r.push(a)}for(var l=0;l=_?(T=_,_=j,O=R):j>T&&(T=j);for(var M=0;M0?1:0;S[k%l.minIterations*t+z]=B,D+=B}if(D>0&&(k>=l.minIterations-1||k==l.maxIterations-1)){for(var H=0,F=0;F0&&r.push(i);return r}(t,a,o),Y=function(e,t,n){for(var r=Nn(e,t,n),i=0;iu&&(c=l,u=s)}n[i]=a[c]}return Nn(e,t,n)}(t,r,V),W={},q=0;q1||o>1)&&(l=!0),s[t]=[],e.outgoers().forEach((function(e){e.isEdge()&&s[t].push(e.id())}))}else f[t]=[void 0,e.target().id()]})):u.forEach((function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(n?r?l=!0:r=t:n=t),s[t]=[],e.connectedEdges().forEach((function(e){return s[t].push(e.id())}))):f[t]=[e.source().id(),e.target().id()]}));var d={found:!1,trail:void 0};if(l)return d;if(r&&n)if(c){if(i&&r!=i)return d;i=r}else{if(i&&r!=i&&n!=i)return d;i||(i=r)}else i||(i=u[0].id());var h=function(e){for(var t,n,r,i=e,a=[e];s[i].length;)t=s[i].shift(),n=f[t][0],i!=(r=f[t][1])?(s[r]=s[r].filter((function(e){return e!=t})),i=r):c||i==n||(s[n]=s[n].filter((function(e){return e!=t})),i=n),a.unshift(t),a.unshift(i);return a},p=[],g=[];for(g=h(i);1!=g.length;)0==s[g[0]].length?(p.unshift(u.getElementById(g.shift())),p.unshift(u.getElementById(g.shift()))):g=h(g.shift()).concat(g);for(var b in p.unshift(u.getElementById(g.shift())),s)if(s[b].length)return d;return d.found=!0,d.trail=this.spawn(p,!0),d}},Bn=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},c=function c(u,l,s){u===s&&(r+=1),t[l]={id:n,low:n++,cutVertex:!1};var f,d,h,p,g=e.getElementById(l).connectedEdges().intersection(e);0===g.size()?i.push(e.spawn(e.getElementById(l))):g.forEach((function(n){f=n.source().id(),d=n.target().id(),(h=f===l?d:f)!==s&&(p=n.id(),o[p]||(o[p]=!0,a.push({x:l,y:h,edge:n})),h in t?t[l].low=Math.min(t[l].low,t[h].id):(c(u,h,l),t[l].low=Math.min(t[l].low,t[h].low),t[l].id<=t[h].low&&(t[l].cutVertex=!0,function(n,r){for(var o=a.length-1,c=[],u=e.spawn();a[o].x!=n||a[o].y!=r;)c.push(a.pop().edge),o--;c.push(a.pop().edge),c.forEach((function(n){var r=n.connectedNodes().intersection(e);u.merge(n),r.forEach((function(n){var r=n.id(),i=n.connectedEdges().intersection(e);u.merge(n),t[r].cutVertex?u.merge(i.filter((function(e){return e.isLoop()}))):u.merge(i)}))})),i.push(u)}(l,h))))}))};e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||(r=0,c(n,n),t[n].cutVertex=r>1)}}));var u=Object.keys(t).filter((function(e){return t[e].cutVertex})).map((function(t){return e.getElementById(t)}));return{cut:e.spawn(u),components:i}},Hn=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function o(c){if(i.push(c),t[c]={index:n,low:n++,explored:!1},e.getElementById(c).connectedEdges().intersection(e).forEach((function(e){var n=e.target().id();n!==c&&(n in t||o(n),t[n].explored||(t[c].low=Math.min(t[c].low,t[n].low)))})),t[c].index===t[c].low){for(var u=e.spawn();;){var l=i.pop();if(u.merge(e.getElementById(l)),t[l].low=t[c].index,t[l].explored=!0,l===c)break}var s=u.edgesWith(u),f=u.merge(s);r.push(f),a=a.difference(f)}};return e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||o(n)}})),{cut:a,components:r}},Fn={};[Ne,Ae,De,Be,Fe,Ve,Ue,At,zt,Ht,Gt,Zt,kn,jn,An,zn,{hopcroftTarjanBiconnected:Bn,htbc:Bn,htb:Bn,hopcroftTarjanBiconnectedComponents:Bn},{tarjanStronglyConnected:Hn,tsc:Hn,tscc:Hn,tarjanStronglyConnectedComponents:Hn}].forEach((function(e){G(Fn,e)}));var Gn=function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"===typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};Gn.prototype={fulfill:function(e){return Vn(this,1,"fulfillValue",e)},reject:function(e){return Vn(this,2,"rejectReason",e)},then:function(e,t){var n=this,r=new Gn;return n.onFulfilled.push(qn(e,r,"fulfill")),n.onRejected.push(qn(t,r,"reject")),Yn(n),r.proxy}};var Vn=function(e,t,n,r){return 0===e.state&&(e.state=t,e[n]=r,Yn(e)),e},Yn=function(e){1===e.state?Wn(e,"onFulfilled",e.fulfillValue):2===e.state&&Wn(e,"onRejected",e.rejectReason)},Wn=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0:void 0}},clearQueue:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){E(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=void 0===t,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout((function(){n.removeClass(e)}),t),n}};nr.className=nr.classNames=nr.classes;var rr={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:H,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};rr.variable="(?:[\\w-.]|(?:\\\\"+rr.metaChar+"))+",rr.className="(?:[\\w-]|(?:\\\\"+rr.metaChar+"))+",rr.value=rr.string+"|"+rr.number,rr.id=rr.variable,function(){var e,t,n;for(e=rr.comparatorOp.split("|"),n=0;n=0||"="!==t&&(rr.comparatorOp+="|\\!"+t)}();var ir=0,ar=1,or=2,cr=3,ur=4,lr=5,sr=6,fr=7,dr=8,hr=9,pr=10,gr=11,br=12,vr=13,mr=14,yr=15,wr=16,xr=17,kr=18,Sr=19,Er=20,Cr=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort((function(e,t){return function(e,t){return-1*F(e,t)}(e.selector,t.selector)})),Pr=function(){for(var e,t={},n=0;n0&&l.edgeCount>0)return ye("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return ye("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&ye("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return k(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(r,a){var o=r.type,c=r.value;switch(o){case ir:var u=e(c);return u.substring(0,u.length-1);case cr:var l=r.field,s=r.operator;return"["+l+n(e(s))+t(c)+"]";case lr:var f=r.operator,d=r.field;return"["+e(f)+d+"]";case ur:return"["+r.field+"]";case sr:var h=r.operator;return"[["+r.field+n(e(h))+t(c)+"]]";case fr:return c;case dr:return"#"+c;case hr:return"."+c;case xr:case yr:return i(r.parent,a)+n(">")+i(r.child,a);case kr:case wr:return i(r.ancestor,a)+" "+i(r.descendant,a);case Sr:var p=i(r.left,a),g=i(r.subject,a),b=i(r.right,a);return p+(p.length>0?" ":"")+g+b;case Er:return""}},i=function(e,t){return e.checks.reduce((function(n,i,a){return n+(t===e&&0===a?"$":"")+r(i,t)}),"")},a="",o=0;o1&&o=0&&(t=t.replace("!",""),s=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),l=!0),(o||u||l)&&(i=o||c?""+e:"",a=""+n),l&&(e=i=i.toLowerCase(),n=a=a.toLowerCase()),t){case"*=":r=i.indexOf(a)>=0;break;case"$=":r=i.indexOf(a,i.length-a.length)>=0;break;case"^=":r=0===i.indexOf(a);break;case"=":r=e===n;break;case">":f=!0,r=e>n;break;case">=":f=!0,r=e>=n;break;case"<":f=!0,r=e0;){var l=i.shift();t(l),a.add(l.id()),o&&r(i,a,l)}return e}function qr(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i1&&void 0!==arguments[1])||arguments[1];return Wr(this,e,t,qr)},Yr.forEachUp=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Wr(this,e,t,Ur)},Yr.forEachUpAndDown=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Wr(this,e,t,$r)},Yr.ancestors=Yr.parents,(Fr=Gr={data:er.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:er.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:er.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:er.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:er.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:er.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=Fr.data,Fr.removeAttr=Fr.removeData;var Kr,Xr,Qr=Gr,Zr={};function Jr(e){return function(t){var n=this;if(void 0===t&&(t=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;ot})),minIndegree:ei("indegree",(function(e,t){return et})),minOutdegree:ei("outdegree",(function(e,t){return et}))}),G(Zr,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,s=l;l&&(u=u[0]);var f=s?u.position():{x:0,y:0};return i={x:c.x-f.x,y:c.y-f.y},void 0===e?i:i[e]}for(var d=0;d0,b=g;g&&(p=p[0]);var v=b?p.position():{x:0,y:0};void 0!==t?h.position(e,t+v[e]):void 0!==i&&h.position({x:i.x+v.x,y:i.y+v.y})}}else if(!a)return;return this}},Kr.modelPosition=Kr.point=Kr.position,Kr.modelPositions=Kr.points=Kr.positions,Kr.renderedPoint=Kr.renderedPosition,Kr.relativePoint=Kr.relativePosition;var ri,ii,ai=Xr;ri=ii={},ii.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,c=t.y1*r+i.y,u=t.y2*r+i.y;return{x1:a,x2:o,y1:c,y2:u,w:o-a,h:u-c}},ii.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp((function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}})),this):this},ii.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(e){if(e.isParent()){var t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,i={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;0!==a.w&&0!==a.h||((a={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);var c=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(c=100*c/i.width.val);var u=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(u=100*u/i.width.val);var l=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(l=100*l/i.height.val);var s=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(s=100*s/i.height.val);var f=v(i.width.val-a.w,c,u),d=f.biasDiff,h=f.biasComplementDiff,p=v(i.height.val-a.h,l,s),g=p.biasDiff,b=p.biasComplementDiff;t.autoPadding=function(e,t,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}}(a.w,a.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-d+a.x1+a.x2+h)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-g+a.y1+a.y2+b)/2}function v(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},ui=function(e,t){return null==t?e:ci(e,t.x1,t.y1,t.x2,t.y2)},li=function(e,t,n){return _e(e,t,n)},si=function(e,t,n){if(!t.cy().headless()){var r,i,a=t._private,o=a.rstyle,c=o.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=o.srcX,i=o.srcY):"target"===n?(r=o.tgtX,i=o.tgtY):(r=o.midX,i=o.midY);var u=a.arrowBounds=a.arrowBounds||{},l=u[n]=u[n]||{};l.x1=r-c,l.y1=i-c,l.x2=r+c,l.y2=i+c,l.w=l.x2-l.x1,l.h=l.y2-l.y1,ut(l,1),ci(e,l.x1,l.y1,l.x2,l.y2)}}},fi=function(e,t,n){if(!t.cy().headless()){var r;r=n?n+"-":"";var i=t._private,a=i.rstyle;if(t.pstyle(r+"label").strValue){var o,c,u,l,s=t.pstyle("text-halign"),f=t.pstyle("text-valign"),d=li(a,"labelWidth",n),h=li(a,"labelHeight",n),p=li(a,"labelX",n),g=li(a,"labelY",n),b=t.pstyle(r+"text-margin-x").pfValue,v=t.pstyle(r+"text-margin-y").pfValue,m=t.isEdge(),y=t.pstyle(r+"text-rotation"),w=t.pstyle("text-outline-width").pfValue,x=t.pstyle("text-border-width").pfValue/2,k=t.pstyle("text-background-padding").pfValue,S=h,E=d,C=E/2,P=S/2;if(m)o=p-C,c=p+C,u=g-P,l=g+P;else{switch(s.value){case"left":o=p-E,c=p;break;case"center":o=p-C,c=p+C;break;case"right":o=p,c=p+E}switch(f.value){case"top":u=g-S,l=g;break;case"center":u=g-P,l=g+P;break;case"bottom":u=g,l=g+S}}o+=b-Math.max(w,x)-k-2,c+=b+Math.max(w,x)+k+2,u+=v-Math.max(w,x)-k-2,l+=v+Math.max(w,x)+k+2;var _=n||"main",T=i.labelBounds,O=T[_]=T[_]||{};O.x1=o,O.y1=u,O.x2=c,O.y2=l,O.w=c-o,O.h=l-u;var j=m&&"autorotate"===y.strValue,R=null!=y.pfValue&&0!==y.pfValue;if(j||R){var M=j?li(i.rstyle,"labelAngle",n):y.pfValue,I=Math.cos(M),N=Math.sin(M),L=(o+c)/2,A=(u+l)/2;if(!m){switch(s.value){case"left":L=c;break;case"right":L=o}switch(f.value){case"top":A=l;break;case"bottom":A=u}}var D=function(e,t){return{x:(e-=L)*I-(t-=A)*N+L,y:e*N+t*I+A}},z=D(o,u),B=D(o,l),H=D(c,u),F=D(c,l);o=Math.min(z.x,B.x,H.x,F.x),c=Math.max(z.x,B.x,H.x,F.x),u=Math.min(z.y,B.y,H.y,F.y),l=Math.max(z.y,B.y,H.y,F.y)}var G=_+"Rot",V=T[G]=T[G]||{};V.x1=o,V.y1=u,V.x2=c,V.y2=l,V.w=c-o,V.h=l-u,ci(e,o,u,c,l),ci(i.labelBounds.all,o,u,c,l)}return e}},di=function(e){var t=0,n=function(e){return(e?1:0)<(r=T[1].x)){var O=n;n=r,r=O}if(i>(a=T[1].y)){var j=i;i=a,a=j}ci(d,n-S,i-S,r+S,a+S)}}else if("bezier"===_||"unbundled-bezier"===_||"segments"===_||"taxi"===_){var R;switch(_){case"bezier":case"unbundled-bezier":R=b.bezierPts;break;case"segments":case"taxi":R=b.linePts}if(null!=R)for(var M=0;M(r=L.x)){var A=n;n=r,r=A}if((i=N.y)>(a=L.y)){var D=i;i=a,a=D}ci(d,n-=S,i-=S,r+=S,a+=S)}if(s&&t.includeEdges&&g&&(si(d,e,"mid-source"),si(d,e,"mid-target"),si(d,e,"source"),si(d,e,"target")),s&&"yes"===e.pstyle("ghost").value){var z=e.pstyle("ghost-offset-x").pfValue,B=e.pstyle("ghost-offset-y").pfValue;ci(d,d.x1+z,d.y1+B,d.x2+z,d.y2+B)}var H=h.bodyBounds=h.bodyBounds||{};st(H,d),lt(H,v),ut(H,1),s&&(n=d.x1,r=d.x2,i=d.y1,a=d.y2,ci(d,n-k,i-k,r+k,a+k));var F=h.overlayBounds=h.overlayBounds||{};st(F,d),lt(F,v),ut(F,1);var G=h.labelBounds=h.labelBounds||{};null!=G.all?((u=G.all).x1=1/0,u.y1=1/0,u.x2=-1/0,u.y2=-1/0,u.w=0,u.h=0):G.all=ot(),s&&t.includeLabels&&(t.includeMainLabels&&fi(d,e,null),g&&(t.includeSourceLabels&&fi(d,e,"source"),t.includeTargetLabels&&fi(d,e,"target")))}return d.x1=oi(d.x1),d.y1=oi(d.y1),d.x2=oi(d.x2),d.y2=oi(d.y2),d.w=oi(d.x2-d.x1),d.h=oi(d.y2-d.y1),d.w>0&&d.h>0&&y&&(lt(d,v),ut(d,1)),d}(e,gi),r.bbCache=n,r.bbCachePosKey=o):n=r.bbCache,!a){var s=e.isNode();n=ot(),(t.includeNodes&&s||t.includeEdges&&!s)&&(t.includeOverlays?ui(n,r.overlayBounds):ui(n,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!i||t.includeSourceLabels&&t.includeTargetLabels)?ui(n,r.labelBounds.all):(t.includeMainLabels&&ui(n,r.labelBounds.mainRot),t.includeSourceLabels&&ui(n,r.labelBounds.sourceRot),t.includeTargetLabels&&ui(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},gi={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},bi=di(gi),vi=Ee(gi);ii.boundingBox=function(e){var t;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==e&&void 0!==e.useCache&&!0!==e.useCache){t=ot();var n=vi(e=e||gi),r=this;if(r.cy().styleEnabled())for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Mi,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;c--)o(c);return this},Ni.removeAllListeners=function(){return this.removeListener("*")},Ni.emit=Ni.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,E(t)||(t=[t]),Di(this,(function(e,a){null!=n&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(n){var i=r[n];if(i.type===a.type&&(!i.namespace||i.namespace===a.namespace||".*"===i.namespace)&&e.eventMatches(e.context,i,a)){var o=[a];null!=t&&function(e,t){for(var n=0;n1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&k(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){e(this[t])&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;ir&&(r=c,n=o)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,i=this,a=0;a=0&&i1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){this.cleanStyle();var i=n._private.style[e];return null!=i?i:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled())return t?t.pstyle(e).units:void 0},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];return n?t.style().getRenderedStyle(n,e):void 0},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=n.style();if(C(e)){var i=e;r.applyBypass(this,i,false),this.emitAndNotify("style")}else if(k(e)){if(void 0===t){var a=this[0];return a?r.getStylePropertyValue(a,e):void 0}r.applyBypass(this,e,t,false),this.emitAndNotify("style")}else if(void 0===e){var o=this[0];return o?r.getRawStyle(o):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=t.style(),r=this;if(void 0===e)for(var i=0;i0&&t.push(s[0]),t.push(c[0])}return this.spawn(t,!0).filter(e)}),"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),ca.neighbourhood=ca.neighborhood,ca.closedNeighbourhood=ca.closedNeighborhood,ca.openNeighbourhood=ca.openNeighborhood,G(ca,{source:Vr((function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t}),"source"),target:Vr((function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t}),"target"),sources:fa({attr:"source"}),targets:fa({attr:"target"})}),G(ca,{edgesWith:Vr(da(),"edgesWith"),edgesTo:Vr(da({thisIsSrc:!0}),"edgesTo")}),G(ca,{connectedEdges:Vr((function(e){for(var t=[],n=0;n0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),ca.componentsOf=ca.components;var pa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0!==e){var r=new Oe,i=!1;if(t){if(t.length>0&&C(t[0])&&!O(t[0])){i=!0;for(var a=[],o=new Re,c=0,u=t.length;c0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,a=i.cy(),o=a._private,c=[],u=[],l=0,s=i.length;l0){for(var z=e.length===i.length?i:new pa(a,e),B=0;B0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?_.emitAndNotify("remove"):t&&_.emit("remove"));for(var T=0;Tf&&Math.abs(c.v)>f;);return a?function(e){return l[e*(l.length-1)|0]}:s}}(),ma=function(e,t,n,r){var i=function(e,t,n,r){var i=4,a=.001,o=1e-7,c=10,u=11,l=1/(u-1),s="undefined"!==typeof Float32Array;if(4!==arguments.length)return!1;for(var f=0;f<4;++f)if("number"!==typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var d=s?new Float32Array(u):new Array(u);function h(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function g(e){return 3*e}function b(e,t,n){return((h(t,n)*e+p(t,n))*e+g(t))*e}function v(e,t,n){return 3*h(t,n)*e*e+2*p(t,n)*e+g(t)}function m(t,r){for(var a=0;a0?i=u:r=u}while(Math.abs(a)>o&&++l=a?m(t,c):0===s?c:w(t,r,r+l)}var k=!1;function S(){k=!0,e===t&&n===r||y()}var E=function(i){return k||S(),e===t&&n===r?i:0===i?0:1===i?1:b(x(i),t,r)};E.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var C="generateBezier("+[e,t,n,r]+")";return E.toString=function(){return C},E}(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},ya={linear:function(e,t,n){return e+(t-e)*n},ease:ma(.25,.1,.25,1),"ease-in":ma(.42,0,1,1),"ease-out":ma(0,0,.58,1),"ease-in-out":ma(.42,0,.58,1),"ease-in-sine":ma(.47,0,.745,.715),"ease-out-sine":ma(.39,.575,.565,1),"ease-in-out-sine":ma(.445,.05,.55,.95),"ease-in-quad":ma(.55,.085,.68,.53),"ease-out-quad":ma(.25,.46,.45,.94),"ease-in-out-quad":ma(.455,.03,.515,.955),"ease-in-cubic":ma(.55,.055,.675,.19),"ease-out-cubic":ma(.215,.61,.355,1),"ease-in-out-cubic":ma(.645,.045,.355,1),"ease-in-quart":ma(.895,.03,.685,.22),"ease-out-quart":ma(.165,.84,.44,1),"ease-in-out-quart":ma(.77,0,.175,1),"ease-in-quint":ma(.755,.05,.855,.06),"ease-out-quint":ma(.23,1,.32,1),"ease-in-out-quint":ma(.86,0,.07,1),"ease-in-expo":ma(.95,.05,.795,.035),"ease-out-expo":ma(.19,1,.22,1),"ease-in-out-expo":ma(1,0,0,1),"ease-in-circ":ma(.6,.04,.98,.335),"ease-out-circ":ma(.075,.82,.165,1),"ease-in-out-circ":ma(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return ya.linear;var r=va(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":ma};function wa(e,t,n,r,i){if(1===r)return n;if(t===n)return n;var a=i(t,n,r);return null==e||((e.roundValue||e.color)&&(a=Math.round(a)),void 0!==e.min&&(a=Math.max(a,e.min)),void 0!==e.max&&(a=Math.min(a,e.max))),a}function xa(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function ka(e,t,n,r,i){var a=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var o=xa(e,i),c=xa(t,i);if(P(o)&&P(c))return wa(a,o,c,n,r);if(E(o)&&E(c)){for(var u=[],l=0;l0?("spring"===f&&d.push(o.duration),o.easingImpl=ya[f].apply(null,d)):o.easingImpl=ya[f]}var h,p=o.easingImpl;if(h=0===o.duration?1:(n-u)/o.duration,o.applying&&(h=o.progress),h<0?h=0:h>1&&(h=1),null==o.delay){var g=o.startPosition,b=o.position;if(b&&i&&!e.locked()){var v={};Ea(g.x,b.x)&&(v.x=ka(g.x,b.x,h,p)),Ea(g.y,b.y)&&(v.y=ka(g.y,b.y,h,p)),e.position(v)}var m=o.startPan,y=o.pan,w=a.pan,x=null!=y&&r;x&&(Ea(m.x,y.x)&&(w.x=ka(m.x,y.x,h,p)),Ea(m.y,y.y)&&(w.y=ka(m.y,y.y,h,p)),e.emit("pan"));var S=o.startZoom,E=o.zoom,C=null!=E&&r;C&&(Ea(S,E)&&(a.zoom=at(a.minZoom,ka(S,E,h,p),a.maxZoom)),e.emit("zoom")),(x||C)&&e.emit("viewport");var P=o.style;if(P&&P.length>0&&i){for(var _=0;_=0;t--){(0,e[t])()}e.splice(0,e.length)},s=a.length-1;s>=0;s--){var f=a[s],d=f._private;d.stopped?(a.splice(s,1),d.hooked=!1,d.playing=!1,d.started=!1,l(d.frames)):(d.playing||d.applying)&&(d.playing&&d.applying&&(d.applying=!1),d.started||Ca(0,f,e),Sa(t,f,e,n),d.applying&&(d.applying=!1),l(d.frames),null!=d.step&&d.step(e),f.completed()&&(a.splice(s,1),d.hooked=!1,d.playing=!1,d.started=!1,l(d.completes)),c=!0)}return n||0!==a.length||0!==o.length||r.push(t),c}for(var a=!1,o=0;o0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var _a={animate:er.animate(),animation:er.animation(),animated:er.animated(),clearQueue:er.clearQueue(),delay:er.delay(),delayAnimation:er.delayAnimation(),stop:er.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender((function(t,n){Pa(n,e)}),t.beforeRenderPriorities.animations):function t(){e._private.animationsRunning&&X((function(n){Pa(n,e),t()}))}()}}},Ta={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&O(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},Oa=function(e){return k(e)?new zr(e):e},ja={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Ii(Ta,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,Oa(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,Oa(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,Oa(t),n),this},once:function(e,t,n){return this.emitter().one(e,Oa(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};er.eventAliasesOn(ja);var Ra={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};Ra.jpeg=Ra.jpg;var Ma={layout:function(e){var t=this;if(null!=e)if(null!=e.name){var n=e.name,r=t.extension("layout",n);if(null!=r){var i;i=k(e.eles)?t.$(e.eles):null!=e.eles?e.eles:t.$();var a=new r(G({},e,{cy:t,eles:i}));return a}ve("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?")}else ve("A `name` must be specified to make a layout");else ve("Layout options must be specified to make a layout")}};Ma.createLayout=Ma.makeLayout=Ma.layout;var Ia={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();null!=t&&r.merge(t)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach((function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)}))}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch((function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach((function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]}))},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};La.invalidateDimensions=La.resize;var Aa={collection:function(e,t){return k(e)?this.$(e):T(e)?e.collection():E(e)?new pa(this,e,t):new pa(this)},nodes:function(e){var t=this.$((function(e){return e.isNode()}));return e?t.filter(e):t},edges:function(e){var t=this.$((function(e){return e.isEdge()}));return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};Aa.elements=Aa.filter=Aa.$;var Da={},za="t";Da.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(d||f&&h){var p=void 0;d&&h||d?p=l.properties:h&&(p=l.mappedProperties);for(var g=0;g1&&(b=1),c.color){var x=i.valueMin[0],k=i.valueMax[0],S=i.valueMin[1],E=i.valueMax[1],C=i.valueMin[2],_=i.valueMax[2],T=null==i.valueMin[3]?1:i.valueMin[3],O=null==i.valueMax[3]?1:i.valueMax[3],j=[Math.round(x+(k-x)*b),Math.round(S+(E-S)*b),Math.round(C+(_-C)*b),Math.round(T+(O-T)*b)];n={bypass:i.bypass,name:i.name,value:j,strValue:"rgb("+j[0]+", "+j[1]+", "+j[2]+")"}}else{if(!c.number)return!1;var R=i.valueMin+(i.valueMax-i.valueMin)*b;n=this.parse(i.name,R,i.bypass,d)}if(!n)return g(),!1;n.mapping=i,i=n;break;case o.data:for(var M=i.field.split("."),I=f.data,N=0;N0&&a>0){for(var c={},u=!1,l=0;l0?e.delayAnimation(o).play().promise().then(t):t()})).then((function(){return e.animation({style:c,duration:a,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1)},Da.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],c=i(o);null!=c&&c(n,r)&&a(o)},Da.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,(function(e){return e.triggersZOrder}),(function(){i._private.cy.notify("zorder",e)}))},Da.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,(function(e){return e.triggersBounds}),(function(i){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache(),"curve-style"!==t||"bezier"!==n&&"bezier"!==r||!i.triggersBoundsOfParallelBeziers||e.parallelEdges().forEach((function(e){e.isBundledBezier()&&e.dirtyBoundingBoxCache()}))}))},Da.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r)};var Ba={applyBypass:function(e,t,n,r){var i=[];if("*"===t||"**"===t){if(void 0!==n)for(var a=0;at.length?a.substr(t.length):""}function c(){n=n.length>r.length?n.substr(r.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");;){if(a.match(/^\s*$/))break;var u=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){ye("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}t=u[0];var l=u[1];if("core"!==l)if(new zr(l).invalid){ye("Skipping parsing of block: Invalid selector found in string stylesheet: "+l),o();continue}var s=u[2],f=!1;n=s;for(var d=[];;){if(n.match(/^\s*$/))break;var h=n.match(/^\s*(.+?)\s*:\s*(.+?)\s*;/);if(!h){ye("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+s),f=!0;break}r=h[0];var p=h[1],g=h[2];if(this.properties[p])i.parse(p,g)?(d.push({name:p,val:g}),c()):(ye("Skipping property: Invalid property definition in: "+r),c());else ye("Skipping property: Invalid property name in: "+r),c()}if(f){o();break}i.selector(l);for(var b=0;b=7&&"d"===t[0]&&(l=new RegExp(c.data.regex).exec(t))){if(n)return!1;var d=c.data;return{name:e,value:l,strValue:""+t,mapped:d,field:l[1],bypass:n}}if(t.length>=10&&"m"===t[0]&&(s=new RegExp(c.mapData.regex).exec(t))){if(n)return!1;if(f.multiple)return!1;var h=c.mapData;if(!f.color&&!f.number)return!1;var p=this.parse(e,s[4]);if(!p||p.mapped)return!1;var g=this.parse(e,s[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return ye("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+p.strValue+"`"),this.parse(e,p.strValue);if(f.color){var b=p.value,v=g.value;if(b[0]===v[0]&&b[1]===v[1]&&b[2]===v[2]&&(b[3]===v[3]||(null==b[3]||1===b[3])&&(null==v[3]||1===v[3])))return!1}return{name:e,value:s,strValue:""+t,mapped:h,field:s[1],fieldMin:parseFloat(s[2]),fieldMax:parseFloat(s[3]),valueMin:p.value,valueMax:g.value,bypass:n}}}if(f.multiple&&"multiple"!==r){var m;if(m=u?t.split(/\s+/):E(t)?t:[t],f.evenMultiple&&m.length%2!==0)return null;for(var y=[],w=[],x=[],C="",_=!1,T=0;T0?" ":"")+O.strValue}return f.validate&&!f.validate(y,w)?null:f.singleEnum&&_?1===y.length&&k(y[0])?{name:e,value:y[0],strValue:y[0],bypass:n}:null:{name:e,value:y,pfValue:x,strValue:C,bypass:n,units:w}}var j,R,M=function(){for(var r=0;rf.max||f.strictMax&&t===f.max))return null;var z={name:e,value:t,strValue:""+t+(I||""),units:I,bypass:n};return f.unitless||"px"!==I&&"em"!==I?z.pfValue=t:z.pfValue="px"!==I&&I?this.getEmSizeInPixels()*t:t,"ms"!==I&&"s"!==I||(z.pfValue="ms"===I?t:1e3*t),"deg"!==I&&"rad"!==I||(z.pfValue="rad"===I?t:(j=t,Math.PI*j/180)),"%"===I&&(z.pfValue=t/100),z}if(f.propList){var B=[],F=""+t;if("none"===F);else{for(var G=F.split(/\s*,\s*|\s+/),Y=0;Y0&&u>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:o=(o=(o=Math.min((c-2*t)/n.w,(u-2*t)/n.h))>this._private.maxZoom?this._private.maxZoom:o)=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,i=r.pan,a=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),P(e)?n=e:C(e)&&(n=e.level,null!=e.position?t=$e(e.position,a,i):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)t.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=c,i.push("zoom"))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var u=e.pan;P(u.x)&&(t.pan.x=u.x,o=!1),P(u.y)&&(t.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(k(e)){var n=e;e=this.mutableElements().filter(n)}else T(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),i=this.width(),a=this.height();return{x:(i-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container;return e.sizeCache=e.sizeCache||(t?function(){var e=g.getComputedStyle(t),n=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-n("padding-left")-n("padding-right"),height:t.clientHeight-n("padding-top")-n("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};Ka.centre=Ka.center,Ka.autolockNodes=Ka.autolock,Ka.autoungrabifyNodes=Ka.autoungrabify;var Xa={data:er.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:er.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:er.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:er.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Xa.attr=Xa.data,Xa.removeAttr=Xa.removeData;var Qa=function(e){var t=this,n=(e=G({},e)).container;n&&!_(n)&&_(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=void 0!==g&&void 0!==n&&!e.headless,o=e;o.layout=G({name:a?"grid":"null"},o.layout),o.renderer=G({name:a?"canvas":"null"},o.renderer);var c=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},u=this._private={container:n,ready:!1,options:o,elements:new pa(this),listeners:[],aniEles:new pa(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:c(!0,o.zoomingEnabled),userZoomingEnabled:c(!0,o.userZoomingEnabled),panningEnabled:c(!0,o.panningEnabled),userPanningEnabled:c(!0,o.userPanningEnabled),boxSelectionEnabled:c(!0,o.boxSelectionEnabled),autolock:c(!1,o.autolock,o.autolockNodes),autoungrabify:c(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:c(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:P(o.zoom)?o.zoom:1,pan:{x:C(o.pan)&&P(o.pan.x)?o.pan.x:0,y:C(o.pan)&&P(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:c(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});u.styleEnabled&&t.setStyle([]);var l=G({},o,o.renderer);t.initRenderer(l);!function(e,t){if(e.some(N))return $n.all(e).then(t);t(e)}([o.style,o.elements],(function(e){var n=e[0],a=e[1];u.styleEnabled&&t.style().append(n),function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),null!=e&&(C(e)||E(e))&&t.add(e),t.one("layoutready",(function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")})).one("layoutstop",(function(){t.one("done",r),t.emit("done")}));var a=G({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()}(a,(function(){t.startAnimationLoop(),u.ready=!0,S(o.ready)&&t.on("ready",o.ready);for(var e=0;e0,l=ot(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(T(n.roots))e=n.roots;else if(E(n.roots)){for(var s=[],f=0;f0;){var M=O.shift(),I=_(M,j);if(I)M.outgoers().filter((function(e){return e.isNode()&&i.has(e)})).forEach(R);else if(null===I){ye("Detected double maximal shift for node `"+M.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}P();var N=0;if(n.avoidOverlap)for(var L=0;L0&&v[0].length<=3?u/2:0),f=2*Math.PI/v[r].length*i;return 0===r&&1===v[0].length&&(s=1),{x:$+s*Math.cos(f),y:K+s*Math.sin(f)}}return{x:$+(i+1-(a+1)/2)*o,y:(r+1)*c}})),this};var ro={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function io(e){this.options=G({},ro,e)}io.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,a=r.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));for(var o,c=ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),u=c.x1+c.w/2,l=c.y1+c.h/2,s=(void 0===t.sweep?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),f=0,d=0;d1&&t.avoidOverlap){f*=1.75;var b=Math.cos(s)-Math.cos(0),v=Math.sin(s)-Math.sin(0),m=Math.sqrt(f*f/(b*b+v*v));o=Math.max(m,o)}return r.nodes().layoutPositions(this,t,(function(e,n){var r=t.startAngle+n*s*(i?1:-1),a=o*Math.cos(r),c=o*Math.sin(r);return{x:u+a,y:l+c}})),this};var ao,oo={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function co(e){this.options=G({},oo,e)}co.prototype.run=function(){for(var e=this.options,t=e,n=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,r=e.cy,i=t.eles,a=i.nodes().not(":parent"),o=ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),c=o.x1+o.w/2,u=o.y1+o.h/2,l=[],s=0,f=0;f0)Math.abs(m[0].value-w.value)>=b&&(m=[],v.push(m));m.push(w)}var x=s+t.minNodeSpacing;if(!t.avoidOverlap){var k=v.length>0&&v[0].length>1,S=(Math.min(o.w,o.h)/2-x)/(v.length+k?1:0);x=Math.min(x,S)}for(var E=0,C=0;C1&&t.avoidOverlap){var O=Math.cos(T)-Math.cos(0),j=Math.sin(T)-Math.sin(0),R=Math.sqrt(x*x/(O*O+j*j));E=Math.max(R,E)}P.r=E,E+=x}if(t.equidistant){for(var M=0,I=0,N=0;N=e.numIter)&&(vo(r,e),r.temperature=r.temperature*e.coolingFactor,!(r.temperature=e.animationThreshold&&a(),X(t)):(Oo(r,e),c())}()}else{for(;l;)l=o(u),u++;Oo(r,e),c()}return this},lo.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},lo.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var so=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:e.width(),clientHeight:e.width(),boundingBox:ot(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()})},o=n.eles.components(),c={},u=0;u0){a.graphSet.push(w);for(u=0;ur.count?0:r.graph},ho=function e(t,n,r,i){var a=i.graphSet[r];if(-10)var c=(l=r.nodeOverlap*o)*i/(g=Math.sqrt(i*i+a*a)),u=l*a/g;else{var l,s=ko(e,i,a),f=ko(t,-1*i,-1*a),d=f.x-s.x,h=f.y-s.y,p=d*d+h*h,g=Math.sqrt(p);c=(l=(e.nodeRepulsion+t.nodeRepulsion)/p)*d/g,u=l*h/g}e.isLocked||(e.offsetX-=c,e.offsetY-=u),t.isLocked||(t.offsetX+=c,t.offsetY+=u)}},xo=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},ko=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,c=n/t,u=a/o,l={};return 0===t&&0n?(l.x=r,l.y=i+a/2,l):0t&&-1*u<=c&&c<=u?(l.x=r-o/2,l.y=i-o*n/2/t,l):0=u)?(l.x=r+a*t/2/n,l.y=i+a/2,l):0>n&&(c<=-1*u||c>=u)?(l.x=r-a*t/2/n,l.y=i-a/2,l):l},So=function(e,t){for(var n=0;n1){var p=t.gravity*f/h,g=t.gravity*d/h;s.offsetX+=p,s.offsetY+=g}}}}},Co=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],c=e.layoutNodes[o],u=c.children;if(0n)var i={x:n*e/r,y:n*t/r};else i={x:e,y:t};return i},To=function e(t,n){var r=t.parentId;if(null!=r){var i=n.layoutNodes[n.idToIndex[r]],a=!1;return(null==i.maxX||t.maxX+i.padRight>i.maxX)&&(i.maxX=t.maxX+i.padRight,a=!0),(null==i.minX||t.minX-i.padLefti.maxY)&&(i.maxY=t.maxY+i.padBottom,a=!0),(null==i.minY||t.minY-i.padTopp&&(f+=h+t.componentSpacing,s=0,d=0,h=0)}}},jo={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Ro(e){this.options=G({},jo,e)}Ro.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));var a=ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)r.nodes().layoutPositions(this,t,(function(e){return{x:a.x1,y:a.y1}}));else{var o=i.size(),c=Math.sqrt(o*a.h/a.w),u=Math.round(c),l=Math.round(a.w/a.h*c),s=function(e){if(null==e)return Math.min(u,l);Math.min(u,l)==u?u=e:l=e},f=function(e){if(null==e)return Math.max(u,l);Math.max(u,l)==u?u=e:l=e},d=t.rows,h=null!=t.cols?t.cols:t.columns;if(null!=d&&null!=h)u=d,l=h;else if(null!=d&&null==h)u=d,l=Math.ceil(o/u);else if(null==d&&null!=h)l=h,u=Math.ceil(o/l);else if(l*u>o){var p=s(),g=f();(p-1)*g>=o?s(p-1):(g-1)*p>=o&&f(g-1)}else for(;l*u=o?f(v+1):s(b+1)}var m=a.w/l,y=a.h/u;if(t.condense&&(m=0,y=0),t.avoidOverlap)for(var w=0;w=l&&(R=0,j++)},I={},N=0;N(r=mt(e,t,w[x],w[x+1],w[x+2],w[x+3])))return b(n,r),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(w=a.allpts,x=0;x+5(r=vt(e,t,w[x],w[x+1],w[x+2],w[x+3],w[x+4],w[x+5])))return b(n,r),!0;m=m||i.source,y=y||i.target;var k=o.getArrowWidth(u,s),S=[{name:"source",x:a.arrowStartX,y:a.arrowStartY,angle:a.srcArrowAngle},{name:"target",x:a.arrowEndX,y:a.arrowEndY,angle:a.tgtArrowAngle},{name:"mid-source",x:a.midX,y:a.midY,angle:a.midsrcArrowAngle},{name:"mid-target",x:a.midX,y:a.midY,angle:a.midtgtArrowAngle}];for(x=0;x0&&(v(m),v(y))}function y(e,t,n){return _e(e,t,n)}function w(n,r){var i,a=n._private,o=p;i=r?r+"-":"",n.boundingBox();var c=a.labelBounds[r||"main"],u=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&u){var l=y(a.rscratch,"labelX",r),s=y(a.rscratch,"labelY",r),f=y(a.rscratch,"labelAngle",r),d=n.pstyle(i+"text-margin-x").pfValue,h=n.pstyle(i+"text-margin-y").pfValue,g=c.x1-o-d,v=c.x2+o-d,m=c.y1-o-h,w=c.y2+o-h;if(f){var x=Math.cos(f),k=Math.sin(f),S=function(e,t){return{x:(e-=l)*x-(t-=s)*k+l,y:e*k+t*x+s}},E=S(g,m),C=S(g,w),P=S(v,m),_=S(v,w),T=[E.x+d,E.y+h,P.x+d,P.y+h,_.x+d,_.y+h,C.x+d,C.y+h];if(yt(e,t,T))return b(n),!0}else if(dt(c,e,t))return b(n),!0}}n&&(u=u.interactive);for(var x=u.length-1;x>=0;x--){var k=u[x];k.isNode()?v(k)||w(k):m(k)||w(k)||w(k,"source")||w(k,"target")}return l},getAllInBox:function(e,t,n,r){for(var i,a,o=this.getCachedZSortedEles().interactive,c=[],u=Math.min(e,n),l=Math.max(e,n),s=Math.min(t,r),f=Math.max(t,r),d=ot({x1:e=u,y1:t=s,x2:n=l,y2:r=f}),h=0;h0?Math.max(e-t,0):Math.min(e+t,0)},_=P(E,k),T=P(C,S),O=!1;"auto"===b?g=Math.abs(_)>Math.abs(T)?i:r:b===u||b===c?(g=r,O=!0):b!==a&&b!==o||(g=i,O=!0);var j,R=g===r,M=R?T:_,I=R?C:E,N=Je(I),L=!1;(O&&(m||w)||!(b===c&&I<0||b===u&&I>0||b===a&&I>0||b===o&&I<0)||(M=(N*=-1)*Math.abs(M),L=!0),m)?j=(y<0?1+y:y)*M:j=(y<0?M:0)+y*N;var A=function(e){return Math.abs(e)=Math.abs(M)},D=A(j),z=A(Math.abs(M)-Math.abs(j));if((D||z)&&!L)if(R){var B=Math.abs(I)<=f/2,H=Math.abs(E)<=d/2;if(B){var F=(l.x1+l.x2)/2,G=l.y1,V=l.y2;n.segpts=[F,G,F,V]}else if(H){var Y=(l.y1+l.y2)/2,W=l.x1,q=l.x2;n.segpts=[W,Y,q,Y]}else n.segpts=[l.x1,l.y2]}else{var U=Math.abs(I)<=s/2,$=Math.abs(C)<=h/2;if(U){var K=(l.y1+l.y2)/2,X=l.x1,Q=l.x2;n.segpts=[X,K,Q,K]}else if($){var Z=(l.x1+l.x2)/2,J=l.y1,ee=l.y2;n.segpts=[Z,J,Z,ee]}else n.segpts=[l.x2,l.y1]}else if(R){var te=l.y1+j+(p?f/2*N:0),ne=l.x1,re=l.x2;n.segpts=[ne,te,re,te]}else{var ie=l.x1+j+(p?s/2*N:0),ae=l.y1,oe=l.y2;n.segpts=[ie,ae,ie,oe]}},Wo.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,c=t.tgtW,u=t.tgtH,l=t.srcShape,s=t.tgtShape,f=!P(n.startX)||!P(n.startY),d=!P(n.arrowStartX)||!P(n.arrowStartY),h=!P(n.endX)||!P(n.endY),p=!P(n.arrowEndX)||!P(n.arrowEndY),g=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),b=et({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),v=bd.poolIndex()){var h=f;f=d,d=h}var p=c.srcPos=f.position(),g=c.tgtPos=d.position(),b=c.srcW=f.outerWidth(),v=c.srcH=f.outerHeight(),m=c.tgtW=d.outerWidth(),y=c.tgtH=d.outerHeight(),w=c.srcShape=n.nodeShapes[t.getNodeShape(f)],x=c.tgtShape=n.nodeShapes[t.getNodeShape(d)];c.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var k=0;k0){var G=l,V=tt(G,Xe(t)),Y=tt(G,Xe(F)),W=V;if(Y2)tt(G,{x:F[2],y:F[3]})0){var ie=s,ae=tt(ie,Xe(t)),oe=tt(ie,Xe(re)),ce=ae;if(oe2)tt(ie,{x:re[2],y:re[3]})=l||m){s={cp:g,segment:v};break}}if(s)break}var y=s.cp,w=s.segment,x=(l-d)/w.length,k=w.t1-w.t0,S=c?w.t0+k*x:w.t1-k*x;S=at(0,S,1),t=it(y.p0,y.p1,y.p2,S),i=function(e,t,n,r){var i=at(0,r-.001,1),a=at(0,r+.001,1),o=it(e,t,n,i),c=it(e,t,n,a);return Zo(o,c)}(y.p0,y.p1,y.p2,S);break;case"straight":case"segments":case"haystack":for(var E,C,P,_,T=0,O=r.allpts.length,j=0;j+3=l));j+=2);var R=(l-C)/E;R=at(0,R,1),t=function(e,t,n,r){var i=t.x-e.x,a=t.y-e.y,o=et(e,t),c=i/o,u=a/o;return n=null==n?0:n,r=null!=r?r:n*o,{x:e.x+c*r,y:e.y+u*r}}(P,_,R),i=Zo(P,_)}o("labelX",n,t.x),o("labelY",n,t.y),o("labelAutoAngle",n,i)}};l("source"),l("target"),this.applyLabelDimensions(e)}},Xo.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Xo.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=this.calculateLabelDimensions(e,r),a=e.pstyle("line-height").pfValue,o=e.pstyle("text-wrap").strValue,c=_e(n.rscratch,"labelWrapCachedLines",t)||[],u="wrap"!==o?1:Math.max(c.length,1),l=i.height/u,s=l*a,f=i.width,d=i.height+(u-1)*(a-1)*l;Te(n.rstyle,"labelWidth",t,f),Te(n.rscratch,"labelWidth",t,f),Te(n.rstyle,"labelHeight",t,d),Te(n.rscratch,"labelHeight",t,d),Te(n.rscratch,"labelLineHeight",t,s)},Xo.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",i=e.pstyle(r+"label").strValue,a=e.pstyle("text-transform").value,o=function(e,r){return r?(Te(n.rscratch,e,t,r),r):_e(n.rscratch,e,t)};if(!i)return"";"none"==a||("uppercase"==a?i=i.toUpperCase():"lowercase"==a&&(i=i.toLowerCase()));var c=e.pstyle("text-wrap").value;if("wrap"===c){var u=o("labelKey");if(null!=u&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l=i.split("\n"),s=e.pstyle("text-max-width").pfValue,f="anywhere"===e.pstyle("text-overflow-wrap").value,d=[],h=/[\s\u200b]+/,p=f?"":" ",g=0;gs){for(var y=b.split(h),w="",x=0;xE)break;C+=i[_],_===i.length-1&&(P=!0)}return P||(C+="\u2026"),C}return i},Xo.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Xo.calculateLabelDimensions=function(e,t){var n=oe(t,e._private.labelDimsKey),r=this.labelDimCache||(this.labelDimCache=[]),i=r[n];if(null!=i)return i;var a=e.pstyle("font-style").strValue,o=e.pstyle("font-size").pfValue,c=e.pstyle("font-family").strValue,u=e.pstyle("font-weight").strValue,l=this.labelCalcCanvas,s=this.labelCalcCanvasContext;if(!l){l=this.labelCalcCanvas=document.createElement("canvas"),s=this.labelCalcCanvasContext=l.getContext("2d");var f=l.style;f.position="absolute",f.left="-9999px",f.top="-9999px",f.zIndex="-1",f.visibility="hidden",f.pointerEvents="none"}s.font="".concat(a," ").concat(u," ").concat(o,"px ").concat(c);for(var d=0,h=0,p=t.split("\n"),g=0;g1&&void 0!==arguments[1])||arguments[1];if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var _=r(t);b&&(e.hoverData.tapholdCancelled=!0);i=!0,n(g,["mousemove","vmousemove","tapdrag"],t,{x:s[0],y:s[1]});var T=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:s[0],y:s[1]}}),p[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(3===e.hoverData.which){if(b){var O={originalEvent:t,type:"cxtdrag",position:{x:s[0],y:s[1]}};m?m.emit(O):o.emit(O),e.hoverData.cxtDragged=!0,e.hoverData.cxtOver&&g===e.hoverData.cxtOver||(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:s[0],y:s[1]}}),e.hoverData.cxtOver=g,g&&g.emit({originalEvent:t,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}}else if(e.hoverData.dragging){if(i=!0,o.panningEnabled()&&o.userPanningEnabled()){var j;if(e.hoverData.justStartedPan){var R=e.hoverData.mdownPos;j={x:(s[0]-R[0])*c,y:(s[1]-R[1])*c},e.hoverData.justStartedPan=!1}else j={x:y[0]*c,y:y[1]*c};o.panBy(j),o.emit("dragpan"),e.hoverData.dragged=!0}s=e.projectIntoViewport(t.clientX,t.clientY)}else if(1!=p[4]||null!=m&&!m.pannable()){if(m&&m.pannable()&&m.active()&&m.unactivate(),m&&m.grabbed()||g==v||(v&&n(v,["mouseout","tapdragout"],t,{x:s[0],y:s[1]}),g&&n(g,["mouseover","tapdragover"],t,{x:s[0],y:s[1]}),e.hoverData.last=g),m)if(b){if(o.boxSelectionEnabled()&&_)m&&m.grabbed()&&(f(w),m.emit("freeon"),w.emit("free"),e.dragData.didDrag&&(m.emit("dragfreeon"),w.emit("dragfree"))),T();else if(m&&m.grabbed()&&e.nodeIsDraggable(m)){var M=!e.dragData.didDrag;M&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||l(w,{inDragLayer:!0});var I={x:0,y:0};if(P(y[0])&&P(y[1])&&(I.x+=y[0],I.y+=y[1],M)){var N=e.hoverData.dragDelta;N&&P(N[0])&&P(N[1])&&(I.x+=N[0],I.y+=N[1])}e.hoverData.draggingEles=!0,w.silentShift(I).emit("position drag"),e.redrawHint("drag",!0),e.redraw()}}else!function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];0===t.length?(t.push(y[0]),t.push(y[1])):(t[0]+=y[0],t[1]+=y[1])}();i=!0}else if(b){if(e.hoverData.dragging||!o.boxSelectionEnabled()||!_&&o.panningEnabled()&&o.userPanningEnabled()){if(!e.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()){a(m,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,p[4]=0,e.data.bgActivePosistion=Xe(d),e.redrawHint("select",!0),e.redraw())}}else T();m&&m.pannable()&&m.active()&&m.unactivate()}return p[2]=s[0],p[3]=s[1],i?(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1):void 0}}),!1),e.registerBinding(window,"mouseup",(function(i){if(e.hoverData.capture){e.hoverData.capture=!1;var a=e.cy,o=e.projectIntoViewport(i.clientX,i.clientY),c=e.selection,u=e.findNearestElement(o[0],o[1],!0,!1),l=e.dragData.possibleDragElements,s=e.hoverData.down,d=r(i);if(e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,s&&s.unactivate(),3===e.hoverData.which){var h={originalEvent:i,type:"cxttapend",position:{x:o[0],y:o[1]}};if(s?s.emit(h):a.emit(h),!e.hoverData.cxtDragged){var p={originalEvent:i,type:"cxttap",position:{x:o[0],y:o[1]}};s?s.emit(p):a.emit(p)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(1===e.hoverData.which){if(n(u,["mouseup","tapend","vmouseup"],i,{x:o[0],y:o[1]}),e.dragData.didDrag||e.hoverData.dragged||e.hoverData.selecting||e.hoverData.isOverThresholdDrag||(n(s,["click","tap","vclick"],i,{x:o[0],y:o[1]}),y=!1,i.timeStamp-w<=a.multiClickDebounceTime()?(m&&clearTimeout(m),y=!0,w=null,n(s,["dblclick","dbltap","vdblclick"],i,{x:o[0],y:o[1]})):(m=setTimeout((function(){y||n(s,["oneclick","onetap","voneclick"],i,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),w=i.timeStamp)),null!=s||e.dragData.didDrag||e.hoverData.selecting||e.hoverData.dragged||r(i)||(a.$(t).unselect(["tapunselect"]),l.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=l=a.collection()),u!=s||e.dragData.didDrag||e.hoverData.selecting||null!=u&&u._private.selectable&&(e.hoverData.dragging||("additive"===a.selectionType()||d?u.selected()?u.unselect(["tapunselect"]):u.select(["tapselect"]):d||(a.$(t).unmerge(u).unselect(["tapunselect"]),u.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var g=a.collection(e.getAllInBox(c[0],c[1],c[2],c[3]));e.redrawHint("select",!0),g.length>0&&e.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:i,position:{x:o[0],y:o[1]}});var b=function(e){return e.selectable()&&!e.selected()};"additive"===a.selectionType()||d||a.$(t).unmerge(g).unselect(),g.emit("box").stdFilter(b).select().emit("boxselect"),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!c[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var v=s&&s.grabbed();f(l),v&&(s.emit("freeon"),l.emit("free"),e.dragData.didDrag&&(s.emit("dragfreeon"),l.emit("dragfree")))}}c[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null}}),!1);var k,S,E,C,_,T,O,j,R,M,I,N,L,A=function(t){if(!e.scrollingPage){var n=e.cy,r=n.zoom(),i=n.pan(),a=e.projectIntoViewport(t.clientX,t.clientY),o=[a[0]*r+i.x,a[1]*r+i.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||0!==e.selection[4])t.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var c;t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout((function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()}),150),c=null!=t.deltaY?t.deltaY/-250:null!=t.wheelDeltaY?t.wheelDeltaY/1e3:t.wheelDelta/1e3,c*=e.wheelSensitivity,1===t.deltaMode&&(c*=33);var u=n.zoom()*Math.pow(10,c);"gesturechange"===t.type&&(u=e.gestureStartZoom*t.scale),n.zoom({level:u,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===t.type?"pinchzoom":"scrollzoom")}}};e.registerBinding(e.container,"wheel",A,!0),e.registerBinding(window,"scroll",(function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout((function(){e.scrollingPage=!1}),250)}),!0),e.registerBinding(e.container,"gesturestart",(function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()}),!0),e.registerBinding(e.container,"gesturechange",(function(t){e.hasTouchStarted||A(t)}),!0),e.registerBinding(e.container,"mouseout",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),e.registerBinding(e.container,"mouseover",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var D,z,B,H,F,G,V,Y=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},W=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(e.registerBinding(e.container,"touchstart",D=function(t){if(e.hasTouchStarted=!0,x(t)){h(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var r=e.cy,i=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);i[0]=o[0],i[1]=o[1]}if(t.touches[1]){o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);i[2]=o[0],i[3]=o[1]}if(t.touches[2]){o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);i[4]=o[0],i[5]=o[1]}if(t.touches[1]){e.touchData.singleTouchMoved=!0,f(e.dragData.touchDragEles);var u=e.findContainerClientCoords();R=u[0],M=u[1],I=u[2],N=u[3],k=t.touches[0].clientX-R,S=t.touches[0].clientY-M,E=t.touches[1].clientX-R,C=t.touches[1].clientY-M,L=0<=k&&k<=I&&0<=E&&E<=I&&0<=S&&S<=N&&0<=C&&C<=N;var d=r.pan(),p=r.zoom();_=Y(k,S,E,C),T=W(k,S,E,C),j=[((O=[(k+E)/2,(S+C)/2])[0]-d.x)/p,(O[1]-d.y)/p];if(T<4e4&&!t.touches[2]){var g=e.findNearestElement(i[0],i[1],!0,!0),b=e.findNearestElement(i[2],i[3],!0,!0);return g&&g.isNode()?(g.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start=g):b&&b.isNode()?(b.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start=b):r.emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,void e.redraw()}}if(t.touches[2])r.boxSelectionEnabled()&&t.preventDefault();else if(t.touches[1]);else if(t.touches[0]){var v=e.findNearestElements(i[0],i[1],!0,!0),m=v[0];if(null!=m&&(m.activate(),e.touchData.start=m,e.touchData.starts=v,e.nodeIsGrabbable(m))){var y=e.dragData.touchDragEles=r.collection(),w=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),m.selected()?(w=r.$((function(t){return t.selected()&&e.nodeIsGrabbable(t)})),l(w,{addToList:y})):s(m,{addToList:y}),c(m);var P=function(e){return{originalEvent:t,type:e,position:{x:i[0],y:i[1]}}};m.emit(P("grabon")),w?w.forEach((function(e){e.emit(P("grab"))})):m.emit(P("grab"))}n(m,["touchstart","tapstart","vmousedown"],t,{x:i[0],y:i[1]}),null==m&&(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout((function(){!1!==e.touchData.singleTouchMoved||e.pinching||e.touchData.selecting||n(e.touchData.start,["taphold"],t,{x:i[0],y:i[1]})}),e.tapholdDuration)}if(t.touches.length>=1){for(var A=e.touchData.startPosition=[],D=0;D=e.touchTapThreshold2}if(r&&e.touchData.cxt){t.preventDefault();var w=t.touches[0].clientX-R,O=t.touches[0].clientY-M,I=t.touches[1].clientX-R,N=t.touches[1].clientY-M,A=W(w,O,I,N);if(A/T>=2.25||A>=22500){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var D={originalEvent:t,type:"cxttapend",position:{x:c[0],y:c[1]}};e.touchData.start?(e.touchData.start.unactivate().emit(D),e.touchData.start=null):o.emit(D)}}if(r&&e.touchData.cxt){D={originalEvent:t,type:"cxtdrag",position:{x:c[0],y:c[1]}};e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(D):o.emit(D),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var z=e.findNearestElement(c[0],c[1],!0,!0);e.touchData.cxtOver&&z===e.touchData.cxtOver||(e.touchData.cxtOver&&e.touchData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:c[0],y:c[1]}}),e.touchData.cxtOver=z,z&&z.emit({originalEvent:t,type:"cxtdragover",position:{x:c[0],y:c[1]}}))}else if(r&&t.touches[2]&&o.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:c[0],y:c[1]}}),e.touchData.selecting=!0,e.touchData.didSelect=!0,i[4]=1,i&&0!==i.length&&void 0!==i[0]?(i[2]=(c[0]+c[2]+c[4])/3,i[3]=(c[1]+c[3]+c[5])/3):(i[0]=(c[0]+c[2]+c[4])/3,i[1]=(c[1]+c[3]+c[5])/3,i[2]=(c[0]+c[2]+c[4])/3+1,i[3]=(c[1]+c[3]+c[5])/3+1),e.redrawHint("select",!0),e.redraw();else if(r&&t.touches[1]&&!e.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),ee=e.dragData.touchDragEles){e.redrawHint("drag",!0);for(var B=0;B0&&!e.hoverData.draggingEles&&!e.swipePanning&&null!=e.data.bgActivePosistion&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1),e.registerBinding(window,"touchcancel",B=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()}),e.registerBinding(window,"touchend",H=function(r){var i=e.touchData.start;if(e.touchData.capture){0===r.touches.length&&(e.touchData.capture=!1),r.preventDefault();var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o,c=e.cy,u=c.zoom(),l=e.touchData.now,s=e.touchData.earlier;if(r.touches[0]){var d=e.projectIntoViewport(r.touches[0].clientX,r.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(r.touches[1]){d=e.projectIntoViewport(r.touches[1].clientX,r.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(r.touches[2]){d=e.projectIntoViewport(r.touches[2].clientX,r.touches[2].clientY);l[4]=d[0],l[5]=d[1]}if(i&&i.unactivate(),e.touchData.cxt){if(o={originalEvent:r,type:"cxttapend",position:{x:l[0],y:l[1]}},i?i.emit(o):c.emit(o),!e.touchData.cxtDragged){var h={originalEvent:r,type:"cxttap",position:{x:l[0],y:l[1]}};i?i.emit(h):c.emit(h)}return e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,void e.redraw()}if(!r.touches[2]&&c.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var p=c.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint("select",!0),c.emit({type:"boxend",originalEvent:r,position:{x:l[0],y:l[1]}});p.emit("box").stdFilter((function(e){return e.selectable()&&!e.selected()})).select().emit("boxselect"),p.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(null!=i&&i.unactivate(),r.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(r.touches[1]);else if(r.touches[0]);else if(!r.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var g=e.dragData.touchDragEles;if(null!=i){var b=i._private.grabbed;f(g),e.redrawHint("drag",!0),e.redrawHint("eles",!0),b&&(i.emit("freeon"),g.emit("free"),e.dragData.didDrag&&(i.emit("dragfreeon"),g.emit("dragfree"))),n(i,["touchend","tapend","vmouseup","tapdragout"],r,{x:l[0],y:l[1]}),i.unactivate(),e.touchData.start=null}else{var v=e.findNearestElement(l[0],l[1],!0,!0);n(v,["touchend","tapend","vmouseup","tapdragout"],r,{x:l[0],y:l[1]})}var m=e.touchData.startPosition[0]-l[0],y=m*m,w=e.touchData.startPosition[1]-l[1],x=(y+w*w)*u*u;e.touchData.singleTouchMoved||(i||c.$(":selected").unselect(["tapunselect"]),n(i,["tap","vclick"],r,{x:l[0],y:l[1]}),F=!1,r.timeStamp-V<=c.multiClickDebounceTime()?(G&&clearTimeout(G),F=!0,V=null,n(i,["dbltap","vdblclick"],r,{x:l[0],y:l[1]})):(G=setTimeout((function(){F||n(i,["onetap","voneclick"],r,{x:l[0],y:l[1]})}),c.multiClickDebounceTime()),V=r.timeStamp)),null!=i&&!e.dragData.didDrag&&i._private.selectable&&x2){for(var T=[l[0],l[1]],O=Math.pow(T[0]-e,2)+Math.pow(T[1]-t,2),j=1;j0)return g[0]}return null},d=Object.keys(s),h=0;h0?u:pt(i,a,e,t,n,r,o)},checkPoint:function(e,t,n,r,i,a,o){var c=Mt(r,i),u=2*c;if(wt(e,t,this.points,a,o,r,i-u,[0,-1],n))return!0;if(wt(e,t,this.points,a,o,r-u,i,[0,-1],n))return!0;var l=r/2+2*n,s=i/2+2*n;return!!yt(e,t,[a-l,o-s,a-l,o,a+l,o,a+l,o-s])||(!!St(e,t,u,u,a+r/2-c,o+i/2-c,n)||!!St(e,t,u,u,a-r/2+c,o+i/2-c,n))}}},oc.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Ot(3,0)),this.generateRoundPolygon("round-triangle",Ot(3,0)),this.generatePolygon("rectangle",Ot(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",Ot(5,0)),this.generateRoundPolygon("round-pentagon",Ot(5,0)),this.generatePolygon("hexagon",Ot(6,0)),this.generateRoundPolygon("round-hexagon",Ot(6,0)),this.generatePolygon("heptagon",Ot(7,0)),this.generateRoundPolygon("round-heptagon",Ot(7,0)),this.generatePolygon("octagon",Ot(8,0)),this.generateRoundPolygon("round-octagon",Ot(8,0));var r=new Array(20),i=Rt(5,0),a=Rt(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var c=0;c=e.deqFastCost*g)break}else if(i){if(h>=e.deqCost*u||h>=e.deqAvgCost*c)break}else if(p>=e.deqNoDrawCost*fc)break;var b=e.deq(t,f,s);if(!(b.length>0))break;for(var v=0;v0&&(e.onDeqd(t,l),!i&&e.shouldRedraw(t,l,f,s)&&r())}),a(t))}}},hc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe;s(this,e),this.idsByKey=new Oe,this.keyForId=new Oe,this.cachesByLvl=new Oe,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return d(e,[{key:"getIdsFor",value:function(e){null==e&&ve("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new Re,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new Oe,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach((function(n){return t.deleteCache(e,n)}))}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),e}(),pc={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},gc=Ee({getKey:null,doesEleInvalidateKey:pe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:he,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),bc=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=gc(t);G(n,r),n.lookup=new hc(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},vc=bc.prototype;vc.reasons=pc,vc.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},vc.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},vc.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new a((function(e,t){return t.reqs-e.reqs}))},vc.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},vc.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,c=o.cy.zoom(),u=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed())return null;if(!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(Ze(c*n))),r<-4)r=-4;else if(c>=7.99||r>3)return null;var l=Math.pow(2,r),s=t.h*l,f=t.w*l,d=o.eleTextBiggerThanMin(e,l);if(!this.isVisible(e,d))return null;var h,p=u.get(e,r);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;if(h=s<=25?25:s<=50?50:50*Math.ceil(s/50),s>1024||f>1024)return null;var g=a.getTextureQueue(h),b=g[g.length-2],v=function(){return a.recycleTexture(h,f)||a.addTexture(h,f)};b||(b=g[g.length-1]),b||(b=v()),b.width-b.usedWidthr;_--)C=a.getElement(e,t,n,_,pc.downscale);P()}else{var T;if(!w&&!x&&!k)for(var O=r-1;O>=-4;O--){var j=u.get(e,O);if(j){T=j;break}}if(y(T))return a.queueElement(e,r),T;b.context.translate(b.usedWidth,0),b.context.scale(l,l),this.drawElement(b.context,e,t,d,!1),b.context.scale(1/l,1/l),b.context.translate(-b.usedWidth,0)}return p={x:b.usedWidth,texture:b,level:r,scale:l,width:f,height:s,scaledLabelShown:d},b.usedWidth+=Math.ceil(f+8),b.eleCaches.push(p),u.set(e,r,p),a.checkTextureFullness(b),p},vc.invalidateElements=function(e){for(var t=0;t=.2*e.width&&this.retireTexture(e)},vc.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>.8&&e.fullnessChecks>=10?Ce(t,e):e.fullnessChecks++},vc.retireTexture=function(e){var t=e.height,n=this.getTextureQueue(t),r=this.lookup;Ce(n,e),e.retired=!0;for(var i=e.eleCaches,a=0;a=t)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,Pe(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Ce(r,a),n.push(a),a}},vc.queueElement=function(e,t){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(e),a=r[i];if(a)a.level=Math.max(a.level,t),a.eles.merge(e),a.reqs++,n.updateItem(a);else{var o={eles:e.spawn().merge(e),level:t,reqs:1,key:i};n.push(o),r[i]=o}},vc.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o<1&&n.size()>0;o++){var c=n.pop(),u=c.key,l=c.eles[0],s=a.hasCache(l,c.level);if(r[u]=null,!s){i.push(c);var f=t.getBoundingBox(l);t.getElement(l,f,e,c.level,pc.dequeue)}}return i},vc.removeFromQueue=function(e){var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=de,t.updateItem(i),t.pop(),n[r]=null):i.eles.unmerge(e))},vc.onDequeue=function(e){this.onDequeues.push(e)},vc.offDequeue=function(e){Ce(this.onDequeues,e)},vc.setupDequeueing=dc({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=3.99||n>2)return null;r.validateLayersElesOrdering(n,e);var o,c,u=r.layersByLevel,l=Math.pow(2,n),s=u[n]=u[n]||[];if(r.levelIsComplete(n,e))return s;!function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return c=u[t],!0},i=function(e){if(!c)for(var r=n+e;-4<=r&&r<=2&&!t(r);r+=e);};i(1),i(-1);for(var a=s.length-1;a>=0;a--){var o=s[a];o.invalid&&Ce(s,o)}}();var f=function(t){var i=(t=t||{}).after;if(function(){if(!o){o=ot();for(var t=0;t16e6)return null;var a=r.makeLayer(o,n);if(null!=i){var c=s.indexOf(i)+1;s.splice(c,0,a)}else(void 0===t.insert||t.insert)&&s.unshift(a);return a};if(r.skipping&&!a)return null;for(var d=null,h=e.length/1,p=!a,g=0;g=h||!ht(d.bb,b.boundingBox()))&&!(d=f({insert:!0,after:d})))return null;c||p?r.queueLayer(d,b):r.drawEleInLayer(d,b,n,t),d.eles.push(b),m[n]=d}}return c||(p?null:s)},yc.getEleLevelForLayerLevel=function(e,t){return e},yc.drawEleInLayer=function(e,t,n,r){var i=this.renderer,a=e.context,o=t.boundingBox();0!==o.w&&0!==o.h&&t.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(a,!1),i.drawCachedElement(a,t,null,null,n,true),i.setImgSmoothing(a,!0))},yc.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,i=0;i0)return!1;if(a.invalid)return!1;r+=a.eles.length}return r===t.length},yc.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){e=!0;break}}return e},yc.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=Q(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,(function(e,n,r){t.invalidateLayer(e)})))},yc.invalidateLayer=function(e){if(this.lastInvalidationTime=Q(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];Ce(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this,c=t._private.rscratch;if((!a||t.visible())&&!c.badLine&&null!=c.allpts&&!isNaN(c.allpts[0])){var u;n&&(u=n,e.translate(-u.x1,-u.y1));var l=a?t.pstyle("opacity").value:1,s=a?t.pstyle("line-opacity").value:1,f=t.pstyle("curve-style").value,d=t.pstyle("line-style").value,h=t.pstyle("width").pfValue,p=t.pstyle("line-cap").value,g=l*s,b=l*s,v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;"straight-triangle"===f?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,c.allpts)):(e.lineWidth=h,e.lineCap=p,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,c.allpts,d),e.lineCap="butt")},m=function(){i&&o.drawEdgeOverlay(e,t)},y=function(){i&&o.drawEdgeUnderlay(e,t)},w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;o.drawArrowheads(e,t,n)},x=function(){o.drawElementText(e,t,null,r)};e.lineJoin="round";var k="yes"===t.pstyle("ghost").value;if(k){var S=t.pstyle("ghost-offset-x").pfValue,E=t.pstyle("ghost-offset-y").pfValue,C=t.pstyle("ghost-opacity").value,P=g*C;e.translate(S,E),v(P),w(P),e.translate(-S,-E)}y(),v(),w(),m(),x(),n&&e.translate(u.x1,u.y1)}}},Dc=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var i=this,a=i.usePaths(),o=n._private.rscratch,c=2*n.pstyle("".concat(e,"-padding")).pfValue,u=n.pstyle("".concat(e,"-color")).value;t.lineWidth=c,"self"!==o.edgeType||a?t.lineCap="round":t.lineCap="butt",i.colorStrokeStyle(t,u[0],u[1],u[2],r),i.drawEdgePath(n,t,o.allpts,"solid")}}}};Ac.drawEdgeOverlay=Dc("overlay"),Ac.drawEdgeUnderlay=Dc("underlay"),Ac.drawEdgePath=function(e,t,n,r){var i,a=e._private.rscratch,o=t,c=!1,u=this.usePaths(),l=e.pstyle("line-dash-pattern").pfValue,s=e.pstyle("line-dash-offset").pfValue;if(u){var f=n.join("$");a.pathCacheKey&&a.pathCacheKey===f?(i=t=a.pathCache,c=!0):(i=t=new Path2D,a.pathCacheKey=f,a.pathCache=i)}if(o.setLineDash)switch(r){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(l),o.lineDashOffset=s;break;case"solid":o.setLineDash([])}if(!c&&!a.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&void 0!==arguments[5]?arguments[5]:5;e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath(),e.fill()}Bc.eleTextBiggerThanMin=function(e,t){if(!t){var n=e.cy().zoom(),r=this.getPixelRatio(),i=Math.ceil(Ze(n*r));t=Math.pow(2,i)}return!(e.pstyle("font-size").pfValue*t5&&void 0!==arguments[5])||arguments[5],o=this;if(null==r){if(a&&!o.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var c=t.pstyle("label");if(!c||!c.value)return;var u=o.getLabelJustification(t);e.textAlign=u,e.textBaseline="bottom"}else{var l=t.element()._private.rscratch.badLine,s=t.pstyle("label"),f=t.pstyle("source-label"),d=t.pstyle("target-label");if(l||(!s||!s.value)&&(!f||!f.value)&&(!d||!d.value))return;e.textAlign="center",e.textBaseline="bottom"}var h,p=!n;n&&(h=n,e.translate(-h.x1,-h.y1)),null==i?(o.drawText(e,t,null,p,a),t.isEdge()&&(o.drawText(e,t,"source",p,a),o.drawText(e,t,"target",p,a))):o.drawText(e,t,i,p,a),n&&e.translate(h.x1,h.y1)},Bc.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&void 0!==arguments[2])||arguments[2],r=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",a=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,c=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,u=t.pstyle("text-outline-opacity").value*c,l=t.pstyle("color").value,s=t.pstyle("text-outline-color").value;e.font=r+" "+o+" "+i+" "+a,e.lineJoin="round",this.colorFillStyle(e,l[0],l[1],l[2],c),this.colorStrokeStyle(e,s[0],s[1],s[2],u)},Bc.getTextAngle=function(e,t){var n=e._private.rscratch,r=t?t+"-":"",i=e.pstyle(r+"text-rotation"),a=_e(n,"labelAngle",t);return"autorotate"===i.strValue?e.isEdge()?a:0:"none"===i.strValue?0:i.pfValue},Bc.drawText=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=t._private,o=a.rscratch,c=i?t.effectiveOpacity():1;if(!i||0!==c&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var u,l,s=_e(o,"labelX",n),f=_e(o,"labelY",n),d=this.getLabelText(t,n);if(null!=d&&""!==d&&!isNaN(s)&&!isNaN(f)){this.setupTextStyle(e,t,i);var h,p=n?n+"-":"",g=_e(o,"labelWidth",n),b=_e(o,"labelHeight",n),v=t.pstyle(p+"text-margin-x").pfValue,m=t.pstyle(p+"text-margin-y").pfValue,y=t.isEdge(),w=t.pstyle("text-halign").value,x=t.pstyle("text-valign").value;switch(y&&(w="center",x="center"),s+=v,f+=m,0!==(h=r?this.getTextAngle(t,n):0)&&(u=s,l=f,e.translate(u,l),e.rotate(h),s=0,f=0),x){case"top":break;case"center":f+=b/2;break;case"bottom":f+=b}var k=t.pstyle("text-background-opacity").value,S=t.pstyle("text-border-opacity").value,E=t.pstyle("text-border-width").pfValue,C=t.pstyle("text-background-padding").pfValue;if(k>0||E>0&&S>0){var P=s-C;switch(w){case"left":P-=g;break;case"center":P-=g/2}var _=f-b-C,T=g+2*C,O=b+2*C;if(k>0){var j=e.fillStyle,R=t.pstyle("text-background-color").value;e.fillStyle="rgba("+R[0]+","+R[1]+","+R[2]+","+k*c+")";var M=t.pstyle("text-background-shape").strValue;0===M.indexOf("round")?Hc(e,P,_,T,O,2):e.fillRect(P,_,T,O),e.fillStyle=j}if(E>0&&S>0){var I=e.strokeStyle,N=e.lineWidth,L=t.pstyle("text-border-color").value,A=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+L[0]+","+L[1]+","+L[2]+","+S*c+")",e.lineWidth=E,e.setLineDash)switch(A){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=E/4,e.setLineDash([]);break;case"solid":e.setLineDash([])}if(e.strokeRect(P,_,T,O),"double"===A){var D=E/2;e.strokeRect(P+D,_+D,T-2*D,O-2*D)}e.setLineDash&&e.setLineDash([]),e.lineWidth=N,e.strokeStyle=I}}var z=2*t.pstyle("text-outline-width").pfValue;if(z>0&&(e.lineWidth=z),"wrap"===t.pstyle("text-wrap").value){var B=_e(o,"labelWrapCachedLines",n),H=_e(o,"labelLineHeight",n),F=g/2,G=this.getLabelJustification(t);switch("auto"===G||("left"===w?"left"===G?s+=-g:"center"===G&&(s+=-F):"center"===w?"left"===G?s+=-F:"right"===G&&(s+=F):"right"===w&&("center"===G?s+=F:"right"===G&&(s+=g))),x){case"top":case"center":case"bottom":f-=(B.length-1)*H}for(var V=0;V0&&e.strokeText(B[V],s,f),e.fillText(B[V],s,f),f+=H}else z>0&&e.strokeText(d,s,f),e.fillText(d,s,f);0!==h&&(e.rotate(-h),e.translate(-u,-l))}}};var Fc={drawNode:function(e,t,n){var r,i,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=this,l=t._private,s=l.rscratch,f=t.position();if(P(f.x)&&P(f.y)&&(!c||t.visible())){var d,h,p=c?t.effectiveOpacity():1,g=u.usePaths(),b=!1,v=t.padding();r=t.width()+2*v,i=t.height()+2*v,n&&(h=n,e.translate(-h.x1,-h.y1));for(var m=t.pstyle("background-image"),y=m.value,w=new Array(y.length),x=new Array(y.length),k=0,S=0;S0&&void 0!==arguments[0]?arguments[0]:j;u.eleFillStyle(e,t,n)},L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;u.colorStrokeStyle(e,R[0],R[1],R[2],t)},A=t.pstyle("shape").strValue,D=t.pstyle("shape-polygon-points").pfValue;if(g){e.translate(f.x,f.y);var z=u.nodePathCache=u.nodePathCache||[],B=ce("polygon"===A?A+","+D.join(","):A,""+i,""+r),H=z[B];null!=H?(d=H,b=!0,s.pathCache=d):(d=new Path2D,z[B]=s.pathCache=d)}var F=function(){if(!b){var n=f;g&&(n={x:0,y:0}),u.nodeShapes[u.getNodeShape(t)].draw(d||e,n.x,n.y,r,i)}g?e.fill(d):e.fill()},G=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=l.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;u.hasPie(t)&&(u.drawPie(e,t,a),n&&(g||u.nodeShapes[u.getNodeShape(t)].draw(e,f.x,f.y,r,i)))},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,n=(T>0?T:-T)*t,r=T>0?0:255;0!==T&&(u.colorFillStyle(e,r,r,r,n),g?e.fill(d):e.fill())},W=function(){if(O>0){if(e.lineWidth=O,e.lineCap="butt",e.setLineDash)switch(M){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}if(g?e.stroke(d):e.stroke(),"double"===M){e.lineWidth=O/3;var t=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(d):e.stroke(),e.globalCompositeOperation=t}e.setLineDash&&e.setLineDash([])}},q=function(){o&&u.drawNodeOverlay(e,t,f,r,i)},U=function(){o&&u.drawNodeUnderlay(e,t,f,r,i)},$=function(){u.drawElementText(e,t,null,a)},K="yes"===t.pstyle("ghost").value;if(K){var X=t.pstyle("ghost-offset-x").pfValue,Q=t.pstyle("ghost-offset-y").pfValue,Z=t.pstyle("ghost-opacity").value,J=Z*p;e.translate(X,Q),N(Z*j),F(),G(J,!0),L(Z*I),W(),V(0!==T||0!==O),G(J,!1),Y(J),e.translate(-X,-Q)}g&&e.translate(-f.x,-f.y),U(),g&&e.translate(f.x,f.y),N(),F(),G(p,!0),L(),W(),V(0!==T||0!==O),G(p,!1),Y(),g&&e.translate(-f.x,-f.y),$(),q(),n&&e.translate(h.x1,h.y1)}}},Gc=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n,r,i,a){if(n.visible()){var o=n.pstyle("".concat(e,"-padding")).pfValue,c=n.pstyle("".concat(e,"-opacity")).value,u=n.pstyle("".concat(e,"-color")).value,l=n.pstyle("".concat(e,"-shape")).value;if(c>0){if(r=r||n.position(),null==i||null==a){var s=n.padding();i=n.width()+2*s,a=n.height()+2*s}this.colorFillStyle(t,u[0],u[1],u[2],c),this.nodeShapes[l].draw(t,r.x,r.y,i+2*o,a+2*o),t.fill()}}}};Fc.drawNodeOverlay=Gc("overlay"),Fc.drawNodeUnderlay=Gc("underlay"),Fc.hasPie=function(e){return(e=e[0])._private.hasPie},Fc.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var i=t.cy().style(),a=t.pstyle("pie-size"),o=r.x,c=r.y,u=t.width(),l=t.height(),s=Math.min(u,l)/2,f=0;this.usePaths()&&(o=0,c=0),"%"===a.units?s*=a.pfValue:void 0!==a.pfValue&&(s=a.pfValue/2);for(var d=1;d<=i.pieBackgroundN;d++){var h=t.pstyle("pie-"+d+"-background-size").value,p=t.pstyle("pie-"+d+"-background-color").value,g=t.pstyle("pie-"+d+"-background-opacity").value*n,b=h/100;b+f>1&&(b=1-f);var v=1.5*Math.PI+2*Math.PI*f,m=v+2*Math.PI*b;0===h||f>=1||f+b>1||(e.beginPath(),e.moveTo(o,c),e.arc(o,c,s,v,m),e.closePath(),this.colorFillStyle(e,p[0],p[1],p[2],g),e.fill(),f+=b)}};var Vc={};Vc.getPixelRatio=function(){var e=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},Vc.paintCache=function(e){for(var t,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;io.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(s[o.NODE]=!0,s[o.SELECT_BOX]=!0);var m=u.style(),y=u.zoom(),w=void 0!==i?i:y,x=u.pan(),k={x:x.x,y:x.y},S={zoom:y,pan:{x:x.x,y:x.y}},E=o.prevViewport;void 0===E||S.zoom!==E.zoom||S.pan.x!==E.pan.x||S.pan.y!==E.pan.y||g&&!p||(o.motionBlurPxRatio=1),a&&(k=a),w*=c,k.x*=c,k.y*=c;var C=o.getCachedZSortedEles();function P(e,t,n,r,i){var a=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",o.colorFillStyle(e,255,255,255,o.motionBlurTransparency),e.fillRect(t,n,r,i),e.globalCompositeOperation=a}function _(e,r){var c,u,s,f;o.clearingMotionBlur||e!==l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&e!==l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(c=k,u=w,s=o.canvasWidth,f=o.canvasHeight):(c={x:x.x*h,y:x.y*h},u=y*h,s=o.canvasWidth*h,f=o.canvasHeight*h),e.setTransform(1,0,0,1,0,0),"motionBlur"===r?P(e,0,0,s,f):t||void 0!==r&&!r||e.clearRect(0,0,s,f),n||(e.translate(c.x,c.y),e.scale(u,u)),a&&e.translate(a.x,a.y),i&&e.scale(i,i)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=u.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var T=o.data.bufferContexts[o.TEXTURE_BUFFER];T.setTransform(1,0,0,1,0,0),T.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:T,drawOnlyNodeLayer:!0,forcedPxRatio:c*o.textureMult}),(S=o.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-S.pan.x)/S.zoom,y:(0-S.pan.y)/S.zoom}}s[o.DRAG]=!1,s[o.NODE]=!1;var O=l.contexts[o.NODE],j=o.textureCache.texture;S=o.textureCache.viewport;O.setTransform(1,0,0,1,0,0),d?P(O,0,0,S.width,S.height):O.clearRect(0,0,S.width,S.height);var R=m.core("outside-texture-bg-color").value,M=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(O,R[0],R[1],R[2],M),O.fillRect(0,0,S.width,S.height);y=u.zoom();_(O,!1),O.clearRect(S.mpan.x,S.mpan.y,S.width/S.zoom/c,S.height/S.zoom/c),O.drawImage(j,S.mpan.x,S.mpan.y,S.width/S.zoom/c,S.height/S.zoom/c)}else o.textureOnViewport&&!t&&(o.textureCache=null);var I=u.extent(),N=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),L=o.hideEdgesOnViewport&&N,A=[];if(A[o.NODE]=!s[o.NODE]&&d&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,A[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),A[o.DRAG]=!s[o.DRAG]&&d&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,A[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),s[o.NODE]||n||r||A[o.NODE]){var D=d&&!A[o.NODE]&&1!==h;_(O=t||(D?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),d&&!D?"motionBlur":void 0),L?o.drawCachedNodes(O,C.nondrag,c,I):o.drawLayeredElements(O,C.nondrag,c,I),o.debug&&o.drawDebugPoints(O,C.nondrag),n||d||(s[o.NODE]=!1)}if(!r&&(s[o.DRAG]||n||A[o.DRAG])){D=d&&!A[o.DRAG]&&1!==h;_(O=t||(D?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]),d&&!D?"motionBlur":void 0),L?o.drawCachedNodes(O,C.drag,c,I):o.drawCachedElements(O,C.drag,c,I),o.debug&&o.drawDebugPoints(O,C.drag),n||d||(s[o.DRAG]=!1)}if(o.showFps||!r&&s[o.SELECT_BOX]&&!n){if(_(O=t||l.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){y=o.cy.zoom();var z=m.core("selection-box-border-width").value/y;O.lineWidth=z,O.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",O.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),z>0&&(O.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",O.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){y=o.cy.zoom();var B=l.bgActivePosistion;O.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",O.beginPath(),O.arc(B.x,B.y,m.core("active-bg-size").pfValue/y,0,2*Math.PI),O.fill()}var H=o.lastRedrawTime;if(o.showFps&&H){H=Math.round(H);var F=Math.round(1e3/H);O.setTransform(1,0,0,1,0,0),O.fillStyle="rgba(255, 0, 0, 0.75)",O.strokeStyle="rgba(255, 0, 0, 0.75)",O.lineWidth=1,O.fillText("1 frame = "+H+" ms = "+F+" fps",0,20);O.strokeRect(0,30,250,20),O.fillRect(0,30,250*Math.min(F/60,1),20)}n||(s[o.SELECT_BOX]=!1)}if(d&&1!==h){var G=l.contexts[o.NODE],V=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],Y=l.contexts[o.DRAG],W=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],q=function(e,t,n){e.setTransform(1,0,0,1,0,0),n||!v?e.clearRect(0,0,o.canvasWidth,o.canvasHeight):P(e,0,0,o.canvasWidth,o.canvasHeight);var r=h;e.drawImage(t,0,0,o.canvasWidth*r,o.canvasHeight*r,0,0,o.canvasWidth,o.canvasHeight)};(s[o.NODE]||A[o.NODE])&&(q(G,V,A[o.NODE]),s[o.NODE]=!1),(s[o.DRAG]||A[o.DRAG])&&(q(Y,W,A[o.DRAG]),s[o.DRAG]=!1)}o.prevViewport=S,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),d&&(o.motionBlurTimeout=setTimeout((function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,s[o.NODE]=!0,s[o.DRAG]=!0,o.redraw()}),100)),t||u.emit("render")};for(var Yc={drawPolygonPath:function(e,t,n,r,i,a){var o=r/2,c=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+c*a[1]);for(var u=1;u0&&a>0){d.clearRect(0,0,i,a),d.globalCompositeOperation="source-over";var h=this.getCachedZSortedEles();if(e.full)d.translate(-n.x1*u,-n.y1*u),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(n.x1*u,n.y1*u);else{var p=t.pan(),g={x:p.x*u,y:p.y*u};u*=t.zoom(),d.translate(g.x,g.y),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(-g.x,-g.y)}e.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=e.bg,d.rect(0,0,i,a),d.fill())}return f},Qc.png=function(e){return Jc(e,this.bufferCanvasImage(e),"image/png")},Qc.jpg=function(e){return Jc(e,this.bufferCanvasImage(e),"image/jpeg")};var eu={nodeShapeImpl:function(e,t,n,r,i,a,o){switch(e){case"ellipse":return this.drawEllipsePath(t,n,r,i,a);case"polygon":return this.drawPolygonPath(t,n,r,i,a,o);case"round-polygon":return this.drawRoundPolygonPath(t,n,r,i,a,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,n,r,i,a);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,n,r,i,a);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,n,r,i,a);case"barrel":return this.drawBarrelPath(t,n,r,i,a)}}},tu=ru,nu=ru.prototype;function ru(e){var t=this;t.data={canvases:new Array(nu.CANVAS_LAYERS),contexts:new Array(nu.CANVAS_LAYERS),canvasNeedsRedraw:new Array(nu.CANVAS_LAYERS),bufferCanvases:new Array(nu.BUFFER_COUNT),bufferContexts:new Array(nu.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",r="rgba(0,0,0,0)";t.data.canvasContainer=document.createElement("div");var i=t.data.canvasContainer.style;t.data.canvasContainer.style[n]=r,i.position="relative",i.zIndex="0",i.overflow="hidden";var a=e.cy.container();a.appendChild(t.data.canvasContainer),a.style[n]=r;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};b&&b.userAgent.match(/msie|trident|edge/i)&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var c=0;ct?1:0},h=function(e,t,n,r,i){var a;if(null==n&&(n=0),null==i&&(i=o),n<0)throw new Error("lo must be non-negative");for(null==r&&(r=e.length);nn;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),u=[],r=0,i=a.length;rg;0<=g?++s:--s)b.push(l(e,n));return b},m=function(e,t,n,r){var i,a,c;for(null==r&&(r=o),i=e[n];n>t&&r(i,a=e[c=n-1>>1])<0;)e[n]=a,n=c;return e[n]=i},y=function(e,t,n){var r,i,a,c,u;for(null==n&&(n=o),i=e.length,u=t,a=e[t],r=2*t+1;r=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(void 0!==t[e])return!1;if(0!=Object.getOwnPropertyNames(t).length)return!1;if(t[e]=42,42!==t[e])return!1;if(0==Object.getOwnPropertyNames(t).length)return!1;return!0}()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[":"+e]},e.prototype.set=function(e,t){this.obj[":"+e]=t},e.prototype[UL]=function(e){delete this.obj[":"+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)58==t.charCodeAt(0)&&e.push(t.substring(1));return e});return e}()}()}function Ma(e,t){qx(),LM.dc(e,t)}function Ia(e,t){return Fb(e,t)}function Na(e,t){return e.a.B(t)}function La(e,t){return e.g[t.e]}function Aa(e,t){return e.i[t.e]}function Da(e,t){return e.j[t.e]}function za(e,t){return e.n[t.e]}function Ba(e,t){return e.o[t.e]}function Ha(e,t){return e>t?e:t}function Fa(e,t){return e>t?e:t}function Ga(e,t){return e>t?e:t}function Va(e,t){return et?1:0}function Yl(e){return null!=e?dS(e):0}function Wl(e){this.a=Wu(),this.b=e}function ql(e){this.a=Wu(),this.b=e}function Ul(e){this.a=e,ah.call(this,e)}function $l(){rs(),this.b=new Cn(this)}function Kl(){var e;Kl=a,e=new la(", "),Hh(VM),mA=new rh(e,e)}function Xl(){Xl=a,bA=new pl,gA=new Dl}function Ql(){Ql=a,wA=new g,xA=new b}function Zl(){Zl=a,SA=new Zc,EA=new Pl}function Jl(){Jl=a,jA=new gl,OA=new Es}function es(){es=a,UA=new y,$A=new w}function ts(e){e.g=new At,e.b=new At}function ns(e){e.a=new mt,e.c=new mt}function rs(){rs=a,JG=new Xe,ZG=new oh}function is(){Vo.call(this,"IS_NULL",2)}function as(){Hu.call(this,"Head",1)}function os(){Hu.call(this,"Tail",3)}function cs(e,t){mw.call(this,e,t,null)}function us(e,t){iC(e,0,e.length,t)}function ls(e,t){return Ad(t.a,e.a),e.a}function ss(e,t){return e.a*=t,e.b*=t,e}function fs(e,t){sg(),this.a=e,this.b=t}function ds(e,t){return e.a[t.d.k][t.k]}function hs(e,t){return e.a[t.d.k][t.k]}function ps(e,t){return so(function(e,t){var n,r;n=null,r=e.b;for(;r;)e.a.$b(t,r.d)>=0?r=r.a[1]:(n=r,r=r.a[0]);return n}(e.a,t))}function gs(e,t){return so(function(e,t){var n,r;n=null,r=e.b;for(;r;)e.a.$b(t,r.d)<=0?r=r.a[0]:(n=r,r=r.a[1]);return n}(e.a,t))}function bs(e,t){return Kd(fP(e.a,t),20)}function vs(e,t){return null!=e&&QE(e,t)}function ms(e){return e.a=t)throw new Pi}function Qd(e,t){return Hh(e),Hh(t),new hh(e,t)}function Zd(e,t){return Hh(e),Hh(t),new ph(e,t)}function Jd(e,t,n){return e=n+1&&e.splice(0,n+1);break}return e}(LM.ec(e))}function Th(e,t){var n;return(n=Wp(e,t)).g=2,n}function Oh(e,t){e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a}function jh(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Rh(e){return e.b.c.length+e.e.c.length}function Mh(e){return Array.isArray(e)&&e.ad===i}function Ih(e,t){return Ql(),-1!=Jx(new Qn(e),t)}function Nh(e,t,n,r,i,a){return eP(e,t,n,r,i,0,a)}function Lh(e,t,n){es(),ov.call(this,e.b,t,n,e.d)}function Ah(e,t){es(),ov.call(this,e.b,t,e.c,e.d)}function Dh(e,t,n){Im(t,e.c.length),ju(e.c,t,n)}function zh(e,t){return Nm(t,e.a.length),e.a[t]}function Bh(e){e.sort((function(e,t){return e-t}))}function Hh(e){if(null==e)throw new Xr;return e}function Fh(e){if(null==e)throw new Xr;this.a=e}function Gh(e,t,n){if(e.a!=t)throw new xi;e.a=n}function Vh(e,t){if(!e)throw new ua((ci(),t))}function Yh(e,t){if(!e)throw new Sa((ci(),t))}function Wh(e){if(null==e)throw new Xr;return e}function qh(e){ur.call(this,new pm),Tw(this,e)}function Uh(e){this.a=new Kc(e.Y()),Tw(this,e)}function $h(e){this.c=e,this.a=new $c(this.c.a)}function Kh(e){sg(),this.a=($g(),new er(Hh(e)))}function Xh(){(Xh=a)(),i$=!1,a$=!0}function Qh(){Qh=a,l$=Dm(nA,HM,24,256,0,1)}function Zh(){Zh=a,sV=xh(kh(new yS,(EM(),KF)),yG)}function Jh(){Jh=a,VH=new S,WH=new ch,YH=new E}function ep(e){return null!=e&&zp(e)&&!(e.ad===i)}function tp(e){return!Array.isArray(e)&&e.ad===i}function np(e,t){return Rs(t)?Bg(e,t):U_(e.d,t)}function rp(e,t){return vs(t,17)&&Qs(e,Kd(t,17))}function ip(e,t){return vs(t,17)&&function(e,t){if(t&&e.b[t.e]==t)return Up(e.b,t.e,null),--e.c,!0;return!1}(e,Kd(t,17))}function ap(e,t){var n;return wx(n=jS(e),t),n}function op(e,t){return!e&&(e=[]),e[e.length]=t,e}function cp(e,t,n){if(!e)throw new ua(function(e,t){var n,r,i,a;ci(),e=null==e?VM:e,e.length,t.length,n=new no,a=0,r=0;for(;r0),e.a.sb(e.c=--e.b)}function yp(e){e.b?yp(e.b):e.d.V()&&np(e.f.b,e.e)}function wp(e){if(vS(e.d),e.d.d!=e.c)throw new xi}function xp(e,t){if(t[VL]!=e[VL])throw new xi}function kp(e,t){return Ql(),Hh(e),Hh(t),new zo(e,t)}function Sp(e,t){sg(),$o.call(this,e,Wx(new Zn(t)))}function Ep(e,t,n,r){this.a=e,Bm.call(this,e,t,n,r)}function Cp(e){this.a=Math.cos(e),this.b=Math.sin(e)}function Pp(e,t,n){Vi.call(this,e),this.b=t,this.a=n}function _p(e){this.b=new At,this.a=new At,this.c=e}function Tp(e){this.c=new sa,this.a=new At,this.b=e}function Op(){Op=a,zA=new nn(!1),BA=new nn(!0)}function jp(e,t){return++e.d,e.c[e.c.length]=t,!0}function Rp(e,t){Vv(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Mp(e,t){return null==e.a.db(t,e)}function Ip(e,t){return Qm(e.slice(0,t),e)}function Np(e,t){return Qm(new Array(t),e)}function Lp(e,t,n){var r;return r=e.b[t],e.b[t]=n,r}function Ap(e){return Ps(),_d(function(e){var t;return Kd((t=e.g)?t:e.g=new $t(e),20)}(e.a).mb(),(Zl(),SA))}function Dp(e){return Ql(),new zl(Fl(Zd(e.a,new p)))}function zp(e){return typeof e===BM||typeof e===qM}function Bp(e){r.setTimeout((function(){throw e}),0)}function Hp(e){return Hh(e),vs(e,345)?Kd(e,345):cC(e)}function Fp(e,t){return null==tk(e.a,t,(Xh(),i$))}function Gp(e,t){var n;return function(e,t){if(e<0||e>=t)throw new ca(function(e,t){if(e<0)return aO(dI,Fx(Ia(eA,1),hI,1,4,["index",lS(e)]));if(t<0)throw new ua(pI+t);return aO("%s (%s) must be less than size (%s)",Fx(Ia(eA,1),hI,1,4,["index",lS(e),lS(t)]))}(e,t))}(t,n=e.a.Y()),n-1-t}function Vp(e,t,n){var r;return r=Gy(e,t),function(e,t,n){if(n){var r=n.gc();n=r(n)}else n=void 0;e.a[t]=n}(e,t,n),r}function Yp(e,t,n){var r;return cw(n,r=Wp(e,t)),r}function Wp(e,t){var n;return(n=new uk).i=e,n.d=t,n}function qp(e,t,n){this.a=e,Hv(n,t),this.c=t,this.b=n}function Up(e,t,n){return function(e){if(!e)throw new $r}(null==n||function(e,t){switch(Iy(e)){case 5:return Rs(t);case 6:return js(t);case 7:return xf(t);case 0:return QE(t,e.__elementTypeId$);case 2:return zp(t)&&!(t.ad===i);case 1:return zp(t)&&!(t.ad===i)||QE(t,e.__elementTypeId$);default:return!0}}(e,n)),e[t]=n}function $p(e){e.a=null,e.e=null,Rm(e.b),e.d=0,++e.c}function Kp(e){return e.f||(e.f=new tu(e))}function Xp(e){return e.k||(e.k=new Gt(e))}function Qp(e){return e.e||(e.e=new ec(e))}function Zp(e){var t;return!(t=e.e)&&(e.e=t=e.gb()),t}function Jp(e){return e.c.f.d==e.d.f.d}function eg(e,t){var n;return ew(n=new Wv(e),t),n}function tg(e,t){return e.a+=String.fromCharCode(t),e}function ng(e){return!e.a&&e.d?e.d.b:e.a}function rg(e){return Xs(e)?0|e:e.l|e.m<<22}function ig(e,t){return Rs(t)?Cb(e,t):Ju(xb(e.d,t))}function ag(e){return vs(e,19)?Kd(e,19).Y():sm(e.mb())}function og(e){return e?new Uh((Kl(),e)):function(e){var t;return nw(t=new ea,e),t}(null.mb())}function cg(e,t){return Zu(e)===Zu(t)||null!=e&&xk(e,t)}function ug(e,t){return na(),Yx(oa(Lf(e)),oa(Lf(t)))}function lg(e){return Ps(),_d(e.a.bb().mb(),(Zl(),EA))}function sg(){sg=a,gd(),yA=new vv(($g(),$g(),h$))}function fg(){fg=a,gd(),TA=new Jc(($g(),$g(),g$))}function dg(e,t){if(null==e)throw new Pa((ci(),t))}function hg(e,t,n,r){e.g[t.e][n.e]=r,e.g[n.e][t.e]=r}function pg(e){Ml(-1!=e.c),e.d.vb(e.c),e.b=e.c,e.c=-1}function gg(e){this.c=e,this.b=e.a.b.a,Zs(e.a.c,this)}function bg(e){Cj.call(this,new Zn(e)),this.a=new sa}function vg(){Ri.call(this,new Ai(new Er)),this.a=this}function mg(){ky(),this.b=(Ps(),new Er),this.a=new Er}function yg(e){Sg(e.a),e.b=Dm(eA,hI,1,e.b.length,4,1)}function wg(e){return!e.b&&(e.b=new Za(e.c.W())),e.b}function xg(e,t){var n;return RR(e,t,n=new yt),n.d}function kg(e,t){var n;return(n=Wp("",e)).k=t,n.g=1,n}function Sg(e){var t;for(t=e.mb();t.G();)t.H(),t.I()}function Eg(e,t){return vs(t,79)&&Di(e.b,Kd(t,79).mc())}function Cg(e,t,n){return Rs(t)?Xb(e,t,n):c_(e.d,t,n)}function Pg(e,t,n,r){this.d=e,this.b=t,this.a=n,this.c=r}function _g(e,t,n,r){this.d=e,this.e=t,this.c=n,this.b=r}function Tg(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function Og(e,t,n,r){Ao.call(this,e,t),this.a=n,this.b=r}function jg(e,t){return ci(),e==t?0:e0?1:0}function rb(e,t){return rx(function(e,t){return Rd(e.l&t.l,e.m&t.m,e.h&t.h)}(Xs(e)?dx(e):e,Xs(t)?dx(t):t))}function ib(e){return 0==e.b?null:(Ll(0!=e.b),tw(e,e.a.a))}function ab(e){e.d=e.d-15,e.b=e.b-15,e.c=e.c+15,e.a=e.a+15}function ob(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function cb(e,t,n){this.d=e,this.b=new At,this.c=t,this.a=n}function ub(e,t){!function(e,t){e.a=t}(this,new nc(e.a,e.b)),function(e,t){e.b=t}(this,Ud(t))}function lb(e){ms(new Qn(gC(e.e)))&&(function(e){var t,n,r;for(r=new $h(new or(e.c).a);ys(r.a);)switch(r.b=lm(r.a),t=Kd((n=new Fu(r.c,r.b)).b.b[n.a.e],62),Kd(n.a,67).e){case 0:t.d=0,t.e=-(t.b+e.d);break;case 1:t.d=(e.e.e.j.a-t.c)/2,t.e=-(t.b+e.d);break;case 2:t.d=e.e.e.j.a-t.c,t.e=-(t.b+e.d);break;case 3:t.d=0,t.e=e.e.e.j.b+e.d;break;case 4:t.d=(e.e.e.j.a-t.c)/2,t.e=e.e.e.j.b+e.d;break;case 5:t.d=e.e.e.j.a-t.c,t.e=e.e.e.j.b+e.d;break;case 6:t.d=-(t.c+e.d),t.e=0;break;case 7:t.d=-(t.c+e.d),t.e=(e.e.e.j.b-t.b)/2;break;case 8:t.d=-(t.c+e.d),t.e=e.e.e.j.b-t.b;break;case 9:t.d=e.e.e.j.a+e.d,t.e=0;break;case 10:t.d=e.e.e.j.a+e.d,t.e=(e.e.e.j.b-t.b)/2;break;case 11:t.d=e.e.e.j.a+e.d,t.e=e.e.e.j.b-t.b;break;case 12:t.d=e.q.b+e.d,t.e=e.q.d+e.d;break;case 13:t.d=(e.e.e.j.a-t.c)/2,t.e=e.q.d+e.d;break;case 14:t.d=e.e.e.j.a-e.q.c-t.c-e.d,t.e=e.q.d+e.d;break;case 15:t.d=e.q.b+e.d,t.e=(e.e.e.j.b-t.b)/2;break;case 16:t.d=(e.e.e.j.a-t.c)/2,t.e=(e.e.e.j.b-t.b)/2;break;case 17:t.d=e.e.e.j.a-e.q.c-t.c-e.d,t.e=(e.e.e.j.b-t.b)/2;break;case 18:t.d=e.q.b+e.d,t.e=e.e.e.j.b-e.q.a-t.b-e.d;break;case 19:t.d=(e.e.e.j.a-t.c)/2,t.e=e.e.e.j.b-e.q.a-t.b-e.d;break;case 20:t.d=e.e.e.j.a-e.q.c-t.c-e.d,t.e=e.e.e.j.b-e.q.a-t.b-e.d}}(e),function(e){var t,n,r,i,a;for(r=new Qn(gC(e.e));r.a>>0).toString(16)}function Eb(e,t){return function(e,t){return Xh(),e==t?0:e?1:-1}(aa((Wh(e),e)),aa((Wh(t),t)))}function Cb(e,t){return null==t?Ju(xb(e.d,null)):Du(e.e,t)}function Pb(e,t,n){return new Vb(e.c,xj(e.b,function(e,t,n){return new __(e,!1,null,(Xl(),bA),!0,t,n)}(e.d,t,n)),e.a)}function _b(e){return 0|Math.max(Math.min(e,UM),-2147483648)}function Tb(e){this.e=e,this.b=this.e.a.entries(),this.a=[]}function Ob(e){this.c=e,this.b=new ck(new Gn(this.c.a).a)}function jb(e){this.b=(Ql(),Ql(),Ql(),wA),this.a=Kd(Hh(e),35)}function Rb(e,t,n){es(),Dd.call(this,e,t),null!=n&&(this.c=n)}function Mb(e,t,n){if(e<0||tn)throw new ca(function(e,t,n){if(e<0||e>n)return u_(e,n,"start index");if(t<0||t>n)return u_(t,n,"end index");return aO("end index (%s) must not be less than start index (%s)",Fx(Ia(eA,1),hI,1,4,[lS(t),lS(e)]))}(e,t,n))}function Ib(e,t){if(null==e)throw new Pa((ci(),t));return e}function Nb(e){if(!gS(e))throw new Si;return e.c=e.b,e.b.H()}function Lb(e){function t(){}return t.prototype=e||{},new t}function Ab(e){var t;return wx(t=new Ro(xx(e.length)),e),t}function Db(e){var t;t=e.c.b.b,e.b=t,e.a=e.c.b,t.a=e.c.b.b=e}function zb(e){this.b=null,!e&&(ru(),ru(),e=m$),this.a=e}function Bb(e){this.b=e,this.a=new av(this.b,this.b.c.length)}function Hb(e){return sg(),Hh(e),LE(e||qd(new Qn(null)))}function Fb(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.Oc(t))}function Gb(e,t,n){var r;EC(t,n,e.c.length),r=n-t,So(e.c,t,r)}function Vb(e,t,n){Lo.call(this,t.a),this.c=e,this.b=t,this.a=n}function Yb(e){return $u(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Wb(e){return $u(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function qb(e){return ix(Fx(Ia(WA,1),PN,10,0,[e.f.i,e.i,e.a]))}function Ub(){Ub=a,cV=sk((Xg(),Fx(Ia(lV,1),gI,193,0,[aV,oV])))}function $b(){$b=a,VG=sk((Dv(),Fx(Ia(XG,1),gI,175,0,[FG,GG])))}function Kb(){Kb=a,CV=sk((wv(),Fx(Ia(_V,1),gI,192,0,[EV,SV])))}function Xb(e,t,n){return null==t?c_(e.d,null,n):kS(e.e,t,n)}function Qb(e,t){return ip(e.a,t)?Lp(e,Kd(t,17).e,null):null}function Zb(e){return Hh(e),yC((Ql(),new zl(Fl(Zd(e.a,new p)))))}function Jb(e,t){var n,r;return r=up(e,t),n=e.a.ub(r),new qo(e,n)}function ev(e,t,n){var r;(r=new ct).b=t,r.a=n,++t.b,Ad(e.d,r)}function tv(e,t,n){e.d&&Xm(e.d.b,e),e.d=t,e.d&&Dh(e.d.b,n,e)}function nv(e,t,n){EC(t,n,e.Y()),this.c=e,this.a=t,this.b=n-t}function rv(e,t,n,r){this.d=e,this.b=t,this.a=n,this.c=r}function iv(e,t){Ri.call(this,Cw(Hh(e),Hh(t))),this.b=e,this.c=t}function av(e,t){this.a=e,Vn.call(this,e),Im(t,e.Y()),this.b=t}function ov(e,t,n,r){es(),Rb.call(this,e,t,n),null!=r&&(this.d=r)}function cv(e){return Ll(e.a2e3&&(AA=e,DA=r.setTimeout(go,10));if(0==LA++)return function(e){var t,n;if(e.a){n=null;do{t=e.a,e.a=null,n=$P(t,n)}while(e.a);e.a=n}}((fi(),NA)),!0;return!1}();try{return function(e,t,n){return e.apply(t,n)}(e,t,n)}finally{!function(e){e&&function(e){var t,n;if(e.b){n=null;do{t=e.b,e.b=null,n=$P(t,n)}while(e.b);e.b=n}}((fi(),NA)),--LA,e&&-1!=DA&&(!function(e){r.clearTimeout(e)}(DA),DA=-1)}(i)}}function bv(e){return vs(e,19)?Kd(e,19).V():!e.mb().G()}function vv(e){sg(),this.a=($g(),vs(e,63)?new eo(e):new ef(e))}function mv(){mv=a,eq=new Cu(fN,0),tq=new Cu("TOP_LEFT",1)}function yv(){yv=a,QV=new du("DOWN",0),ZV=new du("UP",1)}function wv(){wv=a,EV=new Fc("LAYER_SWEEP",0),SV=new Fc(wL,1)}function xv(){xv=a,MV=new lu("UPPER",0),RV=new lu("LOWER",1)}function kv(e,t){return!!vs(t,21)&&CC(e.a,Kd(t,21))}function Sv(e,t){return!!vs(t,21)&&CC(e.a,Kd(t,21))}function Ev(e,t){return!!vs(t,21)&&CC(e.a,Kd(t,21))}function Cv(e){var t;return Uk(t=new Gg,e),ly(t,(OM(),ez),null),t}function Pv(e,t){return t===e?"(this Map)":(ci(),null==t?VM:cC(t))}function _v(e,t,n,r){return vs(n,63)?new Cf(e,t,n,r):new Ep(e,t,n,r)}function Tv(){Tv=a,oB=sk((Ky(),Fx(Ia(TB,1),gI,149,0,[iB,rB,nB])))}function Ov(){Ov=a,ND=sk((Bk(),Fx(Ia(Bz,1),gI,166,0,[RD,jD,MD])))}function jv(){jv=a,pV=sk((Cy(),Fx(Ia(mV,1),gI,173,0,[hV,dV,fV])))}function Rv(e,t){var n;$g(),iC(n=e.ob(),0,n.length,t),function(e,t){var n,r;for(r=e.Y(),n=0;nt)throw new ca(u_(e,t,"index"));return e}function Fv(e,t,n){Hh(e),function(e){var t,n,r;for(Rv(e.c,e.a),r=new Qn(e.c);r.a>22&KI,e<0?XI:0)}function km(){km=a,lD=sk((Dk(),Fx(Ia(pD,1),gI,59,0,[oD,aD,iD,rD,cD])))}function Sm(){Sm=a,OB=sk(($R(),Fx(Ia(NB,1),gI,32,0,[PB,uB,cB,CB,_B])))}function Em(){Em=a,Uz=sk((WS(),Fx(Ia(eB,1),gI,100,0,[Wz,Yz,Fz,Gz,Vz])))}function Cm(){Cm=a,TV=xh(Ch(Ch(Ch(Eh(new yS,(EM(),lG)),bG),FF),QF),uG)}function Pm(e,t){var n;for(n=t.mb();n.G();)FO(e,Kd(n.H(),55),0,0)}function _m(e,t,n){var r;for(r=e.mb();r.G();)OO(Kd(r.H(),55),t,n)}function Tm(e,t,n){var r,i;for(r=0,i=0;it)throw new ca("Index: "+e+", Size: "+t)}function Nm(e,t){if(e<0||e>=t)throw new ca("Index: "+e+", Size: "+t)}function Lm(e,t){var n;return!!(n=pk(e,t.yb()))&&Ig(n.e,t.zb())}function Am(e,t){var n;return n=e.d,t>0?Kd(wh(n.a,t-1),9):null}function Dm(e,t,n,r,i,a){var o;return o=TC(i,r),9!=i&&Fx(Ia(e,a),t,n,i,o),o}function zm(e){var t;if(!kw(e))throw new Si;return e.d=1,t=e.c,e.c=null,t}function Bm(e,t,n,r){this.f=e,this.e=t,this.d=n,this.b=r,this.c=r?r.d:null}function Hm(e){var t;return t=Kd(wh(e.f,0),7),Kd(Dx(t,(CM(),Lq)),7)}function Fm(e){var t;return t=Kd(wh(e.f,0),7),Kd(Dx(t,(CM(),Lq)),7)}function Gm(){Gm=a,QU=sk(($S(),Fx(Ia(ZU,1),gI,153,0,[UU,KU,$U])))}function Vm(){Vm=a,n$=sk((Zw(),Fx(Ia(r$,1),gI,172,0,[JU,e$,t$])))}function Ym(){Ym=a,nD=sk((_E(),Fx(Ia(uD,1),gI,103,0,[XA,JA,eD,tD,QA,ZA])))}function Wm(){Wm=a,OD=sk((ZC(),Fx(Ia(ID,1),gI,133,0,[PD,ED,_D,kD,CD,SD])))}function qm(){qm=a,tB=sk((NC(),Fx(Ia(aB,1),gI,28,0,[Jz,Zz,Qz,$z,Xz,Kz])))}function Um(){Um=a,QG=sk((MP(),Fx(Ia(eV,1),gI,125,0,[$G,WG,KG,UG,qG,YG])))}function $m(){$m=a,KA=new Dd("de.cau.cs.kieler.labels.labelManager",null)}function Km(e,t){var n;return(n=new yt).c=!0,n.d=t.zb(),RR(e,t.yb(),n)}function Xm(e,t){var n;return-1!=(n=sy(e,t,0))&&(e.vb(n),!0)}function Qm(e,t){return 9!=Iy(t)&&Fx(My(t),t._c,t.__elementTypeId$,Iy(t),e),e}function Zm(e){return xp(e.c.a.c,e),Ll(e.b!=e.c.a.b),e.a=e.b,e.b=e.b.a,e.a}function Jm(e){Ml(!!e.c),xp(e.e,e),e.c.I(),e.c=null,e.b=vx(e),Zs(e.e,e)}function ey(e,t,n){Ri.call(this,Cw(Hh(e),Hh(t))),this.b=e,this.c=t,this.a=n}function ty(e,t,n,r){this.b=new jn(this),this.a=e,this.c=t,this.e=n,this.d=r}function ny(e){ok.call(this,e,0),kf(this),this.b.b=this.b,this.b.a=this.b}function ry(e,t){Gu.call(this,e,t),this.a=Dm(S$,hI,183,2,0,1),this.b=!0}function iy(e,t){return Rs(t)?null==t?!!xb(e.d,null):function(e,t){return!(void 0===To(e.a,t))}(e.e,t):!!xb(e.d,t)}function ay(e,t){return ja(),(e-t>0?e-t:-(e-t))<=UI||e==t||isNaN(e)&&isNaN(t)}function oy(e,t){return ja(),(e-t>0?e-t:-(e-t))<=UI||e==t||isNaN(e)&&isNaN(t)}function cy(e){var t,n;t=!0;do{n=t?wS(e):zS(e),t=!t}while(n);yx(e,e.d)}function uy(e,t,n){var r;if(null==t)throw new Xr;return r=Ng(e,t),function(e,t,n){if(n){var r=n.gc();e.a[t]=r(n)}else delete e.a[t]}(e,t,n),r}function ly(e,t,n){return!e.n&&(e.n=new Er),null==n?np(e.n,t):Cg(e.n,t,n),e}function sy(e,t,n){for(;n=e.a.c.length;)Ad(e.a,new fa);return Kd(wh(e.a,t),20)}function dy(e,t,n,r,i){var a;return cw(n,a=Wp(e,t)),a.g=i?8:0,a.f=r,a.e=i,a}function hy(e,t){var n;this.f=e,this.b=t,n=Kd(ig(e.b,t),126),this.c=n?n.b:null}function py(e,t){var n,r;for(n=0,r=t.length;n0&&(r+=function(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S;for(i=0,m=0,Ps(),v=new Er,r=new Er,a=new Er,S=new Er,function(e,t,n){var r,i,a,o,c,u,l,s,f,d,h;for(r=0,i=0,s=0;s0&&Cg(t,a,lS(r+=a.b.c.length+a.e.c.length));else{for(c=zP(u,($R(),cB)).mb();c.G();)r+=(a=Kd(c.H(),7)).b.c.length+a.e.c.length;for(o=zP(u,cB).mb();o.G();)(a=Kd(o.H(),7)).b.c.length+a.e.c.length>0&&Cg(t,a,lS(r))}for(l=e.length-1;l>=0;l--)if(Ks(Kd(Dx(u=e[l],(OM(),vz)),28)))for(d=zP(u,($R(),_B)).mb();d.G();)(f=Kd(d.H(),7)).b.c.length+f.e.c.length>0&&Cg(n,f,lS(i+=f.b.c.length+f.e.c.length));else{for(h=zP(u,($R(),_B)).mb();h.G();)i+=(f=Kd(h.H(),7)).b.c.length+f.e.c.length;for(d=zP(u,_B).mb();d.G();)(f=Kd(d.H(),7)).b.c.length+f.e.c.length>0&&Cg(n,f,lS(i))}}(e,a,S),t=null,b=0,k=0,y=!0,u=!0,d=0,p=e.length;dl.k&&(++t,h=!0),p&&l&&p.k>l.k&&(++t,g=!0),d&&c&&d.kc.k&&(++t,u=!0),d&&c&&d.kl.k&&(++t,s=!0),u&&s&&c==l&&--t)}}return t}(t)),r}function vy(e,t){var n;return(n=Kd(np(e.c,t),176))?(jh(n),n.e):null}function my(e){return bk(e,UM)>0?UM:bk(e,JM)<0?JM:rg(e)}function yy(e){return Kl(),By(e,"size"),rg(function(e,t){return bk(e,t)<0}(Lk(e,8),NI)?Lk(e,8):NI),new no}function wy(e){dd.call(this,(ci(),null==e?VM:cC(e)),vs(e,46)?Kd(e,46):null)}function xy(e){Cl(this),Vh(e>=0,"Initial capacity must not be negative")}function ky(){ky=a,LH=Ph(Ch(Ch(new yS,(EM(),sG)),ZF),aG),AH=Eh(new yS,nG)}function Sy(){Sy=a,wF=new Y,mF=new W,yF=new q,vF=new U,xF=new $,kF=new K}function Ey(){Ey=a,E$=new Hu("All",0),C$=new as,P$=new Ss,_$=new os}function Cy(){Cy=a,hV=new Hc(EL,0),dV=new Hc("LONGEST_PATH",1),fV=new Hc(wL,2)}function Py(){Py=a,GA=Rd(KI,KI,524287),VA=Rd(0,0,524288),xm(1),xm(2),YA=xm(0)}function _y(){_y=a,zG=sk((ET(),Fx(Ia(BG,1),gI,109,0,[AG,RG,NG,MG,IG,jG,LG,DG])))}function Ty(){Ty=a,qV=sk((uC(),Fx(Ia($V,1),gI,141,0,[WV,GV,VV,FV,YV])))}function Oy(){Oy=a,wW=sk((AC(),Fx(Ia(_W,1),gI,115,0,[gW,pW,vW,bW,mW])))}function jy(){jy=a,sU=sk((lC(),Fx(Ia(pU,1),gI,85,0,[uU,iU,aU,oU,cU])))}function Ry(e){vP(),function(e,t,n){e.a=1502^t,e.b=n^$L}(this,rg(rb(rx(function(e,t){var n,r,i,a,o;t&=63,n=e.h,(r=0!=(524288&n))&&(n|=-1048576),t<22?(o=n>>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=r?XI:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(o=r?XI:0,a=r?KI:0,i=n>>t-44);return Rd(i&KI,a&KI,o&XI)}(Xs(e)?dx(e):e,24)),XL)),rg(rb(e,XL)))}function My(e){return Rs(e)?rA:js(e)?c$:xf(e)?o$:tp(e)||Mh(e)?e.$c:e.$c||IA}function Iy(e){return null==e.__elementTypeCategory$?9:e.__elementTypeCategory$}function Ny(e){var t,n;for(cu(),n=iN,t=0;tn&&(n=e[t]);return n}function Ly(e,t){var n;return(n=Kd(ig(e.b,t),106))||(n=t.rc(),Cg(e.b,t,n)),n}function Ay(e,t){var n;return(n=Kd(ig(e.c,t),176))?(Ws(e,n),n.e):null}function Dy(e,t,n,r){var i;(i=Kd(Ay(e.e,t),116)).b+=n,i.a+=r,$E(e.e,t,i),e.d=!0}function zy(e){var t;for(++e.a,t=e.c.a.length;e.a"+e.d.f+"("+e.d+")":"e_"+vf(e)}function $y(){$y=a,Hz=sk((D_(),Fx(Ia(qz,1),gI,41,0,[Rz,jz,Iz,zz,Dz,Az,Nz,Lz,Mz])))}function Ky(){Ky=a,iB=new yc("OUTSIDE",0),rB=new yc("INSIDE",1),nB=new yc("FIXED",2)}function Xy(){Xy=a,QW=new Eu(pN,0),ZW=new Eu("TOP",1),XW=new Eu("BOTTOM",2)}function Qy(){Qy=a,nY=new pu("CLASSIC",0),rY=new pu("IMPROVE_STRAIGHTNESS",1)}function Zy(){this.e=new sa,this.a=new qg,this.d=new sa,this.b=new At,this.c=new At}function Jy(e,t,n){this.b=t,this.a=e,this.c=n,Ad(this.a.e,this),Ad(this.b.b,this)}function ew(e,t){e.d=Va(e.d,t.d),e.c=Ha(e.c,t.c),e.a=Ha(e.a,t.a),e.b=Va(e.b,t.b)}function tw(e,t){var n;return n=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,n}function nw(e,t){var n;for(Ql(),Hh(e),Hh(t),n=!1;t.G();)n|=e.ib(t.H());return n}function rw(e){var t;return xp(e.e,e),Ll(e.b),e.c=e.a,t=Kd(e.a.H(),21),e.b=vx(e),t}function iw(e){return JI=0x8000000000000000)return Py(),GA;i=!1,e<0&&(i=!0,e=-e);r=0,e>=ZI&&(e-=(r=_b(e/ZI))*ZI);n=0,e>=QI&&(e-=(n=_b(e/QI))*QI);return t=_b(e),a=Rd(t,n,r),i&&(o=1+~a.l&KI,c=~a.m+(0==o?1:0)&KI,u=~a.h+(0==o&&0==c?1:0)&XI,a.l=o,a.m=c,a.h=u),a}(e))}function aw(e){if(e){if(e.V())throw new Si;return e.sb(e.Y()-1)}return function(e){var t;for(Ql();;)if(t=e.H(),!e.G())return t}(null.mb())}function ow(e,t){var n;return t<(n=e.d).a.c.length-1?Kd(wh(n.a,t+1),9):null}function cw(e,t){if(e){t.k=e;var n=function(e){if(e.Tc())return null;var t=e.k;return MM[t]}(t);n?n.$c=t:MM[e]=[t]}}function uw(e,t){var n,r;r=!1;do{r|=n=e.i?Nx(e,t):Ix(e,t)}while(n);return r}function lw(e,t,n){var r,i;r=t;do{i=oa(e.n[r.k])+n,e.n[r.k]=i,r=e.a[r.k]}while(r!=t)}function sw(e,t){return Ib(e,"set1"),Ib(t,"set2"),ou(),new yd(e,new Io(t),t)}function fw(e){var t=/function(?:\s+([\w$]+))?\s*\(/.exec(e);return t&&t[1]||YM}function dw(){dw=a,lW=sk((QC(),Fx(Ia(hW,1),gI,123,0,[uW,cW,oW,iW,rW,aW])))}function hw(){hw=a,TW=sk((XC(),Fx(Ia(BW,1),gI,124,0,[EW,SW,PW,kW,CW,xW])))}function pw(){pw=a,s$=Fx(Ia(L$,1),WI,26,12,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function gw(){gw=a,hU=new _u(hN,0),fU=new _u("INPUT",1),dU=new _u("OUTPUT",2)}function bw(e){this.c=e,this.b=new ck(new Gn(e.b).a),this.a=null,this.d=(Ql(),Ql(),xA)}function vw(e){this.e=e,this.d=new Ro(xx(lp(this.e).Y())),this.c=this.e.a,this.b=this.e.c}function mw(e,t,n){this.c=e,$v.call(this),this.b=t,this.j=new _g(t.d,t.e,t.c,t.b),this.a=n}function yw(e,t){e.j>0&&e.c0&&0!=e.e&&yw(e.g,t/e.j*e.g.d))}function ww(e){return e.b.d.f.g==(JC(),fF)?Kd(Dx(e.b.d.f,(CM(),Lq)),7):e.b.d}function xw(e){return e.b.c.f.g==(JC(),fF)?Kd(Dx(e.b.c.f,(CM(),Lq)),7):e.b.c}function kw(e){switch(Uu(3!=e.d),e.d){case 2:return!1;case 0:return!0}return function(e){return e.d=3,e.c=function(e){for(var t;e.b.G();)if(t=e.b.H(),e.a.D(t))return t;return e.d=2,null}(e),2!=e.d&&(e.d=0,!0)}(e)}function Sw(e){switch(e.e){case 2:return $R(),_B;case 4:return $R(),cB;default:return e}}function Ew(e){switch(e.e){case 1:return $R(),CB;case 3:return $R(),uB;default:return e}}function Cw(e,t){var n;return $g(),n=new Kc(1),Rs(e)?Xb(n,e,t):c_(n.d,e,t),new rr(n)}function Pw(e,t){return e.g?(e.g=Pw(e.g,t),--e.a,e.j=Ak(e.j,t.c),dP(e)):e.e}function _w(e,t){return e.e?(e.e=_w(e.e,t),--e.a,e.j=Ak(e.j,t.c),dP(e)):e.g}function Tw(e,t){var n,r,i;for(Wh(t),n=!1,i=t.mb();i.G();)r=i.H(),n|=e.ib(r);return n}function Ow(e){var t,n;for(n=new Hr,t=e.b.mb();t.G();)Ld(n,Kd(t.H(),92).a);return n}function jw(e){var t,n,r;for(t=0,r=e.mb();r.G();)t+=(Wh(n=Lf(r.H())),n);return t/e.Y()}function Rw(e,t){var n;return(n=Kd(ig(e.c,t),200))||((n=new Jr).c=t,Cg(e.c,n.c,n)),n}function Mw(e,t){var n;return Wh(t),n=t.e,!e.b[n]&&(Up(e.b,n,t),++e.c,!0)}function Iw(e,t){var n,r;return n=1-t,r=e.a[n],e.a[n]=r.a[t],r.a[t]=e,e.b=!0,r.b=!1,r}function Nw(e,t){var n;return!!vs(t,10)&&(n=Kd(t,10),e.a==n.a&&e.b==n.b)}function Lw(e,t,n){return e.g=new Hw(t,n),jf(e,e.g,e.i),e.d=Ga(2,e.d),++e.a,e.j=Nk(e.j,n),e}function Aw(e,t,n){return e.e=new Hw(t,n),jf(e.f,e.e,e),e.d=Ga(2,e.d),++e.a,e.j=Nk(e.j,n),e}function Dw(e,t){var n=e.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(t[r++]=i);return t}function zw(e,t){var n,r;for(Wh(t),r=t.bb().mb();r.G();)n=Kd(r.H(),21),e.db(n.yb(),n.zb())}function Bw(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new At,function(e){var t,n,r,i,a;for(a=new Kf(e.d,e.e),i=BT(a);i.G();)for(r=Kd(i.H(),7),n=new Qn(e.e==($R(),_B)?r.b:r.e);n.a0),this.b=e,this.c=t,this.j=t,this.a=1,this.d=1,this.e=null,this.g=null}function Fw(e){return 1.4901161193847656e-8*X_(e,26)+11102230246251565e-32*X_(e,27)}function Gw(e){return vs(e,87)?dv(Kd(e,87)):vs(e,88)?Kd(e,88).a:vs(e,63)?new Li(e):new Jo(e)}function Vw(e){var t;return t=Kd(Dx(e,(CM(),kq)),32),e.g==(JC(),fF)&&(t==($R(),_B)||t==cB)}function Yw(e,t){return!!function(e,t){var n,r,i,a;for(n=Kd(Dx(t,(CM(),wq)),18),a=Kd(fP(oF,n),18),i=a.mb();i.G();)if(r=Kd(i.H(),18),!Kd(fP(e.a,r),20).V())return!1;return!0}(e,t)&&(M_(e.a,Kd(Dx(t,(CM(),wq)),18),t),!0)}function Ww(e,t){var n;if(t)for(n=0;n<6;n++)Kd(wh(e.a,n),18).jb(Kd(wh(t.a,n),19));return e}function qw(e,t){var n;return e.b?null:(n=function(e,t){return new Rf(e>0?e-1:e,t)}(e.e,e.f),Ld(e.a,n),n.g=e,e.d=t,n)}function Uw(e,t){var n,r;for(r=WE(e,0);r.b!=r.d.c;)(n=Kd(Bv(r),10)).a+=t.a,n.b+=t.b;return e}function $w(e,t){var n,r;for(n=0;n0?e.g?tx(e.g,t,n):0:e.c}function nx(e,t){var n,r;return!!e.c&&(r=e.g,(n=e.a.$b(t,r))>0|0==n&e.f==(Xl(),bA))}function rx(e){var t;return 0==(t=e.h)?e.l+e.m*QI:t==XI?e.l+e.m*QI-ZI:e}function ix(e){var t,n,r,i;for(t=new sa,r=0,i=e.length;r=i;a--)e[a+1]=e[a];e[i]=r}function sx(e,t,n,r){var i,a;for(i=function(e,t,n,r){var i,a,o,c;a=t,i=n-1;for(;a<=i;)if((c=e[o=a+i>>>1])r))return o;i=o-1}return-(a+1)}(e,t,n,r),i<0&&(i=-i-1),a=n-1;a>=i;a--)e[a+1]=e[a];e[i]=r}function fx(e,t){var n,r;for(Wh(t),r=t.mb();r.G();)if(n=r.H(),!e.kb(n))return!1;return!0}function dx(e){var t,n,r;return n=0,(r=e)<0&&(r+=ZI,n=XI),t=_b(r/QI),Rd(_b(r-t*QI),t,n)}function hx(e,t){return e.c.c=Dm(eA,hI,1,0,4,1),LP(e,e.e,t),LP(e,e.a,t),$g(),Rv(e.c,null),function(e){var t,n,r;for(t=0,r=new Qn(e.c);r.a0;r--)n|=oE(e,t,r-1,r);return n}function Nx(e,t){var n,r,i;for(n=!1,r=e.d[t].length,i=0;i1&&(Rv(t,e.b),function(e,t){var n,r,i,a,o,c,u,l,s;for(i=new At,u=new Qn(t);u.at?1:e==t?0:isNaN(e)?isNaN(t)?0:1:-1}function Wx(e){switch(e.Y()){case 0:return yA;case 1:return new Kh(e.mb().H());default:return new vv(e)}}function qx(){var e,t;qx=a,t=!(Error.stackTraceLimit||"stack"in new Error),e=new wt,LM=t?new l:e}function Ux(){Ux=a,kH=new Dd("intCoordinates",(Xh(),Xh(),i$)),SH=new vh("jsonObject"),EH=new nc(0,0)}function $x(){$x=a,_F=new Nc("MIRROR_X",0),TF=new Nc("TRANSPOSE",1),PF=new Nc("MIRROR_AND_TRANSPOSE",2)}function Kx(){Kx=a,fW=new wu(pN,0),sW=new wu("INCOMING_ONLY",1),dW=new wu("OUTGOING_ONLY",2)}function Xx(){return tM(),Fx(Ia($Y,1),gI,60,0,[PY,SY,kY,OY,TY,UY,qY,_Y,EY,CY,jY,YY,WY])}function Qx(){var e,t,n,r;for(Qx=a,HG=new HS($Y),n=0,r=(t=Xx()).length;n0)return Xd(t-1,e.a.c.length),Om(e.a,t-1);throw new ki}function ak(e){e.b.c.length-e.e.c.length<0?(qf(e,($R(),cB)),e.a.a=e.j.a):(qf(e,($R(),_B)),e.a.a=0)}function ok(e,t){Vh(e>=0,"Negative initial capacity"),Vh(t>=0,"Non-positive load factor"),Rm(this)}function ck(e){var t;this.e=e,this.d=new fm(this.e.e),this.a=this.d,this.b=vx(this),t=e[VL],this[VL]=t}function uk(){this.n=null,this.j=null,this.i=null,this.d=null,this.b=null,this.k=null,this.a=null}function lk(e){var t,n,r,i;for(i=1,n=0,r=e.length;n=48&&e<58?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function Ik(e){switch(gd(),e.Y()){case 0:return fg(),TA;case 1:return new fo(e.mb().H());default:return new Jc(e)}}function Nk(e,t){var n;return Xs(e)&&Xs(t)&&JI<(n=e+t)&&n>22),i=e.h+t.h+(r>>22),Rd(n&KI,r&KI,i&XI)}(Xs(e)?dx(e):e,Xs(t)?dx(t):t))}function Lk(e,t){var n;return Xs(e)&&Xs(t)&&JI<(n=e*t)&&n>13|(15&e.m)<<9,i=e.m>>4&8191,a=e.m>>17|(255&e.h)<<5,o=(1048320&e.h)>>8,c=8191&t.l,u=t.l>>13|(15&t.m)<<9,l=t.m>>4&8191,s=t.m>>17|(255&t.h)<<5,f=(1048320&t.h)>>8,b=r*c,v=i*c,m=a*c,y=o*c,0!=u&&(b+=n*u,v+=r*u,m+=i*u,y+=a*u);0!=l&&(v+=n*l,m+=r*l,y+=i*l);0!=s&&(m+=n*s,y+=r*s);return 0!=f&&(y+=n*f),h=((g=n*c)>>22)+(b>>9)+((262143&v)<<4)+((31&m)<<17),p=(v>>18)+(m>>5)+((4095&y)<<8),p+=(h+=(d=(g&KI)+((511&b)<<13))>>22)>>22,Rd(d&=KI,h&=KI,p&=XI)}(Xs(e)?dx(e):e,Xs(t)?dx(t):t))}function Ak(e,t){var n;return Xs(e)&&Xs(t)&&JI<(n=e-t)&&n>22),i=e.h-t.h+(r>>22),Rd(n&KI,r&KI,i&XI)}(Xs(e)?dx(e):e,Xs(t)?dx(t):t))}function Dk(){Dk=a,oD=new fc(hN,0),aD=new fc(sN,1),iD=new fc(lN,2),rD=new fc("DOWN",3),cD=new fc("UP",4)}function zk(){zk=a,yD=new hc(hN,0),vD=new hc("POLYLINE",1),bD=new hc("ORTHOGONAL",2),mD=new hc("SPLINES",3)}function Bk(){Bk=a,RD=new gc("INHERIT",0),jD=new gc("INCLUDE_CHILDREN",1),MD=new gc("SEPARATE_CHILDREN",2)}function Hk(){Hk=a,gV=Eh(kh(new yS,(EM(),BF)),iG),bV=xh(Eh(Sh(new yS,IF),RF),MF),vV=xh(Ch(new yS,NF),MF)}function Fk(){Fk=a,yV=Eh(kh(new yS,(EM(),BF)),iG),wV=xh(Eh(Sh(new yS,IF),RF),MF),xV=xh(Ch(new yS,NF),MF)}function Gk(e){this.a=new Al,this.d=new Al,this.b=new Al,this.c=new Al,this.g=new Al,this.i=new Al,this.f=e}function Vk(e,t,n,r,i,a){this.e=new At,this.f=(gw(),hU),Ad(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=a}function Yk(e,t,n,r,i){var a,o;for(o=e.mb();o.G();)(a=Kd(o.H(),33)).i.a=t.a,a.i.b=i?t.b:t.b+r.b-a.j.b,t.a+=a.j.a+n}function Wk(e,t){var n,r;for(Vd(),r=Dp(tP(e));gS(r);)if((n=Kd(Nb(r),12)).d.f==t||n.c.f==t)return n;return null}function qk(e,t,n){var r,i,a;for(r=0,a=WE(e,0);a.b!=a.d.c&&!((i=oa(Lf(Bv(a))))>n);)i>=t&&++r;return r}function Uk(e,t){var n;return t?((n=t.n?t.n:($g(),$g(),p$)).V()||(e.n?zw(e.n,n):e.n=new dl(n)),e):e}function $k(e,t,n){try{!function(e,t,n){if(Hh(t),n.G())for(il(t,e.C(n.H()));n.G();)il(t,e.c),il(t,e.C(n.H()))}(e,t,n)}catch(R$){throw vs(R$=vk(R$),181)?new wy(R$):Xk(R$)}return t}function Kk(e,t,n){try{!function(e,t,n){var r,i;if(Hh(t),n.G())for(i=Kd(n.H(),21),il(t,Os(e.a,i.yb())),il(t,e.b),il(t,Os(e.a,i.zb()));n.G();)il(t,e.a.c),r=Kd(n.H(),21),il(t,Os(e.a,r.yb())),il(t,e.b),il(t,Os(e.a,r.zb()))}(e,t,n)}catch(R$){throw vs(R$=vk(R$),181)?new wy(R$):Xk(R$)}return t}function Xk(e){var t;return vs(e,164)&&Zu((t=Kd(e,164)).b)!==Zu((oi(),NM))?Zu(t.b)===Zu(NM)?null:t.b:e}function Qk(e,t){var n;for(n=Kd(Dx(ng(e),(CM(),Hq)),9);n;){if(n==t)return!0;n=Kd(Dx(ng(n),Hq),9)}return!1}function Zk(e){switch(Kd(Dx(e,(CM(),_q)),140).e){case 1:ly(e,_q,(Xy(),XW));break;case 2:ly(e,_q,(Xy(),ZW))}}function Jk(e){switch(gd(),e.c){case 0:return fg(),TA;case 1:return new fo(JP(new $c(e)));default:return new Mi(e)}}function eS(e){var t,n;for(sg(),t=0,n=e.length;t-129&&e<128?(t=e+128,!(n=(Qh(),l$)[t])&&(n=l$[t]=new In(e)),n):new In(e)}function sS(e){var t,n;for(t=YC(e.b,e.d),n=UM;n>t;){if(yx(e,e.d),0==t){n=0;break}wS(e),zS(e),n=t,t=YC(e.b,e.d)}e.c=n}function fS(){var e,t,n;vP(),n=k$+++(Date.now?Date.now():(new Date).getTime()),e=_b(Math.floor(n*PL))&XL,t=_b(n-e*KL),this.a=1502^e,this.b=t^$L}function dS(e){return Rs(e)?TE(e):js(e)?_b((Wh(e),e)):xf(e)?aa((Wh(e),e))?1231:1237:tp(e)?e.v():(Mh(e),vf(e))}function hS(e,t,n,r){var i,a,o;for(o=0,a=BT(new Kf(t,r));a.G();)i=Kd(a.H(),7),Cg(e.i,i,lS(o++));Cg(n,t,lS(o))}function pS(e){var t;return(t=Kd(Dx(e,(OM(),YD)),59))==(Dk(),oD)?Kd(Dx(e,(CM(),iq)),15).a>=1?aD:rD:t}function gS(e){if(Hh(e.b),e.b.G())return!0;for(;e.a.G();)if(Hh(e.b=e.Wb(e.a.H())),e.b.G())return!0;return!1}function bS(e){return e.d==e.c.d&&e.i==e.g.d||(e.a.c=Dm(eA,hI,1,0,4,1),mx(e.a,e.c),mx(e.a,e.g),e.d=e.c.d,e.i=e.g.d),e.a}function vS(e){var t;if(e.b){if(vS(e.b),e.b.d!=e.c)throw new xi}else e.d.V()&&(t=Kd(ig(e.f.b,e.e),19))&&(e.d=t)}function mS(e,t,n,r,i){var a,o,c,u;for(Hx(t,u=wm(e),r,i,n),a=0,c=new Qn(u);c.at){uv(n);break}}Rp(n,t)}function kS(e,t,n){var r;return r=To(e.a,t),function(e,t,n){e.set(t,n)}(e.a,t,void 0===n?null:n),void 0===r?(++e.c,od(e.b)):++e.d,r}function SS(e,t,n){return(t-e<=0?0-(t-e):t-e)gL?e-n>gL:n-e>gL)}function ES(e){switch(e.e){case 0:return pW;case 1:return gW;case 2:return bW;case 3:return vW;default:return mW}}function CS(e,t){switch(t.e){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function PS(e){switch($R(),e.e){case 4:return uB;case 1:return cB;case 3:return CB;case 2:return _B;default:return PB}}function _S(e,t){if(t==e.c)return e.d;if(t==e.d)return e.c;throw new ua("Node "+t+" not part of edge "+e)}function TS(e,t){var n;return Qs(e.a,t)?Kd(Qs(e.a,t)?e.b[t.e]:null,62):(n=new Fr,Mw(e.a,t),Lp(e,t.e,n),n)}function OS(e,t){var n,r,i;for(i=e.g.tb(),n=0;i.G();){if((r=oa(Lf(i.H()))-t)>zL)return n;r>BL&&++n}return n}function jS(e){var t,n,r,i;return Mw(n=new th(t=Kd(ao((i=(r=e.$c).f)==dA?r:i),11),Kd(Np(t,t.length),11),0),e),n}function RS(e,t){var n,r;for(r=new Qn(t);r.a %s",Fx(Ia(eA,1),hI,1,4,[lS(t),lS(n)])),EC(t,n=n<(r=e.length)?n:r,r),n-t}function DS(e,t){var n,r,i;for(n=e,i=0;;){if(n==t)return i;if(!(r=Kd(Dx(n,(CM(),Hq)),9)))throw new qr;n=ng(r),++i}}function zS(e){var t,n,r;for(r=!1,n=e.d.length-1;n>=0;n--)e.j=(t=new IP(e.e,e.d,n,1),new nP(n,e.d,t)),r|=uw(e,n);return r}function BS(e){this.f=(Ps(),new Er),this.n=new Er,this.k=new Er,this.g=new ea,this.i=new CE((li(),PA)),this.j=e,function(e,t){var n,r,i,a,o;for(n=0,o=0,i=0,a=t.length;i0?e-t:-(e-t))<=UI||e==t||isNaN(e)&&isNaN(t)?0:et?1:kl(isNaN(e),isNaN(t)))>0}function XS(e,t){return ja(),ja(),((e-t>0?e-t:-(e-t))<=UI||e==t||isNaN(e)&&isNaN(t)?0:et?1:kl(isNaN(e),isNaN(t)))<0}function QS(e){var t,n;for(e.d||function(e){var t,n,r,i,a,o;if(i=e.g.tb(),r=e.b.tb(),e.e)for(n=0;nzL;){for(a=t,o=0;(t-a<=0?0-(t-a):t-a)i}(e.j,n,r)&&(Ki(e.j,e.d[t][n],e.d[t][r]),o=(a=e.d[t])[r],a[r]=a[n],a[n]=o,i=!0),i}function cE(e,t,n){var r,i,a,o,c;i=(c=ng(e)).a,r=Kd(Dx(c,(CM(),sq)),15).a,a=c.d,o=e.i,t&&(o.a=o.a-i.b-r-a.a),n&&(o.b=o.b-i.d-r-a.b)}function uE(e,t){var n,r,i;for(r=Dp(tP(e));gS(r);)return n=Kd(Nb(r),12),new Ht(Hh((i=Kd(t.B(n),9)).i.b+i.j.b/2));return ui(),ui(),iA}function lE(e){var t,n,r,i;for(n=Vj(e),t=dL,i=0,r=0;t>.5&&i<50;)t=Oo(sP(n,r=NT(n),!0).b),++i;return sP(e,r,!1)}function sE(e){var t,n,r,i;for(n=Vj(e),t=dL,i=0,r=0;t>.5&&i<50;)t=Oo(sP(n,r=IT(n),!0).a),++i;return sP(e,r,!1)}function fE(e){var t,n,r;for(this.a=new Al,this.e=new ea,this.f=0,n=0,r=e.length;n0),t.a.sb(t.c=--t.b))}function yE(e,t,n){nE(n,"Compound graph preprocessor",1),e.a=new Qc,Mj(e,t,null),function(e,t){var n,r,i,a,o,c,u;for(o=lp(e.a).mb();o.G();){if((a=Kd(o.H(),12)).b.c.length>0)for(Rv(r=new md(Kd(fP(e.a,a),18)),new un(t)),i=new av(a.b,0);i.b=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n0&&(i.b+=t),i}function UE(e,t){var n,r,i;for(i=new sa,r=e.mb();r.G();)OO(n=Kd(r.H(),55),0,i.b),i.b+=n.e.b+t,i.a=Ha(i.a,n.e.a);return i.a>0&&(i.a+=t),i}function $E(e,t,n){var r,i,a;return(i=Kd(ig(e.c,t),176))?(a=kd(i,n),Ws(e,i),a):(r=new dh(e,t,n),Cg(e.c,t,r),Db(r),null)}function KE(e,t){return!!function(e){switch(e.e){case 0:return LY;case 1:return MY;case 2:return RY;case 3:return zY;case 4:return DY;case 5:return VY;case 6:return GY;case 7:return AY;case 8:return IY;case 9:return NY;case 11:return HY;case 10:return BY;default:return FY}}(e.b).kb(t.c)&&(function(e){return e==_Y||e==EY}(e.b)?!(Jd(t.d,e.c,e.a)&&Jd(t.a,e.c,e.a)):Jd(t.d,e.c,e.a)&&Jd(t.a,e.c,e.a))}function XE(e){switch(e.e){case 8:return $R(),uB;case 9:return $R(),CB;case 10:return $R(),cB;case 11:return $R(),_B;default:return $R(),PB}}function QE(e,t){return Rs(e)?!!zM[t]:e._c?!!e._c[t]:js(e)?!!DM[t]:!!xf(e)&&!!AM[t]}function ZE(){Ux(),this.i=(Ps(),new Er),this.a=new Er,this.k=new Er,this.j=new Er,this.b=new Er,this.n=new Er,this.f=new Er,this.e=new Er}function JE(e,t){var n,r;t.a.R(e)||(r=Kd(Dx(e,(CM(),kq)),32),n=Kd(wh(e.f,0),7),r==($R(),uB)?qf(n,CB):r==CB&&qf(n,uB),t.a.db(e,t))}function eC(e){return Ga(1,Kd(Dx(e,(CM(),Wq)),24).a)*(e.c.f.g==(JC(),pF)&&e.d.f.g==pF?1:e.c.f.g==pF||e.d.f.g==pF?2:8)}function tC(e){var t,n,r,i;for(i=Kd(Dx(e,(CM(),Lq)),7),n=0,r=(t=Kd(aC(e.b,Dm(uF,tL,12,e.b.c.length,0,1)),47)).length;nr&&Up(t,r,null),t}function oC(e,t){var n,r;for(r=e.a.length,t.lengthr&&Up(t,r,null),t}function cC(e){return Rs(e)?e:js(e)?jo((Wh(e),e)):xf(e)?ks(aa((Wh(e),e))):tp(e)?e.w():Mh(e)?Sb(e):e.toString?e.toString():"[JavaScriptObject]"}function uC(){uC=a,WV=new su("SIMPLE",0),GV=new su(wL,1),VV=new su("LINEAR_SEGMENTS",2),FV=new su("BRANDES_KOEPF",3),YV=new su(EL,4)}function lC(){lC=a,uU=new Pu(pN,0),iU=new Pu("FIRST",1),aU=new Pu("FIRST_SEPARATE",2),oU=new Pu("LAST",3),cU=new Pu("LAST_SEPARATE",4)}function sC(){sC=a,mY=new st,bY=Eh(new yS,(EM(),XF)),vY=xh(Eh(new yS,hG),dG),pY=xh(Ch(Eh(Sh(new yS,JF),tG),rG),eG),gY=xh(Ch(new yS,rG),HF)}function fC(e){var t,n,r;for(n=new Wn(new Yn(e.d.a).a.bb().mb());n.a.G();)r=Kd(n.a.H(),21),Ad((t=Kd(r.yb(),12)).c.e,t),Ad(t.d.b,t)}function dC(e,t){var n,r;if(Il(t>0),(t&-t)==t)return _b(t*X_(e,31)*4.656612873077393e-10);do{r=(n=X_(e,31))%t}while(n-r+(t-1)<0);return _b(r)}function hC(e,t){if(e.c.f==t)return e.d.f;if(e.d.f==t)return e.c.f;throw new ua("Node "+t+" is neither source nor target of edge "+e)}function pC(e,t,n){return Il(e>=0&&e<=1114111),e>=KM?(t[n++]=55296+(e-KM>>10&1023)&XM,t[n]=56320+(e-KM&1023)&XM,2):(t[n]=e&XM,1)}function gC(e){var t,n;if(!e.a)for(e.a=Ns(Kd(e.e,9).c.c.length),n=new Qn(Kd(e.e,9).c);n.ai&&Up(t,i,null),t}function kC(e,t,n){if(n&&(t<0||t>n.a.c.length))throw new ua("index must be >= 0 and <= layer node count");e.d&&Xm(e.d.a,e),e.d=n,n&&Dh(n.a,t,e)}function SC(e,t,n,r,i,a,o,c){var u,l;r&&((u=r.a[0])&&SC(e,t,n,u,i,a,o,c),function(e,t,n,r,i,a,o){var c,u;if(t.Xc()&&((u=e.a.$b(n,r))<0||!i&&0==u))return!1;if(t.Yc()&&((c=e.a.$b(n,a))>0||!o&&0==c))return!1;return!0}(e,n,r.d,i,a,o,c)&&t.ib(r),(l=r.a[1])&&SC(e,t,n,l,i,a,o,c))}function EC(e,t,n){if(e<0)throw new ca(iI+e+" < 0");if(t>n)throw new ca("toIndex: "+t+" > size "+n);if(e>t)throw new ua(iI+e+" > toIndex: "+t)}function CC(e,t){var n,r,i;return n=t.yb(),i=t.zb(),r=e.cb(n),!!(Zu(i)===Zu(r)||null!=i&&xk(i,r))&&!(null==r&&!e.R(n))}function PC(e,t,n){var r;(r=t.c.f).g==(JC(),hF)?(ly(e,(CM(),Rq),Kd(Dx(r,Rq),7)),ly(e,Mq,Kd(Dx(r,Mq),7))):(ly(e,(CM(),Rq),t.c),ly(e,Mq,n.d))}function _C(e,t,n){var r,i,a,o;for(function(e){var t,n;for(null==e.g&&(e.g=_h(e)),t=0,n=e.g.length;tr&&e.charCodeAt(t-1)<=32;)--t;return r>0||t>19)!=(c=t.h>>19)?c-o:(r=e.h)!=(a=t.h)?r-a:(n=e.m)!=(i=t.m)?n-i:e.l-t.l}function zC(e){var t,n,r;for(n=new Wn(new Yn(e.p.a).a.bb().mb());n.a.G();)if(r=Kd(n.a.H(),21),(t=Kd(r.yb(),89)).e&&e.b[t.b]<0)return t;return null}function BC(e,t){var n,r,i,a,o;r=Va(e.d,t.d),a=Va(e.e,t.e),(i=Ha(e.d+e.c,t.d+t.c))=t.length)throw new ca("Greedy SwitchDecider: Free layer layer not in graph.");this.b=t[e],this.c=new ed(this.b),this.d=new ax(this.b)}function rP(e,t){var n;if(this.f=e,this.b=this.f.c,Hv(t,n=e.d),t>=(n/2|0))for(this.e=e.e,this.d=n;t++0;)hv(this);this.a=null}function iP(e){var t,n,r;for(n=new Qn(e.a.b);n.a0&&(e.g=kP(e.g)),xP(e);case 2:return Sl(e.e)<0&&(e.e=xP(e.e)),kP(e);default:return e.d=1+Ga(Bi(e.e),Bi(e.g)),e}}function hP(e,t){this.f=(Ps(),new Er),this.b=new Er,this.j=new Er,this.a=e,this.c=t,this.c>0&&k_(this,this.c-1,($R(),cB)),this.c0&&j_(e,t,n),0):(qu(0==n),0)}function bP(e,t){var n,r,i,a,o;for(i=Kd(Dx(t,(CM(),Xq)),15).a*Kd(Dx(t,(PM(),CU)),15).a,o=e[0].i.a+e[0].j.a,a=1;a=0;t--)x$[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)w$[e]=n,n*=.5}function mP(e){for(;0!=e.g.c&&0!=e.d.c;)Us(e.g).c>Us(e.d).c?(e.i+=e.g.c,iE(e.d)):Us(e.d).c>Us(e.g).c?(e.e+=e.d.c,iE(e.g)):(e.i+=lh(e.g),e.e+=lh(e.d),iE(e.g),iE(e.d))}function yP(e){var t,n,r,i;for(i=new Ka("["),t=!1,r=e.mb();r.G();)n=r.H(),t?i.a+=", ":t=!0,ol(i,n===e?"(this Collection)":(ci(),null==n?VM:cC(n)));return i.a+="]",i.a}function wP(e){var t,n,r,i;for(i=new Ka("{"),t=!1,r=e.bb().mb();r.G();)n=Kd(r.H(),21),t?i.a+=", ":t=!0,ol(i,Pv(e,n.yb())),i.a+="=",ol(i,Pv(e,n.zb()));return i.a+="}",i.a}function xP(e){var t;return Uu(!!e.g),t=e.g,e.g=t.e,t.e=e,t.j=e.j,t.a=e.a,e.a=1+zi(e.e)+zi(e.g),e.j=Nk(Nk(e.c,Hi(e.e)),Hi(e.g)),e.d=1+Ga(Bi(e.e),Bi(e.g)),t.d=1+Ga(Bi(t.e),Bi(t.g)),t}function kP(e){var t;return Uu(!!e.e),t=e.e,e.e=t.g,t.g=e,t.j=e.j,t.a=e.a,e.a=1+zi(e.e)+zi(e.g),e.j=Nk(Nk(e.c,Hi(e.e)),Hi(e.g)),e.d=1+Ga(Bi(e.e),Bi(e.g)),t.d=1+Ga(Bi(t.e),Bi(t.g)),t}function SP(e){var t;ms(new Qn(OC(e.e)))&&((t=Kd(NS(e.e,(OM(),vz)),28))==(NC(),Kz)?function(e){var t,n,r,i,a;for(t=e.e.j,r=new Qn(OC(e));r.a=KM?(t=55296+(e-KM>>10&1023)&XM,n=56320+(e-KM&1023)&XM,String.fromCharCode(t)+""+String.fromCharCode(n)):String.fromCharCode(e&XM)}function VP(e,t,n,r){var i;Ad(e.c,new Pg(e,n,r,Kd(ig(e.k,n),24).a)),Jp(r)&&(t==e.e?r.d.f!=e.a&&r.c.f!=e.a:r.d.f!=e.e&&r.c.f!=e.e)&&(i=n==r.c?r.d:r.c,Ad(e.c,new Pg(e,i,r,Kd(ig(e.k,i),24).a)))}function YP(e,t){var n,r,i;if(t===e)return!0;if(!vs(t,57))return!1;if(i=Kd(t,57),e.Y()!=i.Y())return!1;for(r=i.bb().mb();r.G();)if(n=Kd(r.H(),21),!e._(n))return!1;return!0}function WP(e,t){var n,r,i;return Uk(r=new FE(e),t),ly(r,(CM(),xq),t),ly(r,(OM(),vz),(NC(),Kz)),ly(r,DD,(_E(),ZA)),dr(r,(JC(),fF)),hb(n=new GC,r),qf(n,($R(),_B)),hb(i=new GC,r),qf(i,cB),r}function qP(e,t){var n,r,i;for(i=UM,r=new Qn(bS(t));r.a0&&XP(e,a,n));t.k=0}function QP(e,t){if(0>t)throw new ua("Top must be smaller or equal to bottom.");if(0>e)throw new ua("Left must be smaller or equal to right.");this.d=0,this.c=e,this.a=t,this.b=0}function ZP(e){var t,n,r;if(0==e.length)throw new ua(HL);for(n=0,r=e.length;n1)throw new ua("In straight hyperEdges there may be only one edge.");Ld((i=new Yn(n.a).a.bb().mb(),r=Kd(new Wn(i).a.H(),21),Kd(r.yb(),12)).a,new nc(t,e.b))}function h_(e,t,n){var r,i;if(this.f=e,Hv(n,i=(r=Kd(ig(e.b,t),126))?r.a:0),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++0;)Yb(this);this.b=t,this.a=null}function p_(t,r){"undefined"===qM?n(r):((typeof document!==SN||"object"===BM&&e.exports)&&H$(t(r)),typeof document===SN&&typeof self!==SN&&self.postMessage(r))}function g_(e,t){var n,r,i,a;"x"in e.a&&(i=Kd(Ng(e,"x"),104),t.i.a=i.a),"y"in e.a&&(a=Kd(Ng(e,"y"),104),t.i.b=a.a),jN in e.a&&(r=Kd(Ng(e,jN),104),t.j.a=r.a),RN in e.a&&(n=Kd(Ng(e,RN),104),t.j.b=n.a)}function b_(e,t,n){var r;Mm(this),t==(yb(),eW)?Mp(this.g,e.c):Mp(this.o,e.c),Mp(n==eW?this.g:this.o,e.d),Mp(this.c,e),EE(this,qb(e.c).b,r=qb(e.d).b,r),this.f=function(e,t){return $C(),(e-t<=0?0-(e-t):e-t)<.2}(qb(e.c).b,qb(e.d).b)}function v_(e,t,n){var r,i,a,o,c;for($g(),c=new xy((o=new Za(Kd(wh(t.a,n),18))).b.Y()),i=new nr(o.b.mb());i.b.G();)r=Kd(i.b.H(),37),(a=Kd(ig(e.a,r),31))||(a=vM(r),Cg(e.a,r,a)),c.c[c.c.length]=a;return c}function m_(e){var t,n;if(Uc(Kd(Dx(e,(OM(),vz)),28)))for(n=new Qn(e.f);n.at&&r.$b(e[a-1],e[a])>0;--a)o=e[a],Up(e,a,e[a-1]),Up(e,a-1,o)}(t,n,r,a);else if(y_(t,e,c=n+i,u=c+((o=r+i)-c>>1),-i,a),y_(t,e,u,o,-i,a),a.$b(e[u-1],e[u])<=0)for(;n=r||t upperEndpoint (%s)",Fx(Ia(eA,1),hI,1,4,[t,n])))}((c=e.$b(n,a))<=0,n,a),0==c&&qu(r!=(Xl(),bA)|o!=bA))}function T_(e){if(this.a=e,e.c.f.g==(JC(),fF))this.c=e.c,this.d=Kd(Dx(e.c.f,(CM(),kq)),32);else{if(e.d.f.g!=fF)throw new ua("Edge "+e+" is not an external edge.");this.c=e.d,this.d=Kd(Dx(e.d.f,(CM(),kq)),32)}}function O_(){O_=a,lY=Ch(new yS,(EM(),UF)),fY=Eh(new yS,XF),dY=xh(Eh(new yS,hG),dG),uY=xh(Ch(Eh(new yS,GF),VF),YF),hY=Eh(new yS,xG),sY=xh(new yS,$F),oY=xh(Ch(Eh(Sh(new yS,JF),tG),rG),eG),cY=xh(Ch(new yS,rG),HF)}function j_(e,t,n){var r,i,a,o;return By(n,YI),0==n?qC(e,t):(qu(bf(e.b,t)),(o=e.c.a)?(a=Dm(L$,WI,26,1,12,1),r=KO(o,e.d,t,n,a),Gh(e.c,o,r),a[0]):(e.d.$b(t,t),i=new Hw(t,n),jf(e.a,i,e.a),Gh(e.c,null,i),0))}function R_(e,t,n){var r,i,a,o,c;for(r=0,c=n,t||(r=n*(e.c.length-1),c*=-1),a=new Qn(e);a.a0&&((!cc(e.b.d)||!r.q.d)&&(!uc(e.b.d)||!r.q.b)&&(r.j.e-=0>a/2-.5?0:a/2-.5),(!cc(e.b.d)||!r.q.a)&&(!uc(e.b.d)||!r.q.c)&&(r.j.b+=0>a-1?0:a-1))}(e,t,n),a=new At,i=new Qn(e.b.a.b);i.a0&&((!cc(e.b.d)||!r.q.d)&&(!uc(e.b.d)||!r.q.b)&&(r.j.e+=0>a/2-.5?0:a/2-.5),(!cc(e.b.d)||!r.q.a)&&(!uc(e.b.d)||!r.q.c)&&(r.j.b-=a-1))}(e,t,n)}function N_(e,t){var n,r,i,a;for(e.c[t.k]=!0,Ad(e.a,t),a=new Qn(t.f);a.a(o=c+oa(e.b[e.f[i.k].k]))?n:o;return n-r}function F_(e){var t;return uy(t=new Wi,"type",new Fh((Wf(DH),DH.n))),uy(t,EN,new Fh(e.f)),e.b&&uy(t,"value",e.b),e.a&&uy(t,"context",e.a),uy(t,CN,new Fh(Ts(new la("\n"),new Vn(new Zn((null==e.g&&(e.g=_h(e)),e.g)))))),t}function G_(e,t){var n,r,i,a,o;if(t===e)return!0;if(!vs(t,20))return!1;if(o=Kd(t,20),e.Y()!=o.Y())return!1;for(a=o.mb(),r=e.mb();r.G();)if(n=r.H(),i=a.H(),!(Zu(n)===Zu(i)||null!=n&&xk(n,i)))return!1;return!0}function V_(e){!MA&&(MA=function(){var e=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return e[34]='\\"',e[92]="\\\\",e[173]="\\u00ad",e[1536]="\\u0600",e[1537]="\\u0601",e[1538]="\\u0602",e[1539]="\\u0603",e[1757]="\\u06dd",e[1807]="\\u070f",e[6068]="\\u17b4",e[6069]="\\u17b5",e[8203]="\\u200b",e[8204]="\\u200c",e[8205]="\\u200d",e[8206]="\\u200e",e[8207]="\\u200f",e[8232]="\\u2028",e[8233]="\\u2029",e[8234]="\\u202a",e[8235]="\\u202b",e[8236]="\\u202c",e[8237]="\\u202d",e[8238]="\\u202e",e[8288]="\\u2060",e[8289]="\\u2061",e[8290]="\\u2062",e[8291]="\\u2063",e[8292]="\\u2064",e[8298]="\\u206a",e[8299]="\\u206b",e[8300]="\\u206c",e[8301]="\\u206d",e[8302]="\\u206e",e[8303]="\\u206f",e[65279]="\\ufeff",e[65529]="\\ufff9",e[65530]="\\ufffa",e[65531]="\\ufffb",e}());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(e){return function(e,t){var n=MA[e.charCodeAt(0)];return null==n?e:n}(e)}));return'"'+t+'"'}function Y_(e,t){var n,r,i,a,o;for(r=new Wn(new Yn((1==t?GH:FH).a).a.bb().mb());r.a.G();)for(i=Kd(r.a.H(),21),n=Kd(i.yb(),59),o=Kd(fP(e.f.c,n),18).mb();o.G();)a=Kd(o.H(),27),Xm(e.b.b,a.b),Xm(e.b.a,Kd(a.b,25).f)}function W_(e,t,n){var r,i,a,o;if(nE(n,"Recursive layout",2),0!=t.b.c.length){for(o=1/t.b.c.length,a=new Qn(t.b);a.a=2147483648&&(r-=4294967296),r)}function Q_(e,t,n){var r,i,a;if(t!=n){r=t;do{Df(e,r.d),(a=Kd(Dx(r,(CM(),Hq)),9))&&(Hs(e,(i=r.a).b,i.d),Df(e,a.i),r=ng(a))}while(a);r=n;do{zf(e,r.d),(a=Kd(Dx(r,(CM(),Hq)),9))&&(Fs(e,(i=r.a).b,i.d),zf(e,a.i),r=ng(a))}while(a)}}function Z_(e,t){var n,r,i,a,o;for(n=new At,o=new nu,i=new Wn(new Yn(e.a).a.bb().mb());i.a.G();)a=Kd(i.a.H(),21),WO(o,(r=Kd(a.yb(),12)).c,r,null),WO(o,r.d,r,null);for(;o.a;)Ad(n,sj(o,t,Ks(Kd(Dx(t,(OM(),vz)),28))));return n}function J_(e,t){var n,r,i,a,o;for(r=new Wn(new Yn((1==t?GH:FH).a).a.bb().mb());r.a.G();)for(i=Kd(r.a.H(),21),n=Kd(i.yb(),59),o=Kd(fP(e.f.c,n),18).mb();o.G();)a=Kd(o.H(),27),Ad(e.b.b,Kd(a.b,25)),Ad(e.b.a,Kd(a.b,25).f)}function eT(e){var t,n,r,i,a,o;for(Vd(),Ps(),n=new pm,r=new Qn(e.e.c);r.a0&&i0):i<0&&-i0)}function iT(e,t,n,r,i){var a,o;Nw(ix(Fx(Ia(WA,1),PN,10,0,[i.f.i,i.i,i.a])),n)||(t.c==i?qs(t.a,0,new Qu(n)):Ld(t.a,new Qu(n)),r&&!Po(e.a,n)&&((o=Kd(Dx(t,(OM(),ez)),44))||(o=new Hr,ly(t,ez,o)),Vv(o,a=new Qu(n),o.c.b,o.c),Mp(e.a,a)))}function aT(e){var t,n,r,i,a,o;for(t=0,n=new Qn(e.a);n.a((o=qb(r.d).b)-a<=0?0-(o-a):o-a)?t:o-a<=0?0-(o-a):o-a);return t}function oT(e,t){var n,r,i;if(Zu(t)===Zu(Hh(e)))return!0;if(!vs(t,20))return!1;if(r=Kd(t,20),(i=e.Y())!=r.Y())return!1;if(vs(r,63)){for(n=0;n=0)return r;for(i=1,a=new Qn(t.f);a.a(o=cT(e,c))+1?i:o+1);return function(e,t,n){var r,i;for(r=(i=e.a.c).c.length;ru-n&&c=e.g.d?((t=e.f).e=Pw(e.e,t),t.g=e.g,t.a=e.a-1,t.j=Ak(e.j,n),dP(t)):((t=e.i).g=_w(e.g,t),t.e=e.e,t.a=e.a-1,t.j=Ak(e.j,n),dP(t)):e.e:e.g}function dT(e){var t,n,r,i,a,o;for(i=new Qn(e.a);i.aa.k?qf(o,CB):o.g==CB&&a.k>r.k&&qf(o,uB))}function hT(e,t,n){var r,i,a,o,c,u;for(u=e.b,a=0,i=new Qn(e.a.b);i.a0)return mT(e,t,n.g);if(0!=r)return Nk(Nk(t.ac(n.g),t._b(n)),mT(e,t,n.e));switch(e.b.f.e){case 0:return Nk(t._b(n),t.ac(n.g));case 1:return t.ac(n.g);default:throw new Sr}}function yT(e,t,n){var r;if(!n)return 0;if((r=e.d.$b(e.b.e,n.b))<0)return yT(e,t,n.e);if(0!=r)return Nk(Nk(t.ac(n.e),t._b(n)),yT(e,t,n.g));switch(e.b.d.e){case 0:return Nk(t._b(n),t.ac(n.e));case 1:return t.ac(n.e);default:throw new Sr}}function wT(e,t,n,r){var i,a,o,c;return dr(o=new FE(e),(JC(),hF)),ly(o,(CM(),Lq),t),ly(o,(OM(),vz),(NC(),Kz)),ly(o,Rq,n),ly(o,Mq,r),qf(a=new GC,($R(),_B)),hb(a,o),qf(c=new GC,cB),hb(c,o),gb(t,a),Uk(i=new Gg,t),ly(i,ez,null),bb(i,c),gb(i,r),o}function xT(e,t){var n,r,i,a,o,c,u,l;for(n=0,o=0,c=(a=e.j).length;o.5&&i<50;)t=Oo(sP(n,r=IT(n),!0).a),++i;return sP(e,(Wh(a=Lf(kE(Ud(e.g),Ud(e.g).b-1))),a-r),!1)}(f);break;case 2:case 4:f.a=y,m=function(e){var t,n,r,i,a;for(n=$O(Vj(e)),t=dL,i=0,r=0;t>.5&&i<50;)t=Oo(sP(n,r=NT(n),!0).b),++i;return sP(e,(Wh(a=Lf(kE(Ud(e.g),Ud(e.g).b-1))),a-r),!1)}(f);break;default:return null}return hr(f,new ZP(Fx(Ia(WA,1),PN,10,0,[u,y,m,p,b]))),f}(e.a.c,t,e.a.d,r,XE(e.b),n),Tw(e.a.a,QS(c)),o=EP(e.a.b,c.a,e.b),ab(i=new Wv((!c.k&&(c.k=new DP(Ow(c))),c.k))),o?eg(i,o):i}function ST(e,t){var n,r,i;for(n=new Qn(e.b);n.an.a&&(a=Ga(a,o.a-n.a-1));return a}function PT(e){var t,n;switch(t=Kd(Dx(e,(OM(),az)),15).a,n=Kd(Dx(e,oz),15).a,ly(e,oz,new Fn(t)),ly(e,az,new Fn(n)),Kd(Dx(e,DD),103).e){case 1:ly(e,DD,(_E(),tD));break;case 2:ly(e,DD,(_E(),QA));break;case 3:ly(e,DD,(_E(),JA));break;case 4:ly(e,DD,(_E(),eD))}}function _T(e,t,n){var r,i,a;for(a=new Qn(e.e);a.a0&&(r.b.c-=r.c,r.b.c<=0&&r.b.f>0&&Ld(t,r.b));for(i=new Qn(e.b);i.a0&&(r.a.f-=r.c,r.a.f<=0&&r.a.c>0&&Ld(n,r.a))}function TT(e,t,n){var r,i,a;for(a=new Qn(e.j);a.a0&&(r.b.e-=r.c,r.b.e<=0&&r.b.k>0&&Ld(t,r.b));for(i=new Qn(e.d);i.a0&&(r.a.k-=r.c,r.a.k<=0&&r.a.e>0&&Ld(n,r.a))}function OT(e,t){switch(e.e){case 1:switch(t.e){case 1:return TL;case 4:return.5;case 3:return OL;case 2:return jL}break;case 2:switch(t.e){case 1:return TL;case 2:return.5;case 3:return OL;case 4:return jL}break;default:throw new ua(_L)}return 0}function jT(e,t){var n,r,i,a;for(Ll((a=new av(e,0)).b0),a.a.sb(a.c=--a.b),cd(a,i),Ll(a.b1)&&(++a,++o);return!Ks(Kd(Dx(n,(OM(),vz)),28))&&c&&(++a,++o),Cg(i,n,lS(a)),o}function IT(e){var t,n,r,i,a,o,c,u,l,s;for(l=(s=(c=Kd((o=e.b.mb()).H(),92)).a.a)>zL,u=szL)&&!u)return jw(c.b);if(i&&u||r&&l)return(t=a/(a-s))*jw(n.b)+(1-t)*jw(c.b)}return 0}function NT(e){var t,n,r,i,a,o,c,u,l,s;for(l=(s=(c=Kd((o=e.b.mb()).H(),92)).a.b)>zL,u=szL)&&!u)return jw(c.b);if(i&&u||r&&l)return(t=a/(a-s))*jw(n.b)+(1-t)*jw(c.b)}return 0}function LT(e,t,n){var r,i;return r=0,Jp(t)?Po(e.g,t)?(pT(e.i,lS(Bf(e,t.c)),1),pT(e.i,lS(Bf(e,t.d)),1),ws(e.g,t),r+=RE(e,t,e.i)):(Mp(e.g,t),j_(e.i,lS(Bf(e,t.c)),1),j_(e.i,lS(Bf(e,t.d)),1)):(i=qC(e.i,lS(Kd(ig(e.k,n),24).a)),r+=e.g.a.Y()-i),r}function AT(e){switch(e.e){case 0:return _Y;case 1:return PY;case 2:return SY;case 3:return kY;case 4:return OY;case 5:return TY;case 6:return UY;case 7:return qY;case 8:return CY;case 9:return EY;case 10:return YY;case 11:return jY;default:return WY}}function DT(e){switch(e.e){case 0:return TY;case 1:return UY;case 2:return qY;case 3:return _Y;case 4:return PY;case 5:return SY;case 6:return kY;case 7:return OY;case 8:return CY;case 9:return EY;case 10:return YY;case 11:return jY;default:return WY}}function zT(e){switch(e.e){case 0:return SY;case 1:return kY;case 2:return OY;case 3:return TY;case 4:return UY;case 5:return qY;case 6:return _Y;case 7:return PY;case 8:return CY;case 9:return EY;case 10:return YY;case 11:return jY;default:return WY}}function BT(e){var t;switch(t=e.a.f,e.b){case 0:return new Qn(e.a.f);case 1:return kp(new Bb(t),WC(e));case 2:switch(e.c.e){case 2:case 1:return kp(new Qn(t),WC(e));case 3:case 4:return kp(new Bb(t),WC(e))}}throw new _a("PortOrder not implemented.")}function HT(e,t){var n;e.d&&(t.c!=e.e.c||function(e,t){return Xw(),e==$H&&t==KH||e==$H&&t==XH||e==QH&&t==XH||e==QH&&t==KH}(e.e.b,t.b))&&(Ad(e.f,e.d),e.a=e.d.d+e.d.c,e.d=null,e.e=null),!function(e){return e==$H||e==KH}(t.b)?e.b=t:e.c=t,(t.b==(Xw(),$H)&&!t.a||t.b==KH&&t.a||t.b==XH&&t.a||t.b==QH&&!t.a)&&e.c&&e.b&&(n=new _g(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=n,e.e=t)}function FT(e,t,n,r){this.e=e,this.j=Kd(Dx(e,(CM(),Qq)),134),this.f=Dm(bF,NN,9,t,0,1),this.b=Dm(c$,HM,184,t,6,1),this.a=Dm(bF,NN,9,t,0,1),this.d=Dm(c$,HM,184,t,6,1),this.i=Dm(bF,NN,9,t,0,1),this.g=Dm(c$,HM,184,t,6,1),this.n=Dm(c$,HM,184,t,6,1),this.k=n,this.c=r}function GT(e){if(!e.a.c||!e.a.d)throw new Ea((Wf(rV),rV.j+" must have a source and target "+(Wf(iV),iV.j+" specified.")));if(e.a.c==e.a.d)throw new Ea("Network simplex does not support self-loops: "+e.a+" "+e.a.c+" "+e.a.d);return jp(e.a.c.g,e.a),jp(e.a.d.c,e.a),e.a}function VT(e,t,n,r,i){r==($R(),cB)&&i==cB?Jg(e,t)>Jg(e,n)?e.d=zE(e,n):e.b=zE(e,t):r==_B&&i==_B?Jg(e,t)Jg(e,n)&&(e.d=zE(e,n),e.b=zE(e,t)):Jg(e,t)0&&a>0?t++:r>0?n++:a>0?i++:n++}Rv(e.f,new Ae)}function WT(e,t,n,r){var i,a,o,c,u;n.d.f!=t.f&&(dr(i=new FE(e),(JC(),hF)),ly(i,(CM(),Lq),n),ly(i,(OM(),vz),(NC(),Kz)),r.c[r.c.length]=i,hb(o=new GC,i),qf(o,($R(),_B)),hb(c=new GC,i),qf(c,cB),u=n.d,gb(n,o),Uk(a=new Gg,n),ly(a,ez,null),bb(a,c),gb(a,u),A_(i,o,c))}function qT(e){var t,n,r,i,a,o,c;for(i=dL,o=dL,a=null,n=new gg(new lr(e.e));n.b!=n.c.a.b;)if(1==Kd((t=Zm(n)).d,60).c&&(r=Kd(t.e,116).a,c=Kd(t.e,116).b,(i-r>gL||r-igL)&&(o=Kd(t.e,116).b,i=Kd(t.e,116).a,a=Kd(t.d,60),0==o&&0==i)))return a;return a}function UT(e,t){var n,r,i,a,o,c;return a=e.d,(c=Kd(Dx(e,(OM(),Oz)),15).a)<0&&ly(e,Oz,new Fn(c=0)),t.j.b=c,o=Math.floor(c/2),qf(r=new GC,($R(),_B)),hb(r,t),r.i.b=o,qf(i=new GC,cB),hb(i,t),i.i.b=o,gb(e,r),Uk(n=new Gg,e),ly(n,ez,null),bb(n,i),gb(n,a),function(e,t,n){var r;(r=t.c.f).g==(JC(),hF)?(ly(e,(CM(),Rq),Kd(Dx(r,Rq),7)),ly(e,Mq,Kd(Dx(r,Mq),7))):(ly(e,(CM(),Rq),t.c),ly(e,Mq,n.d))}(t,e,n),function(e,t){var n,r;for(r=new av(e.b,0);r.bzL&&(this.b.ib(n),c=!1),this.b.ib(u);c&&this.b.ib(n)}function QT(e){var t,n,r,i;if(function(e,t){var n,r,i,a,o,c,u;for(i=Dm(L$,WI,26,e.e.a.c.length,12,1),o=new Qn(e.e.a);o.a0){for($a(e.c);B_(e,Kd(cv(new Qn(e.e.a)),61))0?n:0,r.i.b=n+ld(e.a,a,c)):r.i.b=(Wh(o),o)),u=ld(e.a,a,c),r.i.ba?0:a)a?0:a:c,(0>(ua?0:a)a?0:a:c)),a=u,u+=o,r=Kd(wh(e.c,i),9),(n=new _l(l)).j.b=t.j.b,M_(e.b,t,n),Ad(r.c,n);Xm(e.g.c,t),Ad(e.i,new Ic(e,t))}function uO(e,t,n){var r,i,a,o,c,u;for(t.k=1,i=t.d,u=IS(t,(gw(),dU)).mb();u.G();)for(r=new Qn(Kd(u.H(),7).e);r.af+c&&r.I();for(o=new Qn(d);o.agL||r-igL)&&(o=Kd(t.e,116).b,i=Kd(t.e,116).a,a=Kd(t.d,60),0==o&&0==i)))return a;return a}function bO(e,t){var n,r,i;e.d=t,Rm(e.b),e.c=!1;e:for(n=new Qn(e.d.c);n.aa.j.e+a.j.b?h.d=!0:(h.d=!0,h.c=!0))),r.b!=r.d.c&&(t=n);h&&(o=Kd(ig(m,u.d.f),25),t.bo.j.e+o.j.b?h.d=!0:(h.d=!0,h.c=!0))}for(l=Dp(cS(b));gS(l);)0!=(u=Kd(Nb(l),12)).a.b&&(t=Kd(Ys(u.a),10),u.d.g==($R(),uB)&&((S=new tO(t,new nc(t.a,a.j.e),a,u)).c=!0,k.c[k.c.length]=S),u.d.g==CB&&((S=new tO(t,new nc(t.a,a.j.e+a.j.b),a,u)).d=!0,k.c[k.c.length]=S))}if(0!=k.c.length){for($g(),Rv(k,null),Nm(0,k.c.length),i=new q_(Kd(k.c[0],142),e.d),d=1;do?new Jy(t,e,a-o):a>0&&o>0&&(new Jy(e,t,0),new Jy(t,e,0)))}function yO(e,t){var n,r,i,a,o,c,u,l;for(u=new At,l=null,r=Kd(Mg(HG,e),20).mb();r.G();){for(c=new Wn(new Yn((n=Kd(r.H(),75)).c.a).a.bb().mb());c.a.G();)i=Kd(c.a.H(),21),cd(t,a=Kd(i.yb(),7)),K_(a,e.b);mx(u,n.b),l=e.a}for(n_(u),Vy(u,l),o=new Qn(u);o.an.k&&c1&&(a=n?Nu(t.d)+1:Nu(o.d)-1,pb(o,Kd(wh(e.a.c,a),16))),EO(e,o,n));return t}function CO(e,t){var n,r,i,a;for(i=t.d?e.a.c==(mb(),XV)?cS(t.b):uS(t.b):e.a.c==(mb(),KV)?cS(t.b):uS(t.b),a=!1,Ql(),r=new zl(Fl(Zd(i.a,new p)));gS(r);)if(n=Kd(Nb(r),12),e.c.a[n.c.f.d.k]!==e.c.a[n.d.f.d.k]&&(a=!0,Po(e.b,e.a.f[hC(n,t.b).k])))return t.c=!0,t.a=n,t;return t.c=a,t.a=null,t}function PO(e){var t,n,r,i,a,o,c;for(a=new Qn(e.a.a);a.a0&&Gx(this.n,!0,(Dk(),aD)),e.g==(JC(),fF)&&Nd(this.n,!1,!1,!1,!1)}function OO(e,t,n){var r,i,a,o,c,u,l,s;for(a=new nc(t,n),l=new Qn(e.b);l.ar?f:r)>e.j.a&&(l=(c-e.j.a)/2,o.b=Ha(o.b,l),o.c=Ha(o.c,l))}function FO(e,t,n,r){var i,a,o,c,u,l,s,f;for(o=Hs(t.d,n,r),s=new Qn(t.b);s.a=40)&&function(e){var t,n,r,i,a,o,c;for(e.o=new ai,r=new fa,o=new Qn(e.e.a);o.a0,c=_S(t,a),Bl(n?c.c:c.g,t),1==bS(c).c.length&&Vv(r,c,r.c.b,r.c),i=new rc(a,t),fl(e.o,i),Xm(e.e.a,a))}(e),function(e){var t,n,r,i,a,o,c,u,l,s;for(l=e.e.a.c.length,a=new Qn(e.e.a);a.a0?(u=e.g)?(o=u.d,e.g=KO(u,t,n,r,i),0==i[0]&&++e.a,e.j=Nk(e.j,r),e.g.d==o?e:dP(e)):(i[0]=0,Lw(e,n,r)):(i[0]=e.c,qu(bk(Nk(e.c,r),UM)<=0),e.c+=r,e.j=Nk(e.j,r),e)}function XO(e,t,n){var r,i,a,o,c,u,l,s;for(i=!0,o=new Qn(t.c);o.al&&r>l)){i=!1,e.a&&Bd();break}l=oa(n.n[c.k])+oa(n.d[c.k])+c.j.b+c.e.a}if(!i)break}return e.a&&Bd(),i}function QO(e){var t,n,r,i,a,o;if(ms(new Qn(r=bC(e)))){for(o=new _g(0,0,e.e.j.a,e.e.j.b),n=new Qn(r);n.ao.i.b-o.e.d+l.a+f&&(d=u.i+l.i,l.a=(l.i*l.a+u.i*u.a)/d,l.i=d,u.g=l,n=!0)),a=o,u=l;return n}function rj(e){var t,n,r,i,a;if(Zu(Dx(e,(OM(),vz)))===Zu((NC(),Xz))||Zu(Dx(e,vz))===Zu(Kz))for(a=new Qn(e.f);a.ao)return $R(),cB;break;case 4:case 3:if(s<0)return $R(),uB;if(s+n>a)return $R(),CB}return(u=(l+c/2)/o)+(r=(s+n/2)/a)<=1&&u-r<=0?($R(),_B):u+r>=1&&u-r>=0?($R(),cB):r<.5?($R(),uB):($R(),CB)}function aj(e,t,n,r,i,a,o){var c,u,l,s,f;for(f=new uu,u=t.mb();u.G();)for(s=new Qn(DE(Kd(u.H(),627)));s.a0&&Ld(e.e,a)):(e.c[o]-=l+1,e.c[o]<=0&&e.a[o]>0&&Ld(e.d,a))))}function cj(e){var t,n,r,i,a,o,c,u;for(Qx(),this.b=new Qe,this.c=new At,this.a=new At,c=0,u=(o=Xx()).length;c0){for(i=c.length;i>0&&""==c[i-1];)--i;i0&&0==i[0]&&++e.a,e.j=Nk(e.j,r-i[0]),dP(e)):(i[0]=0,r>0?Aw(e,n,r):e):a>0?(c=e.g)?(e.g=hj(c,t,n,r,i),0==r&&0!=i[0]?--e.a:r>0&&0==i[0]&&++e.a,e.j=Nk(e.j,r-i[0]),dP(e)):(i[0]=0,r>0?Lw(e,n,r):e):(i[0]=e.c,0==r?fT(e):(e.j=Nk(e.j,r-e.c),e.c=r,e))}function pj(e,t,n,r,i){var a,o,c;return(a=t.$b(n,e.b))<0?(o=e.e)?(e.e=pj(o,t,n,r,i),i[0]>0&&(r>=i[0]?(--e.a,e.j=Ak(e.j,i[0])):e.j=Ak(e.j,r)),0==i[0]?e:dP(e)):(i[0]=0,e):a>0?(c=e.g)?(e.g=pj(c,t,n,r,i),i[0]>0&&(r>=i[0]?(--e.a,e.j=Ak(e.j,i[0])):e.j=Ak(e.j,r)),dP(e)):(i[0]=0,e):(i[0]=e.c,r>=e.c?fT(e):(e.c-=r,e.j=Ak(e.j,r),e))}function gj(e,t,n){var r,i,a,o,c,u,l,s;for(u=new Qn(n.b);u.a0&&l>0&&xR(v,new nc(C,l),!0))),g=Ha(g,v.i.a+v.j.a),b=Ha(b,v.i.b+v.j.b),h=new Qn(v.c);h.at.a&&(r.kb((QC(),rW))?e.d.a+=(n.a-t.a)/2:r.kb(aW)&&(e.d.a+=n.a-t.a)),n.b>t.b&&(r.kb((QC(),cW))?e.d.b+=(n.b-t.b)/2:r.kb(oW)&&(e.d.b+=n.b-t.b)),Kd(Dx(e,(CM(),Eq)),18).kb((kO(),MW))&&(n.a>t.a||n.b>t.b))for(c=new Qn(e.b);c.a0||0==n&&t.f==(Xl(),bA))&&(c=t.g,u=t.f):(i=t.c,c=t.g,u=t.f),r&&i&&((n=e.a.$b(a,c))>0||0==n&&o==(Xl(),bA)&&u==(Xl(),bA))&&(a=c,Xl(),o=bA,u=gA),new __(e.a,r,a,o,i,c,u)}function kj(e,t,n,r){var i,a,o,c,u,l;if(n.c.f!=t.f)for(dr(i=new FE(e),(JC(),hF)),ly(i,(CM(),Lq),n),ly(i,(OM(),vz),(NC(),Kz)),r.c[r.c.length]=i,hb(o=new GC,i),qf(o,($R(),_B)),hb(c=new GC,i),qf(c,cB),gb(n,o),Uk(a=new Gg,n),ly(a,ez,null),bb(a,c),gb(a,t),A_(i,o,c),l=new av(n.b,0);l.b=r&&l.a>=r&&(s.a=r),d.a<=n&&l.a<=n&&(h.a=n-10),1==t.c.a.Y()?py(o.a,Fx(Ia(WA,1),PN,10,0,[s,f,p,h])):py(o.a,Fx(Ia(WA,1),PN,10,0,[s,f,i,p,h]))}function Ej(e,t){var n,r,i,a,o,c;for(a=e.c,o=e.d,bb(e,null),gb(e,null),t&&aa(oa(Nf(Dx(o,(CM(),Cq)))))?bb(e,wj(o.f,(gw(),dU),($R(),cB))):bb(e,o),t&&aa(oa(Nf(Dx(a,(CM(),Bq)))))?gb(e,wj(a.f,(gw(),fU),($R(),_B))):gb(e,a),r=new Qn(e.b);r.ao&&(o=Kd(Dx(n,Wq),24).a);for(r=Dp(cS(c));gS(r);)n=Kd(Nb(r),12),c.d!=n.c.f.d&&Kd(Dx(n,(CM(),Wq)),24).a==o&&Ad(l,new rc(n.c.f,n));Rv(l,e.c),Dh(e.b,c.k,l)}}(f,e),f.f=Ns(f.d),function(e,t){var n,r,i,a,o,c,u,l;for(a=new Qn(t.c);a.ao&&(o=Kd(Dx(n,Wq),24).a);for(r=Dp(uS(c));gS(r);)n=Kd(Nb(r),12),c.d!=n.d.f.d&&Kd(Dx(n,(CM(),Wq)),24).a==o&&Ad(l,new rc(n.d.f,n));Rv(l,e.c),Dh(e.f,c.k,l)}}(f,e),f}function _j(e){var t,n,r,i,a,o,c,u;for(o=new Qn(e.a);o.aoa(hs(o.g,o.d[0]).a)?(Ll(u.b>0),u.a.sb(u.c=--u.b),cd(u,o),i=!0):c.e&&c.e.Y()>0&&(a=(!c.e&&(c.e=new At),c.e).nb(t),l=(!c.e&&(c.e=new At),c.e).nb(n),(a||l)&&((!c.e&&(c.e=new At),c.e).ib(o),++o.c));i||(r.c[r.c.length]=o)}function Oj(e,t,n,r){var i,a,o,c,u,l,s,f,d,h,p;n.d.f!=t.f&&(dr(i=new FE(e),(JC(),hF)),ly(i,(CM(),Lq),n),ly(i,(OM(),vz),(NC(),Kz)),r.c[r.c.length]=i,hb(o=new GC,i),qf(o,($R(),_B)),hb(c=new GC,i),qf(c,cB),u=n.d,gb(n,o),Uk(a=new Gg,n),ly(a,ez,null),bb(a,c),gb(a,u),f=(s=(l=Kd(wh(o.b,0),12).c).f).g,p=(h=(d=Kd(wh(c.e,0),12).d).f).g,ly(i,Rq,f==hF?Kd(Dx(s,Rq),7):l),ly(i,Mq,p==hF?Kd(Dx(h,Mq),7):d))}function jj(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p;for(o=t,f=t.d,l=t.c.f,d=t.d.f,s=Nu(l.d),h=Nu(d.d),c=s;ct&&(e.a=t),e.b<0?e.b=0:e.b>n&&(e.b=n)}(l,e.j.a,e.j.b),qf(c,ij(c,a)),o=Kd(Dx(r,(CM(),Eq)),18),u=c.g,a.e){case 2:case 1:(u==($R(),uB)||u==CB)&&o.ib((kO(),AW));break;case 4:case 3:(u==($R(),cB)||u==_B)&&o.ib((kO(),AW))}else i=PS(a),c=wj(e,n,n==(gw(),dU)?i:jk(i));return c}function Aj(e){var t,n,r,i,a,o,c,u;for(r=hf(im(e.a)),i=new th(t=Kd(ao($Y),11),Kd(Np(t,t.length),11),0);r.a.G()||r.b.mb().G();)c=(n=Kd(Hy(r),12)).c.g,u=n.d.g,c==($R(),PB)?u!=PB&&(o=GS(u),ly(n,(CM(),Jq),o),qf(n.c,u),Mw(i,o),r.a.I()):u==PB?(o=GS(c),ly(n,(CM(),Jq),o),qf(n.d,c),Mw(i,o),r.a.I()):(o=Rj(c,u),ly(n,(CM(),Jq),o),Mw(i,o),r.a.I());return 1==i.c?a=Kd(lm(new $c(i)),60):(tM(),a=WY),RP(e,a,!1),a}function Dj(e,t,n){var r,i,a,o,c,u,l,s,f;for(u=n+t.d.c.a,f=new Qn(t.f);f.a1,c=Dp(yl((sg(),new vv(eS(Fx(Ia(eA,1),hI,1,4,[s.b,s.e]))))));gS(c);)l=(o=Kd(Nb(c),12)).c==s?o.d:o.c,Oo(ix(Fx(Ia(WA,1),PN,10,0,[l.f.i,l.i,l.a])).b-a.b)>1&&iT(e,o,a,i,s)}}function zj(e,t){var n,r,i,a,o;for(o=new ck(new Gn(e.f.b).a);o.b;){if(i=Kd((a=rw(o)).yb(),251),1==t){if(i.yc()!=(Dk(),cD)&&i.yc()!=rD)continue}else if(i.yc()!=(Dk(),iD)&&i.yc()!=aD)continue;switch(r=Kd(Kd(a.zb(),27).b,25),n=Kd(Kd(a.zb(),27).a,78).c,i.yc().e){case 2:r.j.d=e.e.a,r.j.c=Ha(1,r.j.c+n);break;case 1:r.j.d=r.j.d+n,r.j.c=Ha(1,r.j.c-n);break;case 4:r.j.e=e.e.b,r.j.b=Ha(1,r.j.b+n);break;case 3:r.j.e=r.j.e+n,r.j.b=Ha(1,r.j.b-n)}}}function Bj(e,t,n,r,i){var a,o,c,u,l,s,f,d;for(Ps(),f=new Er,o=new At,f_(e,n,e.d.Mc(),o,f),f_(e,r,e.d.Nc(),o,f),c=new av(o,0);c.b=s&&(m>s&&(l.c=Dm(eA,hI,1,0,4,1),s=m),l.c[l.c.length]=p);0!=l.c.length&&(u=Kd(wh(l,dC(t,l.c.length)),80),xg(_.a,u),u.d=f++,_T(u,C,k),l.c=Dm(eA,hI,1,0,4,1))}for(w=e.c.length+1,g=new Qn(e);g.aP.d&&(pg(n),Xm(P.b,r),r.c>0&&(r.a=P,Ad(P.e,r),r.b=S,Ad(S.b,r)))}(o,Kd(Dx(t,(CM(),Uq)),154)),function(e){var t,n,r,i,a,o,c,u,l;for(u=new At,o=new At,a=new Qn(e);a.a-1){for(i=new Qn(o);i.a0||(c.i=Wa(c.i,r.i-1),--c.f,0==c.f&&(o.c[o.c.length]=c))}}(o),d=-1,s=new Qn(o);s.af||r+i>u)throw new Ur;if(0!=(1&l.g)&&0==(4&l.g)||s==c)i>0&&IC(e,t,n,r,i,!0);else if(e===n&&tr;)n[o]=e[--t];else for(o=r+i;r0&&0==a[0]&&++e.a,e.j=Nk(e.j,i-a[0])),dP(e)):(a[0]=0,0==r&&i>0?Aw(e,n,i):e);if(o>0)return(u=e.g)?(e.g=Gj(u,t,n,r,i,a),a[0]==r&&(0==i&&0!=a[0]?--e.a:i>0&&0==a[0]&&++e.a,e.j=Nk(e.j,i-a[0])),dP(e)):(a[0]=0,0==r&&i>0?Lw(e,n,i):e);if(a[0]=e.c,r==e.c){if(0==i)return fT(e);e.j=Nk(e.j,i-e.c),e.c=i}return e}function Vj(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b;for(u=e.e,h=e.f,o=e.d,s=(p=e.c)-1,g=e.g,f=Ud(e.g.xb(1,e.g.Y()-1)),l=new At,n=0;n0&&(u=e.i.a/a);break;case 2:case 4:(i=e.f.j.b)>0&&(u=e.i.b/i)}ly(e,(CM(),Vq),u)}if(c=e.j,r)e.a.a=r.a,e.a.b=r.b;else if(t!=Zz&&t!=Jz&&o!=PB)switch(o.e){case 1:e.a.a=c.a/2;break;case 2:e.a.a=c.a,e.a.b=c.b/2;break;case 3:e.a.a=c.a/2,e.a.b=c.b;break;case 4:e.a.b=c.b/2}else e.a.a=c.a/2,e.a.b=c.b/2}(u,l,i,Kd(Dx(u,bz),10)),i.e){case 2:case 1:(u.g==($R(),uB)||u.g==CB)&&a.ib((kO(),AW));break;case 4:case 3:(u.g==($R(),cB)||u.g==_B)&&a.ib((kO(),AW))}}function Uj(e){var t,n,r,i,a;for(r=new At,a=new Qn(e.c.f);a.a=g-1)return null;for((i=new At).c[i.c.length]=t,v=t,o=n,h=-1,c=Kd(wh(e.d.c.c,n),16),d=0;d1&&o1&&o>1;)l=lj(e,m),c=Kd(wh(e.d.c.c,o),16),s=Kd(wh(e.d.c.c,o-1),16),kC(m,g=Wa(Kd(p.sb(f++),24).a,s.a.c.length),s),kC(l,v,c),v=g,m&&(i.c[i.c.length]=m),m=l,--y,++a,--o;for(b=(r-(i.c.length-1)*e.d.d)/i.c.length,u=new Qn(i);u.a=0)return!1;if(n.e&&r==(JC(),sF)&&r!=n.e)return!1;if(t.k=n.b,Ad(n.f,t),n.e=r,r==(JC(),hF)||r==gF||r==sF)for(i=new Qn(t.f);i.a0&&(Gx(e.n,!1,(Dk(),iD)),Gx(e.n,!0,aD))}function Xj(e,t,n){var r,i,a,o;switch(a=e.i,i=ix(Fx(Ia(WA,1),PN,10,0,[t.i,t.f.i])),r=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])),o=t.d,t.g.e){case 4:a.a=Va(i.a,r.a)-o.b-e.j.a-n,a.b=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).b+n;break;case 2:a.a=Ha(i.a+t.j.a,r.a)+o.c+n,a.b=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).b+n;break;case 1:a.a=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).a+n,a.b=Va(i.b,r.b)-o.d-e.j.b-n;break;case 3:a.a=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).a+n,a.b=Ha(i.b+t.j.b,r.b)+o.a+n}}function Qj(e,t,n){var r,i,a,o;switch(a=e.i,i=ix(Fx(Ia(WA,1),PN,10,0,[t.i,t.f.i])),r=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])),o=t.d,t.g.e){case 4:a.a=Va(i.a,r.a)-o.b-e.j.a-n,a.b=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).b-e.j.b-n;break;case 2:a.a=Ha(i.a+t.j.a,r.a)+o.c+n,a.b=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).b-e.j.b-n;break;case 1:a.a=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).a+n,a.b=Va(i.b,r.b)-o.d-e.j.b-n;break;case 3:a.a=ix(Fx(Ia(WA,1),PN,10,0,[t.f.i,t.i,t.a])).a+n,a.b=Ha(i.b+t.j.b,r.b)+o.a+n}}function Zj(){Zj=a,FW=new Nv("ONE_SIDED",0,!0,!1,!1),WW=new Nv("TWO_SIDED",1,!1,!1,!1),GW=new Nv("ONE_SIDED_BEST_OF_UP_OR_DOWN",2,!0,!0,!1),qW=new Nv("TWO_SIDED_BEST_OF_UP_OR_DOWN",3,!1,!0,!1),VW=new Nv("ONE_SIDED_BEST_OF_UP_OR_DOWN_ORTHOGONAL_HYPEREDGES",4,!0,!0,!0),UW=new Nv("TWO_SIDED_BEST_OF_UP_OR_DOWN_ORTHOGONAL_HYPEREDGES",5,!1,!0,!0),YW=new Nv("ONE_SIDED_ORTHOGONAL_HYPEREDGES",6,!0,!1,!0),HW=new Nv("OFF",7,!1,!1,!1)}function Jj(e,t,n,r,i,a,o){var c,u,l,s,f,d,h;return f=aa(oa(Nf(Dx(t,(PM(),IU))))),d=null,a==(gw(),fU)&&r.c.f==n?d=r.c:a==dU&&r.d.f==n&&(d=r.d),l=o,o&&f&&!d?(Ad(o.e,r),h=Fa(Kd(Dx(o.d,(OM(),Oz)),15).a,Kd(Dx(r,Oz),15).a),ly(o.d,Oz,new Fn(h))):($R(),s=PB,d?s=d.g:Uc(Kd(Dx(n,(OM(),vz)),28))&&(s=a==fU?_B:cB),u=function(e,t,n,r,i,a){var o,c,u,l,s,f,d;l=r==(gw(),fU)?a.c:a.d,u=pS(t),l.f==n?(o=Kd(ig(e.b,l),9))||(ly(o=qR(l,Kd(Dx(n,(OM(),vz)),28),i,r==fU?-1:1,l.j,u,t),(CM(),Lq),l),Cg(e.b,l,o)):(s=Kd(Dx(a,(OM(),Oz)),15).a,c=function(e,t,n,r){var i,a;switch(i=pS(ng(n)),hb(a=new GC,n),r.e){case 1:qf(a,jk(PS(i)));break;case 2:qf(a,PS(i))}return ly(a,(CM(),Nq),Kd(Dx(t,Nq),15)),ly(t,Lq,a),Cg(e.b,a,t),a}(e,o=qR((f=new m,d=Kd(Dx(t,(CM(),Xq)),15).a*Kd(Dx(t,(PM(),CU)),15).a/2,ly(f,Nq,new Fn(d)),f),Kd(Dx(n,vz),28),i,r==fU?-1:1,new nc(s,s),u,t),n,r),ly(o,Lq,c),Cg(e.b,c,o));return Kd(Dx(t,(CM(),Eq)),18).ib((kO(),MW)),Uc(Kd(Dx(t,(OM(),vz)),28))?ly(t,vz,(NC(),Qz)):ly(t,vz,(NC(),Zz)),o}(e,t,n,a,s,r),c=Cv((ng(n),r)),a==fU?(bb(c,Kd(wh(u.f,0),7)),gb(c,i)):(bb(c,i),gb(c,Kd(wh(u.f,0),7))),l=new Vk(r,c,u,Kd(Dx(u,(CM(),Lq)),7),a,!d)),M_(e.a,r,new xd(l.d,t,a)),l}function eR(e,t,n,r){var i,a,o,c,u,l,s;if(dr(a=new FE(e),(JC(),gF)),ly(a,(OM(),vz),(NC(),Kz)),i=0,t){for(ly(o=new GC,(CM(),Lq),t),ly(a,Lq,t.f),qf(o,($R(),_B)),hb(o,a),u=0,l=(s=Kd(aC(t.b,Dm(uF,tL,12,t.b.c.length,0,1)),47)).length;ud?s:d;for(EE(this,ix(Fx(Ia(WA,1),PN,10,0,[e.f.i,e.i,e.a])).b,f,s),o=new Wn(new Yn(t.a).a.bb().mb());o.a.G();)i=Kd(o.a.H(),21),a=Kd(i.yb(),27),Mp(this.c,Kd(a.b,12));this.f=!1}function cR(e,t,n,r){var i,a,o,c,u;if(!((c=(OM(),uz).b)in t.a)||!Ng(t,c).ic().a){if(!(u=Ng(t,EN)))throw new Pp("Labels must have a property 'text'.",null,t);if(!u.lc())throw new Pp("A label's 'text' property must be a string.",u,t);if(ly(a=new _l(u.lc().a),(CM(),Lq),t),Cg(e.f,a,t),g_(t,a),HC(t,a),vs(n,9)?Ad(Kd(n,9).c,a):vs(n,12)?Ad(Kd(n,12).b,a):vs(n,7)&&Ad(Kd(n,7).c,a),vs(n,12))switch(o=Kd(Dx(a,WD),107),g_(t,a),ly(a,WD,o),i=Kd(Dx(r,Eq),18),o.e){case 2:case 3:i.ib((kO(),RW));case 1:case 0:i.ib((kO(),OW)),ly(a,WD,(Qw(),sD))}}}function uR(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b;for(i=0,a=0,u=new Qn(e.a);u.a.5?b-=2*a*(h-.5):h<.5&&(b+=2*i*(.5-h)),b<(r=o.e.b)&&(b=r),p=o.e.c,b>g.a-p-l&&(b=g.a-p-l),o.i.a=t+b}}function lR(){lR=a,IH=new ea,MH=VO(Fx(Ia(qA,1),hI,79,0,[(OM(),AD),KD])),OH=VO(Fx(Ia(qA,1),hI,79,0,[sz,mz,(PM(),GU),XD,(CM(),Wq),WU,DU])),CH=VO(Fx(Ia(qA,1),hI,79,0,[zD,GD,uz,$D,JD,nz,rz,Ez,Cz,ZD,gU,xU,kU,MU,PU,IU,VU,zU,vU])),TH=VO(Fx(Ia(qA,1),hI,79,0,[oz,az,tz,Oz,lz,Yq,sq,iq,Xq,BU,CU,RU])),_H=VO(Fx(Ia(qA,1),hI,79,0,[wz,DD,YD,qD,WD,UD,QD,fz,dz,hz,pz,gz,vz,yz,bU,wU,NU,SU,yU,LU,AU,_U,TU,jU,HU,FU,YU,qU,OU])),PH=VO(Fx(Ia(qA,1),hI,79,0,[cz,Pz,_z,mU])),RH=VO(Fx(Ia(qA,1),hI,79,0,[LD,HD,ez,iz,bz,kz])),jH=VO(Fx(Ia(qA,1),hI,79,0,[(Ux(),kH)]))}function sR(e){var t,n,r,i,a,o,c;for(t=0,a=new Qn(e.b.a);a.aUI)&&c<10);ga(e.c,new R),sR(e),function(e){AR(e,(Dk(),iD)),e.e=!0}(e.c),function(e){var t,n,r,i,a,o,c;for(i=new Qn(e.a.b);i.a0;){for(Nm(0,c.c.length),h=Kd(c.c[0],12),Nm(0,f.c.length),i=sy((r=Kd(f.c[0],12)).d.b,r,0),tv(h,r.d,i),bb(r,null),gb(r,null),d=h.a,t&&Ld(d,new Qu(b)),n=WE(r.a,0);n.b!=n.d.c;)Ld(d,new Qu(Kd(Bv(n),10)));for(g=h.b,s=new Qn(r.b);s.a0?Yy(this,this.f/this.a):null!=hs(t.g,t.d[0]).a&&null!=hs(n.g,n.d[0]).a?Yy(this,(oa(hs(t.g,t.d[0]).a)+oa(hs(n.g,n.d[0]).a))/2):null!=hs(t.g,t.d[0]).a?Yy(this,hs(t.g,t.d[0]).a):null!=hs(n.g,n.d[0]).a&&Yy(this,hs(n.g,n.d[0]).a)}function bR(e,t){var n,r,i,a,o,c,u,l,s,f,d;switch(e.g.e){case 1:if(r=Kd(Dx(e,(CM(),Lq)),12),(n=Kd(Dx(r,Aq),44))?aa(oa(Nf(Dx(r,Kq))))&&(n=zx(n)):n=new Hr,l=Kd(Dx(e,Rq),7),t<=(s=ix(Fx(Ia(WA,1),PN,10,0,[l.f.i,l.i,l.a]))).a)return s.b;if(Vv(n,s,n.a,n.a.a),f=Kd(Dx(e,Mq),7),(d=ix(Fx(Ia(WA,1),PN,10,0,[f.f.i,f.i,f.a]))).a<=t)return d.b;for(Vv(n,d,n.c.b,n.c),o=Kd(Bv(u=WE(n,0)),10),c=Kd(Bv(u),10);c.a=2)for(zg(e.a),r=0,d=WE(n,0);d.b!=d.d.c;)f=Kd(Bv(d),10),0==r?(t=zf(zf(new nc(f.a,f.b),e.c.i),e.c.f.i),e.c.a.a=t.a,e.c.a.b=t.b):r==n.b-1?(t=zf(zf(new nc(f.a,f.b),e.d.i),e.d.f.i),e.d.a.a=t.a,e.d.a.b=t.b):Ld(e.a,f),++r;if(s)for(u=WE(e.a,0);u.b!=u.d.c;)c=Kd(Bv(u),10),o.a=Ha(o.a,c.a),o.b=Ha(o.b,c.b);for(a=new Qn(e.b);a.a0&&ly(o,hq,(Xh(),Xh(),a$)),(c=Kd(Dx(o,(OM(),vz)),28))==(NC(),Jz)||c!=Zz&&r.ib((kO(),LW)),aa(oa(Nf(Dx(o,GD))))&&r.ib((kO(),jW)),aa(oa(Nf(Dx(o,ZD))))&&(r.ib((kO(),NW)),r.ib(IW),ly(o,vz,Zz)),o}function yR(e,t){t.V()&&Nd(e.n,!0,!0,!0,!0),t.t(($R(),pB))&&Nd(e.n,!0,!0,!0,!1),t.t(lB)&&Nd(e.n,!1,!0,!0,!0),t.t(kB)&&Nd(e.n,!0,!0,!1,!0),t.t(EB)&&Nd(e.n,!0,!1,!0,!0),t.t(gB)&&Nd(e.n,!1,!0,!0,!1),t.t(sB)&&Nd(e.n,!1,!0,!1,!0),t.t(SB)&&Nd(e.n,!0,!1,!1,!0),t.t(xB)&&Nd(e.n,!0,!1,!0,!1),t.t(yB)&&Nd(e.n,!0,!0,!0,!0),t.t(dB)&&Nd(e.n,!0,!0,!0,!0),t.t(yB)&&Nd(e.n,!0,!0,!0,!0),t.t(fB)&&Nd(e.n,!0,!0,!0,!0),t.t(wB)&&Nd(e.n,!0,!0,!0,!0),t.t(mB)&&Nd(e.n,!0,!0,!0,!0),t.t(vB)&&Nd(e.n,!0,!0,!0,!0)}function wR(e,t){var n,r,i,a,o,c,u,l,s;for(c=!0,i=0,u=e.f[t.k],l=t.j.b+e.n,n=e.c[t.k][2],um(e.a,u,lS(Kd(wh(e.a,u),24).a-1+n)),um(e.b,u,oa(Lf(wh(e.b,u)))-l+n*e.e),++u>=e.i?(++e.i,Ad(e.a,lS(1)),Ad(e.b,l)):(r=e.c[t.k][1],um(e.a,u,lS(Kd(wh(e.a,u),24).a+1-r)),um(e.b,u,oa(Lf(wh(e.b,u)))+l-r*e.e)),(e.q==(ET(),RG)&&(Kd(wh(e.a,u),24).a>e.j||Kd(wh(e.a,u-1),24).a>e.j)||e.q==NG&&(oa(Lf(wh(e.b,u)))>e.k||oa(Lf(wh(e.b,u-1)))>e.k))&&(c=!1),a=Dp(cS(t));gS(a);)o=Kd(Nb(a),12).c.f,e.f[o.k]==u&&(i+=Kd((s=wR(e,o)).a,24).a,c=c&&aa(oa(Nf(s.b))));return e.f[t.k]=u,new rc(lS(i+=e.c[t.k][0]),(Xh(),c?a$:i$))}function xR(e,t,n){var r,i,a,o,c,u,l,s,f,d,h,p,g,b,v;if(d=new Qu(e.j),v=t.a/d.a,c=t.b/d.b,g=t.a-d.a,a=t.b-d.b,n)for(i=Zu(Dx(e,(OM(),vz)))===Zu((NC(),Kz)),p=new Qn(e.f);p.a=1&&(b-o>0&&f>=0?(u.i.a+=g,u.i.b+=a*o):b-o<0&&s>=0&&(u.i.a+=g*b,u.i.b+=a));e.j.a=t.a,e.j.b=t.b,ly(e,(OM(),Pz),(qS(),new th(r=Kd(ao(HB),11),Kd(Np(r,r.length),11),0)))}function kR(e){var t,n,r,i,a,o,c,u,l,s;for(r=new At,o=new Qn(e.e.a);o.a-1){for(r=WE(o,0);r.b!=r.d.c;)(n=Kd(Bv(r),77)).n=a;for(;0!=o.b;)for(t=new Qn((n=Kd(wC(o,0),77)).d);t.a0),a.a.sb(a.c=--a.b),cd(a,n),Rp(u,n),K_(n,c.g),uv(u),uv(u),r.a.eb(n)}}function TR(e){var t,n,r,i,a,o,c,u;for(t=null,r=new Qn(e);r.a0&&0==n.c&&(!t&&(t=new At),t.c[t.c.length]=n);if(t)for(;0!=t.c.length;){if((n=Kd(Om(t,0),102)).b&&n.b.c.length>0)for(!n.b&&(n.b=new At),a=new Qn(n.b);a.asy(e,n,0))return new rc(i,n)}else if(oa(hs(i.g,i.d[0]).a)>oa(hs(n.g,n.d[0]).a))return new rc(i,n);for(c=(!n.e&&(n.e=new At),n.e).mb();c.G();)!(o=Kd(c.H(),102)).b&&(o.b=new At),Im(0,(u=o.b).c.length),ju(u.c,0,n),o.c==u.c.length&&(t.c[t.c.length]=o)}return null}function OR(e,t){var n,r,i,a,o,c,u,l,s;if(1!=ag(uS(t))||Kd(Zb(uS(t)),12).d.f.g!=(JC(),hF))return null;for(dr(n=(a=Kd(Zb(uS(t)),12)).d.f,(JC(),sF)),ly(n,(CM(),Rq),null),ly(n,Mq,null),ly(n,(OM(),vz),Kd(Dx(t,vz),28)),ly(n,cz,Kd(Dx(t,cz),86)),i=Dx(a.c,Lq),o=null,l=zP(n,($R(),cB)).mb();l.G();)if(0!=(c=Kd(l.H(),7)).e.c.length){ly(c,Lq,i),s=a.c,c.j.a=s.j.a,c.j.b=s.j.b,c.a.a=s.a.a,c.a.b=s.a.b,mx(c.c,s.c),s.c.c=Dm(eA,hI,1,0,4,1),o=c;break}if(ly(a.c,Lq,null),!bv(zP(t,cB)))for(u=new Qn(im(zP(t,cB)));u.a0?i+e.i[1]*t+e.n[1]:0,e.o[3]>0?i+e.i[3]*t+e.n[3]:0),Ha(e.o[4]>0?n+e.i[4]*t+e.n[4]:0,e.o[2]>0?n+e.i[2]*t+e.n[2]:0))}(e,e.k);break;case 4:r=new Qu(o);break;case 5:r=function(e,t){var n,r,i,a,o;for(o=new sa,a=new Qn(OC(e));a.a0&&(a.a=Ha(a.a,i+e.q.b+e.q.c)),n>0&&(a.b=Ha(a.b,n+e.q.d+e.q.a))):(i>0&&(a.a=Ha(a.a,i)),n>0&&(a.b=Ha(a.b,n)))),function(e,t){e.e.j.a=t.a,e.e.j.b=t.b}(e.e,a)}}function RR(e,t,n){var r,i,a,o,c,u,l,s,f,d,h;if(!e.b)return!1;for(o=null,d=null,i=1,(u=new ry(null,null)).a[1]=e.b,f=u;f.a[i];)l=i,c=d,d=f,f=f.a[i],i=(r=e.a.$b(t,f.d))<0?0:1,0==r&&(!n.c||Ig(f.e,n.d))&&(o=f),f&&f.b||qa(f.a[i])||(qa(f.a[1-i])?d=d.a[l]=Iw(f,i):qa(f.a[1-i])||(h=d.a[1-l])&&(qa(h.a[1-l])||qa(h.a[l])?(a=c.a[1]==d?1:0,qa(h.a[l])?c.a[a]=lv(d,l):qa(h.a[1-l])&&(c.a[a]=Iw(d,l)),f.b=c.a[a].b=!0,c.a[a].a[0].b=!1,c.a[a].a[1].b=!1):(d.b=!1,h.b=!0,f.b=!0)));return o&&(n.b=!0,n.d=o.e,f!=o&&(function(e,t,n,r){var i,a;for(i=null==(a=t).d||e.a.$b(n.d,a.d)>0?1:0;a.a[i]!=n;)a=a.a[i],i=e.a.$b(n.d,a.d)>0?1:0;a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}(e,u,o,s=new ry(f.d,f.e)),d==o&&(d=s)),d.a[d.a[1]==f?1:0]=f.a[f.a[0]?0:1],--e.c),e.b=u.a[1],e.b&&(e.b.b=!1),n.b}function MR(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p;for(d=new Qn(e);d.a(v=r?Kd(Dx(s,zV),24).a:JM)?u:v,y=new Qn(s.f);y.a=l&&x>=b&&(d+=p.i.b+g.i.b+g.a.b-w,++c));if(n)for(o=new Qn(m.b);o.a=l&&x>=b&&(d+=p.i.b+g.i.b+g.a.b-w,++c))}c>0&&(k+=d/c,++h)}h>0?(t.a=i*k/h,t.i=h):(t.a=0,t.i=0)}function AR(e,t){var n;if(e.e)throw new Ea((Wf(qH),"The "+qH.j+WN));if(!function(e,t){return Qs(e.c,t)}(e.a,t))throw new Ti("The direction "+t+" is not supported by the CGraph instance.");if(t==e.d)return e;switch(n=e.d,e.d=t,n.e){case 0:switch(t.e){case 2:Rx(e);break;case 1:vE(e),Rx(e);break;case 4:iP(e),Rx(e);break;case 3:iP(e),vE(e),Rx(e)}break;case 2:switch(t.e){case 1:vE(e),NO(e);break;case 4:iP(e),Rx(e);break;case 3:iP(e),vE(e),Rx(e)}break;case 1:switch(t.e){case 2:vE(e),NO(e);break;case 4:vE(e),iP(e),Rx(e);break;case 3:vE(e),iP(e),vE(e),Rx(e)}break;case 4:switch(t.e){case 2:iP(e),Rx(e);break;case 1:iP(e),vE(e),Rx(e);break;case 3:vE(e),NO(e)}break;case 3:switch(t.e){case 2:vE(e),iP(e),Rx(e);break;case 1:vE(e),iP(e),vE(e),Rx(e);break;case 4:vE(e),NO(e)}}return e}function DR(e,t,n){var r,i,a,o,c,u,l,s;if(!e.a[t.d.k][t.k].e){for(e.a[t.d.k][t.k].e=!0,e.a[t.d.k][t.k].b=0,e.a[t.d.k][t.k].d=0,e.a[t.d.k][t.k].a=null,s=new Qn(t.f);s.a0&&(e.a[t.d.k][t.k].d+=X_(e.e,24)*PL*.07000000029802322-.03500000014901161,e.a[t.d.k][t.k].a=e.a[t.d.k][t.k].d/e.a[t.d.k][t.k].b)}}function zR(e,t){var n,r,i,a,o,c,u,l,s,f;for(r=new Qn(e.a.c);r.aGN||t.k==QV&&lb?l:b}for(n.e.b+=l-c.b,f=new Qn(e.a);f.a1;)t=Va(i,e.c),dr(s=new FE(e.e.c),(JC(),sF)),ly(s,(OM(),vz),Kd(Dx(u,vz),28)),ly(s,cz,Kd(Dx(u,cz),86)),s.k=e.e.b++,Ad(e.b,s),s.j.b=u.j.b,s.j.a=t,qf(f=new GC,($R(),cB)),hb(f,u),f.i.a=s.j.a,f.i.b=s.j.b/2,qf(d=new GC,_B),hb(d,s),d.i.b=s.j.b/2,d.i.a=-d.j.a,bb(h=new Gg,f),gb(h,d),u=s,Ad(e.e.c.b,u),--l,i-=e.c+e.e.d;for(new LC(e.d,e.b,e.c),o=new Qn(r);o.at.a||t.p>e.a)){for(n=0,r=0,c=new Wn(new Yn(e.o.a).a.bb().mb());c.a.G();)i=Kd(c.a.H(),21),a=Kd(i.yb(),7),SS(ix(Fx(Ia(WA,1),PN,10,0,[a.f.i,a.i,a.a])).b,t.p,t.a)&&++n;for(u=new Wn(new Yn(e.g.a).a.bb().mb());u.a.G();)i=Kd(u.a.H(),21),a=Kd(i.yb(),7),SS(ix(Fx(Ia(WA,1),PN,10,0,[a.f.i,a.i,a.a])).b,t.p,t.a)&&--n;for(l=new Wn(new Yn(t.o.a).a.bb().mb());l.a.G();)i=Kd(l.a.H(),21),a=Kd(i.yb(),7),SS(ix(Fx(Ia(WA,1),PN,10,0,[a.f.i,a.i,a.a])).b,e.p,e.a)&&++r;for(o=new Wn(new Yn(t.g.a).a.bb().mb());o.a.G();)i=Kd(o.a.H(),21),a=Kd(i.yb(),7),SS(ix(Fx(Ia(WA,1),PN,10,0,[a.f.i,a.i,a.a])).b,e.p,e.a)&&--r;n1)for(u=WE(Ud(zP(t,_B)),0);u.b!=u.d.c;)0==(c=Kd(Bv(u),7)).b.c.length?(qf(i=new GC,_B),i.j.a=c.j.a,i.j.b=c.j.b,hb(i,r),ly(i,Lq,Dx(c,Lq)),hb(c,null)):hb(o,r);return ly(t,Lq,null),ly(t,uq,i$),dr(t,sF),ly(r,(OM(),vz),Kd(Dx(t,vz),28)),ly(r,cz,Kd(Dx(t,cz),86)),Dh(e.b,0,r),r}function qR(e,t,n,r,i,a,o){var c,u,l,s,f,d;switch(f=n,dr(l=new FE(o),(JC(),fF)),ly(l,(CM(),Sq),i),ly(l,(OM(),vz),(NC(),Kz)),ly(l,Nq,Kd(Dx(e,lz),15)),!(u=Kd(Dx(e,bz),10))&&(u=new nc(i.a/2,i.b/2)),ly(l,bz,u),hb(s=new GC,l),t!=Zz&&t!=Jz||(c=a!=(Dk(),oD)?a:aD,f=r>0?PS(c):jk(PS(c)),ly(e,wz,f)),f.e){case 4:ly(l,(PM(),jU),(lC(),aU)),ly(l,mq,(Kx(),dW)),l.j.b=i.b,qf(s,($R(),cB)),s.i.b=u.b;break;case 2:ly(l,(PM(),jU),(lC(),cU)),ly(l,mq,(Kx(),sW)),l.j.b=i.b,qf(s,($R(),_B)),s.i.b=u.b;break;case 1:ly(l,_q,(Xy(),ZW)),l.j.a=i.a,qf(s,($R(),CB)),s.i.a=u.a;break;case 3:ly(l,_q,(Xy(),XW)),l.j.a=i.a,qf(s,($R(),uB)),s.i.a=u.a}if(t==$z||t==Xz||t==Kz){switch(d=0,f.e){case 4:case 2:case 1:case 3:d=null.cd,t==Xz&&(d/=null.cd)}ly(l,Vq,d)}return ly(l,kq,f),l}function UR(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y;for(l=new Hr,Ps(),Cg(v=new Er,e,cP(e)),By(2,GI),r=new xy(2),e.c&&Ad(r,e.c),e.d&&Ad(r,e.d),h=new Qn(r);h.a1&&Vv(l,p,l.c.b,l.c),qy(n)));p=g}return l}function $R(){var e;$R=a,PB=new wc(hN,0),uB=new wc("NORTH",1),cB=new wc("EAST",2),CB=new wc("SOUTH",3),_B=new wc("WEST",4),$g(),hB=new Za(new th(e=Kd(ao(NB),11),Kd(Np(e,e.length),11),0)),pB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[]))),lB=Jk(ap(cB,Fx(Ia(NB,1),gI,32,0,[]))),kB=Jk(ap(CB,Fx(Ia(NB,1),gI,32,0,[]))),EB=Jk(ap(_B,Fx(Ia(NB,1),gI,32,0,[]))),yB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[CB]))),dB=Jk(ap(cB,Fx(Ia(NB,1),gI,32,0,[_B]))),xB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[_B]))),gB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[cB]))),SB=Jk(ap(CB,Fx(Ia(NB,1),gI,32,0,[_B]))),sB=Jk(ap(cB,Fx(Ia(NB,1),gI,32,0,[CB]))),mB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[cB,_B]))),fB=Jk(ap(cB,Fx(Ia(NB,1),gI,32,0,[CB,_B]))),wB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[CB,_B]))),bB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[cB,CB]))),vB=Jk(ap(uB,Fx(Ia(NB,1),gI,32,0,[cB,CB,_B])))}function KR(e,t,n){var r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w;if(ly(s=new Zy,SH,t),Cg(e.e,t,s),ly(s,(CM(),Hq),n),e.d&&jP(e.d,s,!1),HC(t,s),MN in t.a&&(b=s.a,v=Kd(Ng(t,MN),69),(g=Kd(Ng(v,"left"),104))&&(b.b=g.a),(y=Kd(Ng(v,"top"),104))&&(b.d=y.a),(m=Kd(Ng(v,"right"),104))&&(b.c=m.a),(i=Kd(Ng(v,xN),104))&&(b.a=i.a)),f=new th(r=Kd(ao($W),11),Kd(Np(r,r.length),11),0),ly(s,Eq,f),null==e.g&&(e.g=Nf(Dx(s,(Qg(),NH)))),IN in t.a){if(!(w=Ng(t,IN)).hc())throw new Pp("The 'children' property of nodes must be an array.",w,t);if((l=w.hc()).a.length>0){for(n&&ly(n,Iq,s),c=Dm(bF,NN,9,l.a.length,0,1),h=0;h1)for(Ad(a,new oR(h,m,n)),f=new Wn(new Yn(m.a).a.bb().mb());f.a.G();)l=Kd(f.a.H(),21),Xm(i,Kd(l.yb(),27).b);if(o.a.Y()>1)for(Ad(a,new oR(h,o,n)),f=new Wn(new Yn(o.a).a.bb().mb());f.a.G();)l=Kd(f.a.H(),21),Xm(i,Kd(l.yb(),27).b)}}function JR(e,t){var n,r,i,a,o,c,u,l,s;switch(Rv(a=im(Qd(t,new ih(e))),new et),(i=e.b).c){case 2:Mp(t,new s_(r=kT(e,o=kw(n=Hl(Qd(a,new En(i.a))))?Kd(zm(n),91).b:15,kw(n=Hl(Qd(a,new En(XE(i)))))?Kd(zm(n),91).b:15,kw(n=Hl(Qd(a,new En(i.b))))?Kd(zm(n),91).b:15),e.c,e.e,e.a.c.f,i.a)),Mp(t,new s_(r,e.c,e.e,e.a.c.f,XE(i))),Mp(t,new s_(r,e.c,e.e,e.a.c.f,i.b));break;case 1:Mp(t,new s_(r=hT(e,o=kw(n=Hl(Qd(a,new En(i.a))))?Kd(zm(n),91).b:15,kw(n=Hl(Qd(a,new En(i.b))))?Kd(zm(n),91).b:15),e.c,e.e,e.a.c.f,i.a)),Mp(t,new s_(r,e.c,e.e,e.a.c.f,i.b));break;case 0:o=kw(n=Hl(Qd(a,new En(i.a))))?Kd(zm(n),91).b:15,c=e.b,u=function(e,t,n){var r,i,a,o,c,u,l,s,f;return r=mC(e.g),l=Df(El(e.i),e.a),s=Df(El(t.i),t.a),i=Df(new Qu(l),ss(new Cp(r),n)),f=Df(new Qu(s),ss(new Cp(r),n)),o=ss(zf(new Qu(i),f),.5),u=Df(Df(new Qu(f),o),ss(new Cp(r),Au(o.a*o.a+o.b*o.b))),a=sP(c=new bg(Fx(Ia(WA,1),PN,10,0,[l,i,u,f,s])),.5,!1),c.a=a,hr(c,new ZP(Fx(Ia(WA,1),PN,10,0,[a,l,s]))),c}(e.a.c,e.a.d,o),Tw(e.a.a,QS(u)),l=EP(e.a.b,u.a,c),ab(s=new Wv((!u.k&&(u.k=new DP(Ow(u))),u.k))),Mp(t,new s_(r=l?eg(s,l):s,e.c,e.e,e.a.c.f,i.a));break;default:throw new ua("The loopside must be defined.")}return r}function eM(e,t,n){var r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w;for(o=new Qn(e.a.c);o.a0)if(r=s.Y(),u=_b(Math.floor((r+1)/2))-1,i=_b(Math.ceil((r+1)/2))-1,t.k==ZV)for(l=i;l>=u;l--)t.a[y.k]==y&&(p=Kd(s.sb(l),27),h=Kd(p.a,9),!Po(n,p.b)&&d>e.b.e[h.k]&&(t.a[h.k]=y,t.f[y.k]=t.f[h.k],t.a[y.k]=t.f[y.k],d=e.b.e[h.k]));else for(l=u;l<=i;l++)t.a[y.k]==y&&(b=Kd(s.sb(l),27),g=Kd(b.a,9),!Po(n,b.b)&&d0||n.k==ZV&&ib?h:b):n.n[t.k]=r>(h>b?h:b)?r:h>b?h:b)):(g=e.d.f,p=Rw(e,n.i[t.k]),d=Rw(e,n.i[f.k]),n.k==ZV?ev(p,d,oa(n.n[t.k])+oa(n.d[o.k])+o.j.b+o.e.a+g-(oa(n.n[f.k])+oa(n.d[l.k])-l.e.d)):ev(p,d,oa(n.n[t.k])+oa(n.d[o.k])-o.e.d-oa(n.n[f.k])-oa(n.d[l.k])-l.j.b-l.e.a-g))):b=e.e.Ic(b,t,o),o=n.a[o.k]}while(o!=t);!function(e,t){Mp(e.b,t)}(e.e,t)}}function oM(e,t,n,r){var i,a,o,c,u,l,s,f,d,h,p,g,b,v;if(d=!1,f=!1,Uc(Kd(Dx(r,(OM(),vz)),28))){o=!1,c=!1;e:for(p=new Qn(r.f);p.a=r.j.b/2}v?(b=Kd(Dx(r,(CM(),rU)),20))?d?a=b:(i=Kd(Dx(r,fq),20))?a=b.Y()<=i.Y()?b:i:(a=new At,ly(r,fq,a)):(a=new At,ly(r,rU,a)):(i=Kd(Dx(r,(CM(),fq)),20))?f?a=i:(b=Kd(Dx(r,rU),20))?a=i.Y()<=b.Y()?i:b:(a=new At,ly(r,rU,a)):(a=new At,ly(r,fq,a)),a.ib(e),ly(e,(CM(),dq),n),t.d==n?(gb(t,null),n.b.c.length+n.e.c.length==0&&hb(n,null)):(bb(t,null),n.b.c.length+n.e.c.length==0&&hb(n,null)),zg(t.a)}function cM(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m;for((n=new HE(t)).a||function(e){var t,n,r,i,a;switch(i=Kd(wh(e.b,0),9),t=new FE(e),Ad(e.b,t),t.j.a=Ha(1,i.j.a),t.j.b=Ha(1,i.j.b),t.i.a=i.i.a,t.i.b=i.i.b,Kd(Dx(i,(CM(),kq)),32).e){case 4:t.i.a+=2;break;case 1:t.i.b+=2;break;case 2:t.i.a-=2;break;case 3:t.i.b-=2}hb(r=new GC,t),bb(n=new Gg,a=Kd(wh(i.f,0),7)),gb(n,r),Df(Iu(r.i),a.i),Df(Iu(r.a),a.a)}(t),l=function(e){var t,n,r,i,a,o,c;for(c=new Av,o=new Qn(e.b);o.a=c.b.c)&&(c.b=t),(!c.c||t.c<=c.c.c)&&(c.d=c.c,c.c=t),(!c.e||t.d>=c.e.d)&&(c.e=t),(!c.f||t.d<=c.f.d)&&(c.f=t);return r=new PE((Xw(),$H)),Fv(e,nF,new Zn(Fx(Ia(UH,1),hI,160,0,[r]))),o=new PE(QH),Fv(e,tF,new Zn(Fx(Ia(UH,1),hI,160,0,[o]))),i=new PE(KH),Fv(e,eF,new Zn(Fx(Ia(UH,1),hI,160,0,[i]))),a=new PE(XH),Fv(e,JH,new Zn(Fx(Ia(UH,1),hI,160,0,[a]))),jT(r.c,$H),jT(i.c,KH),jT(a.c,XH),jT(o.c,QH),c.a.c=Dm(eA,hI,1,0,4,1),mx(c.a,r.c),mx(c.a,Gw(i.c)),mx(c.a,a.c),mx(c.a,Gw(o.c)),c}(l)),n}function uM(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S,E,C,P;return f=function(e,t){var n,r,i,a,o,c,u,l,s,f,d;if(e.V())return new sa;for(u=0,s=0,r=e.mb();r.G();)u=Ha(u,(i=Kd(r.H(),55).e).a),s+=i.a*i.b;for(u=Ha(u,Math.sqrt(s)*Kd(Dx(Kd(e.mb().H(),55),(CM(),iq)),15).a),f=0,d=0,c=0,n=t,o=e.mb();o.G();)f+(l=(a=Kd(o.H(),55)).e).a>u&&(f=0,d+=c+t,c=0),OO(a,f,d),n=Ha(n,f+l.a),c=Ha(c,l.b),f+=l.a+t;return new nc(n+t,d+c+t)}(bs(e,($R(),hB)),t),p=qE(bs(e,pB),t),w=qE(bs(e,kB),t),E=UE(bs(e,EB),t),d=UE(bs(e,lB),t),m=qE(bs(e,xB),t),g=qE(bs(e,gB),t),k=qE(bs(e,SB),t),x=qE(bs(e,sB),t),C=UE(bs(e,dB),t),v=qE(bs(e,yB),t),y=qE(bs(e,mB),t),S=qE(bs(e,fB),t),P=UE(bs(e,wB),t),h=UE(bs(e,bB),t),b=qE(bs(e,vB),t),n=Ny(Fx(Ia(z$,1),nI,26,12,[m.a,E.a,k.a,P.a])),r=Ny(Fx(Ia(z$,1),nI,26,12,[p.a,f.a,w.a,b.a])),i=v.a,a=Ny(Fx(Ia(z$,1),nI,26,12,[g.a,d.a,x.a,h.a])),l=Ny(Fx(Ia(z$,1),nI,26,12,[m.b,p.b,g.b,y.b])),u=Ny(Fx(Ia(z$,1),nI,26,12,[E.b,f.b,d.b,b.b])),s=C.b,c=Ny(Fx(Ia(z$,1),nI,26,12,[k.b,w.b,x.b,S.b])),_m(bs(e,hB),n+i,l+s),_m(bs(e,vB),n+i,l+s),_m(bs(e,pB),n+i,0),_m(bs(e,kB),n+i,l+s+u),_m(bs(e,EB),0,l+s),_m(bs(e,lB),n+i+r,l+s),_m(bs(e,gB),n+i+r,0),_m(bs(e,SB),0,l+s+u),_m(bs(e,sB),n+i+r,l+s+u),_m(bs(e,dB),0,l),_m(bs(e,yB),n,0),_m(bs(e,fB),0,l+s+u),_m(bs(e,bB),n+i+r,0),(o=new sa).a=Ny(Fx(Ia(z$,1),nI,26,12,[n+r+i+a,C.a,y.a,S.a])),o.b=Ny(Fx(Ia(z$,1),nI,26,12,[l+u+s+c,v.b,P.b,h.b])),o}function lM(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g;if(r=new Hr,l=null,(h=(p=e.c).f.g)!=(JC(),pF)&&h!=gF)throw new ua("The target node of the edge must be a normal node or a northSouthPort.");for(h==gF&&(d=Kd(Dx(p,(CM(),Lq)),7),l=new nc(ix(Fx(Ia(WA,1),PN,10,0,[d.f.i,d.i,d.a])).a,ix(Fx(Ia(WA,1),PN,10,0,[p.f.i,p.i,p.a])).b),p=d),sc(r,ix(Fx(Ia(WA,1),PN,10,0,[p.f.i,p.i,p.a]))),o=Ha(5,VS(p.f,p.g)),(f=new Cp(mC(p.g))).a*=o,f.b*=o,Ld(r,Df(f,ix(Fx(Ia(WA,1),PN,10,0,[p.f.i,p.i,p.a])))),l&&Vv(r,l,r.c.b,r.c),a=e,u=e,c=null,n=!1;a;)0!=(i=a.a).b&&(n?(Ld(r,ss(Df(c,(Ll(0!=i.b),Kd(i.a.a.c,10))),.5)),n=!1):n=!0,c=El((Ll(0!=i.b),Kd(i.c.b.c,10))),Tw(r,i),zg(i)),u=a,a=Kd(Ju(xb(t.d,a)),12);(g=u.d).f.g==gF&&(d=Kd(Dx(g,(CM(),Lq)),7),Ld(r,new nc(ix(Fx(Ia(WA,1),PN,10,0,[d.f.i,d.i,d.a])).a,ix(Fx(Ia(WA,1),PN,10,0,[g.f.i,g.i,g.a])).b)),g=d),o=Ha(5,VS(g.f,g.g)),ss(f=new Cp(mC(g.g)),o),Ld(r,Df(f,ix(Fx(Ia(WA,1),PN,10,0,[g.f.i,g.i,g.a])))),sc(r,ix(Fx(Ia(WA,1),PN,10,0,[g.f.i,g.i,g.a]))),s=new Cj(r),Tw(e.a,QS(s))}function sM(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,g;if(Zu(Dx(e.c,(OM(),vz)))===Zu((NC(),Xz))||Zu(Dx(e.c,vz))===Zu(Kz))for(s=new Qn(e.c.f);s.a1&&(o=Va(o,Oo(Kd(kE(c.a,1),10).b-s.b)))));else for(p=new Qn(t.f);p.ai&&(a=d.a-i,o=UM,r.c=Dm(eA,hI,1,0,4,1),i=d.a),d.a>=i&&(r.c[r.c.length]=c,c.a.b>1&&(o=Va(o,Oo(Kd(kE(c.a,c.a.b-2),10).b-d.b)))));if(0!=r.c.length&&a>t.j.a/2&&o>t.j.b/2){for(hb(h=new GC,t),qf(h,($R(),uB)),h.i.a=t.j.a/2,hb(g=new GC,t),qf(g,CB),g.i.a=t.j.a/2,g.i.b=t.j.b,u=new Qn(r);u.a=l.b?bb(c,g):bb(c,h)):(l=Kd(Pd(c.a),10),(0==c.a.b?qb(c.c):Kd(Ys(c.a),10)).b>=l.b?gb(c,g):gb(c,h)),(f=Kd(Dx(c,(OM(),ez)),44))&&LS(f,l,!0);t.i.a=i-t.j.a/2}}function dM(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y;for(v=new At,m=new At,y=new At,a=new Qn(t);a.a50?v.c[v.c.length]=i:i.k>0?m.c[m.c.length]=i:y.c[y.c.length]=i;if(1==m.c.length&&0==v.c.length&&(mx(v,m),m.c=Dm(eA,hI,1,0,4,1)),0!=v.c.length&&Qs(ll(e.a),(tM(),PY))&&Qs(ll(e.a),(tM(),TY))?function(e,t){var n,r,i;for(r=new Qn(t);r.a1&&(RP(i,g=Kd(Hy(u),60),!0),vp(s),sb(e.a,g))}for(d=y.c.length,r=function(e){var t,n,r,i;switch(sl(e.a).c){case 4:return tM(),TY;case 3:return Kd(sv(e.a).mb().H(),60);case 2:return t=Kd(lm(n=new $c(r=sl(e.a))),60),i=Kd(lm(n),60),DT(t)==i?Qs(r,(tM(),TY))?kY:TY:AT(AT(t))==i?AT(t):zT(t);case 1:return DT(Kd(lm(new $c(r=sl(e.a))),60));case 0:return tM(),OY;default:return null}}(e),h=new At,o=d/ul(e.a).c|0,c=0;c3&&(mx(h,(tM(),tM(),wY)),p-=4),p){case 3:Ad(h,DT(r));case 2:b=AT(DT(r));do{b=AT(b)}while(!Qs(ll(e.a),b));h.c[h.c.length]=b,b=zT(DT(r));do{b=zT(b)}while(!Qs(ll(e.a),b));h.c[h.c.length]=b;break;case 1:Ad(h,DT(r))}for(f=new Qn(h),l=new Qn(y);f.a0,b=y.e.c.length>0,l&&b?d.c[d.c.length]=y:l?p.c[p.c.length]=y:b&&(m.c[m.c.length]=y);for(h=new Qn(p);h.a=g&&(y>g&&(p.c=Dm(eA,hI,1,0,4,1),g=y),p.c[p.c.length]=o);0!=p.c.length&&(h=Kd(wh(p,dC(t,p.c.length)),77),T.a.eb(h),h.i=b++,TT(h,P,S),p.c=Dm(eA,hI,1,0,4,1))}for(x=e.c.length+1,c=new Qn(e);c.a_.i&&(pg(n),Xm(_.d,r),r.c>0&&(r.a=_,Ad(_.j,r),r.b=E,Ad(E.d,r)))}function vM(e){switch(e.e){case 14:return new X;case 37:return new Z;case 8:return new Zi;case 30:return new Ji;case 38:return new ee;case 3:return new te;case 47:case 1:return new vn(($x(),TF));case 4:return new ne;case 49:return new re;case 23:return new nt;case 13:return new ie;case 34:return new oe;case 40:return new ce;case 35:return new se;case 44:return new $l;case 28:return new fe;case 39:return new de;case 27:return new he;case 6:return new pe;case 31:return new me;case 9:return new Ct;case 43:return new we;case 17:return new xe;case 18:return new Ee;case 29:return new Pt;case 11:return new Me;case 12:return new Pe;case 36:return new _e;case 46:case 0:return new vn(($x(),_F));case 41:return new Oe;case 15:return new je;case 33:return new Re;case 42:return new Ne;case 22:return new Le;case 19:return new ve;case 10:return new Te;case 7:return new De;case 24:return new ze;case 21:return new Be;case 16:return new Fe;case 45:return new Ge;case 26:return new Ve;case 20:return new Ye;case 25:return new We;case 5:return new Ze;case 32:return new Je;case 48:case 2:return new vn(($x(),PF));default:throw new ua("No implementation is available for the layout processor "+(null!=e.d?e.d:""+e.e))}}function mM(e,t,n){var r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S,E,C,P,_,T,O;for(_=0,a=0,s=t[0].d,S=n[0].d,h=0,g=n.length;h0;){for(Ll(k.b>0),x=0,i=new Qn((y=Kd(k.a.sb(k.c=--k.b),7)).b);i.a0&&(y.g==($R(),uB)?(e.a[y.k]=_,++_):(e.a[y.k]=_+v+m,++m),a+=x)}_+=m}else{for(b=0,w=new Qn(f.f);w.a0&&(++_,a+=b)}for(E=Dm(L$,WI,26,a,12,1),c=0,d=0,p=t.length;d0;)u%2>0&&(r+=T[u+1]),++T[u=(u-1)/2|0];return r}function yM(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S,E,C,P,_,T,O,j;for(nE(t,"Compound graph postprocessor",1),n=aa(oa(Nf(Dx(e,(PM(),gU))))),c=Kd(Dx(e,(CM(),bq)),144),f=new ea,k=c.W().mb();k.G();){for(x=Kd(k.H(),12),Rv(o=new md(c.U(x)),new un(e)),P=xw((Nm(0,o.c.length),Kd(o.c[0],114))),T=ww(Kd(wh(o,o.c.length-1),114)),zg(x.a),E=P.f,S=Qk(T.f,E)?Kd(Dx(E,Iq),55):ng(E),p=Kd(Dx(x,(OM(),ez)),44),Ih(o,cF)?p?zg(p):(p=new Hr,ly(x,ez,p)):p&&ly(x,ez,null),b=null,a=new Qn(o);a.aZN,j=Oo(b.b-y.b)>ZN,(!n&&O&&j||n&&(O||j))&&Ld(x.a,C)),Tw(x.a,r),0==r.b?b=C:(Ll(0!=r.b),b=Kd(r.c.b.c,10)),(m=Kd(Dx(v,ez),44))&&(nk(h=new Hr,0,m),Uw(h,w),Tw(p,h)),ww(i)==T&&(ng(T.f)!=i.a&&Q_(w=new sa,ng(T.f),S),ly(x,nU,w)),g=new av(v.b,0);g.b(P=Kd(Dx(n,(CM(),Wq)),24).a)?f:P;for(r=new Qn(E.e);r.a(P=Kd(Dx(n,(CM(),Wq)),24).a)?S:P}ly(y,DV,lS(f)),ly(y,zV,lS(S))}for(b=0,d=new Qn(t.c);d.a=0){for(u=null,c=new av(s.a,l+1);c.b1){x=Dm(u$,HM,15,e.a.length,0,1),l=Ns(e.a.length),p=0,h=0,n=2*t.d.a.c.length+1;e:for(w=new Qn(t.f);w.a0?(x[y.k]=new Fn(P/(y.b.c.length+y.e.c.length)),p=Ya(p,x[y.k].a),h=Fa(h,x[y.k].a)):b&&(x[y.k]=new Fn(P))}for(g=(t.d?sy(t.d.a,t,0):-1)+1,d=t.d.a.c.length+1,u=new Qn(l);u.an&&g.a.db(y,g);for(T=new ea,b=new ea,x=new Wn(new Yn(_.a).a.bb().mb());x.a.G();)for(f=Kd(x.a.H(),21),y=Kd(f.yb(),9),o=1==t?uS(y):cS(y),Ql(),l=new zl(Fl(Zd(o.a,new p)));gS(l);)u=Kd(Nb(l),12),Nu(y.d)!=Nu(u.d.f.d)&&Mp(T,u.d.f);for(k=new Wn(new Yn(g.a).a.bb().mb());k.a.G();)for(f=Kd(k.a.H(),21),y=Kd(f.yb(),9),o=1==t?uS(y):cS(y),Ql(),l=new zl(Fl(Zd(o.a,new p)));gS(l);)u=Kd(Nb(l),12),Nu(y.d)!=Nu(u.d.f.d)&&Mp(b,u.d.f);for(CF&&Bd(),C=Kd(wh(e.d.c.c,r+(1==t?1:-1)),16),v=JM,m=UM,d=0;dd?v:d:b.a.R(y)&&(m=m1||ag(yl(new vv(eS(Fx(Ia(eA,1),hI,1,4,[m.b,m.e])))))>1)&&i.ib((kO(),IW)),Zu(Dx(p,(PM(),yU)))===Zu((wv(),SV))&&!(TN in t.a)){n=new Hr;try{for(c=Ng(t,TN).hc(),a=0;a0&&(e.a[B.k]=$++)}else{for(I=0,H=new Qn(P.f);H.a0&&++$}for(J=0,O=0,M=n.length;O0;){for(Ll(V.b>0),G=0,c=new Qn((B=Kd(V.a.sb(V.c=--V.b),7)).b);c.a0&&(B.g==($R(),uB)?(e.a[B.k]=J,++J):(e.a[B.k]=J+N+A,++A))}J+=A}else{for(I=0,H=new Qn(P.f);H.a0&&++J}for(Ps(),F=new Er,h=new Al,_=0,j=t.length;_l.b&&(l.b=Y)):B.f.d==U&&(Yl.c&&(l.c=Y));for(iC(p,0,p.length,(ru(),ru(),m$)),Z=Dm(L$,WI,26,p.length,12,1),r=Dm(L$,WI,26,J+1,12,1),b=0;b0;)k%2>0&&(i+=ne[k+1]),++ne[k=(k-1)/2|0];for(E=Dm(IV,hI,156,2*p.length,0,1),y=0;y0&&(45==e.charCodeAt(0)||43==e.charCodeAt(0))?1:0;tUM)throw new Qa(ZM+e+'"');return i}((ci(),""+n.jc().a))),void ly(e,d,g)}catch(R$){throw vs(R$=vk(R$),130)?new Vi("Invalid integer format for property '"+t+DN+n+")."):Xk(R$)}else{if(Kd(CH.a,18).kb(t)){if(!n.ic())throw new Vi(AN+t+DN+n+").");return d=Kd(Kd(CH.b,57).cb(t),79),Xh(),void ly(e,d,g=n.ic().a?a$:i$)}if(Kd(TH.a,18).kb(t)){if(!n.jc())throw new Vi("Invalid float format for property '"+t+DN+n+").");return void ly(e,d=Kd(Kd(TH.b,57).cb(t),79),g=new Hn(n.jc().a))}if(Kd(_H.a,18).kb(t)){if(!n.lc())throw new Vi(zN+t+DN+n+").");l=n.lc().a,s=null;try{kk((OM(),wz),t)?($R(),s=Kd(Tk((Sm(),OB),l),32)):kk(DD,t)?(_E(),s=Kd(Tk((Ym(),nD),l),103)):kk(YD,t)?(Dk(),s=Kd(Tk((km(),lD),l),59)):kk(qD,t)?(zk(),s=Kd(Tk((Jv(),xD),l),122)):kk(QD,t)?(Bk(),s=Kd(Tk((Ov(),ND),l),166)):kk(fz,t)||kk(dz,t)||kk(hz,t)||kk(pz,t)||kk(gz,t)?(WS(),s=Kd(Tk((Em(),Uz),l),100)):kk(vz,t)?(NC(),s=Kd(Tk((qm(),tB),l),28)):kk(yz,t)?(Ky(),s=Kd(Tk((Tv(),oB),l),149)):kk(UD,t)?(ZC(),s=Kd(Tk((Wm(),OD),l),133)):kk(WD,t)?(Qw(),s=Kd(Tk((Zv(),gD),l),107)):kk((PM(),wU),t)?(Xg(),s=Kd(Tk((Ub(),cV),l),193)):kk(NU,t)?(Cy(),s=Kd(Tk((jv(),pV),l),173)):kk(SU,t)?(AC(),s=Kd(Tk((Oy(),wW),l),115)):kk(bU,t)?(Qy(),s=Kd(Tk((nm(),iY),l),194)):kk(yU,t)?(wv(),s=Kd(Tk((Kb(),CV),l),192)):kk(AU,t)?(ET(),s=Kd(Tk((_y(),zG),l),109)):kk(LU,t)?(uC(),s=Kd(Tk((Ty(),qV),l),141)):kk(HU,t)?(MP(),s=Kd(Tk((Um(),QG),l),125)):kk(FU,t)?(Dv(),s=Kd(Tk(($b(),VG),l),175)):kk(_U,t)?(XC(),s=Kd(Tk((hw(),TW),l),124)):kk(TU,t)?(Zj(),s=Kd(Tk((Jw(),KW),l),110)):kk(jU,t)?(lC(),s=Kd(Tk((jy(),sU),l),85)):kk(YU,t)?($S(),s=Kd(Tk((Gm(),QU),l),153)):kk(qU,t)?(Zw(),s=Kd(Tk((Vm(),n$),l),172)):kk(OU,t)&&(mv(),s=Kd(Tk((rm(),rq),l),174))}catch(R$){throw vs(R$=vk(R$),54)?new Vi(zN+t+DN+n+")."):Xk(R$)}return void ly(e,d=Kd(Kd(_H.b,57).cb(t),79),s)}if(Kd(PH.a,18).kb(t)){if(!n.lc())throw new Vi(zN+t+DN+n+").");for(h=null,o=0,c=(u=fj(n.lc().a,"[\\[\\]\\s,]+")).length;o0&&Lx(t.charCodeAt(n-1),tN);)--n;if(r>=n)throw new ua("The given string does not contain any numbers.");if(2!=(i=fj(t.substr(r,n-r),",|;|\r|\n")).length)throw new ua("Exactly two numbers are expected, "+i.length+" were found.");try{e.a=KC(MC(i[0])),e.b=KC(MC(i[1]))}catch(R$){throw vs(R$=vk(R$),130)?new ua(nN+R$):Xk(R$)}}(p=new sa,n.lc().a),void ly(e,d=Kd(Kd(RH.b,57).cb(t),79),p)}catch(R$){throw vs(R$=vk(R$),29)?new Vi("Invalid KVector format for property '"+t+"' "+n+"."):Xk(R$)}else if(kk(HD,t)||kk(ez,t))try{return function(e,t){var n,r,i,a,o;r=fj(t,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),zg(e);try{for(n=0,a=0,i=0,o=0;n0&&(a%2==0?i=KC(r[n]):o=KC(r[n]),a>0&&a%2!=0&&Ld(e,new nc(i,o)),++a),++n}catch(R$){throw vs(R$=vk(R$),130)?new ua("The given string does not match the expected format for vectors."+R$):Xk(R$)}}(b=new Hr,n.lc().a),void ly(e,d=Kd(Kd(RH.b,57).cb(t),79),b)}catch(R$){throw vs(R$=vk(R$),29)?new Vi("Invalid KVectorChain format for property '"+t+"' "+n+"."):Xk(R$)}else if(kk(iz,t)||kk(LD,t))try{return function(e,t){var n,r,i,a,o,c,u,l;for(a=0;a<(ci(),t.length)&&Ax(t.charCodeAt(a),eN);)++a;for(n=t.length;n>0&&Ax(t.charCodeAt(n-1),tN);)--n;if(a1?Fb(this,e-1):this,t},RM.Pc=function(){return Wf(this),this.b},RM.Qc=function(){return ro(this)},RM.Rc=function(){return io(this)},RM.Sc=function(){return 0!=(4&this.g)},RM.Tc=function(){return 0!=(1&this.g)},RM.w=function(){return(0!=(2&this.g)?"interface ":0!=(1&this.g)?"":"class ")+(Wf(this),this.n)},RM.g=0;var JL;vT(119,72,{3:1,119:1,54:1,46:1},Wr),vT(29,72,QM,qr,ua),vT(95,72,GM,Ur,ca),vT(231,1,{3:1,231:1}),vT(24,231,{3:1,23:1,24:1,231:1},In),RM.F=function(e){return function(e,t){return Vl(e.a,t.a)}(this,Kd(e,24))},RM.t=function(e){return vs(e,24)&&Kd(e,24).a==this.a},RM.v=function(){return this.a},RM.w=function(){return lo(this.a)},RM.a=0,zM={3:1,345:1,23:1,2:1},vT(350,1,eI,ot),RM.$b=function(e,t){return function(e,t){return jg((ci(),e.toLowerCase()),t.toLowerCase())}(Af(e),Af(t))},vT(257,95,GM,(function(e){ca.call(this,e)})),vT(145,1,{23:1,145:1}),RM.F=function(e){return xl(this,Kd(e,145))},RM.t=function(e){var t;return e===this||!!vs(e,145)&&(t=Kd(e,145),Di(this.a,t.a))},RM.v=function(){return TE(this.a)},RM.w=function(){return this.a},vT(358,29,QM,(function(e){ua.call(this,(ci(),null==e?VM:e))})),vT(256,29,{3:1,54:1,29:1,46:1,256:1},(function(e){ua.call(this,(ci(),null==e?VM:e))})),vT(185,145,tI),vT(289,185,tI,Xa),RM.Zc=function(e,t,n){var r,i;for(r=Dm(D$,nI,26,n,12,1),i=0;in)throw new ca(rI)}for(o=Dm(D$,nI,26,a,12,1),s=0,c=0,u=0;u0;){if(128!=(192&(r=e[t+u++])))throw new ua("Invalid UTF8 sequence at "+(t+u-1)+", byte="+(r>>>0).toString(16));i=i<<6|63&r}s+=pC(i,o,s)}return o};var eA=Yp(aI,"Object",1),tA=Yp(aI,"Throwable",46),nA=(Yp(aI,"Exception",54),Yp(aI,"RuntimeException",72),Yp(oI,"JavaScriptException",164),Yp(cI,"StackTraceCreator/Collector",642),Yp(cI,"StackTraceCreator/CollectorLegacy",356),Yp(cI,"StackTraceCreator/CollectorModern",643),Yp(cI,"StackTraceCreator/CollectorModernNoSourceMap",357),Yp(uI,"IOException",181),Yp(uI,"UnsupportedEncodingException",351),Yp(aI,"Class",288),Yp(aI,"ClassCastException",119),Yp(aI,"IllegalArgumentException",29),Yp(aI,"IndexOutOfBoundsException",95),Yp(aI,"Number",231),Yp(aI,"Integer",24)),rA=Yp(aI,"String",2);Yp(aI,"String/1",350),Yp(aI,"StringIndexOutOfBoundsException",257),Yp(lI,"Charset",145),Yp(lI,"IllegalCharsetNameException",358),Yp(lI,"UnsupportedCharsetException",256),Yp(sI,"EmulatedCharset",185),Yp(sI,"EmulatedCharset/LatinCharset",289),Yp(sI,"EmulatedCharset/UtfCharset",355);vT(669,1,{3:1});var iA;Yp(fI,"Optional",669);vT(601,669,{3:1},u),RM.t=function(e){return e===this},RM.v=function(){return 2040732332},RM.w=function(){return"Optional.absent()"},RM.A=function(e){return Hh(e),ui(),iA};Yp(fI,"Absent",601);var aA=Th(fI,"Function");vT(208,1,{},la),RM.C=function(e){return Hp(e)};Yp(fI,"Joiner",208);vT(363,208,{},rh),RM.C=function(e){return Os(this,e)};Yp(fI,"Joiner/1",363);vT(362,1,{},cf);Yp(fI,"Joiner/MapJoiner",362);var oA,cA=Th(fI,"Predicate");vT(244,1,{68:1,244:1,3:1},zt),RM.D=function(e){var t;for(t=0;t0},RM.H=function(){if(this.b>=this.c)throw new Si;return oo(this,this.b++)},RM.L=function(){return this.b},RM.M=function(){if(this.b<=0)throw new Si;return oo(this,--this.b)},RM.N=function(){return this.b-1},RM.b=0,RM.c=0;Yp(mI,"AbstractIndexedListIterator",378);vT(428,108,vI),RM.G=function(){return kw(this)},RM.H=function(){return zm(this)},RM.d=1;Yp(mI,"AbstractIterator",428);vT(653,1,{144:1}),RM.P=function(){return this.f||(this.f=this.S())},RM.T=function(){return new No(this.P())},RM.t=function(e){return rk(this,e)},RM.v=function(){return this.P().v()},RM.V=function(){return 0==this.Y()},RM.W=function(){return lp(this)},RM.w=function(){return this.P().w()};Yp(mI,"AbstractMultimap",653);vT(294,653,wI),RM.Q=function(){YE(this)},RM.R=function(e){return iy(this.b,e)},RM.S=function(){return new Do(this,this.b)},RM.T=function(){return new Ds(this,this.b)},RM.$=function(){return vs(e=this.Z(),137)?($g(),new nf(Kd(e,137))):vs(e,18)?($g(),new Za(Kd(e,18))):vs(e,20)?wb(Kd(e,20)):($g(),new tr(e));var e},RM.U=function(e){return fP(this,e)},RM.X=function(e){return S_(this,e)},RM.Y=function(){return this.c},RM.c=0;Yp(mI,"AbstractMapBasedMultimap",294);vT(600,294,wI),RM.Z=function(){return new xy(this.a)},RM.$=function(){return sg(),sg(),yA},RM.U=function(e){return Kd(fP(this,e),20)},RM.X=function(e){return Kd(S_(this,e),20)},RM.P=function(){return this.f||(this.f=new Do(this,this.b))},RM.t=function(e){return rk(this,e)};Yp(mI,"AbstractListMultimap",600);vT(388,1,xI),RM.G=function(){return this.b.b||this.d.G()},RM.H=function(){var e;return this.d.G()||((e=rw(this.b)).yb(),this.a=Kd(e.zb(),19),this.d=this.a.mb()),this.d.H()},RM.I=function(){this.d.I(),this.a.V()&&Jm(this.b),--this.c.c};Yp(mI,"AbstractMapBasedMultimap/Itr",388);vT(389,388,xI,bw);Yp(mI,"AbstractMapBasedMultimap/1",389);vT(638,1,kI),RM.Q=function(){this.bb().Q()},RM._=function(e){return CC(this,e)},RM.R=function(e){return!!uP(this,e,!1)},RM.ab=function(e){var t,n;for(t=this.bb().mb();t.G();)if(n=Kd(t.H(),21).zb(),Zu(e)===Zu(n)||null!=e&&xk(e,n))return!0;return!1},RM.t=function(e){return YP(this,e)},RM.cb=function(e){return Ju(uP(this,e,!1))},RM.v=function(){return jx(this.bb())},RM.V=function(){return 0==this.Y()},RM.W=function(){return new Yn(this)},RM.db=function(e,t){throw new _a("Put not supported on this map")},RM.eb=function(e){return Ju(uP(this,e,!0))},RM.Y=function(){return this.bb().Y()},RM.w=function(){return wP(this)},RM.fb=function(){return new qn(this)};Yp(SI,"AbstractMap",638);vT(654,638,kI),RM.bb=function(){return sp(this)},RM.W=function(){return this.d||(this.d=new No(this))},RM.fb=function(){return Qp(this)};Yp(mI,"Maps/ViewCachingAbstractMap",654);vT(262,654,kI,Do),RM.cb=function(e){return function(e,t){var n;return(n=Kd(SE(e.a,t),19))?xE(e.b,t,n):null}(this,e)},RM.eb=function(e){return function(e,t){var n,r;return(n=Kd(np(e.a,t),19))?((r=e.b.Z()).jb(n),e.b.c-=n.Y(),n.Q(),r):null}(this,e)},RM.Q=function(){this.a==this.b.b?YE(this.b):gp(new Ob(this))},RM.R=function(e){return ME(this.a,e)},RM.hb=function(){return new Ft(this)},RM.gb=function(){return this.hb()},RM.t=function(e){return this===e||YP(this.a,e)},RM.v=function(){return jx(new Gn(this.a))},RM.W=function(){return lp(this.b)},RM.Y=function(){return Vc(this.a)},RM.w=function(){return wP(this.a)};Yp(mI,"AbstractMapBasedMultimap/AsMap",262);vT(640,1,EI),RM.ib=function(e){return function(){throw new _a("Add not supported on this collection")}()},RM.jb=function(e){return Tw(this,e)},RM.Q=function(){Sg(this)},RM.kb=function(e){return LS(this,e,!1)},RM.lb=function(e){return fx(this,e)},RM.V=function(){return 0==this.Y()},RM.nb=function(e){return LS(this,e,!0)},RM.ob=function(){return this.pb(Dm(eA,hI,1,this.Y(),4,1))},RM.pb=function(e){return xC(this,e)},RM.w=function(){return yP(this)};Yp(SI,"AbstractCollection",640);vT(641,640,CI),RM.t=function(e){return FS(this,e)},RM.v=function(){return jx(this)};Yp(SI,"AbstractSet",641);vT(649,641,CI);Yp(mI,"Sets/ImprovedAbstractSet",649);vT(655,649,CI),RM.Q=function(){this.qb().Q()},RM.kb=function(e){return JS(this,e)},RM.V=function(){return this.qb().V()},RM.nb=function(e){var t;return!!this.kb(e)&&(t=Kd(e,21),this.qb().W().nb(t.yb()))},RM.Y=function(){return this.qb().Y()};Yp(mI,"Maps/EntrySet",655);vT(387,655,CI,Ft),RM.kb=function(e){return IE(new Gn(this.a.a),e)},RM.mb=function(){return new Ob(this.a)},RM.qb=function(){return this.a},RM.nb=function(e){var t;return!!IE(new Gn(this.a.a),e)&&(t=Kd(e,21),cm(this.a.b,t.yb()),!0)};Yp(mI,"AbstractMapBasedMultimap/AsMap/AsMapEntries",387);vT(299,1,xI,Ob),RM.H=function(){var e;return e=rw(this.b),this.a=Kd(e.zb(),19),function(e,t){var n;return n=t.yb(),Ps(),new Ho(n,xE(e.b,n,Kd(t.zb(),19)))}(this.c,e)},RM.G=function(){return this.b.b},RM.I=function(){Jm(this.b),this.c.b.c-=this.a.Y(),this.a.Q()};Yp(mI,"AbstractMapBasedMultimap/AsMap/AsMapIterator",299);vT(260,649,CI,No),RM.Q=function(){this.b.Q()},RM.kb=function(e){return this.b.R(e)},RM.V=function(){return this.b.V()},RM.mb=function(){return Ps(),_d(this.b.bb().mb(),(Zl(),SA))},RM.nb=function(e){return!!this.b.R(e)&&(this.b.eb(e),!0)},RM.Y=function(){return this.b.Y()};Yp(mI,"Maps/KeySet",260);vT(386,260,CI,Ds),RM.Q=function(){gp(new Bo(this,this.b.bb().mb()))},RM.lb=function(e){return this.b.W().lb(e)},RM.t=function(e){return this===e||this.b.W().t(e)},RM.v=function(){return this.b.W().v()},RM.mb=function(){return new Bo(this,this.b.bb().mb())},RM.nb=function(e){var t,n;return n=0,(t=Kd(this.b.eb(e),19))&&(n=t.Y(),t.Q(),this.a.c-=n),n>0};Yp(mI,"AbstractMapBasedMultimap/KeySet",386);vT(300,1,xI,Bo),RM.G=function(){return this.c.G()},RM.H=function(){return this.a=Kd(this.c.H(),21),this.a.yb()},RM.I=function(){var e;_x(!!this.a),e=Kd(this.a.zb(),19),this.c.I(),this.b.a.c-=e.Y(),e.Q()};Yp(mI,"AbstractMapBasedMultimap/KeySet/1",300);vT(216,640,EI,Bm),RM.ib=function(e){return function(e,t){var n,r;return vS(e),r=e.d.V(),(n=e.d.ib(t))&&(++e.f.c,r&&Ed(e)),n}(this,e)},RM.jb=function(e){return function(e,t){var n,r,i;return!t.V()&&(i=e.Y(),(n=e.d.jb(t))&&(r=e.d.Y(),e.f.c+=r-i,0==i&&Ed(e)),n)}(this,e)},RM.Q=function(){!function(e){var t;0!=(t=e.Y())&&(e.d.Q(),e.f.c-=t,yp(e))}(this)},RM.kb=function(e){return vS(this),this.d.kb(e)},RM.lb=function(e){return vS(this),this.d.lb(e)},RM.t=function(e){return function(e,t){return t===e||(vS(e),e.d.t(t))}(this,e)},RM.v=function(){return vS(this),this.d.v()},RM.mb=function(){return vS(this),new ah(this)},RM.nb=function(e){return function(e,t){var n;return vS(e),(n=e.d.nb(t))&&(--e.f.c,yp(e)),n}(this,e)},RM.Y=function(){return vS(this),this.d.Y()},RM.w=function(){return vS(this),cC(this.d)};Yp(mI,"AbstractMapBasedMultimap/WrappedCollection",216);var pA=Th(SI,"List");vT(297,216,PI,Ep),RM.rb=function(e,t){var n;vS(this),n=this.d.V(),Kd(this.d,20).rb(e,t),++this.a.c,n&&Ed(this)},RM.sb=function(e){return vS(this),Kd(this.d,20).sb(e)},RM.tb=function(){return vS(this),new Ul(this)},RM.ub=function(e){return vS(this),new Vg(this,e)},RM.vb=function(e){var t;return vS(this),t=Kd(this.d,20).vb(e),--this.a.c,yp(this),t},RM.wb=function(e,t){return vS(this),Kd(this.d,20).wb(e,t)},RM.xb=function(e,t){return vS(this),_v(this.a,this.e,Kd(this.d,20).xb(e,t),this.b?this.b:this)};Yp(mI,"AbstractMapBasedMultimap/WrappedList",297);vT(385,297,_I,Cf);Yp(mI,"AbstractMapBasedMultimap/RandomAccessWrappedList",385);vT(189,1,xI,ah),RM.G=function(){return wp(this),this.b.G()},RM.H=function(){return wp(this),this.b.H()},RM.I=function(){this.b.I(),--this.d.f.c,yp(this.d)};Yp(mI,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",189);vT(298,189,TI,Ul,Vg),RM.J=function(e){var t;t=0==function(e){return vS(e),e.d.Y()}(this.a),(wp(this),Kd(this.b,96)).J(e),++this.a.a.c,t&&Ed(this.a)},RM.K=function(){return(wp(this),Kd(this.b,96)).K()},RM.L=function(){return(wp(this),Kd(this.b,96)).L()},RM.M=function(){return(wp(this),Kd(this.b,96)).M()},RM.N=function(){return(wp(this),Kd(this.b,96)).N()},RM.O=function(e){(wp(this),Kd(this.b,96)).O(e)};Yp(mI,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",298);vT(295,216,CI,Tf);Yp(mI,"AbstractMapBasedMultimap/WrappedSet",295);vT(296,216,OI,Of);Yp(mI,"AbstractMapBasedMultimap/WrappedSortedSet",296);vT(668,1,jI),RM.t=function(e){var t;return!!vs(e,21)&&(t=Kd(e,21),cg(this.yb(),t.yb())&&cg(this.zb(),t.zb()))},RM.v=function(){var e,t;return e=this.yb(),t=this.zb(),(null==e?0:dS(e))^(null==t?0:dS(t))},RM.Ab=function(e){throw new Qr},RM.w=function(){return this.yb()+"="+this.zb()};Yp(mI,RI,668);vT(390,640,EI,Gt),RM.Q=function(){YE(this.a)},RM.kb=function(e){return function(e,t){var n;for(n=lg(Qp(e.P()));n.b.G();)if(Kd(Na(n,n.b.H()),19).kb(t))return!0;return!1}(this.a,e)},RM.mb=function(){return new bw(this.a)},RM.Y=function(){return this.a.c};Yp(mI,"AbstractMultimap/Values",390);vT(656,640,MI),RM.ib=function(e){return this.Bb(e,1),!0},RM.Bb=function(e,t){throw new Qr},RM.jb=function(e){return function(e,t){var n,r;if(jr(),t.V())return!1;if(vs(t,207))for(r=Kd(t,207).bb().mb();r.G();)n=Kd(r.H(),83),e.Bb(n.Zb(),n.Yb());else nw(e,t.mb());return!0}(this,e)},RM.Q=function(){gp(this.Eb())},RM.kb=function(e){return this.Cb(e)>0},RM.Cb=function(e){var t,n;for(n=Zp(this).mb();n.G();)if(cg((t=Kd(n.H(),83)).Zb(),e))return t.Yb();return 0},RM.gb=function(){return new Vt(this)},RM.bb=function(){return Zp(this)},RM.t=function(e){return function(e,t){var n,r,i;if(jr(),t===e)return!0;if(vs(t,207)){if(i=Kd(t,207),e.Y()!=i.Y()||Zp(e).Y()!=i.bb().Y())return!1;for(r=i.bb().mb();r.G();)if(n=Kd(r.H(),83),e.Cb(n.Zb())!=n.Yb())return!1;return!0}return!1}(this,e)},RM.v=function(){return Zp(this).v()},RM.V=function(){return Zp(this).V()},RM.mb=function(){return jr(),new Uo(this,Zp(this).mb())},RM.nb=function(e){return this.Fb(e,1)>0},RM.Fb=function(e,t){throw new Qr},RM.Gb=function(e,t){var n,r;return jr(),By(t,"count"),(r=t-(n=this.Cb(e)))>0?this.Bb(e,r):r<0&&this.Fb(e,-r),n},RM.Hb=function(e,t,n){return function(e,t,n,r){return jr(),By(n,"oldCount"),By(r,"newCount"),e.Cb(t)==n&&(e.Gb(t,r),!0)}(this,e,t,n)},RM.Y=function(){return function(e){var t,n;for(jr(),n=0,t=Zp(e).mb();t.G();)n=Nk(n,Kd(t.H(),83).Yb());return my(n)}(this)},RM.w=function(){return cC(Zp(this))};Yp(mI,"AbstractMultiset",656);vT(657,649,CI),RM.Q=function(){this.Ib().Q()},RM.kb=function(e){var t;return!!vs(e,83)&&(!((t=Kd(e,83)).Yb()<=0)&&this.Ib().Cb(t.Zb())==t.Yb())},RM.nb=function(e){var t,n,r;return!(!vs(e,83)||(t=(n=Kd(e,83)).Zb(),0==(r=n.Yb())))&&this.Ib().Hb(t,r,0)};Yp(mI,"Multisets/EntrySet",657);vT(396,657,CI,Vt),RM.mb=function(){return this.a.Eb()},RM.Ib=function(){return this.a},RM.Y=function(){return this.a.Db()};Yp(mI,"AbstractMultiset/EntrySet",396);vT(384,294,wI),RM.Z=function(){return new Ro(xx(this.a))},RM.$=function(){return gd(),fg(),TA},RM.U=function(e){return Kd(fP(this,e),18)},RM.X=function(e){return Kd(S_(this,e),18)},RM.P=function(){return this.f||(this.f=new Do(this,this.b))},RM.t=function(e){return rk(this,e)};Yp(mI,"AbstractSetMultimap",384);vT(342,656,MI);Yp(mI,"AbstractSortedMultiset",342);vT(280,600,wI,Qf),RM.a=0;var gA,bA;Yp(mI,"ArrayListMultimap",280);vT(159,17,II);var vA=dy(mI,"BoundType",159,dA,(function(){return Xl(),Fx(Ia(vA,1),gI,159,0,[bA,gA])}));vT(623,159,II,pl);dy(mI,"BoundType/1",623,vA,null);vT(624,159,II,Dl);var mA;dy(mI,"BoundType/2",624,vA,null);vT(234,1,LI),RM.w=function(){return e=this.c.mb(),Ql(),tg($k((Kl(),mA),tg(new to,91),e),93).a;var e};Yp(mI,"FluentIterable",234);vT(170,234,LI,Ol),RM.mb=function(){return Dp(this)};Yp(mI,"FluentIterable/2",170);vT(664,1,{}),RM.w=function(){return cC(Ag(this.a.d).b)};Yp(mI,"ForwardingObject",664);vT(665,664,EI),RM.ib=function(e){return Ag(this.a.d),ti()},RM.jb=function(e){return Ag(this.a.d),ni()},RM.Q=function(){Ag(this.a.d),ri()},RM.kb=function(e){return Wc(Ag(this.a.d),e)},RM.lb=function(e){return qc(Ag(this.a.d),e)},RM.V=function(){return Ag(this.a.d).b.V()},RM.mb=function(){return new ir(Ag(this.a.d).b.mb())},RM.nb=function(e){return Ag(this.a.d),ii()},RM.Y=function(){return Ag(this.a.d).b.Y()},RM.ob=function(){return tb(Ag(this.a.d))},RM.pb=function(e){return fb(Ag(this.a.d),e)};Yp(mI,"ForwardingCollection",665);vT(660,640,AI),RM.mb=function(){return this.Kb()},RM.ib=function(e){return function(){throw new Qr}()},RM.jb=function(e){return function(){throw new Qr}()},RM.Q=function(){!function(){throw new Qr}()},RM.kb=function(e){return null!=e&&LS(this,e,!1)},RM.Jb=function(){switch(this.Y()){case 0:return sg(),sg(),yA;case 1:return sg(),new Kh(this.Kb().H());default:return new Sp(this,this.ob())}},RM.nb=function(e){return function(){throw new Qr}()};Yp(mI,"ImmutableCollection",660);vT(316,660,AI,vi),RM.mb=function(){return Fy(this.a.mb())},RM.kb=function(e){return null!=e&&this.a.kb(e)},RM.lb=function(e){return this.a.lb(e)},RM.V=function(){return this.a.V()},RM.Kb=function(){return Fy(this.a.mb())},RM.Y=function(){return this.a.Y()},RM.ob=function(){return this.a.ob()},RM.pb=function(e){return this.a.pb(e)},RM.w=function(){return cC(this.a)};var yA;Yp(mI,"ForwardingImmutableCollection",316);vT(87,660,DI),RM.mb=function(){return this.Kb()},RM.tb=function(){return this.Lb(0)},RM.ub=function(e){return this.Lb(e)},RM.xb=function(e,t){return this.Mb(e,t)},RM.rb=function(e,t){throw new Qr},RM.t=function(e){return oT(this,e)},RM.v=function(){return function(e){var t,n,r;for(t=1,r=e.mb();r.G();)t=~~(t=31*t+(null==(n=r.H())?0:dS(n)));return t}(this)},RM.Kb=function(){return this.Lb(0)},RM.Lb=function(e){return Ms(this,e)},RM.vb=function(e){throw new Qr},RM.wb=function(e,t){throw new Qr},RM.Mb=function(e,t){return Wx(new nv(new Zo(this),e,t))};Yp(mI,"ImmutableList",87);vT(667,87,DI),RM.mb=function(){return Fy(this.Nb().mb())},RM.xb=function(e,t){return Wx(this.Nb().xb(e,t))},RM.kb=function(e){return fd(this,e)},RM.lb=function(e){return this.Nb().lb(e)},RM.t=function(e){return this.Nb().t(e)},RM.sb=function(e){return el(this,e)},RM.v=function(){return this.Nb().v()},RM.V=function(){return this.Nb().V()},RM.Kb=function(){return Fy(this.Nb().mb())},RM.Y=function(){return this.Nb().Y()},RM.Mb=function(e,t){return Wx(this.Nb().xb(e,t))},RM.ob=function(){return this.Nb().pb(Dm(eA,hI,1,this.Nb().Y(),4,1))},RM.pb=function(e){return this.Nb().pb(e)},RM.w=function(){return cC(this.Nb())};Yp(mI,"ForwardingImmutableList",667);vT(524,1,zI),RM.bb=function(){return dp(this)},RM.W=function(){return hp(this)},RM.fb=function(){return this.Rb()},RM.Q=function(){throw new Qr},RM.R=function(e){return null!=this.cb(e)},RM.ab=function(e){return this.Rb().kb(e)},RM.Pb=function(){return new mi(this)},RM.Qb=function(){return new yi(this)},RM.t=function(e){return function(e,t){var n;return Ps(),e===t||!!vs(t,57)&&(n=Kd(t,57),o_(dp(e),n.bb()))}(this,e)},RM.v=function(){return dp(this).v()},RM.V=function(){return 0==this.Y()},RM.db=function(e,t){return function(){throw new Qr}()},RM.eb=function(e){throw new Qr},RM.w=function(){var e;return Ps(),e=tg(yy(this.Y()),123),Kk(kA,e,dp(this).mb()),e.a+="}",e.a},RM.Rb=function(){return this.g?this.g:this.g=this.Qb()},RM.e=null,RM.f=null,RM.g=null;Yp(mI,"ImmutableMap",524);vT(320,524,zI),RM.R=function(e){return ME(this.d,e)},RM.ab=function(e){return Yc(this.d,e)},RM.Ob=function(){return Ik(new Yt(this))},RM.Pb=function(){return Ik(wg(this.d))},RM.Qb=function(){return gd(),new vi(Dg(this.d))},RM.t=function(e){return Co(this.d,e)},RM.cb=function(e){return null==e?null:SE(this.d,e)},RM.v=function(){return this.d.c.v()},RM.V=function(){return this.d.c.V()},RM.Y=function(){return this.d.c.Y()},RM.w=function(){return cC(this.d.c)};Yp(mI,"ForwardingImmutableMap",320);vT(666,665,CI),RM.t=function(e){return e===this||Eo(Ag(this.a.d),e)},RM.v=function(){return Ag(this.a.d).b.v()};Yp(mI,"ForwardingSet",666);vT(523,666,CI,Yt),RM.kb=function(e){if(vs(e,21)&&null==Kd(e,21).yb())return!1;try{return Wc(Ag(this.a.d),e)}catch(R$){if(vs(R$=vk(R$),119))return!1;throw Xk(R$)}},RM.pb=function(e){var t;return t=fb(Ag(this.a.d),e),Ag(this.a.d).b.Y()=(i=a.Y()))a.Q();else for(r=a.mb(),n=0;nt?1:0}(t.Yb(),e.Yb())}(Kd(e,83),Kd(t,83))};Yp(mI,"Multisets/1",398);vT(397,658,{83:1,3:1},gh),RM.Yb=function(){return this.a},RM.Zb=function(){return this.b},RM.a=0;Yp(mI,"Multisets/ImmutableEntry",397);vT(303,1,xI,Uo),RM.G=function(){return this.d>0||this.c.G()},RM.H=function(){if(!(this.d>0||this.c.G()))throw new Si;return 0==this.d&&(this.b=Kd(this.c.H(),83),this.f=this.d=this.b.Yb()),--this.d,this.a=!0,this.b.Zb()},RM.I=function(){_x(this.a),1==this.f?this.c.I():this.e.Fb(this.b.Zb(),1),--this.f,this.a=!1},RM.a=!1,RM.d=0,RM.f=0;var PA;Yp(mI,"Multisets/MultisetIteratorImpl",303);vT(622,659,{3:1,56:1},d),RM.$b=function(e,t){return function(e,t){return Hh(e),Hh(t),ex(e,t)}(Kd(e,23),Kd(t,23))},RM.w=function(){return"Ordering.natural()"};Yp(mI,"NaturalOrdering",622);vT(343,661,DI,Sp),RM.ub=function(e){return Ms(this.b,e)},RM.Sb=function(){return this.a},RM.sb=function(e){return el(this.b,e)},RM.Lb=function(e){return Ms(this.b,e)};var _A;Yp(mI,"RegularImmutableAsList",343);vT(559,275,zI,vg),RM.Tb=function(){return this.a};Yp(mI,"RegularImmutableBiMap",559);vT(53,667,DI,vv),RM.Nb=function(){return this.a};Yp(mI,"RegularImmutableList",53);vT(321,320,zI,Ai);var TA;Yp(mI,"RegularImmutableMap",321);vT(265,315,BI,Jc);Yp(mI,"RegularImmutableSet",265);vT(650,641,CI);Yp(mI,"Sets/SetView",650);vT(377,650,CI,yd),RM.kb=function(e){return Po(this.b,e)&&Po(this.c,e)},RM.lb=function(e){return fx(this.b,e)&&fx(this.c,e)},RM.V=function(){return Wy(this)},RM.mb=function(){return kp(new Wn(new Yn(this.b.a).a.bb().mb()),this.a)},RM.Y=function(){return sm(kp(new Wn(new Yn(this.b.a).a.bb().mb()),this.a))};Yp(mI,"Sets/2",377);vT(328,275,zI,iv,ey),RM.fb=function(){return gd(),new fo(this.c)},RM.Tb=function(){return this.a||(this.a=new ey(this.c,this.b,this))},RM.Ub=function(){return gd(),new fo(this.c)};Yp(mI,"SingletonImmutableBiMap",328);vT(127,667,DI,Kh),RM.Nb=function(){return this.a};Yp(mI,"SingletonImmutableList",127);vT(135,663,BI,fo),RM.mb=function(){return Ql(),new Ut(this.a)},RM.kb=function(e){return xk(this.a,e)},RM.Kb=function(){return Ql(),new Ut(this.a)},RM.Y=function(){return 1};Yp(mI,"SingletonImmutableSet",135);vT(285,342,{207:1,3:1,22:1,19:1},Vb,CE),RM.Bb=function(e,t){return j_(this,e,t)},RM.Cb=function(e){return qC(this,e)},RM.Db=function(){return my(ek(this,(Jl(),OA)))},RM.Eb=function(){return new zs(this)},RM.Fb=function(e,t){return pT(this,e,t)},RM.Gb=function(e,t){return gP(this,e,t)},RM.Hb=function(e,t,n){var r,i,a;return By(n,"newCount"),By(t,"oldCount"),qu(bf(this.b,e)),(a=this.c.a)?(i=Dm(L$,WI,26,1,12,1),r=Gj(a,this.d,e,t,n,i),Gh(this.c,a,r),i[0]==t):0==t&&(n>0&&j_(this,e,n),!0)},RM.Y=function(){return my(ek(this,(Jl(),jA)))};Yp(mI,"TreeMultiset",285);vT(619,658,{83:1},Ko),RM.Yb=function(){var e;return 0==(e=this.b.c)?qC(this.a,this.b.b):e},RM.Zb=function(){return this.b.b};Yp(mI,"TreeMultiset/1",619);vT(620,1,xI,zs),RM.H=function(){return function(e){var t;if(!Px(e))throw new Si;return t=new Ko(e.c,e.a),e.b=t,e.a.i==e.c.a?e.a=null:e.a=e.a.i,t}(this)},RM.G=function(){return Px(this)},RM.I=function(){_x(!!this.b),gP(this.c,this.b.b.b,0),this.b=null};var OA,jA;Yp(mI,"TreeMultiset/2",620);vT(205,17,qI);var RA=dy(mI,"TreeMultiset/Aggregate",205,dA,(function(){return Jl(),Fx(Ia(RA,1),gI,205,0,[jA,OA])}));vT(617,205,qI,gl),RM._b=function(e){return e.c},RM.ac=function(e){return e?e.j:0};dy(mI,"TreeMultiset/Aggregate/1",617,RA,null);vT(618,205,qI,Es),RM._b=function(e){return 1},RM.ac=function(e){return e?e.a:0};dy(mI,"TreeMultiset/Aggregate/2",618,RA,null);vT(206,658,{83:1,206:1},Hw),RM.Yb=function(){return this.c},RM.Zb=function(){return this.b},RM.w=function(){return jr(),zv(new gh(this.b,this.c))},RM.a=0,RM.c=0,RM.d=0,RM.j=0;Yp(mI,"TreeMultiset/AvlNode",206);vT(616,1,{},h);Yp(mI,"TreeMultiset/Reference",616);var MA,IA=Yp(oI,"JavaScriptObject$",0);vT(628,1,{});Yp(oI,"Scheduler",628);var NA,LA=0,AA=0,DA=-1;vT(360,628,{},s);Yp(cI,"SchedulerImpl",360);vT(646,1,{}),RM.hc=function(){return null},RM.ic=function(){return null},RM.jc=function(){return null},RM.kc=function(){return null},RM.lc=function(){return null};Yp($I,"JSONValue",646);vT(214,646,{214:1},cr,tn),RM.t=function(e){return!!vs(e,214)&&this.a==Kd(e,214).a},RM.gc=function(){return gr},RM.v=function(){return vf(this.a)},RM.hc=function(){return this},RM.w=function(){var e,t,n;for(n=new Ka("["),t=0,e=this.a.length;t0&&(n.a+=","),al(n,Gy(this,t));return n.a+="]",n.a};var zA,BA;Yp($I,"JSONArray",214);vT(292,646,{},nn),RM.gc=function(){return br},RM.ic=function(){return this},RM.w=function(){return ks(this.a)},RM.a=!1;Yp($I,"JSONBoolean",292);vT(371,72,GM,Fi);var HA;Yp($I,"JSONException",371);vT(435,646,{},v),RM.gc=function(){return xr},RM.w=function(){return VM};Yp($I,"JSONNull",435);vT(104,646,{104:1},rn),RM.t=function(e){return!!vs(e,104)&&this.a==Kd(e,104).a},RM.gc=function(){return vr},RM.v=function(){return _b(oa(this.a))},RM.jc=function(){return this},RM.w=function(){return this.a+""},RM.a=0;Yp($I,"JSONNumber",104);vT(69,646,{69:1},Wi,an),RM.t=function(e){return!!vs(e,69)&&this.a==Kd(e,69).a},RM.gc=function(){return mr},RM.v=function(){return vf(this.a)},RM.kc=function(){return this},RM.w=function(){var e,t,n,r,i,a;for(a=new Ka("{"),e=!0,n=0,r=(i=Dw(this,Dm(rA,HM,2,0,5,1))).length;n>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[15&e]<<28}(_b(oa(this.b)))},RM.w=function(){return"("+this.a+","+this.b+")"},RM.a=0,RM.b=0;var WA=Yp(rN,"KVector",10);vT(58,648,{3:1,5:1,22:1,19:1,58:1,20:1},fa),RM.ib=function(e){return Ld(this,e)},RM.Q=function(){zg(this)},RM.ub=function(e){return WE(this,e)},RM.Y=function(){return this.b},RM.b=0;Yp(SI,"LinkedList",58);vT(44,58,{44:1,286:1,3:1,5:1,22:1,19:1,58:1,20:1},Hr,If),RM.w=function(){var e,t,n;for(e=new Ka("("),t=WE(this,0);t.b!=t.d.c;)ol(e,(n=Kd(Bv(t),10)).a+","+n.b),t.b!=t.d.c&&(e.a+="; ");return e.a+=")",e.a};Yp(rN,"KVectorChain",44);var qA=Th(aN,"IProperty");vT(131,1,{179:1,131:1,3:1},m);var UA,$A;Yp(aN,"MapPropertyHolder",131);vT(14,1,oN,Ah,Lh,vh,Dd,Rb,ov),RM.F=function(e){return function(e,t){return jg(e.b,t.mc())}(this,Kd(e,79))},RM.t=function(e){return Eg(this,e)},RM.mc=function(){return this.b},RM.nc=function(){return this.c},RM.oc=function(){return this.d},RM.v=function(){return TE(this.b)},RM.w=function(){return this.b};Yp(aN,"Property",14);vT(366,1,{23:1},y),RM.F=function(e){return-1};Yp(aN,"Property/1",366);vT(367,1,{23:1},w),RM.F=function(e){return 1};Yp(aN,"Property/2",367);vT(27,1,{27:1,22:1},rc),RM.t=function(e){var t,n,r;return!!vs(e,27)&&(n=Kd(e,27),t=null==this.a?null==n.a:xk(this.a,n.a),r=null==this.b?null==n.b:xk(this.b,n.b),t&&r)},RM.v=function(){var e,t,n;return e=-65536&(t=null==this.a?0:dS(this.a)),t&XM^(-65536&(n=null==this.b?0:dS(this.b)))>>16&XM|e^(n&XM)<<16},RM.mb=function(){return new on(this)},RM.w=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+cC(this.b)+")":null==this.b?"pair("+cC(this.a)+",null)":"pair("+cC(this.a)+","+cC(this.b)+")"};Yp(cN,"Pair",27);vT(431,1,xI,on),RM.G=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},RM.H=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw new Si},RM.I=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),new Kr},RM.b=!1,RM.c=!1;Yp(cN,"Pair/1",431);vT(228,72,GM,Gi);Yp(uN,"UnsupportedConfigurationException",228);vT(99,72,GM,Vi);var KA,XA,QA,ZA,JA,eD,tD;Yp(uN,"UnsupportedGraphException",99);vT(103,17,{103:1,3:1,23:1,17:1},ic);var nD,rD,iD,aD,oD,cD,uD=dy(dN,"Alignment",103,dA,(function(){return _E(),Fx(Ia(uD,1),gI,103,0,[XA,JA,eD,tD,QA,ZA])}));vT(59,17,{59:1,3:1,23:1,17:1},fc);var lD,sD,fD,dD,hD,pD=dy(dN,"Direction",59,dA,(function(){return Dk(),Fx(Ia(pD,1),gI,59,0,[oD,aD,iD,rD,cD])}));vT(107,17,{107:1,3:1,23:1,17:1},dc);var gD,bD,vD,mD,yD,wD=dy(dN,"EdgeLabelPlacement",107,dA,(function(){return Qw(),Fx(Ia(wD,1),gI,107,0,[hD,sD,fD,dD])}));vT(122,17,{122:1,3:1,23:1,17:1},hc);var xD,kD,SD,ED,CD,PD,_D,TD=dy(dN,"EdgeRouting",122,dA,(function(){return zk(),Fx(Ia(TD,1),gI,122,0,[yD,vD,bD,mD])}));vT(133,17,{133:1,3:1,23:1,17:1},pc);var OD,jD,RD,MD,ID=dy(dN,"EdgeType",133,dA,(function(){return ZC(),Fx(Ia(ID,1),gI,133,0,[PD,ED,_D,kD,CD,SD])}));vT(166,17,{166:1,3:1,23:1,17:1},gc);var ND,LD,AD,DD,zD,BD,HD,FD,GD,VD,YD,WD,qD,UD,$D,KD,XD,QD,ZD,JD,ez,tz,nz,rz,iz,az,oz,cz,uz,lz,sz,fz,dz,hz,pz,gz,bz,vz,mz,yz,wz,xz,kz,Sz,Ez,Cz,Pz,_z,Tz,Oz,jz,Rz,Mz,Iz,Nz,Lz,Az,Dz,zz,Bz=dy(dN,"HierarchyHandling",166,dA,(function(){return Bk(),Fx(Ia(Bz,1),gI,166,0,[RD,jD,MD])}));vT(41,17,{41:1,3:1,23:1,17:1},bc);var Hz,Fz,Gz,Vz,Yz,Wz,qz=dy(dN,"NodeLabelPlacement",41,dA,(function(){return D_(),Fx(Ia(qz,1),gI,41,0,[Rz,jz,Iz,zz,Dz,Az,Nz,Lz,Mz])}));vT(100,17,{100:1,3:1,23:1,17:1},vc);var Uz,$z,Kz,Xz,Qz,Zz,Jz,eB=dy(dN,"PortAlignment",100,dA,(function(){return WS(),Fx(Ia(eB,1),gI,100,0,[Wz,Yz,Fz,Gz,Vz])}));vT(28,17,{28:1,3:1,23:1,17:1},mc);var tB,nB,rB,iB,aB=dy(dN,"PortConstraints",28,dA,(function(){return NC(),Fx(Ia(aB,1),gI,28,0,[Jz,Zz,Qz,$z,Xz,Kz])}));vT(149,17,{149:1,3:1,23:1,17:1},yc);var oB,cB,uB,lB,sB,fB,dB,hB,pB,gB,bB,vB,mB,yB,wB,xB,kB,SB,EB,CB,PB,_B,TB=dy(dN,"PortLabelPlacement",149,dA,(function(){return Ky(),Fx(Ia(TB,1),gI,149,0,[iB,rB,nB])}));vT(32,17,{32:1,3:1,23:1,17:1},wc);var OB,jB,RB,MB,IB,NB=dy(dN,"PortSide",32,dA,(function(){return $R(),Fx(Ia(NB,1),gI,32,0,[PB,uB,cB,CB,_B])}));vT(150,17,{150:1,3:1,23:1,17:1},xc);var LB,AB,DB,zB,BB,HB=dy(dN,"SizeConstraint",150,dA,(function(){return qS(),Fx(Ia(HB,1),gI,150,0,[MB,IB,RB,jB])}));vT(139,17,{139:1,3:1,23:1,17:1},kc);var FB,GB=dy(dN,"SizeOptions",139,dA,(function(){return oP(),Fx(Ia(GB,1),gI,139,0,[zB,BB,DB,AB])}));vT(62,1,{62:1},uu,_g),RM.t=function(e){var t;return!(null==e||!vs(e,62))&&(t=Kd(e,62),Ig(this.d,t.d)&&Ig(this.e,t.e)&&Ig(this.c,t.c)&&Ig(this.b,t.b))},RM.v=function(){return lk(Fx(Ia(eA,1),hI,1,4,[this.d,this.e,this.c,this.b]))},RM.w=function(){return"Rect[x="+this.d+",y="+this.e+",w="+this.c+",h="+this.b+"]"},RM.b=0,RM.c=0,RM.d=0,RM.e=0;Yp(vN,"Rectangle",62);vT(283,62,{283:1,62:1},Fr),RM.a=0;var VB,YB,WB,qB,UB,$B,KB,XB,QB,ZB,JB,eH,tH,nH,rH,iH,aH,oH,cH,uH,lH,sH;Yp(mN,"LabelGroup",283);vT(67,17,{67:1,3:1,23:1,17:1},Og);var fH,dH,hH,pH=dy(mN,"LabelLocation",67,dA,YS);vT(225,17,{225:1,3:1,23:1,17:1},Sc);var gH,bH=dy(mN,"TextAlignment",225,dA,(function(){return Qv(),Fx(Ia(bH,1),gI,225,0,[dH,fH,hH])}));vT(589,1,{},Yj),RM.a=0,RM.b=!1,RM.d=0,RM.f=0,RM.k=0,RM.r=0,RM.s=0;var vH,mH,yH,wH;Yp(vN,"LabelAndNodeSizeProcessor/NodeData",589);vT(171,17,{171:1,3:1,23:1,17:1},Ec);var xH=dy(vN,"LabelSide",171,dA,(function(){return US(),Fx(Ia(xH,1),gI,171,0,[wH,vH,mH])}));vT(590,1,{},cn),RM.b=!0,RM.c=!0,RM.d=!0,RM.e=!0;Yp(vN,wN,590);vT(121,1,kN),RM.t=function(e){var t;return!!vs(e,121)&&(t=Kd(e,121),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c)},RM.v=function(){var e,t;return e=_b(oa(this.b))<<16,e|=_b(oa(this.a))&XM,t=_b(oa(this.c))<<16,e^(t|=_b(oa(this.d))&XM)},RM.w=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},RM.a=0,RM.b=0,RM.c=0,RM.d=0;Yp(vN,"Spacing",121);vT(232,121,kN,Gr,Pf,Zf);Yp(vN,"Spacing/Insets",232);vT(65,121,{286:1,121:1,65:1,3:1,5:1},Vr,_f,Jf);var kH,SH,EH;Yp(vN,"Spacing/Margins",65);vT(364,1,{},ZE),RM.c=!1,RM.d=null,RM.g=null;var CH,PH,_H,TH,OH,jH,RH,MH,IH;Yp(LN,"JsonGraphImporter",364);vT(417,14,oN,hu);var NH;Yp(LN,"LayoutOptionResolver/DummyProperty",417);vT(348,1,{},St);Yp(LN,"RecursiveLGraphLayout",348);vT(73,99,{73:1,3:1,54:1,46:1},Yi,Js,Pp);var LH,AH,DH=Yp(LN,"UnsupportedJsonGraphException",73);vT(380,1,{},mg);Yp(BN,"GraphConfigurator",380);vT(49,1,{},yS);Yp(BN,"IntermediateProcessingConfiguration",49);vT(365,1,{},Uv);var zH;Yp(BN,"KlayLayered",365);vT(577,1,{},ox),RM.i=0;var BH;Yp(VN,"ComponentsToCGraphTransformer",577);vT(578,1,{},T),RM.tc=function(e,t){return Va(e.wc(),t.wc())},RM.uc=function(e,t){return Va(e.xc(),t.xc())};Yp(VN,"ComponentsToCGraphTransformer/1",578);vT(25,1,{25:1}),RM.k=0,RM.o=null,RM.p=!0,RM.r=GN;var HH=Yp(YN,"CNode",25);vT(198,25,{198:1,25:1},cs,mw),RM.vc=function(){this.b.d=this.j.d,this.b.e=this.j.e},RM.wc=function(){return null!=this.a?oa(this.a):this.c.i},RM.xc=function(){return null!=this.a?oa(this.a):this.c.i},RM.w=function(){return""};var FH,GH;Yp(VN,"ComponentsToCGraphTransformer/CRectNode",198);vT(549,1,{},O);Yp(VN,"OneDimensionalComponentsCompaction",549);vT(550,1,HI,j),RM.B=function(e){return Ox(),Xh(),0!=Kd(Kd(e,27).a,25).f.f?a$:i$};Yp(VN,"OneDimensionalComponentsCompaction/lambda$0$Type",550);vT(551,1,HI,R),RM.B=function(e){return Ox(),Xh(),CS(Kd(Kd(e,27).a,25).n,Kd(Kd(e,27).b,59))||0!=Kd(Kd(e,27).a,25).f.f&&CS(Kd(Kd(e,27).a,25).n,Kd(Kd(e,27).b,59))?a$:i$};Yp(VN,"OneDimensionalComponentsCompaction/lambda$1$Type",551);vT(324,1,{},_p);Yp(YN,"CGraph",324);vT(78,1,{78:1},fE),RM.b=0,RM.c=0,RM.d=0,RM.f=0,RM.i=!0,RM.j=GN;Yp(YN,"CGroup",78);vT(470,1,{},M),RM.tc=function(e,t){return Ha(e.wc(),t.wc())},RM.uc=function(e,t){return Ha(e.xc(),t.xc())};var VH,YH,WH;Yp(YN,"ISpacingsHandler/1",470);vT(323,1,{},z_),RM.e=!1;var qH=Yp(YN,"OneDimensionalCompactor",323);vT(554,1,HI,k),RM.B=function(e){return Jh(),Xh(),0!=Kd(Kd(e,27).a,25).f.f?a$:i$};Yp(YN,"OneDimensionalCompactor/lambda$0$Type",554);vT(335,1,{},Wd),RM.a=!1,RM.b=!1,RM.c=!1,RM.d=!1;Yp(YN,"Quadruplet",335);vT(587,1,{},S),RM.Cc=function(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b;for(s=FN,r=new Qn(e.a.b);r.an.j.d||n.j.d==i.j.d&&n.j.c0&&(Ad(e.c,new wd(t.c,t.d,e.d)),e.b=t.d)}(this,Kd(e,48))},RM.b=0;Yp(UN,"RectilinearConvexHull/MaximalElementsEventHandler",243);vT(571,1,eI,I),RM.$b=function(e,t){return ug(e,t)};Yp(UN,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",571);vT(570,1,{160:1},dm),RM.Ec=function(e){HT(this,Kd(e,48))},RM.a=0,RM.b=null,RM.c=null,RM.d=null,RM.e=null;Yp(UN,"RectilinearConvexHull/RectangleEventHandler",570);vT(572,1,eI,N),RM.$b=function(e,t){return Xv(),Kd(e,48).c==Kd(t,48).c?Yx(Kd(t,48).d,Kd(e,48).d):Yx(Kd(e,48).c,Kd(t,48).c)};Yp(UN,"RectilinearConvexHull/lambda$0$Type",572);vT(573,1,eI,L),RM.$b=function(e,t){return Xv(),Kd(e,48).c==Kd(t,48).c?Yx(Kd(e,48).d,Kd(t,48).d):Yx(Kd(e,48).c,Kd(t,48).c)};Yp(UN,"RectilinearConvexHull/lambda$1$Type",573);vT(574,1,eI,A),RM.$b=function(e,t){return Xv(),Kd(e,48).c==Kd(t,48).c?Yx(Kd(t,48).d,Kd(e,48).d):Yx(Kd(t,48).c,Kd(e,48).c)};Yp(UN,"RectilinearConvexHull/lambda$2$Type",574);vT(575,1,eI,D),RM.$b=function(e,t){return Xv(),Kd(e,48).c==Kd(t,48).c?Yx(Kd(e,48).d,Kd(t,48).d):Yx(Kd(t,48).c,Kd(e,48).c)};Yp(UN,"RectilinearConvexHull/lambda$3$Type",575);vT(576,1,eI,z),RM.$b=function(e,t){return CP(e,t)};Yp(UN,"RectilinearConvexHull/lambda$4$Type",576);vT(469,1,{},Lv);Yp(UN,"Scanline",469);vT(662,1,{});var oF;Yp(KN,"AbstractGraphPlacer",662);vT(222,1,{222:1},rd);Yp(KN,"ComponentGroup",222);vT(434,662,{},Ir),RM.Fc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h;if(this.a.c=Dm(eA,hI,1,0,4,1),t.b.c=Dm(eA,hI,1,0,4,1),e.V())return t.e.a=0,void(t.e.b=0);for(Uk(t,i=Kd(e.sb(0),55)),r=e.mb();r.G();)iS(this,Kd(r.H(),55));for(d=new sa,h=2*Kd(Dx(i,(CM(),Xq)),15).a,c=new Qn(this.a);c.af&&(x=0,k+=s+y,s=0),OO(a,x+(p=a.d).a,k+p.b),p.a=0,p.b=0,n=Ha(n,x+v.a),s=Ha(s,v.b),x+=v.a+y;if(t.e.a=n,t.e.b=k+s,b=Kd(Dx(t,Xq),15).a,aa(oa(Nf(Dx(i,(PM(),vU)))))){for(hM(r=new B,e,b),l=e.mb();l.G();)Df(Iu(Kd(l.H(),55).d),r.e);Df(Iu(t.e),r.a)}Pm(t,e)}else(m=Kd(e.sb(0),55))!=t&&(t.b.c=Dm(eA,hI,1,0,4,1),FO(t,m,0,0),Uk(t,m),Oh(t.a,m.a),t.e.a=m.e.a,t.e.b=m.e.b)};Yp(KN,"SimpleRowGraphPlacer",432);vT(433,1,eI,F),RM.$b=function(e,t){return function(e,t){var n;return 0==(n=t.k-e.k)?Yx(e.e.a*e.e.b,t.e.a*t.e.b):n}(Kd(e,55),Kd(t,55))};var cF;Yp(KN,"SimpleRowGraphPlacer/1",433);vT(369,1,JN,Et),RM.sc=function(e,t){yM(e,t)};Yp(eL,"CompoundGraphPostprocessor",369);vT(370,1,$N,G),RM.D=function(e){var t;return!!(t=Kd(Dx(Kd(e,114).b,(OM(),ez)),44))&&0!=t.b};Yp(eL,"CompoundGraphPostprocessor/1",370);vT(368,1,JN,Ku),RM.sc=function(e,t){yE(this,e,t)};Yp(eL,"CompoundGraphPreprocessor",368);vT(187,1,{187:1},Vk),RM.c=!1;Yp(eL,"CompoundGraphPreprocessor/ExternalPort",187);vT(114,1,{114:1},xd),RM.w=function(){return yf(this.c)+":"+Uy(this.b)};Yp(eL,"CrossHierarchyEdge",114);vT(310,1,eI,un),RM.$b=function(e,t){return function(e,t,n){var r,i;return t.c==(gw(),dU)&&n.c==fU?-1:t.c==fU&&n.c==dU?1:(r=DS(t.a,e.a),i=DS(n.a,e.a),t.c==dU?i-r:r-i)}(this,Kd(e,114),Kd(t,114))};Yp(eL,"CrossHierarchyEdgeComparator",310);vT(147,131,{179:1,131:1,147:1,3:1}),RM.k=0;Yp(nL,"LGraphElement",147);vT(12,147,{179:1,131:1,12:1,147:1,3:1},Gg),RM.w=function(){return Uy(this)};var uF=Yp(nL,"LEdge",12);vT(55,147,{179:1,131:1,55:1,147:1,3:1,22:1},Zy),RM.mb=function(){return new Qn(this.c)},RM.w=function(){return 0==this.c.c.length?"G-unlayered"+yP(this.b):0==this.b.c.length?"G-layered"+yP(this.c):"G[layerless"+yP(this.b)+", layers"+yP(this.c)+"]"};var lF=Yp(nL,"LGraph",55);vT(273,1,{}),RM.pc=function(){return this.e.j};Yp(nL,"LGraphAdapters/AbstractLShapeAdapter",273);vT(240,1,{627:1},ln),RM.b=null;Yp(nL,"LGraphAdapters/LEdgeAdapter",240);vT(325,1,{},_c),RM.pc=function(){return this.a.e},RM.b=null,RM.c=!1;Yp(nL,"LGraphAdapters/LGraphAdapter",325);vT(224,273,{129:1,224:1},sn);Yp(nL,"LGraphAdapters/LLabelAdapter",224);vT(555,273,{626:1},Tc),RM.a=null,RM.b=null,RM.c=!1;Yp(nL,"LGraphAdapters/LNodeAdapter",555);vT(556,273,{161:1},Oc),RM.a=null,RM.b=null,RM.c=null,RM.d=!1;Yp(nL,"LGraphAdapters/LPortAdapter",556);vT(557,1,eI,V),RM.$b=function(e,t){return function(e,t){var n,r,i,a;if(0!=(a=e.g.e-t.g.e))return a;if(n=Kd(Dx(e,(OM(),mz)),24),r=Kd(Dx(t,mz),24),n&&r&&0!=(i=n.a-r.a))return i;switch(e.g.e){case 1:return Yx(e.i.a,t.i.a);case 2:return Yx(e.i.b,t.i.b);case 3:return Yx(t.i.a,e.i.a);case 4:return Yx(t.i.b,e.i.b);default:throw new Ea(rL)}}(Kd(e,7),Kd(t,7))};Yp(nL,"LGraphAdapters/PortComparator",557);vT(168,1,{168:1},Dt,qg),RM.t=function(e){var t;return!!vs(e,168)&&(t=Kd(e,168),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c)},RM.v=function(){var e,t;return e=_b(oa(this.b))<<16,e|=_b(oa(this.a))&XM,t=_b(oa(this.c))<<16,e^(t|=_b(oa(this.d))&XM)},RM.w=function(){return"Insets[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},RM.a=0,RM.b=0,RM.c=0,RM.d=0;Yp(nL,"LInsets",168);vT(165,147,{179:1,131:1,147:1,165:1,3:1});Yp(nL,"LShape",165);vT(33,165,{179:1,131:1,147:1,33:1,165:1,3:1},_l),RM.w=function(){return null==this.a?"l_"+this.k:"l_"+this.a};Yp(nL,"LLabel",33);vT(9,165,{179:1,131:1,147:1,9:1,165:1,3:1},FE),RM.w=function(){return kb(this)};var sF,fF,dF,hF,pF,gF,bF=Yp(nL,"LNode",9);vT(132,17,{132:1,3:1,23:1,17:1},Rc);var vF,mF,yF,wF,xF,kF,SF=dy(nL,"LNode/NodeType",132,dA,(function(){return JC(),Fx(Ia(SF,1),gI,132,0,[pF,hF,fF,gF,dF,sF])}));vT(7,165,{179:1,131:1,147:1,7:1,165:1,3:1},GC),RM.w=function(){var e;return null==(e=vm(this))?"p_"+this.k:"p_"+e};var EF=Yp(nL,"LPort",7);vT(399,1,$N,Y),RM.D=function(e){return Vf(e)};Yp(nL,"LPort/1",399);vT(400,1,$N,W),RM.D=function(e){return Gf(e)};Yp(nL,"LPort/2",400);vT(401,1,$N,q),RM.D=function(e){return Kd(e,7).g==($R(),uB)};Yp(nL,"LPort/3",401);vT(402,1,$N,U),RM.D=function(e){return Kd(e,7).g==($R(),cB)};Yp(nL,"LPort/4",402);vT(403,1,$N,$),RM.D=function(e){return Kd(e,7).g==($R(),CB)};Yp(nL,"LPort/5",403);vT(404,1,$N,K),RM.D=function(e){return Kd(e,7).g==($R(),_B)};Yp(nL,"LPort/6",404);vT(190,1,LI,fn),RM.mb=function(){return new dn(new Qn(this.a.b))};Yp(nL,"LPort/7",190);vT(405,1,xI,dn),RM.H=function(){return Kd(cv(this.a),12).c},RM.G=function(){return ms(this.a)},RM.I=function(){vp(this.a)};Yp(nL,"LPort/7/1",405);vT(169,1,LI,hn),RM.mb=function(){return new pn(new Qn(this.a.e))};Yp(nL,"LPort/8",169);vT(304,1,xI,pn),RM.H=function(){return Kd(cv(this.a),12).d},RM.G=function(){return ms(this.a)},RM.I=function(){vp(this.a)};Yp(nL,"LPort/8/1",304);vT(16,147,{179:1,131:1,147:1,16:1,3:1,22:1},Tp),RM.mb=function(){return new Qn(this.a)},RM.w=function(){return"L_"+sy(this.b.c,this,0)+yP(this.a)};Yp(nL,"Layer",16);vT(437,1,JN,X),RM.sc=function(e,t){var n,r,i,a;for(nE(t,"Big nodes intermediate-processing",1),this.a=e,r=new Qn(this.a.c);r.aa?50:a,n=new At,h=a+this.d,s=new Qn(f);s.ah){for(d=1,r=o.j.a;r>a;)++d,r=(o.j.a-(d-1)*this.d)/d;Ad(n,new Kv(this,o,d,r))}for(c=new Qn(n);c.ao?50:o,n=new At,p=o+this.d,f=new Qn(d);f.ap){for(h=1,r=c.j.a;r>o;)++h,r=(c.j.a-(h-1)*this.d)/h;Ad(n,new cb(this,c,h))}for(u=new Qn(n);u.a0||s.g==_B&&s.b.c.length-s.e.c.length<0)){n=!1;break}if(s.g==_B)for(i=new Qn(s.e);i.a0&&(e.a=u+(d-1)*i,t.d.b+=e.a,t.e.b+=e.a),0!=h.a.Y()&&(d=Bj(new BP(1,i),t,h,p,t.e.b+u-t.d.b))>0&&(t.e.b+=u+(d-1)*i)}(this,e,n),function(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S;for(m=new At,s=new Qn(e.c);s.a0&&uj((Nm(0,n.c.length),Kd(n.c[0],16)),e),n.c.length>1&&uj(Kd(wh(n,n.c.length-1),16),e),nS(t)};Yp(iL,"HierarchicalPortPositionProcessor",454);vT(471,1,JN,fe),RM.sc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d;for(nE(t,"Hyperedge merging",1),s=new av(e.c,0);s.b(h=d.c.length)+1?Ad(s,new rc(u,(Nm(f=(c+h)/2|0,o.c.length),Kd(o.c[f],9)))):h>c+1&&Ad(s,new rc(u,(Nm(f=((h-c)/2|0)-1,d.c.length),Kd(d.c[f],9))))}for(b=new Qn(s);b.a=2){for(u=!0,Nm(1,c.c.length),p=Kd(c.c[1],16),f=new Qn(r.a);f.a=2){for(u=!0,g=Kd(wh(c,c.c.length-2),16),f=new Qn(i.a);f.an?u:n}e.e.b=u-l,e.d.b-=l,nS(t)};Yp(iL,"LayerSizeAndGraphHeightCalculator",496);vT(497,1,JN,Oe),RM.sc=function(e,t){var n,r,i,a;for(nE(t,"Edge joining",1),n=aa(oa(Nf(Dx(e,(PM(),gU))))),r=new Qn(e.c);r.a0&&Ad(e.p,s),Ad(e.o,s);h=u+(t-=r),l+=t*e.e,um(e.a,c,lS(h)),um(e.b,c,l),e.j=Ga(e.j,h),e.k=Ha(e.k,l),e.d+=t,t+=g}}(this),this.q=Kd(Dx(e,(PM(),AU)),109),u=Kd(Dx(this.g,DU),24).a,i=new Ie,this.q.e){case 2:case 1:default:iR(this,i);break;case 3:for(this.q=(ET(),DG),iR(this,i),o=0,a=new Qn(this.a);a.athis.j&&(this.q=RG,iR(this,i));break;case 4:for(this.q=(ET(),DG),iR(this,i),c=0,r=new Qn(this.b);r.athis.k&&(this.q=NG,iR(this,i));break;case 6:iR(this,new kn(_b(Lu(this.f.length*u/100))));break;case 5:iR(this,new Sn(_b(Lu(this.d*u/100))))}!function(e,t){var n,r,i,a,o,c;for(i=new At,n=0;n<=e.i;n++)(r=new Tp(t)).k=e.i-n,i.c[i.c.length]=r;for(c=new Qn(e.o);c.a=2){for(p=!0,n=Kd(cv(f=new Qn(a.f)),7);f.a(r-=e.a)?i:r}return i}(this,e),h=e.c.c.length,g=function(e,t){var n,r,i,a,o;for(r=0,n=new Qn(t.c);n.a(o=(i=Kd(cv(a),9)).j.a+i.e.c+i.e.b+e.b)?r:o;return r}(this,e),_=h*g,(r=(i=Kd(Dx(e,(OM(),YD)),59))==(Dk(),iD)||i==aD||i==oD?Kd(Dx(e,iq),15).a:1/Kd(Dx(e,iq),15).a)>(n=_/p))nS(t);else{C=0,a=dL;do{d=a,a=(n=_/++C/(p*C))-r<=0?0-(n-r):n-r}while(n>r);for(dC?1:C)|0,w=S,j=!0;l=S&&(j=!0),++w,++l}for(s=new av(e.c,0);s.b "+this.a+" "+yf(this.c)},RM.a=0,RM.b=0,RM.d=0;Yp(iL,"SplineSelfLoopRouter/LoopPadding",91);vT(521,1,$N,ih),RM.D=function(e){return KE(this,Kd(e,91))},RM.a=0,RM.c=0;Yp(iL,"SplineSelfLoopRouter/LoopPadding/EnclosingPredicate",521);vT(520,1,eI,et),RM.$b=function(e,t){return function(e,t){return Yx(t.b,e.b)}(Kd(e,91),Kd(t,91))};Yp(iL,"SplineSelfLoopRouter/LoopPadding/MarginComparator",520);vT(196,1,$N,En),RM.D=function(e){return Kd(e,91).c==this.a};Yp(iL,"SplineSelfLoopRouter/LoopPadding/PortSidePredicate",196);vT(195,1,{195:1},Mv),RM.c=0,RM.d=0,RM.e=0;Yp(iL,"SplineSelfLoopRouter/SelfLoopEdge",195);vT(519,1,eI,tt),RM.$b=function(e,t){return function(e,t){return e.d-t.d}(Kd(e,195),Kd(t,195))};Yp(iL,"SplineSelfLoopRouter/SelfLoopEdge/StepSizeComparator",519);vT(82,25,{25:1,82:1},q_),RM.vc=function(){var e,t;for(e=WE(this.a,0);e.b!=e.d.c;)Kd(Bv(e),10).a=this.j.d;for(t=WE(this.c,0);t.b!=t.d.c;)Kd(Bv(t),10).a=this.j.d},RM.wc=function(){return this.b},RM.xc=function(){return this.e},RM.w=function(){return yP(new Yn(this.d.a))},RM.b=0,RM.e=0;Yp(bL,"CLEdge",82);vT(93,25,{25:1,93:1},TO),RM.vc=function(){this.b.i.a=this.j.d+this.b.e.b},RM.wc=function(){return this.b.g==(JC(),fF)?0:this.a},RM.xc=function(){return this.b.g==(JC(),fF)?0:this.c},RM.w=function(){return cC(Dx(this.b,(CM(),Lq)))},RM.a=0,RM.c=0;var FG,GG;Yp(bL,"CLNode",93);vT(175,17,{175:1,3:1,23:1,17:1},Dc);var VG,YG,WG,qG,UG,$G,KG,XG=dy(bL,"ConstraintCalculationStrategy",175,dA,(function(){return Dv(),Fx(Ia(XG,1),gI,175,0,[FG,GG])}));vT(125,17,{125:1,3:1,23:1,17:1},zc);var QG,ZG,JG,eV=dy(bL,"GraphCompactionStrategy",125,dA,(function(){return MP(),Fx(Ia(eV,1),gI,125,0,[$G,WG,KG,UG,qG,YG])}));vT(455,1,JN,$l),RM.sc=function(e,t){var n,r,i;if((r=Kd(Dx(e,(PM(),HU)),125))!=(MP(),$G)){if(nE(t,"Horizontal Compaction",1),this.a=e,ba(n=new z_(bO(i=new Xu,e)),this.b),1===Kd(Dx(e,FU),175).e)pa(n,ZG);else pa(n,(Jh(),YH));switch(r.e){case 1:qO(n);break;case 2:qO(AR(n,(Dk(),aD)));break;case 3:qO(bo(AR(qO(n),(Dk(),aD))));break;case 4:qO(bo(ga(AR(qO(n),(Dk(),aD)),new qe)));break;case 5:qO(function(e,t){return e.b=t,e}(n,JG))}AR(n,(Dk(),iD)),n.e=!0,BO(i),nS(t)}};Yp(bL,"HorizontalGraphCompactor",455);vT(462,1,{},Cn),RM.tc=function(e,t){var n,r;return vs(e,82)&&vs(t,82)&&!Wy(sw(Kd(e,82).d,Kd(t,82).d))?0:(n=null,vs(e,93)&&(n=Kd(e,93).b),r=null,vs(t,93)&&(r=Kd(t,93).b),n&&n.g==(JC(),fF)||r&&r.g==(JC(),fF)?0:xs(Kd(Dx(this.a.a,(CM(),Qq)),134),n?n.g:(JC(),hF),r?r.g:(JC(),hF)))},RM.uc=function(e,t){return vs(e,82)&&vs(t,82)&&!Wy(sw(Kd(e,82).d,Kd(t,82).d))?1:Va(e.xc(),t.xc())};Yp(bL,"HorizontalGraphCompactor/1",462);vT(456,317,{},oh),RM.Dc=function(e){var t,n,r;for(this.b=e,I_(this,new Ue,this.a),I_(this,new $e,this.a),t=FN,r=new Qn(this.b.a.b);r.a(r=Math.ceil(r))?0:r,t.o&&a.o&&vs(t,82)&&vs(a,82)&&!Wy(sw(Kd(t,82).d,Kd(a,82).d))?(i=ls(new zr,e.d),c=_b(Lu(a.g.a-t.g.a)),GT(vo(yo(wo(mo(new Dr,0>c?0:c),1),i),e.c[t.f.d])),GT(vo(yo(wo(mo(new Dr,0>-c?0:-c),1),i),e.c[a.f.d]))):(l=1,(vs(t,82)&&vs(a,93)||vs(a,82)&&vs(t,93))&&(l=2),GT(vo(yo(wo(mo(new Dr,_b(r)),l),e.c[t.f.d]),e.c[a.f.d]))))}(this),function(e){var t,n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v;for(Ps(),s=new Er,u=new Qc,r=new Qn(e.a.a.b);r.at.j.d){if((h=e.c[t.f.d])==(b=e.c[f.f.d]))continue;GT(vo(yo(wo(mo(new Dr,1),100),h),b))}}}(this),function(e){var t,n,r,i,a,o;for(i=new fa,r=new Qn(e.d.a);r.a1)for(t=ls(ko(new zr,e.b++),e.d),o=WE(i,0);o.b!=o.d.c;)a=Kd(Bv(o),61),GT(vo(yo(wo(mo(new Dr,1),0),t),a))}(this),GO(ad(this.d),new Xf),i=new Qn(this.a.a.b);i.a0&&(this.a[B.k]=X++)}else{for(I=0,H=new Qn(P.f);H.a0&&++X}for(te=0,O=0,M=t.length;O0;){for(Ll(V.b>0),G=0,o=new Qn((B=Kd(V.a.sb(V.c=--V.b),7)).b);o.a0&&(B.g==($R(),uB)?(this.a[B.k]=te,++te):(this.a[B.k]=te+N+A,++A))}te+=A}else{for(I=0,H=new Qn(P.f);H.a0&&++te}for(F=new Er,p=new ea,_=0,j=e.length;_s.c&&(s.c=Y)):B.f.d==K&&(Ys.d&&(s.d=Y));for(iC(g,0,g.length,(ru(),ru(),m$)),ee=Dm(L$,WI,26,g.length,12,1),n=Dm(L$,WI,26,te+1,12,1),v=0;v0;)x%2>0&&(r+=ie[x+1]),++ie[x=(x-1)/2|0];for(E=Dm(nV,hI,158,2*g.length,0,1),w=0;wt.f?1:e.gt.g?1:e.b-t.b}(this,Kd(e,204))},RM.b=0,RM.c=0,RM.d=0,RM.f=0,RM.g=0;var tV=Yp(vL,"BetweenLayerHyperedgeAllCrossingsCounter/Hyperedge",204);vT(158,1,{158:1,23:1},Tg),RM.F=function(e){return function(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?e.a.b-t.a.b:0==e.d&&1==t.d?-1:1==e.d&&0==t.d?1:0}(this,Kd(e,158))},RM.b=0,RM.c=0,RM.d=0;var nV=Yp(vL,"BetweenLayerHyperedgeAllCrossingsCounter/HyperedgeCorner",158);vT(611,339,{},Ui),RM.Gc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S;for(S=0,i=0,o=e[0].d,y=t[0].d,l=0,f=t.length;l0;){for(Ll(m.b>0),v=0,r=new Qn((g=Kd(m.a.sb(m.c=--m.b),7)).b);r.a0&&(g.g==($R(),uB)?(this.a[g.k]=S,++S):(this.a[g.k]=S+h+p,++p),i+=v)}S+=p}else{for(d=0,b=new Qn(c.f);b.a0&&(++S,i+=d)}for(w=Dm(L$,WI,26,i,12,1),a=0,u=0,s=e.length;u0;)a%2>0&&(r+=c[a+1]),++c[a=(a-1)/2|0];return r}(S,i,w),n};Yp(vL,"BetweenLayerStraightEdgeAllCrossingsCounter",611);vT(338,1,{},IP),RM.b=0,RM.e=!1;Yp(vL,"CrossingMatrixFiller",338);vT(447,1,JN,nt),RM.sc=function(e,t){var n,r;nE(t,"Greedy switch crossing reduction",1),this.e=Kd(Dx(e,(PM(),TU)),110),e.c.c.length<2||this.e==(Zj(),HW)||(function(e,t){var n,r,i,a,o,c,u,l;for(e.f=t,i=t.c.c.length,e.a=Dm(bF,HM,51,i,0,2),e.d=Dm(bF,HM,51,i,0,2),e.g=Dm(bF,HM,51,i,0,2),o=new av(t.c,0);o.bBf(e.d,Gl(t.a,t.b))?-1:e.c==t.c&&Gl(e.a,e.b)==Gl(e.a,e.b)?0:1}(this,Kd(e,226))},RM.w=function(){return"ComparableEdgeAndPort [port="+this.b+", edge="+this.a+", portPosition="+this.c+"]"},RM.c=0;Yp(vL,"InLayerEdgeTwoNodeCrossingCounter/ComparableEdgeAndPort",226);vT(612,1,{},vC),RM.e=!0,RM.f=0,RM.g=0,RM.k=!1;Yp(vL,"NorthSouthEdgeAllCrossingsCounter",612);vT(615,1,{},ax),RM.b=0,RM.d=0,RM.e=!1;Yp(vL,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",615);vT(143,1,LI,Kf),RM.mb=function(){return BT(this)},RM.b=0;Yp(vL,"PortIterable",143);vT(344,1,xI,Bb),RM.H=function(){return Kd(mp(this.a),7)},RM.G=function(){return this.a.b>0},RM.I=function(){throw new Qr};Yp(vL,"PortIterable/1",344);vT(336,1,{},nP);Yp(vL,"SwitchDecider",336);vT(89,1,{89:1},rt),RM.w=function(){return"NEdge[id="+this.b+" w="+this.f+" d="+this.a+"]"},RM.a=1,RM.b=0,RM.e=!1,RM.f=0;var rV=Yp(yL,"NEdge",89);vT(157,1,{},Dr);Yp(yL,"NEdge/NEdgeBuilder",157);vT(278,1,{},Ar);Yp(yL,"NGraph",278);vT(61,1,{61:1},qv),RM.b=0,RM.d=-1,RM.e=0,RM.i=-1,RM.j=!1;var iV=Yp(yL,"NNode",61);vT(333,13,XN,Yr),RM.rb=function(e,t){++this.d,Im(e,this.c.length),ju(this.c,e,t)},RM.ib=function(e){return jp(this,e)},RM.jb=function(e){return++this.d,mx(this,e)},RM.Q=function(){++this.d,this.c=Dm(eA,hI,1,0,4,1)},RM.vb=function(e){return++this.d,Om(this,e)},RM.nb=function(e){return Bl(this,e)};Yp(yL,"NNode/ChangeAwareArrayList",333);vT(199,1,{},zr);Yp(yL,"NNode/NNodeBuilder",199);vT(595,1,{},it),RM.a=!1,RM.f=UM,RM.j=0;var aV,oV;Yp(yL,"NetworkSimplex",595);vT(193,17,{180:1,193:1,3:1,23:1,17:1},Bc),RM.rc=function(){switch(this.e){case 0:return new zd;case 1:return new kt;default:throw new ua("No implementation is available for the cycle breaker "+(null!=this.d?this.d:""+this.e))}};var cV,uV,lV=dy(xL,"CycleBreakingStrategy",193,dA,(function(){return Xg(),Fx(Ia(lV,1),gI,193,0,[aV,oV])}));vT(539,1,kL,zd),RM.qc=function(e){return uV},RM.sc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x,k,S,E,C,P,_,T,O,j,R;for(nE(t,"Greedy cycle removal",1),R=(v=e.b).c.length,this.a=Dm(L$,WI,26,R,12,1),this.c=Dm(L$,WI,26,R,12,1),this.b=Dm(L$,WI,26,R,12,1),c=0,g=new Qn(v);g.a0?C+1:1);for(i=new Qn(w.e);i.a0?C+1:1)}0==this.c[c]?Ld(this.d,h):0==this.a[c]&&Ld(this.e,h),++c}for(d=-1,f=1,l=new At,P=Kd(Dx(e,(CM(),Uq)),154);R>0;){for(;0!=this.d.b;)T=Kd(Cd(this.d),9),this.b[T.k]=d--,oj(this,T),--R;for(;0!=this.e.b;)O=Kd(Cd(this.e),9),this.b[O.k]=f++,oj(this,O),--R;if(R>0){for(s=JM,b=new Qn(v);b.a=s&&(m>s&&(l.c=Dm(eA,hI,1,0,4,1),s=m),l.c[l.c.length]=h);u=Kd(wh(l,dC(P,l.c.length)),9),this.b[u.k]=f++,oj(this,u),--R}}for(_=v.c.length+1,c=0;cthis.b[j]&&(Ej(n,!0),ly(e,vq,(Xh(),Xh(),a$)));this.a=null,this.c=null,this.b=null,zg(this.e),zg(this.d),nS(t)};var sV;Yp(xL,"GreedyCycleBreaker",539);vT(540,1,kL,kt),RM.qc=function(e){return sV},RM.sc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h;for(nE(t,"Interactive cycle breaking",1),l=new At,f=new Qn(e.b);f.a0&&XP(this,o,l);for(r=new Qn(l);r.a(o=c+l.j.a)?c+1:o,g=new av(n,0),r=null;g.b=o){Ll(g.b>0),g.a.sb(g.c=--g.b);break}h.a>c&&(r?(mx(r.b,h.b),r.a=Ha(r.a,h.a),pg(g)):(Ad(h.b,l),h.c=Va(h.c,c),h.a=Ha(h.a,o),r=h))}r||((r=new Br).c=c,r.a=o,cd(g,r),Ad(r.b,l))}for(a=e.c,u=0,p=new Qn(n);p.a0&&(n+=o.i.a+o.j.a/2,++l),s=new Qn(o.f);s.a1&&(e.c[s]=!0):m.g==_B&&m.e.c.length+m.b.c.length>1&&(e.d[s]=!0)}g.g==(JC(),gF)&&(++c[s],a[s]=!0)}for(n=!0,p=!0,o=0;o0;_++){u=(l=0!=X_(P,1))?0:g-1,c=this.b[u],E=0!=X_(P,1)?k:m,mS(c,i,l,!1,!0),a=UM,o=!0;do{if($w(this.b,this.k),C=a,a=0,a+=by(this.f,c,u),l){for(b=1;b=0;b--)s=this.b[b],Tm(E,c,(gw(),fU)),mS(s,i,!1,!o,!1),a+=by(this.f,s,b),this.c[b]||this.d[b+1]?a+=TM(this.e,s,c):a+=mM(this.i,s,c),c=s;u=0}o=!1,l=!l}while(a0);(ar?a:r;if(a>o){for(s=IS(e,n).mb();s.G();)d[(l=Kd(s.H(),7)).k]=t+lT(n,l.g)-o;return a-o}return 0}switch(n.e){case 1:for(i=0,c=0,f=new Qn(e.f);f.a"),et.e?1:e.ft.f?1:vf(e)-vf(t)}(this,Kd(e,197))},RM.b=0,RM.c=0,RM.e=0,RM.f=0;var jV=Yp(ML,"HyperedgeCrossingsCounter/Hyperedge",197);vT(156,1,{156:1,23:1},Yg),RM.F=function(e){return function(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?vf(e.a)-vf(t.a):e.d==(xv(),MV)&&t.d==RV?-1:e.d==RV&&t.d==MV?1:0}(this,Kd(e,156))},RM.b=0,RM.c=0;var RV,MV,IV=Yp(ML,"HyperedgeCrossingsCounter/HyperedgeCorner",156);vT(242,17,{242:1,3:1,23:1,17:1},lu);var NV,LV=dy(ML,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",242,dA,(function(){return xv(),Fx(Ia(LV,1),gI,242,0,[MV,RV])}));vT(545,1,kL,Tt),RM.qc=function(e){return Kd(Dx(e,(CM(),Eq)),18).kb((kO(),MW))?NV:null},RM.sc=function(e,t){var n;for(nE(t,"Interactive node placement",1),this.a=Kd(Dx(e,(CM(),Qq)),134),n=new Qn(e.c);n.a0&&l[r]&&(p=ld(e.b,l[r],u)),g=Ha(g,i.d.c.b+p);for(a=new Qn(s.f);a.aw)?(u=2,o=UM):0==u?(u=1,o=k):(u=0,o=k):(d=k>=o||o-k0?(s=Kd(wh(f.d.a,a-1),9),S=jd(e.b,f,s),g=f.i.b-f.e.d-(s.i.b+s.j.b+s.e.a+S)):g=f.i.b-f.e.d,u=g0?S:0,h.c=n,h.d=Kd(ig(y,l.c.f),61),jp(h.c.g,h),jp(h.d.c,h),(P=new rt).f=eC(l),P.a=S<0?-S:0,P.c=n,P.d=Kd(ig(y,l.d.f),61),jp(P.c.g,P),jp(P.d.c,P));for(i=Kd(Dx(e,(PM(),WU)),24).a*_b(Math.sqrt(m)),GO(va(ma(ad(r),i),!1),qw(t,1)),g=new Qn(r.a);g.ao)&&Mp(e.c,Kd(b.b,12));++c}a=o}}}(this,e),By(4,GI),d=new xy(4),Kd(Dx(e,_U),124).e){case 3:h=new FT(e,this.d.d,(yv(),QV),(mb(),KV)),d.c[d.c.length]=h;break;case 1:p=new FT(e,this.d.d,(yv(),ZV),(mb(),KV)),d.c[d.c.length]=p;break;case 4:v=new FT(e,this.d.d,(yv(),QV),(mb(),XV)),d.c[d.c.length]=v;break;case 2:m=new FT(e,this.d.d,(yv(),ZV),(mb(),XV)),d.c[d.c.length]=m;break;default:h=new FT(e,this.d.d,(yv(),QV),(mb(),KV)),p=new FT(e,this.d.d,ZV,KV),v=new FT(e,this.d.d,QV,XV),m=new FT(e,this.d.d,ZV,XV),d.c[d.c.length]=v,d.c[d.c.length]=m,d.c[d.c.length]=h,d.c[d.c.length]=p}for(n=new bu(e,this.d),a=new Qn(d);a.ak[u]&&(p=u),s=new Qn(e.b.c);s.aH_(r))&&(l=r);for(!l&&(Nm(0,d.c.length),l=Kd(d.c[0],81)),f=new Qn(e.c);f.a0?1:r<0?-1:0)}(this,Kd(e,27),Kd(t,27))};Yp(LL,"NeighborhoodInformation/NeighborComparator",598);vT(334,1,{});Yp(LL,"ThresholdStrategy",334);vT(602,334,{},Ei),RM.Ic=function(e,t,n){return this.a.k==(yv(),ZV)?FN:GN},RM.Jc=function(){};Yp(LL,"ThresholdStrategy/NullThresholdStrategy",602);vT(249,1,{249:1},vu),RM.c=!1,RM.d=!1;Yp(LL,"ThresholdStrategy/Postprocessable",249);vT(603,334,{},Ci),RM.Ic=function(e,t,n){var r,i,a;return i=t==n,r=this.a.a[n.k]==t,i||r?(a=e,this.a.c,mb(),i&&(a=Nj(this,t,!0)),(a==1/0||a==-1/0)&&r&&(a=Nj(this,n,!1)),a):e},RM.Jc=function(){for(var e,t,n;0!=this.d.b;)(t=CO(this,n=Kd(ib(this.d),249))).a&&(e=t.a,this.c.a[e.c.f.d.k]!==this.c.a[e.d.f.d.k]&&(rT(this,n)||fl(this.e,n)));for(;0!=this.e.a.c.length;)rT(this,Kd(ik(this.e),249))};Yp(LL,"ThresholdStrategy/SimpleThresholdStrategy",603);vT(423,1,{180:1},lt),RM.rc=function(){switch(this.a.e){case 1:return new Yu;case 3:return new It;default:return new Mt}};var oY,cY,uY,lY,sY,fY,dY,hY;Yp(AL,"EdgeRouterFactory",423);vT(538,1,kL,Mt),RM.qc=function(e){var t,n;return n=Kd(Dx(e,(CM(),Eq)),18),t=new yS,n.kb((kO(),IW))&&(Ww(t,lY),Ww(t,fY)),(n.kb(LW)||aa(oa(Nf(Dx(e,(PM(),PU))))))&&(Ww(t,fY),n.kb(AW)&&Ww(t,dY)),n.kb(MW)&&Ww(t,uY),n.kb(zW)&&Ww(t,hY),n.kb(NW)&&Ww(t,sY),n.kb(OW)&&Ww(t,oY),n.kb(RW)&&Ww(t,cY),t},RM.sc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h;nE(t,"Orthogonal edge routing",1),d=Kd(Dx(e,(CM(),Qq)),134),aa(oa(Nf(Dx(e,(OM(),VD))))),s=new BP(0,d.a),h=0,a=new av(e.c,0),o=null,c=null;do{l=(u=a.b0?(n=d.b+(f-1)*d.a,u&&(n+=d.b),n"+this.b},RM.c=0;Yp(AL,"OrthogonalRoutingGenerator/Dependency",118);vT(80,1,{80:1,23:1},cx),RM.F=function(e){return function(e,t){return e.d-t.d}(this,Kd(e,80))},RM.t=function(e){var t;return!!vs(e,80)&&(t=Kd(e,80),this.d==t.d)},RM.v=function(){return this.d},RM.w=function(){var e,t,n,r;for(e=new Ka("{"),r=new Qn(this.g);r.aZN&&(i=new nc(u,f),Ld(n.a,i),wO(this.a,n,e,i,!1),a=new nc(s,f),Ld(n.a,a),wO(this.a,n,e,a,!1))},RM.Lc=function(e){return e.f.i.a+e.i.a+e.a.a},RM.Mc=function(){return $R(),CB},RM.Nc=function(){return $R(),uB};Yp(AL,"OrthogonalRoutingGenerator/NorthToSouthRoutingStrategy",580);vT(581,1,{},Dn),RM.Kc=function(e,t){var n,r,i,a,o,c,u,l,s,f;for(f=t-e.i*this.a.c,c=new Qn(e.g);c.aZN&&(i=new nc(u,f),Ld(n.a,i),wO(this.a,n,e,i,!1),a=new nc(s,f),Ld(n.a,a),wO(this.a,n,e,a,!1))},RM.Lc=function(e){return e.f.i.a+e.i.a+e.a.a},RM.Mc=function(){return $R(),uB},RM.Nc=function(){return $R(),CB};Yp(AL,"OrthogonalRoutingGenerator/SouthToNorthRoutingStrategy",581);vT(579,1,{},zn),RM.Kc=function(e,t){var n,r,i,a,o,c,u,l,s,f;for(f=t+e.i*this.a.c,c=new Qn(e.g);c.aZN&&(i=new nc(f,u),Ld(n.a,i),wO(this.a,n,e,i,!0),a=new nc(f,s),Ld(n.a,a),wO(this.a,n,e,a,!0))},RM.Lc=function(e){return e.f.i.b+e.i.b+e.a.b},RM.Mc=function(){return $R(),cB},RM.Nc=function(){return $R(),_B};var pY,gY,bY,vY,mY;Yp(AL,"OrthogonalRoutingGenerator/WestToEastRoutingStrategy",579);vT(535,1,kL,Yu),RM.qc=function(e){var t,n;return n=Kd(Dx(e,(CM(),Eq)),18),t=new yS,(n.kb((kO(),LW))||aa(oa(Nf(Dx(e,(PM(),PU))))))&&(Ww(t,bY),n.kb(AW)&&Ww(t,vY)),n.kb(OW)&&Ww(t,pY),n.kb(RW)&&Ww(t,gY),t},RM.sc=function(e,t){var n,r,i,a,o,c,u,l,s,f,d,h,p,g,b,v,m,y,w,x;for(nE(t,"Polyline edge routing",1),f=Kd(Dx(e,(CM(),Xq)),15).a,n=Kd(Dx(e,(PM(),CU)),15).a,b=0,0!=e.c.c.length&&(b=.4*n*(v=aT(Kd(wh(e.c,0),16)))),a=new av(e.c,0);a.b0&&(b-=f),uR(i,b),u=0,s=new Qn(i.a);s.a(g-p<=0?0-(g-p):g-p)?c:g-p<=0?0-(g-p):g-p;switch(l.g.e){case 0:case 4:case 1:case 3:Dj(this,l,b)}u=u>c?u:c}a.b(v=aT((Ll(a.b0),a.a.sb(a.c=--a.b)),o=.4*n*u,!r&&a.b0?((d=(v+1)*this.a)=0&&(j+=(v+2)*this.a)}g=w,u=l}while(w);for(r=new Qn(_);r.a("+this.c+") "+this.b},RM.c=0;var eW,tW;Yp(DL,"SplineEdgeRouter/Dependency",117);vT(223,17,{223:1,3:1,23:1,17:1},mu);var nW=dy(DL,"SplineEdgeRouter/SideToProcess",223,dA,(function(){return yb(),Fx(Ia(nW,1),gI,223,0,[eW,tW])}));vT(77,1,{77:1,23:1},b_,oR),RM.F=function(e){return function(e,t){return e.i-t.i}(this,Kd(e,77))},RM.a=0,RM.b=0,RM.e=0,RM.f=!1,RM.i=0,RM.k=0,RM.n=0,RM.p=0;var rW,iW,aW,oW,cW,uW;Yp(DL,"SplineEdgeRouter/SplineHyperEdge",77);vT(123,17,{123:1,3:1,23:1,17:1},yu);var lW,sW,fW,dW,hW=dy(GL,"ContentAlignment",123,dA,(function(){return QC(),Fx(Ia(hW,1),gI,123,0,[uW,cW,oW,iW,rW,aW])}));vT(218,17,{218:1,3:1,23:1,17:1},wu);var pW,gW,bW,vW,mW,yW=dy(GL,"EdgeConstraint",218,dA,(function(){return Kx(),Fx(Ia(yW,1),gI,218,0,[fW,sW,dW])}));vT(115,17,{115:1,3:1,23:1,17:1},xu);var wW,xW,kW,SW,EW,CW,PW,_W=dy(GL,"EdgeLabelSideSelection",115,dA,(function(){return AC(),Fx(Ia(_W,1),gI,115,0,[gW,pW,vW,bW,mW])}));vT(124,17,{124:1,3:1,23:1,17:1},ku);var TW,OW,jW,RW,MW,IW,NW,LW,AW,DW,zW,BW=dy(GL,"FixedAlignment",124,dA,(function(){return XC(),Fx(Ia(BW,1),gI,124,0,[EW,SW,PW,kW,CW,xW])}));vT(113,17,{113:1,3:1,23:1,17:1},Su);var HW,FW,GW,VW,YW,WW,qW,UW,$W=dy(GL,"GraphProperties",113,dA,(function(){return kO(),Fx(Ia($W,1),gI,113,0,[jW,MW,IW,NW,LW,AW,zW,OW,RW,DW])}));vT(110,17,{110:1,3:1,23:1,17:1},Nv),RM.a=!1,RM.b=!1,RM.c=!1;var KW,XW,QW,ZW,JW=dy(GL,"GreedySwitchType",110,dA,(function(){return Zj(),Fx(Ia(JW,1),gI,110,0,[FW,WW,GW,qW,VW,UW,YW,HW])}));vT(140,17,{140:1,3:1,23:1,17:1},Eu);var eq,tq,nq=dy(GL,"InLayerConstraint",140,dA,(function(){return Xy(),Fx(Ia(nq,1),gI,140,0,[QW,ZW,XW])}));vT(174,17,{174:1,3:1,23:1,17:1},Cu);var rq,iq,aq,oq,cq,uq,lq,sq,fq,dq,hq,pq,gq,bq,vq,mq,yq,wq,xq,kq,Sq,Eq,Cq,Pq,_q,Tq,Oq,jq,Rq,Mq,Iq,Nq,Lq,Aq,Dq,zq,Bq,Hq,Fq,Gq,Vq,Yq,Wq,qq,Uq,$q,Kq,Xq,Qq,Zq,Jq,eU,tU,nU,rU,iU,aU,oU,cU,uU,lU=dy(GL,"InteractiveReferencePoint",174,dA,(function(){return mv(),Fx(Ia(lU,1),gI,174,0,[eq,tq])}));vT(85,17,{85:1,3:1,23:1,17:1},Pu);var sU,fU,dU,hU,pU=dy(GL,"LayerConstraint",85,dA,(function(){return lC(),Fx(Ia(pU,1),gI,85,0,[uU,iU,aU,oU,cU])}));vT(219,17,{219:1,3:1,23:1,17:1},_u);var gU,bU,vU,mU,yU,wU,xU,kU,SU,EU,CU,PU,_U,TU,OU,jU,RU,MU,IU,NU,LU,AU,DU,zU,BU,HU,FU,GU,VU,YU,WU,qU,UU,$U,KU,XU=dy(GL,"PortType",219,dA,(function(){return gw(),Fx(Ia(XU,1),gI,219,0,[hU,fU,dU])}));vT(153,17,{153:1,3:1,23:1,17:1},Tu);var QU,ZU=dy(GL,"SelfLoopPlacement",153,dA,(function(){return $S(),Fx(Ia(ZU,1),gI,153,0,[UU,KU,$U])}));vT(134,1,{134:1},YR),RM.a=0,RM.b=0,RM.c=0,RM.d=0,RM.e=0,RM.f=0;var JU,e$,t$;Yp(GL,"Spacings",134);vT(172,17,{172:1,3:1,23:1,17:1},Ou);var n$,r$=dy(GL,"WideNodesStrategy",172,dA,(function(){return Zw(),Fx(Ia(r$,1),gI,172,0,[JU,e$,t$])}));vT(644,1,{});Yp(uI,"OutputStream",644);vT(645,644,{});Yp(uI,"FilterOutputStream",645);vT(291,645,{},ft);Yp(uI,"PrintStream",291);vT(255,1,{}),RM.w=function(){return this.a};Yp(aI,"AbstractStringBuilder",255);vT(621,95,GM,Pi);Yp(aI,"ArrayIndexOutOfBoundsException",621);vT(290,72,GM,$r,Sa);Yp(aI,"ArrayStoreException",290);vT(252,46,FM);Yp(aI,"Error",252);vT(84,252,FM,Sr,wy);var i$,a$;Yp(aI,"AssertionError",84);AM={3:1,349:1,23:1};var o$=Yp(aI,"Boolean",349);DM={3:1,23:1,184:1,231:1};var c$=Yp(aI,"Double",184);vT(15,231,{3:1,23:1,15:1,231:1},Hn,Fn),RM.F=function(e){return function(e,t){return Yx(e.a,t.a)}(this,Kd(e,15))},RM.t=function(e){return vs(e,15)&&Kd(e,15).a==this.a},RM.v=function(){return _b(this.a)},RM.w=function(){return e=this.a,ci(),""+e;var e},RM.a=0;var u$=Yp(aI,"Float",15);vT(101,72,GM,Kr,Ea);var l$,s$;Yp(aI,"IllegalStateException",101);vT(608,72,GM,Ca);Yp(aI,"NegativeArraySizeException",608);vT(76,72,{3:1,54:1,76:1,46:1},Xr,Pa);Yp(aI,"NullPointerException",76);vT(130,29,{3:1,54:1,29:1,130:1,46:1},_i,Qa);Yp(aI,"NumberFormatException",130);vT(146,1,{3:1,146:1},Wg),RM.t=function(e){var t;return!!vs(e,146)&&(t=Kd(e,146),this.c==t.c&&Ig(this.d,t.d)&&Ig(this.a,t.a)&&Ig(this.b,t.b))},RM.v=function(){return lk(Fx(Ia(eA,1),hI,1,4,[lS(this.c),this.a,this.d,this.b]))},RM.w=function(){return this.a+"."+this.d+"("+(null!=this.b?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},RM.c=0;var f$=Yp(aI,"StackTraceElement",146);vT(98,255,{345:1},to,no,Ka);var d$;Yp(aI,"StringBuilder",98);vT(45,72,{3:1,54:1,46:1,45:1},Qr,_a);Yp(aI,"UnsupportedOperationException",45);vT(213,638,kI),RM.Q=function(){Rm(this)},RM.R=function(e){return iy(this,e)},RM.ab=function(e){return hk(this,e,this.e)||hk(this,e,this.d)},RM.bb=function(){return new Gn(this)},RM.cb=function(e){return ig(this,e)},RM.db=function(e,t){return Cg(this,e,t)},RM.eb=function(e){return np(this,e)},RM.Y=function(){return Vc(this)};Yp(SI,"AbstractHashMap",213);vT(120,641,CI,Gn),RM.Q=function(){this.a.Q()},RM.kb=function(e){return kv(this,e)},RM.mb=function(){return new ck(this.a)},RM.nb=function(e){var t;return!!kv(this,e)&&(t=Kd(e,21).yb(),this.a.eb(t),!0)},RM.Y=function(){return this.a.Y()};Yp(SI,"AbstractHashMap/EntrySet",120);vT(148,1,xI,ck),RM.H=function(){return rw(this)},RM.G=function(){return this.b},RM.I=function(){Jm(this)},RM.b=!1;Yp(SI,"AbstractHashMap/EntrySetIterator",148);vT(162,1,xI,Vn),RM.G=function(){return this.b0},RM.L=function(){return this.b},RM.M=function(){return mp(this)},RM.N=function(){return this.b-1},RM.O=function(e){ud(this,e)};Yp(SI,"AbstractList/ListIteratorImpl",43);vT(258,647,PI,nv),RM.rb=function(e,t){Im(e,this.b),this.c.rb(this.a+e,t),++this.b},RM.sb=function(e){return Nm(e,this.b),this.c.sb(this.a+e)},RM.vb=function(e){var t;return Nm(e,this.b),t=this.c.vb(this.a+e),--this.b,t},RM.wb=function(e,t){return Nm(e,this.b),this.c.wb(this.a+e,t)},RM.Y=function(){return this.b},RM.a=0,RM.b=0;Yp(SI,"AbstractList/SubList",258);vT(36,641,CI,Yn),RM.Q=function(){this.a.Q()},RM.kb=function(e){return this.a.R(e)},RM.mb=function(){return new Wn(this.a.bb().mb())},RM.nb=function(e){return!!this.a.R(e)&&(this.a.eb(e),!0)},RM.Y=function(){return this.a.Y()};Yp(SI,"AbstractMap/1",36);vT(40,1,xI,Wn),RM.G=function(){return this.a.G()},RM.H=function(){return Kd(this.a.H(),21).yb()},RM.I=function(){this.a.I()};Yp(SI,"AbstractMap/1/1",40);vT(211,640,EI,qn),RM.Q=function(){this.a.Q()},RM.kb=function(e){return this.a.ab(e)},RM.mb=function(){return new Un(this.a.bb().mb())},RM.Y=function(){return this.a.Y()};Yp(SI,"AbstractMap/2",211);vT(212,1,xI,Un),RM.G=function(){return this.a.G()},RM.H=function(){return Kd(this.a.H(),21).zb()},RM.I=function(){this.a.I()};Yp(SI,"AbstractMap/2/1",212);vT(210,1,{210:1,21:1}),RM.t=function(e){var t;return!!vs(e,21)&&(t=Kd(e,21),Ig(this.d,t.yb())&&Ig(this.e,t.zb()))},RM.yb=function(){return this.d},RM.zb=function(){return this.e},RM.v=function(){return Yl(this.d)^Yl(this.e)},RM.Ab=function(e){return kd(this,e)},RM.w=function(){return this.d+"="+this.e};Yp(SI,"AbstractMap/AbstractEntry",210);vT(163,210,{210:1,163:1,21:1},Gu);Yp(SI,"AbstractMap/SimpleEntry",163);vT(652,1,jI),RM.t=function(e){var t;return!!vs(e,21)&&(t=Kd(e,21),Ig(this.yb(),t.yb())&&Ig(this.zb(),t.zb()))},RM.v=function(){return Yl(this.yb())^Yl(this.zb())},RM.w=function(){return this.yb()+"="+this.zb()};Yp(SI,RI,652);vT(639,638,kI),RM._=function(e){return Lm(this,e)},RM.R=function(e){return zu(this,e)},RM.bb=function(){return new $n(this)},RM.cb=function(e){return Ju(pk(this,e))},RM.W=function(){return new Kn(this)};Yp(SI,"AbstractNavigableMap",639);vT(287,641,CI,$n),RM.kb=function(e){return vs(e,21)&&Lm(this.b,Kd(e,21))},RM.mb=function(){return new vd(this.b)},RM.nb=function(e){var t;return!!vs(e,21)&&(t=Kd(e,21),Km(this.b,t))},RM.Y=function(){return this.b.c};Yp(SI,"AbstractNavigableMap/EntrySet",287);vT(229,641,OI,Kn),RM.Q=function(){ha(this.a)},RM.kb=function(e){return zu(this.a,e)},RM.mb=function(){return new Xn(new vd(new af(this.a).b))},RM.nb=function(e){return!!zu(this.a,e)&&(xg(this.a,e),!0)},RM.Y=function(){return this.a.c};Yp(SI,"AbstractNavigableMap/NavigableKeySet",229);vT(230,1,xI,Xn),RM.G=function(){return Gc(this.a.a)},RM.H=function(){return wf(this.a).yb()},RM.I=function(){uh(this.a)};Yp(SI,"AbstractNavigableMap/NavigableKeySet/1",230);vT(4,1,xI,Qn),RM.G=function(){return ms(this)},RM.H=function(){return cv(this)},RM.I=function(){vp(this)},RM.a=0,RM.b=-1;Yp(SI,"ArrayList/1",4);vT(94,647,YL,Zn),RM.kb=function(e){return-1!=function(e,t){var n,r;for(n=0,r=e.Y();n=t||n<0||f&&e-l>=a}function x(){var e=p();if(w(e))return k(e);c=setTimeout(x,function(e){var n=t-(e-u);return f?h(n,a-(e-l)):n}(e))}function k(e){return c=void 0,v&&r?m(e):(r=i=void 0,o)}function S(){var e=p(),n=w(e);if(r=arguments,i=this,u=e,n){if(void 0===c)return y(u);if(f)return c=setTimeout(x,t),m(u)}return void 0===c&&(c=setTimeout(x,t)),o}return t=b(t)||0,g(n)&&(s=!!n.leading,a=(f="maxWait"in n)?d(b(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=i=c=void 0},S.flush=function(){return void 0===c?o:k(p())},S}},929:function(e,t,n){var r="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=d||h||Function("return this")();var g=Array.prototype,b=Function.prototype,v=Object.prototype,m=p["__core-js_shared__"],y=function(){var e=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=b.toString,x=v.hasOwnProperty,k=v.toString,S=RegExp("^"+w.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=p.Symbol,C=g.splice,P=D(p,"Map"),_=D(Object,"create"),T=E?E.prototype:void 0,O=T?T.toString:void 0;function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},R.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new j,map:new(P||R),string:new j}},M.prototype.delete=function(e){return A(this,e).delete(e)},M.prototype.get=function(e){return A(this,e).get(e)},M.prototype.has=function(e){return A(this,e).has(e)},M.prototype.set=function(e,t){return A(this,e).set(e,t),this};var z=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(l,(function(e,t,r,i){n.push(r?i.replace(s,"$1"):t||e)})),n}));function B(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(H.Cache||M),n}H.Cache=M;var F=Array.isArray;function G(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:N(e,t);return void 0===r?n:r}},605:function(e,t,n){var r="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,g=h||p||Function("return this")();var b=Array.prototype,v=Function.prototype,m=Object.prototype,y=g["__core-js_shared__"],w=function(){var e=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x=v.toString,k=m.hasOwnProperty,S=m.toString,E=RegExp("^"+x.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=g.Symbol,P=b.splice,_=B(g,"Map"),T=B(Object,"create"),O=C?C.prototype:void 0,j=O?O.toString:void 0;function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1},M.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new R,map:new(_||M),string:new R}},I.prototype.delete=function(e){return z(this,e).delete(e)},I.prototype.get=function(e){return z(this,e).get(e)},I.prototype.has=function(e){return z(this,e).has(e)},I.prototype.set=function(e,t){return z(this,e).set(e,t),this};var F=V((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return j?j.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(l,(function(e,t,r,i){n.push(r?i.replace(s,"$1"):t||e)})),n}));function G(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function V(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(V.Cache||I),n}function Y(e,t){return e===t||e!==e&&t!==t}V.Cache=I;var W=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==S.call(e)}e.exports=function(e,t,n){return null==e?e:D(e,t,n)}},967:function(e,t,n){var r="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",o=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")();var h=Array.prototype,p=Function.prototype,g=Object.prototype,b=d["__core-js_shared__"],v=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),m=p.toString,y=g.hasOwnProperty,w=g.toString,x=RegExp("^"+m.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=d.Symbol,S=h.splice,E=N(d,"Map"),C=N(Object,"create"),P=k?k.prototype:void 0,_=P?P.toString:void 0;function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},O.prototype.set=function(e,t){var n=this.__data__,r=R(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new T,map:new(E||O),string:new T}},j.prototype.delete=function(e){return I(this,e).delete(e)},j.prototype.get=function(e){return I(this,e).get(e)},j.prototype.has=function(e){return I(this,e).has(e)},j.prototype.set=function(e,t){return I(this,e).set(e,t),this};var L=D((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(c,(function(e,t,r,i){n.push(r?i.replace(u,"$1"):t||e)})),n}));function A(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function D(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(D.Cache||j),n}D.Cache=j;var z=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e){return z(e)?function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n0&&e.remove(u),c.length>0&&e.add(c),l.forEach((function(t){var n=t.ele1,a=t.ele2;return s(e,n,a,r,i,o)}))},s=function(e,t,n,r,i,a){var o=i(i(n,"data"),"id"),c=e.getElementById(o),u={};["data","position","selected","selectable","locked","grabbable","classes"].forEach((function(e){var o=i(n,e);a(o,i(t,e))&&(u[e]=r(o))}));var l=i(n,"scratch");a(l,i(t,"scratch"))&&c.scratch(r(l)),Object.keys(u).length>0&&c.json(u)}}])}(n(791),n(164),n(7),n(351))},463:function(e,t,n){"use strict";var r=n(791),i=n(725),a=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n