=0?dl?(t-i)*(t-i)+(e-a)*(e-a):c-f},Ce=function(t,e,n){for(var r,i,a,o,s=0,l=0;l=t&&t>=a||r<=t&&t<=a))continue;(t-r)/(a-r)*(o-i)+i>e&&s++}return s%2!==0},Pe=function(t,e,n,r,i,a,o,s,l){var c,u=new Array(n.length);null!=s[0]?(c=Math.atan(s[1]/s[0]),s[0]<0?c+=Math.PI/2:c=-c-Math.PI/2):c=s;for(var f,h=Math.cos(-c),d=Math.sin(-c),p=0;p0){var g=Oe(u,-l);f=Le(g)}else f=u;return Ce(t,e,f)},Le=function(t){for(var e,n,r,i,a,o,s,l,c=new Array(t.length/2),u=0;u=0&&p<=1&&v.push(p),g>=0&&g<=1&&v.push(g),0===v.length)return[];var m=v[0]*s[0]+t,y=v[0]*s[1]+e;return v.length>1?v[0]==v[1]?[m,y]:[m,y,v[1]*s[0]+t,v[1]*s[1]+e]:[m,y]},Re=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},ze=function(t,e,n,r,i,a,o,s,l){var c=t-i,u=n-t,f=o-i,h=e-a,d=r-e,p=s-a,g=f*h-p*c,v=u*h-d*c,m=p*u-f*d;if(0!==m){var y=g/m,b=v/m,x=-.001;return x<=y&&y<=1.001&&x<=b&&b<=1.001||l?[t+y*u,e+y*d]:[]}return 0===g||0===v?Re(t,n,o)===o?[o,s]:Re(t,n,i)===i?[i,a]:Re(i,o,n)===n?[n,r]:[]:[]},Ne=function(t,e,n,r,i,a,o,s){var l,c,u,f,h,d,p=[],g=new Array(n.length),v=!0;if(null==a&&(v=!1),v){for(var m=0;m0){var y=Oe(g,-s);c=Le(y)}else c=g}else c=n;for(var b=0;bc&&(c=e)},h=function(t){return l[t]},d=0;d0?x.edgesTo(b)[0]:b.edgesTo(x)[0];var _=r(w);b=b.id(),d[b]>d[m]+_&&(d[b]=d[m]+_,p.nodes.indexOf(b)<0?p.push(b):p.updateItem(b),c[b]=0,l[b]=[]),d[b]==d[m]+_&&(c[b]=c[b]+c[m],l[b].push(m))}else for(var k=0;k0;){for(var S=n.pop(),E=0;E0&&o.push(n[s]);0!==o.length&&i.push(r.collection(o))}return i}(u,l,e,r);return b=function(t){for(var e=0;e5&&void 0!==arguments[5]?arguments[5]:un,o=r,s=0;s=2?vn(t,e,n,0,dn,pn):vn(t,e,n,0,hn)},squaredEuclidean:function(t,e,n){return vn(t,e,n,0,dn)},manhattan:function(t,e,n){return vn(t,e,n,0,hn)},max:function(t,e,n){return vn(t,e,n,-1/0,gn)}};function yn(t,e,n,r,i,a){var o;return o=C(t)?t:mn[t]||mn.euclidean,0===e&&C(t)?o(i,a):o(e,n,r,i,a)}mn["squared-euclidean"]=mn.squaredEuclidean,mn.squaredeuclidean=mn.squaredEuclidean;var bn=Dt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),xn=function(t){return bn(t)},wn=function(t,e,n,r,i){var a="kMedoids"!==i?function(t){return n[t]}:function(t){return r[t](n)},o=n,s=e;return yn(t,r.length,a,(function(t){return r[t](e)}),o,s)},_n=function(t,e,n){for(var r=n.length,i=new Array(r),a=new Array(r),o=new Array(e),s=null,l=0;ln)return!1}return!0},An=function(t,e,n){for(var r=0;ri&&(i=e[l][c],a=c);o[a].push(t[l])}for(var u=0;u=i.threshold||"dendrogram"===i.mode&&1===t.length)return!1;var d,p=e[o],g=e[r[o]];d="dendrogram"===i.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key},t[p.index]=d,t.splice(g.index,1),e[p.key]=d;for(var v=0;vn[g.key][m.key]&&(a=n[g.key][m.key])):"max"===i.linkage?(a=n[p.key][m.key],n[p.key][m.key]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.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&&t.splice(0,e)):t=t.slice(e,n);for(var a=0,o=t.length-1;o>=0;o--){var s=t[o];i?isFinite(s)||(t[o]=-1/0,a++):t.splice(o,1)}r&&t.sort((function(t,e){return t-e}));var l=t.length,c=Math.floor(l/2);return l%2!==0?t[c+1+a]:(t[c-1+a]+t[c+a])/2}(t):"mean"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=0,i=0,a=e;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=1/0,i=e;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=-1/0,i=e;io&&(a=l,o=e[i*t+l])}a>0&&r.push(a)}for(var c=0;c=A?(S=A,A=C,E=P):C>S&&(S=C);for(var L=0;L0?1:0;k[_%c.minIterations*e+j]=F,N+=F}if(N>0&&(_>=c.minIterations-1||_==c.maxIterations-1)){for(var B=0,U=0;U0&&r.push(i);return r}(e,a,o),q=function(t,e,n){for(var r=qn(t,e,n),i=0;il&&(s=c,l=u)}n[i]=a[s]}return qn(t,e,n)}(e,r,V),G={},W=0;W1||o>1)&&(c=!0),u[e]=[],t.outgoers().forEach((function(t){t.isEdge()&&u[e].push(t.id())}))}else f[e]=[void 0,t.target().id()]})):l.forEach((function(t){var e=t.id();t.isNode()?(t.degree(!0)%2&&(n?r?c=!0:r=e:n=e),u[e]=[],t.connectedEdges().forEach((function(t){return u[e].push(t.id())}))):f[e]=[t.source().id(),t.target().id()]}));var h={found:!1,trail:void 0};if(c)return h;if(r&&n)if(s){if(i&&r!=i)return h;i=r}else{if(i&&r!=i&&n!=i)return h;i||(i=r)}else i||(i=l[0].id());var d=function(t){for(var e,n,r,i=t,a=[t];u[i].length;)e=u[i].shift(),n=f[e][0],i!=(r=f[e][1])?(u[r]=u[r].filter((function(t){return t!=e})),i=r):s||i==n||(u[n]=u[n].filter((function(t){return t!=e})),i=n),a.unshift(e),a.unshift(i);return a},p=[],g=[];for(g=d(i);1!=g.length;)0==u[g[0]].length?(p.unshift(l.getElementById(g.shift())),p.unshift(l.getElementById(g.shift()))):g=d(g.shift()).concat(g);for(var v in p.unshift(l.getElementById(g.shift())),u)if(u[v].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},Xn=function(){var t=this,e={},n=0,r=0,i=[],a=[],o={},s=function s(l,c,u){l===u&&(r+=1),e[c]={id:n,low:n++,cutVertex:!1};var f,h,d,p,g=t.getElementById(c).connectedEdges().intersection(t);0===g.size()?i.push(t.spawn(t.getElementById(c))):g.forEach((function(n){f=n.source().id(),h=n.target().id(),(d=f===c?h:f)!==u&&(p=n.id(),o[p]||(o[p]=!0,a.push({x:c,y:d,edge:n})),d in e?e[c].low=Math.min(e[c].low,e[d].id):(s(l,d,c),e[c].low=Math.min(e[c].low,e[d].low),e[c].id<=e[d].low&&(e[c].cutVertex=!0,function(n,r){for(var o=a.length-1,s=[],l=t.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach((function(n){var r=n.connectedNodes().intersection(t);l.merge(n),r.forEach((function(n){var r=n.id(),i=n.connectedEdges().intersection(t);l.merge(n),e[r].cutVertex?l.merge(i.filter((function(t){return t.isLoop()}))):l.merge(i)}))})),i.push(l)}(c,d))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(r=0,s(n,n),e[n].cutVertex=r>1)}}));var l=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(l),components:i}},Kn=function(){var t=this,e={},n=0,r=[],i=[],a=t.spawn(t),o=function o(s){if(i.push(s),e[s]={index:n,low:n++,explored:!1},t.getElementById(s).connectedEdges().intersection(t).forEach((function(t){var n=t.target().id();n!==s&&(n in e||o(n),e[n].explored||(e[s].low=Math.min(e[s].low,e[n].low)))})),e[s].index===e[s].low){for(var l=t.spawn();;){var c=i.pop();if(l.merge(t.getElementById(c)),e[c].low=e[s].index,e[c].explored=!0,c===s)break}var u=l.edgesWith(l),f=l.merge(u);r.push(f),a=a.difference(f)}};return t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||o(n)}})),{cut:a,components:r}},Zn={};[qt,Wt,Yt,Xt,Zt,Qt,re,We,$e,Ke,Je,cn,On,Bn,Wn,$n,{hopcroftTarjanBiconnected:Xn,htbc:Xn,htb:Xn,hopcroftTarjanBiconnectedComponents:Xn},{tarjanStronglyConnected:Kn,tsc:Kn,tscc:Kn,tarjanStronglyConnectedComponents:Kn}].forEach((function(t){Q(Zn,t)}));var Jn=function t(e){if(!(this instanceof t))return new t(e);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 e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Jn.prototype={fulfill:function(t){return Qn(this,1,"fulfillValue",t)},reject:function(t){return Qn(this,2,"rejectReason",t)},then:function(t,e){var n=this,r=new Jn;return n.onFulfilled.push(nr(t,r,"fulfill")),n.onRejected.push(nr(e,r,"reject")),tr(n),r.proxy}};var Qn=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,tr(t)),t},tr=function(t){1===t.state?er(t,"onFulfilled",t.fulfillValue):2===t.state&&er(t,"onRejected",t.rejectReason)},er=function(t,e,n){if(0!==t[e].length){var r=t[e];t[e]=[];var i=function(){for(var t=0;t0:void 0}},clearQueue:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit("class"),e},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var e=this[0];return null!=e&&e._private.classes.has(t)},toggleClass:function(t,e){P(t)||(t=t.match(/\S+/g)||[]);for(var n=this,r=void 0===e,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit("class"),n},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,e){var n=this;if(null==e)e=250;else if(0===e)return n;return n.addClass(t),setTimeout((function(){n.removeClass(t)}),e),n}};hr.className=hr.classNames=hr.classes;var dr={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:Y,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};dr.variable="(?:[\\w-.]|(?:\\\\"+dr.metaChar+"))+",dr.className="(?:[\\w-]|(?:\\\\"+dr.metaChar+"))+",dr.value=dr.string+"|"+dr.number,dr.id=dr.variable,function(){var t,e,n;for(t=dr.comparatorOp.split("|"),n=0;n=0||"="!==e&&(dr.comparatorOp+="|\\!"+e)}();var pr=0,gr=1,vr=2,mr=3,yr=4,br=5,xr=6,wr=7,_r=8,kr=9,Tr=10,Mr=11,Ar=12,Sr=13,Er=14,Cr=15,Pr=16,Lr=17,Or=18,Ir=19,Dr=20,Rr=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort((function(t,e){return function(t,e){return-1*J(t,e)}(t.selector,e.selector)})),zr=function(){for(var t,e={},n=0;n0&&c.edgeCount>0)return Ct("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(c.edgeCount>1)return Ct("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===c.edgeCount&&Ct("The selector `"+t+"` 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 t=function(t){return null==t?"":t},e=function(e){return E(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},r=function(r,a){var o=r.type,s=r.value;switch(o){case pr:var l=t(s);return l.substring(0,l.length-1);case mr:var c=r.field,u=r.operator;return"["+c+n(t(u))+e(s)+"]";case br:var f=r.operator,h=r.field;return"["+t(f)+h+"]";case yr:return"["+r.field+"]";case xr:var d=r.operator;return"[["+r.field+n(t(d))+e(s)+"]]";case wr:return s;case _r:return"#"+s;case kr:return"."+s;case Lr:case Cr:return i(r.parent,a)+n(">")+i(r.child,a);case Or:case Pr:return i(r.ancestor,a)+" "+i(r.descendant,a);case Ir:var p=i(r.left,a),g=i(r.subject,a),v=i(r.right,a);return p+(p.length>0?" ":"")+g+v;case Dr:return""}},i=function(t,e){return t.checks.reduce((function(n,i,a){return n+(e===t&&0===a?"$":"")+r(i,e)}),"")},a="",o=0;o1&&o=0&&(e=e.replace("!",""),u=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),c=!0),(o||l||c)&&(i=o||s?""+t:"",a=""+n),c&&(t=i=i.toLowerCase(),n=a=a.toLowerCase()),e){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=t===n;break;case">":f=!0,r=t>n;break;case">=":f=!0,r=t>=n;break;case"<":f=!0,r=t0;){var c=i.shift();e(c),a.add(c.id()),o&&r(i,a,c)}return t}function ni(t,e,n){if(n.isParent())for(var r=n._private.children,i=0;i1&&void 0!==arguments[1])||arguments[1],ni)},ti.forEachUp=function(t){return ei(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ri)},ti.forEachUpAndDown=function(t){return ei(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ii)},ti.ancestors=ti.parents,(Zr=Jr={data:ur.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:ur.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ur.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ur.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ur.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ur.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=Zr.data,Zr.removeAttr=Zr.removeData;var ai,oi,si=Jr,li={};function ci(t){return function(e){var n=this;if(void 0===e&&(e=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;oe})),minIndegree:ui("indegree",(function(t,e){return te})),minOutdegree:ui("outdegree",(function(t,e){return te}))}),Q(li,{totalDegree:function(t){for(var e=0,n=this.nodes(),r=0;r0,u=c;c&&(l=l[0]);var f=u?l.position():{x:0,y:0};return i={x:s.x-f.x,y:s.y-f.y},void 0===t?i:i[t]}for(var h=0;h0,v=g;g&&(p=p[0]);var m=v?p.position():{x:0,y:0};void 0!==e?d.position(t,e+m[t]):void 0!==i&&d.position({x:i.x+m.x,y:i.y+m.y})}}else if(!a)return;return this}},ai.modelPosition=ai.point=ai.position,ai.modelPositions=ai.points=ai.positions,ai.renderedPoint=ai.renderedPosition,ai.relativePoint=ai.relativePosition;var di,pi,gi=oi;di=pi={},pi.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),r=n.zoom(),i=n.pan(),a=e.x1*r+i.x,o=e.x2*r+i.x,s=e.y1*r+i.y,l=e.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},pi.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp((function(e){if(e.isParent()){var n=e._private;n.compoundBoundsClean=!1,n.bbCache=null,t||e.emitAndNotify("bounds")}})),this):this},pi.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function n(t){if(t.isParent()){var e=t._private,n=t.children(),r="include"===t.pstyle("compound-sizing-wrt-labels").value,i={width:{val:t.pstyle("min-width").pfValue,left:t.pstyle("min-width-bias-left"),right:t.pstyle("min-width-bias-right")},height:{val:t.pstyle("min-height").pfValue,top:t.pstyle("min-height-bias-top"),bottom:t.pstyle("min-height-bias-bottom")}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=e.position;0!==a.w&&0!==a.h||((a={w:t.pstyle("width").pfValue,h:t.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 s=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var l=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(l=100*l/i.width.val);var c=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(c=100*c/i.height.val);var u=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(u=100*u/i.height.val);var f=m(i.width.val-a.w,s,l),h=f.biasDiff,d=f.biasComplementDiff,p=m(i.height.val-a.h,c,u),g=p.biasDiff,v=p.biasComplementDiff;e.autoPadding=function(t,e,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return t>0?n.pfValue*t:0;case"height":return e>0?n.pfValue*e:0;case"average":return t>0&&e>0?n.pfValue*(t+e)/2:0;case"min":return t>0&&e>0?t>e?n.pfValue*e:n.pfValue*t:0;case"max":return t>0&&e>0?t>e?n.pfValue*t:n.pfValue*e:0;default:return 0}}(a.w,a.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+d)/2,e.autoHeight=Math.max(a.h,i.height.val),o.y=(-g+a.y1+a.y2+v)/2}function m(t,e,n){var r=0,i=0,a=e+n;return t>0&&a>0&&(r=e/a*t,i=n/a*t),{biasDiff:r,biasComplementDiff:i}}}for(var r=0;rt.x2?r:t.x2,t.y1=nt.y2?i:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},yi=function(t,e){return null==e?t:mi(t,e.x1,e.y1,e.x2,e.y2)},bi=function(t,e,n){return Nt(t,e,n)},xi=function(t,e,n){if(!e.cy().headless()){var r,i,a=e._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==e.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 l=a.arrowBounds=a.arrowBounds||{},c=l[n]=l[n]||{};c.x1=r-s,c.y1=i-s,c.x2=r+s,c.y2=i+s,c.w=c.x2-c.x1,c.h=c.y2-c.y1,ye(c,1),mi(t,c.x1,c.y1,c.x2,c.y2)}}},wi=function(t,e,n){if(!e.cy().headless()){var r;r=n?n+"-":"";var i=e._private,a=i.rstyle;if(e.pstyle(r+"label").strValue){var o,s,l,c,u=e.pstyle("text-halign"),f=e.pstyle("text-valign"),h=bi(a,"labelWidth",n),d=bi(a,"labelHeight",n),p=bi(a,"labelX",n),g=bi(a,"labelY",n),v=e.pstyle(r+"text-margin-x").pfValue,m=e.pstyle(r+"text-margin-y").pfValue,y=e.isEdge(),b=e.pstyle(r+"text-rotation"),x=e.pstyle("text-outline-width").pfValue,w=e.pstyle("text-border-width").pfValue/2,_=e.pstyle("text-background-padding").pfValue,k=d,T=h,M=T/2,A=k/2;if(y)o=p-M,s=p+M,l=g-A,c=g+A;else{switch(u.value){case"left":o=p-T,s=p;break;case"center":o=p-M,s=p+M;break;case"right":o=p,s=p+T}switch(f.value){case"top":l=g-k,c=g;break;case"center":l=g-A,c=g+A;break;case"bottom":l=g,c=g+k}}o+=v-Math.max(x,w)-_-2,s+=v+Math.max(x,w)+_+2,l+=m-Math.max(x,w)-_-2,c+=m+Math.max(x,w)+_+2;var S=n||"main",E=i.labelBounds,C=E[S]=E[S]||{};C.x1=o,C.y1=l,C.x2=s,C.y2=c,C.w=s-o,C.h=c-l;var P=y&&"autorotate"===b.strValue,L=null!=b.pfValue&&0!==b.pfValue;if(P||L){var O=P?bi(i.rstyle,"labelAngle",n):b.pfValue,I=Math.cos(O),D=Math.sin(O),R=(o+s)/2,z=(l+c)/2;if(!y){switch(u.value){case"left":R=s;break;case"right":R=o}switch(f.value){case"top":z=c;break;case"bottom":z=l}}var N=function(t,e){return{x:(t-=R)*I-(e-=z)*D+R,y:t*D+e*I+z}},j=N(o,l),F=N(o,c),B=N(s,l),U=N(s,c);o=Math.min(j.x,F.x,B.x,U.x),s=Math.max(j.x,F.x,B.x,U.x),l=Math.min(j.y,F.y,B.y,U.y),c=Math.max(j.y,F.y,B.y,U.y)}var H=S+"Rot",V=E[H]=E[H]||{};V.x1=o,V.y1=l,V.x2=s,V.y2=c,V.w=s-o,V.h=c-l,mi(t,o,l,s,c),mi(i.labelBounds.all,o,l,s,c)}return t}},_i=function(t){var e=0,n=function(t){return(t?1:0)<(r=E[1].x)){var C=n;n=r,r=C}if(i>(a=E[1].y)){var P=i;i=a,a=P}mi(h,n-k,i-k,r+k,a+k)}}else if("bezier"===S||"unbundled-bezier"===S||"segments"===S||"taxi"===S){var L;switch(S){case"bezier":case"unbundled-bezier":L=v.bezierPts;break;case"segments":case"taxi":L=v.linePts}if(null!=L)for(var O=0;O(r=R.x)){var z=n;n=r,r=z}if((i=D.y)>(a=R.y)){var N=i;i=a,a=N}mi(h,n-=k,i-=k,r+=k,a+=k)}if(u&&e.includeEdges&&g&&(xi(h,t,"mid-source"),xi(h,t,"mid-target"),xi(h,t,"source"),xi(h,t,"target")),u&&"yes"===t.pstyle("ghost").value){var j=t.pstyle("ghost-offset-x").pfValue,F=t.pstyle("ghost-offset-y").pfValue;mi(h,h.x1+j,h.y1+F,h.x2+j,h.y2+F)}var B=d.bodyBounds=d.bodyBounds||{};xe(B,h),be(B,m),ye(B,1),u&&(n=h.x1,r=h.x2,i=h.y1,a=h.y2,mi(h,n-_,i-_,r+_,a+_));var U=d.overlayBounds=d.overlayBounds||{};xe(U,h),be(U,m),ye(U,1);var H=d.labelBounds=d.labelBounds||{};null!=H.all?((l=H.all).x1=1/0,l.y1=1/0,l.x2=-1/0,l.y2=-1/0,l.w=0,l.h=0):H.all=ve(),u&&e.includeLabels&&(e.includeMainLabels&&wi(h,t,null),g&&(e.includeSourceLabels&&wi(h,t,"source"),e.includeTargetLabels&&wi(h,t,"target")))}return h.x1=vi(h.x1),h.y1=vi(h.y1),h.x2=vi(h.x2),h.y2=vi(h.y2),h.w=vi(h.x2-h.x1),h.h=vi(h.y2-h.y1),h.w>0&&h.h>0&&b&&(be(h,m),ye(h,1)),h}(t,Mi),r.bbCache=n,r.bbCachePosKey=o):n=r.bbCache,!a){var u=t.isNode();n=ve(),(e.includeNodes&&u||e.includeEdges&&!u)&&(e.includeOverlays?yi(n,r.overlayBounds):yi(n,r.bodyBounds)),e.includeLabels&&(e.includeMainLabels&&(!i||e.includeSourceLabels&&e.includeTargetLabels)?yi(n,r.labelBounds.all):(e.includeMainLabels&&yi(n,r.labelBounds.mainRot),e.includeSourceLabels&&yi(n,r.labelBounds.sourceRot),e.includeTargetLabels&&yi(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},Mi={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},Ai=_i(Mi),Si=Dt(Mi);pi.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=ve();var n=Si(t=t||Mi),r=this;if(r.cy().styleEnabled())for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Hi,e=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},qi.removeAllListeners=function(){return this.removeListener("*")},qi.emit=qi.trigger=function(t,e,n){var r=this.listeners,i=r.length;return this.emitting++,P(e)||(e=[e]),Yi(this,(function(t,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)&&t.eventMatches(t.context,i,a)){var o=[a];null!=e&&function(t,e){for(var n=0;n1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[t]=a,n.set(o,{ele:a,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var e=this._private,n=t._private.data.id,r=e.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&E(t)){var n=t;t=e.mutableElements().filter(n)}for(var r=0;r=0;e--){t(this[e])&&this.unmergeAt(e)}return this},map:function(t,e){for(var n=[],r=this,i=0;ir&&(r=s,n=o)}return{value:r,ele:n}},min:function(t,e){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[t];return null!=i?i:e?r.style().getDefaultProperty(t):null}},numericStyle:function(t){var e=this[0];if(e.cy().styleEnabled()&&e){var n=e.pstyle(t);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(t){var e=this[0];if(e.cy().styleEnabled())return e?e.pstyle(t).units:void 0},renderedStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=this[0];return n?e.style().getRenderedStyle(n,t):void 0},style:function(t,e){var n=this.cy();if(!n.styleEnabled())return this;var r=n.style();if(L(t)){var i=t;r.applyBypass(this,i,false),this.emitAndNotify("style")}else if(E(t)){if(void 0===e){var a=this[0];return a?r.getStylePropertyValue(a,t):void 0}r.applyBypass(this,t,e,false),this.emitAndNotify("style")}else if(void 0===t){var o=this[0];return o?r.getRawStyle(o):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=e.style(),r=this;if(void 0===t)for(var i=0;i0&&e.push(u[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)}),"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}}),ma.neighbourhood=ma.neighborhood,ma.closedNeighbourhood=ma.closedNeighborhood,ma.openNeighbourhood=ma.openNeighborhood,Q(ma,{source:Qr((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:Qr((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:wa({attr:"source"}),targets:wa({attr:"target"})}),Q(ma,{edgesWith:Qr(_a(),"edgesWith"),edgesTo:Qr(_a({thisIsSrc:!0}),"edgesTo")}),Q(ma,{connectedEdges:Qr((function(t){for(var e=[],n=0;n0);return a},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),ma.componentsOf=ma.components;var Ta=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t){var i=new Ft,a=!1;if(e){if(e.length>0&&L(e[0])&&!R(e[0])){a=!0;for(var o=[],s=new Ut,l=0,c=e.length;l0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,a=i.cy(),o=a._private,s=[],l=[],c=0,u=i.length;c0){for(var z=t.length===i.length?i:new Ta(a,t),N=0;N0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},a=n._private.cy;function o(t){var n=i[t.id()];e&&t.removed()||n||(i[t.id()]=!0,t.isNode()?(r.push(t),function(t){for(var e=t._private.edges,n=0;n0&&(t?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var T=0;T=a?function(e,r){for(var a=0;a0?i=l:r=l}while(Math.abs(a)>o&&++cf&&Math.abs(s.v)>f;);return a?function(t){return c[t*(c.length-1)|0]}:u}}(),Ca=function(t,e,n,r){var i=Sa(t,e,n,r);return function(t,e,n){return t+(e-t)*i(n)}},Pa={linear:function(t,e,n){return t+(e-t)*n},ease:Ca(.25,.1,.25,1),"ease-in":Ca(.42,0,1,1),"ease-out":Ca(0,0,.58,1),"ease-in-out":Ca(.42,0,.58,1),"ease-in-sine":Ca(.47,0,.745,.715),"ease-out-sine":Ca(.39,.575,.565,1),"ease-in-out-sine":Ca(.445,.05,.55,.95),"ease-in-quad":Ca(.55,.085,.68,.53),"ease-out-quad":Ca(.25,.46,.45,.94),"ease-in-out-quad":Ca(.455,.03,.515,.955),"ease-in-cubic":Ca(.55,.055,.675,.19),"ease-out-cubic":Ca(.215,.61,.355,1),"ease-in-out-cubic":Ca(.645,.045,.355,1),"ease-in-quart":Ca(.895,.03,.685,.22),"ease-out-quart":Ca(.165,.84,.44,1),"ease-in-out-quart":Ca(.77,0,.175,1),"ease-in-quint":Ca(.755,.05,.855,.06),"ease-out-quint":Ca(.23,1,.32,1),"ease-in-out-quint":Ca(.86,0,.07,1),"ease-in-expo":Ca(.95,.05,.795,.035),"ease-out-expo":Ca(.19,1,.22,1),"ease-in-out-expo":Ca(1,0,0,1),"ease-in-circ":Ca(.6,.04,.98,.335),"ease-out-circ":Ca(.075,.82,.165,1),"ease-in-out-circ":Ca(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return Pa.linear;var r=Ea(t,e,n);return function(t,e,n){return t+(e-t)*r(n)}},"cubic-bezier":Ca};function La(t,e,n,r,i){if(1===r)return n;if(e===n)return n;var a=i(e,n,r);return null==t||((t.roundValue||t.color)&&(a=Math.round(a)),void 0!==t.min&&(a=Math.max(a,t.min)),void 0!==t.max&&(a=Math.min(a,t.max))),a}function Oa(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function Ia(t,e,n,r,i){var a=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var o=Oa(t,i),s=Oa(e,i);if(O(o)&&O(s))return La(a,o,s,n,r);if(P(o)&&P(s)){for(var l=[],c=0;c0?("spring"===f&&h.push(o.duration),o.easingImpl=Pa[f].apply(null,h)):o.easingImpl=Pa[f]}var d,p=o.easingImpl;if(d=0===o.duration?1:(n-l)/o.duration,o.applying&&(d=o.progress),d<0?d=0:d>1&&(d=1),null==o.delay){var g=o.startPosition,v=o.position;if(v&&i&&!t.locked()){var m={};Ra(g.x,v.x)&&(m.x=Ia(g.x,v.x,d,p)),Ra(g.y,v.y)&&(m.y=Ia(g.y,v.y,d,p)),t.position(m)}var y=o.startPan,b=o.pan,x=a.pan,w=null!=b&&r;w&&(Ra(y.x,b.x)&&(x.x=Ia(y.x,b.x,d,p)),Ra(y.y,b.y)&&(x.y=Ia(y.y,b.y,d,p)),t.emit("pan"));var _=o.startZoom,k=o.zoom,T=null!=k&&r;T&&(Ra(_,k)&&(a.zoom=ge(a.minZoom,Ia(_,k,d,p),a.maxZoom)),t.emit("zoom")),(w||T)&&t.emit("viewport");var M=o.style;if(M&&M.length>0&&i){for(var A=0;A=0;e--){(0,t[e])()}t.splice(0,t.length)},u=a.length-1;u>=0;u--){var f=a[u],h=f._private;h.stopped?(a.splice(u,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.frames)):(h.playing||h.applying)&&(h.playing&&h.applying&&(h.applying=!1),h.started||za(0,f,t),Da(e,f,t,n),h.applying&&(h.applying=!1),c(h.frames),null!=h.step&&h.step(t),f.completed()&&(a.splice(u,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.completes)),s=!0)}return n||0!==a.length||0!==o.length||r.push(e),s}for(var a=!1,o=0;o0?e.notify("draw",n):e.notify("draw")),n.unmerge(r),e.emit("step")}var ja={animate:ur.animate(),animation:ur.animation(),animated:ur.animated(),clearQueue:ur.clearQueue(),delay:ur.delay(),delayAnimation:ur.delayAnimation(),stop:ur.stop(),addToAnimationPool:function(t){this.styleEnabled()&&this._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,t.styleEnabled()){var e=t.renderer();e&&e.beforeRender?e.beforeRender((function(e,n){Na(n,t)}),e.beforeRenderPriorities.animations):function e(){t._private.animationsRunning&&st((function(n){Na(n,t),e()}))}()}}},Fa={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var r=e.qualifier;return null==r||t!==n.target&&R(n.target)&&r.matches(n.target)},addEventFields:function(t,e){e.cy=t,e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t}},Ba=function(t){return E(t)?new $r(t):t},Ua={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new Vi(Fa,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,Ba(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,Ba(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,Ba(e),n),this},once:function(t,e,n){return this.emitter().one(t,Ba(e),n),this},emit:function(t,e){return this.emitter().emit(t,e),this},emitAndNotify:function(t,e){return this.emit(t),this.notify(t,e),this}};ur.eventAliasesOn(Ua);var Ha={png:function(t){return t=t||{},this._private.renderer.png(t)},jpg:function(t){var e=this._private.renderer;return(t=t||{}).bg=t.bg||"#fff",e.jpg(t)}};Ha.jpeg=Ha.jpg;var Va={layout:function(t){var e=this;if(null!=t)if(null!=t.name){var n=t.name,r=e.extension("layout",n);if(null!=r){var i;i=E(t.eles)?e.$(t.eles):null!=t.eles?t.eles:e.$();var a=new r(Q({},t,{cy:e,eles:i}));return a}St("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?")}else St("A `name` must be specified to make a layout");else St("Layout options must be specified to make a layout")}};Va.createLayout=Va.makeLayout=Va.layout;var qa={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&r.merge(e)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(t,e)}},notifications:function(t){var e=this._private;return void 0===t?e.notificationsEnabled:(e.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return null==t.batchCount&&(t.batchCount=0),0===t.batchCount&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(0===t.batchCount)return this;if(t.batchCount--,0===t.batchCount){t.batchStyleEles.updateStyle();var e=this.renderer();Object.keys(t.batchNotifications).forEach((function(n){var r=t.batchNotifications[n];r.empty()?e.notify(n):e.notify(n,r)}))}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var e=this;return this.batch((function(){for(var n=Object.keys(t),r=0;r0;)e.removeChild(e.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach((function(t){var e=t._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]}))},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};Wa.invalidateDimensions=Wa.resize;var Ya={collection:function(t,e){return E(t)?this.$(t):D(t)?t.collection():P(t)?(e||(e={}),new Ta(this,t,e.unique,e.removed)):new Ta(this)},nodes:function(t){var e=this.$((function(t){return t.isNode()}));return t?e.filter(t):e},edges:function(t){var e=this.$((function(t){return t.isEdge()}));return t?e.filter(t):e},$:function(t){var e=this._private.elements;return t?e.filter(t):e.spawnSelf()},mutableElements:function(){return this._private.elements}};Ya.elements=Ya.filter=Ya.$;var $a={},Xa="t";$a.apply=function(t){for(var e=this,n=e._private.cy.collection(),r=0;r0;if(h||f&&d){var p=void 0;h&&d||h?p=c.properties:d&&(p=c.mappedProperties);for(var g=0;g1&&(v=1),s.color){var w=i.valueMin[0],_=i.valueMax[0],k=i.valueMin[1],T=i.valueMax[1],M=i.valueMin[2],A=i.valueMax[2],S=null==i.valueMin[3]?1:i.valueMin[3],E=null==i.valueMax[3]?1:i.valueMax[3],C=[Math.round(w+(_-w)*v),Math.round(k+(T-k)*v),Math.round(M+(A-M)*v),Math.round(S+(E-S)*v)];n={bypass:i.bypass,name:i.name,value:C,strValue:"rgb("+C[0]+", "+C[1]+", "+C[2]+")"}}else{if(!s.number)return!1;var P=i.valueMin+(i.valueMax-i.valueMin)*v;n=this.parse(i.name,P,i.bypass,h)}if(!n)return g(),!1;n.mapping=i,i=n;break;case o.data:for(var L=i.field.split("."),I=f.data,D=0;D0&&a>0){for(var s={},l=!1,c=0;c0?t.delayAnimation(o).play().promise().then(e):e()})).then((function(){return t.animation({style:s,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(t,i),t.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),r.transitioning=!1)},$a.checkTrigger=function(t,e,n,r,i,a){var o=this.properties[e],s=i(o);null!=s&&s(n,r)&&a(o)},$a.checkZOrderTrigger=function(t,e,n,r){var i=this;this.checkTrigger(t,e,n,r,(function(t){return t.triggersZOrder}),(function(){i._private.cy.notify("zorder",t)}))},$a.checkBoundsTrigger=function(t,e,n,r){this.checkTrigger(t,e,n,r,(function(t){return t.triggersBounds}),(function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),!i.triggersBoundsOfParallelBeziers||("curve-style"!==e||"bezier"!==n&&"bezier"!==r)&&("display"!==e||"none"!==n&&"none"!==r)||t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()}))}))},$a.checkTriggers=function(t,e,n,r){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,r),this.checkBoundsTrigger(t,e,n,r)};var Ka={applyBypass:function(t,e,n,r){var i=[];if("*"===e||"**"===e){if(void 0!==n)for(var a=0;ae.length?a.substr(e.length):""}function s(){n=n.length>r.length?n.substr(r.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");;){if(a.match(/^\s*$/))break;var l=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){Ct("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}e=l[0];var c=l[1];if("core"!==c)if(new $r(c).invalid){Ct("Skipping parsing of block: Invalid selector found in string stylesheet: "+c),o();continue}var u=l[2],f=!1;n=u;for(var h=[];;){if(n.match(/^\s*$/))break;var d=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!d){Ct("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+u),f=!0;break}r=d[0];var p=d[1],g=d[2];if(this.properties[p])i.parse(p,g)?(h.push({name:p,val:g}),s()):(Ct("Skipping property: Invalid property definition in: "+r),s());else Ct("Skipping property: Invalid property name in: "+r),s()}if(f){o();break}i.selector(c);for(var v=0;v=7&&"d"===e[0]&&(c=new RegExp(s.data.regex).exec(e))){if(n)return!1;var h=s.data;return{name:t,value:c,strValue:""+e,mapped:h,field:c[1],bypass:n}}if(e.length>=10&&"m"===e[0]&&(u=new RegExp(s.mapData.regex).exec(e))){if(n)return!1;if(f.multiple)return!1;var d=s.mapData;if(!f.color&&!f.number)return!1;var p=this.parse(t,u[4]);if(!p||p.mapped)return!1;var g=this.parse(t,u[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return Ct("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+p.strValue+"`"),this.parse(t,p.strValue);if(f.color){var v=p.value,m=g.value;if(v[0]===m[0]&&v[1]===m[1]&&v[2]===m[2]&&(v[3]===m[3]||(null==v[3]||1===v[3])&&(null==m[3]||1===m[3])))return!1}return{name:t,value:u,strValue:""+e,mapped:d,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:p.value,valueMax:g.value,bypass:n}}}if(f.multiple&&"multiple"!==r){var y;if(y=l?e.split(/\s+/):P(e)?e:[e],f.evenMultiple&&y.length%2!==0)return null;for(var b=[],x=[],w=[],_="",k=!1,T=0;T0?" ":"")+M.strValue}return f.validate&&!f.validate(b,x)?null:f.singleEnum&&k?1===b.length&&E(b[0])?{name:t,value:b[0],strValue:b[0],bypass:n}:null:{name:t,value:b,pfValue:w,strValue:_,bypass:n,units:x}}var A,S,L=function(){for(var r=0;rf.max||f.strictMax&&e===f.max))return null;var N={name:t,value:e,strValue:""+e+(I||""),units:I,bypass:n};return f.unitless||"px"!==I&&"em"!==I?N.pfValue=e:N.pfValue="px"!==I&&I?this.getEmSizeInPixels()*e:e,"ms"!==I&&"s"!==I||(N.pfValue="ms"===I?e:1e3*e),"deg"!==I&&"rad"!==I||(N.pfValue="rad"===I?e:(A=e,Math.PI*A/180)),"%"===I&&(N.pfValue=e/100),N}if(f.propList){var j=[],F=""+e;if("none"===F);else{for(var B=F.split(/\s*,\s*|\s+/),U=0;U0&&l>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:o=(o=(o=Math.min((s-2*e)/n.w,(l-2*e)/n.h))>this._private.maxZoom?this._private.maxZoom:o)=n.minZoom&&(n.maxZoom=e),this},minZoom:function(t){return void 0===t?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return void 0===t?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var e,n,r=this._private,i=r.pan,a=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),O(t)?n=t:L(t)&&(n=t.level,null!=t.position?e=ie(t.position,a,i):null!=t.renderedPosition&&(e=t.renderedPosition),null==e||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)e.maxZoom||!e.zoomingEnabled?a=!0:(e.zoom=s,i.push("zoom"))}if(r&&(!a||!t.cancelOnFailedZoom)&&e.panningEnabled){var l=t.pan;O(l.x)&&(e.pan.x=l.x,o=!1),O(l.y)&&(e.pan.y=l.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(t){var e=this.getCenterPan(t);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,e){if(this._private.panningEnabled){if(E(t)){var n=t;t=this.mutableElements().filter(n)}else D(t)||(t=this.mutableElements());if(0!==t.length){var r=t.boundingBox(),i=this.width(),a=this.height();return{x:(i-(e=void 0===e?this._private.zoom:e)*(r.x1+r.x2))/2,y:(a-e*(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 t=this._private,e=t.container;return t.sizeCache=t.sizeCache||(e?function(){var t=w.getComputedStyle(e),n=function(e){return parseFloat(t.getPropertyValue(e))};return{width:e.clientWidth-n("padding-left")-n("padding-right"),height:e.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 t=this._private.pan,e=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-t.x)/e,x2:(n.x2-t.x)/e,y1:(n.y1-t.y)/e,y2:(n.y2-t.y)/e};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var t=this.width(),e=this.height();return{x1:0,y1:0,x2:t,y2:e,w:t,h:e}},multiClickDebounceTime:function(t){return t?(this._private.multiClickDebounceTime=t,this):this._private.multiClickDebounceTime}};oo.centre=oo.center,oo.autolockNodes=oo.autolock,oo.autoungrabifyNodes=oo.autoungrabify;var so={data:ur.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ur.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ur.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ur.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};so.attr=so.data,so.removeAttr=so.removeData;var lo=function(t){var e=this,n=(t=Q({},t)).container;n&&!I(n)&&I(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=e;var a=void 0!==w&&void 0!==n&&!t.headless,o=t;o.layout=Q({name:a?"grid":"null"},o.layout),o.renderer=Q({name:a?"canvas":"null"},o.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},l=this._private={container:n,ready:!1,options:o,elements:new Ta(this),listeners:[],aniEles:new Ta(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:O(o.zoom)?o.zoom:1,pan:{x:L(o.pan)&&O(o.pan.x)?o.pan.x:0,y:L(o.pan)&&O(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});l.styleEnabled&&e.setStyle([]);var c=Q({},o,o.renderer);e.initRenderer(c);!function(t,e){if(t.some(B))return ir.all(t).then(e);e(t)}([o.style,o.elements],(function(t){var n=t[0],a=t[1];l.styleEnabled&&e.style().append(n),function(t,n,r){e.notifications(!1);var i=e.mutableElements();i.length>0&&i.remove(),null!=t&&(L(t)||P(t))&&e.add(t),e.one("layoutready",(function(t){e.notifications(!0),e.emit(t),e.one("load",n),e.emitAndNotify("load")})).one("layoutstop",(function(){e.one("done",r),e.emit("done")}));var a=Q({},e._private.options.layout);a.eles=e.elements(),e.layout(a).run()}(a,(function(){e.startAnimationLoop(),l.ready=!0,C(o.ready)&&e.on("ready",o.ready);for(var t=0;t0,c=ve(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(D(n.roots))t=n.roots;else if(P(n.roots)){for(var u=[],f=0;f0;){var L=A.shift(),O=M(L,S);if(O)L.outgoers().filter((function(t){return t.isNode()&&i.has(t)})).forEach(C);else if(null===O){Ct("Detected double maximal shift for node `"+L.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}T();var I=0;if(n.avoidOverlap)for(var R=0;R0&&m[0].length<=3?l/2:0),f=2*Math.PI/m[r].length*i;return 0===r&&1===m[0].length&&(u=1),{x:Y+u*Math.cos(f),y:$+u*Math.sin(f)}}return{x:Y+(i+1-(a+1)/2)*o,y:(r+1)*s}})),this};var go={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(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function vo(t){this.options=Q({},go,t)}vo.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles,i=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=r.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o,s=ve(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l=s.x1+s.w/2,c=s.y1+s.h/2,u=(void 0===e.sweep?2*Math.PI-2*Math.PI/a.length:e.sweep)/Math.max(1,a.length-1),f=0,h=0;h1&&e.avoidOverlap){f*=1.75;var v=Math.cos(u)-Math.cos(0),m=Math.sin(u)-Math.sin(0),y=Math.sqrt(f*f/(v*v+m*m));o=Math.max(y,o)}return r.nodes().layoutPositions(this,e,(function(t,n){var r=e.startAngle+n*u*(i?1:-1),a=o*Math.cos(r),s=o*Math.sin(r);return{x:l+a,y:c+s}})),this};var mo,yo={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(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function bo(t){this.options=Q({},yo,t)}bo.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,r=t.cy,i=e.eles,a=i.nodes().not(":parent"),o=ve(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s=o.x1+o.w/2,l=o.y1+o.h/2,c=[],u=0,f=0;f0)Math.abs(y[0].value-x.value)>=v&&(y=[],m.push(y));y.push(x)}var w=u+e.minNodeSpacing;if(!e.avoidOverlap){var _=m.length>0&&m[0].length>1,k=(Math.min(o.w,o.h)/2-w)/(m.length+_?1:0);w=Math.min(w,k)}for(var T=0,M=0;M1&&e.avoidOverlap){var C=Math.cos(E)-Math.cos(0),P=Math.sin(E)-Math.sin(0),L=Math.sqrt(w*w/(C*C+P*P));T=Math.max(L,T)}A.r=T,T+=w}if(e.equidistant){for(var O=0,I=0,D=0;D=t.numIter)&&(Eo(r,t),r.temperature=r.temperature*t.coolingFactor,!(r.temperature=t.animationThreshold&&a(),st(e)):(Bo(r,t),s())}()}else{for(;c;)c=o(l),l++;Bo(r,t),s()}return this},wo.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},wo.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var _o=function(t,e,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:t.width(),clientHeight:t.width(),boundingBox:ve(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()})},o=n.eles.components(),s={},l=0;l0){a.graphSet.push(x);for(l=0;lr.count?0:r.graph},To=function t(e,n,r,i){var a=i.graphSet[r];if(-10)var s=(c=r.nodeOverlap*o)*i/(g=Math.sqrt(i*i+a*a)),l=c*a/g;else{var c,u=Io(t,i,a),f=Io(e,-1*i,-1*a),h=f.x-u.x,d=f.y-u.y,p=h*h+d*d,g=Math.sqrt(p);s=(c=(t.nodeRepulsion+e.nodeRepulsion)/p)*h/g,l=c*d/g}t.isLocked||(t.offsetX-=s,t.offsetY-=l),e.isLocked||(e.offsetX+=s,e.offsetY+=l)}},Oo=function(t,e,n,r){if(n>0)var i=t.maxX-e.minX;else i=e.maxX-t.minX;if(r>0)var a=t.maxY-e.minY;else a=e.maxY-t.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},Io=function(t,e,n){var r=t.positionX,i=t.positionY,a=t.height||1,o=t.width||1,s=n/e,l=a/o,c={};return 0===e&&0n?(c.x=r,c.y=i+a/2,c):0e&&-1*l<=s&&s<=l?(c.x=r-o/2,c.y=i-o*n/2/e,c):0=l)?(c.x=r+a*e/2/n,c.y=i+a/2,c):0>n&&(s<=-1*l||s>=l)?(c.x=r-a*e/2/n,c.y=i-a/2,c):c},Do=function(t,e){for(var n=0;n1){var p=e.gravity*f/d,g=e.gravity*h/d;u.offsetX+=p,u.offsetY+=g}}}}},zo=function(t,e){var n=[],r=0,i=-1;for(n.push.apply(n,t.graphSet[0]),i+=t.graphSet[0].length;r<=i;){var a=n[r++],o=t.idToIndex[a],s=t.layoutNodes[o],l=s.children;if(0n)var i={x:n*t/r,y:n*e/r};else i={x:t,y:e};return i},Fo=function t(e,n){var r=e.parentId;if(null!=r){var i=n.layoutNodes[n.idToIndex[r]],a=!1;return(null==i.maxX||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(null==i.minX||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(null==i.minY||e.minY-i.padTopp&&(f+=d+e.componentSpacing,u=0,h=0,d=0)}}},Uo={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(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Ho(t){this.options=Q({},Uo,t)}Ho.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles,i=r.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=ve(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)r.nodes().layoutPositions(this,e,(function(t){return{x:a.x1,y:a.y1}}));else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),c=Math.round(a.w/a.h*s),u=function(t){if(null==t)return Math.min(l,c);Math.min(l,c)==l?l=t:c=t},f=function(t){if(null==t)return Math.max(l,c);Math.max(l,c)==l?l=t:c=t},h=e.rows,d=null!=e.cols?e.cols:e.columns;if(null!=h&&null!=d)l=h,c=d;else if(null!=h&&null==d)l=h,c=Math.ceil(o/l);else if(null==h&&null!=d)c=d,l=Math.ceil(o/c);else if(c*l>o){var p=u(),g=f();(p-1)*g>=o?u(p-1):(g-1)*p>=o&&f(g-1)}else for(;c*l=o?f(m+1):u(v+1)}var y=a.w/c,b=a.h/l;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var x=0;x=c&&(L=0,P++)},I={},D=0;D(r=Ee(t,e,x[w],x[w+1],x[w+2],x[w+3])))return v(n,r),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(x=a.allpts,w=0;w+5(r=Se(t,e,x[w],x[w+1],x[w+2],x[w+3],x[w+4],x[w+5])))return v(n,r),!0;y=y||i.source,b=b||i.target;var _=o.getArrowWidth(l,u),k=[{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(w=0;w0&&(m(y),m(b))}function b(t,e,n){return Nt(t,e,n)}function x(n,r){var i,a=n._private,o=p;i=r?r+"-":"",n.boundingBox();var s=a.labelBounds[r||"main"],l=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&l){var c=b(a.rscratch,"labelX",r),u=b(a.rscratch,"labelY",r),f=b(a.rscratch,"labelAngle",r),h=n.pstyle(i+"text-margin-x").pfValue,d=n.pstyle(i+"text-margin-y").pfValue,g=s.x1-o-h,m=s.x2+o-h,y=s.y1-o-d,x=s.y2+o-d;if(f){var w=Math.cos(f),_=Math.sin(f),k=function(t,e){return{x:(t-=c)*w-(e-=u)*_+c,y:t*_+e*w+u}},T=k(g,y),M=k(g,x),A=k(m,y),S=k(m,x),E=[T.x+h,T.y+d,A.x+h,A.y+d,S.x+h,S.y+d,M.x+h,M.y+d];if(Ce(t,e,E))return v(n),!0}else if(_e(s,t,e))return v(n),!0}}n&&(l=l.interactive);for(var w=l.length-1;w>=0;w--){var _=l[w];_.isNode()?m(_)||x(_):y(_)||x(_)||x(_,"source")||x(_,"target")}return c},getAllInBox:function(t,e,n,r){for(var i,a,o=this.getCachedZSortedEles().interactive,s=[],l=Math.min(t,n),c=Math.max(t,n),u=Math.min(e,r),f=Math.max(e,r),h=ve({x1:t=l,y1:e=u,x2:n=c,y2:r=f}),d=0;d0?Math.max(t-e,0):Math.min(t+e,0)},S=A(T,_),E=A(M,k),C=!1;"auto"===v?g=Math.abs(S)>Math.abs(E)?i:r:v===l||v===s?(g=r,C=!0):v!==a&&v!==o||(g=i,C=!0);var P,L=g===r,O=L?E:S,I=L?M:T,D=ce(I),R=!1;(C&&(y||x)||!(v===s&&I<0||v===l&&I>0||v===a&&I>0||v===o&&I<0)||(O=(D*=-1)*Math.abs(O),R=!0),y)?P=(b<0?1+b:b)*O:P=(b<0?O:0)+b*D;var z=function(t){return Math.abs(t)=Math.abs(O)},N=z(P),j=z(Math.abs(O)-Math.abs(P));if((N||j)&&!R)if(L){var F=Math.abs(I)<=f/2,B=Math.abs(T)<=h/2;if(F){var U=(c.x1+c.x2)/2,H=c.y1,V=c.y2;n.segpts=[U,H,U,V]}else if(B){var q=(c.y1+c.y2)/2,G=c.x1,W=c.x2;n.segpts=[G,q,W,q]}else n.segpts=[c.x1,c.y2]}else{var Y=Math.abs(I)<=u/2,$=Math.abs(M)<=d/2;if(Y){var X=(c.y1+c.y2)/2,K=c.x1,Z=c.x2;n.segpts=[K,X,Z,X]}else if($){var J=(c.x1+c.x2)/2,Q=c.y1,tt=c.y2;n.segpts=[J,Q,J,tt]}else n.segpts=[c.x2,c.y1]}else if(L){var et=c.y1+P+(p?f/2*D:0),nt=c.x1,rt=c.x2;n.segpts=[nt,et,rt,et]}else{var it=c.x1+P+(p?u/2*D:0),at=c.y1,ot=c.y2;n.segpts=[it,at,it,ot]}},ns.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var r=e.srcPos,i=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,l=e.tgtH,c=e.srcShape,u=e.tgtShape,f=!O(n.startX)||!O(n.startY),h=!O(n.arrowStartX)||!O(n.arrowStartY),d=!O(n.endX)||!O(n.endY),p=!O(n.arrowEndX)||!O(n.arrowEndY),g=3*(this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth),v=ue({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),m=vh.poolIndex()){var d=f;f=h,h=d}var p=s.srcPos=f.position(),g=s.tgtPos=h.position(),v=s.srcW=f.outerWidth(),m=s.srcH=f.outerHeight(),y=s.tgtW=h.outerWidth(),b=s.tgtH=h.outerHeight(),x=s.srcShape=n.nodeShapes[e.getNodeShape(f)],w=s.tgtShape=n.nodeShapes[e.getNodeShape(h)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_0){var H=c,V=fe(H,oe(e)),q=fe(H,oe(U)),G=V;if(q2)fe(H,{x:U[2],y:U[3]})0){var it=u,at=fe(it,oe(e)),ot=fe(it,oe(rt)),st=at;if(ot2)fe(it,{x:rt[2],y:rt[3]})=c||y){u={cp:g,segment:m};break}}if(u)break}var b=u.cp,x=u.segment,w=(c-h)/x.length,_=x.t1-x.t0,k=s?x.t0+_*w:x.t1-_*w;k=ge(0,k,1),e=pe(b.p0,b.p1,b.p2,k),i=function(t,e,n,r){var i=ge(0,r-.001,1),a=ge(0,r+.001,1),o=pe(t,e,n,i),s=pe(t,e,n,a);return cs(o,s)}(b.p0,b.p1,b.p2,k);break;case"straight":case"segments":case"haystack":for(var T,M,A,S,E=0,C=r.allpts.length,P=0;P+3=c));P+=2);var L=(c-M)/T;L=ge(0,L,1),e=function(t,e,n,r){var i=e.x-t.x,a=e.y-t.y,o=ue(t,e),s=i/o,l=a/o;return n=null==n?0:n,r=null!=r?r:n*o,{x:t.x+s*r,y:t.y+l*r}}(A,S,L),i=cs(A,S)}o("labelX",n,e.x),o("labelY",n,e.y),o("labelAutoAngle",n,i)}};c("source"),c("target"),this.applyLabelDimensions(t)}},ss.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},ss.applyPrefixedLabelDimensions=function(t,e){var n=t._private,r=this.getLabelText(t,e),i=this.calculateLabelDimensions(t,r),a=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=Nt(n.rscratch,"labelWrapCachedLines",e)||[],l="wrap"!==o?1:Math.max(s.length,1),c=i.height/l,u=c*a,f=i.width,h=i.height+(l-1)*(a-1)*c;jt(n.rstyle,"labelWidth",e,f),jt(n.rscratch,"labelWidth",e,f),jt(n.rstyle,"labelHeight",e,h),jt(n.rscratch,"labelHeight",e,h),jt(n.rscratch,"labelLineHeight",e,u)},ss.getLabelText=function(t,e){var n=t._private,r=e?e+"-":"",i=t.pstyle(r+"label").strValue,a=t.pstyle("text-transform").value,o=function(t,r){return r?(jt(n.rscratch,t,e,r),r):Nt(n.rscratch,t,e)};if(!i)return"";"none"==a||("uppercase"==a?i=i.toUpperCase():"lowercase"==a&&(i=i.toLowerCase()));var s=t.pstyle("text-wrap").value;if("wrap"===s){var l=o("labelKey");if(null!=l&&o("labelWrapKey")===l)return o("labelWrapCachedText");for(var c=i.split("\n"),u=t.pstyle("text-max-width").pfValue,f="anywhere"===t.pstyle("text-overflow-wrap").value,h=[],d=/[\s\u200b]+/,p=f?"":" ",g=0;gu){for(var b=v.split(d),x="",w=0;wT)break;M+=i[S],S===i.length-1&&(A=!0)}return A||(M+="\u2026"),M}return i},ss.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,n=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},ss.calculateLabelDimensions=function(t,e){var n=vt(e,t._private.labelDimsKey),r=this.labelDimCache||(this.labelDimCache=[]),i=r[n];if(null!=i)return i;var a=t.pstyle("font-style").strValue,o=t.pstyle("font-size").pfValue,s=t.pstyle("font-family").strValue,l=t.pstyle("font-weight").strValue,c=this.labelCalcCanvas,u=this.labelCalcCanvasContext;if(!c){c=this.labelCalcCanvas=document.createElement("canvas"),u=this.labelCalcCanvasContext=c.getContext("2d");var f=c.style;f.position="absolute",f.left="-9999px",f.top="-9999px",f.zIndex="-1",f.visibility="hidden",f.pointerEvents="none"}u.font="".concat(a," ").concat(l," ").concat(o,"px ").concat(s);for(var h=0,d=0,p=e.split("\n"),g=0;g1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var r=0;r=t.desktopTapThreshold2}var A=r(e);v&&(t.hoverData.tapholdCancelled=!0);a=!0,n(g,["mousemove","vmousemove","tapdrag"],e,{x:u[0],y:u[1]});var S=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:u[0],y:u[1]}}),p[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(v){var E={originalEvent:e,type:"cxtdrag",position:{x:u[0],y:u[1]}};y?y.emit(E):o.emit(E),t.hoverData.cxtDragged=!0,t.hoverData.cxtOver&&g===t.hoverData.cxtOver||(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:u[0],y:u[1]}}),t.hoverData.cxtOver=g,g&&g.emit({originalEvent:e,type:"cxtdragover",position:{x:u[0],y:u[1]}}))}}else if(t.hoverData.dragging){if(a=!0,o.panningEnabled()&&o.userPanningEnabled()){var C;if(t.hoverData.justStartedPan){var P=t.hoverData.mdownPos;C={x:(u[0]-P[0])*s,y:(u[1]-P[1])*s},t.hoverData.justStartedPan=!1}else C={x:b[0]*s,y:b[1]*s};o.panBy(C),o.emit("dragpan"),t.hoverData.dragged=!0}u=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=p[4]||null!=y&&!y.pannable()){if(y&&y.pannable()&&y.active()&&y.unactivate(),y&&y.grabbed()||g==m||(m&&n(m,["mouseout","tapdragout"],e,{x:u[0],y:u[1]}),g&&n(g,["mouseover","tapdragover"],e,{x:u[0],y:u[1]}),t.hoverData.last=g),y)if(v){if(o.boxSelectionEnabled()&&A)y&&y.grabbed()&&(f(x),y.emit("freeon"),x.emit("free"),t.dragData.didDrag&&(y.emit("dragfreeon"),x.emit("dragfree"))),S();else if(y&&y.grabbed()&&t.nodeIsDraggable(y)){var L=!t.dragData.didDrag;L&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||l(x,{inDragLayer:!0});var I={x:0,y:0};if(O(b[0])&&O(b[1])&&(I.x+=b[0],I.y+=b[1],L)){var D=t.hoverData.dragDelta;D&&O(D[0])&&O(D[1])&&(I.x+=D[0],I.y+=D[1])}t.hoverData.draggingEles=!0,x.silentShift(I).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else!function(){var e=t.hoverData.dragDelta=t.hoverData.dragDelta||[];0===e.length?(e.push(b[0]),e.push(b[1])):(e[0]+=b[0],e[1]+=b[1])}();a=!0}else if(v){if(t.hoverData.dragging||!o.boxSelectionEnabled()||!A&&o.panningEnabled()&&o.userPanningEnabled()){if(!t.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()){i(y,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,p[4]=0,t.data.bgActivePosistion=oe(h),t.redrawHint("select",!0),t.redraw())}}else S();y&&y.pannable()&&y.active()&&y.unactivate()}return p[2]=u[0],p[3]=u[1],a?(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1):void 0}}),!1),t.registerBinding(window,"mouseup",(function(i){if(t.hoverData.capture){t.hoverData.capture=!1;var a=t.cy,o=t.projectIntoViewport(i.clientX,i.clientY),s=t.selection,l=t.findNearestElement(o[0],o[1],!0,!1),c=t.dragData.possibleDragElements,u=t.hoverData.down,h=r(i);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,u&&u.unactivate(),3===t.hoverData.which){var d={originalEvent:i,type:"cxttapend",position:{x:o[0],y:o[1]}};if(u?u.emit(d):a.emit(d),!t.hoverData.cxtDragged){var p={originalEvent:i,type:"cxttap",position:{x:o[0],y:o[1]}};u?u.emit(p):a.emit(p)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(n(l,["mouseup","tapend","vmouseup"],i,{x:o[0],y:o[1]}),t.dragData.didDrag||t.hoverData.dragged||t.hoverData.selecting||t.hoverData.isOverThresholdDrag||(n(u,["click","tap","vclick"],i,{x:o[0],y:o[1]}),b=!1,i.timeStamp-x<=a.multiClickDebounceTime()?(y&&clearTimeout(y),b=!0,x=null,n(u,["dblclick","dbltap","vdblclick"],i,{x:o[0],y:o[1]})):(y=setTimeout((function(){b||n(u,["oneclick","onetap","voneclick"],i,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),x=i.timeStamp)),null!=u||t.dragData.didDrag||t.hoverData.selecting||t.hoverData.dragged||r(i)||(a.$(e).unselect(["tapunselect"]),c.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=c=a.collection()),l!=u||t.dragData.didDrag||t.hoverData.selecting||null!=l&&l._private.selectable&&(t.hoverData.dragging||("additive"===a.selectionType()||h?l.selected()?l.unselect(["tapunselect"]):l.select(["tapselect"]):h||(a.$(e).unmerge(l).unselect(["tapunselect"]),l.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var g=a.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),g.length>0&&t.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:i,position:{x:o[0],y:o[1]}});var v=function(t){return t.selectable()&&!t.selected()};"additive"===a.selectionType()||h||a.$(e).unmerge(g).unselect(),g.emit("box").stdFilter(v).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!s[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var m=u&&u.grabbed();f(c),m&&(u.emit("freeon"),c.emit("free"),t.dragData.didDrag&&(u.emit("dragfreeon"),c.emit("dragfree")))}}s[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}}),!1);var _,k,T,M,A,S,E,C,P,L,I,D,R,z=function(e){if(!t.scrollingPage){var n=t.cy,r=n.zoom(),i=n.pan(),a=t.projectIntoViewport(e.clientX,e.clientY),o=[a[0]*r+i.x,a[1]*r+i.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])e.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;e.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout((function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()}),150),s=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,s*=t.wheelSensitivity,1===e.deltaMode&&(s*=33);var l=n.zoom()*Math.pow(10,s);"gesturechange"===e.type&&(l=t.gestureStartZoom*e.scale),n.zoom({level:l,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===e.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",z,!0),t.registerBinding(window,"scroll",(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout((function(){t.scrollingPage=!1}),250)}),!0),t.registerBinding(t.container,"gesturestart",(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()}),!0),t.registerBinding(t.container,"gesturechange",(function(e){t.hasTouchStarted||z(e)}),!0),t.registerBinding(t.container,"mouseout",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),t.registerBinding(t.container,"mouseover",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var N,j,F,B,U,H,V,q=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},G=function(t,e,n,r){return(n-t)*(n-t)+(r-e)*(r-e)};if(t.registerBinding(t.container,"touchstart",N=function(e){if(t.hasTouchStarted=!0,w(e)){d(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var r=t.cy,i=t.touchData.now,a=t.touchData.earlier;if(e.touches[0]){var s=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);i[0]=s[0],i[1]=s[1]}if(e.touches[1]){s=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);i[2]=s[0],i[3]=s[1]}if(e.touches[2]){s=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);i[4]=s[0],i[5]=s[1]}if(e.touches[1]){t.touchData.singleTouchMoved=!0,f(t.dragData.touchDragEles);var c=t.findContainerClientCoords();P=c[0],L=c[1],I=c[2],D=c[3],_=e.touches[0].clientX-P,k=e.touches[0].clientY-L,T=e.touches[1].clientX-P,M=e.touches[1].clientY-L,R=0<=_&&_<=I&&0<=T&&T<=I&&0<=k&&k<=D&&0<=M&&M<=D;var h=r.pan(),p=r.zoom();A=q(_,k,T,M),S=G(_,k,T,M),C=[((E=[(_+T)/2,(k+M)/2])[0]-h.x)/p,(E[1]-h.y)/p];if(S<4e4&&!e.touches[2]){var g=t.findNearestElement(i[0],i[1],!0,!0),v=t.findNearestElement(i[2],i[3],!0,!0);return g&&g.isNode()?(g.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=g):v&&v.isNode()?(v.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=v):r.emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(e.touches[2])r.boxSelectionEnabled()&&e.preventDefault();else if(e.touches[1]);else if(e.touches[0]){var m=t.findNearestElements(i[0],i[1],!0,!0),y=m[0];if(null!=y&&(y.activate(),t.touchData.start=y,t.touchData.starts=m,t.nodeIsGrabbable(y))){var b=t.dragData.touchDragEles=r.collection(),x=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),y.selected()?(x=r.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),l(x,{addToList:b})):u(y,{addToList:b}),o(y);var O=function(t){return{originalEvent:e,type:t,position:{x:i[0],y:i[1]}}};y.emit(O("grabon")),x?x.forEach((function(t){t.emit(O("grab"))})):y.emit(O("grab"))}n(y,["touchstart","tapstart","vmousedown"],e,{x:i[0],y:i[1]}),null==y&&(t.data.bgActivePosistion={x:s[0],y:s[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout((function(){!1!==t.touchData.singleTouchMoved||t.pinching||t.touchData.selecting||n(t.touchData.start,["taphold"],e,{x:i[0],y:i[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var z=t.touchData.startPosition=[],N=0;N=t.touchTapThreshold2}if(r&&t.touchData.cxt){e.preventDefault();var x=e.touches[0].clientX-P,E=e.touches[0].clientY-L,I=e.touches[1].clientX-P,D=e.touches[1].clientY-L,z=G(x,E,I,D);if(z/S>=2.25||z>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var N={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(N),t.touchData.start=null):o.emit(N)}}if(r&&t.touchData.cxt){N={originalEvent:e,type:"cxtdrag",position:{x:s[0],y:s[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(N):o.emit(N),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var j=t.findNearestElement(s[0],s[1],!0,!0);t.touchData.cxtOver&&j===t.touchData.cxtOver||(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=j,j&&j.emit({originalEvent:e,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(r&&e.touches[2]&&o.boxSelectionEnabled())e.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:s[0],y:s[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,a[4]=1,a&&0!==a.length&&void 0!==a[0]?(a[2]=(s[0]+s[2]+s[4])/3,a[3]=(s[1]+s[3]+s[5])/3):(a[0]=(s[0]+s[2]+s[4])/3,a[1]=(s[1]+s[3]+s[5])/3,a[2]=(s[0]+s[2]+s[4])/3+1,a[3]=(s[1]+s[3]+s[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(r&&e.touches[1]&&!t.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(e.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),tt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var F=0;F0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(window,"touchcancel",F=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(window,"touchend",B=function(r){var i=t.touchData.start;if(t.touchData.capture){0===r.touches.length&&(t.touchData.capture=!1),r.preventDefault();var a=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var o,s=t.cy,l=s.zoom(),c=t.touchData.now,u=t.touchData.earlier;if(r.touches[0]){var h=t.projectIntoViewport(r.touches[0].clientX,r.touches[0].clientY);c[0]=h[0],c[1]=h[1]}if(r.touches[1]){h=t.projectIntoViewport(r.touches[1].clientX,r.touches[1].clientY);c[2]=h[0],c[3]=h[1]}if(r.touches[2]){h=t.projectIntoViewport(r.touches[2].clientX,r.touches[2].clientY);c[4]=h[0],c[5]=h[1]}if(i&&i.unactivate(),t.touchData.cxt){if(o={originalEvent:r,type:"cxttapend",position:{x:c[0],y:c[1]}},i?i.emit(o):s.emit(o),!t.touchData.cxtDragged){var d={originalEvent:r,type:"cxttap",position:{x:c[0],y:c[1]}};i?i.emit(d):s.emit(d)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!r.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var p=s.collection(t.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,t.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:r,position:{x:c[0],y:c[1]}});p.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),p.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=i&&i.unactivate(),r.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(r.touches[1]);else if(r.touches[0]);else if(!r.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var g=t.dragData.touchDragEles;if(null!=i){var v=i._private.grabbed;f(g),t.redrawHint("drag",!0),t.redrawHint("eles",!0),v&&(i.emit("freeon"),g.emit("free"),t.dragData.didDrag&&(i.emit("dragfreeon"),g.emit("dragfree"))),n(i,["touchend","tapend","vmouseup","tapdragout"],r,{x:c[0],y:c[1]}),i.unactivate(),t.touchData.start=null}else{var m=t.findNearestElement(c[0],c[1],!0,!0);n(m,["touchend","tapend","vmouseup","tapdragout"],r,{x:c[0],y:c[1]})}var y=t.touchData.startPosition[0]-c[0],b=y*y,x=t.touchData.startPosition[1]-c[1],w=(b+x*x)*l*l;t.touchData.singleTouchMoved||(i||s.$(":selected").unselect(["tapunselect"]),n(i,["tap","vclick"],r,{x:c[0],y:c[1]}),U=!1,r.timeStamp-V<=s.multiClickDebounceTime()?(H&&clearTimeout(H),U=!0,V=null,n(i,["dbltap","vdblclick"],r,{x:c[0],y:c[1]})):(H=setTimeout((function(){U||n(i,["onetap","voneclick"],r,{x:c[0],y:c[1]})}),s.multiClickDebounceTime()),V=r.timeStamp)),null!=i&&!t.dragData.didDrag&&i._private.selectable&&w2){for(var E=[c[0],c[1]],C=Math.pow(E[0]-t,2)+Math.pow(E[1]-e,2),P=1;P0)return g[0]}return null},h=Object.keys(u),d=0;d0?l:Te(i,a,t,e,n,r,o)},checkPoint:function(t,e,n,r,i,a,o){var s=He(r,i),l=2*s;if(Pe(t,e,this.points,a,o,r,i-l,[0,-1],n))return!0;if(Pe(t,e,this.points,a,o,r-l,i,[0,-1],n))return!0;var c=r/2+2*n,u=i/2+2*n;return!!Ce(t,e,[a-c,o-u,a-c,o,a+c,o,a+c,o-u])||(!!Ie(t,e,l,l,a+r/2-s,o+i/2-s,n)||!!Ie(t,e,l,l,a-r/2+s,o+i/2-s,n))}}},ms.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Fe(3,0)),this.generateRoundPolygon("round-triangle",Fe(3,0)),this.generatePolygon("rectangle",Fe(4,0)),t.square=t.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",Fe(5,0)),this.generateRoundPolygon("round-pentagon",Fe(5,0)),this.generatePolygon("hexagon",Fe(6,0)),this.generateRoundPolygon("round-hexagon",Fe(6,0)),this.generatePolygon("heptagon",Fe(7,0)),this.generateRoundPolygon("round-heptagon",Fe(7,0)),this.generatePolygon("octagon",Fe(8,0)),this.generateRoundPolygon("round-octagon",Fe(8,0));var r=new Array(20),i=Ue(5,0),a=Ue(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=t.deqFastCost*g)break}else if(i){if(d>=t.deqCost*l||d>=t.deqAvgCost*s)break}else if(p>=t.deqNoDrawCost*_s)break;var v=t.deq(e,f,u);if(!(v.length>0))break;for(var m=0;m0&&(t.onDeqd(e,c),!i&&t.shouldRedraw(e,c,f,u)&&r())}),i(e))}}},Ts=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt;g(this,t),this.idsByKey=new Ft,this.keyForId=new Ft,this.cachesByLvl=new Ft,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=n}return m(t,[{key:"getIdsFor",value:function(t){null==t&&St("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new Ut,e.set(t,n)),n}},{key:"addIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).add(e)}},{key:"deleteIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).delete(e)}},{key:"getNumberOfIdsForKey",value:function(t){return null==t?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e),r=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(r,e),this.keyForId.set(e,r)}},{key:"deleteKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteIdForKey(n,e),this.keyForId.delete(e)}},{key:"keyHasChangedFor",value:function(t){var e=t.id();return this.keyForId.get(e)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var e=this.cachesByLvl,n=this.lvls,r=e.get(t);return r||(r=new Ft,e.set(t,r),n.push(t)),r}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),r=this.getCache(n,e);return null!=r&&this.updateKeyMappingFor(t),r}},{key:"getForCachedKey",value:function(t,e){var n=this.keyForId.get(t.id());return this.getCache(n,e)}},{key:"hasCache",value:function(t,e){return this.getCachesAt(e).has(t)}},{key:"has",value:function(t,e){var n=this.getKey(t);return this.hasCache(n,e)}},{key:"setCache",value:function(t,e,n){n.key=t,this.getCachesAt(e).set(t,n)}},{key:"set",value:function(t,e,n){var r=this.getKey(t);this.setCache(r,e,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,e){this.getCachesAt(e).delete(t)}},{key:"delete",value:function(t,e){var n=this.getKey(t);this.deleteCache(n,e)}},{key:"invalidateKey",value:function(t){var e=this;this.lvls.forEach((function(n){return e.deleteCache(t,n)}))}},{key:"invalidate",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteKeyMappingFor(t);var r=this.doesEleInvalidateKey(t);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),t}(),Ms={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},As=Dt({getKey:null,doesEleInvalidateKey:Tt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:kt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Ss=function(t,e){var n=this;n.renderer=t,n.onDequeues=[];var r=As(e);Q(n,r),n.lookup=new Ts(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},Es=Ss.prototype;Es.reasons=Ms,Es.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Es.getRetiredTextureQueue=function(t){var e=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return e[t]=e[t]||[]},Es.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new u.default((function(t,e){return e.reqs-t.reqs}))},Es.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},Es.getElement=function(t,e,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed())return null;if(!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(null==r&&(r=Math.ceil(le(s*n))),r<-4)r=-4;else if(s>=7.99||r>3)return null;var c=Math.pow(2,r),u=e.h*c,f=e.w*c,h=o.eleTextBiggerThanMin(t,c);if(!this.isVisible(t,h))return null;var d,p=l.get(t,r);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;if(d=u<=25?25:u<=50?50:50*Math.ceil(u/50),u>1024||f>1024)return null;var g=a.getTextureQueue(d),v=g[g.length-2],m=function(){return a.recycleTexture(d,f)||a.addTexture(d,f)};v||(v=g[g.length-1]),v||(v=m()),v.width-v.usedWidthr;S--)M=a.getElement(t,e,n,S,Ms.downscale);A()}else{var E;if(!x&&!w&&!_)for(var C=r-1;C>=-4;C--){var P=l.get(t,C);if(P){E=P;break}}if(b(E))return a.queueElement(t,r),E;v.context.translate(v.usedWidth,0),v.context.scale(c,c),this.drawElement(v.context,t,e,h,!1),v.context.scale(1/c,1/c),v.context.translate(-v.usedWidth,0)}return p={x:v.usedWidth,texture:v,level:r,scale:c,width:f,height:u,scaledLabelShown:h},v.usedWidth+=Math.ceil(f+8),v.eleCaches.push(p),l.set(t,r,p),a.checkTextureFullness(v),p},Es.invalidateElements=function(t){for(var e=0;e=.2*t.width&&this.retireTexture(t)},Es.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?Rt(e,t):t.fullnessChecks++},Es.retireTexture=function(t){var e=t.height,n=this.getTextureQueue(e),r=this.lookup;Rt(n,t),t.retired=!0;for(var i=t.eleCaches,a=0;a=e)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,zt(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Rt(r,a),n.push(a),a}},Es.queueElement=function(t,e){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(t),a=r[i];if(a)a.level=Math.max(a.level,e),a.eles.merge(t),a.reqs++,n.updateItem(a);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};n.push(o),r[i]=o}},Es.dequeue=function(t){for(var e=this,n=e.getElementQueue(),r=e.getElementKeyToQueue(),i=[],a=e.lookup,o=0;o<1&&n.size()>0;o++){var s=n.pop(),l=s.key,c=s.eles[0],u=a.hasCache(c,s.level);if(r[l]=null,!u){i.push(s);var f=e.getBoundingBox(c);e.getElement(c,f,t,s.level,Ms.dequeue)}}return i},Es.removeFromQueue=function(t){var e=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(t),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=_t,e.updateItem(i),e.pop(),n[r]=null):i.eles.unmerge(t))},Es.onDequeue=function(t){this.onDequeues.push(t)},Es.offDequeue=function(t){Rt(this.onDequeues,t)},Es.setupDequeueing=ks({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n=3.99||n>2)return null;r.validateLayersElesOrdering(n,t);var o,s,l=r.layersByLevel,c=Math.pow(2,n),u=l[n]=l[n]||[];if(r.levelIsComplete(n,t))return u;!function(){var e=function(e){if(r.validateLayersElesOrdering(e,t),r.levelIsComplete(e,t))return s=l[e],!0},i=function(t){if(!s)for(var r=n+t;-4<=r&&r<=2&&!e(r);r+=t);};i(1),i(-1);for(var a=u.length-1;a>=0;a--){var o=u[a];o.invalid&&Rt(u,o)}}();var f=function(e){var i=(e=e||{}).after;if(function(){if(!o){o=ve();for(var e=0;e16e6)return null;var a=r.makeLayer(o,n);if(null!=i){var s=u.indexOf(i)+1;u.splice(s,0,a)}else(void 0===e.insert||e.insert)&&u.unshift(a);return a};if(r.skipping&&!a)return null;for(var h=null,d=t.length/1,p=!a,g=0;g=d||!ke(h.bb,v.boundingBox()))&&!(h=f({insert:!0,after:h})))return null;s||p?r.queueLayer(h,v):r.drawEleInLayer(h,v,n,e),h.eles.push(v),y[n]=h}}return s||(p?null:u)},Ps.getEleLevelForLayerLevel=function(t,e){return t},Ps.drawEleInLayer=function(t,e,n,r){var i=this.renderer,a=t.context,o=e.boundingBox();0!==o.w&&0!==o.h&&e.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(a,!1),i.drawCachedElement(a,e,null,null,n,true),i.setImgSmoothing(a,!0))},Ps.levelIsComplete=function(t,e){var n=this.layersByLevel[t];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===e.length},Ps.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var r=0;r0){t=!0;break}}return t},Ps.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=lt(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,r){e.invalidateLayer(t)})))},Ps.invalidateLayer=function(t){if(this.lastInvalidationTime=lt(),!t.invalid){var e=t.level,n=t.eles,r=this.layersByLevel[e];Rt(r,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.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,s=e._private.rscratch;if((!a||e.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var l;n&&(l=n,t.translate(-l.x1,-l.y1));var c=a?e.pstyle("opacity").value:1,u=a?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,h=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,p=e.pstyle("line-cap").value,g=c*u,v=c*u,m=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;"straight-triangle"===f?(o.eleStrokeStyle(t,e,n),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=p,o.eleStrokeStyle(t,e,n),o.drawEdgePath(e,t,s.allpts,h),t.lineCap="butt")},y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;o.drawArrowheads(t,e,n)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var b=e.pstyle("ghost-offset-x").pfValue,x=e.pstyle("ghost-offset-y").pfValue,w=e.pstyle("ghost-opacity").value,_=g*w;t.translate(b,x),m(_),y(_),t.translate(-b,-x)}i&&o.drawEdgeUnderlay(t,e),m(),y(),i&&o.drawEdgeOverlay(t,e),o.drawElementText(t,e,null,r),n&&t.translate(l.x1,l.y1)}}},$s=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n){if(n.visible()){var r=n.pstyle("".concat(t,"-opacity")).value;if(0!==r){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle("".concat(t,"-padding")).pfValue,l=n.pstyle("".concat(t,"-color")).value;e.lineWidth=s,"self"!==o.edgeType||a?e.lineCap="round":e.lineCap="butt",i.colorStrokeStyle(e,l[0],l[1],l[2],r),i.drawEdgePath(n,e,o.allpts,"solid")}}}};Ys.drawEdgeOverlay=$s("overlay"),Ys.drawEdgeUnderlay=$s("underlay"),Ys.drawEdgePath=function(t,e,n,r){var i,a=t._private.rscratch,o=e,s=!1,l=this.usePaths(),c=t.pstyle("line-dash-pattern").pfValue,u=t.pstyle("line-dash-offset").pfValue;if(l){var f=n.join("$");a.pathCacheKey&&a.pathCacheKey===f?(i=e=a.pathCache,s=!0):(i=e=new Path2D,a.pathCacheKey=f,a.pathCache=i)}if(o.setLineDash)switch(r){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(c),o.lineDashOffset=u;break;case"solid":o.setLineDash([])}if(!s&&!a.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&void 0!==arguments[5])||arguments[5],o=this;if(null==r){if(a&&!o.eleTextBiggerThanMin(e))return}else if(!1===r)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var l=o.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var c=e.element()._private.rscratch.badLine,u=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(c||(!u||!u.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var d,p=!n;n&&(d=n,t.translate(-d.x1,-d.y1)),null==i?(o.drawText(t,e,null,p,a),e.isEdge()&&(o.drawText(t,e,"source",p,a),o.drawText(t,e,"target",p,a))):o.drawText(t,e,i,p,a),n&&t.translate(d.x1,d.y1)},Ks.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&void 0!==arguments[2])||arguments[2],r=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=n?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*s,c=e.pstyle("color").value,u=e.pstyle("text-outline-color").value;t.font=r+" "+o+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,c[0],c[1],c[2],s),this.colorStrokeStyle(t,u[0],u[1],u[2],l)},Ks.getTextAngle=function(t,e){var n=t._private.rscratch,r=e?e+"-":"",i=t.pstyle(r+"text-rotation"),a=Nt(n,"labelAngle",e);return"autorotate"===i.strValue?t.isEdge()?a:0:"none"===i.strValue?0:i.pfValue},Ks.drawText=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e._private.rscratch,o=i?e.effectiveOpacity():1;if(!i||0!==o&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var s,l,c=Nt(a,"labelX",n),u=Nt(a,"labelY",n),f=this.getLabelText(e,n);if(null!=f&&""!==f&&!isNaN(c)&&!isNaN(u)){this.setupTextStyle(t,e,i);var h,d=n?n+"-":"",p=Nt(a,"labelWidth",n),g=Nt(a,"labelHeight",n),v=e.pstyle(d+"text-margin-x").pfValue,m=e.pstyle(d+"text-margin-y").pfValue,y=e.isEdge(),b=e.pstyle("text-halign").value,x=e.pstyle("text-valign").value;switch(y&&(b="center",x="center"),c+=v,u+=m,0!==(h=r?this.getTextAngle(e,n):0)&&(s=c,l=u,t.translate(s,l),t.rotate(h),c=0,u=0),x){case"top":break;case"center":u+=g/2;break;case"bottom":u+=g}var w=e.pstyle("text-background-opacity").value,_=e.pstyle("text-border-opacity").value,k=e.pstyle("text-border-width").pfValue,T=e.pstyle("text-background-padding").pfValue;if(w>0||k>0&&_>0){var M=c-T;switch(b){case"left":M-=p;break;case"center":M-=p/2}var A=u-g-T,S=p+2*T,E=g+2*T;if(w>0){var C=t.fillStyle,P=e.pstyle("text-background-color").value;t.fillStyle="rgba("+P[0]+","+P[1]+","+P[2]+","+w*o+")",0===e.pstyle("text-background-shape").strValue.indexOf("round")?function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath(),t.fill()}(t,M,A,S,E,2):t.fillRect(M,A,S,E),t.fillStyle=C}if(k>0&&_>0){var L=t.strokeStyle,O=t.lineWidth,I=e.pstyle("text-border-color").value,D=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+I[0]+","+I[1]+","+I[2]+","+_*o+")",t.lineWidth=k,t.setLineDash)switch(D){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=k/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(t.strokeRect(M,A,S,E),"double"===D){var R=k/2;t.strokeRect(M+R,A+R,S-2*R,E-2*R)}t.setLineDash&&t.setLineDash([]),t.lineWidth=O,t.strokeStyle=L}}var z=2*e.pstyle("text-outline-width").pfValue;if(z>0&&(t.lineWidth=z),"wrap"===e.pstyle("text-wrap").value){var N=Nt(a,"labelWrapCachedLines",n),j=Nt(a,"labelLineHeight",n),F=p/2,B=this.getLabelJustification(e);switch("auto"===B||("left"===b?"left"===B?c+=-p:"center"===B&&(c+=-F):"center"===b?"left"===B?c+=-F:"right"===B&&(c+=F):"right"===b&&("center"===B?c+=F:"right"===B&&(c+=p))),x){case"top":case"center":case"bottom":u-=(N.length-1)*j}for(var U=0;U0&&t.strokeText(N[U],c,u),t.fillText(N[U],c,u),u+=j}else z>0&&t.strokeText(f,c,u),t.fillText(f,c,u);0!==h&&(t.rotate(-h),t.translate(-s,-l))}}};var Zs={drawNode:function(t,e,n){var r,i,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=this,c=e._private,u=c.rscratch,f=e.position();if(O(f.x)&&O(f.y)&&(!s||e.visible())){var h,d,p=s?e.effectiveOpacity():1,g=l.usePaths(),v=!1,m=e.padding();r=e.width()+2*m,i=e.height()+2*m,n&&(d=n,t.translate(-d.x1,-d.y1));for(var y=e.pstyle("background-image").value,b=new Array(y.length),x=new Array(y.length),w=0,_=0;_0&&void 0!==arguments[0]?arguments[0]:S;l.eleFillStyle(t,e,n)},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P;l.colorStrokeStyle(t,E[0],E[1],E[2],e)},D=e.pstyle("shape").strValue,R=e.pstyle("shape-polygon-points").pfValue;if(g){t.translate(f.x,f.y);var z=l.nodePathCache=l.nodePathCache||[],N=mt("polygon"===D?D+","+R.join(","):D,""+i,""+r),j=z[N];null!=j?(h=j,v=!0,u.pathCache=h):(h=new Path2D,z[N]=u.pathCache=h)}var F=function(){if(!v){var n=f;g&&(n={x:0,y:0}),l.nodeShapes[l.getNodeShape(e)].draw(h||t,n.x,n.y,r,i)}g?t.fill(h):t.fill()},B=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=c.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;l.hasPie(e)&&(l.drawPie(t,e,a),n&&(g||l.nodeShapes[l.getNodeShape(e)].draw(t,f.x,f.y,r,i)))},H=function(){var e=(M>0?M:-M)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:p),n=M>0?0:255;0!==M&&(l.colorFillStyle(t,n,n,n,e),g?t.fill(h):t.fill())},V=function(){if(A>0){if(t.lineWidth=A,t.lineCap="butt",t.setLineDash)switch(C){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}if(g?t.stroke(h):t.stroke(),"double"===C){t.lineWidth=A/3;var e=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",g?t.stroke(h):t.stroke(),t.globalCompositeOperation=e}t.setLineDash&&t.setLineDash([])}};if("yes"===e.pstyle("ghost").value){var q=e.pstyle("ghost-offset-x").pfValue,G=e.pstyle("ghost-offset-y").pfValue,W=e.pstyle("ghost-opacity").value,Y=W*p;t.translate(q,G),L(W*S),F(),B(Y,!0),I(W*P),V(),U(0!==M||0!==A),B(Y,!1),H(Y),t.translate(-q,-G)}g&&t.translate(-f.x,-f.y),o&&l.drawNodeUnderlay(t,e,f,r,i),g&&t.translate(f.x,f.y),L(),F(),B(p,!0),I(),V(),U(0!==M||0!==A),B(p,!1),H(),g&&t.translate(-f.x,-f.y),l.drawElementText(t,e,null,a),o&&l.drawNodeOverlay(t,e,f,r,i),n&&t.translate(d.x1,d.y1)}}},Js=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n,r,i,a){if(n.visible()){var o=n.pstyle("".concat(t,"-padding")).pfValue,s=n.pstyle("".concat(t,"-opacity")).value,l=n.pstyle("".concat(t,"-color")).value,c=n.pstyle("".concat(t,"-shape")).value;if(s>0){if(r=r||n.position(),null==i||null==a){var u=n.padding();i=n.width()+2*u,a=n.height()+2*u}this.colorFillStyle(e,l[0],l[1],l[2],s),this.nodeShapes[c].draw(e,r.x,r.y,i+2*o,a+2*o),e.fill()}}}};Zs.drawNodeOverlay=Js("overlay"),Zs.drawNodeUnderlay=Js("underlay"),Zs.hasPie=function(t){return(t=t[0])._private.hasPie},Zs.drawPie=function(t,e,n,r){e=e[0],r=r||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),o=r.x,s=r.y,l=e.width(),c=e.height(),u=Math.min(l,c)/2,f=0;this.usePaths()&&(o=0,s=0),"%"===a.units?u*=a.pfValue:void 0!==a.pfValue&&(u=a.pfValue/2);for(var h=1;h<=i.pieBackgroundN;h++){var d=e.pstyle("pie-"+h+"-background-size").value,p=e.pstyle("pie-"+h+"-background-color").value,g=e.pstyle("pie-"+h+"-background-opacity").value*n,v=d/100;v+f>1&&(v=1-f);var m=1.5*Math.PI+2*Math.PI*f,y=m+2*Math.PI*v;0===d||f>=1||f+v>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,u,m,y),t.closePath(),this.colorFillStyle(t,p[0],p[1],p[2],g),t.fill(),f+=v)}};var Qs={};Qs.getPixelRatio=function(){var t=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Qs.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;io.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(u[o.NODE]=!0,u[o.SELECT_BOX]=!0);var y=l.style(),b=l.zoom(),x=void 0!==i?i:b,w=l.pan(),_={x:w.x,y:w.y},k={zoom:b,pan:{x:w.x,y:w.y}},T=o.prevViewport;void 0===T||k.zoom!==T.zoom||k.pan.x!==T.pan.x||k.pan.y!==T.pan.y||g&&!p||(o.motionBlurPxRatio=1),a&&(_=a),x*=s,_.x*=s,_.y*=s;var M=o.getCachedZSortedEles();function A(t,e,n,r,i){var a=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,o.motionBlurTransparency),t.fillRect(e,n,r,i),t.globalCompositeOperation=a}function S(t,r){var s,l,u,f;o.clearingMotionBlur||t!==c.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&t!==c.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=_,l=x,u=o.canvasWidth,f=o.canvasHeight):(s={x:w.x*d,y:w.y*d},l=b*d,u=o.canvasWidth*d,f=o.canvasHeight*d),t.setTransform(1,0,0,1,0,0),"motionBlur"===r?A(t,0,0,u,f):e||void 0!==r&&!r||t.clearRect(0,0,u,f),n||(t.translate(s.x,s.y),t.scale(l,l)),a&&t.translate(a.x,a.y),i&&t.scale(i,i)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=l.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var E=o.data.bufferContexts[o.TEXTURE_BUFFER];E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:E,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(k=o.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-k.pan.x)/k.zoom,y:(0-k.pan.y)/k.zoom}}u[o.DRAG]=!1,u[o.NODE]=!1;var C=c.contexts[o.NODE],P=o.textureCache.texture;k=o.textureCache.viewport;C.setTransform(1,0,0,1,0,0),h?A(C,0,0,k.width,k.height):C.clearRect(0,0,k.width,k.height);var L=y.core("outside-texture-bg-color").value,O=y.core("outside-texture-bg-opacity").value;o.colorFillStyle(C,L[0],L[1],L[2],O),C.fillRect(0,0,k.width,k.height);b=l.zoom();S(C,!1),C.clearRect(k.mpan.x,k.mpan.y,k.width/k.zoom/s,k.height/k.zoom/s),C.drawImage(P,k.mpan.x,k.mpan.y,k.width/k.zoom/s,k.height/k.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var I=l.extent(),D=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),R=o.hideEdgesOnViewport&&D,z=[];if(z[o.NODE]=!u[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,z[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),z[o.DRAG]=!u[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,z[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),u[o.NODE]||n||r||z[o.NODE]){var N=h&&!z[o.NODE]&&1!==d;S(C=e||(N?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:c.contexts[o.NODE]),h&&!N?"motionBlur":void 0),R?o.drawCachedNodes(C,M.nondrag,s,I):o.drawLayeredElements(C,M.nondrag,s,I),o.debug&&o.drawDebugPoints(C,M.nondrag),n||h||(u[o.NODE]=!1)}if(!r&&(u[o.DRAG]||n||z[o.DRAG])){N=h&&!z[o.DRAG]&&1!==d;S(C=e||(N?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:c.contexts[o.DRAG]),h&&!N?"motionBlur":void 0),R?o.drawCachedNodes(C,M.drag,s,I):o.drawCachedElements(C,M.drag,s,I),o.debug&&o.drawDebugPoints(C,M.drag),n||h||(u[o.DRAG]=!1)}if(o.showFps||!r&&u[o.SELECT_BOX]&&!n){if(S(C=e||c.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){b=o.cy.zoom();var j=y.core("selection-box-border-width").value/b;C.lineWidth=j,C.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",C.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),j>0&&(C.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",C.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(c.bgActivePosistion&&!o.hoverData.selecting){b=o.cy.zoom();var F=c.bgActivePosistion;C.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",C.beginPath(),C.arc(F.x,F.y,y.core("active-bg-size").pfValue/b,0,2*Math.PI),C.fill()}var B=o.lastRedrawTime;if(o.showFps&&B){B=Math.round(B);var U=Math.round(1e3/B);C.setTransform(1,0,0,1,0,0),C.fillStyle="rgba(255, 0, 0, 0.75)",C.strokeStyle="rgba(255, 0, 0, 0.75)",C.lineWidth=1,C.fillText("1 frame = "+B+" ms = "+U+" fps",0,20);C.strokeRect(0,30,250,20),C.fillRect(0,30,250*Math.min(U/60,1),20)}n||(u[o.SELECT_BOX]=!1)}if(h&&1!==d){var H=c.contexts[o.NODE],V=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],q=c.contexts[o.DRAG],G=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],W=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!m?t.clearRect(0,0,o.canvasWidth,o.canvasHeight):A(t,0,0,o.canvasWidth,o.canvasHeight);var r=d;t.drawImage(e,0,0,o.canvasWidth*r,o.canvasHeight*r,0,0,o.canvasWidth,o.canvasHeight)};(u[o.NODE]||z[o.NODE])&&(W(H,V,z[o.NODE]),u[o.NODE]=!1),(u[o.DRAG]||z[o.DRAG])&&(W(q,G,z[o.DRAG]),u[o.DRAG]=!1)}o.prevViewport=k,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(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,u[o.NODE]=!0,u[o.DRAG]=!0,o.redraw()}),100)),e||l.emit("render")};for(var tl={drawPolygonPath:function(t,e,n,r,i,a){var o=r/2,s=i/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){h.clearRect(0,0,i,a),h.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,d),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var p=e.pan(),g={x:p.x*l,y:p.y*l};l*=e.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,d),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}t.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=t.bg,h.rect(0,0,i,a),h.fill())}return f},sl.png=function(t){return cl(t,this.bufferCanvasImage(t),"image/png")},sl.jpg=function(t){return cl(t,this.bufferCanvasImage(t),"image/jpeg")};var ul={nodeShapeImpl:function(t,e,n,r,i,a,o){switch(t){case"ellipse":return this.drawEllipsePath(e,n,r,i,a);case"polygon":return this.drawPolygonPath(e,n,r,i,a,o);case"round-polygon":return this.drawRoundPolygonPath(e,n,r,i,a,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,r,i,a);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,r,i,a);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,r,i,a);case"barrel":return this.drawBarrelPath(e,n,r,i,a)}}},fl=dl,hl=dl.prototype;function dl(t){var e=this;e.data={canvases:new Array(hl.CANVAS_LAYERS),contexts:new Array(hl.CANVAS_LAYERS),canvasNeedsRedraw:new Array(hl.CANVAS_LAYERS),bufferCanvases:new Array(hl.BUFFER_COUNT),bufferContexts:new Array(hl.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",r="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var i=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=r,i.position="relative",i.zIndex="0",i.overflow="hidden";var a=t.cy.container();a.appendChild(e.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"};U()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultLayoutOptions,a=void 0===r?{}:r,s=n.algorithms,l=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,c=n.workerFactory,u=n.workerUrl;if(i(this,t),this.defaultLayoutOptions=a,this.initialized=!1,"undefined"===typeof u&&"undefined"===typeof c)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var f=c;"undefined"!==typeof u&&"undefined"===typeof c&&(f=function(t){return new Worker(t)});var h=f(u);if("function"!==typeof h.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new o(h),this.worker.postMessage({cmd:"register",algorithms:l}).then((function(t){return e.initialized=!0})).catch(console.err)}return r(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,r=void 0===n?this.defaultLayoutOptions:n,i=e.logging,a=void 0!==i&&i,o=e.measureExecutionTime,s=void 0!==o&&o;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:r,options:{logging:a,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=a;var o=function(){function t(e){var n=this;if(i(this,t),void 0===e)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}return r(t,[{key:"postMessage",value:function(t){var e=this.id||0;this.id=e+1,t.id=e;var n=this;return new Promise((function(r,i){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),i(t)):r(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,r=t.resolvers[n.id];r&&(delete t.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(t){if(t){var e=t.__java$exception;e&&(e.cause&&e.cause.backingJsObject&&(t.cause=e.cause.backingJsObject,this.convertGwtStyleError(t.cause)),delete t.__java$exception)}}}]),t}()},{}],2:[function(t,e,n){"use strict";var r=t("./elk-api.js").default;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports=r,r.default=r},{"./elk-api.js":1}]},{},[2])(2)},3139:function(t,e,n){"use strict";var r;function i(){}function a(){}function o(){}function s(){}function l(){}function c(){}function u(){}function f(){}function h(){}function d(){}function p(){}function g(){}function v(){}function m(){}function y(){}function b(){}function x(){}function w(){}function _(){}function k(){}function T(){}function M(){}function A(){}function S(){}function E(){}function C(){}function P(){}function L(){}function O(){}function I(){}function D(){}function R(){}function z(){}function N(){}function j(){}function F(){}function B(){}function U(){}function H(){}function V(){}function q(){}function G(){}function W(){}function Y(){}function $(){}function X(){}function K(){}function Z(){}function J(){}function Q(){}function tt(){}function et(){}function nt(){}function rt(){}function it(){}function at(){}function ot(){}function st(){}function lt(){}function ct(){}function ut(){}function ft(){}function ht(){}function dt(){}function pt(){}function gt(){}function vt(){}function mt(){}function yt(){}function bt(){}function xt(){}function wt(){}function _t(){}function kt(){}function Tt(){}function Mt(){}function At(){}function St(){}function Et(){}function Ct(){}function Pt(){}function Lt(){}function Ot(){}function It(){}function Dt(){}function Rt(){}function zt(){}function Nt(){}function jt(){}function Ft(){}function Bt(){}function Ut(){}function Ht(){}function Vt(){}function qt(){}function Gt(){}function Wt(){}function Yt(){}function $t(){}function Xt(){}function Kt(){}function Zt(){}function Jt(){}function Qt(){}function te(){}function ee(){}function ne(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function le(){}function ce(){}function ue(){}function fe(){}function he(){}function de(){}function pe(){}function ge(){}function ve(){}function me(){}function ye(){}function be(){}function xe(){}function we(){}function _e(){}function ke(){}function Te(){}function Me(){}function Ae(){}function Se(){}function Ee(){}function Ce(){}function Pe(){}function Le(){}function Oe(){}function Ie(){}function De(){}function Re(){}function ze(){}function Ne(){}function je(){}function Fe(){}function Be(){}function Ue(){}function He(){}function Ve(){}function qe(){}function Ge(){}function We(){}function Ye(){}function $e(){}function Xe(){}function Ke(){}function Ze(){}function Je(){}function Qe(){}function tn(){}function en(){}function nn(){}function rn(){}function an(){}function on(){}function sn(){}function ln(){}function cn(){}function un(){}function fn(){}function hn(){}function dn(){}function pn(){}function gn(){}function vn(){}function mn(){}function yn(){}function bn(){}function xn(){}function wn(){}function _n(){}function kn(){}function Tn(){}function Mn(){}function An(){}function Sn(){}function En(){}function Cn(){}function Pn(){}function Ln(){}function On(){}function In(){}function Dn(){}function Rn(){}function zn(){}function Nn(){}function jn(){}function Fn(){}function Bn(){}function Un(){}function Hn(){}function Vn(){}function qn(){}function Gn(){}function Wn(){}function Yn(){}function $n(){}function Xn(){}function Kn(){}function Zn(){}function Jn(){}function Qn(){}function tr(){}function er(){}function nr(){}function rr(){}function ir(){}function ar(){}function or(){}function sr(){}function lr(){}function cr(){}function ur(){}function fr(){}function hr(){}function dr(){}function pr(){}function gr(){}function vr(){}function mr(){}function yr(){}function br(){}function xr(){}function wr(){}function _r(){}function kr(){}function Tr(){}function Mr(){}function Ar(){}function Sr(){}function Er(){}function Cr(){}function Pr(){}function Lr(){}function Or(){}function Ir(){}function Dr(){}function Rr(){}function zr(){}function Nr(){}function jr(){}function Fr(){}function Br(){}function Ur(){}function Hr(){}function Vr(){}function qr(){}function Gr(){}function Wr(){}function Yr(){}function $r(){}function Xr(){}function Kr(){}function Zr(){}function Jr(){}function Qr(){}function ti(){}function ei(){}function ni(){}function ri(){}function ii(){}function ai(){}function oi(){}function si(){}function li(){}function ci(){}function ui(){}function fi(){}function hi(){}function di(){}function pi(){}function gi(){}function vi(){}function mi(){}function yi(){}function bi(){}function xi(){}function wi(){}function _i(){}function ki(){}function Ti(){}function Mi(){}function Ai(){}function Si(){}function Ei(){}function Ci(){}function Pi(){}function Li(){}function Oi(){}function Ii(){}function Di(){}function Ri(){}function zi(){}function Ni(){}function ji(){}function Fi(){}function Bi(){}function Ui(){}function Hi(){}function Vi(){}function qi(){}function Gi(){}function Wi(){}function Yi(){}function $i(){}function Xi(){}function Ki(){}function Zi(){}function Ji(){}function Qi(){}function ta(){}function ea(){}function na(){}function ra(){}function ia(){}function aa(){}function oa(){}function sa(){}function la(){}function ca(){}function ua(){}function fa(){}function ha(){}function da(){}function pa(){}function ga(){}function va(){}function ma(){}function ya(){}function ba(){}function xa(){}function wa(){}function _a(){}function ka(){}function Ta(){}function Ma(){}function Aa(){}function Sa(){}function Ea(){}function Ca(){}function Pa(){}function La(){}function Oa(){}function Ia(){}function Da(){}function Ra(){}function za(){}function Na(){}function ja(){}function Fa(){}function Ba(){}function Ua(){}function Ha(){}function Va(){}function qa(){}function Ga(){}function Wa(){}function Ya(){}function $a(){}function Xa(){}function Ka(){}function Za(){}function Ja(){}function Qa(){}function to(){}function eo(){}function no(){}function ro(){}function io(){}function ao(){}function oo(){}function so(){}function lo(){}function co(){}function uo(){}function fo(){}function ho(){}function po(){}function go(){}function vo(){}function mo(){}function yo(){}function bo(){}function xo(){}function wo(){}function _o(){}function ko(){}function To(){}function Mo(){}function Ao(){}function So(){}function Eo(){}function Co(){}function Po(){}function Lo(){}function Oo(){}function Io(){}function Do(){}function Ro(){}function zo(){}function No(){}function jo(){}function Fo(){}function Bo(){}function Uo(){}function Ho(){}function Vo(){}function qo(){}function Go(){}function Wo(){}function Yo(){}function $o(){}function Xo(){}function Ko(){}function Zo(){}function Jo(){}function Qo(){}function ts(){}function es(){}function ns(){}function rs(){}function is(){}function as(){}function os(){}function ss(){}function ls(){}function cs(){}function us(){}function fs(){}function hs(){}function ds(){}function ps(){}function gs(){}function vs(){}function ms(){}function ys(){}function bs(){}function xs(){}function ws(){}function _s(){}function ks(){}function Ts(){}function Ms(){}function As(){}function Ss(){}function Es(){}function Cs(){}function Ps(){}function Ls(){}function Os(){}function Is(){}function Ds(){}function Rs(){}function zs(){}function Ns(){}function js(){}function Fs(){}function Bs(){}function Us(){}function Hs(){}function Vs(){}function qs(){}function Gs(){}function Ws(){}function Ys(){}function $s(){}function Xs(){}function Ks(){}function Zs(){}function Js(){}function Qs(){}function tl(){}function el(){}function nl(){}function rl(){}function il(){}function al(){}function ol(){}function sl(){}function ll(){}function cl(){}function ul(){}function fl(){}function hl(){}function dl(){}function pl(){}function gl(){}function vl(){}function ml(){}function yl(){}function bl(){}function xl(){}function wl(){}function _l(){}function kl(){}function Tl(){}function Ml(){}function Al(){}function Sl(){}function El(){}function Cl(){}function Pl(){}function Ll(){}function Ol(){}function Il(){}function Dl(){}function Rl(){}function zl(){}function Nl(){}function jl(){}function Fl(){}function Bl(){}function Ul(){}function Hl(){}function Vl(){}function ql(){}function Gl(){}function Wl(){}function Yl(){}function $l(){}function Xl(){}function Kl(){}function Zl(){}function Jl(){}function Ql(){}function tc(){}function ec(){}function nc(){}function rc(){}function ic(){}function ac(){}function oc(){}function sc(){}function lc(){}function cc(){}function uc(){}function fc(){}function hc(){}function dc(){}function pc(){}function gc(){}function vc(){}function mc(){}function yc(){}function bc(){}function xc(){}function wc(){}function _c(){}function kc(){}function Tc(){}function Mc(){}function Ac(){}function Sc(){}function Ec(){}function Cc(){}function Pc(){}function Lc(){}function Oc(){}function Ic(){}function Dc(){}function Rc(){}function zc(){}function Nc(){}function jc(){}function Fc(){}function Bc(){}function Uc(){}function Hc(){}function Vc(){}function qc(){}function Gc(){}function Wc(){}function Yc(){}function $c(){}function Xc(){}function Kc(){}function Zc(){}function Jc(){}function Qc(){}function tu(){}function eu(){}function nu(){}function ru(){}function iu(){}function au(){}function ou(){}function su(){}function lu(){}function cu(){}function uu(){}function fu(){}function hu(){}function du(){}function pu(){}function gu(){}function vu(){}function mu(){}function yu(){}function bu(){}function xu(){}function wu(){}function _u(){}function ku(){}function Tu(){}function Mu(){}function Au(){}function Su(){}function Eu(){}function Cu(){}function Pu(){}function Lu(){}function Ou(){}function Iu(){}function Du(){}function Ru(){}function zu(){}function Nu(){}function ju(){}function Fu(){vb()}function Bu(){P6()}function Uu(){dnt()}function Hu(){yat()}function Vu(){Tlt()}function qu(){Vgt()}function Gu(){Dit()}function Wu(){Xit()}function Yu(){Kk()}function $u(){Wk()}function Xu(){LR()}function Ku(){Zk()}function Zu(){b2()}function Ju(){Qk()}function Qu(){nK()}function tf(){S1()}function ef(){sZ()}function nf(){lG()}function rf(){L6()}function af(){Zst()}function of(){E1()}function sf(){vY()}function lf(){I_t()}function cf(){jit()}function uf(){cG()}function ff(){y_t()}function hf(){oG()}function df(){C1()}function pf(){n4()}function gf(){dG()}function vf(){MZ()}function mf(){tT()}function yf(){dht()}function bf(){Bit()}function xf(){d3()}function wf(){Nst()}function _f(){qgt()}function kf(){drt()}function Tf(){oht()}function Mf(){r5()}function Af(){fG()}function Sf(){imt()}function Ef(){lht()}function Cf(){Qht()}function Pf(){EZ()}function Lf(){jst()}function Of(){L_t()}function If(){I6()}function Df(){Ptt()}function Rf(){tbt()}function zf(){gR()}function Nf(){$2()}function jf(){Hmt()}function Ff(t){yU(t)}function Bf(t){this.a=t}function Uf(t){this.a=t}function Hf(t){this.a=t}function Vf(t){this.a=t}function qf(t){this.a=t}function Gf(t){this.a=t}function Wf(t){this.a=t}function Yf(t){this.a=t}function $f(t){this.a=t}function Xf(t){this.a=t}function Kf(t){this.a=t}function Zf(t){this.a=t}function Jf(t){this.a=t}function Qf(t){this.a=t}function th(t){this.a=t}function eh(t){this.a=t}function nh(t){this.a=t}function rh(t){this.a=t}function ih(t){this.a=t}function ah(t){this.a=t}function oh(t){this.a=t}function sh(t){this.b=t}function lh(t){this.c=t}function ch(t){this.a=t}function uh(t){this.a=t}function fh(t){this.a=t}function hh(t){this.a=t}function dh(t){this.a=t}function ph(t){this.a=t}function gh(t){this.a=t}function vh(t){this.a=t}function mh(t){this.a=t}function yh(t){this.a=t}function bh(t){this.a=t}function xh(t){this.a=t}function wh(t){this.a=t}function _h(t){this.a=t}function kh(t){this.a=t}function Th(t){this.a=t}function Mh(t){this.a=t}function Ah(){this.a=[]}function Sh(t,e){t.a=e}function Eh(t,e){t.j=e}function Ch(t,e){t.c=e}function Ph(t,e){t.d=e}function Lh(t,e){t.k=e}function Oh(t,e){t.c=e}function Ih(t,e){t.a=e}function Dh(t,e){t.a=e}function Rh(t,e){t.f=e}function zh(t,e){t.a=e}function Nh(t,e){t.b=e}function jh(t,e){t.d=e}function Fh(t,e){t.i=e}function Bh(t,e){t.o=e}function Uh(t,e){t.e=e}function Hh(t,e){t.g=e}function Vh(t,e){t.e=e}function qh(t,e){t.f=e}function Gh(t,e){t.f=e}function Wh(t,e){t.n=e}function Yh(t){t.b=t.a}function $h(t){t.c=t.d.d}function Xh(t){this.d=t}function Kh(t){this.a=t}function Zh(t){this.a=t}function Jh(t){this.a=t}function Qh(t){this.a=t}function td(t){this.a=t}function ed(t){this.a=t}function nd(t){this.a=t}function rd(t){this.a=t}function id(t){this.a=t}function ad(t){this.a=t}function od(t){this.a=t}function sd(t){this.a=t}function ld(t){this.a=t}function cd(t){this.a=t}function ud(t){this.b=t}function fd(t){this.b=t}function hd(t){this.b=t}function dd(t){this.a=t}function pd(t){this.a=t}function gd(t){this.a=t}function vd(t){this.c=t}function md(t){this.c=t}function yd(t){this.c=t}function bd(t){this.a=t}function xd(t){this.a=t}function wd(t){this.a=t}function _d(t){this.a=t}function kd(t){this.a=t}function Td(t){this.a=t}function Md(t){this.a=t}function Ad(t){this.a=t}function Sd(t){this.a=t}function Ed(t){this.a=t}function Cd(t){this.a=t}function Pd(t){this.a=t}function Ld(t){this.a=t}function Od(t){this.a=t}function Id(t){this.a=t}function Dd(t){this.a=t}function Rd(t){this.a=t}function zd(t){this.a=t}function Nd(t){this.a=t}function jd(t){this.a=t}function Fd(t){this.a=t}function Bd(t){this.a=t}function Ud(t){this.a=t}function Hd(t){this.a=t}function Vd(t){this.a=t}function qd(t){this.a=t}function Gd(t){this.a=t}function Wd(t){this.a=t}function Yd(t){this.a=t}function $d(t){this.a=t}function Xd(t){this.a=t}function Kd(t){this.a=t}function Zd(t){this.a=t}function Jd(t){this.a=t}function Qd(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function rp(t){this.a=t}function ip(t){this.a=t}function ap(t){this.a=t}function op(t){this.a=t}function sp(t){this.a=t}function lp(t){this.a=t}function cp(t){this.a=t}function up(t){this.e=t}function fp(t){this.a=t}function hp(t){this.a=t}function dp(t){this.a=t}function pp(t){this.a=t}function gp(t){this.a=t}function vp(t){this.a=t}function mp(t){this.a=t}function yp(t){this.a=t}function bp(t){this.a=t}function xp(t){this.a=t}function wp(t){this.a=t}function _p(t){this.a=t}function kp(t){this.a=t}function Tp(t){this.a=t}function Mp(t){this.a=t}function Ap(t){this.a=t}function Sp(t){this.a=t}function Ep(t){this.a=t}function Cp(t){this.a=t}function Pp(t){this.a=t}function Lp(t){this.a=t}function Op(t){this.a=t}function Ip(t){this.a=t}function Dp(t){this.a=t}function Rp(t){this.a=t}function zp(t){this.a=t}function Np(t){this.a=t}function jp(t){this.a=t}function Fp(t){this.a=t}function Bp(t){this.a=t}function Up(t){this.a=t}function Hp(t){this.a=t}function Vp(t){this.a=t}function qp(t){this.a=t}function Gp(t){this.a=t}function Wp(t){this.a=t}function Yp(t){this.a=t}function $p(t){this.a=t}function Xp(t){this.a=t}function Kp(t){this.a=t}function Zp(t){this.a=t}function Jp(t){this.a=t}function Qp(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function rg(t){this.a=t}function ig(t){this.a=t}function ag(t){this.a=t}function og(t){this.a=t}function sg(t){this.a=t}function lg(t){this.a=t}function cg(t){this.a=t}function ug(t){this.c=t}function fg(t){this.b=t}function hg(t){this.a=t}function dg(t){this.a=t}function pg(t){this.a=t}function gg(t){this.a=t}function vg(t){this.a=t}function mg(t){this.a=t}function yg(t){this.a=t}function bg(t){this.a=t}function xg(t){this.a=t}function wg(t){this.a=t}function _g(t){this.a=t}function kg(t){this.a=t}function Tg(t){this.a=t}function Mg(t){this.a=t}function Ag(t){this.a=t}function Sg(t){this.a=t}function Eg(t){this.a=t}function Cg(t){this.a=t}function Pg(t){this.a=t}function Lg(t){this.a=t}function Og(t){this.a=t}function Ig(t){this.a=t}function Dg(t){this.a=t}function Rg(t){this.a=t}function zg(t){this.a=t}function Ng(t){this.a=t}function jg(t){this.a=t}function Fg(t){this.a=t}function Bg(t){this.a=t}function Ug(t){this.a=t}function Hg(t){this.a=t}function Vg(t){this.a=t}function qg(t){this.a=t}function Gg(t){this.a=t}function Wg(t){this.a=t}function Yg(t){this.a=t}function $g(t){this.a=t}function Xg(t){this.a=t}function Kg(t){this.a=t}function Zg(t){this.a=t}function Jg(t){this.a=t}function Qg(t){this.a=t}function tv(t){this.a=t}function ev(t){this.a=t}function nv(t){this.a=t}function rv(t){this.a=t}function iv(t){this.a=t}function av(t){this.a=t}function ov(t){this.a=t}function sv(t){this.a=t}function lv(t){this.a=t}function cv(t){this.a=t}function uv(t){this.a=t}function fv(t){this.a=t}function hv(t){this.a=t}function dv(t){this.a=t}function pv(t){this.a=t}function gv(t){this.a=t}function vv(t){this.a=t}function mv(t){this.a=t}function yv(t){this.a=t}function bv(t){this.a=t}function xv(t){this.a=t}function wv(t){this.a=t}function _v(t){this.a=t}function kv(t){this.a=t}function Tv(t){this.a=t}function Mv(t){this.a=t}function Av(t){this.a=t}function Sv(t){this.a=t}function Ev(t){this.a=t}function Cv(t){this.a=t}function Pv(t){this.b=t}function Lv(t){this.f=t}function Ov(t){this.a=t}function Iv(t){this.a=t}function Dv(t){this.a=t}function Rv(t){this.a=t}function zv(t){this.a=t}function Nv(t){this.a=t}function jv(t){this.a=t}function Fv(t){this.a=t}function Bv(t){this.a=t}function Uv(t){this.a=t}function Hv(t){this.a=t}function Vv(t){this.b=t}function qv(t){this.c=t}function Gv(t){this.e=t}function Wv(t){this.a=t}function Yv(t){this.a=t}function $v(t){this.a=t}function Xv(t){this.a=t}function Kv(t){this.a=t}function Zv(t){this.d=t}function Jv(t){this.a=t}function Qv(t){this.a=t}function tm(t){this.e=t}function em(){this.a=0}function nm(){OC(this)}function rm(){LC(this)}function im(){WF(this)}function am(){KU(this)}function om(){}function sm(){this.c=Koe}function lm(t,e){t.b+=e}function cm(t){t.b=new vx}function um(t){return t.e}function fm(t){return t.a}function hm(t){return t.a}function dm(t){return t.a}function pm(t){return t.a}function gm(t){return t.a}function vm(){return null}function mm(){return null}function ym(t,e){t.b=e-t.b}function bm(t,e){t.a=e-t.a}function xm(t,e){e.ad(t.a)}function wm(t,e){t.e=e,e.b=t}function _m(t){mR(),this.a=t}function km(t){mR(),this.a=t}function Tm(t){mR(),this.a=t}function Mm(t){XB(),this.a=t}function Am(t){OV(),_Ft.be(t)}function Sm(){PL.call(this)}function Em(){PL.call(this)}function Cm(){Sm.call(this)}function Pm(){Sm.call(this)}function Lm(){Sm.call(this)}function Om(){Sm.call(this)}function Im(){Sm.call(this)}function Dm(){Sm.call(this)}function Rm(){Sm.call(this)}function zm(){Sm.call(this)}function Nm(){Sm.call(this)}function jm(){Sm.call(this)}function Fm(){Sm.call(this)}function Bm(){this.a=this}function Um(){this.Bb|=256}function Hm(){this.b=new RE}function Vm(){Vm=P,new im}function qm(){Cm.call(this)}function Gm(t,e){t.length=e}function Wm(t,e){nz(t.a,e)}function Ym(t,e){j3(t.e,e)}function $m(t){_ft(t.c,t.b)}function Xm(t){this.a=function(t){var e;if((e=mlt(t))>34028234663852886e22)return tMt;if(e<-34028234663852886e22)return eMt;return e}(t)}function Km(){this.a=new im}function Zm(){this.a=new im}function Jm(){this.a=new rm}function Qm(){this.a=new rm}function ty(){this.a=new rm}function ey(){this.a=new xt}function ny(){this.a=new $X}function ry(){this.a=new he}function iy(){this.a=new _k}function ay(){this.a=new vW}function oy(){this.a=new Dq}function sy(){this.a=new oD}function ly(){this.a=new rm}function cy(){this.a=new rm}function uy(){this.a=new rm}function fy(){this.a=new rm}function hy(){this.d=new rm}function dy(){this.a=new Km}function py(){this.a=new im}function gy(){this.b=new im}function vy(){this.b=new rm}function my(){this.e=new rm}function yy(){this.d=new rm}function by(){this.a=new af}function xy(){rm.call(this)}function wy(){Jm.call(this)}function _y(){cD.call(this)}function ky(){cy.call(this)}function Ty(){My.call(this)}function My(){om.call(this)}function Ay(){om.call(this)}function Sy(){Ay.call(this)}function Ey(){kV.call(this)}function Cy(){kV.call(this)}function Py(){sb.call(this)}function Ly(){sb.call(this)}function Oy(){sb.call(this)}function Iy(){lb.call(this)}function Dy(){Mk.call(this)}function Ry(){rl.call(this)}function zy(){rl.call(this)}function Ny(){db.call(this)}function jy(){db.call(this)}function Fy(){im.call(this)}function By(){im.call(this)}function Uy(){im.call(this)}function Hy(){Km.call(this)}function Vy(){T1.call(this)}function qy(){Um.call(this)}function Gy(){GP.call(this)}function Wy(){GP.call(this)}function Yy(){im.call(this)}function $y(){im.call(this)}function Xy(){im.call(this)}function Ky(){xl.call(this)}function Zy(){xl.call(this)}function Jy(){Ky.call(this)}function Qy(){zu.call(this)}function tb(t){FQ.call(this,t)}function eb(t){FQ.call(this,t)}function nb(t){$f.call(this,t)}function rb(t){ek.call(this,t)}function ib(t){rb.call(this,t)}function ab(t){ek.call(this,t)}function ob(){this.a=new Mk}function sb(){this.a=new Km}function lb(){this.a=new im}function cb(){this.a=new rm}function ub(){this.j=new rm}function fb(){this.a=new $o}function hb(){this.a=new d_}function db(){this.a=new bl}function pb(){pb=P,rFt=new jx}function gb(){gb=P,nFt=new Nx}function vb(){vb=P,Xjt=new a}function mb(){mb=P,lFt=new bL}function yb(t){rb.call(this,t)}function bb(t){rb.call(this,t)}function xb(t){u$.call(this,t)}function wb(t){u$.call(this,t)}function _b(t){rR.call(this,t)}function kb(t){_lt.call(this,t)}function Tb(t){ik.call(this,t)}function Mb(t){ok.call(this,t)}function Ab(t){ok.call(this,t)}function Sb(t){ok.call(this,t)}function Eb(t){Rj.call(this,t)}function Cb(t){Eb.call(this,t)}function Pb(){Mh.call(this,{})}function Lb(t){VP(),this.a=t}function Ob(t){t.b=null,t.c=0}function Ib(t,e){t.a=e,function(t){var e,n,i;for(function(t){var e,n,i;for(n=new md(t.a.a.b);n.a0&&((!hC(t.a.c)||!e.n.d)&&(!dC(t.a.c)||!e.n.b)&&(e.g.d-=r.Math.max(0,i/2-.5)),(!hC(t.a.c)||!e.n.a)&&(!dC(t.a.c)||!e.n.c)&&(e.g.a+=r.Math.max(0,i-1)))}(t),i=new rm,n=new md(t.a.a.b);n.a0&&((!hC(t.a.c)||!e.n.d)&&(!dC(t.a.c)||!e.n.b)&&(e.g.d+=r.Math.max(0,i/2-.5)),(!hC(t.a.c)||!e.n.a)&&(!dC(t.a.c)||!e.n.c)&&(e.g.a-=i-1))}(t)}(t)}function Db(t,e,n){t.a[e.g]=n}function Rb(t,e,n){!function(t,e,n){var r,i;for(TC(t,t.j+e,t.k+n),i=new WP((!t.a&&(t.a=new YP(Wie,t,5)),t.a));i.e!=i.i.gc();)xC(r=ZR(fnt(i),469),r.a+e,r.b+n);kC(t,t.b+e,t.c+n)}(n,t,e)}function zb(t,e){!function(t,e){hC(t.f)?function(t,e){var n,r,i,a,o;for(a=t.g.a,o=t.g.b,r=new md(t.d);r.a=t.length)return{done:!0};var r=t[n++];return{value:[r,e.get(r)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);if(void 0!==e[t])return!1;var n=Object.getOwnPropertyNames(e);if(0!=n.length)return!1;if(e[t]=42,42!==e[t])return!1;if(0==Object.getOwnPropertyNames(e).length)return!1;return!0}()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[xMt]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t});return t}()}()}function Ux(t){return t.a?t.b:0}function Hx(t){return t.a?t.b:0}function Vx(t,e){return oJ(t,e)}function qx(t,e){return Vq(t,e)}function Gx(t,e){return t.f=e,t}function Wx(t,e){return t.c=e,t}function Yx(t,e){return t.a=e,t}function $x(t,e){return t.f=e,t}function Xx(t,e){return t.k=e,t}function Kx(t,e){return t.a=e,t}function Zx(t,e){return t.e=e,t}function Jx(t,e){t.b=!0,t.d=e}function Qx(t,e){return t?0:e-1}function tw(t,e){return t.b=e,t}function ew(t,e){return t.a=e,t}function nw(t,e){return t.c=e,t}function rw(t,e){return t.d=e,t}function iw(t,e){return t.e=e,t}function aw(t,e){return t.f=e,t}function ow(t,e){return t.a=e,t}function sw(t,e){return t.b=e,t}function lw(t,e){return t.c=e,t}function cw(t,e){return t.c=e,t}function uw(t,e){return t.b=e,t}function fw(t,e){return t.d=e,t}function hw(t,e){return t.e=e,t}function dw(t,e){return t.g=e,t}function pw(t,e){return t.a=e,t}function gw(t,e){return t.i=e,t}function vw(t,e){return t.j=e,t}function mw(t,e){return t.k=e,t}function yw(t,e,n){!function(t,e,n){FF(t,new QT(e.a,n.a))}(t.a,e,n)}function bw(t){pH.call(this,t)}function xw(t){pH.call(this,t)}function ww(t){lR.call(this,t)}function _w(t){P9.call(this,t)}function kw(t){BQ.call(this,t)}function Tw(t){jH.call(this,t)}function Mw(t){jH.call(this,t)}function Aw(){cP.call(this,"")}function Sw(){this.a=0,this.b=0}function Ew(){this.b=0,this.a=0}function Cw(t,e){t.b=0,B0(t,e)}function Pw(t,e){return t.c._b(e)}function Lw(t){return t.e&&t.e()}function Ow(t){return t?t.d:null}function Iw(t,e){return N8(t.b,e)}function Dw(t){return cI(t),t.o}function Rw(){Rw=P,Lie=function(){var t,e;tbt();try{if(e=ZR(Qat((bT(),soe),NDt),2014))return e}catch(Wle){if(!CP(Wle=_5(Wle),102))throw um(Wle);t=Wle,Lj((qC(),t))}return new sl}()}function zw(){zw=P,Oie=function(){var t;return uae?ZR(Vht((bT(),soe),NDt),2016):(t=ZR(CP(oq((bT(),soe),NDt),555)?oq(soe,NDt):new Gft,555),uae=!0,function(t){if(t.q)return;t.q=!0,t.p=V3(t,0),t.a=V3(t,1),S2(t.a,0),t.f=V3(t,2),S2(t.f,1),A2(t.f,2),t.n=V3(t,3),A2(t.n,3),A2(t.n,4),A2(t.n,5),A2(t.n,6),t.g=V3(t,4),S2(t.g,7),A2(t.g,8),t.c=V3(t,5),S2(t.c,7),S2(t.c,8),t.i=V3(t,6),S2(t.i,9),S2(t.i,10),S2(t.i,11),S2(t.i,12),A2(t.i,13),t.j=V3(t,7),S2(t.j,9),t.d=V3(t,8),S2(t.d,3),S2(t.d,4),S2(t.d,5),S2(t.d,6),A2(t.d,7),A2(t.d,8),A2(t.d,9),A2(t.d,10),t.b=V3(t,9),A2(t.b,0),A2(t.b,1),t.e=V3(t,10),A2(t.e,1),A2(t.e,2),A2(t.e,3),A2(t.e,4),S2(t.e,5),S2(t.e,6),S2(t.e,7),S2(t.e,8),S2(t.e,9),S2(t.e,10),A2(t.e,11),t.k=V3(t,11),A2(t.k,0),A2(t.k,1),t.o=q3(t,12),t.s=q3(t,13)}(t),function(t){var e,n,r,i,a,o,s,l,c;if(t.r)return;t.r=!0,k2(t,"graph"),T2(t,"graph"),M2(t,NDt),v5(t.o,"T"),fZ(EV(t.a),t.p),fZ(EV(t.f),t.a),fZ(EV(t.n),t.f),fZ(EV(t.g),t.n),fZ(EV(t.c),t.n),fZ(EV(t.i),t.c),fZ(EV(t.j),t.c),fZ(EV(t.d),t.f),fZ(EV(t.e),t.a),TW(t.p,cVt,YAt,!0,!0,!1),l=l6(t.p,t.p,"setProperty"),c=O5(l),r=AH(t.o),i=new sm,fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),a=SH(c),bot(i,a),Jat(l,r,FDt),r=SH(c),Jat(l,r,BDt),l=l6(t.p,null,"getProperty"),c=O5(l),r=AH(t.o),i=SH(c),fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),Jat(l,r,FDt),r=SH(c),s=hst(l,r,null),!!s&&s.Fi(),l=l6(t.p,t.wb.e,"hasProperty"),r=AH(t.o),i=new sm,fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),Jat(l,r,FDt),l=l6(t.p,t.p,"copyProperties"),Pit(l,t.p,UDt),l=l6(t.p,null,"getAllProperties"),r=AH(t.wb.P),i=AH(t.o),fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),e=new sm,a=e,fZ((!i.d&&(i.d=new YP(uoe,i,1)),i.d),a),i=AH(t.wb.M),fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),o=hst(l,r,null),!!o&&o.Fi(),TW(t.a,Gie,lDt,!0,!1,!0),Eit(ZR(a0(oV(t.a),0),18),t.k,null,HDt,0,-1,Gie,!1,!1,!0,!0,!1,!1,!1),TW(t.f,Yie,uDt,!0,!1,!0),Eit(ZR(a0(oV(t.f),0),18),t.g,ZR(a0(oV(t.g),0),18),"labels",0,-1,Yie,!1,!1,!0,!0,!1,!1,!1),G2(ZR(a0(oV(t.f),1),34),t.wb._,VDt,null,0,1,Yie,!1,!1,!0,!1,!0,!1),TW(t.n,$ie,"ElkShape",!0,!1,!0),G2(ZR(a0(oV(t.n),0),34),t.wb.t,qDt,fMt,1,1,$ie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.n),1),34),t.wb.t,GDt,fMt,1,1,$ie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.n),2),34),t.wb.t,"x",fMt,1,1,$ie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.n),3),34),t.wb.t,"y",fMt,1,1,$ie,!1,!1,!0,!1,!0,!1),l=l6(t.n,null,"setDimensions"),Pit(l,t.wb.t,GDt),Pit(l,t.wb.t,qDt),l=l6(t.n,null,"setLocation"),Pit(l,t.wb.t,"x"),Pit(l,t.wb.t,"y"),TW(t.g,nae,vDt,!1,!1,!0),Eit(ZR(a0(oV(t.g),0),18),t.f,ZR(a0(oV(t.f),0),18),WDt,0,1,nae,!1,!1,!0,!1,!1,!1,!1),G2(ZR(a0(oV(t.g),1),34),t.wb._,YDt,"",0,1,nae,!1,!1,!0,!1,!0,!1),TW(t.c,Xie,fDt,!0,!1,!0),Eit(ZR(a0(oV(t.c),0),18),t.d,ZR(a0(oV(t.d),1),18),"outgoingEdges",0,-1,Xie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.c),1),18),t.d,ZR(a0(oV(t.d),2),18),"incomingEdges",0,-1,Xie,!1,!1,!0,!1,!0,!1,!1),TW(t.i,rae,mDt,!1,!1,!0),Eit(ZR(a0(oV(t.i),0),18),t.j,ZR(a0(oV(t.j),0),18),"ports",0,-1,rae,!1,!1,!0,!0,!1,!1,!1),Eit(ZR(a0(oV(t.i),1),18),t.i,ZR(a0(oV(t.i),2),18),$Dt,0,-1,rae,!1,!1,!0,!0,!1,!1,!1),Eit(ZR(a0(oV(t.i),2),18),t.i,ZR(a0(oV(t.i),1),18),WDt,0,1,rae,!1,!1,!0,!1,!1,!1,!1),Eit(ZR(a0(oV(t.i),3),18),t.d,ZR(a0(oV(t.d),0),18),"containedEdges",0,-1,rae,!1,!1,!0,!0,!1,!1,!1),G2(ZR(a0(oV(t.i),4),34),t.wb.e,XDt,null,0,1,rae,!0,!0,!1,!1,!0,!0),TW(t.j,iae,yDt,!1,!1,!0),Eit(ZR(a0(oV(t.j),0),18),t.i,ZR(a0(oV(t.i),0),18),WDt,0,1,iae,!1,!1,!0,!1,!1,!1,!1),TW(t.d,Kie,hDt,!1,!1,!0),Eit(ZR(a0(oV(t.d),0),18),t.i,ZR(a0(oV(t.i),3),18),"containingNode",0,1,Kie,!1,!1,!0,!1,!1,!1,!1),Eit(ZR(a0(oV(t.d),1),18),t.c,ZR(a0(oV(t.c),0),18),KDt,0,-1,Kie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.d),2),18),t.c,ZR(a0(oV(t.c),1),18),ZDt,0,-1,Kie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.d),3),18),t.e,ZR(a0(oV(t.e),5),18),JDt,0,-1,Kie,!1,!1,!0,!0,!1,!1,!1),G2(ZR(a0(oV(t.d),4),34),t.wb.e,"hyperedge",null,0,1,Kie,!0,!0,!1,!1,!0,!0),G2(ZR(a0(oV(t.d),5),34),t.wb.e,XDt,null,0,1,Kie,!0,!0,!1,!1,!0,!0),G2(ZR(a0(oV(t.d),6),34),t.wb.e,"selfloop",null,0,1,Kie,!0,!0,!1,!1,!0,!0),G2(ZR(a0(oV(t.d),7),34),t.wb.e,"connected",null,0,1,Kie,!0,!0,!1,!1,!0,!0),TW(t.b,Wie,cDt,!1,!1,!0),G2(ZR(a0(oV(t.b),0),34),t.wb.t,"x",fMt,1,1,Wie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.b),1),34),t.wb.t,"y",fMt,1,1,Wie,!1,!1,!0,!1,!0,!1),l=l6(t.b,null,"set"),Pit(l,t.wb.t,"x"),Pit(l,t.wb.t,"y"),TW(t.e,Zie,dDt,!1,!1,!0),G2(ZR(a0(oV(t.e),0),34),t.wb.t,"startX",null,0,1,Zie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.e),1),34),t.wb.t,"startY",null,0,1,Zie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.e),2),34),t.wb.t,"endX",null,0,1,Zie,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.e),3),34),t.wb.t,"endY",null,0,1,Zie,!1,!1,!0,!1,!0,!1),Eit(ZR(a0(oV(t.e),4),18),t.b,null,QDt,0,-1,Zie,!1,!1,!0,!0,!1,!1,!1),Eit(ZR(a0(oV(t.e),5),18),t.d,ZR(a0(oV(t.d),3),18),WDt,0,1,Zie,!1,!1,!0,!1,!1,!1,!1),Eit(ZR(a0(oV(t.e),6),18),t.c,null,tRt,0,1,Zie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.e),7),18),t.c,null,eRt,0,1,Zie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.e),8),18),t.e,ZR(a0(oV(t.e),9),18),nRt,0,-1,Zie,!1,!1,!0,!1,!0,!1,!1),Eit(ZR(a0(oV(t.e),9),18),t.e,ZR(a0(oV(t.e),8),18),rRt,0,-1,Zie,!1,!1,!0,!1,!0,!1,!1),G2(ZR(a0(oV(t.e),10),34),t.wb._,VDt,null,0,1,Zie,!1,!1,!0,!1,!0,!1),l=l6(t.e,null,"setStartLocation"),Pit(l,t.wb.t,"x"),Pit(l,t.wb.t,"y"),l=l6(t.e,null,"setEndLocation"),Pit(l,t.wb.t,"x"),Pit(l,t.wb.t,"y"),TW(t.k,eFt,"ElkPropertyToValueMapEntry",!1,!1,!1),r=AH(t.o),n=new sm,i=n,fZ((!r.d&&(r.d=new YP(uoe,r,1)),r.d),i),Eft(ZR(a0(oV(t.k),0),34),r,"key",eFt,!1,!1,!0,!1),G2(ZR(a0(oV(t.k),1),34),t.s,BDt,null,0,1,eFt,!1,!1,!0,!1,!0,!1),ZU(t.o,k9t,"IProperty",!0),ZU(t.s,Yjt,"PropertyValue",!0),c8(t,NDt)}(t),Sit(t),qq(soe,NDt,t),t)}()}function Nw(){Nw=P,voe=function(){var t,e;tbt();try{if(e=ZR(Qat((bT(),soe),hNt),1941))return e}catch(Wle){if(!CP(Wle=_5(Wle),102))throw um(Wle);t=Wle,Lj((qC(),t))}return new Vl}()}function jw(){jw=P,Lse=function(){var t,e;iJ();try{if(e=ZR(Qat((bT(),soe),VNt),2024))return e}catch(Wle){if(!CP(Wle=_5(Wle),102))throw um(Wle);t=Wle,Lj((qC(),t))}return new zc}()}function Fw(){Fw=P,Ose=function(){var t;return ule?ZR(Vht((bT(),soe),VNt),1945):(function(){GE(Pse,new Xc),GE(rle,new ou),GE(ile,new mu),GE(ale,new Eu),GE(iBt,new Ou),GE(qx(Jle,1),new Iu),GE(jFt,new Du),GE(UFt,new Ru),GE(iBt,new Fc),GE(iBt,new Bc),GE(iBt,new Uc),GE(qFt,new Hc),GE(iBt,new Vc),GE(tFt,new qc),GE(tFt,new Gc),GE(iBt,new Wc),GE(GFt,new Yc),GE(iBt,new $c),GE(iBt,new Kc),GE(iBt,new Zc),GE(iBt,new Jc),GE(iBt,new Qc),GE(qx(Jle,1),new tu),GE(iBt,new eu),GE(iBt,new nu),GE(tFt,new ru),GE(tFt,new iu),GE(iBt,new au),GE($Ft,new su),GE(iBt,new lu),GE(KFt,new cu),GE(iBt,new uu),GE(iBt,new fu),GE(iBt,new hu),GE(iBt,new du),GE(tFt,new pu),GE(tFt,new gu),GE(iBt,new vu),GE(iBt,new yu),GE(iBt,new bu),GE(iBt,new xu),GE(iBt,new wu),GE(iBt,new _u),GE(nBt,new ku),GE(iBt,new Tu),GE(iBt,new Mu),GE(iBt,new Au),GE(nBt,new Su),GE(KFt,new Cu),GE(iBt,new Pu),GE($Ft,new Lu)}(),t=ZR(CP(oq((bT(),soe),VNt),586)?oq(soe,VNt):new LU,586),ule=!0,function(t){if(t.N)return;t.N=!0,t.b=V3(t,0),A2(t.b,0),A2(t.b,1),A2(t.b,2),t.bb=V3(t,1),A2(t.bb,0),A2(t.bb,1),t.fb=V3(t,2),A2(t.fb,3),A2(t.fb,4),S2(t.fb,5),t.qb=V3(t,3),A2(t.qb,0),S2(t.qb,1),S2(t.qb,2),A2(t.qb,3),A2(t.qb,4),S2(t.qb,5),A2(t.qb,6),t.a=q3(t,4),t.c=q3(t,5),t.d=q3(t,6),t.e=q3(t,7),t.f=q3(t,8),t.g=q3(t,9),t.i=q3(t,10),t.j=q3(t,11),t.k=q3(t,12),t.n=q3(t,13),t.o=q3(t,14),t.p=q3(t,15),t.q=q3(t,16),t.s=q3(t,17),t.r=q3(t,18),t.t=q3(t,19),t.u=q3(t,20),t.v=q3(t,21),t.w=q3(t,22),t.B=q3(t,23),t.A=q3(t,24),t.C=q3(t,25),t.D=q3(t,26),t.F=q3(t,27),t.G=q3(t,28),t.H=q3(t,29),t.J=q3(t,30),t.I=q3(t,31),t.K=q3(t,32),t.M=q3(t,33),t.L=q3(t,34),t.P=q3(t,35),t.Q=q3(t,36),t.R=q3(t,37),t.S=q3(t,38),t.T=q3(t,39),t.U=q3(t,40),t.V=q3(t,41),t.X=q3(t,42),t.W=q3(t,43),t.Y=q3(t,44),t.Z=q3(t,45),t.$=q3(t,46),t._=q3(t,47),t.ab=q3(t,48),t.cb=q3(t,49),t.db=q3(t,50),t.eb=q3(t,51),t.gb=q3(t,52),t.hb=q3(t,53),t.ib=q3(t,54),t.jb=q3(t,55),t.kb=q3(t,56),t.lb=q3(t,57),t.mb=q3(t,58),t.nb=q3(t,59),t.ob=q3(t,60),t.pb=q3(t,61)}(t),function(t){var e;if(t.O)return;t.O=!0,k2(t,"type"),T2(t,"ecore.xml.type"),M2(t,VNt),e=ZR(Vht((bT(),soe),VNt),1945),fZ(EV(t.fb),t.b),TW(t.b,Pse,"AnyType",!1,!1,!0),G2(ZR(a0(oV(t.b),0),34),t.wb.D,eNt,null,0,-1,Pse,!1,!1,!0,!1,!1,!1),G2(ZR(a0(oV(t.b),1),34),t.wb.D,"any",null,0,-1,Pse,!0,!0,!0,!1,!1,!0),G2(ZR(a0(oV(t.b),2),34),t.wb.D,"anyAttribute",null,0,-1,Pse,!1,!1,!0,!1,!1,!1),TW(t.bb,rle,$Nt,!1,!1,!0),G2(ZR(a0(oV(t.bb),0),34),t.gb,"data",null,0,1,rle,!1,!1,!0,!1,!0,!1),G2(ZR(a0(oV(t.bb),1),34),t.gb,pRt,null,1,1,rle,!1,!1,!0,!1,!0,!1),TW(t.fb,ile,XNt,!1,!1,!0),G2(ZR(a0(oV(t.fb),0),34),e.gb,"rawValue",null,0,1,ile,!0,!0,!0,!1,!0,!0),G2(ZR(a0(oV(t.fb),1),34),e.a,BDt,null,0,1,ile,!0,!0,!0,!1,!0,!0),Eit(ZR(a0(oV(t.fb),2),18),t.wb.q,null,"instanceType",1,1,ile,!1,!1,!0,!1,!1,!1,!1),TW(t.qb,ale,KNt,!1,!1,!0),G2(ZR(a0(oV(t.qb),0),34),t.wb.D,eNt,null,0,-1,null,!1,!1,!0,!1,!1,!1),Eit(ZR(a0(oV(t.qb),1),18),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Eit(ZR(a0(oV(t.qb),2),18),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),G2(ZR(a0(oV(t.qb),3),34),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),G2(ZR(a0(oV(t.qb),4),34),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Eit(ZR(a0(oV(t.qb),5),18),t.bb,null,_jt,0,-2,null,!0,!0,!0,!0,!1,!1,!0),G2(ZR(a0(oV(t.qb),6),34),t.gb,YDt,null,0,-2,null,!0,!0,!0,!1,!1,!0),ZU(t.a,Yjt,"AnySimpleType",!0),ZU(t.c,iBt,"AnyURI",!0),ZU(t.d,qx(Jle,1),"Base64Binary",!0),ZU(t.e,Kle,"Boolean",!0),ZU(t.f,jFt,"BooleanObject",!0),ZU(t.g,Jle,"Byte",!0),ZU(t.i,UFt,"ByteObject",!0),ZU(t.j,iBt,"Date",!0),ZU(t.k,iBt,"DateTime",!0),ZU(t.n,xBt,"Decimal",!0),ZU(t.o,Qle,"Double",!0),ZU(t.p,qFt,"DoubleObject",!0),ZU(t.q,iBt,"Duration",!0),ZU(t.s,tFt,"ENTITIES",!0),ZU(t.r,tFt,"ENTITIESBase",!0),ZU(t.t,iBt,njt,!0),ZU(t.u,tce,"Float",!0),ZU(t.v,GFt,"FloatObject",!0),ZU(t.w,iBt,"GDay",!0),ZU(t.B,iBt,"GMonth",!0),ZU(t.A,iBt,"GMonthDay",!0),ZU(t.C,iBt,"GYear",!0),ZU(t.D,iBt,"GYearMonth",!0),ZU(t.F,qx(Jle,1),"HexBinary",!0),ZU(t.G,iBt,"ID",!0),ZU(t.H,iBt,"IDREF",!0),ZU(t.J,tFt,"IDREFS",!0),ZU(t.I,tFt,"IDREFSBase",!0),ZU(t.K,Xle,"Int",!0),ZU(t.M,MBt,"Integer",!0),ZU(t.L,$Ft,"IntObject",!0),ZU(t.P,iBt,"Language",!0),ZU(t.Q,Zle,"Long",!0),ZU(t.R,KFt,"LongObject",!0),ZU(t.S,iBt,"Name",!0),ZU(t.T,iBt,rjt,!0),ZU(t.U,MBt,"NegativeInteger",!0),ZU(t.V,iBt,djt,!0),ZU(t.X,tFt,"NMTOKENS",!0),ZU(t.W,tFt,"NMTOKENSBase",!0),ZU(t.Y,MBt,"NonNegativeInteger",!0),ZU(t.Z,MBt,"NonPositiveInteger",!0),ZU(t.$,iBt,"NormalizedString",!0),ZU(t._,iBt,"NOTATION",!0),ZU(t.ab,iBt,"PositiveInteger",!0),ZU(t.cb,iBt,"QName",!0),ZU(t.db,ece,"Short",!0),ZU(t.eb,nBt,"ShortObject",!0),ZU(t.gb,iBt,oTt,!0),ZU(t.hb,iBt,"Time",!0),ZU(t.ib,iBt,"Token",!0),ZU(t.jb,ece,"UnsignedByte",!0),ZU(t.kb,nBt,"UnsignedByteObject",!0),ZU(t.lb,Zle,"UnsignedInt",!0),ZU(t.mb,KFt,"UnsignedIntObject",!0),ZU(t.nb,MBt,"UnsignedLong",!0),ZU(t.ob,Xle,"UnsignedShort",!0),ZU(t.pb,$Ft,"UnsignedShortObject",!0),c8(t,VNt),function(t){tdt(t.a,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"anySimpleType"])),tdt(t.b,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"anyType",rNt,eNt])),tdt(ZR(a0(oV(t.b),0),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,zNt,yRt,":mixed"])),tdt(ZR(a0(oV(t.b),1),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,zNt,HNt,qNt,yRt,":1",QNt,"lax"])),tdt(ZR(a0(oV(t.b),2),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,DNt,HNt,qNt,yRt,":2",QNt,"lax"])),tdt(t.c,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"anyURI",UNt,NNt])),tdt(t.d,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"base64Binary",UNt,NNt])),tdt(t.e,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,X_t,UNt,NNt])),tdt(t.f,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"boolean:Object",gNt,X_t])),tdt(t.g,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Vzt])),tdt(t.i,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"byte:Object",gNt,Vzt])),tdt(t.j,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"date",UNt,NNt])),tdt(t.k,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"dateTime",UNt,NNt])),tdt(t.n,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"decimal",UNt,NNt])),tdt(t.o,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Gzt,UNt,NNt])),tdt(t.p,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"double:Object",gNt,Gzt])),tdt(t.q,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"duration",UNt,NNt])),tdt(t.s,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"ENTITIES",gNt,tjt,ejt,"1"])),tdt(t.r,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,tjt,jNt,njt])),tdt(t.t,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,njt,gNt,rjt])),tdt(t.u,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Wzt,UNt,NNt])),tdt(t.v,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"float:Object",gNt,Wzt])),tdt(t.w,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"gDay",UNt,NNt])),tdt(t.B,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"gMonth",UNt,NNt])),tdt(t.A,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"gMonthDay",UNt,NNt])),tdt(t.C,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"gYear",UNt,NNt])),tdt(t.D,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"gYearMonth",UNt,NNt])),tdt(t.F,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"hexBinary",UNt,NNt])),tdt(t.G,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"ID",gNt,rjt])),tdt(t.H,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"IDREF",gNt,rjt])),tdt(t.J,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"IDREFS",gNt,ijt,ejt,"1"])),tdt(t.I,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,ijt,jNt,"IDREF"])),tdt(t.K,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Yzt])),tdt(t.M,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,ajt])),tdt(t.L,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"int:Object",gNt,Yzt])),tdt(t.P,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"language",gNt,ojt,sjt,ljt])),tdt(t.Q,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,$zt])),tdt(t.R,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"long:Object",gNt,$zt])),tdt(t.S,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"Name",gNt,ojt,sjt,cjt])),tdt(t.T,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,rjt,gNt,"Name",sjt,ujt])),tdt(t.U,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"negativeInteger",gNt,fjt,hjt,"-1"])),tdt(t.V,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,djt,gNt,ojt,sjt,"\\c+"])),tdt(t.X,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"NMTOKENS",gNt,pjt,ejt,"1"])),tdt(t.W,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,pjt,jNt,djt])),tdt(t.Y,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,gjt,gNt,ajt,vjt,"0"])),tdt(t.Z,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,fjt,gNt,ajt,hjt,"0"])),tdt(t.$,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,mjt,gNt,Z_t,UNt,"replace"])),tdt(t._,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"NOTATION",UNt,NNt])),tdt(t.ab,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"positiveInteger",gNt,gjt,vjt,"1"])),tdt(t.bb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"processingInstruction_._type",rNt,"empty"])),tdt(ZR(a0(oV(t.bb),0),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,INt,yRt,"data"])),tdt(ZR(a0(oV(t.bb),1),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,INt,yRt,pRt])),tdt(t.cb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"QName",UNt,NNt])),tdt(t.db,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Xzt])),tdt(t.eb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"short:Object",gNt,Xzt])),tdt(t.fb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"simpleAnyType",rNt,ONt])),tdt(ZR(a0(oV(t.fb),0),34),nNt,R5(qx(iBt,1),Akt,2,6,[yRt,":3",rNt,ONt])),tdt(ZR(a0(oV(t.fb),1),34),nNt,R5(qx(iBt,1),Akt,2,6,[yRt,":4",rNt,ONt])),tdt(ZR(a0(oV(t.fb),2),18),nNt,R5(qx(iBt,1),Akt,2,6,[yRt,":5",rNt,ONt])),tdt(t.gb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,Z_t,UNt,"preserve"])),tdt(t.hb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"time",UNt,NNt])),tdt(t.ib,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,ojt,gNt,mjt,UNt,NNt])),tdt(t.jb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,yjt,hjt,"255",vjt,"0"])),tdt(t.kb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"unsignedByte:Object",gNt,yjt])),tdt(t.lb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,bjt,hjt,"4294967295",vjt,"0"])),tdt(t.mb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"unsignedInt:Object",gNt,bjt])),tdt(t.nb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"unsignedLong",gNt,gjt,hjt,xjt,vjt,"0"])),tdt(t.ob,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,wjt,hjt,"65535",vjt,"0"])),tdt(t.pb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"unsignedShort:Object",gNt,wjt])),tdt(t.qb,nNt,R5(qx(iBt,1),Akt,2,6,[yRt,"",rNt,eNt])),tdt(ZR(a0(oV(t.qb),0),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,zNt,yRt,":mixed"])),tdt(ZR(a0(oV(t.qb),1),18),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,INt,yRt,"xmlns:prefix"])),tdt(ZR(a0(oV(t.qb),2),18),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,INt,yRt,"xsi:schemaLocation"])),tdt(ZR(a0(oV(t.qb),3),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,RNt,yRt,"cDATA",FNt,BNt])),tdt(ZR(a0(oV(t.qb),4),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,RNt,yRt,"comment",FNt,BNt])),tdt(ZR(a0(oV(t.qb),5),18),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,RNt,yRt,_jt,FNt,BNt])),tdt(ZR(a0(oV(t.qb),6),34),nNt,R5(qx(iBt,1),Akt,2,6,[rNt,RNt,yRt,YDt,FNt,BNt]))}(t)}(t),RU((xT(),goe),t,new jc),Sit(t),qq(soe,VNt,t),t)}()}function Bw(){Bw=P,Cae=c1()}function Uw(){throw um(new Rm)}function Hw(){throw um(new Rm)}function Vw(){throw um(new Rm)}function qw(){throw um(new Rm)}function Gw(){throw um(new Rm)}function Ww(){throw um(new Rm)}function Yw(t){this.a=new wk(t)}function $w(t){Mwt(),function(t,e){var n,r,i,a,o,s,l,c;if(n=0,o=0,a=e.length,s=null,c=new Ox,o1?GG(qj(e.a[1],32),qG(e.a[0],cMt)):qG(e.a[0],cMt),XW(n9(e.e,n))))}(t,new EC(l));for(t.d=c.a.length,i=0;i0}(ZR(t,33))?jL(r,(Zet(),A9t))||jL(r,S9t):jL(r,(Zet(),A9t));if(CP(t,352))return jL(r,(Zet(),T9t));if(CP(t,186))return jL(r,(Zet(),E9t));if(CP(t,354))return jL(r,(Zet(),M9t))}return!0}(t,e)}function s_(t,e,n){t.splice(e,n)}function l_(t){t.c?bgt(t):xgt(t)}function c_(t){this.a=0,this.b=t}function u_(){this.a=new $dt(v6t)}function f_(){this.b=new $dt(a4t)}function h_(){this.b=new $dt(c7t)}function d_(){this.b=new $dt(c7t)}function p_(){throw um(new Rm)}function g_(){throw um(new Rm)}function v_(){throw um(new Rm)}function m_(){throw um(new Rm)}function y_(){throw um(new Rm)}function b_(){throw um(new Rm)}function x_(){throw um(new Rm)}function w_(){throw um(new Rm)}function __(){throw um(new Rm)}function k_(){throw um(new Rm)}function T_(t){this.a=new M_(t)}function M_(t){!function(t,e,n){var r;t.b=e,t.a=n,r=512==(512&t.a)?new Qy:new zu,t.c=function(t,e,n){var r,i,a;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,16==(16&t.e)&&(t.i=function(t){var e,n,r,i,a;r=t.length,e=new Px,a=0;for(;ae&&e0)){if(a=-1,32==YU(f.c,0)){if(h=u[0],JJ(e,u),u[0]>h)continue}else if(NV(e,f.c,u[0])){u[0]+=f.c.length;continue}return 0}if(a<0&&f.a&&(a=c,o=u[0],i=0),a>=0){if(l=f.b,c==a&&0==(l-=i++))return 0;if(!Rwt(e,u,f,l,s)){c=a-1,u[0]=o;continue}}else if(a=-1,!Rwt(e,u,f,0,s))return 0}if(!function(t,e){var n,i,a,o,s,l;0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>nTt&&JY(e,t.p-ATt),s=e.q.getDate(),bq(e,1),t.k>=0&&function(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),Pyt(t,n)}(e,t.k),t.c>=0?bq(e,t.c):t.k>=0?(i=35-new x4(e.q.getFullYear()-ATt,e.q.getMonth(),35).q.getDate(),bq(e,r.Math.min(i,s))):bq(e,s);t.f<0&&(t.f=e.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),function(t,e){t.q.setHours(e),Pyt(t,e)}(e,24==t.f&&t.g?0:t.f),t.j>=0&&function(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),Pyt(t,n)}(e,t.j),t.n>=0&&function(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),Pyt(t,n)}(e,t.n),t.i>=0&&TE(e,e9(n9(Hat(z3(e.q.getTime()),hTt),hTt),t.i)),t.a&&(JY(a=new sk,a.q.getFullYear()-ATt-80),IT(z3(e.q.getTime()),z3(a.q.getTime()))&&JY(e,a.q.getFullYear()-ATt+100));if(t.d>=0)if(-1==t.c)(n=(7+t.d-e.q.getDay())%7)>3&&(n-=7),l=e.q.getMonth(),bq(e,e.q.getDate()+n),e.q.getMonth()!=l&&bq(e,e.q.getDate()+(n>0?-7:7));else if(e.q.getDay()!=t.d)return!1;t.o>nTt&&(o=e.q.getTimezoneOffset(),TE(e,e9(z3(e.q.getTime()),60*(t.o-o)*hTt)));return!0}(s,n))return 0;return u[0]}(t,e,a),0==n||n0}function IT(t,e){return w8(t,e)<0}function DT(t,e){return t.a.get(e)}function RT(t,e){return SF(t.e,e)}function zT(t){return yU(t),!1}function NT(t){DG.call(this,t,21)}function jT(t,e){yq.call(this,t,e)}function FT(t,e){W_.call(this,t,e)}function BT(t,e){W_.call(this,t,e)}function UT(t){KB(),rR.call(this,t)}function HT(t,e){tj(t,t.length,e)}function VT(t,e){aB(t,t.length,e)}function qT(t,e,n){t.splice(e,0,n)}function GT(t,e){this.d=t,this.e=e}function WT(t,e){this.b=t,this.a=e}function YT(t,e){this.b=t,this.a=e}function $T(t,e){this.b=t,this.a=e}function XT(t,e){this.a=t,this.b=e}function KT(t,e){this.a=t,this.b=e}function ZT(t,e){this.a=t,this.b=e}function JT(t,e){this.a=t,this.b=e}function QT(t,e){this.a=t,this.b=e}function tM(t,e){this.b=t,this.a=e}function eM(t,e){this.b=t,this.a=e}function nM(t,e){W_.call(this,t,e)}function rM(t,e){W_.call(this,t,e)}function iM(t,e){W_.call(this,t,e)}function aM(t,e){W_.call(this,t,e)}function oM(t,e){W_.call(this,t,e)}function sM(t,e){W_.call(this,t,e)}function lM(t,e){W_.call(this,t,e)}function cM(t,e){W_.call(this,t,e)}function uM(t,e){W_.call(this,t,e)}function fM(t,e){W_.call(this,t,e)}function hM(t,e){W_.call(this,t,e)}function dM(t,e){W_.call(this,t,e)}function pM(t,e){W_.call(this,t,e)}function gM(t,e){W_.call(this,t,e)}function vM(t,e){W_.call(this,t,e)}function mM(t,e){W_.call(this,t,e)}function yM(t,e){W_.call(this,t,e)}function bM(t,e){W_.call(this,t,e)}function xM(t,e){this.a=t,this.b=e}function wM(t,e){this.a=t,this.b=e}function _M(t,e){this.a=t,this.b=e}function kM(t,e){this.a=t,this.b=e}function TM(t,e){this.a=t,this.b=e}function MM(t,e){this.a=t,this.b=e}function AM(t,e){this.a=t,this.b=e}function SM(t,e){this.a=t,this.b=e}function EM(t,e){this.a=t,this.b=e}function CM(t,e){this.b=t,this.a=e}function PM(t,e){this.b=t,this.a=e}function LM(t,e){this.b=t,this.a=e}function OM(t,e){this.b=t,this.a=e}function IM(t,e){this.c=t,this.d=e}function DM(t,e){this.e=t,this.d=e}function RM(t,e){this.a=t,this.b=e}function zM(t,e){this.b=e,this.c=t}function NM(t,e){W_.call(this,t,e)}function jM(t,e){W_.call(this,t,e)}function FM(t,e){W_.call(this,t,e)}function BM(t,e){W_.call(this,t,e)}function UM(t,e){W_.call(this,t,e)}function HM(t,e){W_.call(this,t,e)}function VM(t,e){W_.call(this,t,e)}function qM(t,e){W_.call(this,t,e)}function GM(t,e){W_.call(this,t,e)}function WM(t,e){W_.call(this,t,e)}function YM(t,e){W_.call(this,t,e)}function $M(t,e){W_.call(this,t,e)}function XM(t,e){W_.call(this,t,e)}function KM(t,e){W_.call(this,t,e)}function ZM(t,e){W_.call(this,t,e)}function JM(t,e){W_.call(this,t,e)}function QM(t,e){W_.call(this,t,e)}function tA(t,e){W_.call(this,t,e)}function eA(t,e){W_.call(this,t,e)}function nA(t,e){W_.call(this,t,e)}function rA(t,e){W_.call(this,t,e)}function iA(t,e){W_.call(this,t,e)}function aA(t,e){W_.call(this,t,e)}function oA(t,e){W_.call(this,t,e)}function sA(t,e){W_.call(this,t,e)}function lA(t,e){W_.call(this,t,e)}function cA(t,e){W_.call(this,t,e)}function uA(t,e){W_.call(this,t,e)}function fA(t,e){W_.call(this,t,e)}function hA(t,e){W_.call(this,t,e)}function dA(t,e){W_.call(this,t,e)}function pA(t,e){W_.call(this,t,e)}function gA(t,e){W_.call(this,t,e)}function vA(t,e){W_.call(this,t,e)}function mA(t,e){this.b=t,this.a=e}function yA(t,e){this.a=t,this.b=e}function bA(t,e){this.a=t,this.b=e}function xA(t,e){this.a=t,this.b=e}function wA(t,e){this.a=t,this.b=e}function _A(t,e){W_.call(this,t,e)}function kA(t,e){W_.call(this,t,e)}function TA(t,e){this.b=t,this.d=e}function MA(t,e){W_.call(this,t,e)}function AA(t,e){W_.call(this,t,e)}function SA(t,e){this.a=t,this.b=e}function EA(t,e){this.a=t,this.b=e}function CA(t,e){W_.call(this,t,e)}function PA(t,e){W_.call(this,t,e)}function LA(t,e){W_.call(this,t,e)}function OA(t,e){W_.call(this,t,e)}function IA(t,e){W_.call(this,t,e)}function DA(t,e){W_.call(this,t,e)}function RA(t,e){W_.call(this,t,e)}function zA(t,e){W_.call(this,t,e)}function NA(t,e){W_.call(this,t,e)}function jA(t,e){W_.call(this,t,e)}function FA(t,e){W_.call(this,t,e)}function BA(t,e){W_.call(this,t,e)}function UA(t,e){W_.call(this,t,e)}function HA(t,e){W_.call(this,t,e)}function VA(t,e){W_.call(this,t,e)}function qA(t,e){W_.call(this,t,e)}function GA(t,e){return jL(t.g,e)}function WA(t,e){W_.call(this,t,e)}function YA(t,e){W_.call(this,t,e)}function $A(t,e){this.a=t,this.b=e}function XA(t,e){this.a=t,this.b=e}function KA(t,e){this.a=t,this.b=e}function ZA(t,e){W_.call(this,t,e)}function JA(t,e){W_.call(this,t,e)}function QA(t,e){W_.call(this,t,e)}function tS(t,e){W_.call(this,t,e)}function eS(t,e){W_.call(this,t,e)}function nS(t,e){W_.call(this,t,e)}function rS(t,e){W_.call(this,t,e)}function iS(t,e){W_.call(this,t,e)}function aS(t,e){W_.call(this,t,e)}function oS(t,e){W_.call(this,t,e)}function sS(t,e){W_.call(this,t,e)}function lS(t,e){W_.call(this,t,e)}function cS(t,e){W_.call(this,t,e)}function uS(t,e){W_.call(this,t,e)}function fS(t,e){W_.call(this,t,e)}function hS(t,e){W_.call(this,t,e)}function dS(t,e){this.a=t,this.b=e}function pS(t,e){this.a=t,this.b=e}function gS(t,e){this.a=t,this.b=e}function vS(t,e){this.a=t,this.b=e}function mS(t,e){this.a=t,this.b=e}function yS(t,e){this.a=t,this.b=e}function bS(t,e){this.a=t,this.b=e}function xS(t,e){W_.call(this,t,e)}function wS(t,e){this.a=t,this.b=e}function _S(t,e){this.a=t,this.b=e}function kS(t,e){this.a=t,this.b=e}function TS(t,e){this.a=t,this.b=e}function MS(t,e){this.a=t,this.b=e}function AS(t,e){this.a=t,this.b=e}function SS(t,e){this.b=t,this.a=e}function ES(t,e){this.b=t,this.a=e}function CS(t,e){this.b=t,this.a=e}function PS(t,e){this.b=t,this.a=e}function LS(t,e){this.a=t,this.b=e}function OS(t,e){this.a=t,this.b=e}function IS(t,e){!function(t,e){if(CP(e,239))return function(t,e){var n;if(n=v0(t.i,e),null==n)throw um(new ux("Node did not exist in input."));return f3(e,n),null}(t,ZR(e,33));if(CP(e,186))return function(t,e){var n;if(n=UB(t.k,e),null==n)throw um(new ux("Port did not exist in input."));return f3(e,n),null}(t,ZR(e,118));if(CP(e,354))return function(t,e){var n;return n=UB(t.f,e),f3(e,n),null}(t,ZR(e,137));if(CP(e,352))return function(t,e){var n,r,i,a,o,s,l,c;if(l=ZR(UB(t.c,e),183),!l)throw um(new ux("Edge did not exist in input."));a=ret(l),i=A_((!e.a&&(e.a=new bF(Zie,e,6,6)),e.a)),!i&&(n=new NR(t,a,c=new Ah),function(t,e){!function(t,e){var n;n=0;for(;t.e!=t.i.gc();)cN(e,fnt(t),g7(n)),n!=Q_t&&++n}(new WP(t),e)}((!e.a&&(e.a=new bF(Zie,e,6,6)),e.a),n),PQ(l,JDt,c));r=GK(e,(L_t(),Wte)),r&&!(!(o=ZR(kht(e,Wte),74))||pU(o))&&(Y$(o,new bv(s=new Ah)),PQ(l,"junctionPoints",s));return Dz(l,"container",kq(e).k),null}(t,ZR(e,79));if(e)return null;throw um(new Kb(lRt+Gst(new ox(R5(qx(Yjt,1),akt,1,5,[e])))))}(t.a,ZR(e,56))}function DS(t,e){!function(t,e){gz(),nz(t,new bS(e,g7(e.e.c.length+e.g.c.length)))}(t.a,ZR(e,11))}function RS(){return Bx(),new jBt}function zS(){hG(),this.b=new Km}function NS(){_pt(),this.a=new Km}function jS(){sG(),pj.call(this)}function FS(t,e){W_.call(this,t,e)}function BS(t,e){this.a=t,this.b=e}function US(t,e){this.a=t,this.b=e}function HS(t,e){this.a=t,this.b=e}function VS(t,e){this.a=t,this.b=e}function qS(t,e){this.a=t,this.b=e}function GS(t,e){this.a=t,this.b=e}function WS(t,e){this.d=t,this.b=e}function YS(t,e){this.d=t,this.e=e}function $S(t,e){this.f=t,this.c=e}function XS(t,e){this.b=t,this.c=e}function KS(t,e){this.i=t,this.g=e}function ZS(t,e){this.e=t,this.a=e}function JS(t,e){this.a=t,this.b=e}function QS(t,e){t.i=null,J1(t,e)}function tE(t,e){return btt(t.a,e)}function eE(t){return wtt(t.c,t.b)}function nE(t){return t?t.dd():null}function rE(t){return null==t?null:t}function iE(t){return typeof t===X_t}function aE(t){return typeof t===K_t}function oE(t){return typeof t===Z_t}function sE(t,e){return t.Hd().Xb(e)}function lE(t,e){return function(t,e){MB(e);for(;t.Ob();)if(!f5(ZR(t.Pb(),10)))return!1;return!0}(t.Kc(),e)}function cE(t,e){return 0==w8(t,e)}function uE(t,e){return 0!=w8(t,e)}function fE(t){return""+(yU(t),t)}function hE(t,e){return t.substr(e)}function dE(t){return L9(t),t.d.gc()}function pE(t){return function(t,e){var n,r,i;for(n=new md(t.a.a);n.ae?1:0}function rP(t,e){return w8(t,e)>0?t:e}function iP(t,e,n){return{l:t,m:e,h:n}}function aP(t,e){null!=t.a&&DS(e,t.a)}function oP(t){t.a=new O,t.c=new O}function sP(t){this.b=t,this.a=new rm}function lP(t){this.b=new ee,this.a=t}function cP(t){lD.call(this),this.a=t}function uP(){FT.call(this,"Range",2)}function fP(){Aat(),this.a=new $dt(sGt)}function hP(t,e,n){return Btt(e,n,t.c)}function dP(t){return new KA(t.c,t.d)}function pP(t){return new KA(t.c,t.d)}function gP(t){return new KA(t.a,t.b)}function vP(t,e){return function(t,e,n){var r,i,a,o,s,l,c,u,f;!n&&(n=function(t){var e;return e=new m,e.a=t,e.b=function(t){var e;if(0==t)return"Etc/GMT";t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+";return e+YJ(t)}(t),e.c=XK(iBt,Akt,2,2,6,1),e.c[0]=L2(t),e.c[1]=L2(t),e}(e.q.getTimezoneOffset())),i=6e4*(e.q.getTimezoneOffset()-n.a),s=new dI(e9(z3(e.q.getTime()),i)),l=s,s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(i>0?i-=864e5:i+=864e5,l=new dI(e9(z3(e.q.getTime()),i)));for(u=new Ox,c=t.a.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(o=a+1;o=c)throw um(new Kb("Missing trailing '"));o+11)throw um(new Kb(WNt));for(u=mpt(t.e.Tg(),e),r=ZR(t.g,119),o=0;o0),a=ZR(c.a.Xb(c.c=--c.b),17);a!=r&&c.b>0;)t.a[a.p]=!0,t.a[r.p]=!0,AO(c.b>0),a=ZR(c.a.Xb(c.c=--c.b),17);c.b>0&&uU(c)}}(t,e,n),n}function OP(t,e,n){t.a=1502^e,t.b=n^kMt}function IP(t,e,n){return t.a[e.g][n.g]}function DP(t,e){return t.a[e.c.p][e.p]}function RP(t,e){return t.e[e.c.p][e.p]}function zP(t,e){return t.c[e.c.p][e.p]}function NP(t,e){return t.j[e.p]=function(t){var e,n,r,i;for(e=0,n=0,i=new md(t.j);i.a1||n>1)return 2;if(e+n==1)return 2;return 0}(e)}function jP(t,e){return t.a*=e,t.b*=e,t}function FP(t,e,n){return zB(t.g,e,n),n}function BP(t){t.a=ZR(H3(t.b.a,4),126)}function UP(t){t.a=ZR(H3(t.b.a,4),126)}function HP(t){RV(t,xRt),Edt(t,function(t){var e,n,r,i,a;switch(RV(t,xRt),(!t.b&&(t.b=new LD(Xie,t,4,7)),t.b).i+(!t.c&&(t.c=new LD(Xie,t,5,8)),t.c).i){case 0:throw um(new Kb("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new LD(Xie,t,4,7)),t.b).i?Eq(ist(ZR(a0((!t.c&&(t.c=new LD(Xie,t,5,8)),t.c),0),82))):Eq(ist(ZR(a0((!t.b&&(t.b=new LD(Xie,t,4,7)),t.b),0),82)))}if(1==(!t.b&&(t.b=new LD(Xie,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new LD(Xie,t,5,8)),t.c).i){if(i=ist(ZR(a0((!t.b&&(t.b=new LD(Xie,t,4,7)),t.b),0),82)),a=ist(ZR(a0((!t.c&&(t.c=new LD(Xie,t,5,8)),t.c),0),82)),Eq(i)==Eq(a))return Eq(i);if(i==Eq(a))return i;if(a==Eq(i))return a}r=$F(t1(R5(qx(Jjt,1),akt,20,0,[(!t.b&&(t.b=new LD(Xie,t,4,7)),t.b),(!t.c&&(t.c=new LD(Xie,t,5,8)),t.c)]))),e=ist(ZR(wX(r),82));for(;Kft(r);)if((n=ist(ZR(wX(r),82)))!=e&&!YQ(n,e))if(Eq(n)==Eq(e))e=Eq(n);else if(!(e=Yht(e,n)))return null;return e}(t))}function VP(){VP=P,VBt=new Lb(null)}function qP(){(qP=P)(),XBt=new G}function GP(){this.Bb|=256,this.Bb|=512}function WP(t){this.i=t,this.f=this.i.j}function YP(t,e,n){Tz.call(this,t,e,n)}function $P(t,e,n){YP.call(this,t,e,n)}function XP(t,e,n){YP.call(this,t,e,n)}function KP(t,e,n){$P.call(this,t,e,n)}function ZP(t,e,n){Tz.call(this,t,e,n)}function JP(t,e,n){Tz.call(this,t,e,n)}function QP(t,e,n){Cz.call(this,t,e,n)}function tL(t,e,n){Cz.call(this,t,e,n)}function eL(t,e,n){QP.call(this,t,e,n)}function nL(t,e,n){ZP.call(this,t,e,n)}function rL(t,e){this.a=t,nk.call(this,e)}function iL(t,e){this.a=t,gx.call(this,e)}function aL(t,e){this.a=t,gx.call(this,e)}function oL(t,e){this.a=t,gx.call(this,e)}function sL(t){this.a=t,lh.call(this,t.d)}function lL(t){this.c=t,this.a=this.c.a}function cL(t,e){this.a=e,gx.call(this,t)}function uL(t,e){this.a=e,u$.call(this,t)}function fL(t,e){this.a=t,u$.call(this,e)}function hL(t,e){return function(e,n,r){try{!function(t,e,n){if(MB(e),n.Ob())for(wE(e,OB(n.Pb()));n.Ob();)wE(e,t.a),wE(e,OB(n.Pb()))}(e,n,r)}catch(t){throw CP(t=_5(t),597)?um(new nX(t)):um(t)}return n}(t,new Lx,e).a}function dL(t,e){return MB(e),new pL(t,e)}function pL(t,e){this.a=e,ok.call(this,t)}function gL(t){this.b=t,this.a=this.b.a.e}function vL(t){t.b.Qb(),--t.d.f.d,lj(t.d)}function mL(t){Qf.call(this,ZR(MB(t),35))}function yL(t){Qf.call(this,ZR(MB(t),35))}function bL(){W_.call(this,"INSTANCE",0)}function xL(t){if(!t)throw um(new Om)}function wL(t){if(!t)throw um(new Im)}function _L(t){if(!t)throw um(new jm)}function kL(){kL=P,kT(),_se=new jf}function TL(){TL=P,RFt=!1,zFt=!0}function ML(t){td.call(this,(yU(t),t))}function AL(t){td.call(this,(yU(t),t))}function SL(t){fd.call(this,t),this.a=t}function EL(t){hd.call(this,t),this.a=t}function CL(t){Dx.call(this,t),this.a=t}function PL(){_P(this),VH(this),this._d()}function LL(t,e){this.a=e,ok.call(this,t)}function OL(t,e){return new kct(t.a,t.b,e)}function IL(t,e){return t.lastIndexOf(e)}function DL(t,e,n){return t.indexOf(e,n)}function RL(t){return null==t?lkt:E9(t)}function zL(t){return null!=t.a?t.a:null}function NL(t,e){return null!=fq(t.a,e)}function jL(t,e){return!!e&&t.b[e.g]==e}function FL(t){return t.$H||(t.$H=++wUt)}function BL(t,e){return nz(e.a,t.a),t.a}function UL(t,e){return nz(e.b,t.a),t.a}function HL(t,e){return nz(e.a,t.a),t.a}function VL(t){return AO(null!=t.a),t.a}function qL(t){Md.call(this,new eZ(t))}function GL(t,e){Tet.call(this,t,e,null)}function WL(t){this.a=t,ud.call(this,t)}function YL(){YL=P,KHt=new FI(OAt,0)}function $L(t,e){return++t.b,nz(t.a,e)}function XL(t,e){return++t.b,sJ(t.a,e)}function KL(t,e){return ZR(FX(t.b,e),15)}function ZL(t){return QC(t.a)||QC(t.b)}function JL(t,e,n){return OY(t,e,n,t.c)}function QL(t,e,n){ZR(_J(t,e),21).Fc(n)}function tO(t,e){wT(),this.a=t,this.b=e}function eO(t,e){_T(),this.b=t,this.c=e}function nO(t,e){vj(),this.f=e,this.d=t}function rO(t,e){VX(e,t),this.d=t,this.c=e}function iO(t){var e;e=t.a,t.a=t.b,t.b=e}function aO(t,e){return new DD(t,t.gc(),e)}function oO(t){this.d=t,WP.call(this,t)}function sO(t){this.c=t,WP.call(this,t)}function lO(t){this.c=t,oO.call(this,t)}function cO(){Jk(),this.b=new Vp(this)}function uO(t){return v1(t,$kt),new mK(t)}function fO(t){return OV(),parseInt(t)||-1}function hO(t,e,n){return t.substr(e,n-e)}function dO(t,e,n){return DL(t,mst(e),n)}function pO(t){return iB(t.c,t.c.length)}function gO(t){return null!=t.f?t.f:""+t.g}function vO(t){return AO(0!=t.b),t.a.a.c}function mO(t){return AO(0!=t.b),t.c.b.c}function yO(t){CP(t,150)&&ZR(t,150).Gh()}function bO(t){return t.b=ZR(BH(t.a),42)}function xO(t){Nk(),this.b=t,this.a=!0}function wO(t){jk(),this.b=t,this.a=!0}function _O(t){t.d=new SO(t),t.e=new im}function kO(t){if(!t)throw um(new zm)}function TO(t){if(!t)throw um(new Om)}function MO(t){if(!t)throw um(new Im)}function AO(t){if(!t)throw um(new jm)}function SO(t){lz.call(this,t,null,null)}function EO(){W_.call(this,"POLYOMINO",0)}function CO(t,e,n,r){Ij.call(this,t,e,n,r)}function PO(t,e){return!!t.q&&SF(t.q,e)}function LO(t,e,n){t.Zc(e).Rb(n)}function OO(t,e,n){return t.a+=e,t.b+=n,t}function IO(t,e,n){return t.a*=e,t.b*=n,t}function DO(t,e,n){return t.a-=e,t.b-=n,t}function RO(t,e){return t.a=e.a,t.b=e.b,t}function zO(t){return t.a=-t.a,t.b=-t.b,t}function NO(t){this.c=t,this.a=1,this.b=1}function jO(t){this.c=t,I0(t,0),D0(t,0)}function FO(t){Mk.call(this),i1(this,t)}function BO(t){p_t(),cm(this),this.mf(t)}function UO(t,e){wT(),tO.call(this,t,e)}function HO(t,e){_T(),eO.call(this,t,e)}function VO(t,e){_T(),eO.call(this,t,e)}function qO(t,e){_T(),HO.call(this,t,e)}function GO(t,e,n){xZ.call(this,t,e,n,2)}function WO(t,e){$C(),jN.call(this,t,e)}function YO(t,e){$C(),WO.call(this,t,e)}function $O(t,e){$C(),WO.call(this,t,e)}function XO(t,e){$C(),$O.call(this,t,e)}function KO(t,e){$C(),jN.call(this,t,e)}function ZO(t,e){$C(),KO.call(this,t,e)}function JO(t,e){$C(),jN.call(this,t,e)}function QO(t,e,n){return Pbt(AJ(t,e),n)}function tI(t,e){return S8(t.e,ZR(e,49))}function eI(t,e){e.$modCount=t.$modCount}function nI(){nI=P,h6t=new Pv("root")}function rI(){rI=P,Dae=new Ny,new jy}function iI(){this.a=new QV,this.b=new QV}function aI(){T1.call(this),this.Bb|=iMt}function oI(){W_.call(this,"GROW_TREE",0)}function sI(t){return null==t?null:function(t){var e,n,r,i,a,o,s,l,c,u,f,h,d,p,g;if(tyt(),null==t)return null;if(f=8*t.length,0==f)return"";for(h=f/24|0,a=null,a=XK($le,fTt,25,4*(0!=(s=f%24)?h+1:h),15,1),c=0,u=0,e=0,n=0,r=0,o=0,i=0,l=0;l>24,c=(3&e)<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,p=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,g=0==(-128&(r=t[i++]))?r>>6<<24>>24:(r>>6^252)<<24>>24,a[o++]=hle[d],a[o++]=hle[p|c<<4],a[o++]=hle[u<<2|g],a[o++]=hle[63&r];8==s?(c=(3&(e=t[i]))<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,a[o++]=hle[d],a[o++]=hle[c<<4],a[o++]=61,a[o++]=61):16==s&&(e=t[i],u=(15&(n=t[i+1]))<<24>>24,c=(3&e)<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,p=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,a[o++]=hle[d],a[o++]=hle[p|c<<4],a[o++]=hle[u<<2],a[o++]=61);return Xtt(a,0,a.length)}(t)}function lI(t){return null==t?null:function(t){var e,n,r,i;if(kgt(),null==t)return null;for(r=t.length,e=XK($le,fTt,25,2*r,15,1),n=0;n>4],e[2*n+1]=ple[15&i];return Xtt(e,0,e.length)}(t)}function cI(t){null==t.o&&function(t){if(t.pe()){var e=t.c;return e.qe()?t.o="["+e.n:e.pe()?t.o="["+e.ne():t.o="[L"+e.ne()+";",t.b=e.me()+"[]",void(t.k=e.oe()+"[]")}var n=t.j,r=t.d;r=r.split("/"),t.o=$tt(".",[n,$tt("$",r)]),t.b=$tt(".",[n,$tt(".",r)]),t.k=r[r.length-1]}(t)}function uI(t){return Kz(null==t||iE(t)),t}function fI(t){return Kz(null==t||aE(t)),t}function hI(t){return Kz(null==t||oE(t)),t}function dI(t){this.q=new r.Date(XW(t))}function pI(t,e){this.c=t,Y_.call(this,t,e)}function gI(t,e){this.a=t,pI.call(this,t,e)}function vI(t,e){this.d=t,$h(this),this.b=e}function mI(t,e){QK.call(this,t),this.a=e}function yI(t,e){QK.call(this,t),this.a=e}function bI(t){utt.call(this,0,0),this.f=t}function xI(t,e,n){gK.call(this,t,e,n,null)}function wI(t,e,n){gK.call(this,t,e,n,null)}function _I(t,e){return ZR(WJ(t.b,e),149)}function kI(t,e){return ZR(WJ(t.c,e),229)}function TI(t){return ZR(TN(t.a,t.b),287)}function MI(t){return new KA(t.c,t.d+t.a)}function AI(t){return uG(),pC(ZR(t,197))}function SI(){SI=P,XHt=J7((Ltt(),nie))}function EI(t,e){e.a?function(t,e){var n,r,i,a,o;if(o=sB(t.a,e.b),!o)throw um(new Zb("Invalid hitboxes for scanline overlap calculation."));for(a=!1,n=new vD(new WL(new ld(t.a.a).a).b),i=new cd(n);PT(i.a.a);)if(r=ZR(bO(i.a).cd(),65),s4(e.b,r))yw(t.b.a,e.b,r),a=!0;else if(a)break}(t,e):NL(t.a,e.b)}function CI(t,e){cUt||nz(t.a,e)}function PI(t,e){return RV(e,TAt),t.f=e,t}function LI(t,e,n){return n=umt(t,e,3,n)}function OI(t,e,n){return n=umt(t,e,6,n)}function II(t,e,n){return n=umt(t,e,9,n)}function DI(t,e,n){++t.j,t.Ki(),YK(t,e,n)}function RI(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function zI(t,e,n){t.Zc(e).Rb(n)}function NI(t,e,n){return obt(t.c,t.b,e,n)}function jI(t,e){return(e&Q_t)%t.d.length}function FI(t,e){Pv.call(this,t),this.a=e}function BI(t,e){qv.call(this,t),this.a=e}function UI(t,e){qv.call(this,t),this.a=e}function HI(t,e){this.c=t,BQ.call(this,e)}function VI(t,e){this.a=t,Vv.call(this,e)}function qI(t,e){this.a=t,Vv.call(this,e)}function GI(t){this.a=(v1(t,$kt),new mK(t))}function WI(t){this.a=(v1(t,$kt),new mK(t))}function YI(t){return!t.a&&(t.a=new p),t.a}function $I(t){return t>8?0:t+1}function XI(t,e,n){return ZN(t,ZR(e,22),n)}function KI(t,e,n){return t.a+=Xtt(e,0,n),t}function ZI(t,e){var n;return n=t.e,t.e=e,n}function JI(t,e){t[xMt].call(t,e)}function QI(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function tD(t){WF(t.e),t.d.b=t.d,t.d.a=t.d}function eD(t){t.b?eD(t.b):t.f.c.zc(t.e,t.d)}function nD(t,e){return Vx(new Array(e),t)}function rD(t){return String.fromCharCode(t)}function iD(){this.a=new rm,this.b=new rm}function aD(){this.a=new he,this.b=new Hm}function oD(){this.b=new Sw,this.c=new rm}function sD(){this.d=new Sw,this.e=new Sw}function lD(){this.n=new Sw,this.o=new Sw}function cD(){this.n=new Ay,this.i=new uC}function uD(){this.a=new Ju,this.b=new sa}function fD(){this.a=new rm,this.d=new rm}function hD(){this.b=new Km,this.a=new Km}function dD(){this.b=new im,this.a=new im}function pD(){this.b=new f_,this.a=new vo}function gD(){cD.call(this),this.a=new Sw}function vD(t){K3.call(this,t,(HZ(),ZBt))}function mD(t,e,n,r){BN.call(this,t,e,n,r)}function yD(t,e,n){return n=umt(t,e,11,n)}function bD(t,e){return t.a+=e.a,t.b+=e.b,t}function xD(t,e){return t.a-=e.a,t.b-=e.b,t}function wD(t,e){return null==RU(t.a,e,"")}function _D(t,e){Hb.call(this,bzt+t+MRt+e)}function kD(t,e,n,r){bF.call(this,t,e,n,r)}function TD(t,e,n,r){bF.call(this,t,e,n,r)}function MD(t,e,n,r){TD.call(this,t,e,n,r)}function AD(t,e,n,r){xF.call(this,t,e,n,r)}function SD(t,e,n,r){xF.call(this,t,e,n,r)}function ED(t,e,n,r){xF.call(this,t,e,n,r)}function CD(t,e,n,r){SD.call(this,t,e,n,r)}function PD(t,e,n,r){SD.call(this,t,e,n,r)}function LD(t,e,n,r){ED.call(this,t,e,n,r)}function OD(t,e,n,r){PD.call(this,t,e,n,r)}function ID(t,e,n,r){vF.call(this,t,e,n,r)}function DD(t,e,n){this.a=t,rO.call(this,e,n)}function RD(t,e,n){this.c=e,this.b=n,this.a=t}function zD(t,e){return t.Aj().Nh().Kh(t,e)}function ND(t,e){return t.Aj().Nh().Ih(t,e)}function jD(t,e){return yU(t),rE(t)===rE(e)}function FD(t,e){return yU(t),rE(t)===rE(e)}function BD(t,e){return Ow(ztt(t.a,e,!1))}function UD(t,e){return Ow(Ntt(t.a,e,!1))}function HD(t,e){return t.b.sd(new JT(t,e))}function VD(t,e,n){return t.lastIndexOf(e,n)}function qD(t){return t.c?uJ(t.c.a,t,0):-1}function GD(t){return t==lre||t==ure||t==cre}function WD(t,e){return CP(e,15)&&Cgt(t.c,e)}function YD(t,e){return!!a6(t,e)}function $D(t,e){this.c=t,QF.call(this,t,e)}function XD(t){this.c=t,SE.call(this,Pkt,0)}function KD(t,e){oz.call(this,t,t.length,e)}function ZD(t,e,n){return ZR(t.c,69).mk(e,n)}function JD(t,e,n){return function(t,e,n){return e.Rk(t.e,t.c,n)}(t,ZR(e,332),n)}function QD(t,e,n){return function(t,e,n){var r,i,a;return r=e.ak(),a=e.dd(),i=r.$j()?jV(t,4,r,a,null,Dyt(t,r,a,CP(r,99)&&0!=(ZR(r,18).Bb&iMt)),!0):jV(t,r.Kj()?2:1,r,a,r.zj(),-1,!0),n?n.Ei(i):n=i,n}(t,ZR(e,332),n)}function tR(t,e){return null==e?null:R8(t.b,e)}function eR(t){return aE(t)?(yU(t),t):t.ke()}function nR(t){return!isNaN(t)&&!isFinite(t)}function rR(t){mR(),this.a=(YH(),new Dx(t))}function iR(t){gz(),this.d=t,this.a=new nm}function aR(t,e,n){this.a=t,this.b=e,this.c=n}function oR(t,e,n){this.a=t,this.b=e,this.c=n}function sR(t,e,n){this.d=t,this.b=n,this.a=e}function lR(t){oP(this),UH(this),C2(this,t)}function cR(t){LC(this),cz(this.c,0,t.Pc())}function uR(t){uU(t.a),rZ(t.c,t.b),t.b=null}function fR(t){this.a=t,lk(),z3(Date.now())}function hR(){hR=P,bUt=new i,xUt=new i}function dR(){dR=P,UBt=new I,HBt=new D}function pR(){pR=P,Oae=XK(Yjt,akt,1,0,5,1)}function gR(){gR=P,qoe=XK(Yjt,akt,1,0,5,1)}function vR(){vR=P,Goe=XK(Yjt,akt,1,0,5,1)}function mR(){mR=P,new _m((YH(),YH(),SBt))}function yR(t,e){if(!t)throw um(new Kb(e))}function bR(t){BN.call(this,t.d,t.c,t.a,t.b)}function xR(t){BN.call(this,t.d,t.c,t.a,t.b)}function wR(t,e,n){this.b=t,this.c=e,this.a=n}function _R(t,e,n){this.b=t,this.a=e,this.c=n}function kR(t,e,n){this.a=t,this.b=e,this.c=n}function TR(t,e,n){this.a=t,this.b=e,this.c=n}function MR(t,e,n){this.a=t,this.b=e,this.c=n}function AR(t,e,n){this.a=t,this.b=e,this.c=n}function SR(t,e,n){this.b=t,this.a=e,this.c=n}function ER(t,e,n){this.e=e,this.b=t,this.d=n}function CR(t){var e;return(e=new wt).e=t,e}function PR(t){var e;return(e=new hy).b=t,e}function LR(){LR=P,cWt=new Dn,uWt=new Rn}function OR(){OR=P,OYt=new yi,IYt=new bi}function IR(t,e){this.c=t,this.a=e,this.b=e-t}function DR(t,e,n){this.a=t,this.b=e,this.c=n}function RR(t,e,n){this.a=t,this.b=e,this.c=n}function zR(t,e,n){this.a=t,this.b=e,this.c=n}function NR(t,e,n){this.a=t,this.b=e,this.c=n}function jR(t,e,n){this.a=t,this.b=e,this.c=n}function FR(t,e,n){this.e=t,this.a=e,this.c=n}function BR(t,e,n){$C(),eq.call(this,t,e,n)}function UR(t,e,n){$C(),rU.call(this,t,e,n)}function HR(t,e,n){$C(),rU.call(this,t,e,n)}function VR(t,e,n){$C(),rU.call(this,t,e,n)}function qR(t,e,n){$C(),UR.call(this,t,e,n)}function GR(t,e,n){$C(),UR.call(this,t,e,n)}function WR(t,e,n){$C(),GR.call(this,t,e,n)}function YR(t,e,n){$C(),HR.call(this,t,e,n)}function $R(t,e,n){$C(),VR.call(this,t,e,n)}function XR(t,e){return MB(t),MB(e),new B_(t,e)}function KR(t,e){return MB(t),MB(e),new Uz(t,e)}function ZR(t,e){return Kz(null==t||Lnt(t,e)),t}function JR(t){var e;return GJ(e=new rm,t),e}function QR(t){var e;return O2(e=new iy,t),e}function tz(t){var e;return O2(e=new Mk,t),e}function ez(t){return!t.e&&(t.e=new rm),t.e}function nz(t,e){return t.c[t.c.length]=e,!0}function rz(t,e){this.c=t,this.b=e,this.a=!1}function iz(t){this.d=t,$h(this),this.b=function(t){return CP(t,15)?ZR(t,15).Yc():t.Kc()}(t.d)}function az(){this.a=";,;",this.b="",this.c=""}function oz(t,e,n){cF.call(this,e,n),this.a=t}function sz(t,e,n){this.b=t,ME.call(this,e,n)}function lz(t,e,n){this.c=t,GT.call(this,e,n)}function cz(t,e,n){fut(n,0,t,e,n.length,!1)}function uz(t,e,n,r,i){t.b=e,t.c=n,t.d=r,t.a=i}function fz(t,e,n,r,i){t.d=e,t.c=n,t.a=r,t.b=i}function hz(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function dz(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function pz(t){return O3(function(t){return iP(~t.l&VTt,~t.m&VTt,~t.h&qTt)}(eC(t)?$3(t):t))}function gz(){gz=P,Pwt(),t5t=qre,e5t=Tre}function vz(){this.b=ex(fI(cnt((Vgt(),_qt))))}function mz(t){return Hk(),XK(Yjt,akt,1,t,5,1)}function yz(t){return new KA(t.c+t.b,t.d+t.a)}function bz(t){return AO(0!=t.b),XQ(t,t.a.a)}function xz(t){return AO(0!=t.b),XQ(t,t.c.b)}function wz(t,e){if(!t)throw um(new Vb(e))}function _z(t,e){if(!t)throw um(new Kb(e))}function kz(t,e,n){IM.call(this,t,e),this.b=n}function Tz(t,e,n){YS.call(this,t,e),this.c=n}function Mz(t,e,n){NQ.call(this,e,n),this.d=t}function Az(t){vR(),xl.call(this),this.th(t)}function Sz(t,e,n){this.a=t,HE.call(this,e,n)}function Ez(t,e,n){this.a=t,HE.call(this,e,n)}function Cz(t,e,n){YS.call(this,t,e),this.c=n}function Pz(){pX(),sU.call(this,(bT(),soe))}function Lz(t){return null!=t&&!O9(t,Xae,Kae)}function Oz(t,e){return(s7(t)<<4|s7(e))&dTt}function Iz(t,e){var n;t.n&&(n=e,nz(t.f,n))}function Dz(t,e,n){PQ(t,e,new GB(n))}function Rz(t,e){return t.g=e<0?-1:e,t}function zz(t,e){return function(t){var e;e=r.Math.sqrt(t.a*t.a+t.b*t.b),e>0&&(t.a/=e,t.b/=e)}(t),t.a*=e,t.b*=e,t}function Nz(t,e,n,r,i){t.c=e,t.d=n,t.b=r,t.a=i}function jz(t,e){return X$(t,e,t.c.b,t.c),!0}function Fz(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function Bz(t){this.b=t,this.a=zj(this.b.a).Ed()}function Uz(t,e){this.b=t,this.a=e,Fu.call(this)}function Hz(t,e){this.a=t,this.b=e,Fu.call(this)}function Vz(t,e){cF.call(this,e,1040),this.a=t}function qz(t){return 0==t||isNaN(t)?t:t<0?-1:1}function Gz(t,e){return rot(t,new IM(e.a,e.b))}function Wz(t){var e;return e=t.n,t.a.b+e.d+e.a}function Yz(t){var e;return e=t.n,t.e.b+e.d+e.a}function $z(t){var e;return e=t.n,t.e.a+e.b+e.c}function Xz(t){return R_t(),new UN(0,t)}function Kz(t){if(!t)throw um(new Xb(null))}function Zz(){Zz=P,YH(),Tse=new dd(qNt)}function Jz(){Jz=P,new Bnt((pb(),rFt),(gb(),nFt))}function Qz(){Qz=P,WFt=XK($Ft,Akt,19,256,0,1)}function tN(t,e,n,r){B9.call(this,t,e,n,r,0,0)}function eN(t){return t.e.c.length+t.g.c.length}function nN(t){return t.e.c.length-t.g.c.length}function rN(t){return t.b.c.length-t.e.c.length}function iN(t){vR(),Az.call(this,t),this.a=-1}function aN(t,e){XS.call(this,t,e),this.a=this}function oN(t,e){var n;return(n=TB(t,e)).i=2,n}function sN(t,e){return++t.j,t.Ti(e)}function lN(t,e,n){return t.a=-1,QL(t,e.g,n),t}function cN(t,e,n){!function(t,e,n,r,i){var a,o,s,l,c,u,f,h,d,p,g,v,m,y,b,x,w,_,k;w=UB(t.e,r),null==w&&(d=ZR(w=new Pb,183),h=new GB(e+"_s"+i),PQ(d,oRt,h));x=ZR(w,183),tU(n,x),tV(k=new Pb,"x",r.j),tV(k,"y",r.k),PQ(x,cRt,k),tV(y=new Pb,"x",r.b),tV(y,"y",r.c),PQ(x,"endPoint",y),f=A_((!r.a&&(r.a=new YP(Wie,r,5)),r.a)),p=!f,p&&(a=new mv(m=new Ah),Y$((!r.a&&(r.a=new YP(Wie,r,5)),r.a),a),PQ(x,QDt,m));l=Qnt(r),v=!!l,v&&kst(t.a,x,eRt,_ct(t,Qnt(r))),g=trt(r),!!g&&kst(t.a,x,tRt,_ct(t,trt(r))),c=0==(!r.e&&(r.e=new LD(Zie,r,10,9)),r.e).i,!c&&(o=new BS(t,b=new Ah),Y$((!r.e&&(r.e=new LD(Zie,r,10,9)),r.e),o),PQ(x,rRt,b));u=0==(!r.g&&(r.g=new LD(Zie,r,9,10)),r.g).i,!u&&(s=new US(t,_=new Ah),Y$((!r.g&&(r.g=new LD(Zie,r,9,10)),r.g),s),PQ(x,nRt,_))}(t.a,t.b,t.c,ZR(e,202),n)}function uN(t,e,n){return new RD(function(t){if(0>=t)return new kk;return function(t){var e,n;if(0>t)return new kk;return e=t+1,n=new aX(e,t),new yI(null,n)}(t-1)}(t).Ie(),n,e)}function fN(t,e,n,r,i,a){return eot(t,e,n,r,i,0,a)}function hN(){hN=P,FFt=XK(UFt,Akt,217,256,0,1)}function dN(){dN=P,XFt=XK(KFt,Akt,162,256,0,1)}function pN(){pN=P,eBt=XK(nBt,Akt,184,256,0,1)}function gN(){gN=P,HFt=XK(VFt,Akt,172,128,0,1)}function vN(){uz(this,!1,!1,!1,!1)}function mN(t){XB(),this.a=(YH(),new dd(MB(t)))}function yN(t){for(MB(t);t.Ob();)t.Pb(),t.Qb()}function bN(t){this.c=t,this.b=this.c.d.vc().Kc()}function xN(t){this.c=t,this.a=new Tk(this.c.a)}function wN(t){this.a=new wk(t.gc()),C2(this,t)}function _N(t){Md.call(this,new d$),C2(this,t)}function kN(t,e){return t.a+=Xtt(e,0,e.length),t}function TN(t,e){return OG(e,t.c.length),t.c[e]}function MN(t,e){return OG(e,t.a.length),t.a[e]}function AN(t,e){Hk(),QK.call(this,t),this.a=e}function SN(t,e){return function(t,e){return wet(e9(wet(t.a).a,e.a))}(ZR(t,162),ZR(e,162))}function EN(t){return t.c-ZR(TN(t.a,t.b),287).b}function CN(t){return t.q?t.q:(YH(),YH(),EBt)}function PN(t){return t.e.Hd().gc()*t.c.Hd().gc()}function LN(t,e,n){return r.Math.min(n/t,1/e)}function ON(t,e){return t?0:r.Math.max(0,e-1)}function IN(t){var e;return(e=fot(t))?IN(e):t}function DN(t,e){return null==t.a&&Ggt(t),t.a[e]}function RN(t){return t.c?t.c.f:t.e.b}function zN(t){return t.c?t.c.g:t.e.a}function NN(t){BQ.call(this,t.gc()),_B(this,t)}function jN(t,e){$C(),Gv.call(this,e),this.a=t}function FN(t,e,n){this.a=t,YP.call(this,e,n,2)}function BN(t,e,n,r){fz(this,t,e,n,r)}function UN(t,e){R_t(),tm.call(this,t),this.a=e}function HN(t){this.b=new Mk,this.a=t,this.c=-1}function VN(){this.d=new KA(0,0),this.e=new Km}function qN(t){rO.call(this,0,0),this.a=t,this.b=0}function GN(t){this.a=t,this.c=new im,function(t){var e,n,r,i;for(n=t.a,r=0,i=n.length;r>>e,i=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(a=0,i=n>>>e-22,r=t.m>>e-22|t.h<<44-e):(a=0,i=0,r=n>>>e-44);return iP(r&VTt,i&VTt,a&qTt)}(eC(t)?$3(t):t,e))}function Yj(t,e){return function(t,e){return TL(),t==e?0:t?1:-1}((yU(t),t),(yU(e),e))}function $j(t,e){return O7((yU(t),t),(yU(e),e))}function Xj(t,e){return MB(e),t.a.Ad(e)&&!t.b.Ad(e)}function Kj(t,e){return $8(t,(yU(e),new Sd(e)))}function Zj(t,e){return $8(t,(yU(e),new Ed(e)))}function Jj(t){return K2(),0!=ZR(t,11).e.c.length}function Qj(t){return K2(),0!=ZR(t,11).g.c.length}function tF(t,e,n){return function(t,e,n){var r,i,a,o,s,l,c,u,f,h;if(0!=e.e.c.length&&0!=n.e.c.length){if((r=ZR(TN(e.e,0),17).c.i)==(o=ZR(TN(n.e,0),17).c.i))return nP(ZR(Ost(ZR(TN(e.e,0),17),(O_t(),PKt)),19).a,ZR(Ost(ZR(TN(n.e,0),17),PKt),19).a);for(f=0,h=(u=t.a).length;fs?1:0:(t.b&&(t.b._b(a)&&(i=ZR(t.b.xc(a),19).a),t.b._b(l)&&(s=ZR(t.b.xc(l),19).a)),is?1:0);return 0!=e.e.c.length&&0!=n.g.c.length?1:-1}(t,ZR(e,11),ZR(n,11))}function eF(t){return t.e?lK(t.e):null}function nF(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function rF(t,e){if(t<0||t>=e)throw um(new qm)}function iF(t,e,n){return cgt(),c3(t,e)&&c3(t,n)}function aF(t){return Put(),!t.Hc(yre)&&!t.Hc(xre)}function oF(t){return new KA(t.c+t.b/2,t.d+t.a/2)}function sF(t,e){return e.kh()?S8(t.b,ZR(e,49)):e}function lF(t,e){this.e=t,this.d=0!=(64&e)?e|Skt:e}function cF(t,e){this.c=0,this.d=t,this.b=64|e|Skt}function uF(t){this.b=new mK(11),this.a=($H(),t)}function fF(t){this.b=null,this.a=($H(),t||LBt)}function hF(t){this.a=znt(t.a),this.b=new cR(t.b)}function dF(t){this.b=t,oO.call(this,t),BP(this)}function pF(t){this.b=t,lO.call(this,t),UP(this)}function gF(t,e,n){this.a=t,kD.call(this,e,n,5,6)}function vF(t,e,n,r){this.b=t,YP.call(this,e,n,r)}function mF(t,e,n,r,i){wZ.call(this,t,e,n,r,i,-1)}function yF(t,e,n,r,i){_Z.call(this,t,e,n,r,i,-1)}function bF(t,e,n,r){YP.call(this,t,e,n),this.b=r}function xF(t,e,n,r){Tz.call(this,t,e,n),this.b=r}function wF(t){$S.call(this,t,!1),this.a=!1}function _F(t,e){this.b=t,lh.call(this,t.b),this.a=e}function kF(t,e){XB(),J_.call(this,t,O8(new ox(e)))}function TF(t,e){return R_t(),new iU(t,e,0)}function MF(t,e){return R_t(),new iU(6,t,e)}function AF(t,e){return FD(t.substr(0,e.length),e)}function SF(t,e){return oE(e)?uV(t,e):!!zV(t.f,e)}function EF(t,e){for(yU(e);t.Ob();)e.td(t.Pb())}function CF(t,e,n){ggt(),this.e=t,this.d=e,this.a=n}function PF(t,e,n,r){var i;(i=t.i).i=e,i.a=n,i.b=r}function LF(t){var e;for(e=t;e.f;)e=e.f;return e}function OF(t){var e;return AO(null!=(e=T4(t))),e}function IF(t){var e;return e=function(t){var e;if(e=t.a[t.c-1&t.a.length-1],null==e)return null;return t.c=t.c-1&t.a.length-1,zB(t.a,t.c,null),e}(t),AO(null!=e),e}function DF(t,e){var n;return VX(e,n=t.a.gc()),n-e}function RF(t,e){var n;for(n=0;nt||t>e)throw um(new Sx("fromIndex: 0, toIndex: "+t+SMt+e))}(e,t.length),new Vz(t,e)}(t,t.length))}function $F(t){return new Oj(new cL(t.a.length,t.a))}function XF(t){return typeof t===$_t||typeof t===J_t}function KF(t,e){return w8(t,e)<0?-1:w8(t,e)>0?1:0}function ZF(t,e,n){return Tbt(t,ZR(e,46),ZR(n,167))}function JF(t,e){return ZR(jj(zj(t.a)).Xb(e),42).cd()}function QF(t,e){this.d=t,WP.call(this,t),this.e=e}function tB(t){this.d=(yU(t),t),this.a=0,this.c=Pkt}function eB(t,e){tm.call(this,1),this.a=t,this.b=e}function nB(t,e){return t.c?nB(t.c,e):nz(t.b,e),t}function rB(t,e,n){var r;return r=XJ(t,e),QY(t,e,n),r}function iB(t,e){return oJ(t.slice(0,e),t)}function aB(t,e,n){var r;for(r=0;r=14&&n<=16);case 11:return null!=e&&typeof e===J_t;case 12:return null!=e&&(typeof e===$_t||typeof e==J_t);case 0:return Lnt(e,t.__elementTypeId$);case 2:return XF(e)&&!(e.im===C);case 1:return XF(e)&&!(e.im===C)||Lnt(e,t.__elementTypeId$);default:return!0}}(t,n)),t[e]=n}function NB(t,e){var n;return HW(e,n=t.a.gc()),n-1-e}function jB(t,e){return t.a+=String.fromCharCode(e),t}function FB(t,e){return t.a+=String.fromCharCode(e),t}function BB(t,e){for(yU(e);t.c0?(vnt(t,n,0),n.a+=String.fromCharCode(r),vnt(t,n,i=fet(e,a)),a+=i-1):39==r?a+1=t.g}function QB(t,e,n){return rvt(t,u2(t,e,n))}function tU(t,e){var n;XJ(t,n=t.a.length),QY(t,n,e)}function eU(t,e){console[t].call(console,e)}function nU(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function rU(t,e,n){Gv.call(this,e),this.a=t,this.b=n}function iU(t,e,n){tm.call(this,t),this.a=e,this.b=n}function aU(t,e,n){this.a=t,qv.call(this,e),this.b=n}function oU(t,e,n){this.a=t,hY.call(this,8,e,null,n)}function sU(t){this.a=(yU(nNt),nNt),this.b=t,new Yy}function lU(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function cU(t){this.c=t,this.b=t.a.d.a,eI(t.a.e,this)}function uU(t){MO(-1!=t.c),t.d.$c(t.c),t.b=t.c,t.c=-1}function fU(t){return r.Math.sqrt(t.a*t.a+t.b*t.b)}function hU(t,e){return rF(e,t.a.c.length),TN(t.a,e)}function dU(t,e){return rE(t)===rE(e)||null!=t&&K8(t,e)}function pU(t){return t?t.dc():!t.Kc().Ob()}function gU(t){return!t.a&&t.c?t.c.b:t.a}function vU(t){return!t.a&&(t.a=new YP(qie,t,4)),t.a}function mU(t){return!t.d&&(t.d=new YP(uoe,t,1)),t.d}function yU(t){if(null==t)throw um(new Dm);return t}function bU(t){t.c?t.c.He():(t.d=!0,function(t){var e,n,r,i,a;if(a=new rm,$Q(t.b,new qd(a)),t.b.c=XK(Yjt,akt,1,0,5,1),0!=a.c.length){for(OG(0,a.c.length),e=ZR(a.c[0],78),n=1,r=a.c.length;n0;)t=t<<1|(t<0?1:0);return t}function VU(t,e){return rE(t)===rE(e)||null!=t&&K8(t,e)}function qU(t,e){return ij(t.a,e)?t.b[ZR(e,22).g]:null}function GU(t,e,n,r){t.a=hO(t.a,0,e)+""+r+hE(t.a,n)}function WU(t,e){t.u.Hc((Put(),yre))&&function(t,e){var n,i,a,o;for(o=ZR(qU(t.b,e),124),n=o.a,a=ZR(ZR(FX(t.r,e),21),84).Kc();a.Ob();)(i=ZR(a.Pb(),111)).c&&(n.a=r.Math.max(n.a,$z(i.c)));if(n.a>0)switch(e.g){case 2:o.n.c=t.s;break;case 4:o.n.b=t.s}}(t,e),function(t,e){var n;t.C&&((n=ZR(qU(t.b,e),124).n).d=t.C.d,n.a=t.C.a)}(t,e)}function YU(t,e){return IG(e,t.length),t.charCodeAt(e)}function $U(){Eb.call(this,"There is no more element.")}function XU(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function KU(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function ZU(t,e,n,r){return u3(t,e,n,!1),f7(t,r),t}function JU(t){return!t.n&&(t.n=new bF(nae,t,1,7)),t.n}function QU(t){return!t.c&&(t.c=new bF(iae,t,9,9)),t.c}function tH(t){return t.e==GNt&&function(t,e){t.e=e}(t,function(t,e){var n,r;if(n=e.Hh(t.a),n&&null!=(r=hI(xtt((!n.b&&(n.b=new GO((N_t(),Noe),Qoe,n)),n.b),yRt))))return r;return e.ne()}(t.g,t.b)),t.e}function eH(t){return t.f==GNt&&function(t,e){t.f=e}(t,function(t,e){var n,r;return n=e.Hh(t.a),n?(r=hI(xtt((!n.b&&(n.b=new GO((N_t(),Noe),Qoe,n)),n.b),FNt)),FD(BNt,r)?Pj(t,r0(e.Hj())):r):null}(t.g,t.b)),t.f}function nH(t){var e;return!(e=t.b)&&(t.b=e=new Kf(t)),e}function rH(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function iH(t){if(L9(t.d),t.d.d!=t.c)throw um(new zm)}function aH(t,e){this.b=t,this.c=e,this.a=new Tk(this.b)}function oH(t,e,n){this.a=uTt,this.d=t,this.b=e,this.c=n}function sH(t,e){this.d=(yU(t),t),this.a=16449,this.c=e}function lH(t,e){K7(t,ex(V0(e,"x")),ex(V0(e,"y")))}function cH(t,e){K7(t,ex(V0(e,"x")),ex(V0(e,"y")))}function uH(t,e){return $7(t),new AN(t,new FZ(e,t.a))}function fH(t,e){return $7(t),new AN(t,new JX(e,t.a))}function hH(t,e){return $7(t),new mI(t,new KX(e,t.a))}function dH(t,e){return $7(t),new yI(t,new ZX(e,t.a))}function pH(t){this.a=new rm,this.e=XK(Xle,Akt,48,t,0,2)}function gH(t,e,n,r){this.a=t,this.e=e,this.d=n,this.c=r}function vH(t,e,n,r){this.a=t,this.c=e,this.b=n,this.d=r}function mH(t,e,n,r){this.c=t,this.b=e,this.a=n,this.d=r}function yH(t,e,n,r){this.c=t,this.b=e,this.d=n,this.a=r}function bH(t,e,n,r){this.c=t,this.d=e,this.b=n,this.a=r}function xH(t,e,n,r){this.a=t,this.d=e,this.c=n,this.b=r}function wH(t,e,n,r){W_.call(this,t,e),this.a=n,this.b=r}function _H(t,e,n,r){this.a=t,this.c=e,this.d=n,this.b=r}function kH(t,e,n){!function(t,e){var n,r,i,a;for(function(t){var e;for(e=0;e(r=lq(n))&&++r,r}function AH(t){var e;return d0(e=new sm,t),e}function SH(t){var e;return $st(e=new sm,t),e}function EH(t){var e;return e=function(t){var e;if(e=Ost(t,(O_t(),LKt)),CP(e,160))return $9(ZR(e,160));return null}(t),e||null}function CH(t){return!t.b&&(t.b=new bF(Kie,t,12,3)),t.b}function PH(t,e,n){n.a?D0(t,e.b-t.f/2):I0(t,e.a-t.g/2)}function LH(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function OH(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function IH(t,e,n,r){this.e=t,this.a=e,this.c=n,this.d=r}function DH(t,e,n,r){this.a=t,this.c=e,this.d=n,this.b=r}function RH(t,e,n,r){$C(),LX.call(this,e,n,r),this.a=t}function zH(t,e,n,r){$C(),LX.call(this,e,n,r),this.a=t}function NH(t,e){this.a=t,vI.call(this,t,ZR(t.d,15).Zc(e))}function jH(t){this.f=t,this.c=this.f.e,t.f>0&&Cat(this)}function FH(t,e,n,r){this.b=t,this.c=r,SE.call(this,e,n)}function BH(t){return AO(t.b0)return r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0;return"stack"in new Error}(),t=new g,_Ft=e?new k:t}function IV(t,e){var n;return n=Dw(t.gm),null==e?n:n+": "+e}function DV(t,e){var n;return m$(n=t.b.Qc(e),t.b.gc()),n}function RV(t,e){if(null==t)throw um(new Qb(e));return t}function zV(t,e){return V6(t,e,function(t,e){var n;return n=t.a.get(e),null==n?new Array:n}(t,null==e?0:t.b.se(e)))}function NV(t,e,n){return n>=0&&FD(t.substr(n,e.length),e)}function jV(t,e,n,r,i,a,o){return new l$(t.e,e,n,r,i,a,o)}function FV(t,e,n,r,i,a){this.a=t,k1.call(this,e,n,r,i,a)}function BV(t,e,n,r,i,a){this.a=t,k1.call(this,e,n,r,i,a)}function UV(t,e){this.g=t,this.d=R5(qx(WGt,1),kEt,10,0,[e])}function HV(t,e){this.e=t,this.a=Yjt,this.b=evt(e),this.c=e}function VV(t,e){cD.call(this),ZQ(this),this.a=t,this.c=e}function qV(t,e,n,r){zB(t.c[e.g],n.g,r),zB(t.c[n.g],e.g,r)}function GV(t,e,n,r){zB(t.c[e.g],e.g,n),zB(t.b[e.g],e.g,r)}function WV(t,e,n,r){return n>=0?t.jh(e,n,r):t.Sg(null,n,r)}function YV(t){return 0==t.b.b?t.a.$e():bz(t.b)}function $V(t){return rE(t.a)===rE(($2(),$oe))&&function(t){var e,n,r,i,a,o,s,l,c,u;for(e=new Tl,n=new Tl,c=FD(eNt,(i=mmt(t.b,nNt))?hI(xtt((!i.b&&(i.b=new GO((N_t(),Noe),Qoe,i)),i.b),rNt)):null),l=0;l=0?t.sh(r,n):ydt(t,e,n)}function pq(t,e,n){Fq(),t&&RU(Sae,t,e),t&&RU(Aae,t,n)}function gq(t,e,n){this.i=new rm,this.b=t,this.g=e,this.a=n}function vq(t,e,n){this.c=new rm,this.e=t,this.f=e,this.b=n}function mq(t,e,n){this.a=new rm,this.e=t,this.f=e,this.c=n}function yq(t,e){_P(this),this.f=e,this.g=t,VH(this),this._d()}function bq(t,e){var n;n=t.q.getHours(),t.q.setDate(e),Pyt(t,n)}function xq(t,e){var n;for(MB(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function wq(t){var e;return I4(e=new Yw(EQ(t.length)),t),e}function _q(t,e){if(null==e)throw um(new Dm);return function(t,e){var n,r=t.a;e=String(e),r.hasOwnProperty(e)&&(n=r[e]);var i=(i4(),CFt)[typeof n];return i?i(n):Q6(typeof n)}(t,e)}function kq(t){return t.Db>>16!=3?null:ZR(t.Cb,33)}function Tq(t){return t.Db>>16!=9?null:ZR(t.Cb,33)}function Mq(t){return t.Db>>16!=6?null:ZR(t.Cb,79)}function Aq(t){return t.Db>>16!=7?null:ZR(t.Cb,235)}function Sq(t){return t.Db>>16!=7?null:ZR(t.Cb,160)}function Eq(t){return t.Db>>16!=11?null:ZR(t.Cb,33)}function Cq(t,e){var n;return(n=t.Yg(e))>=0?t.lh(n):Wut(t,e)}function Pq(t,e){var n;return Tst(n=new _N(e),t),new cR(n)}function Lq(t){var e;return e=t.d,e=t.si(t.f),fZ(t,e),e.Ob()}function Oq(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function Iq(t,e){return r.Math.abs(t)>16!=3?null:ZR(t.Cb,147)}function Uq(t){return t.Db>>16!=6?null:ZR(t.Cb,235)}function Hq(t){return t.Db>>16!=17?null:ZR(t.Cb,26)}function Vq(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function qq(t,e,n){return null==e?Jct(t.f,null,n):i9(t.g,e,n)}function Gq(t,e,n,r,i,a){return new xJ(t.e,e,t.aj(),n,r,i,a)}function Wq(t,e,n){return t.a=hO(t.a,0,e)+""+n+hE(t.a,e),t}function Yq(t,e,n){return nz(t.a,(jU(),mrt(e,n),new $_(e,n))),t}function $q(t){return _L(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function Xq(t){return _L(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function Kq(t,e){t.d&&sJ(t.d.e,t),t.d=e,t.d&&nz(t.d.e,t)}function Zq(t,e){t.c&&sJ(t.c.g,t),t.c=e,t.c&&nz(t.c.g,t)}function Jq(t,e){t.c&&sJ(t.c.a,t),t.c=e,t.c&&nz(t.c.a,t)}function Qq(t,e){t.i&&sJ(t.i.j,t),t.i=e,t.i&&nz(t.i.j,t)}function tG(t,e,n){this.a=e,this.c=t,this.b=(MB(n),new cR(n))}function eG(t,e,n){this.a=e,this.c=t,this.b=(MB(n),new cR(n))}function nG(t,e){this.a=t,this.c=gP(this.a),this.b=new TV(e)}function rG(t,e){if(t<0||t>e)throw um(new Hb(FMt+t+BMt+e))}function iG(t,e){return aj(t.a,e)?jF(t,ZR(e,22).g,null):null}function aG(){aG=P,uFt=G6((mb(),R5(qx(fFt,1),Xkt,538,0,[lFt])))}function oG(){oG=P,I3t=xj(new fY,(Ist(),iGt),(D_t(),oYt))}function sG(){sG=P,R3t=xj(new fY,(Ist(),iGt),(D_t(),oYt))}function lG(){lG=P,N3t=xj(new fY,(Ist(),iGt),(D_t(),oYt))}function cG(){cG=P,s5t=lN(new fY,(Ist(),iGt),(D_t(),OWt))}function uG(){uG=P,h5t=lN(new fY,(Ist(),iGt),(D_t(),OWt))}function fG(){fG=P,v5t=lN(new fY,(Ist(),iGt),(D_t(),OWt))}function hG(){hG=P,M5t=lN(new fY,(Ist(),iGt),(D_t(),OWt))}function dG(){dG=P,s6t=xj(new fY,(Fit(),r4t),(wct(),l4t))}function pG(t,e,n,r){this.c=t,this.d=r,mG(this,e),yG(this,n)}function gG(t){this.c=new Mk,this.b=t.b,this.d=t.c,this.a=t.a}function vG(t){this.a=r.Math.cos(t),this.b=r.Math.sin(t)}function mG(t,e){t.a&&sJ(t.a.k,t),t.a=e,t.a&&nz(t.a.k,t)}function yG(t,e){t.b&&sJ(t.b.f,t),t.b=e,t.b&&nz(t.b.f,t)}function bG(t,e){!function(t,e,n){ZR(e.b,65),$Q(e.a,new RR(t,n,e))}(t,t.b,t.c),ZR(t.b.b,65),e&&ZR(e.b,65).b}function xG(t,e){CP(t.Cb,88)&&aut(dX(ZR(t.Cb,88)),4),k2(t,e)}function wG(t,e){CP(t.Cb,179)&&(ZR(t.Cb,179).tb=null),k2(t,e)}function _G(t,e){return TT(),qJ(e)?new aN(e,t):new XS(e,t)}function kG(t){var e;return Nw(),d0(e=new sm,t),e}function TG(t){var e;return Nw(),d0(e=new sm,t),e}function MG(t,e){var n;return n=new VB(t),e.c[e.c.length]=n,n}function AG(t,e){var n;return(n=ZR(R8(KH(t.a),e),14))?n.gc():0}function SG(t){return $7(t),$H(),$H(),HQ(t,OBt)}function EG(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function CG(t,e){ab.call(this,new wk(EQ(t))),v1(e,Mkt),this.a=e}function PG(t,e,n){r7(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function LG(t,e,n){var r;r7(e,n,t.c.length),r=n-e,s_(t.c,e,r)}function OG(t,e){if(t<0||t>=e)throw um(new Hb(FMt+t+BMt+e))}function IG(t,e){if(t<0||t>=e)throw um(new Ix(FMt+t+BMt+e))}function DG(t,e){this.b=(yU(t),t),this.a=0==(e&nMt)?64|e|Skt:e}function RG(t){OC(this),Gm(this.a,_4(r.Math.max(8,t))<<1)}function zG(t){return O4(R5(qx(V9t,1),Akt,8,0,[t.i.n,t.n,t.a]))}function NG(t,e){return function(t,e,n){var r,i,a,o,s,l;if(o=new vl,s=mpt(t.e.Tg(),e),r=ZR(t.g,119),TT(),ZR(e,66).Oj())for(a=0;a0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function SW(t){return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function EW(t){return uN(t.e.Hd().gc()*t.c.Hd().gc(),16,new Vf(t))}function CW(t){return ZR(Vet(t,XK(zGt,_Et,17,t.c.length,0,1)),474)}function PW(t){return ZR(Vet(t,XK(WGt,kEt,10,t.c.length,0,1)),193)}function LW(t,e,n){MB(t),function(t){var e,n,r;for(YH(),JC(t.c,t.a),r=new md(t.c);r.a=0&&g=e)throw um(new Hb(function(t,e){if(t<0)return nvt(ikt,R5(qx(Yjt,1),akt,1,5,["index",g7(t)]));if(e<0)throw um(new Kb(okt+e));return nvt("%s (%s) must be less than size (%s)",R5(qx(Yjt,1),akt,1,5,["index",g7(t),g7(e)]))}(t,e)));return t}function VW(t,e,n){if(t<0||en)throw um(new Hb(function(t,e,n){if(t<0||t>n)return Yct(t,n,"start index");if(e<0||e>n)return Yct(e,n,"end index");return nvt("end index (%s) must not be less than start index (%s)",R5(qx(Yjt,1),akt,1,5,[g7(e),g7(t)]))}(t,e,n)))}function qW(t,e){if(FF(t.a,e),e.d)throw um(new Eb(WMt));e.d=t}function GW(t,e){if(e.$modCount!=t.$modCount)throw um(new zm)}function WW(t,e){return!!CP(e,42)&&Urt(t.a,ZR(e,42))}function YW(t,e){return!!CP(e,42)&&Urt(t.a,ZR(e,42))}function $W(t,e){return!!CP(e,42)&&Urt(t.a,ZR(e,42))}function XW(t){var e;return eC(t)?-0==(e=t)?0:e:function(t){if(mat(t,(IJ(),DFt))<0)return-function(t){return t.l+t.m*WTt+t.h*YTt}(u4(t));return t.l+t.m*WTt+t.h*YTt}(t)}function KW(t){var e;return xU(t),e=new B,Kw(t.a,new Fd(e)),e}function ZW(t){var e;return xU(t),e=new F,Kw(t.a,new jd(e)),e}function JW(t,e){this.a=t,Xh.call(this,t),rG(e,t.gc()),this.b=e}function QW(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function tY(t){return new mK((v1(t,Zkt),SQ(e9(e9(5,t),t/10|0))))}function eY(t){return ZR(Vet(t,XK(nWt,TEt,11,t.c.length,0,1)),1943)}function nY(t,e,n){t.d&&sJ(t.d.e,t),t.d=e,t.d&&QN(t.d.e,n,t)}function rY(t,e){!function(t,e){var n,i,a,o,s,l,c,u,f,h,d,p,g,v,m,y,b,x,w;if(b=0,0==e.f.b)for(m=new md(t);m.a2e3&&(xFt=t,wFt=r.setTimeout(E_,10));if(0==bFt++)return function(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=tct(e,n)}while(t.a);t.a=n}}((mx(),yFt)),!0;return!1}();try{return function(t,e,n){return t.apply(e,n)}(t,e,n)}finally{!function(t){t&&function(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=tct(e,n)}while(t.b);t.b=n}}((mx(),yFt)),--bFt,t&&-1!=wFt&&(!function(t){r.clearTimeout(t)}(wFt),wFt=-1)}(i)}}function uY(t){var e;e=t.Wg(),this.a=CP(e,69)?ZR(e,69).Zh():e.Kc()}function fY(){ub.call(this),this.j.c=XK(Yjt,akt,1,0,5,1),this.a=-1}function hY(t,e,n,r){this.d=t,this.n=e,this.g=n,this.o=r,this.p=-1}function dY(t,e,n,r){this.e=r,this.d=null,this.c=t,this.a=e,this.b=n}function pY(t,e,n){this.d=new cg(this),this.e=t,this.i=e,this.f=n}function gY(){gY=P,YXt=new tA(bAt,0),$Xt=new tA("TOP_LEFT",1)}function vY(){vY=P,U3t=NU(g7(1),g7(4)),B3t=NU(g7(1),g7(2))}function mY(){mY=P,p7t=G6((nT(),R5(qx(m7t,1),Xkt,551,0,[h7t])))}function yY(){yY=P,f7t=G6((eT(),R5(qx(d7t,1),Xkt,482,0,[u7t])))}function bY(){bY=P,l9t=G6((rT(),R5(qx(f9t,1),Xkt,530,0,[s9t])))}function xY(){xY=P,_Vt=G6((Uk(),R5(qx(EVt,1),Xkt,481,0,[wVt])))}function wY(t,e,n,r){return CP(n,54)?new CO(t,e,n,r):new Ij(t,e,n,r)}function _Y(t,e){return ZR(VL(Kj(ZR(FX(t.k,e),15).Oc(),d$t)),113)}function kY(t,e){return ZR(VL(Zj(ZR(FX(t.k,e),15).Oc(),d$t)),113)}function TY(t){return new DG(function(t,e){var n,r;for(YH(),r=new rm,n=0;n0}function EY(t){return AO(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function CY(t,e){yU(e),zB(t.a,t.c,e),t.c=t.c+1&t.a.length-1,bit(t)}function PY(t,e){yU(e),t.b=t.b-1&t.a.length-1,zB(t.a,t.b,e),bit(t)}function LY(t,e){var n;for(n=t.j.c.length;n0&&fbt(t.g,0,e,0,t.i),e}function FY(t,e){var n;return MT(),!(n=ZR(UB(Rae,t),55))||n.wj(e)}function BY(t){var e;for(e=0;t.Ob();)t.Pb(),e=e9(e,1);return SQ(e)}function UY(t,e){var n;return n=new Ox,t.xd(n),n.a+="..",e.yd(n),n.a}function HY(t,e,n){return dyt(t,e,n,CP(e,99)&&0!=(ZR(e,18).Bb&iMt))}function VY(t,e,n){return function(t,e,n,r){var i,a,o,s,l,c;if(s=new vl,l=mpt(t.e.Tg(),e),i=ZR(t.g,119),TT(),ZR(e,66).Oj())for(o=0;ot.c));o++)i.a>=t.s&&(a<0&&(a=o),s=o);l=(t.s+t.c)/2,a>=0&&(r=function(t,e,n,r){var i,a,o,s,l,c,u,f,h,d,p;if(a=n,n=n&&(r=e,a=(l=(s.c+s.a)/2)-n,s.c<=l-n&&QN(t,r++,new IR(s.c,a)),(o=l+n)<=s.a&&(i=new IR(o,s.a),rG(r,t.c.length),qT(t.c,r,i)))}(e,r,n));return l}(i,n,r),nz(e,function(t,e){t.r=new o5(t.p),function(t,e){t.r=e}(t.r,t),C2(t.r.j,t.j),UH(t.j),jz(t.j,e),jz(t.r.e,e),hB(t),hB(t.r);for(;0!=t.f.c.length;)mP(ZR(TN(t.f,0),129));for(;0!=t.k.c.length;)mP(ZR(TN(t.k,0),129));return t.r}(i,a)),function(t,e,n){var r,i,a,o;for(a=e.q,o=e.r,new pG((rK(),U5t),e,a,1),new pG(U5t,a,o,1),i=new md(n);i.a0;)r+=t.a[n],n-=n&-n;return r}function W$(t,e){var n;for(n=e;n;)OO(t,-n.i,-n.j),n=Eq(n);return t}function Y$(t,e){var n,r;for(yU(e),r=t.Kc();r.Ob();)n=r.Pb(),e.td(n)}function $$(t,e){var n;return new $_(n=e.cd(),t.e.pc(n,ZR(e.dd(),14)))}function X$(t,e,n,r){var i;(i=new O).c=e,i.b=n,i.a=r,r.b=n.a=i,++t.b}function K$(t,e,n){var r;return OG(e,t.c.length),r=t.c[e],t.c[e]=n,r}function Z$(t){return t.c&&t.d?ZG(t.c)+"->"+ZG(t.d):"e_"+FL(t)}function J$(t,e){return($7(t),n_(new AN(t,new FZ(e,t.a)))).sd(mUt)}function Q$(t){return!(!t.c||!t.d)&&(!!t.c.i&&t.c.i==t.d.i)}function tX(t){if(!t.c.Sb())throw um(new jm);return t.a=!0,t.c.Ub()}function eX(t){t.i=0,VT(t.b,null),VT(t.c,null),t.a=null,t.e=null,++t.g}function nX(t){jT.call(this,null==t?lkt:E9(t),CP(t,78)?ZR(t,78):null)}function rX(t){A_t(),cm(this),this.a=new Mk,o6(this,t),jz(this.a,t)}function iX(){LC(this),this.b=new KA(tMt,tMt),this.a=new KA(eMt,eMt)}function aX(t,e){this.c=0,this.b=e,AE.call(this,t,17493),this.a=this.c}function oX(t){sX(),cUt||(this.c=t,this.e=!0,this.a=new rm)}function sX(){sX=P,cUt=!0,sUt=!1,lUt=!1,fUt=!1,uUt=!1}function lX(t,e){return!!CP(e,149)&&FD(t.c,ZR(e,149).c)}function cX(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function uX(t,e){return ZR(WJ(t.d,e),23)||ZR(WJ(t.e,e),23)}function fX(t){this.b=t,WP.call(this,t),this.a=ZR(H3(this.b.a,4),126)}function hX(t){this.b=t,sO.call(this,t),this.a=ZR(H3(this.b.a,4),126)}function dX(t){return t.t||(t.t=new jv(t),x7(new Wb(t),0,t.t)),t.t}function pX(){var t,e;pX=P,Nw(),e=new Um,yse=e,t=new Vy,bse=t}function gX(t){var e;return t.c||CP(e=t.r,88)&&(t.c=ZR(e,26)),t.c}function vX(t){return iP(t&VTt,t>>22&VTt,t<0?qTt:0)}function mX(t,e){var n,r;n=ZR(function(e,n){MB(e);try{return e.Bc(n)}catch(t){if(CP(t=_5(t),205)||CP(t,173))return null;throw um(t)}}(t.c,e),14),n&&(r=n.gc(),n.$b(),t.d-=r)}function yX(t,e){var n;return!!(n=a6(t,e.cd()))&&VU(n.e,e.dd())}function bX(t,e){return 0==e||0==t.e?t:e>0?Dtt(t,e):Opt(t,-e)}function xX(t,e){return 0==e||0==t.e?t:e>0?Opt(t,e):Dtt(t,-e)}function wX(t){if(Kft(t))return t.c=t.a,t.a.Pb();throw um(new jm)}function _X(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(plt(),UGt)&&n.k==UGt}function kX(t){var e;return l5(e=new _V,t),d4(e,(y_t(),R0t),null),e}function TX(t,e,n){var r;return(r=t.Yg(e))>=0?t._g(r,n,!0):nft(t,e,n)}function MX(t,e,n,r){var i;for(i=0;ie)throw um(new Hb(Yct(t,e,"index")));return t}function qX(t,e,n,r){var i;return function(t,e,n,r,i){var a,o;for(a=0,o=0;ot.d[i.p]&&(n+=G$(t.b,r)*ZR(o.b,19).a,PY(t.a,g7(r)));for(;!ix(t.a);)nQ(t.b,ZR(OF(t.a),19).a)}return n}(t,n)}function sK(t){var e;return t.a||CP(e=t.r,148)&&(t.a=ZR(e,148)),t.a}function lK(t){return t.a?t.e?lK(t.e):null:t}function cK(t,e){return yU(e),t.c=0,"Initial capacity must not be negative")}function yK(){yK=P,uHt=G6((JQ(),R5(qx(fHt,1),Xkt,232,0,[sHt,lHt,cHt])))}function bK(){bK=P,mHt=G6((UZ(),R5(qx(yHt,1),Xkt,461,0,[dHt,hHt,pHt])))}function xK(){xK=P,kHt=G6((PJ(),R5(qx(THt,1),Xkt,462,0,[_Ht,wHt,xHt])))}function wK(){wK=P,gUt=G6((C6(),R5(qx(vUt,1),Xkt,132,0,[hUt,dUt,pUt])))}function _K(){_K=P,Xqt=G6((CJ(),R5(qx(Kqt,1),Xkt,379,0,[Yqt,Wqt,$qt])))}function kK(){kK=P,OGt=G6((n7(),R5(qx(IGt,1),Xkt,423,0,[LGt,PGt,CGt])))}function TK(){TK=P,C$t=G6((P1(),R5(qx(I$t,1),Xkt,314,0,[A$t,M$t,S$t])))}function MK(){MK=P,D$t=G6((f1(),R5(qx(B$t,1),Xkt,337,0,[P$t,O$t,L$t])))}function AK(){AK=P,K$t=G6((r4(),R5(qx(rXt,1),Xkt,450,0,[Y$t,W$t,$$t])))}function SK(){SK=P,e$t=G6((y2(),R5(qx(n$t,1),Xkt,361,0,[t$t,QYt,JYt])))}function EK(){EK=P,WXt=G6((LJ(),R5(qx(XXt,1),Xkt,303,0,[VXt,qXt,HXt])))}function CK(){CK=P,UXt=G6((i5(),R5(qx(GXt,1),Xkt,292,0,[jXt,FXt,NXt])))}function PK(){PK=P,M2t=G6((r8(),R5(qx(P2t,1),Xkt,378,0,[w2t,_2t,k2t])))}function LK(){LK=P,d3t=G6((g3(),R5(qx(v3t,1),Xkt,375,0,[c3t,u3t,f3t])))}function OK(){OK=P,Q2t=G6((w4(),R5(qx(n3t,1),Xkt,339,0,[K2t,X2t,Z2t])))}function IK(){IK=P,l3t=G6((u1(),R5(qx(h3t,1),Xkt,452,0,[o3t,i3t,a3t])))}function DK(){DK=P,O3t=G6((B5(),R5(qx(D3t,1),Xkt,377,0,[C3t,P3t,E3t])))}function RK(){RK=P,_3t=G6((O6(),R5(qx(A3t,1),Xkt,336,0,[b3t,x3t,w3t])))}function zK(){zK=P,S3t=G6((X2(),R5(qx(L3t,1),Xkt,338,0,[M3t,k3t,T3t])))}function NK(){NK=P,K3t=G6((h1(),R5(qx(Z3t,1),Xkt,454,0,[Y3t,$3t,X3t])))}function jK(){jK=P,x6t=G6((b9(),R5(qx(w6t,1),Xkt,442,0,[b6t,m6t,y6t])))}function FK(){FK=P,C6t=G6((E6(),R5(qx(U6t,1),Xkt,380,0,[M6t,A6t,S6t])))}function BK(){BK=P,y8t=G6((m9(),R5(qx(E8t,1),Xkt,381,0,[v8t,m8t,g8t])))}function UK(){UK=P,h8t=G6((p3(),R5(qx(d8t,1),Xkt,293,0,[c8t,u8t,l8t])))}function HK(){HK=P,l7t=G6((y9(),R5(qx(c7t,1),Xkt,437,0,[a7t,o7t,s7t])))}function VK(){VK=P,Nne=G6((P8(),R5(qx(Hne,1),Xkt,334,0,[Rne,Dne,zne])))}function qK(){qK=P,fne=G6((QQ(),R5(qx(vne,1),Xkt,272,0,[sne,lne,cne])))}function GK(t,e){return!t.o&&(t.o=new xZ((l_t(),Uie),hae,t,0)),btt(t.o,e)}function WK(t){return!t.g&&(t.g=new cl),!t.g.c&&(t.g.c=new Nv(t)),t.g.c}function YK(t,e,n){var r,i;if(null!=n)for(r=0;r=i){for(o=1;on||e=0?t._g(n,!0,!0):nft(t,e,!0)}function MZ(){MZ=P,c6t=det(det(dT(new fY,(Fit(),e4t)),(wct(),d4t)),c4t)}function AZ(t){for(;!t.a;)if(!HD(t.c,new Bd(t)))return!1;return!0}function SZ(t){return MB(t),CP(t,198)?ZR(t,198):new oh(t)}function EZ(){var t,e,n,r;EZ=P,y9t=new ps,x9t=new gs,L_t(),t=Aee,e=y9t,n=aee,r=x9t,jU(),b9t=new kb(R5(qx(eFt,1),jkt,42,0,[(mrt(t,e),new $_(t,e)),(mrt(n,r),new $_(n,r))]))}function CZ(){CZ=P,_6t=new RA("LEAF_NUMBER",0),k6t=new RA("NODE_SIZE",1)}function PZ(t){t.a=XK(Xle,STt,25,t.b+1,15,1),t.c=XK(Xle,STt,25,t.b,15,1),t.d=0}function LZ(t,e){if(null==t.g||e>=t.i)throw um(new UE(e,t.i));return t.g[e]}function OZ(t,e,n){if(w6(t,n),null!=n&&!t.wj(n))throw um(new Pm);return n}function IZ(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)a0(t,e);return jY(t)}function DZ(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function RZ(t,e){var n;return t$(e),(n=oJ(t.slice(0,e),t)).length=e,n}function zZ(t,e,n,r){$H(),r=r||LBt,$ct(t.slice(e,n),t,e,n,-e,r)}function NZ(t,e,n,r,i){return e<0?nft(t,n,r):ZR(n,66).Nj().Pj(t,t.yh(),e,r,i)}function jZ(t,e){if(e.a)throw um(new Eb(WMt));FF(t.a,e),e.a=t,!t.j&&(t.j=e)}function FZ(t,e){SE.call(this,e.rd(),-16449&e.qd()),yU(t),this.a=t,this.c=e}function BZ(t,e){var n,r;return r=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),dK(t,r,n)}function UZ(){UZ=P,dHt=new lM(_At,0),hHt=new lM(bAt,1),pHt=new lM(kAt,2)}function HZ(){HZ=P,ZBt=new FT("All",0),JBt=new CC,QBt=new uP,tUt=new PC}function VZ(){VZ=P,nUt=G6((HZ(),R5(qx(eUt,1),Xkt,297,0,[ZBt,JBt,QBt,tUt])))}function qZ(){qZ=P,xGt=G6((F5(),R5(qx(AGt,1),Xkt,405,0,[gGt,yGt,vGt,mGt])))}function GZ(){GZ=P,eVt=G6((n5(),R5(qx(nVt,1),Xkt,406,0,[tVt,ZHt,JHt,QHt])))}function WZ(){WZ=P,sVt=G6((Snt(),R5(qx(lVt,1),Xkt,323,0,[iVt,rVt,aVt,oVt])))}function YZ(){YZ=P,bVt=G6((Ent(),R5(qx(xVt,1),Xkt,394,0,[vVt,gVt,mVt,yVt])))}function $Z(){$Z=P,i4t=G6((Fit(),R5(qx(a4t,1),Xkt,393,0,[t4t,e4t,n4t,r4t])))}function XZ(){XZ=P,TYt=G6((N5(),R5(qx(MYt,1),Xkt,360,0,[kYt,wYt,_Yt,xYt])))}function KZ(){KZ=P,s8t=G6((Vrt(),R5(qx(f8t,1),Xkt,340,0,[o8t,i8t,a8t,r8t])))}function ZZ(){ZZ=P,FYt=G6((j5(),R5(qx(BYt,1),Xkt,411,0,[RYt,zYt,NYt,jYt])))}function JZ(){JZ=P,L2t=G6((Vnt(),R5(qx(N2t,1),Xkt,197,0,[E2t,C2t,S2t,A2t])))}function QZ(){QZ=P,Sie=G6((S6(),R5(qx(Eie,1),Xkt,396,0,[Tie,Mie,kie,Aie])))}function tJ(){tJ=P,Vne=G6((Uit(),R5(qx(Qne,1),Xkt,285,0,[Une,jne,Fne,Bne])))}function eJ(){eJ=P,mne=G6((v9(),R5(qx(Tne,1),Xkt,218,0,[gne,dne,hne,pne])))}function nJ(){nJ=P,xie=G6((stt(),R5(qx(wie,1),Xkt,311,0,[bie,vie,yie,mie])))}function rJ(){rJ=P,rie=G6((Ltt(),R5(qx(die,1),Xkt,374,0,[eie,nie,tie,Qre])))}function iJ(){iJ=P,tbt(),sle=tMt,ole=eMt,cle=new rd(tMt),lle=new rd(eMt)}function aJ(){aJ=P,oXt=new $M(dEt,0),aXt=new $M("IMPROVE_STRAIGHTNESS",1)}function oJ(t,e){return 10!=KJ(e)&&R5(X4(e),e.hm,e.__elementTypeId$,KJ(e),t),t}function sJ(t,e){var n;return-1!=(n=uJ(t,e,0))&&(jX(t,n),!0)}function lJ(t,e){var n;return(n=ZR(GX(t.e,e),387))?(Fz(n),n.e):null}function cJ(t){var e;return eC(t)&&(e=0-t,!isNaN(e))?e:O3(u4(t))}function uJ(t,e,n){for(;n0?(t.f[c.p]=h/(c.e.c.length+c.g.c.length),t.c=r.Math.min(t.c,t.f[c.p]),t.b=r.Math.max(t.b,t.f[c.p])):s&&(t.f[c.p]=h)}}(t,e,n),0==t.a.c.length||function(t,e){var n,r,i,a,o,s,l,c,u,f;for(c=t.e[e.c.p][e.p]+1,l=e.c.a.c.length+1,s=new md(t.a);s.a=0?Int(t,n,!0,!0):nft(t,e,!0)}function FJ(t,e){var n,r;return Jk(),n=AY(t),r=AY(e),!!n&&!!r&&!Tnt(n.k,r.k)}function BJ(t){(this.q?this.q:(YH(),YH(),EBt)).Ac(t.q?t.q:(YH(),YH(),EBt))}function UJ(t,e){fVt=new ne,hVt=e,ZR((uVt=t).b,65),KK(uVt,fVt,null),Vbt(uVt)}function HJ(t,e,n){var r;return r=t.g[e],FP(t,e,t.oi(e,n)),t.gi(e,n,r),t.ci(),r}function VJ(t,e){var n;return(n=t.Xc(e))>=0&&(t.$c(n),!0)}function qJ(t){var e;return t.d!=t.r&&(e=hat(t),t.e=!!e&&e.Cj()==Bzt,t.d=e),t.e}function GJ(t,e){var n;for(MB(t),MB(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function WJ(t,e){var n;return(n=ZR(UB(t.e,e),387))?(PP(t,n),n.e):null}function YJ(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function $J(t,e){return $7(t),new AN(t,new XD(new JX(e,t.a)))}function XJ(t,e){var n=t.a[e],r=(i4(),CFt)[typeof n];return r?r(n):Q6(typeof n)}function KJ(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function ZJ(t){var e;return null!=(e=0==t.b.c.length?null:TN(t.b,0))&&n2(t,0),e}function JJ(t,e){for(;e[0]=0;)++e[0]}function QJ(t,e){this.e=e,this.a=u5(t),this.a<54?this.f=XW(t):this.c=Yet(t)}function tQ(t,e,n,r){R_t(),tm.call(this,26),this.c=t,this.a=e,this.d=n,this.b=r}function eQ(t,e,n){var r,i;for(r=10,i=0;it.a[r]&&(r=n);return r}function sQ(t,e){return 0==e.e||0==t.e?bBt:(kft(),Zdt(t,e))}function lQ(){lQ=P,kGt=new Me,TGt=new ke,wGt=new Pe,_Gt=new Le,MGt=new Oe}function cQ(){cQ=P,DUt=new aM("BY_SIZE",0),RUt=new aM("BY_SIZE_AND_SHAPE",1)}function uQ(){uQ=P,QVt=new fM("EADES",0),tqt=new fM("FRUCHTERMAN_REINGOLD",1)}function fQ(){fQ=P,H$t=new GM("READING_DIRECTION",0),V$t=new GM("ROTATION",1)}function hQ(){hQ=P,U$t=G6((xrt(),R5(qx(q$t,1),Xkt,335,0,[z$t,R$t,j$t,F$t,N$t])))}function dQ(){dQ=P,j2t=G6((srt(),R5(qx(Y2t,1),Xkt,315,0,[z2t,I2t,D2t,O2t,R2t])))}function pQ(){pQ=P,WYt=G6((Mot(),R5(qx(ZYt,1),Xkt,363,0,[HYt,qYt,GYt,VYt,UYt])))}function gQ(){gQ=P,sZt=G6((g9(),R5(qx(NQt,1),Xkt,163,0,[aZt,eZt,nZt,rZt,iZt])))}function vQ(){vQ=P,M7t=G6((Olt(),R5(qx(j7t,1),Xkt,316,0,[b7t,x7t,k7t,w7t,_7t])))}function mQ(){mQ=P,C9t=G6((Zet(),R5(qx(j9t,1),Xkt,175,0,[S9t,A9t,T9t,E9t,M9t])))}function yQ(){yQ=P,r7t=G6((Ndt(),R5(qx(i7t,1),Xkt,355,0,[J8t,Z8t,t7t,Q8t,e7t])))}function bQ(){bQ=P,aGt=G6((Ist(),R5(qx(sGt,1),Xkt,356,0,[tGt,eGt,nGt,rGt,iGt])))}function xQ(){xQ=P,one=G6((e7(),R5(qx(une,1),Xkt,103,0,[ine,rne,nne,ene,ane])))}function wQ(){wQ=P,sre=G6((Jet(),R5(qx(pre,1),Xkt,249,0,[rre,are,ere,nre,ire])))}function _Q(){_Q=P,Wre=G6((Pwt(),R5(qx(Jre,1),pEt,61,0,[Vre,Mre,Tre,Hre,qre])))}function kQ(t,e){var n;return(n=ZR(UB(t.a,e),134))||(n=new Jt,RU(t.a,e,n)),n}function TQ(t){var e;return!!(e=ZR(Ost(t,(O_t(),QXt)),305))&&e.a==t}function MQ(t){var e;return!!(e=ZR(Ost(t,(O_t(),QXt)),305))&&e.i==t}function AQ(t,e){return yU(e),nF(t),!!t.d.Ob()&&(e.td(t.d.Pb()),!0)}function SQ(t){return w8(t,Q_t)>0?Q_t:w8(t,nTt)<0?nTt:$N(t)}function EQ(t){return t<3?(v1(t,Wkt),t+1):t=0&&e=-.01&&t.a<=EAt&&(t.a=0),t.b>=-.01&&t.b<=EAt&&(t.b=0),t}function OQ(t,e){return e==(dR(),dR(),HBt)?t.toLocaleLowerCase():t.toLowerCase()}function IQ(t){return(0!=(2&t.i)?"interface ":0!=(1&t.i)?"":"class ")+(cI(t),t.o)}function DQ(t){var e;e=new Gy,fZ((!t.q&&(t.q=new bF(foe,t,11,10)),t.q),e)}function RQ(t){this.g=t,this.f=new rm,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function zQ(t){this.b=new rm,this.a=new rm,this.c=new rm,this.d=new rm,this.e=t}function NQ(t,e){this.a=new im,this.e=new im,this.b=(r8(),k2t),this.c=t,this.b=e}function jQ(t,e,n){cD.call(this),ZQ(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function FQ(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(mb(),lFt)}function BQ(t){if(t<0)throw um(new Kb("Illegal Capacity: "+t));this.g=this.ri(t)}function UQ(t){var e;MO(!!t.c),e=t.c.a,XQ(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function HQ(t,e){var n;return $7(t),n=new FH(t,t.a.rd(),4|t.a.qd(),e),new AN(t,n)}function VQ(t,e){var n;for(n=t.Kc();n.Ob();)d4(ZR(n.Pb(),70),(O_t(),kKt),e)}function qQ(t){var e;return(e=ex(fI(Ost(t,(y_t(),k0t)))))<0&&d4(t,k0t,e=0),e}function GQ(t,e,n,r,i,a){var o;Zq(o=kX(r),i),Kq(o,a),Zut(t.a,r,new _R(o,e,n.f))}function WQ(t,e){var n;if(!(n=Qdt(t.Tg(),e)))throw um(new Kb(wDt+e+TDt));return n}function YQ(t,e){var n;for(n=t;Eq(n);)if((n=Eq(n))==e)return!0;return!1}function $Q(t,e){var n,r,i,a;for(yU(e),i=0,a=(r=t.c).length;i