'},{name:"check",data:''},{name:"firewall",data:''},{name:"gateway",data:''},{name:"pc",data:''},{name:"printer",data:''},{name:"server",data:''},{name:"switch",data:''},{name:"touch",data:''}]};i.__name__=!0,i.prototype={__class__:i};var _=function(){};_.__name__=!0,_.string=function(t){return g.__string_rec(t,"")};var s=function(){},d=function(){this.h={}};d.__name__=s.__name__=!0,d.__interfaces__=[s],d.prototype={setReserved:function(t,e){null==this.rh&&(this.rh={}),this.rh["$"+t]=e},getReserved:function(t){return null==this.rh?null:this.rh["$"+t]},__class__:d};var p=function(t){Error.call(this),this.val=t,this.message=String(t),Error.captureStackTrace&&Error.captureStackTrace(this,p)};p.__name__=!0,p.wrap=function(t){return t instanceof Error?t:new p(t)},p.__super__=Error,p.prototype=t(Error.prototype,{__class__:p});var g=function(){};g.__name__=!0,g.getClass=function(t){if(t instanceof Array&&null==t.__enum__)return Array;var e=t.__class__;if(null!=e)return e;var n=g.__nativeClassName(t);return null!=n?g.__resolveNativeClass(n):null},g.__string_rec=function(t,e){if(null==t)return"null";if(5<=e.length)return"<...>";var n=typeof t;switch("function"==n&&(t.__name__||t.__ename__)&&(n="object"),n){case"function":return"";case"object":if(t instanceof Array){if(t.__enum__){if(2==t.length)return t[0];var i=t[0]+"(";e+="\t";for(var s=2,h=t.length;sthis.connectedDevice.length},getEffectiveSubnet:function(){return null==this.subnet?"":this.subnet},checkSubnet:function(t,e){return null==e&&(e=!0),this.getEffectiveSubnet()==t.getEffectiveSubnet()||!!e&&t.checkSubnet(this,!1)},getSubnetName:function(){return this.getEffectiveSubnet()},__class__:y});var m=function(){y.call(this,"firewall",3)};m.__name__=!0,m.__super__=y,m.prototype=t(y.prototype,{checkSubnet:function(t,e){return null==e&&(e=!0),!0},__class__:m});var w=function(t){y.call(this,"gateway",1,t)};w.__name__=!0,w.__super__=y,w.prototype=t(y.prototype,{isOnline:function(){return!0},checkConnection:function(){return!0},__class__:w});var x=function(t){y.call(this,"pc",2,t)};x.__name__=!0,x.__super__=y,x.prototype=t(y.prototype,{__class__:x});var b=function(t){y.call(this,"printer",1,t)};b.__name__=!0,b.__super__=y,b.prototype=t(y.prototype,{__class__:b});var C=function(t){this.subnetUpdated=!1,this.updatingSubnet=!1,y.call(this,"switch",4,t)};C.__name__=!0,C.__super__=y,C.prototype=t(y.prototype,{resetConnection:function(){y.prototype.resetConnection.call(this),this.subnetUpdated=!1,this.effectiveSubnet=null},checkConnection:function(){return this.connectionChecking||this.connectionChecked||this.updateSubnet(),y.prototype.checkConnection.call(this)},updateSubnet:function(){if(this.updatingSubnet)return!1;if(this.subnetUpdated)return!0;this.updatingSubnet=!0;for(var t=this.connectedDevice.h;null!=t;){var e=t.item;t=t.next;var n=e;g.__instanceof(n,m)||(!g.__instanceof(n,C)||g.__cast(n,C).updateSubnet()&&null!=n.getEffectiveSubnet())&&(this.subnetUpdated||(this.effectiveSubnet=n.getEffectiveSubnet(),this.subnetUpdated=!0))}return!(this.updatingSubnet=!1)},getSubnetName:function(){return null==this.effectiveSubnet||0==this.effectiveSubnet.length?this.subnet:"~"+this.effectiveSubnet},getEffectiveSubnet:function(){return null==this.subnet?this.effectiveSubnet:y.prototype.getEffectiveSubnet.call(this)},checkSubnet:function(t,e){return null==e&&(e=!0),null==this.getEffectiveSubnet()||y.prototype.checkSubnet.call(this,t,e)},__class__:C});var S=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.a=new M(t,e),this.b=new M(n,i)};S.__name__=!0,S.prototype={__class__:S};var k=function(){};k.__name__=!0,k.check=function(t,e){var n=t.b.minus(t.a),i=e.b.minus(e.a),s=(-n.y*(t.a.x-e.a.x)+n.x*(t.a.y-e.a.y))/(-i.x*n.y+n.x*i.y),h=(i.x*(t.a.y-e.a.y)-i.y*(t.a.x-e.a.x))/(-i.x*n.y+n.x*i.y);return 0<=s&&s<=1&&0<=h&&h<=1?new M(t.a.x+h*n.x,t.a.y+h*n.y):null};var M=function(t,e){null==e&&(e=0),null==t&&(t=0),this.x=t,this.y=e};M.__name__=!0,M.prototype={set:function(t,e){this.x=t,this.y=e},minus:function(t){return new M(this.x-t.x,this.y-t.y)},__class__:M};var P=function(t,e,n){null==n&&(n=5),l.call(this),this.cell=new f,this.hCell=t,this.vCell=e,this.cellPad=n};P.__name__=!0,P.__super__=l,P.prototype=t(l.prototype,{addCell:function(t,e,n,i,s){this.cell.add({x:t,y:e,w:n,h:i,e:s})},update:function(t,e){l.prototype.update.call(this,t,e);for(var n=this.width/this.hCell,i=this.height/this.vCell,s=this.cell.h;null!=s;){var h=s.item;s=s.next;var o=h;o.e.x=this.x+n*o.x+this.cellPad,o.e.y=this.y+i*o.y+this.cellPad,o.e.width=n*o.w-2*this.cellPad,o.e.height=i*o.h-2*this.cellPad,o.e.update(t,e)}},getEntityAt:function(t,e){var n=t-this.x,i=e-this.y;if(n<0||n>this.width||i<0||i>this.height)return null;var s=this.width/this.hCell,h=this.height/this.vCell,o=Math.floor(n/s),r=Math.floor(i/h),a=this.getCell(o,r);return null==a?null:a.e},getCell:function(t,e){for(var n=this.cell.h;null!=n;){var i=n.item;n=n.next;var s=i;if(t>=s.x&&t=s.y&&e