text: /*
   * Isomorphic SmartClient
   * Version v11.1p_2018-06-28 (2018-06-28)
   * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
   * "SmartClient" is a trademark of Isomorphic Software, Inc.
   *
   * licensing@smartclient.com
   *
   * http://smartclient.com/license
   */
  
  if(window.isc&&window.isc.module_Core&&!window.isc.module_Drawing){isc.module_Drawing=1;isc._moduleStart=isc._Drawing_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Drawing load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;if(window.isc&&isc.version!="v11.1p_2018-06-28/LGPL Deployment"&&!isc.DevUtil){isc.logWarn("SmartClient module version mismatch detected: This application is loading the core module from SmartClient version '"+isc.version+"' and additional modules from 'v11.1p_2018-06-28/LGPL Deployment'. Mixing resources from different SmartClient packages is not supported and may lead to unpredictable behavior. If you are deploying resources from a single package you may need to clear your browser cache, or restart your browser."+(isc.Browser.isSGWT?" SmartGWT developers may also need to clear the gwt-unitCache and run a GWT Compile.":""))}
  isc.Browser.hasCANVAS=isc.Browser.geckoVersion>=20051107||isc.Browser.safariVersion>=181||isc.Browser.isIE9||isc.Browser.isEdge||(!isc.Browser.isIE&&typeof(document.createElement("canvas").getContext)==="function");isc.Browser.hasSVG=(window.SVGSVGElement!=null&&(!isc.Browser.isMoz||isc.Browser.version>=4));isc.Browser.hasVML=isc.Browser.isIE&&isc.Browser.version>=5;isc.Browser.defaultDrawingType=isc.Browser.hasCANVAS?"bitmap":isc.Browser.hasVML?"vml":"none";isc.$100f="http://www.w3.org/1999/xlink";isc.$100g="http://www.w3.org/2000/svg";isc.Browser.minUsableDrawItemFontSize={};isc.Browser.hasLinearDrawItemFontScaling={};(function(){var _1=isc.Browser.isIE9||isc.Browser.isEdge,_2=!isc.Browser.isChrome&&isc.Browser.isSafari&&isc.Browser.version>=9;if(_1)isc.Browser.hasLinearDrawItemFontScaling.bitmap=true;if(!_1&&!_2)isc.Browser.minUsableDrawItemFontSize.bitmap=3})();isc.ClassFactory.defineClass("VMLRenderer");isc.A=isc.VMLRenderer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$125g="solid";isc.A.$1364=" stroked='f'";isc.A.$1365=" filled='f'";isc.A.$125o="butt";isc.A.$125p="flat";isc.A.$27r="none";isc.A.$125j="STROKE";isc.A.$125m="FILL";isc.A.$125n="SHADOW";isc.A.$152y="SKEW";isc.A.$164d="TEXTPATH";isc.A.$164e="PATH";isc.A.$152z=/^(solid|dot|dash|dashdot|shortdot|(short|long)dash(dot){0,2}|\d+( +\d+)*)$/i;isc.A.$1668=/^(round|bevel|miter)$/i;isc.A.$1520=/^(flat|square|round)$/i;isc.A.$1521=/^(none|block|classic|diamond|oval|open|chevron|doublechevron)$/i;isc.A.$162j=/#?ff00ff|fuchsia/i;isc.A.$164f=/^(normal|italic|oblique)$/i;isc.A.$164g=/^(left|right|center|justify)$/i;isc.A.$164h=/\\([\\'])/g;isc.A.$164i=/\\([\\"])/g;isc.A.$164j=/(?:\s*(?:(["'])((?:(?!\1)[^\\]|\\.)*)\1|([^,]*)\1)\s*)/g;isc.A.$164k=/(?:,\s*(?:(["'])((?:(?!\1)[^\\]|\\.)*)\1|([^,]*)\1)\s*)/g;isc.A.$164l=/^((sans-)?serif|monospace|cursive|fantasy)$/i;isc.A.shapeConfigCommonPropertiesList=["left","top","width","height","lineWidth","lineOpacity","fillOpacity","zIndex","src","lineColor","linePattern","startArrow","endArrow","lineCap","fillColor","fontFamily","fontWeight","fontStyle","contents","points","$145i","fillGradient","shadow"];isc.A.shapeConfigAllPropertiesList=["left","top","width","height","arcsize","startangle","endangle","fromX","fromY","toX","toY","control1X","control1Y","control2X","control2Y","lineWidth","lineOpacity","fillOpacity","zIndex","alt","src","lineColor","linePattern","startArrow","endArrow","lineCap","fillColor","textAlign","fontFamily","fontSize","fontWeight","fontStyle","contents","points","$145i","stroked","filled","closePolyline","useMatrixFilter","transform","getBoundingBox","$830","$126a","fillGradient","shadow","visibility"];isc.A.$1522={$1523:null,$1524:1,$1525:function(_1,_2,_3){this.$1523=_1;this.$1524=this.$1523.scale;this.$155f=_2;this.$155g=_3;return this},m:function(_1,_2,_3){var _4=this.$1524;this.$1523.buffer.append((_3?"t":"m"),Math.round(_4*(_1+this.$155f)),",",Math.round(_4*(_2+this.$155g)))},l:function(_1,_2,_3){var _4=this.$1524;this.$1523.buffer.append((_3?"r":"l"),Math.round(_4*(_1+this.$155f)),",",Math.round(_4*(_2+this.$155g)))},ls:function(_1,_2,_3,_4){var _5=this.$1524,_6=this.$155f,_7=this.$155g,_8=this.$1523.buffer,_9=_1[_2];_8.append((_4?"r":"l"),Math.round(_5*(_9[0]+_6)),",",Math.round(_5*(_9[1]+_7)));for(var i=_2+1;i<_3;++i){var _9=_1[i];_8.append(",",Math.round(_5*(_9[0]+_6)),",",Math.round(_5*(_9[1]+_7)))}},c:function(_1,_2,_3,_4,_5,_6,_7){var _8=this.$1524,_9=this.$155f,_10=this.$155g,_11=(_7?"v":"c");this.$1523.buffer.append(_11,Math.round(_8*(_1+_9)),",",Math.round(_8*(_2+_10)),",",Math.round(_8*(_3+_9)),",",Math.round(_8*(_4+_10)),",",Math.round(_8*(_5+_9)),",",Math.round(_8*(_6+_10)))},cs:function(_1,_2,_3,_4){var _5=this.$1524,_6=this.$155f,_7=this.$155g,_8=this.$1523.buffer,_9=_1[_2],_10=_1[_2+1],_11=_1[_2+2],_12=(_4?"v":"c");_8.append(_12,Math.round(_5*(_9[0]+_6)),",",Math.round(_5*(_9[1]+_7)),",",Math.round(_5*(_10[0]+_6)),",",Math.round(_5*(_10[1]+_7)),",",Math.round(_5*(_11[0]+_6)),",",Math.round(_5*(_11[1]+_7)));for(var i=_2+3;i<_3;i+=3){var _9=_1[i],_10=_1[i+1],_11=_1[i+2];_8.append(",",Math.round(_5*(_9[0]+_6)),",",Math.round(_5*(_9[1]+_7)),",",Math.round(_5*(_10[0]+_6)),",",Math.round(_5*(_10[1]+_7)),",",Math.round(_5*(_11[0]+_6)),",",Math.round(_5*(_11[1]+_7)))}},x:function(){this.$1523.buffer.append("x")},ae:function(_1,_2,_3,_4,_5,_6){var _7=this.$1524,_8=this.$155f,_9=this.$155g,_10=this.$1523.precision,_11=this.$1523.buffer;_11.append("ae",Math.round(_7*(_1+_8)),",",Math.round(_7*(_2+_9)),",",Math.round(_7*_3),",",Math.round(_7*_4),",",Math.round(65536*_5),",",Math.round(65536*_6))},aes:function(_1,_2,_3){var _4=this.$1524,_5=this.$155f,_6=this.$155g,_7=this.$1523.precision,_8=this.$1523.buffer,_9=_1[_2],r=_1[_2+1],_11=_1[_2+2],_12=_1[_2+3]-_11,_13=Math.round(_4*r);_8.append("ae",Math.round(_4*(_9[0]+_5)),",",Math.round(_4*(_9[1]+_6)),",",_13,",",_13,",",Math.round(65536*_11),",",Math.round(65536*_12));for(var i=_2+4;i<_3;i+=4){var _9=_1[i],r=_1[i+1],_11=_1[i+2],_12=_1[i+3]-_11;_8.append(",",Math.round(_4*(_9[0]+_5)),",",Math.round(_4*(_9[1]+_6)),",",_13,",",_13,",",Math.round(65536*_11),",",Math.round(65536*_12))}},al:function(_1,_2,_3,_4,_5,_6){var _7=this.$1524,_8=this.$155f,_9=this.$155g,_10=this.$1523.precision,_11=this.$1523.buffer;_11.append("al",Math.round(_7*(_1+_8)),",",Math.round(_7*(_2+_9)),",",Math.round(_7*_3),",",Math.round(_7*_4),",",Math.round(65536*_5),",",Math.round(65536*_6))},e:function(){this.$1523.buffer.append("e")},t:function(_1,_2){this.m(_1,_2,true)},r:function(_1,_2){this.l(_1,_2,true)},rs:function(_1,_2,_3){this.ls(_1,_2,_3,true)},v:function(_1,_2,_3,_4,_5,_6){this.c(_1,_2,_3,_4,_5,_6,true)},vs:function(_1,_2,_3){this.cs(_1,_2,_3,true)},nf:function(){this.$1523.buffer.append("nf")},ns:function(){this.$1523.buffer.append("ns")}};isc.A.$1552={left:0,top:0,width:0,height:0,coordorigin0:0,coordorigin1:0,coordsize0:0,coordsize1:0};isc.A.$1553={alpha:0,beta:0,minP:0,maxP:0,minQ:0,maxQ:0,count:0,bestEpsilon:0,secondBestEpsilon:0,bestP:0,secondBestP:0,bestQ:0,secondBestQ:0,bestDelta:0,bestLeft:0,bestWidth:0,bestCoordorigin0:0,bestCoordsize0:0};isc.B.push(isc.A.$164m=function isc_c_VMLRenderer__quote(_1,_2){if(_2.indexOf("\\")!=-1){_2=_2.replace("\\","\\\\")}
  if(_2.indexOf(_1)!=-1){_2=_2.replace(_1,"\\"+_1)}
  return _1+_2+_1},isc.A.$164n=function isc_c_VMLRenderer__quoteReplace(_1,_2){return _2},isc.A.$164o=function isc_c_VMLRenderer__unquote(_1,_2){var r=(_1=="'"?isc.VMLRenderer.$164h:isc.VMLRenderer.$164i);r.lastIndex=0;return(r.test(_2)?_2.replace(r,isc.VMLRenderer.$164n):_2)},isc.A.shapeConfig=function isc_c_VMLRenderer_shapeConfig(){this.left=this.top=this.width=this.height=0;this.arcsize=this.startangle=this.endangle=0;this.fromX=this.fromY=this.toX=this.toY=0;this.control1X=this.control1Y=this.control2X=this.control2Y=0;this.lineWidth=0;this.lineOpacity=this.fillOpacity=0;this.zIndex=null;this.alt=null;this.src=null;this.lineColor=this.linePattern=this.startArrow=this.endArrow=this.lineCap=null;this.fillColor=null;this.textAlign=this.fontFamily=this.fontSize=this.fontWeight=this.fontStyle=null;this.visibility=null;this.contents=null;this.points=null;this.$145i=null;this.stroked=this.filled=false;this.closePolyline=false;this.useMatrixFilter=false;this.transform=null;this.getBoundingBox=null;this.$830=null;this.$126a=null;this.fillGradient=null;this.shadow=null},isc.A.drawItemToShapeConfig=function isc_c_VMLRenderer_drawItemToShapeConfig(_1,_2){isc.getProperties(_1,isc.VMLRenderer.shapeConfigCommonPropertiesList,_2);if(_1.lineCap==isc.VMLRenderer.$125o){_2.lineCap=isc.VMLRenderer.$125p}
  if(!_1.startArrow){_2.startArrow=isc.VMLRenderer.$27r}
  if(!_1.endArrow){_2.endArrow=isc.VMLRenderer.$27r}
  _2.stroked=_1.$125h();var _3=_1.$125k();if(!_1.vmlLineEventsOnly&&!_3){_2.filled=true;_2.fillOpacity=0}else{_2.filled=_3}
  _2.transform=_1.$1339();_2.$1526=_1;_2.getBoundingBox=function(_4,_5){var _1=this.$1526;return _1.getBoundingBox.apply(_1,arguments)};_2.$830=function(_4,_5){var _1=this.$1526;return _1.$830.apply(_1,arguments)};_2.$126a=function(_4){var _1=this.$1526;return _1.$126a.apply(_1,arguments)};_2.visibility=(_1.hidden?"hidden":"visible");_2.zIndex=_1.getZIndex(true)},isc.A.$1527=function isc_c_VMLRenderer__roundrectGetPathVML(_1){var _2=this.left,_3=this.width,_4=_2+_3,_5=this.top,_6=this.height,_7=_5+_6,_8=this.arcsize;if(_8==0){_1.m(_2,_5);_1.l(_4,_5);_1.l(_4,_7);_1.l(_2,_7);_1.x()}else{var _9=_8*Math.min(_3,_6);_1.al(_2+_9,_5+_9,_9,_9,90,90);_1.l(_2,_7-_9);_1.ae(_2+_9,_7-_9,_9,_9,180,90);_1.l(_4-_9,_7);_1.ae(_4-_9,_7-_9,_9,_9,270,90);_1.l(_4,_5+_9);_1.ae(_4-_9,_5+_9,_9,_9,0,90);_1.x()}},isc.A.$1528=function isc_c_VMLRenderer__lineGetPathVML(_1){_1.m(this.fromX,this.fromY);_1.l(this.toX,this.toY)},isc.A.$1529=function isc_c_VMLRenderer__polylineGetPathVML(_1){var _2=this.points;_1.m(_2[0][0],_2[0][1]);_1.ls(_2,1,_2.length);if(this.closePolyline){_1.l(_2[0][0],_2[0][1])}},isc.A.$153a=function isc_c_VMLRenderer__curveGetPathVML(_1){_1.m(this.fromX,this.fromY);_1.c(this.control1X,this.control1Y,this.control2X,this.control2Y,this.toX,this.toY)},isc.A.$153b=function isc_c_VMLRenderer__arcGetPathVML(_1){var _2=this.left,_3=this.width,_4=this.left+this.width,_5=this.top,_6=this.height,_7=this.top+this.height;_1.al((_2+_4)/2,(_5+_7)/2,_3/2,_6/2,this.startangle,this.endangle)},isc.A.$164p=function isc_c_VMLRenderer__textGetPathVML(_1){var _2=this.getBoundingBox(false,this.$145i),_3=_2[0],_4=(_2[1]+_2[3])/2,_5=_2[2],_6=_4;_1.m(_3,_4);_1.l(_5,_6);_1.e()},isc.A.$1554=function isc_c_VMLRenderer__fitBlockCoordinateSystem(_1,_2,_3,_4){var _5=isc.VMLRenderer.$1552;var _6=-21474836,_7=21474836;isc.VMLRenderer.$1555(_2,_4,_6,_7,_5);_5.top=_5.left;_5.height=_5.width;_5.coordorigin1=_5.coordorigin0;_5.coordsize1=_5.coordsize0;isc.VMLRenderer.$1555(_1,_3,_6,_7,_5);return _5},isc.A.$1555=function isc_c_VMLRenderer__fitBlockCoordinateSystemHelper(_1,_2,_3,_4,_5){if(_1==0){_5.left=Math.round(_2);_5.width=0;_5.coordorigin0=0;_5.coordsize0=1;return}
  var _6=isc.VMLRenderer.$1553,_7=isc.VMLRenderer.$1556;_6.alpha=_1;_6.beta=-_2;_6.minP=_6.minQ=_3;_6.maxP=_6.maxQ=_4;_6.count=0;var _8=30;if(_2==0){var _9=_1;if(_9!=Math.floor(_9)&&2*_9==Math.floor(2*_9)){var p=0,q=0;if(2*_9<_4){p=2*_9;q=2}else if(-2*_9>_3){p=-2*_9;q=-2}else if(Math.floor(_9)<_4){p=Math.floor(_9);q=1}else{p=-Math.floor(_9);q=-1}
  _7(_6,p,q);_7(_6,0,0)}else{var _12=_9,_13=-1,_14=0,_15=1,_16=1,_17=0,p=0,q=0,_18=(-_3>_4?-1:1),_19=Math.min(-_3,_4);_7(_6,0,0);for(var n=0;n<_8&&q<=_19&&_13!=0;++n){var _21=Math.floor(-_12/_13),_22=_12+_21*_13;p=_14+_21*_15;q=_16+_21*_17;_7(_6,_18*p,_18*q);_14=_15;_15=p;_16=_17;_17=q;_12=_13;_13=_22}}}else{outer:for(var j=-1;j<=1;j+=2){var _24=_3,_25=_4,_26=0,_19=_4;if(j==1){_24=-_4;_25=_19=-_3}
  var _9=_1,_27=-(j*_2),n=0,_12=_9,_13=-1,_14=0,_15=1,_16=1,_17=0,_28=0,p=0,q=0,_29=-_27,_30=false;for(;n<_8&&q<=_19&&_13!=0&&_29!=0;++n){var a=Math.floor(-_12/_13),_32=_14+a*_15,_33=_16+a*_17,_22=_12+a*_13;_28=q;if(q<=_17){var b=Math.floor(-(_29+_12)/_13);p+=_14+b*_15;q+=_16+b*_17;_29+=_12+b*_13;_30=true;if(_7(_6,j*p,j*q))break outer}else{p-=_15;q-=_17;_29-=_13;_30=false}
  _14=_15;_15=_32;_16=_17;_17=_33;_12=_13;_13=_22}
  if(_30&&_29!=0){if(_7(_6,j*(p+_14),j*(q+_16)))break outer}
  if(_13!=0&&!(n<_8&&_29!=0)){var _35=_13;for(var q=_28+1;n<_8&&q<=_19&&(_35!=0||_29!=0);++n,++q){var _36=q*_9,r=Math.round(_36),_38=_36-_27,p=Math.round(_38);_35=_36-r;_29=_38-p;if(_7(_6,j*p,j*q))break outer}}}
  _7(_6,0,Math.round(-_2/_1))}
  _5.left=_6.bestLeft;_5.width=_6.bestWidth;_5.coordorigin0=_6.bestCoordorigin0;_5.coordsize0=_6.bestCoordsize0},isc.A.$1556=function isc_c_VMLRenderer__checkBlookCoordinateSystem(_1,_2,_3){if(_1.minP<=_2&&_2<=_1.maxP&&_1.minQ<=_3&&_3<=_1.maxQ){var _4=Math.abs(_3*_1.alpha-_2-_1.beta),_5=(_1.count==0||(!(_2==_1.bestP&&_3==_1.bestQ)&&(_1.count==1||!(_2==_1.secondBestP&&_3==_1.secondBestQ))&&_4<=_1.bestEpsilon)),_6=(!_5&&!(_2==_1.bestP&&_3==_1.bestQ)&&(_1.count==1||(!(_2==_1.secondBestP&&_3==_1.secondBestQ)&&_4<=_1.secondBestEpsilon)));if(_5||_6){for(var i=0;i<_1.count;++i){var _8=_2,_9=(i==0?_1.bestP:_1.secondBestP)-_2,_10=_3,_11=(i==0?_1.bestQ:_1.secondBestQ)-_3;if(_11<0){_8+=_9;_10+=_11;_9=-_9;_11=-_11}
  var _12=0;if(_11!=0){_12=Math.abs(_9/_11-_1.alpha)}
  if(_1.count<2||_1.bestCoordsize0==0||(_11!=0&&_12<_1.bestDelta))
  {_1.bestDelta=_12;_1.bestLeft=_8;_1.bestWidth=_9;_1.bestCoordsize0=_11;_1.bestCoordorigin0=_10}}
  ++_1.count;if(_5){_1.secondBestEpsilon=_1.bestEpsilon;_1.secondBestP=_1.bestP;_1.secondBestQ=_1.bestQ;_1.bestEpsilon=_4;_1.bestP=_2;_1.bestQ=_3}else{_1.secondBestEpsilon=_4;_1.secondBestP=_2;_1.secondBestQ=_3}}}
  return(_1.count>=2&&_1.bestDelta<1e-6&&_1.bestWidth>1)});isc.B._maxIndex=isc.C+14;isc.A=isc.VMLRenderer.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.addPropertiesOnCreate=false;isc.A.$155h={matrix:null,offset:null};isc.A.$164q=["serif","sans-serif","monospace"];isc.A.$164r={fontFamily:"",fontWeight:"normal",fontSize:72,fontStyle:"normal"};isc.A.$164s="mmmmmmmmmmlli";isc.A.$164t=null;isc.A.$164u=30;isc.B.push(isc.A.init=function isc_VMLRenderer_init(_1,_2,_3){this.drawPane=_1;this.startTagVML=_1.startTagVML;this.endTagVML=_1.endTagVML;var _4=this.$164v="#"+_1.getID()+"$164w";this.$164x=" TYPE='"+_4+"'";var _5=this.$164y="#"+_1.getID()+"$164z";this.$1640=" TYPE='"+_5+"'";this.buffer=null;this.scale=_2;this.precision=Math.ceil(_3);this.rotationPrecision=6;this.matrixFilterPrecision=6;this.skewOffsetPrecision=6;this.shadowOffsetPrecision=0;this.fillAnglePrecision=3;this.$155i=true;this.updatedGlobalTransform();delete this.$155i},isc.A.$155j=function isc_VMLRenderer__isTranslation(_1){return(_1==null||(_1.m00==1&&_1.m01==0&&_1.m10==0&&_1.m11==1))},isc.A.$1641=function isc_VMLRenderer__usePredefinedShape(_1){return(this.$1642==0&&this.$155j(_1))},isc.A.$1643=function isc_VMLRenderer__referenceGlobalShapeType(_1,_2,_3){return(!_2&&(_1||this.$1642!=0)&&this.$155j(_3))},isc.A.updatedGlobalTransform=function isc_VMLRenderer_updatedGlobalTransform(){var _1=this.drawPane.zoomLevel||0,_2=this.drawPane.rotation||0,_3=this.drawPane.$43z||0,_4=this.drawPane.$430||0,_5=0,_6=0,_7;var _8=(this.$1642==0);this.$1642=_2;if(isc.isAn.Array(this.drawPane.translate)){_5=this.drawPane.translate[0]||0;_6=this.drawPane.translate[1]||0}
  var _9=(this.$155k!=_1);this.$155k=_1;this.$1644=_5;this.$1645=_6;var _10=_2*Math.PI/180;this.$125z=Math.sin(_10);this.$1250=Math.cos(_10);var s=Math.sin(2*_10),c=Math.cos(2*_10);this.$155m=(c+1)/2;this.$155n=s/2;this.$155o=(c-1)/2;this.$43z=_3;this.$430=_4;var _13=1/_1,_14=isc.VMLRenderer.$1554(_13,_13,0,0);this.$1646=_14.width;this.$1647=_14.coordsize0;if(this.$155i){return}
  var _15=this.drawPane.drawItems,_16=(_15?_15.length:0),_17=[{drawItems:_15,numDrawItems:_16,index:0}],_18=1;while(_18>0){var s=_17[_18-1];_15=s.drawItems;_16=s.numDrawItems;for(var i=s.index;i<_16;++i){var _20=_15[i];if(isc.isA.DrawGroup(_20)){s.index=i+1;_15=_20.drawItems;_17[_18++]={drawItems:_15,numDrawItems:(_15?_15.length:0),index:0};i=_16+1}else if(_20!=null){var _21=_20.$154s;if(_21!=null){var _22=(_21.$153r==0&&_21.$153s==0);_21.setProperty("transform",_7,true,_8,_9);if(_22){_21.flush()}}}}
  if(i==_16){--_18}}},isc.A.$153d=function isc_VMLRenderer__writeIdAndAlt(_1,_2){if(_1!=null){this.buffer.append(" ID='",_1,"'")}
  if(_2!=null){this.buffer.append(" ALT='",String.asAttValue(_2,false,false),"'")}},isc.A.$153e=function isc_VMLRenderer__writeStyle(_1,_2,_3,_4,_5){var _6=this.buffer;if(this.$1643(_3,_4,_1.transform)){_6.append(_3?this.$1640:this.$164x)}
  var _7=(_2=="GROUP");if(_7||_2=="SHAPE"){var n=(50*this.scale).toFixed(0);_6.append(" COORDORIGIN='-",n,",-",n,"' COORDSIZE='",n,",",n,"' STYLE='left:-",n,"px;top:-",n,"px;width:",n,"px;height:",n,"px;")}else{_6.append(" STYLE='")}
  _6.append("position:absolute;");if(!_7){_6.append("visibility:",String.$152x(_1.visibility),";")}
  if(_1.zIndex!=null)_6.append("z-index:",+_1.zIndex,";");if(!_5){_6.append("'")}},isc.A.$1648=function isc_VMLRenderer__writeTextGroupStart(_1){var _2=this.$1646,_3=this.$1647;_1.append(this.startTagVML("GROUP")," STYLE='left:0px;top:0px;width:",_2,"px;height:",_2,"px;' COORDORIGIN='0,0' COORDSIZE=",_3,",",_3,"'>")},isc.A.$1649=function isc_VMLRenderer__updateTextGroup(_1){var _2=this.$1646.toFixed(0),_3=this.$1647.toFixed(0),_4=_1.style;_4.width=_4.height=_2+"px";_1.coordsize=_3+","+_3},isc.A.$1557=function isc_VMLRenderer__writeImageGroupStart(_1,_2){var _3=this.$125z,_4=this.$1250,_5=this.$43z/2,_6=this.$430/2,_7=this.$155k,_8=this.$1644,_9=this.$1645,_10=_2.transform,_11=_10.m00,_12=_10.m01,_13=_10.m02,_14=_10.m10,_15=_10.m11,_16=_10.m12,t=isc.AffineTransform.create(_7*(_11*_4-_14*_3),_7*(_12*_4-_15*_3),_7*(_13*_4-_16*_3+_5*(1-_4)+_6*_3)+_8,_7*(_11*_3+_14*_4),_7*(_12*_3+_15*_4),_7*(_13*_3+_16*_4-_5*_3+_6*(1-_4))+_9),_18=isc.AffineTransform.$145r(t,0,0),_19=(_18.h11<0),_20=_18.theta,_21=Math.sin(_20),_22=Math.cos(_20),_23=_18.h00,_24=_18.h01,_25=_18.h10,_26=_18.h11,_27=_23+_26,_28=(_23-_26)*Math.cos(2*_20)-(_24+_25)*Math.sin(2*_20),_29=_13-_5,_30=_16-_6,_31=(_2.left+_2.width/2),_32=(_2.top+_2.height/2),_33=(_27+_28)/(2*_7),_34=(_27-_28)/(2*_7),_35=(_4*_29-_3*_30+_5+_33*((_22-1)*_31-_21*_32)+-((_4-1)*_8-_3*_9)/_7),_36=(_3*_29+_4*_30+_6+_34*(_21*_31+(_22-1)*_32)+-(_3*_8+(_4-1)*_9)/_7),_37=this.scale,_38=isc.VMLRenderer.$1554(_33,_34,_37*_35,_37*_36);_1.append(this.startTagVML("GROUP")," STYLE='position:absolute;left:",_38.left,"px;top:",_38.top,"px;width:",_38.width,"px;height:",_38.height,"px;");if(_19){_1.append("flip:y;")}
  _1.append("' coordorigin='",_38.coordorigin0,",",_38.coordorigin1,"' coordsize='",_38.coordsize0,",",_38.coordsize1,"'>");return _20*180/Math.PI},isc.A.$155r=function isc_VMLRenderer__getSkewMatrixAndOffset(_1,_2){var _3=this.$155h;var _4=this.$125z,_5=this.$1250,_6=this.$43z/2,_7=this.$430/2,_8=this.$155k,_9=this.$1644,_10=this.$1645,_11=_1.m00,_12=_1.m01,_13=_1.m02,_14=_1.m10,_15=_1.m11,_16=_1.m12,_17=_13-_6,_18=_16-_7,_19=_5*_11-_4*_14,_20=_5*_12-_4*_15,_21=_4*_11+_5*_14,_22=_4*_12+_5*_15,_23=(_8*(_17*_5-_18*_4+_6)+(1-_5)*_9+_4*_10),_24=(_8*(_17*_4+_18*_5+_7)+-_4*_9+(1-_5)*_10);if(_2&&_8!=1){_19*=_8;_20*=_8;_21*=_8;_22*=_8}
  _3.matrix=isc.StringBuffer.concat(Math.round(65536*_19),"f,",Math.round(65536*_20),"f,",Math.round(65536*_21),"f,",Math.round(65536*_22),"f,0,0");_3.offset=isc.StringBuffer.concat(_23.toFixed(this.skewOffsetPrecision),"px,",_24.toFixed(this.skewOffsetPrecision),"px");return _3},isc.A.$155p=function isc_VMLRenderer__getXTranslation(_1){if(_1==null)return 0;var _2=this.$125z,_3=this.$1250,_4=this.$43z/2,_5=this.$430/2,_6=this.$155k,_7=this.$1644,_8=this.$1645,_9=(_4*(_6-1)+_7),_10=(_5*(_6-1)+_8);return _1.m02+((_3-1)*_9+_2*_10)/_6},isc.A.$155q=function isc_VMLRenderer__getYTranslation(_1){if(_1==null)return 0;var _2=this.$125z,_3=this.$1250,_4=this.$43z/2,_5=this.$430/2,_6=this.$155k,_7=this.$1644,_8=this.$1645,_9=(_4*(_6-1)+_7),_10=(_5*(_6-1)+_8);return _1.m12+(-_2*_9+(_3-1)*_10)/_6},isc.A.$153f=function isc_VMLRenderer__writeSkewEl(_1,_2,_3,_4){var _5=_2.transform;if(!this.$155j(_5)){if(!_3){_1.append(">")}
  var _6=this.$155r(_5,_4);_1.append(this.startTagVML(isc.VMLRenderer.$152y)," on='t' matrix='",_6.matrix,"' offset='",_6.offset,"' />");return true}else{return _3}},isc.A.$153g=function isc_VMLRenderer__writeStrokeAttrs(_1){if(_1.stroked){this.buffer.append(" strokecolor='",String.asAttValue(_1.lineColor,false,false),"' strokeweight='",Math.round(_1.lineWidth*this.drawPane.zoomLevel),"px'")}else{this.buffer.append(isc.VMLRenderer.$1364)}},isc.A.$153h=function isc_VMLRenderer__writeStrokeEl(_1,_2,_3){if(_2.stroked){var _4=_2.lineOpacity,_5=_2.linePattern,_6=_2.startArrow,_7=_2.endArrow,_8=_2.joinStyle,_9=_2.lineCap;if(!(isc.isA.String(_5)&&isc.VMLRenderer.$152z.test(_5))){_5=isc.VMLRenderer.$125g}
  if(!(isc.isA.String(_8)&&isc.VMLRenderer.$1668.test(_8))){_8="miter"}
  if(!(isc.isA.String(_9)&&isc.VMLRenderer.$1520.test(_9))){_9="round"}
  if(!(isc.isA.String(_6)&&isc.VMLRenderer.$1521.test(_6))){_6=isc.VMLRenderer.$27r}
  if(!(isc.isA.String(_7)&&isc.VMLRenderer.$1521.test(_7))){_7=isc.VMLRenderer.$27r}
  if((_8!="round"&&!isc.isA.DrawCurve(_2.$1526)&&!isc.isA.DrawLine(_2.$1526)&&!isc.isA.DrawOval(_2.$1526))||_4!=1||_5!=isc.VMLRenderer.$125g||_9!="round"||_6!=isc.VMLRenderer.$27r||_7!=isc.VMLRenderer.$27r)
  {if(!_3){_1.append(">")}
  _1.append(this.startTagVML(isc.VMLRenderer.$125j)," OPACITY='",Math.round(65536*_4),"f' DASHSTYLE='",_5,"' MITERLIMIT='4' JOINSTYLE='",_8,"' ENDCAP='",_9,"' STARTARROW='",_6,"' STARTARROWWIDTH='wide' ENDARROW='",_7,"' ENDARROWWIDTH='wide'>",this.endTagVML(isc.VMLRenderer.$125j));return true}}
  return _3},isc.A.$153i=function isc_VMLRenderer__writeFillAttrs(_1){if(_1.filled){var _2=_1.fillColor;if(_2){this.buffer.append(" fillcolor='",String.asAttValue(_2,false,false),"'")}}else{this.buffer.append(isc.VMLRenderer.$1365)}},isc.A.$153j=function isc_VMLRenderer__writeFillEl(_1,_2,_3){var _4=_2.fillOpacity,_5=_2.fillGradient;if(_2.filled&&(_4!=1||_5!=null)){if(!_3){_1.append(">")}
  _1.append(this.startTagVML(isc.VMLRenderer.$125m));var _6=(isc.isA.String(_5)?this.drawPane.getGradient(_5):_5);if(_6!=null&&!isc.isAn.emptyObject(_6)){var _7=(isc.DrawItem.$135h(_6)||isc.DrawItem.$135i(_6)),_8=(_6.startColor&&_6.endColor);if(_7){var _9=_2.getBoundingBox(false,_2.$145i),_10=_2.$830(_6,_9),_11=(_6.direction||(Math.atan2(_10[3]-_10[1],_10[2]-_10[0])*180/Math.PI));_11=(270-_11)%360;if(_11<0){_11+=360}
  _1.append(" TYPE='gradient' ANGLE='",_11.toFixed(this.fillAnglePrecision),"' COLORS='")}else{_1.append(" TYPE='gradienttitle' OPACITY='1.0' FOCUS='100%' FOCUSSIZE='0,0' FOCUSPOSITION='0.5,0.5' METHOD='linear' COLORS='")}
  var _12=isc.VMLRenderer.$162j;if(_7&&_6.startColor&&_6.endColor){var _13=_6.startColor,_14=_6.endColor;if(_12.test(_13))_13="#ff01ff";if(_12.test(_14))_14="#ff01ff";_1.append("0% ",_13,", 100% ",_14)}else{var _15=_6.colorStops,_16=_15&&_15.length;for(var i=0;i<_16;++i){if(i>0){_1.append(", ")}
  var _18=_15[i];if(isc.isA.String(_18.offset)&&String(_18.offset).endsWith("%")){_1.append(_18.offset)}else{_1.append(parseFloat(_18.offset)*100,"%")}
  var _19=_18.color;if(_12.test(_19))_19="#ff01ff";_1.append(" ",_19)}}}else{_1.append(" ON='true")}
  _1.append("' OPACITY='",Math.round(65536*_4),"f'>",this.endTagVML(isc.VMLRenderer.$125m));return true}else{return _3}},isc.A.$153k=function isc_VMLRenderer__writeShadowEl(_1,_2,_3){if(_2){if(!_3){_1.append(">")}
  var _4=1.0;if(isc.isA.Number(_2.blur)&&_2.blur>=0){var _5=Math.LN2/5;_4=Math.exp(-_5*_2.blur)}
  _1.append(this.startTagVML(isc.VMLRenderer.$125n)," ON='t' OPACITY='",Math.round(65536*_4),"f' COLOR='",String.asAttValue(_2.color,false,false),"' OFFSET='",_2.offset[0].toFixed(this.shadowOffsetPrecision),"pt,",_2.offset[1].toFixed(this.shadowOffsetPrecision),"pt'>",this.endTagVML(isc.VMLRenderer.$125n));return true}else{return _3}},isc.A.$153l=function isc_VMLRenderer__writeImagedataEl(_1,_2,_3){if(!_3){_1.append(">")}
  _1.append(this.startTagVML("IMAGEDATA")," SRC='",String.asAttValue(_2.src,false,false),"'/>");return true},isc.A.$165a=function isc_VMLRenderer__normalizeContentLines(_1){if(!isc.isA.String(_1)){_1=String(_1)}
  var r=isc.DrawLabel.$165b;r.lastIndex=0;return(r.test(_1)?_1.replace(r,"\n"):_1)},isc.A.$165c=function isc_VMLRenderer__selectFromFontFamily(_1,_2,_3){var _4=isc.emptyString;if(!isc.isA.String(_3)){return _4}
  var _5=isc.VMLRenderer.$164m,_6=isc.VMLRenderer.$164o,_7=isc.VMLRenderer.$164l,_8=isc.VMLRenderer.$164j,_9=isc.VMLRenderer.$164k;_8.lastIndex=_9.lastIndex=0;var _10=true,_11=true,_12=null;if(!_10){_12=isc.StringBuffer.create()}
  for(var r=_8,_14=null;(_14=r.exec(_3))!=null;r=_9){if(_14[0].length==0&&!(_14.index<r.lastIndex)){++r.lastIndex}
  var q=_14[1],_16=_14[2],_17=_14[3],_18=(q!=null&&q!=_4),_19=_4,_20=false;if(_18){_19=_6(q,_16)}else{_19=_17.trim();_20=(_19!=_4&&_7.test(_19))}
  if(_19!=_4){if(_10){var _21=_19;if(_20){if(_19=="serif"){_21=isc.DrawLabel.defaultSerifFont}else if(_19=="sans-serif"){_21=isc.DrawLabel.defaultSansSerifFont}else if(_19=="monospace"){_21=isc.DrawLabel.defaultMonospaceFont}else if(_19=="cursive"){_21=isc.DrawLabel.defaultCursiveFont}else{_21=isc.DrawLabel.defaultFantasyFont}
  if(!isc.isA.String(_19)){_19=null}}
  if(_21!=null&&this.$165d(_21)){if(_2){_21=String.$163x(_21)}
  return _1+_21+_1}else if(_20){return _19}}else{if(!_11){_12.append(",")}
  if(_20){_12.append(_19)}else if(_2){_12.append(_1,String.$163x(_19),_1)}else{_12.append(_5(_1,_19))}
  _11=false}}}
  if(_10){return null}else{var _22=_12.release(false);return(_22==_4?null:_22)}},isc.A.$165d=function isc_VMLRenderer__isFontAvailable(_1){var _2=this.$164s,_3=this.$164q,_4=this.drawPane,_5=this.$164r;var _6=this.drawPane.$164t;if(_6==null){_6=this.drawPane.$164t=new Array(6);for(var i=0;i<_3.length;++i){_5.fontFamily=_3[i];var m=_4.measureLabel(_2,_5);_6[2*i]=m.width;_6[2*i+1]=m.height}}
  var _9=this.drawPane.$165e;if(_9==null){_9=this.drawPane.$165e=new this.drawPane.$148f(this.$164u)}else if(this.drawPane.$148g(_9,_1)){return this.drawPane.$148h(_9,_1)}
  var _10=true;for(var i=0;_10&&i<_3.length;++i){_5.fontFamily="'"+String.$163x(_1)+"',"+_3[i];var _11=_6[2*i],_12=_6[2*i+1],_13=_4.measureLabel(_2,_5);if(_13.width!=_11||_13.height!=_12){_10=false}}
  var _14=!_10;this.drawPane.$148i(_9,_1,_14);return _14},isc.A.$165f=function isc_VMLRenderer__writeTextpathEl(_1,_2,_3){if(!_3){_1.append(">")}
  _1.append(this.startTagVML(isc.VMLRenderer.$164d)," ON='t' XSCALE='t'");var _4=_2.fontFamily,_5=_2.fontWeight,_6=_2.fontSize,_7=_2.fontStyle,_8=_2.textAlign;if(_4!=null&&!isc.isA.String(_4)){_4=null}else{_4=this.$165c("'",true,_4)}
  if(_5!=null&&!isc.isA.String(_5)){_5=null}
  if(_6!=null&&!isc.isA.String(_6)){_6=null}
  if(!(isc.isA.String(_7)&&isc.VMLRenderer.$164f.test(_7))){_7=null}
  if(!(isc.isA.String(_8)&&isc.VMLRenderer.$164g.test(_8))){_8=null}
  if(_4!=null||_5!=null||_6!=null||_7!=null){var _9=isc.DrawPane.$167b(_4);_1.append(" STYLE=",_9);if(_5!=null){_1.append("font-weight:",String.$152x(_5),";")}
  if(_6!=null){_1.append("font-size:",String.$152x(_6),";")}
  if(_7!=null){_1.append("font-style:",_7,";")}
  if(_8!=null){_1.append("text-align:",_8,";")}
  if(_4!=null){_1.append("font-family:",_4,";")}
  _1.append(_9)}
  var _10=_2.contents;if(_10!=null){_10=String(_10);_1.append(" STRING='",String.asAttValue(this.$165a(_10),false,false),"'")}
  _1.append("/>");return true},isc.A.$153m=function isc_VMLRenderer__writeRemainingVML(_1,_2,_3){if(_3==null){_3=false}
  var _4=this.buffer;this.$153g(_1);this.$153i(_1);_3=this.$153h(_4,_1,_3);_3=this.$153j(_4,_1,_3);_3=this.$153k(_4,_1.shadow,_3);var _5=(_2=="TEXT");if(_5||_2!="IMAGE"){_3=this.$153f(_4,_1,_3,_5)}
  if(_5){_3=this.$165f(_4,_1,_3);_4.append(this.startTagVML(isc.VMLRenderer.$164e)," TEXTPATHOK='t'/>")}
  if(_3){_4.append(this.endTagVML(_2=="TEXT"?"SHAPE":_2))}else{_4.append("/>")}},isc.A.$153n=function isc_VMLRenderer__writeTextboxContentEl(_1,_2){if(_2.contents!=null){_1.append("<NOBR");if(_2.lineColor!=null){_1.append(" STYLE='color:",String.$152x(_2.lineColor),"'")}
  _1.append(">",isc.makeXMLSafe(_2.contents),"</NOBR>")}},isc.A.rect=function isc_VMLRenderer_rect(_1,_2){_2.arcsize=0;return this.roundrect(_1,_2,"rect")},isc.A.roundrect=function isc_VMLRenderer_roundrect(_1,_2,_3){_3=_3||"roundrect";var _4=_2.transform;_2.$126a=isc.VMLRenderer.$1527;if(!this.$1641(_4)){return this.shape(_1,_2,_3)}
  var _5=this.scale,_6=this.$155p(_4),_7=this.$155q(_4),_8=Math.round(_5*(_2.left+_6)),_9=Math.round(_5*(_2.top+_7)),_10=Math.round(_5*_2.width),_11=Math.round(_5*_2.height);var _12=(_2.arcsize==0?"RECT":"ROUNDRECT");this.buffer.append(this.startTagVML(_12));this.$153d(_1,_2.alt);this.$153e(_2,_12,false,false,true);var _13=this.buffer;_13.append("left:",_8,"px;top:",_9,"px;width:",_10,"px;height:",_11,"px;'");if(_2.arcsize!=0){_13.append(" ARCSIZE='",_2.arcsize.toFixed(this.precision),"'")}
  this.$153m(_2,_12);return isc.VMLRendererHandle.create(_3,this,_1,_2)},isc.A.line=function isc_VMLRenderer_line(_1,_2){var _3=_2.transform;_2.$126a=isc.VMLRenderer.$1528;if(!this.$1641(_3)){return this.shape(_1,_2,"line")}
  var _4=this.scale,_5=this.$155p(_3),_6=this.$155q(_3),_7=Math.round(_4*(_2.fromX+_5)),_8=Math.round(_4*(_2.fromY+_6)),_9=Math.round(_4*(_2.toX+_5)),_10=Math.round(_4*(_2.toY+_6));this.buffer.append(this.startTagVML("LINE"));this.$153d(_1,_2.alt);this.$153e(_2,"LINE",false,false,false);this.buffer.append(" FROM='",_7,",",_8,"' TO='",_9,",",_10,"'");this.$153m(_2,"LINE");return isc.VMLRendererHandle.create("line",this,_1,_2)},isc.A.polyline=function isc_VMLRenderer_polyline(_1,_2){var _3=_2.transform;_2.$126a=isc.VMLRenderer.$1529;if(!this.$1641(_3)){return this.shape(_1,_2,"polyline")}
  var _4=this.buffer,_5=this.scale,_6=this.$155p(_3),_7=this.$155q(_3);_4.append(this.startTagVML("POLYLINE"));this.$153d(_1,_2.alt);this.$153e(_2,"POLYLINE",false,false,false);var _8=_2.points,_9=_8.length;if(_9>0){_4.append(" POINTS='");this.$153o(_4,_8,_2.closePolyline,_6,_7);_4.append("'")}
  this.$153m(_2,"POLYLINE");return isc.VMLRendererHandle.create("polyline",this,_1,_2)},isc.A.$153o=function isc_VMLRenderer__appendPolylinePointsText(_1,_2,_3,_4,_5){var _6=this.scale,_7=_2.length,_8=_2[0],_9=Math.round(_6*(_8[0]+_4)),_10=Math.round(_6*(_8[1]+_5));_1.append(_9," ",_10);for(var i=1;i<_7;++i){var _12=_2[i],x=Math.round(_6*(_12[0]+_4)),y=Math.round(_6*(_12[1]+_5));_1.append(" ",x," ",y)}
  if(_3){_1.append(" ",_9," ",_10)}},isc.A.curve=function isc_VMLRenderer_curve(_1,_2){var _3=_2.transform;_2.$126a=isc.VMLRenderer.$153a;if(!this.$1641(_3)){return this.shape(_1,_2,"curve")}
  var _4=this.scale,_5=this.$155p(_3),_6=this.$155q(_3),_7=Math.round(_4*(_2.fromX+_5)),_8=Math.round(_4*(_2.fromY+_6)),_9=Math.round(_4*(_2.toX+_5)),_10=Math.round(_4*(_2.toY+_6)),_11=Math.round(_4*(_2.control1X+_5)),_12=Math.round(_4*(_2.control1Y+_6)),_13=Math.round(_4*(_2.control2X+_5)),_14=Math.round(_4*(_2.control2Y+_6));this.buffer.append(this.startTagVML("CURVE"));this.$153d(_1,_2.alt);this.$153e(_2,"CURVE",false,false,false);this.buffer.append(" FROM='",_7,",",_8,"' TO='",_9,",",_10,"' CONTROL1='",_11,",",_12,"' CONTROL2='",_13,",",_14,"'");this.$153m(_2,"CURVE");return isc.VMLRendererHandle.create("curve",this,_1,_2)},isc.A.oval=function isc_VMLRenderer_oval(_1,_2){_2.startangle=0;_2.endangle=360;return this.arc(_1,_2,"oval")},isc.A.arc=function isc_VMLRenderer_arc(_1,_2,_3){_3=_3||"arc";var _4=_2.transform;_2.$126a=isc.VMLRenderer.$153b;if(!this.$1641(_4)){return this.shape(_1,_2,_3)}
  var _5=this.scale,_6=this.$155p(_4),_7=this.$155q(_4),_8=Math.round(_5*(_2.left+_6)),_9=Math.round(_5*(_2.top+_7)),_10=Math.round(_5*_2.width),_11=Math.round(_5*_2.height);var _12=(_2.startangle==0&&_2.endangle==360),_13=(_12?"OVAL":"ARC");this.buffer.append(this.startTagVML(_13));this.$153d(_1,_2.alt);this.$153e(_2,_13,false,false,true);this.buffer.append("left:",_8,"px;top:",_9,"px;width:",_10,"px;height:",_11,"px;'");if(!_12){this.buffer.append("STARTANGLE='",_2.startangle.toFixed(this.precision),"'"," ENDANGLE='",_2.endangle.toFixed(this.precision),"'")}
  this.$153m(_2,_13);return isc.VMLRendererHandle.create(_3,this,_1,_2)},isc.A.image=function isc_VMLRenderer_image(_1,_2){var _3=this.buffer,_4=this.scale,_5=_2.transform,_6=_2.useMatrixFilter,_7=this.$1641(_5),_8=!(_6||_7),_9=_2.width,_10=_2.height,_11=0,_12=0;var _13=0,_14=0,_15=0,_16=0,_17=0;if(_6){var _18=this.$125z,_19=this.$1250,_20=this.$43z/2,_21=this.$430/2,_22=this.$155k,_23=this.$1644,_24=this.$1645,_25=_5.m00,_26=_5.m01,_27=_5.m02,_28=_5.m10,_29=_5.m11,_30=_5.m12;_13=_25*_19-_28*_18;_14=_26*_19-_29*_18;_15=_25*_18+_28*_19;_16=_26*_18+_29*_19;var _31=(_22*_20+_23),_32=(_22*_21+_24),_33=_22*(_27-_20),_34=_22*(_30-_21),_35=(_25*_29-_26*_28),_36=_35*_22;_11=(_19*(_29*_31-_26*_32)+_18*(_26*_31+_29*_32)+_29*_33-_26*_34-_35*_23)/_36;_12=(_18*-(_25*_31+_28*_32)+_19*-(_28*_31-_25*_32)+_25*_34-_28*_33-_35*_24)/_36;var _37=_23/_22,_38=_24/_22,_39=_11+_2.left+_9/2+_37,_40=_12+_2.top+_10/2+_38;_11+=(_13-1)*_39+_14*_40-((_19-1)*_37-_18*_38);_12+=_15*_39+(_16-1)*_40-(_18*_37+(_19-1)*_38);_11-=((Math.abs(_13)-1)*_9+Math.abs(_14)*_10)/2;_12-=(Math.abs(_15)*_9+(Math.abs(_16)-1)*_10)/2}else if(_7){_11=this.$155p(_5);_12=this.$155q(_5)}else{_17=this.$1557(_3,_2)}
  var _41=Math.round(_4*(_2.left+_11)),_42=Math.round(_4*(_2.top+_12)),_9=Math.round(_4*_9),_10=Math.round(_4*_10);_3.append(this.startTagVML("IMAGE"));this.$153d(_1,_2.alt);this.$153e(_2,"IMAGE",false,true,true);if(_6){var _43=this.matrixFilterPrecision;var _44,_45;if(isc.Browser.isIE8){_44="\"";_45="\\'";_3.append("-ms-")}else{_44="";_45="\""}
  _3.append(String.asAttValue("filter:"+_44+"progid:DXImageTransform.Microsoft.Matrix(Enabled=true,M11="+_13.toFixed(_43)+",M12="+_14.toFixed(_43)+",M21="+_15.toFixed(_43)+",M22="+_16.toFixed(_43)+",SizingMethod="+_45+"auto expand"+_45+")"+_44),";")}else if(_8){_3.append("rotation:"+_17.toFixed(this.rotationPrecision)+";")}
  _3.append("left:",_41,"px;top:",_42,"px;width:",_9,"px;height:",_10,"px;' SRC='",String.asAttValue(_2.src,false,false),"'");this.$153m(_2,"IMAGE");if(_8){_3.append(this.endTagVML("GROUP"))}
  return isc.VMLRendererHandle.create("image",this,_1,_2)},isc.A.text=function isc_VMLRenderer_text(_1,_2){_2.$126a=isc.VMLRenderer.$164p;return this.shape(_1,_2,"text")},isc.A.shape=function isc_VMLRenderer_shape(_1,_2,_3){_3=_3||"shape";var _4=_2.transform,_5=this.buffer,_6=(_3=="text");if(_6){this.$1648(_5)}
  _5.append(this.startTagVML("SHAPE"));this.$153d(_1,_2.alt);this.$153e(_2,"SHAPE",_6,false,false);_5.append(" PATH='");var _7=0,_8=0;if(this.$155j(_4)){_7=this.$155p(_4);_8=this.$155q(_4)}
  var _9=isc.VMLRenderer.$1522.$1525(this,_7,_8);_2.$126a(_9);_5.append("'");this.$153m(_2,(_6?"TEXT":"SHAPE"));if(_6){_5.append(this.endTagVML("GROUP"))}
  return isc.VMLRendererHandle.create(_3,this,_1,_2)},isc.A.group=function isc_VMLRenderer_group(_1,_2){var _3=this.buffer;_3.append(this.startTagVML("GROUP"));this.$153d(_1,null);this.$153e(_2,"GROUP",false,false,false);_3.append(">");return isc.VMLRendererHandle.create("group",this,_1,_2)},isc.A.endGroup=function isc_VMLRenderer_endGroup(_1){this.buffer.append(this.endTagVML("GROUP"))});isc.B._maxIndex=isc.C+39;isc.ClassFactory.defineClass("VMLRendererHandle");isc.A=isc.VMLRendererHandle;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$153p=(function(){var _1=isc.VMLRenderer.shapeConfigAllPropertiesList,_2=_1.length,_3={},_4=new Array(_2);for(var i=0;i<_2;++i){var _6=_1[i],_7=0,_8=0;if(i<30){_7=(1<<i)}else{_8=(1<<(i-30))}
  _3[_6]=_4[i]={property:_6,index:i,mask1:_7,mask2:_8,action:null}}
  _3.left.action=function(_71,_72){var _9=0;if(!(_72.useMatrixFilter&&this.$133e=="image")&&this.$1523.$1641(_72.transform))
  {_9=this.$1523.$155p(_72.transform)}
  this.$125f().style.left=Math.round(this.$1523.scale*(_72.left+_9))};_3.top.action=function(_71,_72){var _10=0;if(!(_72.useMatrixFilter&&this.$133e=="image")&&this.$1523.$1641(_72.transform))
  {_10=this.$1523.$155q(_72.transform)}
  this.$125f().style.top=Math.round(this.$1523.scale*(_72.top+_10))};_3.width.action=function(_71,_72){this.$125f().style.width=Math.round(this.$1523.scale*_72.width)};_3.height.action=function(_71,_72){this.$125f().style.height=Math.round(this.$1523.scale*_72.height)};_3.arcsize.action=function(_71,_72){if((_71.arcsize==0)!=(_72.arcsize==0)){this.$153q()}else{this.$153q()}};_3.startangle.action=function(_71,_72){var _11=(_71.startangle==0&&_71.endangle==360),_12=(_72.startangle==0&&_72.endangle==360);if(_11!=_12){this.$153q()}else{this.$125f().startangle=_72.startangle.toFixed(this.$1523.precision)}};_3.endangle.action=function(_71,_72){var _11=(_71.startangle==0&&_71.endangle==360),_12=(_72.startangle==0&&_72.endangle==360);if(_11!=_12){this.$153q()}else{this.$125f().endangle=_72.endangle.toFixed(this.$1523.precision)}};_3.fromX.mask1=_3.fromY.mask1=(_3.fromX.mask1|_3.fromY.mask1);_3.fromX.mask2=_3.fromY.mask2=(_3.fromX.mask2|_3.fromY.mask2);_3.fromX.action=_3.fromY.action=function(_71,_72){var _13=this.$1523.scale,_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  this.$125f().from=Math.round(_13*(_72.fromX+_9))+" "+Math.round(_13*(_72.fromY+_10))};_3.toX.mask1=_3.toY.mask1=(_3.toX.mask1|_3.toY.mask1);_3.toX.mask2=_3.toY.mask2=(_3.toX.mask2|_3.toY.mask2);_3.toX.action=_3.toY.action=function(_71,_72){var _13=this.$1523.scale,_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  this.$125f().to=Math.round(_13*(_72.toX+_9))+" "+Math.round(_13*(_72.toY+_10))};_3.control1X.mask1=_3.control1Y.mask1=(_3.control1X.mask1|_3.control1Y.mask1);_3.control1X.mask2=_3.control1Y.mask2=(_3.control1X.mask2|_3.control1Y.mask2);_3.control1X.action=_3.control1Y.action=function(_71,_72){var _13=this.$1523.scale,_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  this.$125f().control1=Math.round(_13*(_72.control1X+_9))+" "+Math.round(_13*(_72.control1Y+_10))};_3.control2X.mask1=_3.control2Y.mask1=(_3.control2X.mask1|_3.control2Y.mask1);_3.control2X.mask2=_3.control2Y.mask2=(_3.control2X.mask2|_3.control2Y.mask2);_3.control2X.action=_3.control2Y.action=function(_71,_72){var _13=this.$1523.scale,_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  this.$125f().control2=Math.round(_13*(_72.control2X+_9))+" "+Math.round(_13*(_72.control2Y+_10))};_3.lineWidth.action=function(_71,_72){if(this.$133e!="image"){this.$125f().strokeweight=Math.round(_72.lineWidth*this.$1523.drawPane.zoomLevel)+"px"}};_3.lineOpacity.action=function(_71,_72){if(_72.stroked&&this.$133e!="image"){this.$125r().opacity=Math.round(65536*_72.lineOpacity)+"f"}};_3.fillOpacity.action=function(_71,_72){if(_72.filled){this.$125s().opacity=Math.round(65536*_72.fillOpacity)+"f"}};_3.zIndex.action=function(_71,_72){this.$125f().style.zIndex=_72==null?"":_72.zIndex};_3.alt.action=function(_71,_72){if(_72.alt&&_71.alt!=_72.alt){this.$125f().alt=_72.alt}else if(_71.alt&&!_72.alt){this.$125f().removeAttribute("alt")}};_3.src.action=function(_71,_72){if(_72.src&&_71.src!=_72.src){this.$125f().src=_72.src}else if(_71.src&&!_72.src){this.$125f().removeAttribute("src")}};_3.lineColor.action=function(_71,_72){if(_72.stroked){this.$125f().strokecolor=_72.lineColor}};_3.linePattern.action=function(_71,_72){if(_72.stroked&&this.$133e!="image"){var _14=_72.linePattern;if(!(isc.isA.String(_14)&&isc.VMLRenderer.$152z.test(_14))){_14=isc.VMLRenderer.$125g}
  this.$125r().dashstyle=_14}};_3.startArrow.action=function(_71,_72){if(_72.stroked&&this.$133e!="image"){var _15=_72.startArrow;if(!(isc.isA.String(_15)&&isc.VMLRenderer.$1521.test(_15))){_15=isc.VMLRenderer.$27r}
  this.$125r().startarrow=_15}};_3.endArrow.action=function(_71,_72){if(_72.stroked&&this.$133e!="image"){var _16=_72.endArrow;if(!(isc.isA.String(_16)&&isc.VMLRenderer.$1521.test(_16))){_16=isc.VMLRenderer.$27r}
  this.$125r().endarrow=_16}};_3.lineCap.action=function(_71,_72){if(_72.stroked&&this.$133e!="image"){var _17=_72.lineCap;if(!(isc.isA.String(_17)&&isc.VMLRenderer.$1520.test(_17))){_17="round"}
  this.$125r().endcap=_17}};_3.fillColor.action=function(_71,_72){if(_72.filled){var _18=_72.fillColor;this.$125f().fillcolor=!_18?"white":_18}};_3.textAlign.action=function(_71,_72){if(this.$133e=="text"){var _19=_72.textAlign;if(!(isc.isA.String(_19)&&isc.VMLRenderer.$164g.test(_19))){_19="center"}
  this.$165g().style.textAlign=_19}};_3.fontFamily.action=function(_71,_72){if(this.$133e=="text"&&_71.fontFamily!=_72.fontFamily){this.$165g().style.fontFamily=this.$1523.$165c("'",false,_72.fontFamily)}};_3.fontSize.action=function(_71,_72){if(this.$133e=="text"){this.$165g().style.fontSize=_72.fontSize}};_3.fontWeight.action=function(_71,_72){if(this.$133e=="text"){this.$165g().style.fontWeight=_72.fontWeight}};_3.fontStyle.action=function(_71,_72){if(this.$133e=="text"){this.$165g().style.fontStyle=_72.fontStyle}};_3.contents.action=function(_71,_72){if(this.$133e=="text"&&_71.contents&&_72.contents&&_71.contents!=_72.contents)
  {this.$165g().string=this.$1523.$165a(_72.contents)}};_3.points.action=function(_71,_72){if(isc.isAn.Array(_72.points)&&_72.points.length>0){var _20=isc.StringBuffer.create(),_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  this.$1523.$153o(_20,_72.points,_72.closePolyline,_9,_10);this.$125f().points.value=_20.release(false)}else{this.$125f().removeAttribute("points")}};_3.$145i.action=function(_71,_72){};_3.stroked.action=function(_71,_72){var _21=!_71.stroked&&_72.stroked,_22=!_21&&_71.stroked&&!_72.stroked,_23;if(_21){this.$125r(_72);_23=this.$125f();_23.stroked="t"}else if(_22){isc.Element.clear(this.$125r());delete this.$44w;this.$125f().stroked="f"}
  if(_21||_22){var _3=isc.VMLRendererHandle.$153p;if(_21&&((this.$153r&_3.lineColor.mask1)|(this.$153s&_3.lineColor.mask2))!=0)
  {_23.strokecolor=_72.lineColor}
  var _7=(_3.lineOpacity.mask1|_3.lineColor.mask1|_3.linePattern.mask1|_3.startArrow.mask1|_3.endArrow.mask1|_3.lineCap.mask1),_8=(_3.lineOpacity.mask2|_3.lineColor.mask2|_3.linePattern.mask2|_3.startArrow.mask2|_3.endArrow.mask2|_3.lineCap.mask2);this.$153t(_7,_8,false)}};_3.filled.action=function(_71,_72){var _24=!_71.filled&&_72.filled,_25=_71.filled&&!_72.filled,_23;if(_24){this.$125s(_72);_23=this.$125f();_23.filled="t"}else if(_25){isc.Element.clear(this.$125s());delete this.$44x;this.$125f().filled="f"}
  if(_24||_25){var _3=isc.VMLRendererHandle.$153p;if(_24&&((this.$153r&_3.fillColor.mask1)|(this.$153s&_3.fillColor.mask2))!=0)
  {_23.fillcolor=_72.fillColor}
  this.$153t((_3.fillOpacity.mask1|_3.fillColor.mask1|_3.fillGradient.mask1),(_3.fillOpacity.mask2|_3.fillColor.mask2|_3.fillGradient.mask2),false)}};_3.closePolyline.action=function(_71,_72){};_3.useMatrixFilter.action=function(_71,_72){this.$153q()};_3.transform.action=function(_71,_72){var _26=this.$155s,_27=(this.$1523.$1642==0),_28=(_26?this.$165h:_27),_29=_71.transform,_30=_72.transform;if(_26||(_29!=_30&&!(_29.m00==_30.m00&&_29.m01==_30.m01&&_29.m01==_30.m02&&_29.m10==_30.m10&&_29.m11==_30.m11&&_29.m12==_30.m12)))
  {var _31=this.$1523,_32=this.$133e,_33=(_32=="rect"||_32=="roundrect"||_32=="line"||_32=="polyline"||_32=="curve"||_32=="oval"||_32=="arc");var _34=this.$1523.$155j(_29),_35=(_26?_34:this.$1523.$155j(_30)),_36=(_34&&!_35),_37=(!_34&&_35),_38=(_32=="image"),_39=(_32=="text"),_40=(!_38&&(_39?_37:_35&&_28&&!_27)),_41=(!_38&&(_39?_36:_35&&!_28&&_27)),_42=(_36||_37||_40||_41);if((_33&&_42)||_32=="image")
  {this.$153q();return}
  var _43=_33&&_35&&_27;if(_42||_35){if(_43){this.$153q();return}else{var _3=isc.VMLRendererHandle.$153p;this.$154p(_3.$126a.index,true)}}
  if(_40){this.$125f().type=(_32=="text"?this.$1523.$164y:this.$1523.$164v)}else if(_41){this.$125f().removeAttribute("type")}
  if(_36){this.$153u(_72)}else if(_37){isc.Element.clear(this.$153u());delete this.$153v}else if(!_35){var _44=this.$153u(),_45=this.$1523.$155r(_30,_39);_44.matrix=_45.matrix;_44.offset=_45.offset}
  if(_39&&this.$165i){this.$1523.$1649(this.getHandle())}}};_3.getBoundingBox.action=function(_71,_72){};_3.$830.action=function(_71,_72){};_3.$126a.action=function(_71,_72){var _31=this.$1523,_46=_31.buffer,_20=_31.buffer=isc.StringBuffer.create(),_9=0,_10=0;if(this.$1523.$155j(_72.transform)){_9=this.$1523.$155p(_72.transform);_10=this.$1523.$155q(_72.transform)}
  var _47=isc.VMLRenderer.$1522.$1525(_31,_9,_10);_72.$126a(_47);this.$125f().path.value=_20.release(false);_31.buffer=_46};_3.fillGradient.action=function(_71,_72){if(_72.filled){var _48=this.$1523.drawPane,_49=_71.fillGradient,_50=_72.fillGradient,_51=(isc.isA.String(_49)?_48.getGradient(_49):_49),_52=(isc.isA.String(_50)?_48.getGradient(_50):_50);if(_51!=null&&isc.isAn.emptyObject(_51)){_51=null}
  if(_52!=null&&isc.isAn.emptyObject(_52)){_52=null}
  if(_51==_52){return}else{var _20=isc.StringBuffer.create();this.$1523.$153j(_20,_72,true);this.$44x=isc.VMLRendererHandle.$153w(this.$125s(),_20.release(false));this.$153t((_3.fillOpacity.mask1|_3.fillColor.mask1),(_3.fillOpacity.mask2|_3.fillColor.mask2),false);this.$153x=true}}};_3.shadow.action=function(_71,_72){var _53=(!_71.shadow&&_72.shadow),_54=(_71.shadow&&!_72.shadow),_55=(_71.shadow&&_72.shadow&&_71.shadow!=_72.shadow);if(_53){this.$153y(_72)}else if(_55||_54){var _56=this.$153y();if(_55){var _20=isc.StringBuffer.create();this.$1523.$153k(_20,_72.shadow,true);this.$153z=isc.VMLRendererHandle.$153w(_56,_20.release(false))}else{isc.Element.clear(_56);delete this.$153z}}};_3.visibility.action=function(_71,_72){this.$125f().style.visibility=_72.visibility};var _57=(_3.left.mask1|_3.top.mask1|_3.width.mask1|_3.height.mask1),_58=(_3.left.mask2|_3.top.mask2|_3.width.mask2|_3.height.mask2),_59=_57|_3.arcsize.mask1,_60=_58|_3.arcsize.mask2,_61=(_3.fromX.mask1|_3.fromY.mask1|_3.toX.mask1|_3.toY.mask1),_62=(_3.fromX.mask2|_3.fromY.mask2|_3.toX.mask2|_3.toY.mask2),_63=(_3.points.mask1|_3.closePolyline.mask1),_64=(_3.points.mask2|_3.closePolyline.mask2),_65=(_61|_3.control1X.mask1|_3.control1Y.mask1|_3.control2X.mask1|_3.control2Y.mask1),_66=(_62|_3.control1X.mask2|_3.control1Y.mask2|_3.control2X.mask2|_3.control2Y.mask2),_67=(_57|_3.startangle.mask1|_3.endangle.mask1),_68=(_58|_3.startangle.mask2|_3.endangle.mask2),_69=(_3.left.mask1|_3.top.mask1|_3.textAlign.mask1|_3.fontFamily.mask1|_3.fontSize.mask1|_3.fontWeight.mask1|_3.fontStyle.mask1|_3.contents.mask1),_70=(_3.left.mask2|_3.top.mask2|_3.textAlign.mask2|_3.fontFamily.mask2|_3.fontSize.mask2|_3.fontWeight.mask2|_3.fontStyle.mask2|_3.contents.mask2);isc.VMLRendererHandle.addClassProperties({$1530:_4,$1531:(_59|_67|_65|_63|_69|_3.$126a.mask1),$1532:(_60|_68|_66|_64|_70|_3.$126a.mask2),$1533:_57,$1534:_58,$1535:_59,$1536:_60,$1537:_61,$1538:_62,$1539:_63,$154a:_64,$154b:_65,$154c:_66,$154d:_57,$154e:_58,$154f:_67,$154g:_68,$165j:_69,$165k:_70});return _3})();isc.B.push(isc.A.$154h=function isc_c_VMLRendererHandle__shapeConfigDuplicate(_1,_2){var _3=new isc.VMLRenderer.shapeConfig();isc.getProperties(_1,isc.VMLRenderer.shapeConfigAllPropertiesList,_3);_3.$1526=_1.$1526;if(_2){_3.transform=isc.VMLRendererHandle.$154i(_1.transform);_3.points=isc.VMLRendererHandle.$154j(_1.points)}
  return _3},isc.A.$154i=function isc_c_VMLRendererHandle__duplicateTransform(_1){return(isc.isAn.AffineTransform(_1)?_1.duplicate():_1)},isc.A.$154j=function isc_c_VMLRendererHandle__duplicatePoints(_1){if(isc.isAn.Array(_1)){var _2=_1.length,_3=new Array(_2);for(var i=0;i<_2;++i){var _5=_1[i],_6=new Array(2);_6[0]=_5[0];_6[1]=_5[1];_3[i]=_6}
  return _3}else{return _1}},isc.A.$153w=function isc_c_VMLRendererHandle__replaceVML(_1,_2){var _3=_1.parentElement,_4=document.createDocumentFragment(),_5=isc.Element.insertAdjacentHTML(_4,"afterbegin",_2,true);_3.replaceChild(_5,_1);if(isc.Browser.isIE8){var _6=_5.previousSibling;if(_6==null){_5.outerHTML=_5.outerHTML;_5=_3.firstChild}else{_5.outerHTML=_5.outerHTML;_5=_6.nextSibling}}
  return _5});isc.B._maxIndex=isc.C+4;isc.A=isc.VMLRendererHandle.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$133e=null;isc.A.$1523=null;isc.A.$151="";isc.A.$154k=null;isc.A.$154l=null;isc.A.$153r=0;isc.A.$153s=0;isc.A.addPropertiesOnCreate=false;isc.A.$154m=["useMatrixFilter","transform","arcsize","startangle","endangle","stroked","filled","fillGradient"];isc.A.$154n={found:false,handle:null,where:"afterbegin"};isc.A.$154o=[isc.VMLRenderer.$125j,isc.VMLRenderer.$125m,isc.VMLRenderer.$125n,isc.VMLRenderer.$152y,isc.VMLRenderer.$164d,isc.VMLRenderer.$164e];isc.B.push(isc.A.init=function isc_VMLRendererHandle_init(_1,_2,_3,_4){this.$133e=_1;this.$1523=_2;this.$151=_3;this.$154k=isc.VMLRendererHandle.$154h(_4,true);this.$154l=isc.VMLRendererHandle.$154h(this.$154k,false)},isc.A.setProperty=function isc_VMLRendererHandle_setProperty(_1,_2,_3,_4,_5){if(this.$133e=="group"&&_1!="zIndex"){return this}
  var _6=isc.VMLRendererHandle.$153p,_7=_6[_1];if(_7!=null){var _8=this.$154k,_9=this.$154l,_10=(_1=="$126a");if(_10||_9[_1]!=_2){if(!_10){if(_1=="transform"){if(_3){this.$155s=true;this.$165h=_4;this.$165i=_5}else{this.$155s=false;_9[_1]=isc.VMLRendererHandle.$154i(_2)}}else if(_1=="points"){_9[_1]=isc.VMLRendererHandle.$154j(_2)}else{_9[_1]=_2}}
  this.$154p(_7.index,(_10||(_8[_1]!=_2)))}}
  return this},isc.A.$154p=function isc_VMLRendererHandle__setFlag(_1,_2){if(_1<30){if(_2){this.$153r|=(1<<_1)}else{this.$153r&=~(1<<_1)}}else{_1-=30;if(_2){this.$153s|=(1<<_1)}else{this.$153s&=~(1<<_1)}}},isc.A.$153t=function isc_VMLRendererHandle__setMask(_1,_2,_3){if(_3){this.$153r|=_1;this.$153s|=_2}else{this.$153r&=~_1;this.$153s&=~_2}},isc.A.flush=function isc_VMLRendererHandle_flush(){var _1=isc.VMLRendererHandle.$153p,_2=this.$153r,_3=this.$153s,_4=this.$154k,_5=this.$154l;if(this.$133e=="text"){var _6=isc.VMLRendererHandle.$165j;_7=isc.VMLRendererHandle.$165k;if(((this.$153r&_6)|(this.$153s&_7))!=0){this.$153t(_1.left.mask1|_1.top.mask1,_1.left.mask2|_1.top.mask2,false);this.$154p(_1.$126a.index,true)}}else if(!this.$1523.$155j(_5.transform)){var _6=0,_7=0;switch(this.$133e){case"roundrect":_6=isc.VMLRendererHandle.$1535;_7=isc.VMLRendererHandle.$1536;case"rect":case"image":_6|=isc.VMLRendererHandle.$1533;_7|=isc.VMLRendererHandle.$1534;break;case"line":_6=isc.VMLRendererHandle.$1537;_7=isc.VMLRendererHandle.$1538;break;case"polyline":_6=isc.VMLRendererHandle.$1539;_7=isc.VMLRendererHandle.$154a;break;case"curve":_6=isc.VMLRendererHandle.$154b;_7=isc.VMLRendererHandle.$154c;break;case"arc":_6=isc.VMLRendererHandle.$154f;_7=isc.VMLRendererHandle.$154g;case"oval":_6|=isc.VMLRendererHandle.$154d;_7|=isc.VMLRendererHandle.$154e;break}
  if((_6|_7)!=0){if(((this.$153r&_6)|(this.$153s&_7))!=0){this.$153t(_6,_7,false);if(this.$133e=="image"){this.$154p(_1.transform.index,true);this.$155s=true}else{this.$154p(_1.$126a.index,true)}}}}
  if(_4.visibility=="visible"){var _8=_1.visibility,_9=(((this.$153r&_8.mask1)|(this.$153s&_8.mask2))!=0),_10=_5.visibility;if(!_9){_5.visibility="hidden"}
  _8.action.call(this,_4,_5);if(_9){this.$153r&=~_8.mask1;this.$153s&=~_8.mask2}else{_4.visibility="hidden";_5.visibility=_10;this.$153r|=_8.mask1;this.$153s|=_8.mask2}}
  this.$154q=false;var _11=this.$154m;for(var i=0,n=_11.length;i<n;++i){var _14=_1[_11[i]];if(((this.$153r&_14.mask1)|(this.$153s&_14.mask2))!=0){_14.action.call(this,_4,_5);this.$153r&=~_14.mask1;this.$153s&=~_14.mask2}}
  var _6=_1.closePolyline.mask1,_7=_1.closePolyline.mask2;if((this.$153r&_6)|(this.$153s&_7)!=0){this.$154p(_1.closePolyline.index,false);this.$154p(_1.points.index,true)}
  if(_5.filled&&!(this.$154q||this.$153x)){var _6=isc.VMLRendererHandle.$1531,_7=isc.VMLRendererHandle.$1532,_15=_5.fillGradient,_16=(isc.isA.String(_15)?this.$1523.drawPane.getGradient(_15):_15),_17=(_16!=null&&!isc.isAn.emptyObject(_16)&&(isc.DrawItem.$135h(_16)||isc.DrawItem.$135i(_16)));if(_17&&((this.$153r&_6)|(this.$153s&_7))!=0)
  {var _18=isc.StringBuffer.create();this.$1523.$153j(_18,_5,true);this.$44x=isc.VMLRendererHandle.$153w(this.$125s(),_18.release(false));this.$153t((_1.fillOpacity.mask1|_1.fillColor.mask1|_1.fillGradient.mask1),(_1.fillOpacity.mask2|_1.fillColor.mask2|_1.fillGradient.mask2),false)}}
  var _19=isc.VMLRendererHandle.$1530,_20=_19.length,_21=this.$153r,_22=this.$153s;for(var i=0;!(_21==0&&_22==0)&&i<_20;++i){var _14=_19[i];if(((_21&_14.mask1)|(_22&_14.mask2))!=0){_14.action.call(this,_4,_5);_21&=~_14.mask1;_22&=~_14.mask2}}
  for(var i=0;!(_2==0&&_3==0)&&i<_20;++i){var _14=_19[i];if(((_2&_14.mask1)|(_3&_14.mask2))!=0){var _23=_14.property;_4[_23]=_5[_23];_2&=~_14.mask1;_3&=~_14.mask2}}
  this.$153r=this.$153s=0;this.$155s=false},isc.A.$153q=function isc_VMLRendererHandle__regenerateVML(){var _1=this.$1523,_2=_1.buffer,_3=_1.buffer=isc.StringBuffer.create();_1[this.$133e](this.$151,this.$154l);var _4=isc.VMLRendererHandle.$153w(this.getHandle(),_3.release(false));if(this.$133e=="text"||(this.$133e=="image"&&!this.$154l.useMatrixFilter&&!this.$1523.$1641(this.$154l.transform)))
  {this.$44u=_4.firstChild}else{this.$44u=_4}
  _1.buffer=_2;this.$153r=this.$153s=0;delete this.$44w;delete this.$44x;delete this.$153z;delete this.$153v;this.$154q=true},isc.A.getHandle=function isc_VMLRendererHandle_getHandle(){var _1=this.$125f();if(this.$133e=="text"||(this.$133e=="image"&&!this.$154k.useMatrixFilter&&!this.$1523.$1641(this.$154k.transform)))
  {_1=_1.parentElement}
  return _1},isc.A.$125f=function isc_VMLRendererHandle__getVMLHandle(){if(this.$44u!=null)return this.$44u;return(this.$44u=isc.Element.get(this.$151))},isc.A.$154r=function isc_VMLRendererHandle__findVMLSubelementHandle(_1,_2){var _3=this.$154o;var n=_3.length,_5=this.$154n,_6=_3.indexOf(_2);for(var i=0,_8=_1,_9=_1.firstChild;i<n;++i){var _10=(_9==null?_6+1:_3.indexOf(_9.tagName));if(_10>_6){_5.found=false;_5.handle=_8;_5.where=(i==0?"afterbegin":"afterend");return _5}else if(_10==_6){_5.found=true;_5.handle=_9;return _5}else{_8=_9;_9=_9.nextSibling}}},isc.A.$125r=function isc_VMLRendererHandle__getVMLStrokeHandle(_1){_1=_1||this.$154k;var _2=this.$44w;if(_2!=null)return _2;var _3=this.$125f();if(_3==null)return null;var _4=this.$154r(_3,isc.VMLRenderer.$125j);if(_4.found){_2=_4.handle}else{var _5=isc.StringBuffer.create();this.$1523.$153h(_5,_1,true);if(_5.getArray().length>0){_2=isc.Element.insertAdjacentHTML(_4.handle,_4.where,_5.release(false),true)}}
  return(this.$44w=_2)},isc.A.$125s=function isc_VMLRendererHandle__getVMLFillHandle(_1){_1=_1||this.$154k;var _2=this.$44x;if(_2!=null)return _2;var _3=this.$125f();if(_3==null)return null;var _4=this.$154r(_3,isc.VMLRenderer.$125m);if(_4.found){_2=_4.handle}else{var _5=isc.StringBuffer.create();this.$1523.$153j(_5,_1,true);if(_5.getArray().length>0){_2=isc.Element.insertAdjacentHTML(_4.handle,_4.where,_5.release(false),true)}}
  return(this.$44x=_2)},isc.A.$153y=function isc_VMLRendererHandle__getVMLShadowHandle(_1){_1=_1||this.$154k;var _2=this.$153z;if(_2!=null)return _2;var _3=this.$125f();if(_3==null)return null;var _4=this.$154r(_3,isc.VMLRenderer.$125n);if(_4.found){_2=_4.handle}else{var _5=isc.StringBuffer.create();this.$1523.$153k(_5,_1.shadow,true);_2=isc.Element.insertAdjacentHTML(_4.handle,_4.where,_5.release(false),true)}
  return(this.$153z=_2)},isc.A.$153u=function isc_VMLRendererHandle__getVMLSkewHandle(_1){_1=_1||this.$154k;var _2=this.$153v;if(_2!=null)return _2;var _3=this.$125f();if(_3==null)return null;var _4=this.$154r(_3,isc.VMLRenderer.$152y);if(_4.found){_2=_4.handle}else{var _5=isc.StringBuffer.create();this.$1523.$153f(_5,_1,true,(this.$133e=="text"));_2=isc.Element.insertAdjacentHTML(_4.handle,_4.where,_5.release(false),true)}
  return(this.$153v=_2)},isc.A.$165g=function isc_VMLRendererHandle__getVMLTextpathHandle(_1){_1=_1||this.$154k;var _2=this.$165l;if(_2!=null)return _2;var _3=this.$125f();if(_3==null)return null;var _4=this.$154r(_3,isc.VMLRenderer.$164d);if(_4.found){_2=_4.handle}else{var _5=isc.StringBuffer.create();this.$1523.$165f(_5,_1,true);_2=isc.Element.insertAdjacentHTML(_4.handle,_4.where,_5.release(false),true)}
  return(this.$165l=_2)});isc.B._maxIndex=isc.C+14;isc.defineClass("SVGStringConversionContext").addClassProperties({$99a:"xlink",$162o:0});isc.A=isc.SVGStringConversionContext.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$99b=1;isc.A.printForExport=true;isc.A.$166j=true;isc.A.xlinkPrefix=isc.SVGStringConversionContext.$99a;isc.B.push(isc.A.init=function isc_SVGStringConversionContext_init(){this.Super("init",arguments);this.defSvgStrings={};this.useGradientIDs={};this.$162p=isc.SVGStringConversionContext.$162o++;if(this.gradientIdProperty==null){this.gradientIdProperty="$162d"+this.$162p+"_gradientId"}},isc.A.getNextSvgDefID=function isc_SVGStringConversionContext_getNextSvgDefID(){return"$162d"+this.$162p+"_def"+(this.$99b++)});isc.B._maxIndex=isc.C+2;isc.defineClass("VMLStringConversionContext").addMethods({init:function(){this.Super("init",arguments);this.drawLabelsAccumulator=[]}});isc.defineClass("DrawPane","Canvas");isc.A=isc.DrawPane.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$125w=isc.Math.$125w;isc.A.overflow="hidden";isc.A.drawingType=isc.Browser.defaultDrawingType;isc.A.drawingWidth=1000;isc.A.drawingHeight=1000;isc.A.precision=1;isc.A.canDragScroll=false;isc.A.dragAppearance="none";isc.A.dragScrollCursor="all-scroll";isc.A.isMouseTransparent=true;isc.A.rotation=0;isc.A.zoomLevel=1;isc.A.translate=null;isc.A.$148p=0;isc.A.$162q=false;isc.A.$165m={matrix:"",zoomMatrix:"",offset:"",zoomOffset:""};isc.A.measureLabelCacheMaxSize=100;isc.A.$163d={"borderTopStyle":"border-top-style","borderRightStyle":"border-right-style","borderBottomStyle":"border-bottom-style","borderLeftStyle":"border-left-style","borderTopColor":"border-top-color","borderRightColor":"border-right-color","borderBottomColor":"border-bottom-color","borderLeftColor":"border-left-color"};isc.A.$150r=new Array(2);isc.A.$163e={top:0,right:0,bottom:0,left:0};isc.A.$162r=0;isc.B.push(isc.A.supportsFractionalCoordinates=function isc_DrawPane_supportsFractionalCoordinates(){return true},isc.A.createQuadTree=function isc_DrawPane_createQuadTree(){this.quadTree=isc.QuadTree.create({depth:0,maxDepth:50,maxChildren:1});this.quadTree.bounds={x:0,y:0,width:this.$163f(),height:this.$163g()};this.quadTree.root=isc.QuadTreeNode.create({depth:0,maxDepth:8,maxChildren:4});this.quadTree.root.bounds=this.quadTree.bounds},isc.A.init=function isc_DrawPane_init(){if(isc.Browser.isIE&&this.drawingType=="vml"){this.hideUsingDisplayNone=true}
  return this.Super("init",arguments)},isc.A.initWidget=function isc_DrawPane_initWidget(){this.Super("initWidget",arguments);var _1=this.precision=Math.max(0,this.precision<<0);this.$1259=Math.pow(10,_1);this.$135k();if(this.drawingType=="svg"){this.$l=false;this.$162e=isc.SVGStringConversionContext.create({printForExport:false,$166j:false,gradientIdProperty:"id"})}
  if(this.hasOwnZIndices)this.initializeZIndexCounters();this.$150v=[];if(this.drawItems==null){this.drawItems=[]}else{var _2=this.drawItems.duplicate();this.drawItems=[];for(var i=0;i<_2.length;++i){this.addDrawItem(_2[i])}}
  this.createQuadTree();if(this.canvasItems==null){this.canvasItems=[]}else{var _4=this.canvasItems.duplicate();this.canvasItems=[];for(var i=0;i<_4.length;++i){this.addCanvasItem(_4[i])}}
  this.redrawOnResize=(this.drawingType=="bitmap");this.$43z=this.$163f();this.$430=this.$163g();this.$431=this.translate==null?0:this.translate[0];this.$432=this.translate==null?0:this.translate[1];this.$433=this.$43z/this.zoomLevel;this.$434=this.$430/this.zoomLevel;this.$1363=this.zoomLevel;if(isc.Browser.isIE&&this.drawingType=="vml"){if(!isc.DrawPane.$150u){var _5=this.getDocument(),_6;try{_6=_5.createStyleSheet()}catch(e){var _7=_5.createElement("style");_5.documentElement.appendChild(_7);_6=_7.sheet||_7.styleSheet}
  _6.addRule(".rvml","behavior:url(#default#VML)");isc.DrawPane.$150u=true}
  try{if(!document.namespaces.rvml)document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");this.startTagVML=function(_8){return'<rvml:'+_8+' class="rvml" '};this.endTagVML=function(_8){return'</rvml:'+_8+'>'}}catch(e){this.startTagVML=function(_8){return'<'+_8+' xmlns="urn:schemas-microsoft.com:vml" class="rvml" '};this.endTagVML=function(_8){return'</rvml:'+_8+'>'}}
  this.$1523=isc.VMLRenderer.create(this,this.$1259,this.precision)}},isc.A.$135k=function isc_DrawPane__initGradients(){var _1=this.gradients,_2=this.$135l={};if(_1==null){this.gradients=[];return}
  if(!isc.isAn.Array(_1)){_1=this.gradients=[_1]}
  for(var i=0,_4=_1.length;i<_4;++i){var _5=_1[i];if(!_5.id){this.logWarn("Gradient provided in DrawPane.gradients does not have an ID - ignored");continue}
  if(!_5._constructor)_5._constructor=isc.DrawItem.$135m(_5);if(_2[_5.id]!=null){this.logWarn("Duplicate gradient with ID "+_5.id+" - replacing previous gradient")}
  _2[_5.id]=_5}},isc.A.getOffsetX=function isc_DrawPane_getOffsetX(){return this.Super("getOffsetX",arguments)-this.getScrollLeft()},isc.A.getOffsetY=function isc_DrawPane_getOffsetY(){return this.Super("getOffsetY",arguments)-this.getScrollTop()},isc.A.$1503=function isc_DrawPane__makeCoordinate(_1){return isc.DrawItem.$1503(_1,this.roundCoordinates||this.drawingType=="vml")},isc.A.getDrawingX=function isc_DrawPane_getDrawingX(){return this.getDrawingPoint()[0]},isc.A.getDrawingY=function isc_DrawPane_getDrawingY(){return this.getDrawingPoint()[1]},isc.A.getDrawingPoint=function isc_DrawPane_getDrawingPoint(_1){var _2=this.ns.EH,_3=this.$150s(_2.getX(_1),_2.getY(_1)),x=_3[0],y=_3[1];var _6=this.normalize(x,y);x=_6[0];y=_6[1];return[this.$1503(x),this.$1503(y)]},isc.A.$136x=function isc_DrawPane__toVMLCoord(_1){return(_1*this.$1259)<<0},isc.A.normalize=function isc_DrawPane_normalize(_1,_2){return this.$147h().transform(_1,_2)},isc.A.getDrawItem=function isc_DrawPane_getDrawItem(_1,_2,_3,_4){var _5=this.$150s(_1,_2),x=_5[0],y=_5[1];var _8=this.normalize(x,y);x=_8[0];y=_8[1];var _9=this.quadTree.retrieve({x:x,y:y});if(_9==null)return null;var _10=_9.length;for(var i=0;i<_10;++i){if(_9[i].item!=null){_9[i]=_9[i].item}}
  _9.sort(isc.QuadTree.$148q);var _12=null;for(var i=_10;i--;){var _13=_9[i],_14=_13.shape;if((_3&&(_14.canHover===false||(_14.canHover==null&&_14.prompt==null)))||_14.hidden)
  {continue}
  var _15;if(_4!=null&&_4.nativeTarget!=null&&_14.drawingSVG&&_14.$44z===_4.nativeTarget)
  {_15=true}else{_15=_14.isPointInPath(x,y,_1,_2)}
  var _16=false;for(var _17=_14.drawGroup;!_16&&_17!=null;_17=_17.drawGroup){if(_17.useGroupRect&&_17.isInBounds(x,y)){_16=true;_12=_17}}
  if(_16){continue}
  if(_15){if(_14.eventProxy!=null)_14=_14.eventProxy;return _14}}
  return _12},isc.A.getEventTarget=function isc_DrawPane_getEventTarget(_1){var _2=this.ns.EH,_3=_1.eventType;if(_2.isMouseEvent(_3))
  {var _4=this.getDrawItem(_1.x,_1.y,false,_1);if(_4!=null)return _4}
  return this},isc.A.getHoverTarget=function isc_DrawPane_getHoverTarget(_1){var _2=this.getDrawItem(_1.x,_1.y,true,_1);if(_2!=null)return _2;return this.Super("getHoverTarget",arguments)},isc.A.$k2=function isc_DrawPane__updateCursor(_1){var _2=null;if(_1!=null){_2=_1.getCurrentCursor()}
  if(_2==null)_2=this.canDragScroll?this.dragScrollCursor:this.getCurrentCursor();this.$v8(_2)},isc.A.prepareForDragging=function isc_DrawPane_prepareForDragging(){if(!isc.EH.dragTarget&&!isc.EventHandler.rightButtonDown()){var _1=this.getDrawItem(isc.EH.lastEvent.x,isc.EH.lastEvent.y,false,isc.EH.lastEvent);if(_1!=null&&_1.canDrag){isc.EH.dragTarget=_1;isc.EH.dragOperation="drag";return true}else if(this.canDragScroll){isc.EH.dragTarget=this;isc.EH.dragOperation=isc.EH.DRAG_SCROLL;return true}}
  return this.Super("prepareForDragging",arguments)},isc.A.dropMove=function isc_DrawPane_dropMove(){},isc.A.clearDrawItems=function isc_DrawPane_clearDrawItems(){var _1=this.drawItems,_2=(_1==null?0:_1.length);if(_2>0){for(var i=0;i<_2;++i){var _4=_1[i];_4.clear(true,false)}}
  if(this.drawingType=="bitmap")delete this.$439},isc.A.clear=function isc_DrawPane_clear(){this.clearDrawItems();this.Super("clear",arguments);var _1=this.drawingType;if(_1==="svg"){this.$44d=null;this.$44n=null;this.$44o=null;var _2=this.$162e;_2.defSvgStrings={};_2.useGradientIDs={};this.$l=false}else if(_1==="bitmap"){this.$437=null}},isc.A.drawBounds=function isc_DrawPane_drawBounds(_1){isc.DrawRect.create({autoDraw:true,drawPane:this,left:Math.round(_1.bounds.x),top:Math.round(_1.bounds.y-_1.bounds.height),width:Math.round(_1.bounds.width),height:Math.round(_1.bounds.height)},{lineColor:"#FF0000",lineOpacity:0.1,lineWidth:1,linePattern:"solid"});if(_1.nodes&&_1.nodes.length){for(var i=0;i<_1.nodes.length;++i){this.drawBounds(_1.nodes[i])}}},isc.A.erase=function isc_DrawPane_erase(_1,_2){if(_2==null){_2=true;this.$992()}
  if(_1){var _3=this.drawItems||[];for(var i=0;i<_3.length;++i){_3[i].destroy(true,_2)}}else if(this.isDrawn()){var _3=this.drawItems||[];for(var i=0;i<_3.length;++i){_3[i].erase(true,_2)}}
  if(_2)this.$100h=this.$135l;var _5=this.gradients;if(this.gradients!=null){_5.setLength(0);this.$135l={}}
  if(_2)this.$993=this.drawItems;this.drawItems=[];this.$1262=null;delete this.$63q;this.canvasItems=[];this.$150v=[];this.createQuadTree();var _6=this.drawingType;if(!_2&&_6==="svg"){var _7=this.$44o;if(_7!=null){var _8=this.$44o=_7.cloneNode(false);_7.parentNode.replaceChild(_8,_7)}
  var _9=this.$162e;_9.defSvgStrings={};_9.useGradientIDs={}}else if(_6==="bitmap"){this.redrawBitmap()}},isc.A.destroyItems=function isc_DrawPane_destroyItems(){this.erase(true,false);if(this.hasOwnZIndices)this.resetZIndexCounters()},isc.A.destroy=function isc_DrawPane_destroy(){var _1=this.drawItems;if(_1!=null){for(var i=0;i<_1.length;++i){_1[i].destroy(true)}
  _1=null}
  this.Super("destroy",arguments)},isc.A.addDrawItem=function isc_DrawPane_addDrawItem(_1,_2,_3){if(!_3){if(_1.drawGroup!=null){_1.drawGroup.removeDrawItem(_1)}else if(_1.drawPane!=null){if(_1.item!=null){_1.drawPane.quadTree.remove(_1.item);_1.item=null}
  if(_1.drawPane===this){_1.erase();_3=true}else{if(_1.knobs!=null&&!_1.knobs.isEmpty()){_1.knobs.map(_1.$635,_1)}
  _1.drawPane.removeDrawItem(_1)}}}
  if(_1.$183r&&this.hasOwnZIndices){this.logWarn("Attempting to add a DrawItem with automatic zIndex to a DrawPane with hasOwnZIndices set - clearing the zIndex");delete _1.zIndex}
  delete _1.$183r;_1.drawPane=this;_1.getZIndex(true);_1.$148r=this.$148p++;if(isc.isA.DrawGroup(_1)){_1.$148s(this)}else if(_1.exemptFromGlobalTransform){this.$150v.push(_1)}
  if(_2==null)_2=true;if(!(this.isDrawn()||this.handleDrawn())){if(_3||!this.drawItems.contains(_1)){var i=isc.Array.$96c(this.drawItems,_1,isc.DrawItem.$1687);if(i<0)i=-i-1;for(;i<this.drawItems.length&&isc.DrawItem.$1687(this.drawItems[i],_1)==0;++i){}
  this.drawItems.addAt(_1,i);_1.$166z();_1.$1660()}
  this.shouldDeferDrawing(_1)}else if(_2&&!_1.$if){_1.draw();_1.$166z()}},isc.A.resetZIndexCounters=function isc_DrawPane_resetZIndexCounters(){this._nextZIndex=isc.DrawItem._nextZIndex;this.$1688=isc.DrawItem.$1688;this._SMALL_Z_INDEX=isc.DrawItem._SMALL_Z_INDEX;this._BIG_Z_INDEX=isc.DrawItem._BIG_Z_INDEX},isc.A.initializeZIndexCounters=function isc_DrawPane_initializeZIndexCounters(){if(this.drawItems)this.drawItems.clearProperty("$183r");this.resetZIndexCounters()},isc.A.$182x=function isc_DrawPane__getNextZIndex(_1){if(_1)return(this.$1688+=9);else return(this._nextZIndex+=18)},isc.A.$182y=function isc_DrawPane__raiseNextZIndexTo(_1,_2){var _3=_2?"$1688":"_nextZIndex";if(this[_3]<_1){this[_3]=_1}},isc.A.$1263=function isc_DrawPane__addEventOnlyDrawItem(_1){_1.drawPane=this;_1.$148r=this.$148p++;if(this.$1262==null)this.$1262=[_1];else this.$1262.add(_1)},isc.A.removeDrawItem=function isc_DrawPane_removeDrawItem(_1){if(_1.drawPane!==this){this.logWarn("Attempt to remove item:"+isc.echoLeaf(_1)+" from a DrawPane that does not contain it");return}
  if(_1.$if){_1.erase()}else if(_1.drawGroup!=null){_1.drawGroup.removeDrawItem(_1)}else{this.drawItems.remove(_1);this.cancelDeferredDraw(_1);if(_1.item!=null){this.quadTree.remove(_1.item);delete _1.item}
  if(_1.exemptFromGlobalTransform){this.$150v.remove(_1)}}
  if(this.hasOwnZIndices)delete _1.zIndex
  delete _1.drawPane},isc.A.getTransformCSS=function isc_DrawPane_getTransformCSS(){return null},isc.A.$162s=function isc_DrawPane__getSvgDocument(){var _1=this.$44m;if(this.getDrawnState()!==isc.Canvas.UNDRAWN&&!this.$162q){_1=this.getDocument()}
  return _1},isc.A.$162t=function isc_DrawPane__getSvgBodyDOMID(){return this.$qs("body")},isc.A.$162u=function isc_DrawPane__getSvgBody(){var _1=this.$44d;if(_1==null&&!this.$162q){_1=this.$44d=this.getDocument().getElementById(this.$162t())}
  return _1},isc.A.$162v=function isc_DrawPane__getSvgBoxDOMID(){return this.$qs("box")},isc.A.$162w=function isc_DrawPane__getSvgBox(){var _1=this.$44n;if(_1==null&&!this.$162q){_1=this.$44n=this.getDocument().getElementById(this.$162v())}
  return _1},isc.A.$162x=function isc_DrawPane__getSvgDefsDOMID(){return this.$qs("defs")},isc.A.$162y=function isc_DrawPane__getSvgDefs(){var _1=this.$44o;if(_1==null&&!this.$162q){_1=this.$44o=this.getDocument().getElementById(this.$162x())}
  return _1},isc.A.getInnerHTML=function isc_DrawPane_getInnerHTML(){var _1=this.drawingType;if(_1==="vml"){var _2=this.$1259,_3=(this.$431-this.scrollLeft+this.getLeftPadding()),_4=(this.$432-this.scrollTop+this.getTopPadding()),_5=this.$43z,_6=this.$430,_7=(this.rotation||0)*Math.PI/180,_8=Math.sin(_7),_9=Math.cos(_7),m=50,n=(m*_2).toFixed(0),_12=this.$165n();return isc.StringBuffer.concat(this.startTagVML('RECT')," ID='",this.getID(),"$139l' style='position:absolute;top:0px;left:0px;width:100%;height:100%;' stroked='false' fillcolor='#ff00ff'>",this.startTagVML('FILL')," on='t' opacity='0' />",this.endTagVML('RECT'),this.startTagVML("SHAPETYPE")," ID='",this.getID(),"$164w'>",this.startTagVML("SKEW")," ON='t' MATRIX='",_12.matrix,"'"," OFFSET='",_12.offset,"'>",this.endTagVML("SKEW"),this.endTagVML("SHAPETYPE"),this.startTagVML("SHAPETYPE")," ID='",this.getID(),"$164z'>",this.startTagVML("SKEW")," ON='t' MATRIX='",_12.zoomMatrix,"'"," OFFSET='",_12.zoomOffset,"'>",this.endTagVML("SKEW"),this.endTagVML("SHAPETYPE"),this.startTagVML("GROUP")," COORDORIGIN='-",n,",-",n,"' COORDSIZE='",n,",",n,"' STYLE='position:absolute;left:-",m,"px;top:-",m,"px;width:",m,"px;height:",m,"px;'>",this.startTagVML("GROUP")," ID='",this.getID(),"$435' STYLE='position:absolute;","left:",Math.round(_2*(_9*_3-_8*_4)),"px;top:",Math.round(_2*(_8*_3+_9*_4)),"px;width:",_2*_5,"px;height:",_2*_6,"px;' coordsize='",(this.$433*_2),", ",(this.$434*_2),"' coordorigin='0 0'>",this.endTagVML("GROUP"),this.endTagVML("GROUP"))}else if(_1==="bitmap"){return isc.SB.concat("<CANVAS ID='",this.getID(),"$436' ","WIDTH='",this.$43z,"' ","HEIGHT='",this.$430,"' ","STYLE='display:block' dir='ltr'>","</CANVAS>")}else if(_1==="svg"){if(this.$162q){this.$l=false;return"<IFRAME HEIGHT='100%' WIDTH='100%' SCROLLING='NO' FRAMEBORDER='0' SRC='"+isc.Page.getHelperDir()+"DrawPane.svg?isc_dp_id="+this.getID()+"'></IFRAME>"}else{this.$l=true;var t=this.$1338();return("<svg id='"+this.$162t()+"' width='"+this.$43z+"px' height='"+this.$430+"px' style='vertical-align:top'><defs id='"+this.$162x()+"'></defs><g id='"+this.$162v()+"' transform='matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")'></g></svg>")}}else{this.logWarn("DrawPane getInnerHTML: '"+_1+"' is not a supported drawingType");return this.Super("getInnerHTML",arguments)}},isc.A.$165n=function isc_DrawPane__getGlobalRotationSkewMatrixAndOffset(){var _1=this.$165m,_2=this.$43z/2,_3=this.$430/2,_4=(this.rotation||0)*Math.PI/180,_5=Math.sin(_4),_6=Math.cos(_4);var c=Math.round(65536*_6),_8=Math.round(-65536*_5),s=Math.round(65536*_5);_1.matrix=isc.StringBuffer.concat(c,"f,",_8,"f,",s,"f,",c,"f,0,0");var _10=this.zoomLevel;c=Math.round(65536*_6*_10);_8=Math.round(-65536*_5*_10);s=Math.round(65536*_5*_10);_1.zoomMatrix=isc.StringBuffer.concat(c,"f,",_8,"f,",s,"f,",c,"f,0,0");var _11=(1-_6)*_2+_5*_3,_12=-_5*_2+(1-_6)*_3;_1.offset=isc.StringBuffer.concat(_11.toFixed(6),"px,",_12.toFixed(6),"px");_1.zoomOffset=_1.offset;return _1},isc.A.$ub=function isc_DrawPane__handleResized(){this.$136s()},isc.A.innerSizeChanged=function isc_DrawPane_innerSizeChanged(_1){this.Super("innerSizeChanged",arguments);this.$136s()},isc.A.getDataURL=function isc_DrawPane_getDataURL(_1,_2){var _3,_4=this.drawingType,_5=_4==="svg",_6=_4==="bitmap",_7=null;if(this.$994())this.refreshNow();if((_5&&isc.Browser.hasCANVAS&&_2=="png")||(_6&&this.canDragScroll))
  {var _8=this.getDocument().createElement("canvas"),_9,_10;if(this.canDragScroll){_9=Math.max(0,this.drawingWidth*this.zoomLevel)<<0;_10=Math.max(0,this.drawingHeight*this.zoomLevel)<<0}else{_9=this.$43z;_10=this.$430}
  _8.width=_9;_8.height=_10;_8.dir="ltr";var _11=_8.getContext("2d");if(_11!=null){if(this.backgroundColor!=null){_11.fillStyle=this.backgroundColor;_11.fillRect(0,0,_9,_10)}
  var _12=this.scrollLeft,_13=this.scrollTop;if(_12!=0||_13!=0){this.scrollTo(0,0)}
  this.$150w={$150x:this.$1338(),$150y:this.scrollLeft,$1o:this.scrollTop,$150z:true,$166k:_11};this.$1500(_11,this.drawItems);delete this.$150w;if(_12!=0||_13!=0){this.scrollTo(_12,_13)}
  _7=_8.toDataURL();if(_7!=null&&_7.startsWith("data:image/png")&&(_7.charAt(14)===","||_7.charAt(14)===";"))
  {if(_1)this.fireCallback(_1,"dataURL",[_7]);return _7}}}
  if(_5&&(_2==null||_2=="all")){var _14=isc.SVGStringConversionContext.create({$166j:false});_3=this.getSvgString(_14);_7="data:image/svg+xml,"+encodeURIComponent(_3);if(_1)this.fireCallback(_1,"dataURL",[_7]);return _7}else if(_6&&!this.canDragScroll){var _8=document.getElementById(this.getID()+"$436");if(_8!=null&&!!_8.toDataURL){if(this.backgroundColor!=null){var _15=this.getDocument().createElement("canvas");_15.width=_8.width;_15.height=_8.height;var _16=_15.getContext("2d",{alpha:false});if(_16==null){this.$165y(_3,_1);return}
  _16.fillStyle=this.backgroundColor;_16.fillRect(0,0,_8.width,_8.height);_16.drawImage(_8,0,0);_8=_15}
  try{_7=_8.toDataURL()}catch(e){this.logWarn("HTMLCanvasElement.toDataURL() threw an exception: "+e);_7=null}
  if(_7!=null&&_7.startsWith("data:image/png")&&(_7.charAt(14)===","||_7.charAt(14)===";"))
  {if(_1)this.fireCallback(_1,"dataURL",[_7]);return _7}}}
  this.$165y(_3,_1);return null},isc.A.$165y=function isc_DrawPane__performServerFrameworkExportImage(_1,_2){if(_2){if(isc.Offline&&isc.Offline.isOffline()){this.logWarn("Skipping the exportImage RPC call because the application is not online.");this.fireCallback(_2,"dataURL",[null]);return}
  if(_1==null)_1=this.getSvgString();var _3={exportDisplay:"return"};var _4=this;isc.RPCManager.exportImage(_1,_3,function(_5){if(_5==null){_4.logError("RPCManager.exportImage() returned no data.");_4.fireCallback(_2,"dataURL",[null])}else{switch(_5.length%4){case 1:_5+="===";break;case 2:_5+="==";break;case 3:_5+="=";break;case 0:default:break}
  _4.fireCallback(_2,"dataURL",["data:image/png;base64,"+_5])}})}},isc.A.setMeasureLabelCacheMaxSize=function isc_DrawPane_setMeasureLabelCacheMaxSize(_1){this.measureLabelCacheMaxSize=_1;var _2=this.$100n;if(_2!=null){var _3=Math.max(1,_1);this.$148e(_2,_3)}},isc.A.measureLabel=function isc_DrawPane_measureLabel(_1,_2,_3){if(_1==null)_1="";else _1=String(_1);if(!_2)_2={};var _4,_5,_6=_2.fontSize,_7=_2.fontStyle,_8=_2.fontWeight,_9=_2.fontFamily;if(this.drawingType=="svg"){var _10=_2.escapeContents;if(_10!==_4&&!_10)return{width:0,height:0};_5=_2.styleName}
  if(!_5){_9=_9||isc.DrawLabel.getInstanceProperty("fontFamily");_8=_8||isc.DrawLabel.getInstanceProperty("fontWeight");_6=_6||isc.DrawLabel.getInstanceProperty("fontSize");_7=_7||isc.DrawLabel.getInstanceProperty("fontStyle")}
  var _11=isc.SB.concat(_5,":",_6,":",_8,":",_7,":",_9,":",_1),_12=this.$100n;if(_12==null){var _13=Math.max(1,this.measureLabelCacheMaxSize);_12=this.$100n=new this.$148f(_13)}
  if(this.$148g(_12,_11)){return this.$148h(_12,_11)}
  var _14,_15=isc.DrawPane.$104v();if(_3&&!_15.isDirty()){_14=_15.getHandle().firstChild;_14.style.fontSize=_6+"px"}else{var _16=isc.DrawPane.$167b(_9),_17=isc.StringBuffer.create();_17.append("<span ");if(_5)_17.append("class='"+_5+"' ");_17.append("style=",_16,"white-space:pre");if(_6)_17.append(";font-size:",_6,"px");if(_7)_17.append(";font-style:",_7);if(_8)_17.append(";font-weight:",_8);if(_9)_17.append(";font-family:",_9);_17.append(_16,">",_1.replace(isc.DrawPane.$156w,"\u0020").asHTML(),"</span>");var _18=_17.release();_15.setContents(_18);_15.redraw("label measurement: "+_1);_14=_15.getHandle().firstChild}
  var _19={width:_14.offsetWidth,height:_14.offsetHeight};this.$148i(_12,_11,_19);return _19},isc.A.$148j=function isc_DrawPane__lruCacheEntry(_1,_2,_3,_4){this.key=_1;this.value=_2;this.younger=_3;this.older=_4},isc.A.$148f=function isc_DrawPane__lruCache(_1){this.maxSize=_1;this.size=0;this.cache={};this.youngest=null;this.oldest=null},isc.A.$148g=function isc_DrawPane__lruCacheContains(_1,_2){return _1.cache.hasOwnProperty(_2)},isc.A.$148h=function isc_DrawPane__lruCacheGet(_1,_2){var _3=_1.cache[_2];if(_3!=_1.youngest){_3.younger.older=_3.older;if(_3.older==null){_1.oldest=_3.younger}else{_3.older.younger=_3.younger}
  _1.youngest.younger=_3;_3.younger=null;_3.older=_1.youngest;_1.youngest=_3}
  return _3.value},isc.A.$148i=function isc_DrawPane__lruCachePut(_1,_2,_3){var _4=new this.$148j(_2,_3,null,_1.youngest);_1.cache[_2]=_4;++_1.size;if(_1.size==1){_1.youngest=_1.oldest=_4}else{_1.youngest.younger=_4;_1.youngest=_4;if(_1.size>_1.maxSize){var _5=_1.oldest,_6=_5.younger;_1.oldest=_6;_6.older=null;delete _1.cache[_5.key];--_1.size}}},isc.A.$148e=function isc_DrawPane__lruCacheSetMaxSize(_1,_2){if(_1.size>_2){var _3=_1.size-_2,_4=_1.cache;if(_2<_3){var _5={},_6=_1.youngest;for(var i=_2;i--;_6=_6.older){_5[_6.key]=_4[_6.key]}
  _1.cache=_5;_1.oldest=_6.younger}else{var _6=_1.oldest;for(var i=_3;i--;_6=_6.younger){delete _4[_6.key]}
  _1.oldest=_6}
  _1.oldest.older=null;_1.size=_2}
  _1.maxSize=_2},isc.A.getSvgString=function isc_DrawPane_getSvgString(_1){var _2=this.getInnerContentWidth(),_3=this.getInnerContentHeight(),_4,_5,_6,_7;_6=_2;_7=_3;if(this.rotation&&(_5=this.getCenter())&&_5.length==2){_4=((this.rotation%360)+360)%360;var _8=_4*this.$125w,s=Math.abs(Math.sin(_8)),c=Math.abs(Math.cos(_8));_6=_2*c+_3*s;_7=_2*s+_3*c}
  _1=_1||isc.SVGStringConversionContext.create();_1.xlinkPrefix=_1.xlinkPrefix||isc.SVGStringConversionContext.$99a;var _11=this.$163h(_1.printForExport);var _12=this.$tj(),_13=this.$tq();var _14=(_12.left+_13.left+_6+_13.right+_12.right-
  _11.right-_11.left),_15=(_12.top+_13.top+_7+_13.bottom+_12.bottom-
  _11.top-_11.bottom);var _16=isc.StringBuffer.create();_16.append("<svg xmlns='",isc.$100g,"' xmlns:",_1.xlinkPrefix,"='",isc.$100f,"' width='",_14,"px","' height='",_15,"px","' viewBox='0 0 ",_14," ",_15,"' version='1.1'><metadata><!-- Generated by SmartClient ",isc.version," --></metadata>");if(this.backgroundColor!=null){_16.append("<rect x='0' y='0' width='",_14,"' height='",_15,"' stroke='none' fill='",this.backgroundColor,"'/>")}
  _16.append("<g transform='translate(",((_6-_2)/2+_13.left+_12.left)," ",((_7-_3)/2+_13.top+_12.top),") scale(",this.zoomLevel,")");if(_4){_16.append(" rotate(",_4," ",_5[0]," ",_5[1],")")}
  _16.append("'><svg width='",_2,"' height='",_3,"' style='vertical-align:top'>");var _17=this.drawItems,_18=(_17==null?0:_17.length);if(_18>0){_16.append("<g>");for(var i=0;i<_18;++i){_16.append(_17[i].getSvgString(_1))}
  _16.append("</g>");var _20=_1.defSvgStrings;if(_20!=null){_16.append("<defs>");for(var _21 in _20){if(!_20.hasOwnProperty(_21))continue;_16.append(_20[_21])}
  _16.append("</defs>")}}
  _16.append("</svg>",(_1.printForExport?this.$163i(_1):null),"</g>");var _22=isc.Element.getComputedStyle(this.getClipHandle(),this.$163d);var _23,_24,_25;if(_12.top==_12.right&&_12.right==_12.bottom&&_12.bottom==_12.left&&_22.borderTopStyle==_22.borderRightStyle&&_22.borderRightStyle==_22.borderBottomStyle&&_22.borderBottomStyle==_22.borderLeftStyle&&_22.borderTopColor==_22.borderRightColor&&_22.borderRightColor==_22.borderBottomColor&&_22.borderBottomColor==_22.borderLeftColor)
  {if(_12.top){_23=null;if(_22.borderTopStyle=="solid")_23="";else if(_22.borderTopStyle=="dashed")_23=" stroke-dasharray='5,5'";else if(_22.borderTopStyle=="dotted")_23=" stroke-dasharray='1.5,2'";if(_23!=null&&_22.borderTopColor){_25=_24=_12.top/2;_16.append("<rect x='",_24,"' y='",_25,"' width='",(_14-_12.top),"' height='",(_15-_12.top),"' stroke='",_22.borderTopColor,"' stroke-width='",_12.top,"px'",_23," fill='none'/>")}}}else{var _26=["Left","Bottom","Right","Top"],_27,_28,_29,x,y;for(var i=0;i<_26.length;++i){var _32=_26[i];_27=_12[_32];if(_27){_28=_22["border"+_32+"Style"];_23=null;if(_28=="solid")_23="";else if(_28=="dashed")_23=" stroke-dasharray='5,5'";else if(_28=="dotted")_23=" stroke-dasharray='1.5,2'";if(_23!=null){_29=_22["border"+_32+"Color"];if(_29){if(_32=="Left"){x=_27/2;_25=_27/2;_16.append("<line x1='",x,"' y1='",_25,"' x2='",x,"' y2='",(_15-_25))}else if(_32=="Bottom"){_24=_27/2;y=_15-_27/2;_16.append("<line x1='",_24,"' y1='",y,"' x2='",(_14-_24),"' y2='",y)}else if(_32=="Right"){x=_14-_27/2;_25=_27/2;_16.append("<line x1='",x,"' y1='",_25,"' x2='",x,"' y2='",(_15-_25))}else{_24=_27/2;y=_27/2;_16.append("<line x1='",_24,"' y1='",y,"' x2='",(_14-_24),"' y2='",y)}
  _16.append("' stroke='",_29,"' stroke-width='",_27,"px'",_23,"/>")}}}}}
  _16.append("</svg>");return _16.release(false)},isc.A.$163i=function isc_DrawPane__getChildrenSvgString(_1){return null},isc.A.getPrintHTML=function isc_DrawPane_getPrintHTML(_1,_2){var _3,_4=(_1!=null&&_1.printForExport);if(this.$994())this.refreshNow();if(this.drawingType==="bitmap"&&!(isc.FacetChart&&isc.isA.FacetChart(this)&&this.printZoomChart&&this.$106d()&&_4))
  {var _5=this.getDataURL();if(_5==null){if(_2!=null){var _6=this;this.getDataURL(function(_5){var _3="<img src='"+_5+"' style='border:0px";if(_4)_3+=";max-width:100%";_3+="'/>";_6.fireCallback(_2,"HTML,callback",[_3,_2])})}
  _3=null}else{_3="<img src='"+_5+"' style='border:0px";if(_4)_3+=";max-width:100%";_3+="'/>"}}else if(this.drawingType==="vml"&&!_4){var _7=document.getElementById(this.getID()+"$435");_3=("<div style='position:relative;width:"+this.$163f()+";height:"+this.$163g()+";'>"+_7.parentElement.innerHTML+"</div>")}else{_3=this.getSvgString()}
  if(_2!=null){this.fireCallback(_2,"HTML,callback",[_3,_2]);return null}else{return _3}},isc.A.$99x=function isc_DrawPane__batchDraw(_1){if(_1==null)_1=[];else if(!isc.isAn.Array(_1))_1=[_1];for(var _2=_1.length;_2>0;--_2){var _3=_1[_2-1],_4=_3.peers;if(_4!=null){for(var _5=_4.length;_5>0;--_5){var _6=_4[_5-1];if(!_1.contains(_6)){_1.splice(_2,0,_6)}}}}
  var _7=_1.length,_8=this.drawingType;if(_8==="svg"){for(var i=0;i<_7;++i){_1[i].draw()}}else if(_8==="bitmap"){this.redrawBitmapNow(true)}else{var _10="",_11=isc.StringBuffer.create(),_12=isc.VMLStringConversionContext.create();for(var i=0;i<_7;++i){var _13=_1[i];var _14="isc_DrawItem_"+_13.drawItemID;if(_13.drawToBack){var _15=isc.StringBuffer.create();_13.$44v(_15,_14,_12);_10=_15.release(false)+_10}else{_13.$44v(_11,_14,_12)}}
  var _16=isc.Element.get(this.getID()+"$435");if(!isc.isAn.emptyString(_10)){_16.insertAdjacentHTML("afterbegin",_10)}
  var _17=_11.release(false);if(!isc.isAn.emptyString(_17)){_16.insertAdjacentHTML("beforeend",_17)}
  var _18=_12.drawLabelsAccumulator,_19=(_18==null?0:_18.length);if(_19>0){_10="";_11=isc.StringBuffer.create();for(var i=0;i<_19;++i){var _20=_18[i];var _14="isc_DrawItem_"+_20.drawItemID;if(_20.drawToBack){var _15=isc.StringBuffer.create();_20.$44v(_15,_14);_10=_15.release(false)+_10}else{_20.$44v(_11,_14)}}
  _16=this.getHandle();_16.insertAdjacentHTML("afterbegin",_10);_16.insertAdjacentHTML("beforeend",_11.release(false))}}
  for(var i=0;i<_7;++i){var _13=_1[i];_13.$1622()}
  this.$1264()});isc.evalBoundary;isc.B.push(isc.A.$162k=function isc_DrawPane__insertDefsSvgString(_1){var _2=this.$162s();var _3=this.$162y();if("insertAdjacentHTML"in _3){_3.insertAdjacentHTML("beforeend",_1)}else if(isc.Browser.$162i){var _4=_2.createRange();_4.setStart(this.$162u(),0);var _5=_4.createContextualFragment(_1);_3.appendChild(_5)}else{var _6=this.$162e;var _7=("<svg xmlns='"+isc.$100g+"' xmlns:"+_6.xlinkPrefix+"='"+isc.$100f+"'><defs>"+_1+"</defs></svg>");var _8=new DOMParser(),_9;try{var _10=_8.parseFromString(_7,"image/svg+xml");_9=_10.documentElement}catch(e){var _11=this.getDocument().implementation.createHTMLDocument("Untitled");_11.body.innerHTML=_7;_9=_11.body.firstChild}
  var _12=_2.importNode(_9.childNodes.item(0),true);var _13;while((_13=_12.firstChild)!=null){_3.appendChild(_13)}}},isc.A.$1264=function isc_DrawPane__setupEventOnlyDrawItems(){var _1=this.$1262;if(_1!=null){for(var i=0,l=_1.length;i<l;++i){_1[i].$113d()}}},isc.A.isBatchDrawing=function isc_DrawPane_isBatchDrawing(){return this.$99w>0},isc.A.$994=function isc_DrawPane__isBatchDrawing(){return(this.$99w>0||this.$995()||this.$l===false)&&this.$99z!==true},isc.A.beginBatchDrawing=function isc_DrawPane_beginBatchDrawing(){this.$99w=(this.$99w||0)+1},isc.A.endBatchDrawing=function isc_DrawPane_endBatchDrawing(_1){if(!this.isBatchDrawing())this.logWarn("Not in batch drawing mode. Exiting.");this.$100i(_1)},isc.A.$100i=function isc_DrawPane__endBatchDrawing(_1){if(!this.$994()||(this.$99w>0&&--this.$99w>0))return;if(_1&&(this.drawingType=="bitmap"&&!this.keepPendingRedrawsAtBatchEnd||!this.$994()))
  {this.refreshNow()}else this.$992()},isc.A.refreshNow=function isc_DrawPane_refreshNow(){if(this.drawingType==="bitmap"){this.redrawBitmapNow()}else{var _1=this.$63q;if(_1!=null&&_1.length>0){this.$99z=true;try{this.$99x(_1);this.$63q=null}finally{this.$99z=false}}}},isc.A.drawDrawItems=function isc_DrawPane_drawDrawItems(){var _1;if(!this.$994()&&(_1=this.drawItems)!=null&&_1.length>0)
  {this.$63q=null;for(var i=0;i<_1.length;++i){var _3=_1[i];_3.draw();_3.$166z();_3.$1660()}}},isc.A.drawChildren=function isc_DrawPane_drawChildren(){this.drawDrawItems();this.Super("drawChildren",arguments)},isc.A.getBitmapContext=function isc_DrawPane_getBitmapContext(_1){var _2=this.$437;if(_2==null){var _3=this.getBitmap();if(_3==null){this.logWarn("DrawPane.getBitmapContext() failed to get CANVAS element handle");return null}
  _2=this.$437=_3.getContext("2d");if(_2==null){this.logWarn("DrawPane.getBitmapContext() failed to get CANVAS 2d bitmap context");return null}}else{if(_1)_2.save();_2.setTransform(1,0,0,1,0,0)}
  return _2},isc.A.$p9=function isc_DrawPane__updateParentHTML(){this.clearDrawItems();this.Super("$p9",arguments);this.$169i()},isc.A.$rd=function isc_DrawPane__updateInnerHTML(){this.clearDrawItems();this.Super("$rd",arguments);this.$169i()},isc.A.$169i=function isc_DrawPane__finishUpdateInnerHTML(){if(this.drawingType==="bitmap"){this.$437=null;if(!this.$995())this.redrawBitmapNow()}else{if(this.drawingType==="svg"){this.$44d=null;this.$44n=null;this.$44o=null;var _1=this.$162e;_1.defSvgStrings={};_1.useGradientIDs={}}
  this.drawDrawItems()}
  var _2=this.logIsInfoEnabled(this.$n3);if(_2){this.logInfo("Redraw called on drawPane with drawingType:"+this.drawingType)}
  this.modifyContent();this.setUpEvents();this.$q7=false;this.redrawPeers();return this},isc.A.$995=function isc_DrawPane__isRedrawTEAScheduled(){return this.$996==true||(this.drawingType=="bitmap"&&this.$439)},isc.A.$992=function isc_DrawPane__maybeScheduleRedrawTEA(){if(!this.$995()){if(this.drawingType=="bitmap")this.redrawBitmap();else{var _1=this;isc.EH.$ms(function(){_1.$997()});this.$996=true;this.$998=false}}},isc.A.$997=function isc_DrawPane__redrawTEA(){if(this.$998!==false)return;this.$998=true;if(!this.destroyed){var _1=this.$993;if(_1!=null){for(var i=0,_3=_1.length;i<_3;++i){var _4=_1[i];if(_4.$999){_4.$999.parentNode.removeChild(_4.$999);delete _4.$999}}
  this.$993=null}
  var _5=this.$100h;if(_5!=null){var _6;if(this.drawingType==="svg"&&(_6=this.$162s())!=null)
  {for(var _7 in _5){if(!_5.hasOwnProperty(_7))continue;var _8=_5[_7];var _9=_8.$982;if(_9!=null)_8.$982=null;else _9=_6.getElementById(_7);if(_9!=null){_9.parentNode.removeChild(_9)}}}
  this.$100h=null}
  this.$99z=true;this.$99x(this.drawItems);this.$99z=false}
  this.$996=false},isc.A.redrawBitmap=function isc_DrawPane_redrawBitmap(){if(this.$439||this.$155e)return;this.$439=true;var _1=this;isc.EH.$ms(function(){if(!_1.$439)return;_1.redrawBitmapNow()})},isc.A.$1338=function isc_DrawPane__getGlobalTransform(){var t=this.$1348;if(t!=null)return t;t=isc.AffineTransform.create();if(this.translate){t.translate(this.translate[0]-this.scrollLeft,this.translate[1]-this.scrollTop)}else{t.translate(-this.scrollLeft,-this.scrollTop)}
  t.scale(this.zoomLevel,this.zoomLevel);if(this.rotation){t.rotate(this.rotation,this.$43z/2,this.$430/2)}
  return(this.$1348=t)},isc.A.$147h=function isc_DrawPane__getInverseGlobalTransform(){var _1=this.$1346,_2=this.$1338();if(_1==null||_2!=this.$1347){_1=this.$1346=_2.getInverse();this.$1347=_2}
  return _1},isc.A.redrawBitmapNow=function isc_DrawPane_redrawBitmapNow(_1){this.$439=false;this.$155e=true;var _2=this.$63q;if(_2!=null){var _3=_2.length,_4=[];for(var i=0;i<_3;++i){var _6=_2[i];if(this.shouldDeferDrawing(_6)){_4.add(_6)}
  _6.draw();_6.$166z()}
  _2=this.$63q=_4}
  this.$155e=false;if(!this.isDrawn())return;var _7=this.getBitmapContext();if(!_7)return;_7.clearRect(0,0,this.$43z,this.$430);if(this.drawStart!=null)this.drawStart();this.$150w={$150x:this.$1338(),$150y:this.scrollLeft,$1o:this.scrollTop,$150z:true};this.$1500(_7,this.drawItems);delete this.$150w;if(!_1)this.$1264();if(this.drawEnd!=null)this.drawEnd()},isc.A.$1500=function isc_DrawPane__drawBitmapDrawItems(_1,_2){var _3=this.$150w;var _4=(_2?_2.length:0),_5=_3.$150z,_6=_3.$1501;_1.miterLimit=4;for(var i=0;i<_4;++i){var _8=_2[i];if(_3.$166k==null)_8.drawingBitmap=true;if(!_8.hidden){if(_8.drawStart!=null)_8.drawStart();var _9=isc.isA.DrawGroup(_8);if(_9){_3.$150z=_5;_3.$1501=_6}else if(_5||_6!=_8.exemptFromGlobalTransform){_5=false;_6=_8.exemptFromGlobalTransform;if(_6){_1.setTransform(1,0,0,1,0,0)}else{var t=_3.$150x;_1.setTransform(t.m00,t.m10,t.m01,t.m11,t.m02,t.m12)}}
  _8.drawBitmap(_1);if(_9){_5=_3.$150z;_6=_3.$1501}
  if(_3.$166k==null){_8.$113d();_8.$if=true;_8.$1660()}
  if(_8.drawEnd!=null)_8.drawEnd()}}
  _3.$150z=_5;_3.$1501=_6},isc.A.getBitmap=function isc_DrawPane_getBitmap(){if(this.drawingType!="bitmap"){this.logWarn("DrawPane.getBitmap() can only return a CANVAS element handle for drawingType: \"bitmap\"");return null}
  return this.getDocument().getElementById(this.getID()+"$436")},isc.A.$150s=function isc_DrawPane__pageToGlobal(_1,_2){var _3=this.getPageOffsets(),_4=this.$150r;_4[0]=_1-(_3.left+this.getLeftMargin()+this.getLeftBorderSize()+this.getLeftPadding());_4[1]=_2-(_3.top+this.getTopMargin()+this.getTopBorderSize()+this.getTopPadding());return _4},isc.A.viewbox2global=function isc_DrawPane_viewbox2global(_1){return[Math.round(_1[0]*this.zoomLevel+this.$431-this.scrollLeft+this.getLeftPadding()),Math.round(_1[1]*this.zoomLevel+this.$432-this.scrollTop+this.getTopPadding()),Math.round(_1[2]*this.zoomLevel),Math.round(_1[3]*this.zoomLevel)]},isc.A.$136t=function isc_DrawPane__viewBoxUpdated(_1){this.$1348=null;this.$431=this.translate==null?0:this.translate[0];this.$432=this.translate==null?0:this.translate[1];this.$433=this.$43z/this.zoomLevel;this.$434=this.$430/this.zoomLevel;if(!_1){var _2=this.$150v;for(var i=0,_4=_2.length;i<_4;++i){var _5=_2[i];if(_5.$1502){_5.$1502()}}}
  var _6=this.drawingType;if(isc.Browser.isIE&&_6==="vml"){this.$1523.updatedGlobalTransform()}
  if(!this.isDrawn())return;this.$44b();if(_6==="vml"){var _7=this.$44c;if(this.$44c==null){_7=this.$44c=this.getDocument().getElementById(this.getID()+"$435")}
  if(_7!=null){var _8=this.$1259,_9=(this.$431-this.scrollLeft)+this.getLeftPadding(),_10=(this.$432-this.scrollTop)+this.getTopPadding(),_11=_7.style;_11.visibility="hidden";var _12=(this.rotation||0)*Math.PI/180,_13=Math.sin(_12),_14=Math.cos(_12);_11.left=Math.round(_8*(_14*_9-_13*_10))+this.$ph;_11.top=Math.round(_8*(_13*_9+_14*_10))+this.$ph;_7.coordsize=((_8*this.$433)+","+(_8*this.$434));_11.visibility="visible"}}else if(_6==="svg"){if(this.$44n!=null){var t=this.$1338();this.$44n.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}}else{this.redrawBitmap()}},isc.A.$163h=function isc_DrawPane__getViewPortEdgeOffsets(_1){return this.$163e},isc.A.$163f=function isc_DrawPane__getViewPortWidth(){var _1=this.$163h();return this.getInnerContentWidth()-_1.right-_1.left},isc.A.$163g=function isc_DrawPane__getViewPortHeight(){var _1=this.$163h();return this.getInnerContentHeight()-_1.top-_1.bottom},isc.A.$136s=function isc_DrawPane__updateViewPort(){var _1=this.$163f(),_2=this.$163g();this.$43z=_1;this.$430=_2;if(this.canDragScroll){this.scrollLeft=Math.max(0,Math.min(this.scrollLeft,this.getScrollRight()));this.scrollTop=Math.max(0,Math.min(this.scrollTop,this.getScrollBottom()))}
  this.$433=_1/this.zoomLevel;this.$434=_2/this.zoomLevel;if(!this.isDrawn())return;this.$44b();var _3=this.drawingType;if(_3==="vml"){var _4=this.$44c;if(this.vmlBox==null){_4=this.$44c=this.getDocument().getElementById(this.getID()+"$435")}
  if(_4!=null){var _5=this.$1259;_4.style.width=(_5*_1)+this.$ph;_4.style.height=(_5*_2)+this.$ph;_4.coordsize=((this.$433*_5)+","+(this.$434*_5))}}else if(_3==="svg"){var _6=this.$162u();if(_6!=null){if(!this.$162q){_6.setAttributeNS(null,"width",_1+"px");_6.setAttributeNS(null,"height",_2+"px")}
  _6.setAttributeNS(null,"viewBox","0 0 "+_1+" "+_2)}}else{var _7=this.getDocument().getElementById(this.getID()+"$436");if(_7!=null){_7.width=_1;_7.height=_2}
  this.redrawBitmap()}},isc.A.addCanvasItem=function isc_DrawPane_addCanvasItem(_1){this.canvasItems.add(_1);_1.drawPane=this;_1.$44e=_1.left;_1.$44f=_1.top;_1.$44g=_1.width;_1.$44h=_1.height;this.addChild(_1);this.$44i(_1);return _1},isc.A.removeCanvasItem=function isc_DrawPane_removeCanvasItem(_1){if(this.canvasItems!=null)this.canvasItems.remove(_1)},isc.A.$162l=function isc_DrawPane__getGradientSvgString(_1,_2,_3,_4){if(isc.DrawItem.$135h(_2)){return this.$99c(_1,_2,_3,_4)}else if(isc.DrawItem.$135i(_2)){return this.$99d(_1,_2,_3,_4)}else{return this.$99e(_1,_2,_3,_4)}},isc.A.$99c=function isc_DrawPane__getSimpleGradientSvgString(_1,_2,_3,_4){var _5;if(_2.startColor&&_2.endColor){_5=[{color:_2.startColor,offset:0.0},{color:_2.endColor,offset:1.0}]}else{_5=_2.colorStops}
  return this.$99d(_1,{id:_2[_3.gradientIdProperty],direction:_2.direction,colorStops:_5},_3,_4)},isc.A.$99d=function isc_DrawPane__getLinearGradientSvgString(_1,_2,_3,_4){var _5=_3.defSvgStrings||(_3.defSvgStrings={}),_6=_1,_7=this.getID()+"_"+_6;if(!_5[_7]){var _8="<linearGradient id='"+_7+"'>";if(_2.startColor!=null&&_2.endColor!=null){_8+=("<stop stop-color='"+_2.startColor+"' offset='0' stop-opacity='1'></stop><stop stop-color='"+_2.endColor+"' offset='1' stop-opacity='1'></stop>")}else if(isc.isAn.Array(_2.colorStops)){for(var i=0;i<_2.colorStops.length;++i){var _10=_2.colorStops[i],_11=_10.opacity||"1";_8+=("<stop stop-color='"+_10.color+"' offset='"+_10.offset+"' stop-opacity='"+_11+"'></stop>")}}
  _8+="</linearGradient>";_5[_7]=_8}
  _1=_3.getNextSvgDefID();var _12=_3.useGradientIDs[_4.ID]=this.getID()+"_"+_1,_13=(_3.xlinkPrefix||isc.SVGStringConversionContext.$99a),_14=_4.$830(_2);return("<linearGradient id='"+_12+"' "+_13+":href='#"+this.getID()+"_"+_6+"' x1='"+_14[0]+"' y1='"+_14[1]+"' x2='"+_14[2]+"' y2='"+_14[3]+"' gradientUnits='userSpaceOnUse'></linearGradient>")},isc.A.$99e=function isc_DrawPane__getRadialGradientSvgString(_1,_2,_3,_4){var _5=_3.defSvgStrings||(_3.defSvgStrings={}),_6=_1,_7=this.getID()+"_"+_6,_8,_9=_3.xlinkPrefix||isc.SVGStringConversionContext.$99a;if(!_5[_7]){_8="<radialGradient id='"+_7;if(_2.$981!=null){var _10,_11;if(isc.isA.String(_2.$981)){_10=_2.$981;_11=this.$135l[_10]}else{_11=_2.$981;_10=_11[_3.gradientIdProperty]}
  var _12=this.getID()+"_"+_10;if(!_5[_12]){_5[_12]=this.$99e(_10,_11,_3)}
  _8+="' "+_9+":href='#"+_12}
  _8+="'>";if(_2.colorStops!=null){for(var i=0;i<_2.colorStops.length;++i){var _14=_2.colorStops[i],_15=_14.opacity||"1";_8+="<stop stop-color='"+_14.color+"' offset='"+_14.offset+"' stop-opacity='"+_15+"'></stop>"}}
  _8+="</radialGradient>";_5[_7]=_8}
  if(_4!=null){_1=_3.getNextSvgDefID();var _16=_3.useGradientIDs[_4.ID]=this.getID()+"_"+_1,_17=_4.$831(_2);_8="<radialGradient id='"+_16+"' "+_9+":href='#"+_7;if(_2.cx!=null)_8+="' cx='"+_17[0];if(_2.cy!=null)_8+="' cy='"+_17[1];if(_2.fx!=null)_8+="' fx='"+_17[3];if(_2.fy!=null)_8+="' fy='"+_17[4];if(_2.r!=null)_8+="' r='"+_17[5];_8+="' gradientUnits='userSpaceOnUse'></radialGradient>"}
  return _8},isc.A.$99f=function isc_DrawPane__getFilterSvgString(_1){if(_1=="isc_ds1"){return"<filter id='isc_ds1'><feOffset result='offOut' in='SourceAlpha' dx='2.4' dy='2.4'/><feGaussianBlur result='blurOut' in='offOut' stdDeviation='1.8'/><feColorMatrix result='cmatOut' in='blurOut' type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.8 0'/><feBlend in='SourceGraphic' in2='cmatOut' mode='normal'/></filter>"}
  return null},isc.A.$44i=function isc_DrawPane__updateCanvasItemToViewBox(_1){_1.synchingToPane=true;_1.setRect(this.viewbox2global([_1.$44e,_1.$44f,_1.$44g,_1.$44h]));if(_1.drawBorderSize){_1.getStyleHandle().borderWidth=Math.max(1,_1.drawBorderSize*this.zoomLevel)+"px"}
  delete _1.synchingToPane},isc.A.$44b=function isc_DrawPane__updateItemsToViewBox(){var _1=this.canvasItems;for(var i=0;i<_1.length;++i){this.$44i(_1[i])}
  var _3=this.$1363,_4=this.$1363=this.zoomLevel,_5=(_3!=_4),_6=this.drawItems;if(this.drawingType==="vml"){for(var i=0;i<_6.length;++i){var _7=_6[i];if(!_7.drawingVML)continue;if(isc.isA.DrawLabel(_7)&&!_7.useTextpath){if(_5)_7.$125u().fontSize=(_7.fontSize*_4)+"px";if(!_7.synchTextMove){var _8=this.viewbox2global([_7.left,_7.top,0,0]);var _9=_7.$125f().style;_9.left=_8[0]+isc.px;_9.top=_8[1]+isc.px}}else if(_5){_7.$44l(_7.lineWidth*_4)}}}else if(this.drawingType==="bitmap"){for(var i=0;i<_6.length;++i){var _7=_6[i];if(isc.isA.DrawLabel(_7)&&_7.$45c!=null){isc.Element.$136r(_7.$45c,_7.$45c.$136u())}}}},isc.A.getScrollLeft=function isc_DrawPane_getScrollLeft(){if(!this.canDragScroll)return this.invokeSuper(isc.DrawPane,"getScrollLeft");return this.scrollLeft},isc.A.getScrollRight=function isc_DrawPane_getScrollRight(){if(!this.canDragScroll)return this.invokeSuper(isc.DrawPane,"getScrollRight");return Math.max(0,this.drawingWidth*this.zoomLevel-this.$43z)<<0},isc.A.getScrollTop=function isc_DrawPane_getScrollTop(){if(!this.canDragScroll)return this.invokeSuper(isc.DrawPane,"getScrollTop");return this.scrollTop},isc.A.getScrollBottom=function isc_DrawPane_getScrollBottom(){if(!this.canDragScroll)return this.invokeSuper(isc.DrawPane,"getScrollBottom");return Math.max(0,this.drawingHeight*this.zoomLevel-this.$430)<<0},isc.A.scrollTo=function isc_DrawPane_scrollTo(_1,_2,_3,_4){if(!this.canDragScroll){return this.invokeSuper(isc.DrawPane,"scrollTo",_1,_2,_3,_4)}
  if(_1==null)_1=this.scrollLeft;if(_2==null)_2=this.scrollTop;_1=Math.max(0,Math.min(_1,this.getScrollRight()));_2=Math.max(0,Math.min(_2,this.getScrollBottom()));if(this.scrollLeft!=_1||this.scrollTop!=_2){this.scrollLeft=_1;this.scrollTop=_2;this.$136t()}},isc.A.pan=function isc_DrawPane_pan(_1,_2){var _3=this.translate;if(_3==null)_3=this.translate=[0,0];_3[0]-=_1;_3[1]-=_2;if(_1!=0||_2!=0){this.$136t()}},isc.A.setZoomLevel=function isc_DrawPane_setZoomLevel(_1){if(!(_1>0)){this.logWarn("The requested zoomLevel:"+_1+" is not greater than 0.");return}
  var _2=this.zoomLevel;if(_2==_1)return;this.zoomLevel=_1;var _3=Math.max(0,Math.min(this.scrollLeft,this.getScrollRight())),_4=Math.max(0,Math.min(this.scrollTop,this.getScrollBottom()));if(_1!=_2||this.scrollLeft!=_3||this.scrollTop!=_4)
  {this.scrollLeft=_3;this.scrollTop=_4;if(isc.Browser.isIE&&this.drawingType=="vml"&&this.isDrawn()){var _5=this.$165n(),_6=isc.Element.get(this.getID()+"$164z");var _7=_6.firstChild;_7.matrix=_5.zoomMatrix;_7.offset=_5.zoomOffset}
  this.$136t()}},isc.A.zoom=function isc_DrawPane_zoom(_1){this.setZoomLevel(_1)},isc.A.setRotation=function isc_DrawPane_setRotation(_1){if(this.rotation!=_1){this.rotation=_1;if(isc.Browser.isIE&&this.drawingType=="vml"&&this.isDrawn()){var _2=this.$165n(),_3=isc.Element.get(this.getID()+"$164w"),_4=isc.Element.get(this.getID()+"$164z");var _5=_3.firstChild,_6=_4.firstChild;_5.matrix=_2.matrix;_5.offset=_2.offset;_6.matrix=_2.zoomMatrix;_6.offset=_2.zoomOffset}
  this.$136t()}},isc.A.rotate=function isc_DrawPane_rotate(_1){this.setRotation(_1)},isc.A.addGradient=function isc_DrawPane_addGradient(_1){var _2=_1.id;if(!_2){_2=_1.id="$85r"+this.$162r++}
  if(!_1._constructor)_1._constructor=isc.DrawItem.$135m(_1);var _3=this.gradients,_4=this.$135l,_5=_4[_1.id];if(_5===_1){return _2}else if(_5!=null){this.logWarn("Duplicate gradient with ID "+_1.id+" - replacing previous gradient");_3.remove(_5)}
  _3.add(_1);_4[_2]=_1;return _2},isc.A.getGradient=function isc_DrawPane_getGradient(_1){var _2=(this.gradients?this.$135l[_1]:null);if(_2){this.$161y(_2)}
  return _2},isc.A.$161y=function isc_DrawPane__normalizeRelativeGradient(_1){if(_1.$68)return;_1.$68=true;var _2=false;var _3=false;var _4=null;if(_1.startColor){if(_1.startColor.startsWith("+")||_1.startColor.startsWith("-")){_2=true}else if(!_4){_4=_1.startColor}}
  if(_1.endColor){if(_1.endColor.startsWith("+")||_1.endColor.startsWith("-")){_2=true}else if(!_4){_4=_1.endColor}}
  if(_1.colorStops){for(var i=0;i<_1.colorStops.length;i++){var _6=_1.colorStops[i].color;if(_6.startsWith("+")||_6.startsWith("-")){_2=true;_3=true}else if(!_4){_4=_6}}}
  if(!_2||!_4)return;if(_1.startColor&&(_1.startColor.startsWith("+")||_1.startColor.startsWith("-"))){try{_1.startColor=isc.DrawPane.mixrgb(_4,_1.startColor)}catch(error){isc.logWarn("Unable to normalize relative startColor "+_1.startColor,error)}}
  if(_1.endColor&&(_1.endColor.startsWith("+")||_1.endColor.startsWith("-"))){try{_1.endColor=isc.DrawPane.mixrgb(_4,_1.endColor)}catch(error){isc.logWarn("Unable to normalize relative endColor "+_1.endColor,error)}}
  if(_3){_1.colorStops=_1.colorStops.duplicate();for(var i=0;i<_1.colorStops.length;i++){var _6=_1.colorStops[i].color;if(_6.startsWith("+")||_6.startsWith("-")){try{_1.colorStops[i].color=isc.DrawPane.mixrgb(_4,_6)}catch(error){isc.logWarn("Unable to normalize relative color "+_6,error)}}}}},isc.A.removeGradient=function isc_DrawPane_removeGradient(_1){var _2=this.$135l,_3=_2[_1];if(_3!=null){delete _2[_1];this.gradients.remove(_3);if(this.drawingType==="svg"){var _4=this.getID()+"_"+_1;var _5=this.$162s();if(_5!=null){var _6=_5.getElementById(_4);if(_6!=null){_6.parentNode.removeChild(_6)}}
  var _7=this.$162e;delete _7.defSvgStrings[_4]}}},isc.A.createSimpleGradient=function isc_DrawPane_createSimpleGradient(_1,_2){_2.id=_1;this.addGradient(_2);return _1},isc.A.createLinearGradient=function isc_DrawPane_createLinearGradient(_1,_2){_2.id=_1;this.addGradient(_2);return _1},isc.A.createRadialGradient=function isc_DrawPane_createRadialGradient(_1,_2){_2.id=_1;this.addGradient(_2);return _1},isc.A.shouldDeferDrawing=function isc_DrawPane_shouldDeferDrawing(_1){var _2=this.drawingType;if(this.$994()||(_2==="svg"&&this.$162u()==null)||(_2==="vml"&&this.getHandle()==null))
  {var _3=this.$63q;if(_3==null){_3=this.$63q=[_1]}else{if(!_3.contains(_1))_3.add(_1)}
  return true}
  return false},isc.A.cancelDeferredDraw=function isc_DrawPane_cancelDeferredDraw(_1){var _2=this.$63q;if(_2!=null){return _2.remove(_1)}
  return false},isc.A.svgLoaded=function isc_DrawPane_svgLoaded(){var _1=this.$44m=this.getHandle().firstChild.contentDocument;this.$44d=_1.getElementById("isc_svg_body");this.$44n=_1.getElementById("isc_svg_box");this.$44o=_1.getElementById("isc_svg_defs");this.$136s();if(this.$63q!=null){if(!this.$995())this.$100i(true)}
  this.$l=true});isc.B._maxIndex=isc.C+117;isc.A=isc.DrawPane;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.defaultDrawingType=isc.Browser.defaultDrawingType;isc.A.$44p=[];isc.A.$156w=/[\u0009\u000C\u000D]/g;isc.B.push(isc.A.getDefaultDrawPane=function isc_c_DrawPane_getDefaultDrawPane(_1){if(!_1)_1=this.defaultDrawingType;if(this.$44p[_1])return this.$44p[_1];var _2=this.$44p[_1]=this.create({drawingType:_1,width:isc.Page.getScrollWidth(),height:isc.Page.getScrollHeight(),autoDraw:true});_2.sendToBack();return _2},isc.A.$167b=function isc_c_DrawPane__getEnclosingQuote(_1){return(isc.isA.String(_1)&&_1.contains("\"")?"'":"\"")},isc.A.$104v=function isc_c_DrawPane__getMeasureCanvas(){var _1=this.$78l;if(_1==null){_1=this.$78l=isc.Canvas.create({top:-1000,overflow:"visible",autoDraw:false,height:1,width:1,ariaState:{hidden:true},markForRedraw:isc.Class.NO_OP});_1.draw()}
  return _1},isc.A.$186k=function isc_c_DrawPane__optimizeMeasureLabel(_1){this.$104v().$q7=_1},isc.A.addrgb=function isc_c_DrawPane_addrgb(_1,_2){var _3=0xff,_4=parseInt(_1.substr(1),16)>>>0,_5=parseInt(_2.substr(1),16)>>>0,_6=Math.min(_3,((_4>>>16)&_3)+((_5>>>16)&_3))>>>0,_7=Math.min(_3,((_4>>>8)&_3)+((_5>>>8)&_3))>>>0,_8=Math.min(_3,(_4&_3)+(_5&_3))>>>0,_9=(_6<<16)|(_7<<8)|_8;return"#"+isc.NumberUtil.$117c(6,false,_9,16)},isc.A.subtractrgb=function isc_c_DrawPane_subtractrgb(_1,_2){var _3=0xff,_4=parseInt(_1.substr(1),16)>>>0,_5=parseInt(_2.substr(1),16)>>>0,_6=Math.max(0,((_4>>>16)&_3)-((_5>>>16)&_3))>>>0,_7=Math.max(0,((_4>>>8)&_3)-((_5>>>8)&_3))>>>0,_8=Math.max(0,(_4&_3)-(_5&_3))>>>0,_9=(_6<<16)|(_7<<8)|_8;return"#"+isc.NumberUtil.$117c(6,false,_9,16)},isc.A.mixrgb=function isc_c_DrawPane_mixrgb(_1,_2){return _2.charAt(0)==='+'?isc.DrawPane.addrgb(_1,_2.substring(1)):_2.charAt(0)==='-'?isc.DrawPane.subtractrgb(_1,_2.substring(1)):_2},isc.A.$105t=function isc_c_DrawPane__mutergb(_1,_2){if(_2==null)return null;var _3=0xff,_4=parseInt(_2.substr(1),16)>>>0,_5=((_4>>>16)&_3)/_3,_6=((_4>>>8)&_3)/_3,_7=(_4&_3)/_3,_8=Math.min(_5,_6,_7),_9=Math.max(_5,_6,_7),h,s,l=(_8+_9)/2;if(_8==_9){h=s=0}else{var c=_9-_8;s=c/(2*(l<0.5?l:1-l));if(_9==_5){h=(_6-_7)/c;if(_6<_7){h+=6}}else if(_9==_6){h=(_7-_5)/c+2}else{h=(_5-_6)/c+4}
  h/=6}
  if(_1<=0){l*=(100+_1)/100}else{l+=(_1/100)*(1-l)}
  var _14,_15,_16;if(s==0){_14=_15=_16=Math.max(0,Math.min(_3,Math.round(_3*l)))>>>0}else{var _17=l+s*(l<0.5?l:1.0-l),_18=2*l-_17,_19=(3*h-Math.floor(3*h))/3,_20=_17-6*(_17-_18)*Math.abs(_19-1/6),r,g,b;switch(Math.floor(h*6)){case 0:case 6:r=_17;g=_20;b=_18;break;case 1:r=_20;g=_17;b=_18;break;case 2:r=_18;g=_17;b=_20;break;case 3:r=_18;g=_20;b=_17;break;case 4:r=_20;g=_18;b=_17;break;case 5:r=_17;g=_18;b=_20;break}
  _14=Math.max(0,Math.min(_3,Math.round(_3*r)))>>>0;_15=Math.max(0,Math.min(_3,Math.round(_3*g)))>>>0;_16=Math.max(0,Math.min(_3,Math.round(_3*b)))>>>0}
  var _24=((_14<<16)|(_15<<8)|_16);return"#"+isc.NumberUtil.$117c(6,false,_24,16)},isc.A.hex2rgb=function isc_c_DrawPane_hex2rgb(_1,_2){var _3=_1.split('#')[1];var _4=_3.length/3;var _5=_3.substring(0,_4);var _6=_3.substring(_4,_4*2);var _7=_3.substring(_4*2,_4*3);var _8=parseInt(_5.toUpperCase(),16);var _9=parseInt(_6.toUpperCase(),16);var _10=parseInt(_7.toUpperCase(),16);var _11=(typeof(_2)!=='undefined')?'rgba('+_8+','+_9+','+_10+','+_2+')':'rgb('+_8+','+_9+','+_10+')';return _11},isc.A.rgb2hex=function isc_c_DrawPane_rgb2hex(_1){var _2="",v,i;var _5=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var h=_5.exec(_1);for(i=1;i<4;i++){v=parseInt(h[i],10).toString(16);if(v.length==1){_2+="0"+v}else{_2+=v}}
  return("#"+_2)},isc.A.scaleAndCenter=function isc_c_DrawPane_scaleAndCenter(_1,_2,_3,_4,_5){var n=_5.length,_7=_5[0][0],_8=_7,_9=_5[0][1],_10=_9;for(var i=1;i<n;++i){var x=_5[i][0],y=_5[i][1];_7=Math.min(_7,x);_8=Math.max(_8,x);_9=Math.min(_9,y);_10=Math.max(_10,y)}
  var _14=(_7+_8)/2,_15=(_9+_10)/2,_16=_1/(_8-_7),_17=_2/(_10-_9);for(var i=0;i<n;++i){var _18=_5[i];_18[0]=isc.DrawItem.$1503(_3+_16*(_18[0]-_14));_18[1]=isc.DrawItem.$1503(_4+_17*(_18[1]-_15))}
  return _5},isc.A.bezier=function isc_c_DrawPane_bezier(_1,_2,_3,_4,_5){var u=(1-_5),_7=u*_1+_5*_2,_8=u*_2+_5*_3,_9=u*_3+_5*_4,_10=u*_7+_5*_8,_11=u*_8+_5*_9;return(u*_10+_5*_11)},isc.A.bezierExtrema=function isc_c_DrawPane_bezierExtrema(_1,_2,_3,_4){var _5=1e-6,_6=Math.min(_1,_4),_7=Math.max(_1,_4);var a=(-_1+3*(_2-_3)+_4),b=2*(_1-_2-_2+_3),c=(-_1+_2),_11=(b*b-4*a*c),_12=(Math.abs(a)<_5);if(_12){var _13=(Math.abs(b)<_5);if(!_13){var _14=-c/b;_14=Math.max(0,Math.min(1,_14));var _15=isc.DrawPane.bezier(_1,_2,_3,_4,_14);_6=Math.min(_6,_15);_7=Math.max(_7,_15)}}else if(_11>=0){var _16=Math.sqrt(_11),_17=(-b+_16)/(2*a),_18=(-b-_16)/(2*a);_17=Math.max(0,Math.min(1,_17));_18=Math.max(0,Math.min(1,_18));var _19=isc.DrawPane.bezier(_1,_2,_3,_4,_17),_20=isc.DrawPane.bezier(_1,_2,_3,_4,_18);_6=Math.min(_6,_19,_20);_7=Math.max(_7,_19,_20)}
  return[_6,_7]},isc.A.getBezierBoundingBox=function isc_c_DrawPane_getBezierBoundingBox(_1,_2,_3,_4){var _5=isc.DrawPane.bezierExtrema(_1[0],_2[0],_3[0],_4[0]),_6=isc.DrawPane.bezierExtrema(_1[1],_2[1],_3[1],_4[1]);return[_5[0],_6[0],_5[1],_6[1]]},isc.A.scaleAndCenterBezier=function isc_c_DrawPane_scaleAndCenterBezier(_1,_2,_3,_4,_5,_6,_7,_8){var _9=isc.DrawPane.getBezierBoundingBox(_5,_7,_8,_6),_10=_9[2],_11=_9[0],_12=_9[3],_13=_9[1],_14=_1/(_10-_11),_15=_2/(_12-_13),_16=(_11+_10)/2,_17=(_13+_12)/2;_5[0]=isc.DrawItem.$1503(_3+_14*(_5[0]-_16));_5[1]=isc.DrawItem.$1503(_4+_15*(_5[1]-_17));_6[0]=isc.DrawItem.$1503(_3+_14*(_6[0]-_16));_6[1]=isc.DrawItem.$1503(_4+_15*(_6[1]-_17));_7[0]=isc.DrawItem.$1503(_3+_14*(_7[0]-_16));_7[1]=isc.DrawItem.$1503(_4+_15*(_7[1]-_17));_8[0]=isc.DrawItem.$1503(_3+_14*(_8[0]-_16));_8[1]=isc.DrawItem.$1503(_4+_15*(_8[1]-_17))},isc.A.getRegularPolygonPoints=function isc_c_DrawPane_getRegularPolygonPoints(_1,_2,_3,_4,_5,_6){var _7=2*Math.PI/_1,_8=new Array(_1);for(var i=0;i<_1;++i){_8[i]=_6+i*_7}
  return isc.DrawPane.getPolygonPoints(_2,_3,_4,_5,_8)},isc.A.getPolygonPoints=function isc_c_DrawPane_getPolygonPoints(_1,_2,_3,_4,_5){var n=_5.length,_7=new Array(n);if(n==0){return _7}else if(n==1){_7[0]=[_3,_4];return _7}
  var _8=-1,_9=1,_10=-1,_11=1;for(var i=0;i<n;++i){var _13=_5[i],_14=Math.sin(_13),_15=Math.cos(_13);_7[i]=[_15,_14];_8=Math.max(_8,_14);_9=Math.min(_9,_14);_10=Math.max(_10,_15);_11=Math.min(_11,_15)}
  var t=Math.min(_1/(_10-_11),_2/(_8-_9)),_17=_3-_1/2+(_1-t*(_10-_11))/2-t*_11,_18=_4-_2/2+(_2-t*(_8-_9))/2+t*_8;for(var i=0;i<n;++i){var _19=_7[i];_19[0]=isc.DrawItem.$1503(_17+t*_19[0]);_19[1]=isc.DrawItem.$1503(_18-t*_19[1])}
  return _7},isc.A.$138o=function isc_c_DrawPane__interpolateRGB(_1,_2,_3){var _4=0xff,_5=parseInt(_1.substr(1),16)>>>0,_6=((_5>>16)&_4)/_4,_7=((_5>>8)&_4)/_4,_8=(_5&_4)/_4,_9=parseInt(_2.substr(1),16)>>>0,_10=((_9>>16)&_4)/_4,_11=((_9>>8)&_4)/_4,_12=(_9&_4)/_4;var _13=(1-_3)*_6+_3*_10,_14=(1-_3)*_7+_3*_11,_15=(1-_3)*_8+_3*_12;var r=Math.max(0,Math.min(_4,Math.floor(_4*_13)))>>>0,g=Math.max(0,Math.min(_4,Math.floor(_4*_14)))>>>0,b=Math.max(0,Math.min(_4,Math.floor(_4*_15)))>>>0,_19=((r<<16)|(g<<8)|b);return"#"+isc.NumberUtil.$117c(6,false,_19,16)},isc.A.$138p=function isc_c_DrawPane__colorLightness(_1){var _2=0xff,_3=parseInt(_1.substr(1),16),_4=((_3>>>16)&_2)/_2,_5=((_3>>>8)&_2)/_2,_6=(_3&_2)/_2,_7=Math.min(_4,_5,_6),_8=Math.max(_4,_5,_6);return(_7+_8)/2});isc.B._maxIndex=isc.C+19;isc.defineClass("DrawItem","BaseWidget");isc.A=isc.DrawItem;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._SMALL_Z_INDEX=99950;isc.A.$1688=100000;isc.A._nextZIndex=200000;isc.A._BIG_Z_INDEX=800000;isc.A.$184g=90;isc.A.$1846=[];isc.A.$1847=[1,10];isc.A.$1848=[10,10];isc.A.$1849=[20,10];isc.A.$185a=[1,5];isc.A.$185b=[10,5];isc.A.$147e=4*(Math.SQRT2-1)/3;isc.A.$125w=isc.Math.$125w;isc.A.roundCoordinates=true;isc.A.$169j={"aliceblue":[0.9411764705882353,0.9725490196078431,1,1],"antiquewhite":[0.9803921568627451,0.9215686274509803,0.8431372549019608,1],"aqua":[0,1,1,1],"aquamarine":[0.4980392156862745,1,0.8313725490196079,1],"azure":[0.9411764705882353,1,1,1],"beige":[0.9607843137254902,0.9607843137254902,0.8627450980392157,1],"bisque":[1,0.8941176470588236,0.7686274509803922,1],"black":[0,0,0,1],"blanchedalmond":[1,0.9215686274509803,0.803921568627451,1],"blue":[0,0,1,1],"blueviolet":[0.5411764705882353,0.16862745098039217,0.8862745098039215,1],"brown":[0.6470588235294118,0.16470588235294117,0.16470588235294117,1],"burlywood":[0.8705882352941177,0.7215686274509804,0.5294117647058824,1],"cadetblue":[0.37254901960784315,0.6196078431372549,0.6274509803921569,1],"chartreuse":[0.4980392156862745,1,0,1],"chocolate":[0.8235294117647058,0.4117647058823529,0.11764705882352941,1],"coral":[1,0.4980392156862745,0.3137254901960784,1],"cornflowerblue":[0.39215686274509803,0.5843137254901961,0.9294117647058824,1],"cornsilk":[1,0.9725490196078431,0.8627450980392157,1],"crimson":[0.8627450980392157,0.0784313725490196,0.23529411764705882,1],"cyan":[0,1,1,1],"darkblue":[0,0,0.5450980392156862,1],"darkcyan":[0,0.5450980392156862,0.5450980392156862,1],"darkgoldenrod":[0.7215686274509804,0.5254901960784314,0.043137254901960784,1],"darkgray":[0.6627450980392157,0.6627450980392157,0.6627450980392157,1],"darkgreen":[0,0.39215686274509803,0,1],"darkgrey":[0.6627450980392157,0.6627450980392157,0.6627450980392157,1],"darkkhaki":[0.7411764705882353,0.7176470588235294,0.4196078431372549,1],"darkmagenta":[0.5450980392156862,0,0.5450980392156862,1],"darkolivegreen":[0.3333333333333333,0.4196078431372549,0.1843137254901961,1],"darkorange":[1,0.5490196078431373,0,1],"darkorchid":[0.6,0.19607843137254902,0.8,1],"darkred":[0.5450980392156862,0,0,1],"darksalmon":[0.9137254901960784,0.5882352941176471,0.47843137254901963,1],"darkseagreen":[0.5607843137254902,0.7372549019607844,0.5607843137254902,1],"darkslateblue":[0.2823529411764706,0.23921568627450981,0.5450980392156862,1],"darkslategray":[0.1843137254901961,0.30980392156862746,0.30980392156862746,1],"darkslategrey":[0.1843137254901961,0.30980392156862746,0.30980392156862746,1],"darkturquoise":[0,0.807843137254902,0.8196078431372549,1],"darkviolet":[0.5803921568627451,0,0.8274509803921568,1],"deeppink":[1,0.0784313725490196,0.5764705882352941,1],"deepskyblue":[0,0.7490196078431373,1,1],"dimgray":[0.4117647058823529,0.4117647058823529,0.4117647058823529,1],"dimgrey":[0.4117647058823529,0.4117647058823529,0.4117647058823529,1],"dodgerblue":[0.11764705882352941,0.5647058823529412,1,1],"firebrick":[0.6980392156862745,0.13333333333333333,0.13333333333333333,1],"floralwhite":[1,0.9803921568627451,0.9411764705882353,1],"forestgreen":[0.13333333333333333,0.5450980392156862,0.13333333333333333,1],"fuchsia":[1,0,1,1],"gainsboro":[0.8627450980392157,0.8627450980392157,0.8627450980392157,1],"ghostwhite":[0.9725490196078431,0.9725490196078431,1,1],"gold":[1,0.8431372549019608,0,1],"goldenrod":[0.8549019607843137,0.6470588235294118,0.12549019607843137,1],"gray":[0.5019607843137255,0.5019607843137255,0.5019607843137255,1],"green":[0,0.5019607843137255,0,1],"greenyellow":[0.6784313725490196,1,0.1843137254901961,1],"grey":[0.5019607843137255,0.5019607843137255,0.5019607843137255,1],"honeydew":[0.9411764705882353,1,0.9411764705882353,1],"hotpink":[1,0.4117647058823529,0.7058823529411765,1],"indianred":[0.803921568627451,0.3607843137254902,0.3607843137254902,1],"indigo":[0.29411764705882354,0,0.5098039215686274,1],"ivory":[1,1,0.9411764705882353,1],"khaki":[0.9411764705882353,0.9019607843137255,0.5490196078431373,1],"lavender":[0.9019607843137255,0.9019607843137255,0.9803921568627451,1],"lavenderblush":[1,0.9411764705882353,0.9607843137254902,1],"lawngreen":[0.48627450980392156,0.9882352941176471,0,1],"lemonchiffon":[1,0.9803921568627451,0.803921568627451,1],"lightblue":[0.6784313725490196,0.8470588235294118,0.9019607843137255,1],"lightcoral":[0.9411764705882353,0.5019607843137255,0.5019607843137255,1],"lightcyan":[0.8784313725490196,1,1,1],"lightgoldenrodyellow":[0.9803921568627451,0.9803921568627451,0.8235294117647058,1],"lightgray":[0.8274509803921568,0.8274509803921568,0.8274509803921568,1],"lightgreen":[0.5647058823529412,0.9333333333333333,0.5647058823529412,1],"lightgrey":[0.8274509803921568,0.8274509803921568,0.8274509803921568,1],"lightpink":[1,0.7137254901960784,0.7568627450980392,1],"lightsalmon":[1,0.6274509803921569,0.47843137254901963,1],"lightseagreen":[0.12549019607843137,0.6980392156862745,0.6666666666666666,1],"lightskyblue":[0.5294117647058824,0.807843137254902,0.9803921568627451,1],"lightslategray":[0.4666666666666667,0.5333333333333333,0.6,1],"lightslategrey":[0.4666666666666667,0.5333333333333333,0.6,1],"lightsteelblue":[0.6901960784313725,0.7686274509803922,0.8705882352941177,1],"lightyellow":[1,1,0.8784313725490196,1],"lime":[0,1,0,1],"limegreen":[0.19607843137254902,0.803921568627451,0.19607843137254902,1],"linen":[0.9803921568627451,0.9411764705882353,0.9019607843137255,1],"magenta":[1,0,1,1],"maroon":[0.5019607843137255,0,0,1],"mediumaquamarine":[0.4,0.803921568627451,0.6666666666666666,1],"mediumblue":[0,0,0.803921568627451,1],"mediumorchid":[0.7294117647058823,0.3333333333333333,0.8274509803921568,1],"mediumpurple":[0.5764705882352941,0.4392156862745098,0.8588235294117647,1],"mediumseagreen":[0.23529411764705882,0.7019607843137254,0.44313725490196076,1],"mediumslateblue":[0.4823529411764706,0.40784313725490196,0.9333333333333333,1],"mediumspringgreen":[0,0.9803921568627451,0.6039215686274509,1],"mediumturquoise":[0.2823529411764706,0.8196078431372549,0.8,1],"mediumvioletred":[0.7803921568627451,0.08235294117647059,0.5215686274509804,1],"midnightblue":[0.09803921568627451,0.09803921568627451,0.4392156862745098,1],"mintcream":[0.9607843137254902,1,0.9803921568627451,1],"mistyrose":[1,0.8941176470588236,0.8823529411764706,1],"moccasin":[1,0.8941176470588236,0.7098039215686275,1],"navajowhite":[1,0.8705882352941177,0.6784313725490196,1],"navy":[0,0,0.5019607843137255,1],"oldlace":[0.9921568627450981,0.9607843137254902,0.9019607843137255,1],"olive":[0.5019607843137255,0.5019607843137255,0,1],"olivedrab":[0.4196078431372549,0.5568627450980392,0.13725490196078433,1],"orange":[1,0.6470588235294118,0,1],"orangered":[1,0.27058823529411763,0,1],"orchid":[0.8549019607843137,0.4392156862745098,0.8392156862745098,1],"palegoldenrod":[0.9333333333333333,0.9098039215686274,0.6666666666666666,1],"palegreen":[0.596078431372549,0.984313725490196,0.596078431372549,1],"paleturquoise":[0.6862745098039216,0.9333333333333333,0.9333333333333333,1],"palevioletred":[0.8588235294117647,0.4392156862745098,0.5764705882352941,1],"papayawhip":[1,0.9372549019607843,0.8352941176470589,1],"peachpuff":[1,0.8549019607843137,0.7254901960784313,1],"peru":[0.803921568627451,0.5215686274509804,0.24705882352941178,1],"pink":[1,0.7529411764705882,0.796078431372549,1],"plum":[0.8666666666666667,0.6274509803921569,0.8666666666666667,1],"powderblue":[0.6901960784313725,0.8784313725490196,0.9019607843137255,1],"purple":[0.5019607843137255,0,0.5019607843137255,1],"rebeccapurple":[0.4,0.2,0.6,1],"red":[1,0,0,1],"rosybrown":[0.7372549019607844,0.5607843137254902,0.5607843137254902,1],"royalblue":[0.2549019607843137,0.4117647058823529,0.8823529411764706,1],"saddlebrown":[0.5450980392156862,0.27058823529411763,0.07450980392156863,1],"salmon":[0.9803921568627451,0.5019607843137255,0.4470588235294118,1],"sandybrown":[0.9568627450980393,0.6431372549019608,0.3764705882352941,1],"seagreen":[0.1803921568627451,0.5450980392156862,0.3411764705882353,1],"seashell":[1,0.9607843137254902,0.9333333333333333,1],"sienna":[0.6274509803921569,0.3215686274509804,0.17647058823529413,1],"silver":[0.7529411764705882,0.7529411764705882,0.7529411764705882,1],"skyblue":[0.5294117647058824,0.807843137254902,0.9215686274509803,1],"slateblue":[0.41568627450980394,0.35294117647058826,0.803921568627451,1],"slategray":[0.4392156862745098,0.5019607843137255,0.5647058823529412,1],"slategrey":[0.4392156862745098,0.5019607843137255,0.5647058823529412,1],"snow":[1,0.9803921568627451,0.9803921568627451,1],"springgreen":[0,1,0.4980392156862745,1],"steelblue":[0.27450980392156865,0.5098039215686274,0.7058823529411765,1],"tan":[0.8235294117647058,0.7058823529411765,0.5490196078431373,1],"teal":[0,0.5019607843137255,0.5019607843137255,1],"thistle":[0.8470588235294118,0.7490196078431373,0.8470588235294118,1],"tomato":[1,0.38823529411764707,0.2784313725490196,1],"turquoise":[0.25098039215686274,0.8784313725490196,0.8156862745098039,1],"violet":[0.9333333333333333,0.5098039215686274,0.9333333333333333,1],"wheat":[0.9607843137254902,0.8705882352941177,0.7019607843137254,1],"white":[1,1,1,1],"whitesmoke":[0.9607843137254902,0.9607843137254902,0.9607843137254902,1],"yellow":[1,1,0,1],"yellowgreen":[0.6039215686274509,0.803921568627451,0.19607843137254902,1]};isc.B.push(isc.A.$1687=function isc_c_DrawItem__zIndexCompareFunc(_1,_2){if(_1.zIndex==_2.zIndex){if(_2.$148r==null){return 0}
  return _1.$148r-_2.$148r}
  return _1.zIndex-_2.zIndex},isc.A.computeAngle=function isc_c_DrawItem_computeAngle(_1,_2,_3,_4){var a=Math.atan2(_4-_2,_3-_1);if(a<0)a+=2*Math.PI;return a/this.$125w},isc.A.$1503=function isc_c_DrawItem__makeCoordinate(_1,_2){if(_2==null)_2=this.roundCoordinates;if(_2)return Math.round(_1);var _3=this.coordinateEpsilon;if(!_3)return _1;var _4=Math.round(_1);return Math.abs(_4-_1)<_3?_4:_1},isc.A.$135h=function isc_c_DrawItem__isSimpleGradient(_1){return(_1.direction!=null)},isc.A.$135i=function isc_c_DrawItem__isLinearGradient(_1){return(_1.x1!=null)},isc.A.$135j=function isc_c_DrawItem__isRadialGradient(_1){return(!isc.DrawItem.$135h(_1)&&!isc.DrawItem.$135i(_1))},isc.A.$135m=function isc_c_DrawItem__getGradientConstructor(_1){return(isc.DrawItem.$135h(_1)?"SimpleGradient":(isc.DrawItem.$135i(_1)?"LinearGradient":"RadialGradient"))},isc.A.$169h=function isc_c_DrawItem__insertAdjacentSVG(_1,_2,_3,_4,_5){_2=_2.toLowerCase();if(isc.Browser.useInsertAdjacentHTMLForSVG){try{_1.insertAdjacentHTML(_2,_3);if(_4){switch(_2){case"beforebegin":return _1.previousSibling;case"afterbegin":return _1.firstChild;case"beforeend":return _1.lastChild;case"afterend":return _1.nextSibling}}
  return}catch(e){}}
  var _6,_7=_1.ownerDocument;if(isc.Browser.$162i){var _8=_7.createRange();_8.setStartBefore(_1);_6=_8.createContextualFragment(_3);if(_4)_6=_6.firstChild}else{_3=("<svg xmlns='"+isc.$100g+"' xmlns:"+_5.xlinkPrefix+"='"+isc.$100f+"'>"+_3+"</svg>");var _9=new DOMParser,_10;try{var _11=_9.parseFromString(_3,"image/svg+xml");_10=_11.documentElement}catch(e){var _12=_7.implementation.createHTMLDocument("Untitled");_12.body.innerHTML=_3;_10=_12.body.firstChild}
  if(_4||_10.firstChild==_10.lastChild)_6=_10.firstChild;else{_6=_7.createDocumentFragment();var _13;while((_13=_10.firstChild)!=null){_6.appendChild(_13)}}}
  switch(_2){case"beforebegin":_1.parentNode.insertBefore(_6,_1);break;case"afterbegin":_1.insertBefore(_6,_1.firstChild);break;case"beforeend":_1.appendChild(_6);break;case"afterend":_1.parentNode.insertBefore(_6,_1.nextSibling);break}
  if(_4)return _6},isc.A.$169k=function isc_c_DrawItem__lookUpRGBA(_1){if(!_1)_1="black";else _1=String(_1).trim().toLowerCase();var _2=isc.DrawItem.$169j;if(_2.hasOwnProperty(_1))return _2[_1];var _3;_3=_1.match(/#([0-9a-f])([0-9a-f])([0-9a-f])$/);if(_3){var _4=parseInt(_3[1]+_3[1],16),_5=parseInt(_3[2]+_3[2],16),_6=parseInt(_3[3]+_3[3],16);return[_4/255,_5/255,_6/255,1]}
  _3=_1.match(/#([0-9a-f][0-9a-f])?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/);if(_3){var _7=_3[1]?parseInt(_3[1],16):255,_4=parseInt(_3[2],16),_5=parseInt(_3[3],16),_6=parseInt(_3[4],16);return[_4/255,_5/255,_6/255,1]}
  _3=_1.match(/rgb\(([^,]+),([^,]+),([^,]+)\)$/);if(_3){var r=parseFloat(_3[1]),g=parseFloat(_3[2]),b=parseFloat(_3[3]);if(isNaN(r))r=0;else if(_3[1].endsWith("%"))r/=100;else r/=255;if(isNaN(g))g=0;else if(_3[2].endsWith("%"))g/=100;else g/=255;if(isNaN(b))b=0;else if(_3[3].endsWith("%"))b/=100;else b/=255;return[r,g,b,1]}
  _3=_1.match(/rgba\(([^,]+),([^,]+),([^,]+),([^,]+)\)$/);if(_3){var r=parseFloat(_3[1]),g=parseFloat(_3[2]),b=parseFloat(_3[3]),a=parseFloat(_3[4]);if(isNaN(r))r=0;else if(_3[1].endsWith("%"))r/=100;else r/=255;if(isNaN(g))g=0;else if(_3[2].endsWith("%"))g/=100;else g/=255;if(isNaN(b))b=0;else if(_3[3].endsWith("%"))b/=100;else b/=255;if(isNaN(a))a=0;else if(_3[4].endsWith("%"))a/=100;return[r,g,b,a]}
  return[0,0,0,0]},isc.A.$147j=function isc_c_DrawItem__fitBestRect(_1,_2,_3,_4,_5,_6,_7,_8,_9){var _10={success:false,left:0,top:0,width:0,height:0};var _11=1e-9;if(_6!=0&&_7!=0&&Math.abs(_1.getDeterminant())>_11){var _12=_9&&_4==Math.floor(_4)&&_5==Math.floor(_5)&&_6==Math.floor(_6)&&_7==Math.floor(_7),_13=0,_14=0,_15=0,_16=0;var _17=isc.AffineTransform.$145r(_1,_2,_3),_18=_17.h00,_19=_17.h01,_20=_17.h02,_21=_17.h10,_22=_17.h11,_23=_17.h12,_24=_18*_22-_19*_21;if(_24==0)return _10;_13=_18;_14=_22;_15=_13*(_22*_20-_19*_23)/_24;_16=_14*(_18*_23-_21*_20)/_24;if(_12){_15=Math.round(_15);_16=Math.round(_16)}
  if(_13!=0&&_14!=0){var t=isc.AffineTransform.create(_13,0,_15,0,_14,_16);var v=t.transform(_4,_5),w=t.transform(_4+_6,_5+_7),_28=0,_29=0,_30=0,_31=0;if(_12){var _32=Math.round(w[0]),_33=Math.round(w[1]);_28=Math.round(v[0]);_29=Math.round(v[1]);_30=_32-_28;_31=_33-_29}else{_28=v[0];_29=v[1];_30=w[0]-_28;_31=w[1]-_29}
  if(_30!=0&&_31!=0){var _34=(_8||0);if(_34!=0){if(_13!=1){var _35=(_30+2*_34),_36=(_30+2*_13*_34);_15=(_34*(_13-1)*(_30+2*_28)+_35*_15)/
  _36;_13*=_35/_36}
  if(_14!=1){var _37=(_31+2*_34),_38=(_31+2*_14*_34);_16=(_34*(_14-1)*(_31+2*_29)+_37*_16)/
  _38;_14*=_37/_38}
  t.m00=_13;t.m02=_15;t.m11=_14;t.m12=_16}
  _1.rightMultiply(t.getInverse());_10.success=true;_10.left=_28;_10.top=_29;_10.width=_30;_10.height=_31}}}
  return _10});isc.B._maxIndex=isc.C+10;isc.A=isc.DrawItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$125w=isc.Math.$125w;isc.A.dragRepositionCursor="move";isc.A.showHover=true;isc.A.hoverDelay=300;isc.A.lineWidth=3;isc.A.lineColor="#808080";isc.A.lineOpacity=1.0;isc.A.linePattern="solid";isc.A.lineCap="round";isc.A.fillGradient=null;isc.A.fillOpacity=1.0;isc.A.shadow=null;isc.A.rotation=0;isc.A.xShearFactor=0;isc.A.yShearFactor=0;isc.A.scale=null;isc.A.translate=null;isc.A.exemptFromGlobalTransform=false;isc.A.svgFilter=null;isc.A.titleLabelDefaults={_constructor:"DrawLabel",$1661:true,cursor:isc.Canvas.DEFAULT,alignment:"center",autoFitInitialFontSize:25,lineColor:"#707070",fontSize:11,fontFamily:"Arial",fontWeight:"normal",setContents:function(_1,_2){var _3=this.getClass().$b4.setContents.apply(this,arguments);if(!_2){this.creator.$166z()}
  return _3}};isc.A.titleAutoFitRotationMode="auto";isc.A.titleAutoFitMargin=2;isc.A.titleRotationMode="neverRotate";isc.A.showTitleLabelBackground=false;isc.A.titleLabelBackgroundDefaults={_constructor:"DrawRect",lineColor:null,lineWidth:1,fillColor:"#ffffff",fillOpacity:0.9};isc.A.titleLabelPadding=2;isc.A.resizeViaLocalTransformOnly=false;isc.A.proportionalResizing="modifier";isc.A.proportionalResizeModifiers=["Shift"];isc.A.autoOffset=true;isc.A.canDrag=false;isc.A.hitTolerance=0;isc.A.roundCoordinates=true;isc.A.$126i=[0,0,0,0];isc.A.$145i=new Array(4);isc.A.$147k={cx:0,cy:0};isc.A.computeAngle=isc.DrawItem.computeAngle;isc.A.dragStartDistance=5;isc.A.dragStartDistance=1;isc.A.startHover=isc.Canvas.getInstanceProperty("startHover");isc.A.stopHover=isc.Canvas.getInstanceProperty("stopHover");isc.A.$80l=isc.Class.NO_OP;isc.A.eventOpaque=true;isc.A.moveKnobPoint="TL";isc.A.$159j={"TL":[-8,10],"TR":[8,10],"BL":[-8,-10],"BR":[8,-10]};isc.A.moveKnobDefaults={cursor:"move",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultMoveKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#b8ecae",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.moveKnobConstructor="DrawKnob";isc.A.rotateKnobDefaults={cursor:"crosshair",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultMoveKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#bbeebb",offset:0.15},{color:"#22dd22",offset:0.5},{color:"#bbeebb",offset:0.85}]}}};isc.A.rotateKnobConstructor="DrawKnob";isc.A.resizeKnobPoints=["TL","TR","BL","BR","T","R","B","L"];isc.A.cornerResizeKnobDefaults={knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultCornerResizeKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#CAE9ED",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.cornerResizeKnobConstructor="DrawKnob";isc.A.sideResizeKnobDefaults={knobShapeProperties:{_constructor:"DrawRect",width:7,height:7,lineWidth:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultSideResizeKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.2},{color:"#CAE9ED",offset:0.5},{color:"#ffffff",offset:0.95}]}}};isc.A.sideResizeKnobConstructor="DrawKnob";isc.A.resizeOutlineDefaults={lineWidth:1,lineColor:"#007FFF",linePattern:"shortdot",autoDraw:true,$145w:true};isc.A.resizeOutlineConstructor="DrawRect";isc.A.showResizeOutline=true;isc.A.$151u="none";isc.A.useSimpleTransform=true;isc.A.startKnobDefaults={knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultStartKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#CAE9ED",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.startKnobConstructor="DrawKnob";isc.A.endKnobDefaults={knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultEndKnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#CAE9ED",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.endKnobConstructor="DrawKnob";isc.A.$of=isc.Canvas.$b4.$of;isc.A.$125g="solid";isc.A.$1364=" stroked='false'";isc.A.$1365=" filled='false'";isc.A.$1626={"path":true,"line":true,"polyline":true,"polygon":true};isc.A.$44r={shortdot:1,dot:1,shortdash:3,dash:4,longdash:8};isc.A.$44s={shortdot:1,dot:3,shortdash:1,dash:3,longdash:3};isc.B.push(isc.A.$1504=function isc_DrawItem__getDrawPane(){var _1=null;for(var _2=this;;){if(_2.drawPane!=null){_1=_2.drawPane;break}else if(_2.drawGroup!=null){_2=_2.drawGroup}else{break}}
  return _1},isc.A.$183s=function isc_DrawItem__getZIndexCounterObj(){var _1=this.drawPane||this.$1504();if(!_1)this.$183r=true;if(!_1||!_1.hasOwnZIndices)return isc.DrawItem;return _1},isc.A.$151j=function isc_DrawItem__getProportionalResizing(){var _1=this.proportionalResizing,_2=_1=="always",_3=!_2&&_1=="modifier",_4=!(_2||_3)&&_1=="modifierOff";if(!(_2||_3||_4)){return"none"}
  var _5=this.resizeKnobPoints,_6=(!this.destroying&&!this.destroyed&&this.knobs!=null&&this.knobs.contains("resize")&&_5!=null&&_5.length>0&&(_5.contains("TL")||_5.contains("TR")||_5.contains("BL")||_5.contains("BR"))&&this.dragResizeMove==isc.DrawItem.getInstanceProperty("dragResizeMove"));if(!_6){return"none"}else{var _7=(isc.Page.$151g(this.proportionalResizeModifiers)==0);if(_7){if(_3){return"always"}else if(_4){return"none"}}
  return _1}},isc.A.addPeer=function isc_DrawItem_addPeer(_1,_2,_3){if(!_1)return null;var _4=_1.masterElement;if(_4===this)return null;else if(_4!=null)_1.depeer(_2);_1.masterElement=this;if(_2!=null)this[_2]=_1;var _5=this.peers;if(_5==null){_5=this.peers=[_1]}else{if(!_5.contains(_1)){_5.add(_1)}}
  if(this.drawGroup!=null){this.drawGroup.addDrawItem(_1)}else if(this.drawPane!=null){this.drawPane.addDrawItem(_1,false);if(!this.drawPane.drawItems.contains(_1)){this.drawPane.drawItems.add(_1)}}
  if(_3===false)return _1;if(this.$if&&!_1.$if){_1.draw()}
  return _1},isc.A.removePeer=function isc_DrawItem_removePeer(_1,_2){if(!_1)return;var _3=this.peers;if(_3==null){this.logWarn("Attempt to remove peer: "+_1+" from DrawItem that does not have peers");return}
  var _4=_3.indexOf(_1);if(_4<0){this.logWarn("Attempt to remove peer: "+_1+" from DrawItem that is not its master");return}
  if(this.drawGroup){this.drawGroup.removeDrawItem(_1)}else if(this.drawPane){this.drawPane.removeDrawItem(_1)}
  _3.removeAt(_4);if(this[_2]===_1)this[_2]=null;_1.masterElement=null;if(_1.depeered)_1.depeered(this,_2);if(this.peerRemoved)this.peerRemoved(_1,_2)},isc.A.depeer=function isc_DrawItem_depeer(_1){var _2=this.masterElement;if(_2==null)return;_2.removePeer(this,_1)},isc.A.addPeer=function isc_DrawItem_addPeer(_1,_2,_3){if(!_1)return null;var _4=_1.masterElement;if(_4===this)return null;else if(_4!=null)_1.depeer(_2);_1.masterElement=this;if(_2!=null)this[_2]=_1;var _5=this.peers;if(_5==null){_5=this.peers=[_1]}else{if(!_5.contains(_1)){_5.add(_1)}}
  if(this.drawGroup!=null){this.drawGroup.addDrawItem(_1)}else if(this.drawPane!=null){this.drawPane.addDrawItem(_1,false);if(!this.drawPane.drawItems.contains(_1)){this.drawPane.drawItems.add(_1)}}
  if(_3===false)return _1;if(this.isDrawn()&&!_1.isDrawn()){_1.draw()}
  return _1},isc.A.removePeer=function isc_DrawItem_removePeer(_1,_2){if(!_1)return;var _3=this.peers;if(_3==null){this.logWarn("Attempt to remove peer: "+_1+" from DrawItem that does not have peers");return}
  var _4=_3.indexOf(_1);if(_4<0){this.logWarn("Attempt to remove peer: "+_1+" from DrawItem that is not its master");return}
  if(this.drawGroup){this.drawGroup.removeDrawItem(_1)}else if(this.drawPane){this.drawPane.removeDrawItem(_1)}
  _3.removeAt(_4);if(this[_2]===_1)this[_2]=null;_1.masterElement=null;if(_1.depeered)_1.depeered(this,_2);if(this.peerRemoved)this.peerRemoved(_1,_2)},isc.A.depeer=function isc_DrawItem_depeer(_1){var _2=this.masterElement;if(_2==null)return;_2.removePeer(this,_1)},isc.A.setPropertyValue=function isc_DrawItem_setPropertyValue(_1,_2){var _3=this.$ds(_1),_4;if(isc.isA.StringMethod(_2)){_2=_2.getValue()}
  if(_3!=null){if(!this.getClass().isMethodSupported(_3)){return}
  this[_3](_2)}else{_4={};_4[_1]=_2;this.addProperties(_4)}
  if(this.propertyChanged){this.propertyChanged(_1,_2)}
  if(this.doneSettingProperties){if(_3!=null){_4={};_4[_1]=_2}
  this.doneSettingProperties(_4)}},isc.A.$165u=function isc_DrawItem__isClosed(){return false},isc.A.getZIndex=function isc_DrawItem_getZIndex(_1){var _2=this.zIndex;if(_1&&_2==null){var _3=this.$183s();if(this.drawToBack){_2=this.zIndex=(_3.$1688+=9)}else{_2=this.zIndex=(_3._nextZIndex+=18)}}
  return _2},isc.A.setZIndex=function isc_DrawItem_setZIndex(_1){if(this.zIndex==_1)return;this.zIndex=_1;var _2,_3;if(this.drawGroup!=null){_2=this.drawGroup;_3=_2.drawItems}else if(this.drawPane!=null){_2=this.drawPane;_3=_2.drawItems}
  if(!isc.isAn.Array(_3)||_3.length==1)return;if(_1==null)_1=this.getZIndex(true);var _4=_3.indexOf(this);var _5;if(_4<0)_5=false;else{_5=true;_3.removeAt(_4)}
  var i=isc.Array.$96c(_3,this,isc.DrawItem.$1687);if(i<0)i=-i-1;_3.addAt(this,i);var _7=this.peers;if(_7!=null){for(var _8=0,_9=_7.length;_8<_9;++_8){var _10=_7[_8];if(_10.$169l){_10.zIndex=_1;if(_3.remove(_10)){_3.addAt(_10,++i)}}}}
  if(_4==i)return;if(this.drawingSVG){var _11=null;for(i=i+1;i<_3.length;++i){var _12=_3[i];if(_12.drawingSVG){if(isc.isA.DrawGroup(_12)&&!_12.renderGroupElement){}
  _11=_12.$44z;break}}
  this.$44z.parentNode.insertBefore(this.$44z,_11);if(_7!=null){for(var _8=0,_9=_7.length;_8<_9;++_8){var _10=_7[_8];if(_10.$169l&&_10.isDrawn()){_10.$44z.parentNode.insertBefore(_10.$44z,_11)}}}}else if(this.drawingVML){if(isc.isA.DrawGroup(this)&&!this.renderGroupElement){}else{this.$154s.setProperty("zIndex",_1).flush();if(_7!=null){for(var _8=0,_9=_7.length;_8<_9;++_8){var _10=_7[_8];if(_10.$169l&&_10.isDrawn()){_10.$154s.setProperty("zIndex",_1).flush()}}}}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.bringToFront=function isc_DrawItem_bringToFront(){var _1=this.$183s();this.setZIndex(_1._BIG_Z_INDEX+=18);if(this.titleLabelBackground)this.titleLabelBackground.bringToFront();if(this.titleLabel)this.titleLabel.bringToFront()},isc.A.sendToBack=function isc_DrawItem_sendToBack(){if(this.titleLabel)this.titleLabel.sendToBack();if(this.titleLabelBackground)this.titleLabelBackground.sendToBack();var _1=this.$183s();this.setZIndex(_1._SMALL_Z_INDEX-=18)},isc.A.setCursor=function isc_DrawItem_setCursor(_1){this.cursor=_1},isc.A.setDragRepositionCursor=function isc_DrawItem_setDragRepositionCursor(_1){this.dragRepositionCursor=_1},isc.A.getCurrentCursor=function isc_DrawItem_getCurrentCursor(){var _1=this.canDrag?this.dragRepositionCursor:this.cursor;if(_1==isc.Canvas.HAND&&isc.Browser.$191d){return isc.Canvas.POINTER}
  return _1},isc.A.$136v=function isc_DrawItem__updateQuadTreeItem(){var _1=this.item;if(_1!=null){var _2=this.$1349(true,true,true,this.$145i);this.drawPane.quadTree.update(_1,_2[0],_2[1],(_2[2]-_2[0]),(_2[3]-_2[1]))}},isc.A.$1475=function isc_DrawItem__resolve(_1,_2,_3,_4,_5,_6,_7){if(_3==null){_3=_1}
  var _8=_2.contains("L"),_9=!_8&&_2.contains("R"),_10=_2.contains("T"),_11=!_10&&_2.contains("B"),_12=!(_8||_9||_10||_11)&&_2.contains("C"),_13=(!(_8||_9||_10||_11||_12)&&_2.contains("X"));if(!(_8||_9||_10||_11||_12||_13)){return null}
  if(_13){_3="local"}
  if(this.drawPane==null){if(_3=="global"){_3="drawing"}
  if(_1=="global"){_1="drawing"}}
  var x=0,y=0;if(_13){var _16=this.$147l();if(_16.cx!=null&&_16.cy!=null){x=_16.cx;y=_16.cy}else{return null}}else{var _17=null;if(_3=="local"){_17=this.getBoundingBox(_4,this.$145i);if(_5){_17=this.$147b(false,true,_17)}}else if(_3=="drawing"){_17=this.$1349(_4,true,_5,_17)}else{_17=this.$1349(_4,false,_5,_17)}
  if(_8){x=_17[0]}else if(_9){x=_17[2]}else{x=(_17[0]+_17[2])/2}
  if(_10){y=_17[1]}else if(_11){y=_17[3]}else{y=(_17[1]+_17[3])/2}}
  if(_3!=_1){var _18=this.$1486(_3,_1),_19=_18.m00*x+_18.m01*y+_18.m02,_20=_18.m10*x+_18.m11*y+_18.m12;x=_19;y=_20}
  if(_6){x=Math.round(x);y=Math.round(y)}
  _7=_7||new Array(2);_7[0]=x;_7[1]=y;return _7},isc.A.$179h=function isc_DrawItem__mustRoundCoordinates(){return this.roundCoordinates||(this.drawPane?this.drawPane.drawingType:"vml")=="vml"},isc.A.$1503=function isc_DrawItem__makeCoordinate(_1){return isc.DrawItem.$1503(_1,this.$179h())},isc.A.getCenter=function isc_DrawItem_getCenter(){var _1=this.getBoundingBox(false,this.$145i);return[this.$1503((_1[0]+_1[2])/2),this.$1503((_1[1]+_1[3])/2)]},isc.A.getBoundingBox=function isc_DrawItem_getBoundingBox(_1,_2){var _3=(_2||new Array(4));for(var i=4;i--;){_3[i]=this.$126i[i]}
  return _3},isc.A.$147b=function isc_DrawItem__adjustBoundingBox(_1,_2,_3){var _4=(_1&&this.$125h()&&!isc.isA.DrawLabel(this)?(this.lineWidth/2):0),_5=(_2?this.hitTolerance:0),_6=_4+_5;if(_6!=0){if(_3[0]<=_3[2]){_3[0]-=_6;_3[2]+=_6}else{_3[2]-=_6;_3[0]+=_6}
  if(_3[1]<=_3[3]){_3[1]-=_6;_3[3]+=_6}else{_3[3]-=_6;_3[1]+=_6}}
  return _3},isc.A.getResizeBoundingBox=function isc_DrawItem_getResizeBoundingBox(_1,_2){return this.$1349(!_1,false,false,_2)},isc.A.$1349=function isc_DrawItem__getTransformedBoundingBox(_1,_2,_3,_4){var t;if(_2||this.drawPane==null){t=this.$1339()}else{t=this.drawPane.$1338().duplicate().rightMultiply(this.$1339())}
  return this.$147c(t,_1,_3,_4)},isc.A.$147c=function isc_DrawItem__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=this.getBoundingBox(_2,_4);this.$147b(false,_3,_5);var _6=_1.transform(_5[0],_5[1]),_7=_1.transform(_5[2],_5[1]),_8=_1.transform(_5[2],_5[3]),_9=_1.transform(_5[0],_5[3]);_5[0]=Math.min(_6[0],_7[0],_8[0],_9[0]);_5[1]=Math.min(_6[1],_7[1],_8[1],_9[1]);_5[2]=Math.max(_6[0],_7[0],_8[0],_9[0]);_5[3]=Math.max(_6[1],_7[1],_8[1],_9[1]);return _5},isc.A.isInBounds=function isc_DrawItem_isInBounds(_1,_2){var _3=this.$136i(_1,_2),b=this.getBoundingBox(true,this.$145i),_5=this.hitTolerance;return(((b[0]-_5<=_3[0]&&_3[0]<=b[2]+_5)||(b[2]-_5<=_3[0]&&_3[0]<=b[0]+_5))&&((b[1]-_5<=_3[1]&&_3[1]<=b[3]+_5)||(b[3]-_5<=_3[1]&&_3[1]<=b[1]+_5)))},isc.A.$1505=function isc_DrawItem__useExemptHack(){return(this.exemptFromGlobalTransform&&this.drawPane!=null&&this.drawPane.drawingType!="bitmap")},isc.A.getShapeData=function isc_DrawItem_getShapeData(){var _1=this.getTransform();return{m00:_1.m00,m01:_1.m01,m02:_1.m02,m10:_1.m10,m11:_1.m11,m12:_1.m12}},isc.A.getTransform=function isc_DrawItem_getTransform(){return this.$1339(true).duplicate()},isc.A.setTransform=function isc_DrawItem_setTransform(_1){if(isc.isAn.AffineTransform(_1)){var _2=this.$147l();this.$147w(_1,_2.cx,_2.cy,null,true,true)}},isc.A.$1339=function isc_DrawItem__getLocalTransform(_1){var _2=(!_1&&this.$1505()),t=this.$1348;if(t!=null&&!_2)return t;if(_2){t=this.drawPane.$147h().duplicate();t.translate(this.drawPane.scrollLeft,this.drawPane.scrollTop)}else{t=isc.AffineTransform.create()}
  if(this.translate){t.translate(this.translate[0],this.translate[1])}
  if(this.scale&&this.scale.length===2){t.scale(this.scale[0],this.scale[1])}
  if(this.xShearFactor){t.xShear(this.xShearFactor)}
  if(this.yShearFactor){t.yShear(this.yShearFactor)}
  var _4=this.rotation,_5=this.$147l();if(_5.cx!=null&&_5.cy!=null&&_4){t.rotate(_4,_5.cx,_5.cy)}
  if(!_2){this.$1348=t}
  return t},isc.A.$1476=function isc_DrawItem__getInverseLocalTransform(){var _1=this.$1346,_2=this.$1339();if(_1==null||_2!=this.$1347){_1=this.$1346=_2.getInverse();this.$1347=_2}
  return _1},isc.A.$147l=function isc_DrawItem__getRotationCenter(){var _1=this.$147k;if(isc.isA.DrawLabel(this)&&!this.$1661){_1.cx=this.left;_1.cy=this.top}else{var _2=this.getCenter&&this.getCenter();if(_2&&_2.length===2){_1.cx=_2[0];_1.cy=_2[1]}else{_1.cx=_1.cy=null}}
  return _1},isc.A.$136i=function isc_DrawItem__normalize(_1,_2,_3,_4){if(_3==null){_3="drawing"}
  if(_4==null){_4="local"}
  var _5=this.$1486(_3,_4);return _5.transform(_1,_2)},isc.A.$1486=function isc_DrawItem__getNormalizeTransform(_1,_2){if(this.drawPane==null){if(_1=="global"){_1="drawing"}
  if(_2=="global"){_2="drawing"}}
  if(_1==_2){return isc.AffineTransform.getIdentityTransform()}else{if(this.exemptFromGlobalTransform&&this.drawPane!=null){var _3=this.drawPane.scrollLeft,_4=this.drawPane.scrollTop;if(_1=="local"){if(_2=="drawing"){return(this.drawPane.$147h().duplicate().translate(_3,_4).leftMultiply(this.$1339(true)))}else{return(this.$1339(true).duplicate().preTranslate(_3,_4))}}else if(_1=="drawing"){if(_2=="local"){return(this.$1339(true).getInverse().translate(-_3,-_4).rightMultiply(this.drawPane.$1338()))}else{}}else{if(_2=="local"){return(this.$1339(true).getInverse().translate(-_3,-_4))}else{}}}
  if(_1=="local"){if(_2=="drawing"){return this.$1339()}else{var _5=this.$1339();return this.drawPane.$1338().duplicate().rightMultiply(_5)}}else if(_1=="drawing"){if(_2=="local"){return this.$1476()}else{return this.drawPane.$1338()}}else{if(_2=="local"){var _5=this.drawPane.$1338().duplicate().rightMultiply(this.$1339());return _5.getInverse()}else{return this.drawPane.$147h()}}}},isc.A.isPointInPath=function isc_DrawItem_isPointInPath(_1,_2,_3,_4){var _5=this.hitTolerance,_6=((this.lineWidth==null?1:Math.max(1,this.lineWidth))+2*_5);this.hitTolerance=_6/2;var _7=this.isInBounds(_1,_2);this.hitTolerance=_5;if(!_7){return false}
  if(this.drawingBitmap){var _8=this.drawPane.getBitmapContext(),_9=isc.isA.DrawCurve(this),_10=this.linePattern;_8.save();this.linePattern="solid";try{_8.beginPath();if(_9){this.drawBitmapPath(_8,false)}else{this.drawBitmapPath(_8)}
  var _11=this.$136i(_1,_2);var _12=isc.Browser.$141c;if((this.$125k()||this.eventOpaque||!_12)&&_8.isPointInPath(_11[0],_11[1]))
  {return true}
  if(_9&&this.$144r(_8,_6,_11[0],_11[1]))
  {return true}else if(_12){_8.lineWidth=_6;_8.lineCap=this.lineCap;_8.lineJoin="round";_8.strokeStyle="#ff00ff";return _8.isPointInStroke(_11[0],_11[1])}else if(_9){return this.$142z(_8,_11[0],_11[1])}else{return false}}finally{this.linePattern=_10;_8.restore()}}else if(this.drawingVML){var _13=this.$125f();return _13.ownerDocument.elementFromPoint(_3,_4)===_13}else if(this.drawingSVG&&isc.Browser.$165v){var _14=this.drawPane.$162u();var _15=_14.getScreenCTM();var _16=_14.createSVGPoint();_16.x=_3-_6/2;_16.y=_4-_6/2;_16=_16.matrixTransform(_15.inverse());var _17=_14.createSVGRect();_17.x=_16.x;_17.y=_16.y;_17.width=_6;_17.height=_6;var _18=_14.getIntersectionList(_17,null);return Array.prototype.indexOf.call(_18,this.$44z)>=0}
  return false},isc.A.$144r=function isc_DrawItem__isPointInPathOfStartOrEndArrow(_1,_2,_3,_4){if(this.startArrow=="open"||this.startArrow=="block"){_1.save();this.$144s(_1,_2,false);var _5=(_1.isPointInPath(_3,_4)||(isc.Browser.$141c&&_1.isPointInStroke(_3,_4)));_1.restore();if(_5){return true}}
  if(this.endArrow=="open"||this.endArrow=="block"){_1.save();this.$144t(_1,_2,false);var _5=(_1.isPointInPath(_3,_4)||(isc.Browser.$141c&&_1.isPointInStroke(_3,_4)));_1.restore();if(_5){return true}}
  return false},isc.A.getHoverTarget=function isc_DrawItem_getHoverTarget(_1,_2){return(this.drawPane?this.drawPane.getHoverTarget(_1,_2):null)},isc.A.$kr=function isc_DrawItem__allowNativeTextSelection(_1){return false},isc.A.$k2=function isc_DrawItem__updateCursor(){if(this.drawPane)this.drawPane.$k2(this)},isc.A.prepareForDragging=function isc_DrawItem_prepareForDragging(){var _1=this.ns.EH;if(!_1.dragTarget&&!_1.rightButtonDown()){if(this.canDrag){_1.dragTarget=this;_1.dragOperation="drag";return true}}},isc.A.focus=function isc_DrawItem_focus(_1){if(this.drawPane!=null)this.drawPane.focus(_1)},isc.A.visibleAtPoint=function isc_DrawItem_visibleAtPoint(_1,_2){return true},isc.A.$120u=function isc_DrawItem__getUseNativeDrag(){return false},isc.A.getDragAppearance=function isc_DrawItem_getDragAppearance(_1){return"none"},isc.A.moveToEvent=function isc_DrawItem_moveToEvent(_1,_2){this.moveTo(_1,_2)},isc.A.getRect=function isc_DrawItem_getRect(){var _1=this.getBoundingBox(false,this.$145i);return[_1[0],_1[1],_1[2]-_1[0],_1[3]-_1[1]]},isc.A.getPageOffsets=function isc_DrawItem_getPageOffsets(){var _1=this.$1349(true,false,false,this.$145i);var _2={left:_1[0]<<0,top:_1[1]<<0};if(this.drawPane!=null){var _3=this.drawPane.getPageOffsets(),_4=this.drawPane.$sd();_2.left+=_3.left+_4.left;_2.top+=_3.top+_4.top}
  return _2},isc.A.getPageLeft=function isc_DrawItem_getPageLeft(){return this.getPageOffsets().left},isc.A.getPageTop=function isc_DrawItem_getPageTop(){return this.getPageOffsets().top},isc.A.getVisibleDimensions=function isc_DrawItem_getVisibleDimensions(){var _1=this.$1349(true,false,false,this.$145i);return{width:Math.ceil(_1[2]-_1[0]),height:Math.ceil(_1[3]-_1[1])}},isc.A.getVisibleWidth=function isc_DrawItem_getVisibleWidth(){return this.getVisibleDimensions().width},isc.A.getVisibleHeight=function isc_DrawItem_getVisibleHeight(){return this.getVisibleDimensions().height},isc.A.setCanDrag=function isc_DrawItem_setCanDrag(_1){this.canDrag=_1},isc.A.dragStart=function isc_DrawItem_dragStart(_1,_2){if(this.logIsInfoEnabled("drawEvents")){this.logInfo("DragStart on item:"+this.getID(),"drawEvents")}
  var _3=this.drawPane;if(_3==null)return false;var _4=_3.$150s(_1.x,_1.y),x=_4[0],y=_4[1];if(this.onDragStart(x,y)==false){return false}
  if(this.keepInParentRect){var _7=isc.EH.mouseDownEvent||_1;_4=_3.$150s(_7.x,_7.y);var _8=_4[0],_9=_4[1],_10=this.$1349(true,false,false,this.$145i),_11=_10[0],_12=_10[1];this.dragOffsetX=Math.max(0,Math.min(_8-_11,_10[2]-_11));this.dragOffsetY=Math.max(0,Math.min(_9-_12,_10[3]-_12))}
  this.accumulatedDragX=0;this.accumulatedDragY=0;this.bringToFront();return isc.EH.STOP_BUBBLING},isc.A.onDragStart=function isc_DrawItem_onDragStart(_1,_2){},isc.A.dragMove=function isc_DrawItem_dragMove(_1,_2){var _3=this.drawPane;if(_3==null)return false;var _4=_3.$150s(_1.x,_1.y),x=_4[0],y=_4[1];if(this.keepInParentRect){var _7=this.$113u(),_8=this.$1349(true,false,false,this.$145i),_9=_8[2]-_8[0],_10=_8[3]-_8[1];x=Math.max(_7[0]+this.dragOffsetX,Math.min(_7[2]-(_9-this.dragOffsetX),x));y=Math.max(_7[1]+this.dragOffsetY,Math.min(_7[3]-(_10-this.dragOffsetY),y));x=this.$1503(x);y=this.$1503(y)}
  if(this.onDragMove(x,y)==false)return false;var _11=isc.EH.mouseDownEvent||_1;_4=_3.$150s(_11.x,_11.y);var _12=_4[0],_13=_4[1];var _14=x-_12,_15=y-_13,_16=_14-this.accumulatedDragX,_17=_15-this.accumulatedDragY;this.moveBy(_16,_17);this.accumulatedDragX+=_16;this.accumulatedDragY+=_17;return isc.EH.STOP_BUBBLING},isc.A.onDragMove=function isc_DrawItem_onDragMove(_1,_2){},isc.A.dragStop=function isc_DrawItem_dragStop(_1,_2){var _3=this.drawPane;if(_3==null)return false;var _4=_3.$150s(_1.x,_1.y),x=_4[0],y=_4[1];this.onDragStop(x,y);return isc.EH.STOP_BUBBLING},isc.A.onDragStop=function isc_DrawItem_onDragStop(_1,_2){},isc.A.dropMove=function isc_DrawItem_dropMove(){},isc.A.mouseDown=function isc_DrawItem_mouseDown(){return true},isc.A.mouseUp=function isc_DrawItem_mouseUp(){return true},isc.A.click=function isc_DrawItem_click(){return true},isc.A.mouseOver=function isc_DrawItem_mouseOver(){return true},isc.A.mouseMove=function isc_DrawItem_mouseMove(){return true},isc.A.mouseOut=function isc_DrawItem_mouseOut(){return true},isc.A.showContextMenu=function isc_DrawItem_showContextMenu(){var _1=this.contextMenu;if(_1){_1.target=this;if(!isc.isA.Canvas(_1)){_1.autoDraw=false;this.contextMenu=_1=this.getMenuConstructor().create(_1)}
  _1.showContextMenu()}
  return(_1==null)},isc.A.getMenuConstructor=function isc_DrawItem_getMenuConstructor(){var _1=isc.ClassFactory.getClass(this.menuConstructor);if(!_1){isc.logWarn("Class not found for menuConstructor:"+this.menuConstructor+". Defaulting to isc.Menu class");_1=isc.ClassFactory.getClass("Menu",true)}
  return _1},isc.A.$wb=function isc_DrawItem__handleHover(){var _1=isc.EH,_2=_1.lastMoveTarget,_3=_1.lastEvent;if(!_2||_2.getHoverTarget(_3)!=this||this.drawPane==null||this.drawPane.getDrawItem(_3.x,_3.y,false,_3)!=this)
  {return}
  this.handleHover()},isc.A.$wc=function isc_DrawItem__getHoverProperties(){return this.drawPane.$wc()},isc.A.handleHover=function isc_DrawItem_handleHover(){if(this.hover&&this.hover()==false)return;if(this.showHover){var _1=this.getHoverHTML();if(_1!=null&&!isc.isAn.emptyString(_1)){isc.Hover.show(_1,this.$wc(),null,this)}}},isc.A.getHoverHTML=function isc_DrawItem_getHoverHTML(){return this.prompt},isc.A.init=function isc_DrawItem_init(){this.Super("init",arguments);if(this.ID!==false&&(this.ID==null||window[this.ID]!=this)){isc.ClassFactory.addGlobalID(this)}
  this.drawItemID=isc.DrawItem.$44q++;if(this.vmlLineEventsOnly==null)this.vmlLineEventsOnly=!this.eventOpaque;if(this.shapeData){var _1=this.shapeData,_2=[_1.m00,_1.m01,_1.m02,_1.m10,_1.m11,_1.m12].map(parseFloat);this.setTransform(isc.AffineTransform.create.apply(isc.AffineTransform,_2))}
  if(this.exemptFromGlobalTransform){this.excludeFromQuadTree=true}
  if(isc.isAn.AffineTransform(this.transform)){var _3=this.$147l();this.$147w(this.transform,_3.cx,_3.cy,null,false,true)}
  this.$151k();var _4=this.drawGroup,_5;if(_4!=null){_4.addDrawItem(this)}else if((_5=this.drawPane)!=null){_5.addDrawItem(this,this.autoDraw,true)}},isc.A.draw=function isc_DrawItem_draw(){if(this.$if){this.logDebug("DrawItem already drawn - exiting draw(). Note that this DrawItem may have been auto-drawn if setDrawPane() was called on it, or if DrawPane.addDrawItem() was called to add this DrawItem to a DrawPane.","drawing");return}
  if(this.drawGroup!=null){this.drawPane=this.drawGroup.drawPane}else{if(!this.drawPane)this.drawPane=isc.DrawPane.getDefaultDrawPane(this.drawingType)}
  var _1=this.drawPane;if(this.exemptFromGlobalTransform&&!_1.$150v.contains(this)){_1.$150v.push(this)}
  if(isc.isA.DrawGroup(this)&&this.drawItems!=null){var _2=this.drawItems,_3=false;for(var i=0,_5=_2.length;i<_5;++i){var _6=_2[i];if(_6==null){if(!_3){this.logInfo("drawGroup included empty entry in drawItems:"+this.echo(_2));_3=true}}else{if(_6.exemptFromGlobalTransform){var _7=_6.$1504();if(_7!=_1){if(_7!=null){_7.$150v.remove(_6)}
  _1.$150v.push(_6)}}
  _6.drawGroup=this;_6.drawPane=_1}}
  if(_3){_2.removeEmpty()}}
  if(this.drawGroup){this.getZIndex(true);this.$148r=this.drawGroup.$148r;if(!this.drawGroup.drawItems.contains(this)){if(this.drawGroup.drawItems==null){this.drawGroup.drawItems=[this]}else{var i=isc.Array.$96c(this.drawGroup.drawItems,this,isc.DrawItem.$1687);if(i<0)i=-i-1;for(;i<this.drawGroup.drawItems.length&&isc.DrawItem.$1687(this.drawGroup.drawItems[i],this)==0;++i){}
  this.drawGroup.drawItems.addAt(this,i)}
  this.$166z();this.$1660()}
  return}else{this.getZIndex(true);if(this.$148r==null){this.$148r=_1.$148p++}
  if(!_1.drawItems.contains(this)){var i=isc.Array.$96c(_1.drawItems,this,isc.DrawItem.$1687);if(i<0)i=-i-1;for(;i<_1.drawItems.length&&isc.DrawItem.$1687(_1.drawItems[i],this)==0;++i){}
  _1.drawItems.addAt(this,i);this.$166z();this.$1660()}}
  if(_1.shouldDeferDrawing(this)){return}
  if(!_1.isDrawn()&&_1.getDrawnState()!=isc.Canvas.HANDLE_DRAWN){return}
  this.drawHandle()});isc.evalBoundary;isc.B.push(isc.A.$1622=function isc_DrawItem__completeDraw(){var _1=this.drawPane;var _2=_1.drawingType;if(_2==="vml"){this.drawingVML=true}else if(_2==="svg"){this.drawingSVG=true;this.$44m=_1.$162s();this.$44y=_1.$162w();if(this.$44z==null){this.$44z=this.$162z()}}else{this.drawingBitmap=true}
  this.$113d();this.$if=true},isc.A.$141b=function isc_DrawItem__getQuadTreeItem(){var _1=this.$1349(true,true,true,this.$145i);return{x:_1[0],y:_1[1],width:(_1[2]-_1[0]),height:(_1[3]-_1[1]),shape:this,addOrder:this.$148r}},isc.A.$113d=function isc_DrawItem__setupEventParent(){if(this.eventParent!=null)return;this.eventParent=(this.drawGroup||this.drawPane);var _1=(this.item==null&&!this.excludeFromQuadTree&&(!isc.isA.DrawGroup(this)||this.useGroupRect));for(var _2=this.drawGroup;_1&&_2!=null;_2=_2.drawGroup){if(_2.useGroupRect){_1=false}}
  if(_1){var _3=this.item=this.$141b();this.drawPane.quadTree.insert(_3)}},isc.A.$113c=function isc_DrawItem__clearEventParent(){delete this.eventParent;if(this.item!=null){this.drawPane.quadTree.remove(this.item);delete this.item}},isc.A.$1660=function isc_DrawItem__drawExemptFromGlobalTransformAutoChildren(){this.$99y()},isc.A.$99y=function isc_DrawItem__drawKnobs(){var _1=this.knobs;if(_1&&(this.drawPane.isDrawn()||this.drawPane.getDrawnState()==isc.Canvas.HANDLE_DRAWN))
  {for(var i=0;i<_1.length;++i){var _3=_1[i],_4=this.$634(_3);if(_4===false){_1.removeAt(i);--i}else if(_3=="resize"){this.$151k()}}
  this.$149h()}},isc.A.$149h=function isc_DrawItem__groupAssociatedDrawItems(){var _1=this.drawPane||this.drawGroup;var _2=this.knobs,_3=_1.drawItems,_4=_3.lastIndexOf(this),k=_4;for(var i=0;i<_2.length;++i){var _7=_2[i];if(_7=="resize"){if(this.resizeOutline!=null){var j=_3.lastIndexOf(this.resizeOutline);if(j!=-1){if(j!=k+1){isc.Array.$149g(_3,j,k,1)}
  if(j<k){--_4}else{++k}}}
  if(this.$638!=null){for(var l=0,_10=this.$638.length;l<_10;++l){var j=_3.lastIndexOf(this.$638[l].knobShape);if(j!=-1){if(j!=k+1){isc.Array.$149g(_3,j,k,1)}
  if(j<k){--_4}else{++k}}}}}else{var _11=null;if(_7=="move"){_11=this.$637}else if(_7=="rotate"){_11=this.$1812}else if(_7=="startPoint"){_11=this.$639}else if(_7=="endPoint"){_11=this.$64a}else if(_7=="controlPoint1"){_11=this.$64b}else if(_7=="controlPoint2"){_11=this.$64d}
  if(_11!=null){var j=_3.lastIndexOf(_11.knobShape);if(j!=-1){if(j!=k+1){isc.Array.$149g(_3,j,k,1)}
  if(j<k){--_4}else{++k}}}}}},isc.A.handleDrawn=function isc_DrawItem_handleDrawn(){var _1=this.drawPane;if(_1)switch(_1.drawingType){case"bitmap":return this.drawingBitmap;case"svg":return this.drawingSVG;case"vml":return this.drawingVML}
  return false},isc.A.drawHandle=function isc_DrawItem_drawHandle(){var _1=this.drawPane,_2=this.drawingType=_1.drawingType;if(_2==="vml"){this.drawingVML=true}else if(_2==="svg"){this.drawingSVG=true}else{this.drawingBitmap=true}
  if(this.drawingVML){_1.$99x(this)}else if(this.drawingSVG){var _3=_1.$162s(),_4=_1.$162e,_5=_4.defSvgStrings;var _6=_4.defSvgStrings=Object.create(_5);var _7=this.getSvgString(_4);var _8="",_9=[];for(var _10 in _6){if(!_6.hasOwnProperty(_10))continue;var _11=_3.getElementById(_10);if(_11!=null){_11.parentNode.removeChild(_11)}
  _8+=_6[_10];_9.add(_10)}
  for(var i=0,_13=_9.length;i<_13;++i){var _10=_9[i];_5[_10]=_6[_10]}
  if(_8!="")_1.$162k(_8);_4.defSvgStrings=_5;var _14=this.drawGroup!=null?this.drawGroup:this.drawPane;var _15=_14.drawItems;var i=_15.indexOf(this);var _16=null;for(i=i+1;i<_15.length;++i){var _17=_15[i];if(_17.drawingSVG){if(isc.isA.DrawGroup(_17)&&!_17.renderGroupElement){}
  _16=_17.$44z;break}}
  if(_16!=null){this.$44z=isc.DrawItem.$169h(_16,"beforebegin",_7,true,_4)}else{var _18;if(isc.isA.DrawGroup(_14)){if(!_14.renderGroupElement){}else{_18=_14.$44z}}else{_18=_1.$162w()}
  this.$44z=isc.DrawItem.$169h(_18,"beforeend",_7,true,_4)}
  this.$1622()}else{_1.redrawBitmap()}},isc.A.isDrawn=function isc_DrawItem_isDrawn(){return!!this.$if},isc.A.$1623=function isc_DrawItem__maybeUpdateSvgFillGradientDef(){if(!this.drawingSVG)return;var _1=this.drawPane,_2=_1.$162e;var _3=_2.useGradientIDs[this.ID];if(_3!=null){var _4=this.$44m.getElementById(_3);var _5=this.fillGradient;_5=(isc.isA.String(_5)?_5=_1.getGradient(_5):_5);if(isc.DrawItem.$135h(_5)||isc.DrawItem.$135i(_5))
  {var _6=this.$830(_5);_4.setAttributeNS(null,"x1",_6[0]);_4.setAttributeNS(null,"y1",_6[1]);_4.setAttributeNS(null,"x2",_6[2]);_4.setAttributeNS(null,"y2",_6[3])}else{var _6=this.$831(_5);if(_5.cx!=null)_4.setAttributeNS(null,"cx",_6[0]);if(_5.cy!=null)_4.setAttributeNS(null,"cy",_6[1]);if(_5.fx!=null)_4.setAttributeNS(null,"fx",_6[3]);if(_5.fy!=null)_4.setAttributeNS(null,"fy",_6[4]);if(_5.r!=null)_4.setAttributeNS(null,"r",_6[5])}
  delete _2.defSvgStrings[_3]}},isc.A.$143s=function isc_DrawItem__reshaped(){this.$1348=null;this.updateControlKnobs();this.$166z();this.$136v();this.$1623()},isc.A.moved=function isc_DrawItem_moved(_1,_2){},isc.A.$105u=function isc_DrawItem__moved(_1,_2){this.$1348=null;this.updateControlKnobs();this.$166z();this.$136v();this.$1623();this.saveCoordinates();this.moveSelection(_1,_2);this.moved(_1,_2)},isc.A.saveCoordinates=function isc_DrawItem_saveCoordinates(){if(!this.editContext)return;var _1=this.editContext.getEditNodeArray().find("liveObject",this);if(!_1)return;var _2=this.getBoundingBox(false,this.$145i);this.editContext.setNodeProperties(_1,{left:_2[0],top:_2[1],width:_2[2]-_2[0],height:_2[3]-_2[1]},true)},isc.A.moveSelection=function isc_DrawItem_moveSelection(_1,_2){if(!this.editingOn||!this.editContext)return;if(!this.drawPane.$128p){var _3=this.editContext.getSelectedComponents();if(_3.length>1&&_3.contains(this)){this.drawPane.$128p=true;for(var i=0;i<_3.length;i++){if(_3[i]!=this){_3[i].moveBy(_1,_2)}}
  this.drawPane.$128p=false}}},isc.A.resized=function isc_DrawItem_resized(){},isc.A.$5y=function isc_DrawItem__resized(){this.$1348=null;this.updateControlKnobs();this.$166z();this.$136v();this.$1623();this.saveCoordinates();this.resized()},isc.A.$634=function isc_DrawItem__showKnobs(_1){var _2=isc.DrawItem.$632(_1)
  if(this[_2]==null||this[_2]==isc.Class.NO_OP){this.logWarn("DrawItem specfied with knobType:"+_1+" but no "+_2+" function exists to show the knobs. Ignoring");return false}else{this[_2]()}},isc.A.$635=function isc_DrawItem__hideKnobs(_1){var _2=isc.DrawItem.$632(_1,true)
  if(this[_2]==null||this[_2]==isc.Class.NO_OP){this.logWarn("DrawItem specfied with knobType:"+_1+" but no "+_2+" function exists to hide the knobs.");return false}else{this[_2]()}},isc.A.showKnobs=function isc_DrawItem_showKnobs(_1){if(isc.isAn.Array(_1)){for(var i=0;i<_1.length;i++){this.showKnobs(_1[i])}
  return}
  if(!this.knobs)this.knobs=[];if(this.knobs.contains(_1))return;if(!(isc.isA.DrawPane(this.drawPane)&&this.drawPane.isDrawn())){this.knobs.add(_1);return}
  if(this.$634(_1)!==false){var _3=this.$135f();this.knobs.add(_1);if(_1=="resize"){this.$151k()}
  if(this.showResizeKnobs&&!this.moveKnobOffset&&this.knobs.length>1&&(_1=="resize"||_1=="move")&&(this.$637!=null&&!this.$637.destroyed)&&this.knobs.contains("resize"))
  {var _4=this.$135f();if(!_3)_3=[0,0];this.$637.moveBy(_4[0]-_3[0],_4[1]-_3[1])}}},isc.A.showAllKnobs=function isc_DrawItem_showAllKnobs(){var _1=this.getSupportedKnobs();this.showKnobs(_1)},isc.A.hideKnobs=function isc_DrawItem_hideKnobs(_1){if(!this.knobs)return;if(!_1){_1=this.knobs.duplicate()}
  if(isc.isAn.Array(_1)){for(var i=0;i<_1.length;i++){this.hideKnobs(_1[i])}
  return}
  var _3=this.$135f();if(this.knobs.contains(_1)){this.knobs.remove(_1);if(_1=="resize"){this.$151k()}}
  if(isc.isA.DrawPane(this.drawPane)&&this.drawPane.isDrawn()){this.$635(_1);if(this.$637!=null&&!this.$637.destroyed&&!this.moveKnobOffset){if(_1=="resize"){var _4=this.$135f();if(!_4)_4=[0,0];this.$637.moveBy(_4[0]-_3[0],_4[1]-_3[1])}}}},isc.A.hideAllKnobs=function isc_DrawItem_hideAllKnobs(){if(!this.knobs)return;var _1=this.knobs.duplicate();this.hideKnobs(_1)},isc.A.setMoveKnobOffset=function isc_DrawItem_setMoveKnobOffset(_1){var _2=this.$135f();this.moveKnobOffset=_1;if(this.$637!=null&&!this.$637.destroyed){var _3=this.$135f();if(_3==null)_3=[0,0];if(_2==null)_2=[0,0];this.$637.moveBy(_3[0]-_2[0],_3[1]-_2[1])}},isc.A.$135f=function isc_DrawItem__getMoveKnobOffset(){if(this.moveKnobOffset){return this.moveKnobOffset}
  if(this.knobs==null||this.knobs.length==0||!(this.knobs.contains("resize")&&this.knobs.contains("move")))
  {return null}
  return this.$159j[this.moveKnobPoint]},isc.A.getSupportedKnobs=function isc_DrawItem_getSupportedKnobs(){var _1=isc.DrawItem.$135g,_2=[];for(var i=0;i<_1.length;i++){var _4=_1[i];var _5=isc.DrawItem.$632(_4);if(this[_5])_2.add(_4)}
  return _2},isc.A.$636=function isc_DrawItem__getKnobPosition(_1,_2,_3){if(_2==null){_2=this.getResizeBoundingBox(_3,this.$145i)}
  var x,y;x=_1.contains("L")?this.$1503(_2[0]):(_1.contains("R")?this.$1503(_2[2]):(this.$1503(_2[0]+(_2[2]-_2[0])/2)));y=_1.contains("T")?this.$1503(_2[1]):(_1.contains("B")?this.$1503(_2[3]):(this.$1503(_2[1]+(_2[3]-_2[1])/2)));return[x,y]},isc.A.showMoveKnobs=function isc_DrawItem_showMoveKnobs(){if(this.$637!=null&&!this.$637.destroyed)return;var _1=this.$636(this.moveKnobPoint);if(_1==null)return;var x=_1[0],y=_1[1];if(window.isNaN(x)||window.isNaN(y))return;var _4=this.$135f();if(_4){x+=_4[0];y+=_4[1];if(x<0)x=0;if(y<0)y=0}
  this.$637=this.createAutoChild("moveKnob",{x:x,y:y,drawPane:this.drawPane,resetKnobPosition:function(){var _5=this.creator,_1=_5.$636(_5.moveKnobPoint);if(_1!=null){var x=_1[0],y=_1[1];if(!(window.isNaN(x)||window.isNaN(y))){var _4=_5.$135f();if(_4){x+=_4[0];y+=_4[1]}
  this.setCenterPoint(x,y,false)}}},updatePoints:function(x,y,_12,_13,_14){var _5=this.creator,_6=(_14=="start"),_7=(_14=="move"),_8=(_14=="stop");if(_6){var _9=_5.getResizeBoundingBox(null,this.$145i),_10=x-_12,_11=y-_13;_5.$113w=_10-_9[0];_5.$113x=_9[2]-_10;_5.$113y=_11-_9[1];_5.$113z=_9[3]-_11}
  if(_5.keepInParentRect){var _9=_5.$113u(),_10=x-_12,_11=y-_13;x=Math.max(_9[0]+_5.$113w,Math.min(_9[2]-_5.$113x,x));y=Math.max(_9[1]+_5.$113y,Math.min(_9[3]-_5.$113z,y));_12=_5.$1503(x-_10);_13=_5.$1503(y-_11)}
  if(_8){delete _5.$113w;delete _5.$113x;delete _5.$113y;delete _5.$113z}
  _5.moveBy(_12,_13)}})},isc.A.hideMoveKnobs=function isc_DrawItem_hideMoveKnobs(){if(this.$637){this.$637.destroy();delete this.$637}},isc.A.showRotateKnobs=function isc_DrawItem_showRotateKnobs(){if(this.$1812!=null&&!this.$1812.destroyed)return;var _1=this.$636("T");if(_1==null)return;var x=_1[0],y=_1[1];if(window.isNaN(x)||window.isNaN(y))return;this.$1812=this.createAutoChild("rotateKnob",{cursor:"url("+isc.Page.getImgURL("[SKIN]/rotationCursor.cur")+") 10 10, crosshair;",x:x,y:y-this.getRotateKnobOffset(),drawPane:this.drawPane,resetKnobPosition:function(){var _4=this.creator,_1=_4.$636("T");if(_1!=null){var x=_1[0],y=_1[1];if(!(window.isNaN(x)||window.isNaN(y))){this.setCenterPoint(x,y-_4.getRotateKnobOffset(),false);if(this.$1813!=null){this.$1813.setStartPoint(Math.round(x),Math.round(y-_4.getRotateKnobOffset()));this.$1813.setEndPoint(Math.round(x),Math.round(y))}}}},updatePoints:function(x,y,_10,_11,_12){var _4=this.creator,_5=(_12=="start"),_6=(_12=="move"),_7=(_12=="stop");if(_5){_4.$1814=0;_4.$1815=_4.rotation;var _8=_4.$1816(_4);_4.$1817=_4.computeAngle(x,y,_8[0],_8[1]);this.$1818=_4.$1819(_4)}
  if(_6){var _8=_4.$1816(_4);var _9=_4.computeAngle(x,y,_8[0],_8[1]);_4.$1814=_9-_4.$1817;this.$1818.rotateTo(_4.$1815+_4.$1814)}
  if(_7){this.$1818.erase();this.$1818.destroy();delete this.$1818;_4.rotateTo(_4.$1815+_4.$1814);this.resetKnobPosition();delete _4.$1814;delete _4.$1815}}});if(!this.$1812.$1813&&this.$638&&this.showResizeOutline!=false){this.$1812.$1813=isc.DrawLine.create({autoDraw:true,drawPane:this.drawPane,lineWidth:1,startPoint:[x,y-this.getRotateKnobOffset()],endPoint:[x,y]});this.$1812.$1813.sendToBack()}},isc.A.getRotateKnobOffset=function isc_DrawItem_getRotateKnobOffset(){return"25"},isc.A.$1816=function isc_DrawItem__getBoundingBoxCenter(_1){var _2=_1.getResizeBoundingBox();var _3=[Math.round(_2[0]+((_2[2]-_2[0])/2)),Math.round(_2[1]+((_2[3]-_2[1])/2))];return _3},isc.A.$1819=function isc_DrawItem__getTranslucentCopy(_1,_2){var _3=null;var _4={autoDraw:true,canDrag:false,lineWidth:1,fillOpacity:0.2,fillColor:"#CCCCCC",drawPane:_1.drawPane,drawGroup:_2};if(isc.isA.DrawTriangle(_1)){_3=isc.DrawTriangle.create(_4,{points:_1.points,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawCurve(_1)){_3=isc.DrawCurve.create(_4,{fillColor:null,startPoint:_1.startPoint,endPoint:_1.endPoint,controlPoint1:_1.controlPoint1,controlPoint2:_1.controlPoint2,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawLinePath(_1)){_3=isc.DrawLinePath.create(_4,{fillColor:null,startPoint:_1.startPoint,endPoint:_1.endPoint,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawPolygon(_1)){_3=isc.DrawPolygon.create(_4,{points:_1.points,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawOval(_1)){_3=isc.DrawOval.create(_4,{left:_1.left,top:_1.top,width:_1.width,height:_1.height,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawRect(_1)){_3=isc.DrawRect.create(_4,{left:_1.left,top:_1.top,width:_1.width,height:_1.height,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawLine(_1)){_3=isc.DrawLine.create(_4,{fillColor:null,startPoint:_1.startPoint,endPoint:_1.endPoint,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawShape(_1)){_3=isc.DrawShape.create(_4,{commands:_1.commands,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawSector(_1)){_3=isc.DrawSector.create(_4,{centerPoint:_1.centerPoint,startAngle:_1.startAngle,endAngle:_1.endAngle,radius:_1.radius,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawLabel(_1)){_3=isc.DrawLabel.create(_4,{lineColor:"#CCCCCC",left:_1.left,top:_1.top,contents:_1.contents,fontSize:_1.fontSize,fontWeight:_1.fontWeight,fontStyle:_1.fontStyle,fontFamily:_1.fontFamily,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawImage(_1)){_3=isc.DrawImage.create(_4,{left:_1.left,top:_1.top,width:_1.width,height:_1.height,src:_1.src,useMatrixFilter:_1.useMatrixFilter,shapeData:_1.getShapeData()})}
  else if(isc.isA.DrawGroup(_1)){_3=isc.DrawGroup.create(_4,{left:_1.left,top:_1.top,width:_1.width,height:_1.height,shapeData:_1.getShapeData()});for(var i=0;i<_1.drawItems.length;i++){var _6=_1.drawItems[i];var _7=this.$1819(_6,_3)}}
  return _3},isc.A.hideRotateKnobs=function isc_DrawItem_hideRotateKnobs(){if(this.$1812){if(this.$1812.$1813){this.$1812.$1813.destroy();delete this.$1812.$1813}
  this.$1812.destroy();delete this.$1812}},isc.A.getResizeKnobProperties=function isc_DrawItem_getResizeKnobProperties(_1){},isc.A.showResizeKnobs=function isc_DrawItem_showResizeKnobs(){var _1=this.$638;if(_1!=null&&!_1.isEmpty())return;var _2=this.resizeKnobPoints;var _3=this.$145i,_4=0,_5=0,_6=0,_7=0;if(this.showResizeOutline||_2.length>0){_3=this.getResizeBoundingBox(null,_3);_4=_3[0];_5=_3[1];_6=_3[2];_7=_3[3]}
  if(this.showResizeOutline){var _8=this.resizeOutline=this.createAutoChild("resizeOutline",{left:_3[0],top:_3[1],width:_3[2]-_3[0],height:_3[3]-_3[1],drawPane:this.drawPane,excludeFromQuadTree:true,knobs:null,title:null,zIndex:this.getZIndex(true),$169l:true,rotation:0,xShearFactor:0,yShearFactor:0,scale:null,translate:null,exemptFromGlobalTransform:true,$1502:function(){if(isc.isA.DrawRect(this)){var _3=this.creator.getResizeBoundingBox(null,this.$145i);this.setRect(this.$1503(_3[0]),this.$1503(_3[1]),this.$1503(_3[2]-_3[0]),this.$1503(_3[3]-_3[1]))}}});this.addPeer(_8)}
  _1=this.$638=[];for(var i=0;i<_2.length;i++){var _10=_2[i];_3[0]=_4;_3[1]=_5;_3[2]=_6;_3[3]=_7;var _11=this.$636(_10,_3);if(_11==null)continue;var x=_11[0],y=_11[1];if(window.isNaN(x)||window.isNaN(y))continue;var _14=isc.addProperties({},this.getResizeKnobProperties(_10),{_constructor:"DrawKnob",point:_10,x:x,y:y,drawPane:this.drawPane,resetKnobPosition:function(){var _15=this.creator,_11=_15.$636(this.point);if(_11!=null){var x=_11[0],y=_11[1];if(!(window.isNaN(x)||window.isNaN(y))){this.setCenterPoint(x,y,false)}}},updatePoints:function(_18,_19,_20,_21,_22){return this.creator.dragResizeMove(this.point,_18,_19,_20,_21,_22)}});var _16=(_10.length==1?"sideResizeKnob":"cornerResizeKnob"),_17=this.createAutoChild(_16,_14);_1.push(_17)}},isc.A.setTitle=function isc_DrawItem_setTitle(_1){this.title=_1;delete this.$184h;this.$166z()},isc.A.$166z=function isc_DrawItem__updateTitleLabelAndBackground(){var _1=this.title,_2=this.titleLabel,_3=this.showTitleLabelBackground,_4=this.titleLabelBackground,_5=this.drawPane;if(_1==null||_5==null||!this.handleDrawn()){if(_4!=null&&!_4.destroyed&&_4.drawPane!=null)
  {_4.drawPane.removeDrawItem(_4)}
  if(_2!=null&&!_2.destroyed&&_2.drawPane!=null){_2.drawPane.removeDrawItem(_2);_2.setContents(null)}}else{if(_3){if(_4==null||_4.destroyed){_4=this.addPeer(this.createAutoChild("titleLabelBackground",{autoDraw:false,eventProxy:this,knobs:null,title:null,rotation:_7}),"titleLabelBackground")}else if(_4.drawPane!==_5){_5.addDrawItem(_4)}}else{if(_4!=null&&!_4.destroyed&&_4.drawPane!=null)
  {_4.drawPane.removeDrawItem(_4)}}
  var _6=this.titleRotationMode||isc.DrawItem.$b4.titleRotationMode,_7=null,_8=null,_9=isc.isA.DrawLine(this),_10=isc.isA.DrawLinePath(this),_11=this.$184i(_2),_12=false;if(_6!=="neverRotate"&&!_11){_7=this.rotation;if(_7==null){_7=0}
  if((_9||_10)&&(_6==="withLine"||_6==="withLineAlwaysUp"))
  {var _13,_14,_15,_16;if(_10){var _17=this.$45f;var _18=_17[1],_19=_17[2];_13=_18[0];_14=_18[1];_15=_19[0];_16=_19[1]}else{_13=this.startLeft;_14=this.startTop;_15=this.endLeft;_16=this.endTop}
  _8=-Math.atan2(-(_16-_14),_15-_13)/
  this.$125w+_7;_8=_8%360}else{_8=_7}
  if(_8<-180)_8+=360;else if(_8>180)_8-=360;if(_6==="withItemAlwaysUp"||_6==="withLineAlwaysUp")
  {if(_8>90){_8-=180;_12=true}else if(_8<-90){_8+=180;_12=true}}}
  var _20=this.titleLabelPadding,_21=2*_20;if(_2==null||_2.destroyed){if(!isc.isA.DrawPane(this.drawPane)){return}
  var _22={drawPane:_5,autoDraw:false,eventProxy:this,contents:_1};_2=this.addPeer(this.createAutoChild("titleLabel",_22),"titleLabel")}else{if(_2.drawPane!==_5){_5.addDrawItem(_2)}else if(_3&&_2.$148r<_4.$148r){_5.addDrawItem(_2)}}
  if(!_2.escapeContents&&_3){if(_4!=null&&!_4.destroyed&&_4.drawPane!=null)
  {_4.drawPane.removeDrawItem(_4)}
  _3=false}
  var _23=this.$1662(_1,_2,_5),p;if(_23.rotation!=null)_8=_7=_23.rotation;_2.setContents(_1,true);if(_7!=null){_2.rotateTo(_7);p=_2.$136i(_23.topLeftPoint[0],_23.topLeftPoint[1],"drawing","local")}else{p=_23.topLeftPoint}
  _2.$108z(this.$1503(p[0])+(!this.drawingBitmap||_23.rotation!=null?0:1),this.$1503(p[1]));if(_8!=null){_2.rotateTo(_8)}
  if(_3){var _4=this.titleLabelBackground,_25=_23.dims;if(_7!=null){_4.rotateTo(_7);p=_4.$136i(_23.topLeftPoint[0],_23.topLeftPoint[1],"drawing","local")}else{p=_23.topLeftPoint}
  _4.setRect(this.$1503(p[0])-_20,this.$1503(p[1])-_20,_25.width+_21,_25.height+_21);if(_8!=null){_4.rotateTo(_8)}}}},isc.A.$1662=function isc_DrawItem__calculateTitleLabelPositionInfo(_1,_2,_3){var _4=this.titleRotationMode||isc.DrawItem.$b4.titleRotationMode,_5,_6,p=new Array(2),_8=this.$184i(_2),_9=this.$1486("local","drawing");if(isc.isA.DrawLinePath(this)&&(_4==="withLine"||_4==="withLineAlwaysUp"))
  {var _10=this.$45f;var _11=_10[1],_12=_10[2];_6=[(_11[0]+_12[0])/2,(_11[1]+_12[1])/2]}else{_6=this.getCenter()}
  var _13={topLeftPoint:p,centerPoint:_6};if(_4!=="neverRotate"&&!_8){_5=_13.dims=_3.measureLabel(_1,_2);var _14=_5.width/2,_15=_5.height/2;_9.transform(_6[0]-_14,_6[1]-_15,p);_9.transform(_6[0],_6[1],_6);var _16=this.scale;if(_16!=null&&_16.length>=2){p[0]-=(1-_16[0])*_14;p[1]-=(1-_16[1])*_15}}else{if(_8){var _17=this.$184j();if(_17&&_17.length>0){var _18=this.$184k(_17,_1,_2,_3,_13),_19=_17[_18];_6[0]=this.$1503(_19.left+_6[0]+_19.width/2);_6[1]=this.$1503(_19.top+_6[1]+_19.height/2)}}
  _9.transform(_6[0],_6[1],_6);_5=_13.dims=_3.measureLabel(_1,_2);if(_13.rotation==isc.DrawItem.$184g){p[0]=_6[0]+_5.height/2;p[1]=_6[1]-(_5.width-0.5)/2}else{p[0]=_6[0]-(_5.width-0.5)/2;p[1]=_6[1]-_5.height/2}}
  p[0]=this.$1503(p[0]);p[1]=this.$1503(p[1]);return _13},isc.A.$113u=function isc_DrawItem__getParentRect(){var _1=this.keepInParentRect,_2=isc.isAn.Array(_1),_3=(_2&&_1[0]!=null?_1[0]:this.drawPane.$431),_4=(_2&&_1[1]!=null?_1[1]:this.drawPane.$432),_5=(_2&&_1[2]!=null?_1[2]:(this.drawPane.$431+this.drawPane.$433)),_6=(_2&&_1[3]!=null?_1[3]:(this.drawPane.$432+this.drawPane.$434));var _7=this.$135f();if(this.knobs&&this.knobs.contains("move")&&_7!=null&&(_7[0]!=0||_7[1]!=0))
  {var _8=this.getResizeBoundingBox(null,this.$145i),_9=this.$636(this.moveKnobPoint,_8);if(_9!=null&&!window.isNaN(_9[0])&&!window.isNaN(_9[1]))
  {var _10=_9[0]+_7[0],_11=_9[1]+_7[1],_12,_13;if((_13=_8[1]-_11)>0){_4+=_13}
  if((_12=_8[0]-_10)>0){_3+=_12}
  if((_13=_11-_8[3])>0){_6-=_13}
  if((_12=_10-_8[2])>0){_5-=_12}}}
  return[_3,_4,_5,_6]},isc.A.dragResizeMove=function isc_DrawItem_dragResizeMove(_1,_2,_3,_4,_5,_6){var _7=(_6=="start"),_8=(_6=="move"),_9=(_6=="stop");var _10=(this.$147m!=null);var _11;if(_7){var _12=_1.contains("L"),_13=_1.contains("R"),_14=_1.contains("T"),_15=_1.contains("B"),_16=(_14?"B":"T")+(_12?"R":"L");_11=this.$1130=this.$636(_16,null,true);this.$151l=_1}else{_11=this.$1130}
  this.$151m=_2;this.$151n=_3;var _17=null;if(_7){_17=this.getResizeBoundingBox(true,this.$145i);this.$147n=Math.round(_17[0]);this.$147o=Math.round(_17[2]);this.$147p=Math.round(_17[1]);this.$147q=Math.round(_17[3])}
  var _18=this.$147o-this.$147n,_19=this.$147q-this.$147p;var _20=0,_21=0,_22=0,_23=0,_24=0,_25=0,_26=null,_27=null;if(_10){_20=this.$147n;_21=this.$147o;_22=this.$147p;_23=this.$147q;if(_7){var _28=this.$147l();_24=this.$147r=_28.cx;_25=this.$147s=_28.cy;_26=this.$147t=this.$147m();_27=this.$147u=this.$1339(true)}else{_24=this.$147r;_25=this.$147s;_26=this.$147t;_27=this.$147u}}else{if(!_7){_17=this.getResizeBoundingBox(true,this.$145i)}
  _20=Math.round(_17[0]);_21=Math.round(_17[2]);_22=Math.round(_17[1]);_23=Math.round(_17[3]);var _28=this.$147l();_24=_28.cx;_25=_28.cy;_27=this.$1339(true)}
  var _29=_21-_20,_30=_23-_22;var _31=0,_32=0,_33=0,_34=0;if(_1=="L"||_1=="R"){_32=_22;_34=_23;_31=Math.min(_11[0],_2);_33=Math.max(_11[0],_2)}else if(_1=="T"||_1=="B"){_31=_20;_33=_21;_32=Math.min(_11[1],_3);_34=Math.max(_11[1],_3)}else{_31=Math.min(_11[0],_2);_32=Math.min(_11[1],_3);_33=Math.max(_11[0],_2);_34=Math.max(_11[1],_3)}
  var _35=(_33-_31),_36=(_34-_32);if(_9){delete this.$1130;delete this.$151l;delete this.$151m;delete this.$151n}
  if(this.keepInParentRect){var _37=this.$113u();_31=Math.max(_31,_37[0]);_32=Math.max(_32,_37[1]);_33=Math.min(_33,_37[2]);_34=Math.min(_34,_37[3]);_35=_33-_31;_36=_34-_32}
  if(this.$151o&&_18!=0&&_19!=0&&!(_1=="L"||_1=="R"||_1=="T"||_1=="B"))
  {var _38=(_35/_18),_39=(_36/_19);if(_38<_39){var _40=(_36-_38*_19);if(_32==_11[1]){_34-=_40}else if(_34==_11[1]){_32+=_40}
  _36=_34-_32}else if(_39<_38){var _41=(_35-_39*_18);if(_31==_11[0]){_33-=_41}else if(_33==_11[0]){_31+=_41}
  _35=_33-_31}}
  var _42=(Math.abs(_35)<1||Math.abs(_36)<1);if(!_9&&!_42){this.$1131=_31;this.$1132=_32;this.$1133=_35;this.$1134=_36}
  if(_9&&_42){if(this.$1131!=null){_31=this.$1131;_32=this.$1132;_35=this.$1133;_36=this.$1134}else{return false}}
  if(_9){delete this.$1131;delete this.$1132;delete this.$1133;delete this.$1134;delete this.$147n;delete this.$147o;delete this.$147p;delete this.$147q;if(_10){delete this.$147r;delete this.$147s;delete this.$147t;delete this.$147u}}
  if(_7){if(this.onDragResizeStart(_31,_32,_35,_36)===false){return false}}else if(_8){if(this.onDragResizeMove(_31,_32,_35,_36)===false){return false}}
  var _33=_31+_35,_34=_32+_36;this.$147v(_20,_22,_21,_23,_24,_25,_26,_27,true,_31,_32,_33,_34);if(_9)this.onDragResizeStop(_31,_32,_35,_36);return true});isc.evalBoundary;isc.B.push(isc.A.$151k=function isc_DrawItem__checkProportionalResizing(){var _1=this.$151u,_2=this.$151j();if(_1==_2){return}
  if(_1=="none"){if(_2=="always"){this.$151p(this)}else{var _3=(_2=="modifierOff"),_4=this.$151p,_5=this.$151q;if(_3){_4=this.$151q;_5=this.$151p}
  var _6=isc.Page.$151i(this.proportionalResizeModifiers);if(_6!=_3){this.$151p(this)}
  isc.Page.$151f(this.proportionalResizeModifiers,isc.Page.$1511,_4,_5,this)}}else{this.$151q(this);if(_1!="always"){isc.Page.$151h(this.proportionalResizeModifiers,isc.Page.$1511,this)}}
  this.$151u=_2},isc.A.$151p=function isc_DrawItem__enableProportionalResizing(_1){if(!_1.$151o){_1.$151o=true;if(_1.$1130!=null){_1.dragResizeMove(_1.$151l,_1.$151m,_1.$151n,0,0,"move")}}},isc.A.$151q=function isc_DrawItem__disableProportionalResizing(_1){if(_1.$151o){_1.$151o=false;if(_1.$1130!=null){_1.dragResizeMove(_1.$151l,_1.$151m,_1.$151n,0,0,"move")}}},isc.A.$147v=function isc_DrawItem__setResizeBoundingBox(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(_10>_12){var _14=_10;_10=_12;_12=_14}
  if(_11>_13){var _14=_11;_11=_13;_13=_14}
  var _15=_3-_1,_16=_12-_10;var _17=_4-_2,_18=_13-_11;if(_15==0&&_16!=0||_15!=0&&_16==0||_17==0&&_18!=0||_17!=0&&_18==0)
  {this.logWarn("A bounding box with a valid width and height cannot be resized so that one or both are zero, and a resize of a bounding box with a zero width or height must preserve the zero width or height.  Ignoring attempt ro resize: "+[_1,_2,_3,_4]+" => "+[_10,_11,_12,_13]);return}
  var _19=_15?_16/_15:1,_20=_17?_18/_17:1,_21=_10-_19*_1,_22=_11-_20*_2;var _23=isc.AffineTransform.create(_19,0,_21,0,_20,_22);if(this.exemptFromGlobalTransform){var _24=this.drawPane.scrollLeft,_25=this.drawPane.scrollTop;_23.preTranslate(-_24,-_25);_23.translate(_24,_25)}else if(this.drawPane!=null){var g=this.drawPane.$1338(),_27=this.drawPane.$147h();_23.leftMultiply(_27);_23.rightMultiply(g)}
  var _28=this.$179i(_1,_2,_10,_11,_19,_20,_8,_5,_6);_23.rightMultiply(_8);this.$147w(_23,_5,_6,_7,true,this.resizeViaLocalTransformOnly,_9,_28);if(_1!=_10||_2!=_11){this.$105u(this.$1503(_10-_1),this.$1503(_11-_2))}
  if((_3-_1)!=(_12-_10)||(_4-_2)!=(_13-_11))
  {this.$5y()}},isc.A.$179i=function isc_DrawItem__getSimpleNewCenter(_1,_2,_3,_4,_5,_6,_7,_8,_9){var _10=this.drawPane;if(!_10||_10.rotation)return null;if(!this.useSimpleTransform||!this.$179j||this.masterElement){return null}
  var _11=_7.transform(_8,_9);return{cx:_5*(_11[0]-_1)+_3,cy:_6*(_11[1]-_2)+_4}},isc.A.$147w=function isc_DrawItem__updateLocalTransform(_1,_2,_3,_4,_5,_6){var _7=isc.AffineTransform.$145r(_1,_2,_3),_8=this.translate=this.translate||new Array(2),_9=this.scale=this.scale||new Array(2);_8[0]=_7.dx;_8[1]=_7.dy;_9[0]=_7.sx;_9[1]=_7.sy;this.xShearFactor=_7.kx;this.yShearFactor=_7.ky;this.rotation=_7.theta*180/Math.PI;this.$1348=null;var t=this.$1339();if(this.drawingVML){this.$154s.setProperty("transform",t)}
  if(_5){if(this.drawingVML){this.$154s.flush()}else if(this.drawingSVG&&!isc.isA.DrawGroup(this)){this.$44z.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()}},isc.A.$147x=function isc_DrawItem__updateRotationCenter(_1,_2,_3,_4){var _5=0,_6=0,_7=1,_8=1,_9=this.xShearFactor||0,_10=this.yShearFactor||0,_11=0;if(this.translate!=null){_5=this.translate[0];_6=this.translate[1]}
  if(this.scale&&this.scale.length===2){_7=this.scale[0];_8=this.scale[1]}
  if(this.rotation!=null){_11=this.rotation*this.$125w}
  if(_7!=0&&_8!=0){var _12=_7*_8,_13=(_5*_8-_6*_7*_9)/_12,_14=(_6*_7*(_9*_10+1)-_5*_8*_10)/_12;var _15=Math.cos(_11),_16=Math.sin(_11),_17=_13+(1-_15)*(_1-_3)+_16*(_2-_4),_18=_14-_16*(_1-_3)+(1-_15)*(_2-_4);var _19=_7*((_9*_10+1)*_17+_9*_18),_20=_8*(_10*_17+_18);var _21=this.translate=this.translate||new Array(2);_21[0]=_19;_21[1]=_20}},isc.A.onDragResizeStart=function isc_DrawItem_onDragResizeStart(_1,_2,_3,_4){},isc.A.onDragResizeMove=function isc_DrawItem_onDragResizeMove(_1,_2,_3,_4){},isc.A.onDragResizeStop=function isc_DrawItem_onDragResizeStop(_1,_2,_3,_4){},isc.A.hideResizeKnobs=function isc_DrawItem_hideResizeKnobs(){if(this.$638){this.$638.callMethod("destroy");delete this.$638}
  if(this.resizeOutline){this.resizeOutline.destroy();delete this.resizeOutline}},isc.A.updateControlKnobs=function isc_DrawItem_updateControlKnobs(){if(this.$637){var _1=this.$636(this.moveKnobPoint),x=_1[0],y=_1[1],_4=this.$135f();if(_4){x+=_4[0];y+=_4[1]}
  this.$637.setCenterPoint(x,y,false)}
  if(this.$638){for(var i=0;i<this.$638.length;i++){var _6=this.$638[i],_1=this.$636(_6.point);_6.setCenterPoint(_1[0],_1[1],false)}}
  if(this.$1812){var _7=this,_8=_7.$636("T");if(_8!=null){var x=_8[0],y=_8[1];if(!(window.isNaN(x)||window.isNaN(y))){this.$1812.setCenterPoint(x,y-_7.getRotateKnobOffset(),false);if(this.$1812.$1813!=null){this.$1812.$1813.setStartPoint(Math.round(x),Math.round(y-_7.getRotateKnobOffset()));this.$1812.$1813.setEndPoint(Math.round(x),Math.round(y))}}}}
  if(this.resizeOutline){var _9=this.getResizeBoundingBox(null,this.$145i);this.resizeOutline.setRect(this.$1503(_9[0]),this.$1503(_9[1]),this.$1503(_9[2]-_9[0]),this.$1503(_9[3]-_9[1]))}},isc.A.setDrawPane=function isc_DrawItem_setDrawPane(_1){if(_1==this.drawPane)return;if(_1==null){this.erase();this.drawPane=null;return}
  _1.addDrawItem(this)},isc.A.$63r=function isc_DrawItem__drawLineStartArrow(){return false},isc.A.$63s=function isc_DrawItem__drawLineEndArrow(){return false},isc.A.$1136=function isc_DrawItem__intersectLineSegmentBox(_1,_2,_3){var _4=new Array(2);_4[0]=1/(_4[1]=(_2[1]-_1[1])/(_2[0]-_1[0]));for(var m=0;m<4;++m){var k=m%2,l=(k+1)%2,s=(m<2?-1:1),_9=_3[s+1+k];var _10=!(s*_1[k]>s*_9),_11=!(s*_2[k]>s*_9);if(!_11&&_10){_2[k]=_9;_2[l]=_1[l]+(_9-_1[k])*_4[l]}else if(!(_11||_10)){return null}}
  return _2},isc.A.erase=function isc_DrawItem_erase(_1,_2){if(!_1){if(_2){if(!this.drawPane.$993)this.drawPane.$993=[this];else this.drawPane.$993.add(this)}
  if(this.drawGroup){this.drawGroup.drawItems.remove(this)}else if(this.drawPane){if(this.drawPane.drawItems)this.drawPane.drawItems.remove(this);if(this.item!=null){this.drawPane.quadTree.remove(this.item);delete this.item}}}
  this.clear(_1,_2);if(this.knobs&&this.drawPane!=null){for(var i=0;i<this.knobs.length;i++){this.$635(this.knobs[i])}}
  var _4=this.titleLabel,_5=this.titleLabelBackground;if(_4!=null){if(this.destroying){_4.destroy(_1);if(_5!=null)_5.destroy(_1)}else{if(!_4.destroyed&&_4.drawPane!=null){_4.drawPane.removeDrawItem(_4);_4.setContents("",true)}
  if(_5!=null&&!_5.destroyed&&_5.drawPane!=null)
  {_5.drawPane.removeDrawItem(_5)}}}
  var _6=this.drawPane||this.$1504();if(_6){if(this.exemptFromGlobalTransform){_6.$150v.remove(this)}
  if(_6.hasOwnZIndices)this.zIndex=null}
  this.drawGroup=null;this.drawPane=null},isc.A.clear=function isc_DrawItem_clear(_1,_2){if(!this.$if){var _3=this.drawPane;if(_3!=null&&_3.cancelDeferredDraw(this))return;this.logInfo("DrawItem not yet drawn - exiting clear()");return}
  if(this.drawingVML){var _4=this.$125f();if(_4!=null){if(isc.Page.isLoaded()){isc.Log.logDebug("Page is loaded when erasing vml drawItem "+this.ID+" - clearing outerHTML (drawPane is "+this.drawPane.ID+")","drawing");_4.outerHTML=""}else{var _5=(isc.isA.DrawLabel(this)&&!(this.synchTextMove||this.useTextpath)),_6;if(_5){_6=this.drawPane.getHandle()}else if(this.drawGroup!=null&&this.drawGroup.renderGroupElement){_6=this.drawGroup.$125f()}else{_6=isc.Element.get(this.drawPane.getID()+"$435")}
  isc.Log.logDebug("Page is not loaded when eraseing vml drawItem "+this.ID+" - removing vmlHandle from vmlContainer  (drawPane is "+this.drawPane.ID+")","drawing");_6.removeChild(_4)}}
  this.$44t=null;this.$44u=null;this.$44w=null;this.$44x=null;this.$44j=null;this.$154s=null;this.drawingVML=false}else if(this.drawingSVG){var _7=this.$44z;if(_2)this.$999=_7;else if(_7!=null){var _8;if(this.drawGroup!=null&&this.drawGroup.renderGroupElement){_8=this.drawGroup.$44z}else{_8=this.$44y}
  _8.removeChild(_7)}
  this.$44m=null;this.$44y=null;this.$44z=null;this.drawingSVG=false}else if(this.drawingBitmap){if(!_1){this.drawPane.redrawBitmap()}else{}
  this.drawingBitmap=false}
  this.$113c();this.$if=false},isc.A.destroy=function isc_DrawItem_destroy(_1){if(this.destroyed)return;this.destroying=true;this.erase(_1);isc.ClassFactory.dereferenceGlobalID(this);this.$151k();delete this.destroying;this.destroyed=true;this.Super("destroy",arguments)},isc.A.$44v=function isc_DrawItem__getElementVML(_1,_2,_3){var _4=this.drawPane.$1523;_4.buffer=_1;this.$154t(_4,_2,_3)},isc.A.$125h=function isc_DrawItem__hasStroke(){return this.lineOpacity!=0&&!!this.lineColor},isc.A.$125k=function isc_DrawItem__hasFill(){return this.fillOpacity!=0&&(this.fillGradient!=null||this.fillColor!=null)},isc.A.$125f=function isc_DrawItem__getVMLHandle(){if(isc.isA.DrawLabel(this)){if(this.$44u!=null)return this.$44u;return(this.$44u=isc.Element.get("isc_DrawItem_"+this.drawItemID))}else{return this.$154s&&this.$154s.getHandle()}},isc.A.$154t=function isc_DrawItem__renderVML(_1,_2,_3){},isc.A.$1620=function isc_DrawItem__getSvgHandleID(){var _1=this.drawPane;return _1&&(_1.$162q?"isc_DrawItem_"+this.drawItemID:this.getID()+"_handle")},isc.A.$162z=function isc_DrawItem__getSvgHandle(){var _1=this.$44m;return _1&&_1.getElementById(this.$1620())},isc.A.$169a=function isc_DrawItem__getEventProxyAttribute(){var _1;if(this.excludeFromQuadTree){_1=this.drawPane}else{_1=this.eventProxy;if(_1==null)_1=this;if(isc.isA.DrawItem(_1)){var _2=null;for(var _3=this.drawGroup;_3!=null;_3=_3.drawGroup){if(_3.useGroupRect){_2=_3}}
  if(_2!=null)_1=_2}}
  return this.$of+"='"+_1.ID+"'"},isc.A.getSvgString=function isc_DrawItem_getSvgString(_1){_1=_1||isc.SVGStringConversionContext.create();var _2=_1.defSvgStrings||(_1.defSvgStrings={});var _3=(this.lineColor?this.lineColor:"none"),_4=this.fillOpacity,_5="none";var _6=this.fillGradient;if(isc.isAn.Object(isc.isA.String(_6)?_6=this.drawPane.getGradient(_6):_6))
  {var _7=_6[_1.gradientIdProperty];if(_1.printForExport===false){_7=this.drawPane.addGradient(_6)}else if(_7==null){_7=_6[_1.gradientIdProperty]=_1.getNextSvgDefID()}
  var _8=this.drawPane.$162l(_7,_6,_1,this);var _9=_1.useGradientIDs[this.ID];_2[_9]=_8;_5="url(#"+_9+")"}else if(this.fillColor){_5=this.fillColor}else if(this.eventOpaque){_5="white";_4=0}
  var _10="<"+this.svgElementName;var _11=this.$1620();if(_11!=null){_10+=" id='"+_11+"'"}
  if(!_1.printForExport){_10+=" "+this.$169a()}
  var _12=this.getCurrentCursor();if(_12!=null){_10+=" cursor='"+_12+"'"}
  _10+=(" stroke='"+_3+"' stroke-width='"+this.lineWidth+"px' stroke-opacity='"+this.lineOpacity+"' stroke-dasharray='"+this.$441()+"'");if(!this.$165u()){_10+=" stroke-linecap='"+this.lineCap+"'"}
  _10+=(" fill='"+_5+"' fill-opacity='"+_4);if(this.svgFilter!=null&&this.drawPane){var _13=_2[this.svgFilter];if(!_13){_13=_2[this.svgFilter]=this.drawPane.$99f(this.svgFilter)}
  if(_13){_10+="' filter='url(#"+this.svgFilter+")"}}else if(this.shadow){var _14=this.$169m();if(!_2[_14]){_2[_14]=this.$169n(_14,this.shadow)}
  _10+="' filter='url(#"+_14+")"}
  var _15=true,_16=this.translate,_17=this.scale,_18=this.xShearFactor,_19=this.yShearFactor,_20=this.rotation,_21=_20&&this.$147l();if(_16){_10+=((_15?"' transform='":" ")+"translate("+_16[0]+" "+_16[1]+")");_15=false}
  if(_17&&_17.length===2){_10+=((_15?"' transform='":" ")+"scale("+_17[0]+" "+_17[1]+")");_15=false}
  if(_18){_10+=((_15?"' transform='":" ")+"skewX("+Math.atan(_18)+")");_15=false}
  if(_19){_10+=((_15?"' transform='":" ")+"skewY("+Math.atan(_19)+")")}
  if(_20&&_21&&_21.cx!==null&&_21.cy!==null){_10+=((_15?"' transform='":" ")+"rotate("+_20+" "+_21.cx+" "+_21.cy+")")}
  if(this.$1627()){var _22=this.startArrow;if(_22&&!this.$63r()){var _23=this.$442();if(!_2[_23]){_2[_23]=this.$99g(_23,_3,this.lineOpacity,true,_22)}
  _10+="' marker-start='url(#"+_23+")"}
  var _24=this.endArrow;if(_24&&!this.$63s()){var _25=this.$443();if(!_2[_25]){_2[_25]=this.$99g(_25,_3,this.lineOpacity,false,_24)}
  _10+="' marker-end='url(#"+_25+")"}}
  _10+="' "+this.getAttributesSVG()+">";if(this.contents){_10+=isc.makeXMLSafe(this.contents)}
  _10+="</"+this.svgElementName+">";return _10},isc.A.$1627=function isc_DrawItem__supportsSvgMarkers(){return this.svgElementName in this.$1626},isc.A.getAttributesSVG=function isc_DrawItem_getAttributesSVG(){return""},isc.A.$830=function isc_DrawItem__normalizeLinearGradient(_1){return isc.DrawItem.$830(_1,this.getBoundingBox())},isc.A.$831=function isc_DrawItem__normalizeRadialGradient(_1){return isc.DrawItem.$831(_1,this.getBoundingBox(),this.getCenter())},isc.A.$85x=function isc_DrawItem__drawLinePattern(_1,_2,_3,_4,_5){var _6=this.$185c(),_7=_6.length,_8=(_3-_1),_9=(_4-_2),_10=isc.Math.$101k(_8,_9),_11=_10,_12=0,_13=true;this.bmMoveTo(_1,_2,_5);while(_11>=0.1){var _14=Math.min(_6[_12++%_7],_11);_1+=_8*_14/_10;_2+=_9*_14/_10;this[_13?'bmLineTo':'bmMoveTo'](_1,_2,_5);_11-=_14;_13=!_13}},isc.A.$185c=function isc_DrawItem__getDashArray(){switch(this.linePattern.toLowerCase()){case"solid":return isc.DrawItem.$1846;case"dot":return isc.DrawItem.$1847;case"dash":return isc.DrawItem.$1848;case"longdash":return isc.DrawItem.$1849;case"shortdot":return isc.DrawItem.$185a;default:case"shortdash":return isc.DrawItem.$185b}},isc.A.drawStroke=function isc_DrawItem_drawStroke(_1){_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_1.strokeStyle=this.lineColor;_1.globalAlpha=this.lineOpacity;if(_1.setLineDash)_1.setLineDash(this.$185c());_1.beginPath();this.drawBitmapPath(_1);_1.stroke()},isc.A.drawBitmap=function isc_DrawItem_drawBitmap(_1){_1.save();try{var t=this.$1339();_1.transform(t.m00,t.m10,t.m01,t.m11,t.m02,t.m12);if(this.shadow){_1.shadowColor=this.shadow.color;_1.shadowBlur=this.shadow.blur;_1.shadowOffsetX=this.shadow.offset[0];_1.shadowOffsetY=this.shadow.offset[1]}
  if(this.$125k()){var _3=this.fillColor,_4=(typeof(this.fillGradient)==='string'?this.drawPane.getGradient(this.fillGradient):this.fillGradient);if(_4!=null){var _5,_6;if(isc.DrawItem.$135h(_4)||isc.DrawItem.$135i(_4)){_5=this.$830(_4);_3=_1.createLinearGradient(_5[0],_5[1],_5[2],_5[3])}else{_5=this.$831(_4);_3=_1.createRadialGradient(_5[0],_5[1],_5[2],_5[3],_5[4],_5[5])}
  if(_4.startColor&&_4.endColor){_3.addColorStop(0.0,_4.startColor);_3.addColorStop(1.0,_4.endColor)}else if(_4.colorStops&&_4.colorStops.length){for(var i=0;i<_4.colorStops.length;++i){_6=_4.colorStops[i].offset;if(typeof(_6)==='string'&&_6.endsWith('%')){_6=parseFloat(_6.substring(0,_6.length-1))/100.0}
  _3.addColorStop(_6,_4.colorStops[i].color)}}}
  _1.fillStyle=_3;_1.globalAlpha=this.fillOpacity;_1.beginPath();var _8=this.linePattern;this.linePattern="solid";try{this.drawBitmapPath(_1)}finally{this.linePattern=_8}
  _1.fill()}
  if(this.$125h()){if(this.shadow&&_3){_1.shadowColor=null;_1.shadowBlur=null;_1.shadowOffsetX=0;_1.shadowOffsetY=0}
  this.drawStroke(_1)}}catch(e){if(!isc.Log.supportsOnError)this.$am(e);else this.logWarn("exception during drawBitmap(): "+e)}finally{_1.restore()}},isc.A.$169m=function isc_DrawItem__getSVGShadowFilterID(){return"isc_DrawItem_"+this.drawItemID+"_shadowFilter"},isc.A.$169n=function isc_DrawItem__getShadowFilterSvgString(_1,_2){var _3=isc.isA.Number(_2.blur)?_2.blur:10,_4=isc.DrawItem.$169k(_2.color),_5=_2.offset||[0,0];_3=Math.max(0,_3);var _6=("<filter id='"+_1+"' x='-1000%' y='-1000%' width='2100%' height='2100%' color-interpolation-filters='sRGB'><feOffset result='offOut' in='SourceGraphic' dx='"+_5[0]+"' dy='"+_5[1]+"'></feOffset><feColorMatrix result='cmatOut' in='offOut' type='matrix' values='0 0 0 0 "+_4[0]+" 0 0 0 0 "+_4[1]+" 0 0 0 0 "+_4[2]+" 0 0 0 "+_4[3]+" 0'></feColorMatrix>");var _7;if(_3>0){_6+="<feGaussianBlur result='blurOut' in='cmatOut' stdDeviation='"+(_3/2)+"'></feGaussianBlur>";_7="blurOut"}else{_7="cmatOut"}
  _6+=("<feBlend in='SourceGraphic' in2='"+_7+"' mode='normal'></feBlend></filter>");return _6},isc.A.$442=function isc_DrawItem__getSVGStartArrowID(){return"isc_DrawItem_"+this.drawItemID+"$446"},isc.A.$443=function isc_DrawItem__getSVGEndArrowID(){return"isc_DrawItem_"+this.drawItemID+"$45a"},isc.A.$99g=function isc_DrawItem__getArrowMarkerSvgString(_1,_2,_3,_4,_5){var _6=this.lineWidth,_7=5+_6,_8=2*_7,_9=0.75*_6,_10=_7+_9,_11=_8+_9,_12=1.5*_6,_13=_7+_12,_14=_8+_12;var _15=("<marker id='"+_1+"' markerUnits='userSpaceOnUse' orient='auto' markerWidth='"+_13+"' markerHeight='"+_14);if(_5==="open"){var _16;if(this.lineCap==="square"){_16=(_4?_12:_7)}else{_16=(_4?_9:_10)}
  _15+=("' refX='"+_16+"' refY='"+_10+"'><polyline stroke-dasharray='9999px' stroke-width='"+_6+"px' stroke-opacity='"+_3+"' stroke-linecap='"+this.lineCap+"' stroke='"+_2+"' fill='none' points='"+(_4?_10+" "+_9+" "+_9+" "+_10+" "+_10+" "+_11:_9+" "+_9+" "+_10+" "+_10+" "+_9+" "+_11)+"'></polyline>")}else{var _16;if(this.lineCap==="square"){_16=(_4?_12+_9:_7-_9)}else{_16=(_4?_12:_7)}
  _15+=("' refX='"+_16+"' refY='"+_10+"'><polygon stroke='none' fill='"+_2+"' fill-opacity='"+_3+"' points='"+(_4?_13+" 0 "+_9+" "+_10+" "+_13+" "+_14:"0 0 "+_10+" "+_10+" 0 "+_14)+"'></polygon>")}
  _15+="</marker>";return _15},isc.A.$1629=function isc_DrawItem__regenerateSvgMarkers(_1,_2){var _3=this.drawPane,_4=_3.$162e.defSvgStrings,_5=(this.lineColor?this.lineColor:"none"),_6="";var _7=this.startArrow;if(!_1&&_7&&!this.$63r()){var _8=this.$442(),_9=this.$44m.getElementById(_8);_9.parentNode.removeChild(_9);_6+=(_4[_8]=this.$99g(_8,_5,this.lineOpacity,true,_7))}
  var _10=this.endArrow;if(!_2&&_10&&!this.$63s()){var _11=this.$443(),_12=this.$44m.getElementById(_11);_12.parentNode.removeChild(_12);_6+=(_4[_11]=this.$99g(_11,_5,this.lineOpacity,false,_10))}
  if(_6!=""){_3.$162k(_6)}},isc.A.show=function isc_DrawItem_show(){if(!this.hidden)return;this.hidden=false;if(this.drawingVML){if(isc.isA.DrawLabel){this.$125f().style.visibility="visible"}else{this.$154s.setProperty("visibility","visible").flush()}}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"visibility","visible")}else if(this.drawingBitmap){if(this.$45c)this.$45c.show();else this.drawPane.redrawBitmap()}
  if(this.titleLabel)this.titleLabel.show();if(this.titleLabelBackground)this.titleLabelBackground.show()},isc.A.hide=function isc_DrawItem_hide(){if(this.hidden)return;this.hidden=true;if(this.drawingVML){if(isc.isA.DrawLabel(this)){this.$125f().style.visibility="hidden"}else{this.$154s.setProperty("visibility","hidden").flush()}}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"visibility","hidden")}else if(this.drawingBitmap){if(this.$45c)this.$45c.hide();else this.drawPane.redrawBitmap()}
  if(this.titleLabel)this.titleLabel.hide();if(this.titleLabelBackground)this.titleLabelBackground.hide()},isc.A.setLineWidth=function isc_DrawItem_setLineWidth(_1,_2){if(_1==null||(!_2&&this.lineWidth==_1))return;this.lineWidth=_1;if(this.drawingVML){this.$44l(_1*this.drawPane.zoomLevel)}else if(this.drawingSVG){var _3=this.$44z;_3.setAttributeNS(null,"stroke-width",_1+"px");_3.setAttributeNS(null,"stroke-dasharray",this.$441());if(this.$1627()){this.$1629()}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.$44l=function isc_DrawItem__setLineWidthVML(_1){this.$154s.setProperty("lineWidth",_1).flush()},isc.A.setLineColor=function isc_DrawItem_setLineColor(_1){this.lineColor=_1;if(this.drawingVML){this.$154s.setProperty("lineColor",_1).setProperty("stroked",this.$125h()).flush()}else if(this.drawingSVG){if(!_1)_1="none";this.$44z.setAttributeNS(null,"stroke",_1);if(this.$1627()){var _2=this.startArrow;if(_2&&!this.$63r()){var _3=this.$44m.getElementById(this.$442());if(_2==="open"){_3.setAttributeNS(null,"stroke",_1)}else{_3.setAttributeNS(null,"fill",_1)}}
  var _4=this.endArrow;if(_4&&!this.$63s()){var _5=this.$44m.getElementById(this.$443());if(_2==="open"){_5.setAttributeNS(null,"stroke",_1)}else{_5.setAttributeNS(null,"fill",_1)}}}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setLineOpacity=function isc_DrawItem_setLineOpacity(_1){if(_1==null)return;this.lineOpacity=_1;if(this.drawingVML){this.$154s.setProperty("lineOpacity",_1).setProperty("stroked",this.$125h()).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"stroke-opacity",_1);if(this.$1627()){var _2=this.startArrow;if(_2&&!this.$63r()){var _3=this.$44m.getElementById(this.$442());if(_2==="open"){_3.setAttributeNS(null,"stroke-opacity",_1)}else{_3.setAttributeNS(null,"fill-opacity",_1)}}
  var _4=this.endArrow;if(_4&&!this.$63s()){var _5=this.$44m.getElementById(this.$443());if(_2==="open"){_5.setAttributeNS(null,"stroke-opacity",_1)}else{_5.setAttributeNS(null,"fill-opacity",_1)}}}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setLinePattern=function isc_DrawItem_setLinePattern(_1){if(_1==null)return;this.linePattern=_1;if(this.drawingVML){this.$154s.setProperty("linePattern",_1).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"stroke-dasharray",this.$441())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.$441=function isc_DrawItem__getSVGDashArray(){var _1=this.linePattern;if(!_1||_1=="solid"||_1=="")return"none";if(isc.isAn.Array(_1))return _1.join("px,")+"px";var _2=this.$44r[_1];var _3=this.$44s[_1];if(this.lineCap!="butt"){_2=Math.max(0.1,_2-1);_3++}
  return(_2*this.lineWidth)+"px,"+(_3*this.lineWidth)+"px"},isc.A.setLineCap=function isc_DrawItem_setLineCap(_1){if(_1==null)return;this.lineCap=_1;if(this.drawingVML){_1=(this.lineCap==isc.VMLRenderer.$125o?isc.VMLRenderer.$125p:_1);this.$154s.setProperty("lineCap",_1).flush()}else if(this.drawingSVG){var _2=this.$44z;_2.setAttributeNS(null,"stroke-linecap",_1);_2.setAttributeNS(null,"stroke-dasharray",this.$441());if(this.$1627()){this.$1629()}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setShadow=function isc_DrawItem_setShadow(_1){this.shadow=_1;if(this.drawingVML){this.$154s.setProperty("shadow",_1).flush()}else if(this.drawingSVG){var _2=this.$169m();var _3=this.$44m.getElementById(_2);if(_3!=null)_3.parentNode.removeChild(_3);var _4=this.drawPane.$162e.defSvgStrings;delete _4[_2];if(_1==null){this.$44z.removeAttributeNS(null,"filter")}else{var _5=_4[_2]=this.$169n(_2,_1);this.drawPane.$162k(_5);this.$44z.setAttributeNS(null,"filter","url(#"+_2+")")}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.supportsStartArrow=function isc_DrawItem_supportsStartArrow(){return this.getClass().isMethodSupported("setStartArrow")},isc.A.setStartArrow=function isc_DrawItem_setStartArrow(_1){var _2=this.$63r();var _3;if(_1!==_3)this.startArrow=_1;else _1=this.startArrow;var _4=this.$63r();if(_2!=_4){this.setStartPoint(this.startPoint)}
  if(_4)_1=null;if(this.drawingVML){this.$154s.setProperty("startArrow",(_1?_1:isc.VMLRenderer.$27r)).flush()}else if(this.drawingSVG){if(this.$1627()){this.$1629(false,true)}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.supportsEndArrow=function isc_DrawItem_supportsEndArrow(){return this.getClass().isMethodSupported("setEndArrow")},isc.A.setEndArrow=function isc_DrawItem_setEndArrow(_1){var _2=this.$63s();var _3;if(_1!==_3)this.endArrow=_1;else _1=this.endArrow;var _4=this.$63s();if(_2!=_4){this.setEndPoint(this.endPoint)}
  if(_4)_1=null;if(this.drawingVML){this.$154s.setProperty("endArrow",(_1?_1:isc.VMLRenderer.$27r)).flush()}else if(this.drawingSVG){if(this.$1627()){this.$1629(true,false)}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.moveBy=function isc_DrawItem_moveBy(_1,_2){var _3=this.$147l(),_4=_3.cx,_5=_3.cy,_6=this.getResizeBoundingBox(true,this.$145i);this.$147v(_6[0],_6[1],_6[2],_6[3],_4,_5,(this.$147m?this.$147m():null),this.$1339(true),true,_6[0]+_1,_6[1]+_2,_6[2]+_1,_6[3]+_2)},isc.A.moveTo=function isc_DrawItem_moveTo(_1,_2){var _3=this.$147l(),_4=_3.cx,_5=_3.cy,_6=this.getResizeBoundingBox(true,this.$145i),_7=_1==null?0:_1-_6[0],_8=_2==null?0:_2-_6[1];if(Math.abs(_7)>=0.00001||Math.abs(_8)>=0.00001)
  {this.$147v(_6[0],_6[1],_6[2],_6[3],_4,_5,(this.$147m?this.$147m():null),this.$1339(true),true,_6[0]+_7,_6[1]+_8,_6[2]+_7,_6[3]+_8)}},isc.A.setCenterPoint=function isc_DrawItem_setCenterPoint(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  var _3=this.getCenter();this.$147y(_1,_2,_3[0],_3[1])},isc.A.$147y=function isc_DrawItem__movePointToPoint(_1,_2,_3,_4){var v=this.$136i(_3,_4,"local","global"),_6=this.$1503(_1==null?0:_1-v[0]),_7=this.$1503(_2==null?0:_2-v[1]);if(!(_6==0&&_7==0)){this.moveBy(_6,_7)}},isc.A.resizeBy=function isc_DrawItem_resizeBy(_1,_2){var _3=this.$147l(),_4=_3.cx,_5=_3.cy,_6=this.getResizeBoundingBox(true,this.$145i);this.$147v(_6[0],_6[1],_6[2],_6[3],_4,_5,(this.$147m?this.$147m():null),this.$1339(true),true,_6[0],_6[1],_6[2]+_1,_6[3]+_2)},isc.A.resizeTo=function isc_DrawItem_resizeTo(_1,_2){var _3=this.$147l(),_4=_3.cx,_5=_3.cy,_6=this.getResizeBoundingBox(true,this.$145i),_7=0,_8=0;if(_1!=null){_7=_1-(_6[2]-_6[0])}
  if(_2!=null){_8=_2-(_6[3]-_6[1])}
  this.$147v(_6[0],_6[1],_6[2],_6[3],_4,_5,(this.$147m?this.$147m():null),this.$1339(true),true,_6[0],_6[1],_6[2]+_7,_6[3]+_8)},isc.A.rotateBy=function isc_DrawItem_rotateBy(_1){if(Math.abs(_1%360)<0.00001)return;var _2=this.$1486("local","drawing"),_3=this.$147l(),_4=_3.cx,_5=_3.cy,v=_2.transform(_4,_5),r=this.$1339(true).duplicate().rightMultiply(_2.getInverse()).rotate(_1,v[0],v[1]).rightMultiply(_2);this.$147w(r,_4,_5,null,true,true)});isc.evalBoundary;isc.B.push(isc.A.rotateTo=function isc_DrawItem_rotateTo(_1){var _2=this.$1486("local","drawing"),_3=isc.AffineTransform.$145r(_2,0,0).theta,_4=_3*180/Math.PI;this.rotateBy(_1-_4)},isc.A.$1586=function isc_DrawItem__redrawAfterModifyingLocalTransform(){this.$1348=null;if(this.drawingVML){if(this.$154s!=null){this.$154s.setProperty("transform",this.$1339()).flush()}else if(isc.isA.DrawLabel(this)){var _1=this.drawPane;this.erase();_1.addDrawItem(this)}}else if(this.drawingSVG){var t=this.$1339();this.$44z.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.scaleBy=function isc_DrawItem_scaleBy(_1,_2){var _3=this.$147l(),_4=_3.cx,_5=_3.cy,_6=this.$1486("local","drawing"),s=this.$1339(true).duplicate().rightMultiply(_6.getInverse()).scale(_1,_2).rightMultiply(_6);this.$147w(s,_4,_5,null,true,true)},isc.A.scaleTo=function isc_DrawItem_scaleTo(_1,_2){var _3=this.scale;if(_3==null){_3=this.scale=new Array(2)}
  _3[0]=_1;_3[1]=_2;this.$1586()},isc.A.setFillColor=function isc_DrawItem_setFillColor(_1){this.fillColor=_1;if(this.drawingVML){var _2=this.$125k();var _3=this.$154s.setProperty("fillColor",_1);var _4=!this.vmlLineEventsOnly&&!_2?0:this.fillOpacity;if(_4!=null)_3.setProperty("fillOpacity",_4);_3.setProperty("filled",!this.vmlLineEventsOnly||_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"fill",(this.fillColor&&this.fillColor!="")?this.fillColor:"none")}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setFillGradient=function isc_DrawItem_setFillGradient(_1){this.fillGradient=_1;if(this.drawingVML){var _2=this.$125k();var _3=this.$154s.setProperty("fillGradient",_1);var _4=!this.vmlLineEventsOnly&&!_2?0:this.fillOpacity;if(_4!=null)_3.setProperty("fillOpacity",_4);_3.setProperty("filled",!this.vmlLineEventsOnly||this.$125k()).flush()}else if(this.drawingSVG){var _5=this.drawPane,_6=_5.$162e;var _7;_7=_6.useGradientIDs[this.ID];if(_7!=null){var _8=this.$44m.getElementById(_7);if(_8!=null){_8.parentNode.removeChild(_8)}
  delete _6.defSvgStrings[_7]}
  if(isc.isAn.Object(isc.isA.String(_1)?_1=_5.getGradient(_1):_1))
  {var _9=_5.addGradient(_1),_10=_5.getID()+"_"+_9;var _11=_5.$162l(_9,_1,_6,this);_7=_6.useGradientIDs[this.ID];_6.defSvgStrings[_7]=_11;var _12=_11,_13=this.$44m.getElementById(_10);if(_13==null){_12+=_6.defSvgStrings[_10]}
  _5.$162k(_12);this.$44z.setAttributeNS(null,"fill","url(#"+_7+")")}else{this.$44z.setAttributeNS(null,"fill",this.fillColor?this.fillColor:"none")}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setFillOpacity=function isc_DrawItem_setFillOpacity(_1){if(_1!=null&&_1!=this.fillOpacity){this.fillOpacity=_1;if(this.drawingVML){var _2=this.$125k();this.$154s.setProperty("fillOpacity",!this.vmlLineEventsOnly&&!_2?0:_1).setProperty("filled",!this.vmlLineEventsOnly||_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"fill-opacity",_1)}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}}},isc.A.bmMoveTo=function isc_DrawItem_bmMoveTo(_1,_2,_3){var _4=(this.autoOffset&&(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0);try{_3.moveTo(_1+_4,_2+_4)}catch(e){this.logWarn("error on moveTo(): left: "+_1+", top: "+_2+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.bmArc=function isc_DrawItem_bmArc(_1,_2,_3,_4,_5,_6){var _7=(this.autoOffset&&(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0);try{_6.arc(_1+_7,_2+_7,_3,_4,_5,false)}catch(e){this.logWarn("error on arc(): centerPointX: "+_1+", centerPointY: , radius: "+_3+", startRadian: "+_4+", endRadian: "+_5+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.bmLineTo=function isc_DrawItem_bmLineTo(_1,_2,_3){var _4=(this.autoOffset&&(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0);try{_3.lineTo(_1+_4,_2+_4)}catch(e){this.logWarn("error on lineTo(): left: "+_1+", top: "+_2+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.bmQuadraticCurveTo=function isc_DrawItem_bmQuadraticCurveTo(_1,_2,_3,_4,_5){var _6=(this.autoOffset&&(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0);try{_5.quadraticCurveTo(_1+_6,_2+_6,_3+_6,_4+_6)}catch(e){this.logWarn("error on quadraticCurveTo(): x1: "+_1+", y1: "+_2+", x2: "+_3+", y2: "+_4+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.bmBezierCurveTo=function isc_DrawItem_bmBezierCurveTo(_1,_2,_3,_4,_5,_6,_7){var _8=(this.autoOffset&&(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0);try{_7.bezierCurveTo(_1+_8,_2+_8,_3+_8,_4+_8,_5+_8,_6+_8)}catch(e){var _9=(this.logIsInfoEnabled()?this.getStackTrace():"");this.logWarn("error on bezierCurveTo(): cp1x: "+_1+", cp1y: "+_2+", cp2x: "+_3+", cp2x: "+_4+", p2x: "+_5+", p2y: "+_6+_9)}},isc.A.bmFillText=function isc_DrawItem_bmFillText(_1,_2,_3,_4){try{_4.fillText(_1,_2,_3)}catch(e){this.logWarn("error on fillText(): text: "+_1+", left: "+_2+", top: "+_3+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.bmStrokeText=function isc_DrawItem_bmStrokeText(_1,_2,_3,_4){try{_4.strokeText(_1,_2,_3)}catch(e){this.logWarn("error on fillText(): text: "+_1+", left: "+_2+", top: "+_3+(this.logIsInfoEnabled()?this.getStackTrace():""))}},isc.A.$184j=function isc_DrawItem__getMaximalRects(){return null},isc.A.$184i=function isc_DrawItem__getTitleAutoFit(_1){if(!this.titleAutoFit)return false;var _2=this.getTransform(),_3=_2&&_2.isTranslate();if(!_3){if(!this.$184l){this.logWarn("Cannot apply titleAutoFit to this DrawItem since its transform has a rotation, scale, or shear factor - only a translation is allowed.");var _4=isc.addProperties({},this.titleLabelDefaults,this.titleLabelProperties);if(isc.isA.DrawLabel(_1))_1.setFontSize(_4.fontSize)}
  this.$184l=true;return false}
  delete this.$184l;return true},isc.A.$184k=function isc_DrawItem__getTitleFitIndex(_1,_2,_3,_4,_5){if(this.$184h!=null){_5.rotation=_3.rotation<isc.DrawItem.$184g/2?0:isc.DrawItem.$184g;return this.$184h}
  var _6=_4.drawingType;var _7=this.titleAutoFitScalingCorrection;if(_7==null){_7=this.titleAutoFitScalingCorrection=isc.Browser.hasLinearDrawItemFontScaling[_6]?"none":"iterate"}
  if(_7=="iterate")isc.DrawPane.$186k(true);_3.fontSize=_3.autoFitInitialFontSize;var _8=this.lineWidth+2*(this.titleAutoFitMargin||0),m=_4.measureLabel(_2,_3),_10=m.height/m.width,_11=0,_12,_13=0,_14,_15;if(this.titleAutoFitRotationMode!="always"){for(var i=0;i<_1.length;i++){var _17=_1[i].width-_8,_18=_1[i].height-_8;var _19=_17*_10>_18?_18/_10:_17;if(_19>_13){_14=_17,_15=_18;_13=_19;_11=i,_12=0}}}
  if(this.titleAutoFitRotationMode!="never"){for(var i=0;i<_1.length;i++){var _17=_1[i].width-_8,_18=_1[i].height-_8;var _19=_18*_10>_17?_17/_10:_18;if(_19>_13){_14=_18,_15=_17;_13=_19;_11=i,_12=isc.DrawItem.$184g}}}
  var _20;if(_7=="iterate"){_20=_3.$186l(_2,_14,_15,_13/m.width,_4)}else{_20=_3.fontSize*_13/m.width;if(_7=="truncate")_20=Math.max(1,Math.floor(_20))}
  var _21=this.titleAutoFitMinFontSize;if(_21==null){_21=this.titleAutoFitMinFontSize=isc.Browser.minUsableDrawItemFontSize[_6]||0}
  if(_20<_21&&!_4.$186m){this.logWarn("The minimum font size that will render with drawingType:'"+_6+"' in this browser at its assigned size without drawing errors is "+_21+"px, but fitting your item needs a font size of "+_20+"px.  The text may render too large or be corrupted.");_4.$186m=true}
  _3.fontSize=null;_3.setFontSize(_20,false);_5.rotation=_12;return this.$184h=_11});isc.B._maxIndex=isc.C+200;isc.A=isc.DrawItem;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$44q=0;isc.A.$630=["show",,"Knobs"];isc.A.$631=["hide",,"Knobs"];isc.A.$135g=["resize","move","startPoint","endPoint","controlPoint1","controlPoint2","rotate"];isc.B.push(isc.A.$632=function isc_c_DrawItem__getShowKnobsFunctionName(_1,_2){if(!this.$633){this.$633={}}
  if(this.$633[_1]==null){_1=_1.substring(0,1).toUpperCase()+_1.substring(1);this.$630[1]=_1;this.$631[1]=_1;this.$633[_1]=[this.$630.join(isc.emptyString),this.$631.join(isc.emptyString)]}
  return _2?this.$633[_1][1]:this.$633[_1][0]},isc.A.registerEventStringMethods=function isc_c_DrawItem_registerEventStringMethods(){var _1=isc.EH;for(var _2 in _1.eventTypes){this.registerStringMethods(_1.eventTypes[_2],_1.$i3)}},isc.A.$830=function isc_c_DrawItem__normalizeLinearGradient(_1,_2){var _3=new Array(4),_4=Math.abs(_2[2]-_2[0]),_5=Math.abs(_2[3]-_2[1]);if(_1.direction!=null){var _6=(typeof(_1.direction)==='string'?parseFloat(_1.direction):_1.direction),_7=_6*isc.Math.$125w,_8=Math.sin(_7),_9=Math.cos(_7),_10=(_2[0]+_2[2])/2,_11=(_2[1]+_2[3])/2,_12=(_8==0?_4:Math.min(_4,Math.abs(_5*_9/_8)))/2,_13=(_9==0?_5:Math.min(_5,Math.abs(_4*_8/_9)))/2;if(_8<0){_13=-_13}
  if(_9<0){_12=-_12}
  _3[0]=Math.round(_10-_12);_3[1]=Math.round(_11-_13);_3[2]=Math.round(_10+_12);_3[3]=Math.round(_11+_13)}else{if(typeof(_1.x1)==='string'){if(_1.x1.endsWith('%')){_3[0]=(_2[0]+parseFloat(_1.x1)*_4/100.0)}else{_3[0]=parseFloat(_1.x1)}}else if(isc.isA.Number(_1.x1)){_3[0]=_1.x1}
  if(typeof(_1.y1)==='string'){if(_1.y1.endsWith('%')){_3[1]=(_2[1]+parseFloat(_1.y1)*_5/100.0)}else{_3[1]=parseFloat(_1.y1)}}else if(isc.isA.Number(_1.y1)){_3[1]=_1.y1}
  if(typeof(_1.x2)==='string'){if(_1.x2.endsWith('%')){_3[2]=(_2[0]+parseFloat(_1.x2)*_4/100.0)}else{_3[2]=parseFloat(_1.x2)}}else if(isc.isA.Number(_1.x2)){_3[2]=_1.x2}
  if(typeof(_1.y2)==='string'){if(_1.y2.endsWith('%')){_3[3]=(_2[1]+parseFloat(_1.y2)*_5/100.0)}else{_3[3]=parseFloat(_1.y2)}}else if(isc.isA.Number(_1.y2)){_3[3]=_1.y2}}
  return _3},isc.A.$831=function isc_c_DrawItem__normalizeRadialGradient(_1,_2,_3){var _4=new Array(6);if(typeof(_1.fx)==='string'){if(_1.fx.endsWith('%')){_4[0]=(_3[0]+(parseFloat(_1.fx)/100.0))}else{_4[0]=(_3[0]+parseFloat(_1.fx))}}else if(_1.fx!=null){_4[0]=(_3[0]+_1.fx)}else{_4[0]=_3[0]}
  if(typeof(_1.fy)==='string'){if(_1.fy.endsWith('%')){_4[1]=(_3[1]+(parseFloat(_1.fy)/100.0))}else{_4[1]=(_3[1]+parseFloat(_1.fy))}}else if(_1.fy!=null){_4[1]=(_3[1]+_1.fy)}else{_4[1]=_3[1]}
  _4[2]=0;if(typeof(_1.cx)==='string'&&isc.isA.Number(_2[0])){if(_1.cx.endsWith('%')){_4[3]=(_2[0]-Math.round(_2[0]*parseInt(_1.cx)/100.0))}else{_4[3]=(_3[0]+parseInt(_1.cx))}}else{_4[3]=(_3[0]+_1.cx)}
  if(typeof(_1.cy)==='string'&&isc.isA.Number(_2[1])){if(_1.cx.endsWith('%')){_4[4]=(_2[1]-Math.round(_2[1]*parseInt(_1.cy)/100.0))}else{_4[4]=(_3[1]+parseInt(_1.cy))}}else{_4[4]=(_3[1]+_1.cy)}
  if(typeof(_1.r)==='string'&&isc.isA.Number(_2[0])&&isc.isA.Number(_2[1])){var _5=_2[2]-_2[0],_6=_2[3]-_2[1],r=isc.Math.$101k(_5,_6);if(_1.r.endsWith('%')){_4[5]=(r*parseFloat(_1.r)/100.0)}else{_4[5]=(r*parseFloat(_1.r))}}else{_4[5]=_1.r}
  return _4});isc.B._maxIndex=isc.C+4;isc.DrawItem.registerEventStringMethods();isc.defineClass("DrawGroup","DrawItem");isc.A=isc.DrawGroup.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.moveItemsWithGroup=true;isc.A.renderGroupElement=true;isc.A.useGroupRect=false;isc.A.left=0;isc.A.top=0;isc.A.width=1;isc.A.height=1;isc.A.groupRectOutlineDefaults={_constructor:"DrawRect",autoDraw:true,lineWidth:1,lineColor:"#cbe1ca",linePattern:"solid",$145w:true};isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.A.$154u=new isc.VMLRenderer.shapeConfig();isc.A.$44l=isc.Class.NO_OP;isc.A.isPointInPath=isc.DrawItem.getInstanceProperty("isInBounds");isc.B.push(isc.A.init=function isc_DrawGroup_init(){var _1=this.drawItems;if(_1==null){this.drawItems=[]}else{this.drawItems=[];for(var i=0,_3=_1.length;i<_3;++i){this.addDrawItem(_1[i])}}
  this.exemptFromGlobalTransform=false;this.Super("init",arguments)},isc.A.$148s=function isc_DrawGroup__addedToDrawPane(_1){var _2=this.drawItems;for(var i=0,_4=(_2==null?0:_2.length);i<_4;++i){var _5=_2[i];_5.drawPane=_1;_5.$148r=this.$148r;if(_5.exemptFromGlobalTransform&&!_1.$150v.contains(_5))
  {_1.$150v.push(_5)}
  if(isc.isA.DrawGroup(_5)){_5.$148s(_1)}}},isc.A.$148t=function isc_DrawGroup__removedFromDrawPane(_1){var _2=this.drawItems;for(var i=0,_4=(_2==null?0:_2.length);i<_4;++i){var _5=_2[i];delete _5.drawPane;delete _5.$148r;if(_5.item!=null){_1.quadTree.remove(_5.item);delete _5.item}
  if(_5.exemptFromGlobalTransform){_1.$150v.remove(_5)}
  if(isc.isA.DrawGroup(_5)){_5.$148t(_1)}}},isc.A.erase=function isc_DrawGroup_erase(_1,_2){for(var i=0;i<this.drawItems.length;i++){this.drawItems[i].erase(true,_2)}
  this.drawItems=[];this.Super("erase",arguments)},isc.A.clear=function isc_DrawGroup_clear(_1,_2){var _3=this.drawItems,_4=(_3==null?0:_3.length);for(var i=0;i<_4;++i){var _6=_3[i];_6.clear(_1,_2)}
  this.Super("clear",arguments)},isc.A.addDrawItem=function isc_DrawGroup_addDrawItem(_1,_2){if(!_1)return;var _3=_1.drawGroup;if(_3!=null){_3.removeDrawItem(_1)}else{var _4=_1.drawPane;if(_4!=null)_4.removeDrawItem(_1)}
  _1.drawGroup=this;_1.getZIndex(true);var _5=this.$1504();if(_5!=null){_1.drawPane=_5;_1.$148r=this.$148r}else{delete _1.drawPane;delete _1.$148r}
  var _6=this.drawItems;if(_6==null){_6=this.drawItems=[_1]}else{var i=isc.Array.$96c(_6,_1,isc.DrawItem.$1687);if(i<0)i=-i-1;for(;i<_6.length&&isc.DrawItem.$1687(_6[i],_1)==0;++i){}
  _6.addAt(_1,i)}
  if(_5!=null){if(_1.exemptFromGlobalTransform){_5.$150v.add(_1)}
  if(isc.isA.DrawGroup(_1)){_1.$148s(_5)}}
  var _8=_1.masterElement;if(_8&&_8.parentElement!==this){_8.peers.remove(_1);if(_8[_2]===_1)_8[_2]=null;_1.masterElement=null}
  var _9=_1.peers;if(_9!=null){for(var i=0,_10=_9.length;i<_10;++i){this.addDrawItem(_9[i])}}},isc.A.removeDrawItem=function isc_DrawGroup_removeDrawItem(_1){if(_1.$if){_1.erase()}else{var _2=this.drawItems.remove(_1);if(!_2&&this.$1262!=null){_2=this.$1262.remove(_1)}
  if(isc.isA.DrawGroup(_1)){var _3=this.$1504();if(_3!=null){_1.$148t(_3)}}else if(_1.exemptFromGlobalTransform){var _3=this.$1504();_3.$150v.remove(_1)}}
  delete _1.drawGroup;delete _1.drawPane},isc.A.setShowGroupRectOutline=function isc_DrawGroup_setShowGroupRectOutline(_1){var _2=this.showGroupRectOutline!=false,_3=_1!=false;this.showGroupRectOutline=_1;if(_2==_3)return;if(this.knobs==null||!this.knobs.contains("move"))return;if(_3){this.hideKnobs("move");this.showKnobs("move")}else{var _4=this.groupRectOutline;if(_4==null||_4.destroyed)return;_4.destroy();this.groupRectOutline=null}},isc.A.showMoveKnobs=function isc_DrawGroup_showMoveKnobs(){if(this.useGroupRect&&this.showGroupRectOutline!=false&&(this.groupRectOutline==null||this.groupRectOutline.destroyed))
  {var _1=this.groupRectOutline=this.createAutoChild("groupRectOutline",{left:this.left,top:this.top,width:this.width,height:this.height,drawPane:this.drawPane,excludeFromQuadTree:true,knobs:null,title:null,zIndex:this.getZIndex(true),$169l:true});this.addPeer(_1)}
  this.Super("showMoveKnobs",arguments)},isc.A.hideMoveKnobs=function isc_DrawGroup_hideMoveKnobs(){this.Super("hideMoveKnobs",arguments);if(this.groupRectOutline!=null){this.groupRectOutline.destroy();this.groupRectOutline=null}},isc.A.updateControlKnobs=function isc_DrawGroup_updateControlKnobs(){this.Super("updateControlKnobs",arguments);if(this.groupRectOutline!=null){this.groupRectOutline.setRect(this.left,this.top,this.width,this.height)}},isc.A.$154t=function isc_DrawGroup__renderVML(_1,_2,_3){var _4=_1.buffer,_5=this.$154u;if(this.renderGroupElement)this.$154s=_1.group(_2,_5);var _6=this.drawItems;if(_6!=null){for(var i=0,_8=_6.length;i<_8;++i){var _9=_6[i];_9.$44v(_4,"isc_DrawItem_"+_9.drawItemID,_3)}}
  if(this.renderGroupElement)_1.endGroup(_2)},isc.A.getSvgString=function isc_DrawGroup_getSvgString(_1){_1=_1||isc.SVGStringConversionContext.create();var _2="";if(this.renderGroupElement){_2+="<g";var _3=this.$1620();if(_3!=null)_2+=" id='"+_3+"'";if(!_1.printForExport){_2+=" "+this.$169a()}
  var _4=this.getAttributesSVG();if(_4)_2+=" "+_4;_2+=">"}
  var _5=this.drawItems,_6=(_5==null?0:_5.length);if(_6>0){for(var i=0;i<_6;++i){_2+=_5[i].getSvgString(_1)}}
  if(this.renderGroupElement)_2+="</g>";return _2},isc.A.$1622=function isc_DrawGroup__completeDraw(){var _1=this.drawItems,_2=(_1==null?0:_1.length);for(var i=0;i<_2;++i){var _4=_1[i];_4.$1622()}
  this.Super("$1622",arguments)},isc.A.drawBitmap=function isc_DrawGroup_drawBitmap(_1){this.drawPane.$1500(_1,this.drawItems)},isc.A.setLeft=function isc_DrawGroup_setLeft(_1){this.$147z(_1,this.top,this.width,this.height)},isc.A.setTop=function isc_DrawGroup_setTop(_1){this.$147z(this.left,_1,this.width,this.height)},isc.A.setWidth=function isc_DrawGroup_setWidth(_1){this.$147z(this.left,this.top,_1,this.height)},isc.A.setHeight=function isc_DrawGroup_setHeight(_1){this.$147z(this.left,this.top,this.width,_1)},isc.A.getGroupRect=function isc_DrawGroup_getGroupRect(){return[this.left,this.top,this.width,this.height]},isc.A.$147z=function isc_DrawGroup__setGroupRect(_1,_2,_3,_4){var _5=this.$147l(),_6=_5.cx,_7=_5.cy;this.left=_1;this.top=_2;this.width=_3;this.height=_4;var _8=this.$147l();this.$147x(_6,_7,_8.cx,_8.cy);this.$143s()},isc.A.setRect=function isc_DrawGroup_setRect(_1,_2,_3,_4,_5,_6){if(_3==null)_3=this.width;if(_4==null)_4=this.height;if(_1==null)_1=this.left;if(_2==null)_2=this.top;var _7=false;if(this.left==_1&&this.top==_2&&this.width==_3&&this.height==_4)
  {_7=true;if(_5==null&&_6==null)return}
  if(_5==null||_6==null){var _8=this.$147l();if(_7&&(_5==null||_5==_8.cx)&&(_6==null||_6==_8.cy))
  {return}
  _5=_8.cx;_6=_8.cy}
  var _9=this.left,_10=this.top;this.left=_1;this.top=_2;this.width=_3;this.height=_4;var _11=this.$147l();if(_7&&_5==_11.cx&&_6==_11.cy)
  {return}
  this.$147x(_5,_6,_11.cx,_11.cy);if(this.moveItemsWithGroup){var _12=this.drawItems,_13=_1-_9,_14=_2-_10;for(var i=0,_16=_12==null?0:_12.length;i<_16;++i){_12[i].moveBy(_13,_14)}}
  this.$143s()},isc.A.$147w=function isc_DrawGroup__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(_4==null){_4=this}
  if(!_6){var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var _11=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_4.width,_4.height,0,this.$179h());if(_11.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);this.setRect(this.$1503(_11.left),this.$1503(_11.top),this.$1503(_11.width),this.$1503(_11.height),this.$1503(_9),this.$1503(_10));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)},isc.A.rotateTo=function isc_DrawGroup_rotateTo(_1){for(var i=0;i<this.drawItems.length;i++){var _3=this.drawItems[i];_3.rotateTo(_1)}},isc.A.rotateBy=function isc_DrawGroup_rotateBy(_1){for(var i=0;i<this.drawItems.length;++i){var _3=this.drawItems[i];_3.rotateBy(_1)}},isc.A.scaleBy=function isc_DrawGroup_scaleBy(_1,_2){for(var i=0;i<this.drawItems.length;++i){var _4=this.drawItems[i];_4.scaleBy(_1,_2)}},isc.A.getCenter=function isc_DrawGroup_getCenter(){return[this.left+this.$1503(this.width/2),this.top+this.$1503(this.height/2)]},isc.A.getBoundingBox=function isc_DrawGroup_getBoundingBox(_1,_2){var _3=(_2||new Array(4));_3[0]=this.left;_3[1]=this.top;_3[2]=this.left+this.width;_3[3]=this.top+this.height;return _3},isc.A.scaleTo=function isc_DrawGroup_scaleTo(_1,_2){this.scale=this.scale||[];this.scale[0]+=(this.scale[0]||0)+_1;this.scale[1]+=(this.scale[1]||0)+_2;this.$1348=null;this.scaleBy(_1,_2)});isc.B._maxIndex=isc.C+29;isc.DrawGroup.markUnsupportedMethods(null,["setLineWidth","setLineColor","setLineOpacity","setLinePattern","setLineCap","setShadow","setFillColor","setFillGradient","setFillOpacity"]);isc.DrawGroup.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawLine","DrawItem");isc.A=isc.DrawLine.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.titleRotationMode="withLineAlwaysUp";isc.A.showTitleLabelBackground=true;isc.A.startPoint=[0,0];isc.A.endPoint=[100,100];isc.A.svgElementName=isc.Browser.isOpera?"polyline":"line";isc.A.eventOpaque=false;isc.A.$154v=new isc.VMLRenderer.shapeConfig();isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.B.push(isc.A.init=function isc_DrawLine_init(){this.startPoint=this.startPoint.duplicate();this.endPoint=this.endPoint.duplicate();this.startPoint[0]=this.startLeft=(this.startLeft==0?0:(this.startLeft||this.startPoint[0]));this.startPoint[1]=this.startTop=(this.startTop==0?0:(this.startTop||this.startPoint[1]));this.endPoint[0]=this.endLeft=(this.endLeft==0?0:(this.endLeft||this.endPoint[0]));this.endPoint[1]=this.endTop=(this.endTop==0?0:(this.endTop||this.endPoint[1]));this.Super("init",arguments)},isc.A.setLineWidth=function isc_DrawLine_setLineWidth(_1){this.Super("setLineWidth",arguments);if(this.drawingSVG)this.setStartPoint(this.startPoint)},isc.A.setStartArrow=function isc_DrawLine_setStartArrow(_1){this.Super("setStartArrow",arguments);if(this.drawingSVG)this.setStartPoint(this.startPoint)},isc.A.setEndArrow=function isc_DrawLine_setEndArrow(_1){this.Super("setEndArrow",arguments);if(this.drawingSVG)this.setEndPoint(this.endPoint)},isc.A.$154t=function isc_DrawLine__renderVML(_1,_2,_3){var _4=this.$154v;isc.VMLRenderer.drawItemToShapeConfig(this,_4);_4.fromX=this.startPoint[0];_4.fromY=this.startPoint[1];_4.toX=this.endPoint[0];_4.toY=this.endPoint[1];this.$154s=_1.line(_2,_4)},isc.A.getAttributesSVG=function isc_DrawLine_getAttributesSVG(){if(this.svgElementName==="polyline"){return("points='"+this.startLeft+","+this.startTop+" "+this.endLeft+","+this.endTop+"'")}else{return("x1='"+this.startLeft+"' y1='"+this.startTop+"' x2='"+this.endLeft+"' y2='"+this.endTop+"'")}},isc.A.drawBitmapPath=function isc_DrawLine_drawBitmapPath(_1){var _2=(this.lineWidth==0||parseInt(this.lineWidth)%2)==1?0.5:0,_3=parseFloat(this.startLeft)+_2,_4=parseFloat(this.startTop)+_2,_5=parseFloat(this.endLeft)+_2,_6=parseFloat(this.endTop)+_2,_7,_8=10,_9,_10;if(this.startArrow=="open"){_1.save();_1.beginPath();_1.strokeStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_7=this.computeAngle(_3,_4,_5,_6);_9=_3;_10=_4;_1.scale(1,1);_1.translate(_9,_10);_1.rotate(_7*this.$125w);this.bmMoveTo(_8,-_8,_1);this.bmLineTo(0,0,_1);this.bmLineTo(_8,_8,_1);_1.stroke();_1.restore()}else if(this.startArrow=="block"){_1.save();_1.beginPath();_1.fillStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_7=this.computeAngle(_3,_4,_5,_6);_9=_3;_10=_4;_1.translate(_9,_10);_1.rotate(_7*this.$125w);this.bmMoveTo(_8,-_8,_1);this.bmLineTo(0,0,_1);this.bmLineTo(_8,_8,_1);_1.closePath();_1.fill();_1.stroke();_1.restore()}
  if(this.endArrow=="open"){_1.save();_1.beginPath();_1.strokeStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_7=this.computeAngle(_3,_4,_5,_6);_9=_5;_10=_6;_1.translate(_9,_10);_1.rotate(_7*this.$125w);this.bmMoveTo(-_8,_8,_1);this.bmLineTo(0,0,_1);this.bmLineTo(-_8,-_8,_1);_1.stroke();_1.restore()}else if(this.endArrow=="block"){_1.save();_1.beginPath();_1.fillStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_7=this.computeAngle(_3,_4,_5,_6);_9=_5;_10=_6;_1.translate(_9,_10);_1.rotate(_7*this.$125w);this.bmMoveTo(-_8,_8,_1);this.bmLineTo(0,0,_1);this.bmLineTo(-_8,-_8,_1);_1.closePath();_1.fill();_1.restore()}
  if(!_1.setLineDash&&this.linePattern.toLowerCase()!=="solid"){this.$85x(_3,_4,_5,_6,_1)}else{this.bmMoveTo(this.startLeft,this.startTop,_1);this.bmLineTo(this.endLeft,this.endTop,_1)}},isc.A.setStartPoint=function isc_DrawLine_setStartPoint(_1,_2,_3){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.$1487(_1,_2,this.endLeft,this.endTop,null,null,_3)},isc.A.setEndPoint=function isc_DrawLine_setEndPoint(_1,_2,_3){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.$1487(this.startLeft,this.startTop,_1,_2,null,null,_3)},isc.A.$1487=function isc_DrawLine__setStartAndEndPoints(_1,_2,_3,_4,_5,_6,_7){var _8=(this.startLeft!=_1||this.startTop!=_2),_9=(this.endLeft!=_3||this.endTop!=_4);if(!(_8||_9)){return}
  if(_5==null||_6==null){var _10=this.$147l();_5=_10.cx;_6=_10.cy}
  var _11=0,_12=0,_13=0,_14=0;if(_7){var _15=this.getResizeBoundingBox(null,this.$145i);_11=this.$1503(_15[0]);_12=this.$1503(_15[1]);_13=this.$1503(_15[2]-_15[0]);_14=this.$1503(_15[3]-_15[1])}
  this.startLeft=_1;this.startTop=_2
  this.endLeft=_3;this.endTop=_4;if(this.startPoint){this.startPoint[0]=_1;this.startPoint[1]=_2}
  if(this.endPoint){this.endPoint[0]=_3;this.endPoint[1]=_4}
  var _16=this.$147l();this.$147x(_5,_6,_16.cx,_16.cy);if(this.drawingVML){var _17=this.$154s;if(_5!=_16.cx||_6!=_16.cy){this.$1348=null;_17.setProperty("transform",this.$1339())}
  if(_8){_17.setProperty("fromX",_1).setProperty("fromY",_2)}
  if(_9){_17.setProperty("toX",_3).setProperty("toY",_4)}
  _17.flush()}else if(this.drawingSVG){var _18=this.$44z;if(_5!=_16.cx||_6!=_16.cy){this.$1348=null;var t=this.$1339();_18.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}
  if(this.svgElementName==="polyline"){_18.setAttributeNS(null,"points",_1+","+_2+" "+_3+","+_4)}else{if(_8||(_9&&this.startArrow))
  {_18.setAttributeNS(null,"x1",_1);_18.setAttributeNS(null,"y1",_2)}
  if(_9||(_8&&this.endArrow))
  {_18.setAttributeNS(null,"x2",_3);_18.setAttributeNS(null,"y2",_4)}}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s();if(_7){var _20=this.getResizeBoundingBox(null,this.$145i),_21=this.$1503(_20[0])-_11,_22=this.$1503(_20[1])-_12,_23=(_21!=0||_22!=0),_24=this.$1503(_20[2]-_20[0])-_13,_25=this.$1503(_20[3]-_20[1])-_14,_26=(_24!=0||_25!=0);if(_23){this.moved(_21,_22)}
  if(_26){this.resized()}}},isc.A.$147w=function isc_DrawLine__updateLocalTransform(_1,_2,_3,_4,_5,_6){var _7=this.points;this.points=[[this.startLeft,this.startTop],[this.endLeft,this.endTop]];this.$149u=[0,1];isc.DrawPath.getInstanceProperty("$147w").apply(this,arguments);delete this.$149u;delete this._left;delete this._top;delete this._right;delete this._bottom;delete this.$149v;delete this.$149w;this.points=_7},isc.A.$152a=function isc_DrawLine__redrawAfterSetPoints(_1){this.$1487(this.$1503(this.points[0][0]),this.$1503(this.points[0][1]),this.$1503(this.points[1][0]),this.$1503(this.points[1][1]),null,null,false)},isc.A.$147m=function isc_DrawLine__saveShape(){var _1=this.points;this.points=[[this.startLeft,this.startTop],[this.endLeft,this.endTop]];this.$149v=(this.startLeft+this.endLeft)/2;this.$149w=(this.startTop+this.endTop)/2;var _2=isc.DrawPath.getInstanceProperty("$147m").apply(this,arguments);delete this.$149v;delete this.$149w;this.points=_1;return _2},isc.A.getBoundingBox=function isc_DrawLine_getBoundingBox(_1,_2){var _3=this.startPoint[0],_4=this.startPoint[1],_5=this.endPoint[0],_6=this.endPoint[1],_7=_6-_4,_8=_5-_3;var a=Math.atan2(_7,_8)/isc.Math.$125w,l=isc.Math.$101k(_8,_7),_11=(_2||new Array(4));if(_1!=true||!this.$125h()){_11[0]=_11[1]=_11[3]=0;_11[2]=l}else{var _12=this.lineWidth/2;_11[0]=_11[1]=-_12;_11[2]=l+_12;_11[3]=_12}
  var t=isc.AffineTransform.getTranslateTransform(_3,_4).rotate(a,0,0);var _14=t.transform(_11[0],_11[1]),_15=t.transform(_11[2],_11[1]),_16=t.transform(_11[2],_11[3]),_17=t.transform(_11[0],_11[3]);_11[0]=Math.min(_14[0],_15[0],_16[0],_17[0]);_11[1]=Math.min(_14[1],_15[1],_16[1],_17[1]);_11[2]=Math.max(_14[0],_15[0],_16[0],_17[0]);_11[3]=Math.max(_14[1],_15[1],_16[1],_17[1]);return _11},isc.A.$147c=function isc_DrawLine__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=(_4||new Array(4));var _6=(_2&&this.$125h()?(this.lineWidth/2):0),_7=(_3?this.hitTolerance:0),_8=_6+_7;var _9=_1.m00,_10=_1.m01,_11=_1.m02,_12=_1.m10,_13=_1.m11,_14=_1.m12;var _15=_9*this.startPoint[0]+_10*this.startPoint[1]+_11,_16=_12*this.startPoint[0]+_13*this.startPoint[1]+_14,_17=_9*this.endPoint[0]+_10*this.endPoint[1]+_11,_18=_12*this.endPoint[0]+_13*this.endPoint[1]+_14;_5[0]=Math.min(_15,_17);_5[1]=Math.min(_16,_18);_5[2]=Math.max(_15,_17);_5[3]=Math.max(_16,_18);if(_8!=0){var _19=_8*isc.Math.$101k(_9,_10),_20=_8*isc.Math.$101k(_12,_13);_5[0]-=_19;_5[1]-=_20;_5[2]+=_19;_5[3]+=_20}
  return _5},isc.A.getCenter=function isc_DrawLine_getCenter(){return[this.startPoint[0]+this.$1503((this.endPoint[0]-this.startPoint[0])/2),this.startPoint[1]+this.$1503((this.endPoint[1]-this.startPoint[1])/2)]},isc.A.isPointInPath=function isc_DrawLine_isPointInPath(_1,_2){var _3=Math.max(this.lineWidth/2,2)+this.hitTolerance;var _4=this.$136i(_1,_2);return isc.Math.euclideanDistanceToLine(this.startLeft,this.startTop,this.endLeft,this.endTop,_4[0],_4[1])<_3},isc.A.showKnobs=function isc_DrawLine_showKnobs(_1){if(isc.isAn.Array(_1))return this.Super("showKnobs",arguments);var _2=this.$135f();this.Super("showKnobs",arguments);if(this.knobs.length>1&&(_1=="move"||_1=="startPoint"||_1=="endPoint")&&(this.$637!=null&&!this.$637.destroyed)&&(this.knobs.contains("startPoint")||this.knobs.contains("endPoint")))
  {var _3=this.$135f();if(_3!=null){if(!_2)_2=[0,0];this.$637.moveBy(_3[0]-_2[0],_3[1]-_2[1])}}},isc.A.$636=function isc_DrawLine__getKnobPosition(_1){var _2=(_1.contains("R")?this.endPoint:this.startPoint);return this.$136i(_2[0],_2[1],"local","global")},isc.A.$135f=function isc_DrawLine__getMoveKnobOffset(){if(this.moveKnobOffset!=null){return this.moveKnobOffset}
  if(this.knobs==null||this.knobs.length==0||!this.knobs.contains("move")){return null}
  var _1=this.moveKnobPoint.contains("R"),_2=this.$636(this.moveKnobPoint);if(!this.knobs.contains(_1?"endPoint":"startPoint")){return null}
  return this.$159j[this.moveKnobPoint]},isc.A.showStartPointKnobs=function isc_DrawLine_showStartPointKnobs(){if(this.$639!=null&&!this.$639.destroyed)return;var v=this.$136i(this.startLeft,this.startTop,"local","global");this.$639=this.createAutoChild("startKnob",{x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.startLeft,_2.startTop,"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_12,_13,_14,_15,_16){var _2=this.creator,_3=(_16=="start"),_4=(_16=="move"),_5=(_16=="stop");var _6;if(_3){_6=_2.$1135=_2.endPoint.duplicate();var v=_2.$136i(_6[0],_6[1],"local","global");_6[0]=v[0];_6[1]=v[1]}else{_6=_2.$1135}
  if(_2.keepInParentRect){var _7=_2.$113u(),_8=_2.$1136(_6,[_12,_13],_7);if(_8==null){if(_5){delete _2.$1135}
  return false}else{_12=_8[0];_13=_8[1]}}else if(_5){delete _2.$1135}
  var v=_2.$136i(_12,_13,"global","local"),_9,_10;if(isc.isA.DrawLinePath(_2)){var _11=_2.$147l();_9=_11.cx;_10=_11.cy}
  _2.setStartPoint(_2.$1503(v[0]),_2.$1503(v[1]),true,_9,_10)}})},isc.A.hideStartPointKnobs=function isc_DrawLine_hideStartPointKnobs(){if(this.$639){this.$639.destroy();delete this.$639}},isc.A.showEndPointKnobs=function isc_DrawLine_showEndPointKnobs(){if(this.$64a!=null&&!this.$64a.destroyed)return;var v=this.$136i(this.endLeft,this.endTop,"local","global");this.$64a=this.createAutoChild("endKnob",{x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.endLeft,_2.endTop,"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_12,_13,_14,_15,_16){var _2=this.creator,_3=(_16=="start"),_4=(_16=="move"),_5=(_16=="stop"),_6;if(_3){_6=_2.$1137=_2.startPoint.duplicate();var v=_2.$136i(_6[0],_6[1],"local","global");_6[0]=v[0];_6[1]=v[1]}else{_6=_2.$1137}
  if(_2.keepInParentRect){var _7=_2.$113u(),_8=_2.$1136(_6,[_12,_13],_7);if(_8==null){if(_5){delete _2.$1137}
  return false}else{_12=_8[0];_13=_8[1]}}else if(_5){delete _2.$1137}
  var v=_2.$136i(_12,_13,"global","local"),_9,_10;if(isc.isA.DrawLinePath(_2)){var _11=_2.$147l();_9=_11.cx;_10=_11.cy}
  _2.setEndPoint(_2.$1503(v[0]),_2.$1503(v[1]),true,_9,_10)}})},isc.A.hideEndPointKnobs=function isc_DrawLine_hideEndPointKnobs(){if(this.$64a){this.$64a.destroy();delete this.$64a}},isc.A.moveStartPointTo=function isc_DrawLine_moveStartPointTo(_1,_2){this.$147y(_1,_2,this.startLeft,this.startTop)},isc.A.updateControlKnobs=function isc_DrawLine_updateControlKnobs(){this.Super("updateControlKnobs",arguments);if(this.$639){var v=this.$136i(this.startLeft,this.startTop,"local","global");this.$639.setCenterPoint(v[0],v[1])}
  if(this.$64a){var v=this.$136i(this.endLeft,this.endTop,"local","global");this.$64a.setCenterPoint(v[0],v[1])}});isc.B._maxIndex=isc.C+26;isc.defineClass("DrawRect","DrawItem");isc.A=isc.DrawRect.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.left=0;isc.A.top=0;isc.A.width=100;isc.A.height=100;isc.A.rounding=0;isc.A.lineCap="butt";isc.A.titleRotationMode="withItemAlwaysUp";isc.A.svgElementName="rect";isc.A.roundCoordinates=false;isc.A.$179j=true;isc.A.$154w=new isc.VMLRenderer.shapeConfig();isc.B.push(isc.A.$165u=function isc_DrawRect__isClosed(){return true},isc.A.$154t=function isc_DrawRect__renderVML(_1,_2,_3){var _4=this.$154w;isc.VMLRenderer.drawItemToShapeConfig(this,_4);var _5=this.left,_6=this.top,_7=this.width,_8=this.height;if(_7<0){_5+=_7;_7=-_7}
  if(_8<0){_6+=_8;_8=-_8}
  _4.left=_5;_4.top=_6;_4.width=_7;_4.height=_8;_4.arcsize=(this.rounding/2);this.$154s=_1.roundrect(_2,_4)},isc.A.getAttributesSVG=function isc_DrawRect_getAttributesSVG(){var _1=this.left,_2=this.top,_3=this.width,_4=this.height;if(_3<0){_1+=_3;_3=-_3}
  if(_4<0){_2+=_4;_4=-_4}
  return isc.SB.concat("x='",_1,"' y='",_2,"' width='",_3,"' height='",_4,"'",(this.rounding?(" rx='"+(this.rounding*Math.min(_3,_4)/2)+"'"):""))},isc.A.drawBitmapPath=function isc_DrawRect_drawBitmapPath(_1){var _2=this.left,_3=this.top,_4=this.width,_5=this.height;if(_4<0){_2+=_4;_4=-_4}
  if(_5<0){_3+=_5;_5=-_5}
  var _6=_2+_4,_7=_3+_5;if(this.rounding==0){this.bmMoveTo(_2,_3,_1);if(!_1.setLineDash&&this.linePattern.toLowerCase()!=="solid"){this.$85x(_2,_3,_6,_3,_1);this.$85x(_6,_3,_6,_7,_1);this.$85x(_6,_7,_2,_7,_1);this.$85x(_2,_7,_2,_3,_1)}else{this.bmLineTo(_6,_3,_1);this.bmLineTo(_6,_7,_1);this.bmLineTo(_2,_7,_1);this.bmLineTo(_2,_3,_1)}}else{var _8=isc.DrawItem.$147e,r=Math.round(this.rounding*Math.min(_4,_5)/2),_10=r*(1-_8);this.bmMoveTo(_2+r,_3,_1);this.bmLineTo(_6-r,_3,_1);this.bmBezierCurveTo(_6-_10,_3,_6,_3+_10,_6,_3+r,_1);this.bmLineTo(_6,_7-r,_1);this.bmBezierCurveTo(_6,_7-_10,_6-_10,_7,_6-r,_7,_1);this.bmLineTo(_2+r,_7,_1);this.bmBezierCurveTo(_2+_10,_7,_2,_7-_10,_2,_7-r,_1);this.bmLineTo(_2,_3+r,_1);this.bmBezierCurveTo(_2,_3+_10,_2+_10,_3,_2+r,_3,_1)}
  _1.closePath()},isc.A.setCenter=function isc_DrawRect_setCenter(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.setRect(_1==null?this.left:_1-this.$1503(this.width/2),_2==null?this.top:_2-this.$1503(this.height/2),this.width,this.height)},isc.A.getCenter=function isc_DrawRect_getCenter(){return[this.left+this.$1503(this.width/2),this.top+this.$1503(this.height/2)]},isc.A.getBoundingBox=function isc_DrawRect_getBoundingBox(_1,_2){var _3=(_2||new Array(4));_3[0]=this.left;_3[1]=this.top;_3[2]=this.left+this.width;_3[3]=this.top+this.height;return _1!=true?_3:this.$147b(true,false,_3)},isc.A.$147c=function isc_DrawRect__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=this.rounding||0;if(_5==0){return this.Super("$147c",arguments)}
  var _6=this.getBoundingBox(_2,_4);this.$147b(false,_3,_6);var _7=_6[0],_8=_6[1],_9=_6[2],_10=_6[3],_11=_9-_7,_12=_10-_8;var _13=(_5*Math.min(_11,_12)/2),_14=(_7+_9)/2,_15=(_8+_10)/2;var _16=_1.m00,_17=_1.m01,_18=_1.m02,_19=_1.m10,_20=_1.m11,_21=_1.m12,_22=_13*isc.Math.$101k(_16,_17),_23=_13*isc.Math.$101k(_19,_20),_24=(_16*_14+_17*_15+_18),_25=(_19*_14+_20*_15+_21);var _26=_11/2,_27=_12/2,_28=(_26-_13),_29=(_27-_13),_30=Math.abs(_16*_26+_17*-_29),_31=Math.abs(_19*_26+_20*-_29),_32=Math.abs(_16*_28+_17*-_27),_33=Math.abs(_19*_28+_20*-_27),_34=Math.abs(_16*-_28+_17*-_27),_35=Math.abs(_19*-_28+_20*-_27),_36=Math.abs(_16*-_26+_17*-_29),_37=Math.abs(_19*-_26+_20*-_29),_38=_24-Math.max(_30,_32,_34,_36),_39=2*_24-_38,_40=_25-Math.max(_31,_33,_33,_37),_41=2*_25-_40;var _42=Math.abs(_16*_28+_17*-_29),_43=Math.abs(_19*_28+_20*-_29),_44=Math.abs(_16*_28+_17*_29),_45=Math.abs(_19*_28+_20*_29),_46=_24-(_22+Math.max(_42,_44)),_47=2*_24-_46,_48=_25-(_23+Math.max(_43,_45)),_49=2*_25-_48;_6[0]=Math.min(_38,_46);_6[1]=Math.min(_40,_48);_6[2]=Math.max(_39,_47);_6[3]=Math.max(_41,_49);return _6},isc.A.isPointInPath=function isc_DrawRect_isPointInPath(_1,_2,_3,_4){if(this.rounding!=0)return this.Super("isPointInPath",arguments);var _5=this.$136i(_1,_2),b=this.getBoundingBox(true,this.$145i),_7=this.hitTolerance;if(!(((b[0]-_7<=_5[0]&&_5[0]<=b[2]+_7)||(b[2]-_7<=_5[0]&&_5[0]<=b[0]+_7))&&((b[1]-_7<=_5[1]&&_5[1]<=b[3]+_7)||(b[3]-_7<=_5[1]&&_5[1]<=b[1]+_7))))
  {return false}
  if(!this.$125k()&&!this.eventOpaque){var _8=this.$125h()?this.lineWidth/2:0,_9=_8+_7;if(_9<=0)return false;var _10=this.left,_11=this.top;b[0]=_10;b[1]=_11;b[2]=_10+this.width;b[3]=_11+this.height;if(b[0]<=b[2]){b[0]+=_9;b[2]=Math.max(b[0],b[2]-_9)}else{b[2]+=_9;b[0]=Math.max(b[2],b[0]-_9)}
  if(b[1]<=b[3]){b[1]+=_9;b[3]=Math.max(b[1],b[3]-_9)}else{b[3]+=_9;b[1]=Math.max(b[3],b[1]-_9)}
  if(((b[0]<=_5[0]&&_5[0]<=b[2])||(b[2]<=_5[0]&&_5[0]<=b[0]))&&((b[1]<=_5[1]&&_5[1]<=b[3])||(b[3]<=_5[1]&&_5[1]<=b[1])))
  {return false}}
  return true},isc.A.setLeft=function isc_DrawRect_setLeft(_1){this.setRect(_1,this.top,this.width,this.height)},isc.A.setTop=function isc_DrawRect_setTop(_1){this.setRect(this.left,_1,this.width,this.height)},isc.A.setWidth=function isc_DrawRect_setWidth(_1){this.setRect(this.left,this.top,_1,this.height)},isc.A.setHeight=function isc_DrawRect_setHeight(_1){this.setRect(this.left,this.top,this.width,_1)},isc.A.setRect=function isc_DrawRect_setRect(_1,_2,_3,_4,_5,_6){if(_1==null)_1=this.left;if(_2==null)_2=this.top;if(_3==null)_3=this.width;if(_4==null)_4=this.height;var _7=false;if(this.left==_1&&this.top==_2&&this.width==_3&&this.height==_4)
  {_7=true;if(_5==null&&_6==null)return}
  if(_5==null||_6==null){var _8=this.$147l();if(_7&&(_5==null||_5==_8.cx)&&(_6==null||_6==_8.cy))
  {return}
  _5=_8.cx;_6=_8.cy}
  this.left=_1;this.top=_2;this.width=_3;this.height=_4;var _9=this.$147l();if(_7&&_5==_9.cx&&_6==_9.cy)
  {return}
  this.$147x(_5,_6,_9.cx,_9.cy);if(this.drawingVML){var _10=this.$154s;if(_5!=_9.cx||_6!=_9.cy){this.$1348=null;_10.setProperty("transform",this.$1339())}
  _10.setProperty("left",_1).setProperty("top",_2).setProperty("width",_3).setProperty("height",_4).flush()}else if(this.drawingSVG){var _11=this.$44z;if(_5!=_9.cx||_6!=_9.cy){this.$1348=null;var t=this.$1339();_11.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}
  _11.setAttributeNS(null,"x",_1);_11.setAttributeNS(null,"y",_2);_11.setAttributeNS(null,"width",_3);_11.setAttributeNS(null,"height",_4)}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.$147w=function isc_DrawRect__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(_4==null){_4=this}
  if(this.titleAutoFit&&!_1.isTranslate()){delete this.$184m}
  if(!_6&&_4.rounding==0){var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var _11=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_4.width,_4.height,!_7&&this.$125h()?this.lineWidth/2:0,this.$179h());if(_11.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);this.setRect(this.$1503(_11.left),this.$1503(_11.top),this.$1503(_11.width),this.$1503(_11.height),this.$1503(_9),this.$1503(_10));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)},isc.A.$147m=function isc_DrawRect__saveShape(){return{left:this.left,top:this.top,width:this.width,height:this.height,rounding:this.rounding}},isc.A.setRounding=function isc_DrawRect_setRounding(_1){this.rounding=_1;if(this.drawingVML){this.$154s.setProperty("arcsize",_1/2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"rx",(this.rounding?(this.rounding*Math.min(Math.abs(this.width),Math.abs(this.height))/2):null))}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.$184n=function isc_DrawRect__hasOnlyRightAngles(){return true},isc.A.$184j=function isc_DrawRect__getMaximalRects(){var _1=this.$184m;if(!_1||_1[0].width!=this.width||_1[0].height!=this.height){_1=this.$184m=[{left:this.$1503(-this.width/2),width:this.width,top:this.$1503(-this.height/2),height:this.height}];delete this.$184h}
  return _1});isc.B._maxIndex=isc.C+19;isc.DrawRect.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawOval","DrawItem");isc.A=isc.DrawOval.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.left=0;isc.A.top=0;isc.A.width=100;isc.A.height=100;isc.A.titleRotationMode="withItemAlwaysUp";isc.A.svgElementName="ellipse";isc.A.roundCoordinates=false;isc.A.$179j=true;isc.A.$154x=new isc.VMLRenderer.shapeConfig();isc.B.push(isc.A.init=function isc_DrawOval_init(){if(!this.radius)this.$63t();else this.$78s();this.Super("init",arguments)},isc.A.$165u=function isc_DrawOval__isClosed(){return true},isc.A.$78s=function isc_DrawOval__deriveRectFromRadius(){if(this.rx==null)this.rx=this.radius;if(this.ry==null)this.ry=this.radius;this.width=this.rx*2;this.height=this.ry*2;if(this.centerPoint!=null){this.left=this.centerPoint[0]-this.width/2;this.top=this.centerPoint[1]-this.height/2}else{this.centerPoint=new Array(2);this.centerPoint[0]=this.left+this.width/2;this.centerPoint[1]=this.top+this.height/2}},isc.A.$63t=function isc_DrawOval__deriveCenterPointFromRect(){this.centerPoint=new Array(2);var _1=(this.width/2)<<0,_2=(this.height/2)<<0;this.centerPoint[0]=this.left+_1;this.centerPoint[1]=this.top+_2;this.rx=_1;this.ry=_2},isc.A.$154t=function isc_DrawOval__renderVML(_1,_2,_3){var _4=this.$154x;isc.VMLRenderer.drawItemToShapeConfig(this,_4);this.$154s=_1.oval(_2,_4)},isc.A.getAttributesSVG=function isc_DrawOval_getAttributesSVG(){return"cx='"+this.centerPoint[0]+"' cy='"+this.centerPoint[1]+"' rx='"+this.rx+"' ry='"+this.ry+"'"},isc.A.getBoundingBox=function isc_DrawOval_getBoundingBox(_1,_2){var _3=(_2||new Array(4));_3[0]=this.left;_3[1]=this.top;_3[2]=this.left+this.width;_3[3]=this.top+this.height;return _1!=true?_3:this.$147b(true,false,_3)},isc.A.$147c=function isc_DrawOval__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=this.getBoundingBox(_2,_4);this.$147b(false,_3,_5);var _6=_5[0],_7=_5[1],_8=_5[2],_9=_5[3];var _10=(_6+_8)/2,_11=(_7+_9)/2,_12=Math.abs(_8-_6)/2,_13=Math.abs(_9-_7)/2;var _14=_1.m00,_15=_1.m01,_16=_1.m02,_17=_1.m10,_18=_1.m11,_19=_1.m12,_20=isc.Math.$101k(_12*_14,_13*_15),_21=isc.Math.$101k(_12*_17,_13*_18),_22=(_14*_10+_15*_11+_16),_23=(_17*_10+_18*_11+_19);_5[0]=_22-_20;_5[1]=_23-_21;_5[2]=_22+_20;_5[3]=_23+_21;return _5},isc.A.drawBitmapPath=function isc_DrawOval_drawBitmapPath(_1){var _2=isc.DrawItem.$147e;var _3=this.rx;var _4=this.ry;var _5=this.centerPoint[0];var _6=this.centerPoint[1];_1.moveTo(_5,_6-_4);_1.bezierCurveTo(_5+(_2*_3),_6-_4,_5+_3,_6-(_2*_4),_5+_3,_6);_1.bezierCurveTo(_5+_3,_6+(_2*_4),_5+(_2*_3),_6+_4,_5,_6+_4);_1.bezierCurveTo(_5-(_2*_3),_6+_4,_5-_3,_6+(_2*_4),_5-_3,_6);_1.bezierCurveTo(_5-_3,_6-(_2*_4),_5-(_2*_3),_6-_4,_5,_6-_4);_1.closePath()},isc.A.setLeft=function isc_DrawOval_setLeft(_1){this.setRect(_1,this.top,this.width,this.height)},isc.A.setTop=function isc_DrawOval_setTop(_1){this.setRect(this.left,_1,this.width,this.height)},isc.A.setWidth=function isc_DrawOval_setWidth(_1){this.setRect(this.left,this.top,_1,this.height)},isc.A.setHeight=function isc_DrawOval_setHeight(_1){this.setRect(this.left,this.top,this.width,_1)},isc.A.setRect=function isc_DrawOval_setRect(_1,_2,_3,_4,_5,_6){if(_1==null)_1=this.left;if(_2==null)_2=this.top;if(_3==null)_3=this.width;if(_4==null)_4=this.height;var _7=false;if(this.left==_1&&this.top==_2&&this.width==_3&&this.height==_4)
  {_7=true;if(_5==null&&_6==null)return}
  var _8=this.$1503(_3/2),_9=this.$1503(_4/2),_10=_1+_8,_11=_2+_9;if(_5==null||_6==null){var _12=this.$147l();if(_7&&(_5==null||_5==_12.cx)&&(_6==null||_6==_12.cy))
  {return}
  _5=_12.cx;_6=_12.cy}
  this.left=_1;this.top=_2;this.width=_3;this.height=_4;this.centerPoint[0]=_10;this.centerPoint[1]=_11;this.rx=_8;this.ry=_9;var _13=this.$147l();if(_7&&_5==_13.cx&&_6==_13.cy)
  {return}
  this.$147x(_5,_6,_13.cx,_13.cy);if(this.drawingVML){var _14=this.$154s;if(_5!=_13.cx||_6!=_13.cy){this.$1348=null;_14.setProperty("transform",this.$1339())}
  _14.setProperty("left",_1).setProperty("top",_2).setProperty("width",_3).setProperty("height",_4).flush()}else if(this.drawingSVG){var _15=this.$44z;if(_5!=_13.cx||_6!=_13.cy){this.$1348=null;var t=this.$1339();_15.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}
  _15.setAttributeNS(null,"rx",_8);_15.setAttributeNS(null,"ry",_9);_15.setAttributeNS(null,"cx",_10);_15.setAttributeNS(null,"cy",_11)}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.$147w=function isc_DrawOval__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(!_6){if(_4==null){_4=this}
  var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var _11=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_4.width,_4.height,!_7&&this.$125h()?this.lineWidth/2:0,this.$179h());if(_11.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);this.setRect(this.$1503(_11.left),this.$1503(_11.top),this.$1503(_11.width),this.$1503(_11.height),this.$1503(_9),this.$1503(_10));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)},isc.A.$147m=function isc_DrawOval__saveShape(){return{left:this.left,top:this.top,width:this.width,height:this.height}},isc.A.getRadiusX=function isc_DrawOval_getRadiusX(){return this.rx},isc.A.getRadiusY=function isc_DrawOval_getRadiusY(){return this.ry},isc.A.setRadii=function isc_DrawOval_setRadii(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.setOval(this.centerPoint[0],this.centerPoint[1],_1,_2)},isc.A.setRadius=function isc_DrawOval_setRadius(_1){this.setRadii(_1,_1)},isc.A.setOval=function isc_DrawOval_setOval(_1,_2,_3,_4){if(_1==null)_1=this.centerPoint[0];if(_2==null)_2=this.centerPoint[1];if(_3==null)_3=this.rx;if(_4==null)_4=this.ry;this.setRect(_1-_3,_2-_4,2*_3,2*_4)},isc.A.getCenter=function isc_DrawOval_getCenter(){return this.centerPoint.duplicate()});isc.B._maxIndex=isc.C+22;isc.DrawOval.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawSector","DrawItem");isc.A=isc.DrawSector;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getArcMidpoint=function isc_c_DrawSector_getArcMidpoint(_1,_2,_3,_4,_5){var _6=(_3+_4)/2;return[_1+_5*isc.Math.cosdeg(_6),_2+_5*isc.Math.sindeg(_6)]});isc.B._maxIndex=isc.C+1;isc.A=isc.DrawSector.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showTitleLabelBackground=true;isc.A.centerPoint=[0,0];isc.A.startAngle=0.0;isc.A.endAngle=20.0;isc.A.radius=100;isc.A.$150e=false;isc.A.svgElementName="path";isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.A.$154y=new isc.VMLRenderer.shapeConfig();isc.B.push(isc.A.init=function isc_DrawSector_init(){this.Super("init",arguments);this.centerPoint=this.centerPoint.duplicate()},isc.A.$165u=function isc_DrawSector__isClosed(){return true},isc.A.getBoundingBox=function isc_DrawSector_getBoundingBox(_1,_2){var _3=this.$125w,_4=this.centerPoint,_5=this.radius,_6=this.startAngle,_7=this.endAngle,_8=(_7-_6),_9=(_8>=360||(_8!=0&&Math.round(_8)%360==0)),_10=0,_11=0,_12=0,_13=0;if(_9){_10=_12=-1;_11=_13=1}else{if(!(0<=_6&&_6<360)){_6=(360+(_6%360))%360}
  if(!(0<=_7&&_7<360)){_7=(360+(_7%360))%360}
  var _14=(_6>_7);if(_14?(_6<270||270<_7):(_6<270&&270<_7)){_10=-1}else{_10=Math.min(0,Math.sin(_3*_6),Math.sin(_3*_7))}
  if(_14?(_6<90||90<_7):(_6<90&&90<_7)){_11=1}else{_11=Math.max(0,Math.sin(_3*_6),Math.sin(_3*_7))}
  if(_14?(_6<180||180<_7):(_6<180&&180<_7)){_12=-1}else{_12=Math.min(0,Math.cos(_3*_6),Math.cos(_3*_7))}
  if(_14){_13=1}else{_13=Math.max(0,Math.cos(_3*_6),Math.cos(_3*_7))}}
  var _15=(_2||new Array(4));_15[0]=_4[0]+_5*_12;_15[1]=_4[1]+_5*_10;_15[2]=_4[0]+_5*_13;_15[3]=_4[1]+_5*_11;return _1!=true?_15:this.$147b(true,false,_15)},isc.A.$147c=function isc_DrawSector__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=this.$125w,_6=this.centerPoint,_7=this.radius,_8=this.startAngle,_9=this.endAngle,_10=(_9-_8),_11=(_10>=360||(_10!=0&&Math.round(_10)%360==0));var _12=_6[0],_13=_6[1];var _14=_1.m00,_15=_1.m01,_16=_1.m02,_17=_1.m10,_18=_1.m11,_19=_1.m12,_20=isc.Math.$101k(_14,_15),_21=_7*_20,_22=isc.Math.$101k(_17,_18),_23=_7*_22,_24=(_14*_12+_15*_13+_16),_25=(_17*_12+_18*_13+_19),_26=_24-_21,_27=_25-_23,_28=_24+_21,_29=_25+_23;var _30=_4||new Array(4);if(_11){_30[0]=_26;_30[1]=_27;_30[2]=_28;_30[3]=_29}else{var _31=_12+_7*Math.cos(_8*_5),_32=_13+_7*Math.sin(_8*_5),_33=_12+_7*Math.cos(_9*_5),_34=_13+_7*Math.sin(_9*_5),_35=_14*_31+_15*_32+_16,_36=_17*_31+_18*_32+_19,_37=_14*_33+_15*_34+_16,_38=_17*_33+_18*_34+_19,_39=Math.atan2(_36-_25,_35-_24),_40=Math.atan2(_38-_25,_37-_24),_41=Math.min(_35,_37,_24),_42=Math.min(_36,_38,_25),_43=Math.max(_35,_37,_24),_44=Math.max(_36,_38,_25);var _45=_26;_26=Math.min(_26,_41);_41=Math.max(_45,_41);_45=_27;_27=Math.min(_27,_42);_42=Math.max(_45,_42);_45=_43;_43=Math.min(_43,_28);_28=Math.max(_45,_28);_45=_44;_44=Math.min(_44,_29);_29=Math.max(_45,_29);var _46=_7*(_14*_17+_15*_18),_47=(_20<=0?0:(_46/_20)),_48=(_22<=0?0:(_46/_22)),_49=(_25-_47),_50=(_24-_48),_51=(_25+_47),_52=(_24+_48),_53=Math.atan2(_49-_25,_26-_24),_54=Math.atan2(_27-_25,_50-_24),_55=Math.atan2(_51-_25,_28-_24),_56=Math.atan2(_29-_25,_52-_24);var _57=(_39>_40);if(_57?(_39<_53||_53<_40):(_39<_53&&_53<_40))
  {_30[0]=_26}else{_30[0]=_41}
  if(_57?(_39<_54||_54<_40):(_39<_54&&_54<_40))
  {_30[1]=_27}else{_30[1]=_42}
  if(_57?(_39<_55||_55<_40):(_39<_55&&_55<_40))
  {_30[2]=_28}else{_30[2]=_43}
  if(_57?(_39<_56||_56<_40):(_39<_56&&_56<_40))
  {_30[3]=_29}else{_30[3]=_44}}
  var _58=(_2&&this.$125h()?(this.lineWidth/2):0),_59=(_3?this.hitTolerance:0),_60=_58+_59,_61=_20*_60,_62=_22*_60;_30[0]-=_61;_30[1]-=_62;_30[2]+=_61;_30[3]+=_62;return _30},isc.A.$830=function isc_DrawSector__normalizeLinearGradient(_1){var _2=this.centerPoint,_3=this.radius,_4=[_2[0],_2[1],_2[0]+_3,_2[1]+_3];return isc.DrawItem.$830(_1,_4)},isc.A.$831=function isc_DrawSector__normalizeRadialGradient(_1){var _2=this.getCenter(),_3=this.radius,_4=[_2[0],_2[1],_2[0]+_3,_2[1]+_3];return isc.DrawItem.$831(_1,_4,_2)},isc.A.getCenter=function isc_DrawSector_getCenter(){return this.centerPoint.duplicate()},isc.A.getArcMidpoint=function isc_DrawSector_getArcMidpoint(){return isc.DrawSector.getArcMidpoint(this.centerPoint[0],this.centerPoint[1],this.startAngle,this.endAngle,this.radius)},isc.A.$154t=function isc_DrawSector__renderVML(_1,_2,_3){var _4=this.$154y;isc.VMLRenderer.drawItemToShapeConfig(this,_4);this.$154s=_1.shape(_2,_4)},isc.A.$126a=function isc_DrawSector__getPathVML(_1){var _2=this.centerPoint,_3=_2[0],_4=_2[1],r=this.radius,_6=this.startAngle,_7=(this.endAngle-_6),_8=(_7>=360||(_7!=0&&Math.round(_7)%360==0));if(_8){_7=360}else{_7=(360+(_7%360))%360;if(_7<0){_6=-_6;_7=360-_7}}
  if(_8&&this.$150e){_1.al(_3,_4,r,r,0,360)}else{_1.m(_3,_4);_1.ae(_3,_4,r,r,-_6,-_7);_1.x()}},isc.A.getAttributesSVG=function isc_DrawSector_getAttributesSVG(){return"d='"+this.getPathSVG()+"'"},isc.A.getPathSVG=function isc_DrawSector_getPathSVG(){var _1=this.startAngle*this.$125w,_2=this.endAngle*this.$125w,_3=(this.endAngle-this.startAngle),_4=this.radius,_5=this.centerPoint[0],_6=this.centerPoint[1],_7=((360+(_3%360))%360>180?"1":"0"),_8=(_3>=360||(_3!=0&&Math.round(_3)%360==0)),c=Math.cos(_1),s=Math.sin(_1),_11=_5+_4*c,_12=_6+_4*s;if(_8){var _13=_5-_4*c,_14=_6-_4*s,_15=isc.StringBuffer.create();if(this.$150e){_15.append("M",_11," ",_12)}else{_15.append("M",_5," ",_6," L",_11," ",_12)}
  _15.append(" A",_4," ",_4," 0 ",_7," 1 ",_13," ",_14," A",_4," ",_4," 0 ",_7," 1 ",_11," ",_12," Z");return _15.release(false)}else{var _13=_5+_4*Math.cos(_2),_14=_6+_4*Math.sin(_2);return isc.SB.concat("M",_5," ",_6," L",_11," ",_12," A",_4," ",_4," 0 ",_7," 1 ",_13," ",_14," Z")}},isc.A.drawBitmapPath=function isc_DrawSector_drawBitmapPath(_1){var _2=this.startAngle*this.$125w,_3=this.endAngle*this.$125w,_4=this.radius,x=this.centerPoint[0],y=this.centerPoint[1];var _7=this.$150e;if(_7){var _8=(this.endAngle-this.startAngle);_7=(_8>=360||(_8!=0&&Math.round(_8)%360==0))}
  if(_7){this.bmMoveTo(x+_4,y,_1);this.bmArc(x,y,_4,0,Math.PI,_1);this.bmArc(x,y,_4,Math.PI,2*Math.PI,_1)}else{this.bmMoveTo(x,y,_1);this.bmArc(x,y,_4,_2,_3,_1)}
  _1.closePath()});isc.B._maxIndex=isc.C+13;isc.DrawSector.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawLabel","DrawItem");isc.A=isc.DrawLabel;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.defaultCursiveFont="Zapf-Chancery";isc.A.defaultFantasyFont="Western";isc.A.defaultMonospaceFont="Courier";isc.A.defaultSansSerifFont="Helvetica";isc.A.defaultSerifFont="Times";isc.A.suppressArbitraryRotationWarning=false;isc.A.$165b=/\r\n|\r|\n/g;isc.B.push(isc.A.$140f=function isc_c_DrawLabel__checkRotation(_1){if(!this.suppressArbitraryRotationWarning&&_1){_1=((_1%360)+360)%360;if(_1!=0&&_1!=90){this.logWarn("Arbitrary rotation is not supported in IE8 and earlier. Only rotation by 0 or 90 degrees is supported.");this.suppressArbitraryRotationWarning=true}}});isc.B._maxIndex=isc.C+1;isc.A=isc.DrawLabel;isc.A.START="start";isc.A.END="end";isc.A.CENTER="center";isc.A.LEFT="left";isc.A.RIGHT="right";isc.A=isc.DrawLabel.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.escapeContents=true;isc.A.left=0;isc.A.top=0;isc.A.alignment=isc.DrawLabel.START;isc.A.fontFamily="Tahoma";isc.A.fontSize=18;isc.A.fontWeight="bold";isc.A.fontStyle="normal";isc.A.styleName="normal";isc.A.eventOpaque=false;isc.A.roundCoordinates=false;isc.A.$179j=true;isc.A.isPointInPath=isc.DrawItem.getInstanceProperty("isInBounds");isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.A.useTextpath=true;isc.A.$165o=new isc.VMLRenderer.shapeConfig();isc.A.$95="NOBR";isc.A.$154z={width:0,height:0};isc.A.$44l=isc.Class.NO_OP;isc.B.push(isc.A.setEscapeContents=function isc_DrawLabel_setEscapeContents(_1){this.escapeContents=_1;var _2=this.contents;this.contents=null;this.setContents(_2)},isc.A.setStyleName=function isc_DrawLabel_setStyleName(_1){this.styleName=_1;if(this.drawingSVG){this.$44z.setAttributeNS(null,"class",_1);this.$143s()}},isc.A.init=function isc_DrawLabel_init(){this.$142l();this.$142m();this.exemptFromGlobalTransform=false;this.Super("init",arguments);if(!this.useTextpath&&this.suppressArbitraryRotationWarning!=true){isc.DrawLabel.$140f(this.rotation)}},isc.A.setCursor=function isc_DrawLabel_setCursor(_1){this.Super("setCursor",arguments);if(this.$45c!=null){this.$45c.setCursor(_1)}},isc.A.setCanDrag=function isc_DrawLabel_setCanDrag(_1){this.Super("setCanDrag",arguments);if(this.$45c!=null){this.$45c.setProperty("canDragReposition",_1)}},isc.A.setDragRepositionCursor=function isc_DrawLabel_setDragRepositionCursor(_1){this.Super("setDragRepositionCursor",arguments);if(this.$45c!=null){this.$45c.setProperty("dragRepositionCursor",_1)}},isc.A.$181z=function isc_DrawLabel__getLocaleIndependentAlignment(){var _1=this.$1661?"left":this.alignment;if(_1!="start"&&_1!="end")return _1;var _2=this.drawPane?this.drawPane.isRTL():isc.Page.isRTL();if(_1=="start")_1=_2?"right":"left";else if(_1=="end")_1=_2?"left":"right";return _1},isc.A.$1810=function isc_DrawLabel__getAlignmentInLocale(){var _1=this.$1661?"left":this.alignment;if(_1!="left"&&_1!="right")return _1;var _2=this.drawPane?this.drawPane.isRTL():isc.Page.isRTL();if(_1=="left")_1=_2?"end":"start";else if(_1=="right")_1=_2?"start":"end";return _1},isc.A.$44v=function isc_DrawLabel__getElementVML(_1,_2,_3){if(this.useTextpath){return this.Super("$44v",arguments)}else if(this.synchTextMove){var _4=isc.DrawPane.$167b(this.fontFamily);_1.append(this.drawPane.startTagVML("RECT")," ID='",_2,"' STYLE='position:absolute;left:",this.left*this.drawPane.$1259,"px; top:",this.top*this.drawPane.$1259,(this.alignment?"px; text-align:"+(this.alignment=="start"?"left":"right"):"px"),";'>",this.drawPane.startTagVML("TEXTBOX")," INSET='0px, 0px, 0px, 0px' STYLE=",_4,"overflow:visible","; font-size:",this.fontSize*this.drawPane.zoomLevel,"px; font-weight:",this.fontWeight,"; font-style:",this.fontStyle,"; font-family:",this.fontFamily,";",_4,"><NOBR style='color:",this.lineColor,"'>",this.contents==null?null:String(this.contents).asHTML(),"</NOBR>",this.drawPane.endTagVML("TEXTBOX"),this.drawPane.endTagVML("RECT"))}else if(_3==null){var _5=this.drawPane.viewbox2global([this.left,this.top,0,0]),_6=_5[0],_7=_5[1],_8=this.drawPane.measureLabel(this.contents,this),_9=(((this.rotation==null?0:this.rotation)%360)+360)%360,_10=_9!=0;if(_10){if(isc.Browser.isIE&&isc.Browser.version>=7&&isc.Browser.isStrict){if(_9>180)_6+=_8.height}else{if(_9<=180)_6-=_8.height}
  if(_9>180){_7-=_8.width}}
  var _4=isc.DrawPane.$167b(this.fontFamily);_1.append("<DIV ID='",_2,"' STYLE=",_4,"position:absolute; overflow:visible; width:1px; height:1px","; left:",_6,"px; top:",_7,"px",(_10?";writing-mode: tb-rl":""),"; font-size:",(this.fontSize*this.drawPane.zoomLevel),"px; font-weight:",this.fontWeight,"; font-style:",this.fontStyle,"; font-family:",this.fontFamily,";",_4,"><NOBR style='color:",this.lineColor,"'>",this.contents==null?null:String(this.contents).asHTML(),"</NOBR></DIV>")}else{_3.drawLabelsAccumulator.add(this)}},isc.A.$154t=function isc_DrawLabel__renderVML(_1,_2,_3){var _4=this.$165o;isc.VMLRenderer.drawItemToShapeConfig(this,_4);_4.stroked=false;_4.filled=true;_4.fillColor=this.lineColor;_4.fontSize=this.fontSize+"px";this.$154s=_1.text(_2,_4)},isc.A.$125u=function isc_DrawLabel__getVMLTextHandle(){var _1=this.$44j;if(_1!=null)return _1;var _2=this.$125f();if(_2==null)return null;if(this.synchTextMove){_1=_2.firstChild.style}else{_1=_2.style}
  return(this.$44j=_1)},isc.A.getSvgString=function isc_DrawLabel_getSvgString(_1){_1=_1||isc.SVGStringConversionContext.create();var _2=this.top,_3=this.left,_4=this.rotation,y=_1.$166j!==false||isc.Browser.isOpera||isc.Browser.isIE?_2+this.$1844():_2,_6=isc.DrawPane.$167b(this.fontFamily),_7="<text";var _8=this.$1620();if(_8!=null)_7+=" id='"+_8+"'";if(!_1.printForExport){_7+=" "+this.$169a()}
  _7+=" x='"+_3+"' y='"+y;if(this.styleName)_7+="' class='"+this.styleName;_7+="' style="+_6;if(this.fontSize)_7+=";font-size:"+this.fontSize+"px";if(this.fontStyle)_7+=";font-style:"+this.fontStyle;if(this.fontWeight)_7+=";font-weight:"+this.fontWeight;if(this.fontFamily)_7+=";font-family:"+this.fontFamily;if(this.lineColor)_7+=";fill:"+this.lineColor;_7+=_6+" dominant-baseline='text-before-edge";if(this.shadow){var _9=this.$169m();if(!_1.defSvgStrings[_9]){_1.defSvgStrings[_9]=this.$169n(_9,this.shadow)}
  _7+="' filter='url(#"+_9+")"}
  if(_4){var t=this.getTransform();_7+="' transform='matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")"}
  _7+="'";var _11=this.getAttributesSVG();if(_11)_7+=" "+_11;var _12=this.$1810();if(_12=="start")_7+=" text-anchor='start'";else if(_12=="center")_7+=" text-anchor='middle'";else if(_12=="end")_7+=" text-anchor='end'";_7+=">"+this.$165w(_3)+"</text>";return _7},isc.A.$165w=function isc_DrawLabel__getInnerSvgString(_1){var _2=this.contents;if(_2==null)return"";_2=String(_2);var _3=this.$142n,_4;if(_3==null||(_4=_3.length)<=1){return this.escapeContents?isc.makeXMLSafe(_2):_2}else{var _5="",_6=this.$142o;for(var i=0,j=0;i<_4;++i){var _9=_3[i];if(_9==""){++j}else{_5+=("<tspan x='"+_1+"' dy='"+(_6*j)+"'>"+isc.makeXMLSafe(_9)+"</tspan>");j=1}}
  return _5}},isc.A.$108z=function isc_DrawLabel__moveTo(_1,_2,_3,_4){if(_1==null)_1=this.left;if(_2==null)_2=this.top;var _5=false;if(this.left==_1&&this.top==_2)
  {_5=true;if(_3==null&&_4==null)return}
  if(_3==null||_4==null){var _6=this.$147l();if(_5&&(_3==null||_3==_6.cx)&&(_4==null||_4==_6.cy))
  {return}
  _3=_6.cx;_4=_6.cy}
  this.left=_1;this.top=_2;var _7=this.$147l();if(_5&&_3==_7.cx&&_4==_7.cy)
  {return}
  this.$147x(_3,_4,_7.cx,_7.cy);if(this.drawingVML){if(this.useTextpath){var _8=this.$154s;if(_3!=_7.cx||_4!=_7.cy){this.$1348=null;_8.setProperty("transform",this.$1339())}
  _8.setProperty("left",this.left).setProperty("top",this.top).flush()}else{var _9=this.$125f().style;if(this.synchTextMove){_9.left=(this.left*this.drawPane.$1259)+isc.px;_9.top=(this.top*this.drawPane.$1259)+isc.px}else{_9.left=this.left+isc.px;_9.top=this.top+isc.px}}}else if(this.drawingSVG){var _10=this.$44z;if(_3!=_7.cx||_4!=_7.cy){this.$1348=null;var t=this.$1339();_10.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}
  var _1=this.left,_2=this.top;if(isc.Browser.isOpera||isc.Browser.isIE){_2+=this.$1844()}
  _10.setAttributeNS(null,"x",_1);_10.setAttributeNS(null,"y",_2);var _12=_10.childNodes,_13=_12.length;for(var i=0;i<_13;++i){var _15=_12[i];if(_15.nodeType!=1||_15.nodeName!="tspan")continue;_15.setAttributeNS(null,"x",_1)}}else if(this.drawingBitmap){if(this.$129x()){if(this.$45c!=null){this.$1348=null;isc.Element.$136r(this.$45c,this.$45c.$136u())}}else{this.drawPane.redrawBitmap()}}
  this.$143s()},isc.A.$147w=function isc_DrawLabel__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(_4==null){_4=this}
  if(!_6){var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var m=_4.$1540(true,true),_12=m.width,_13=m.height,_14=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_12,_13,0,this.$179h());if(_14.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);var _15=(_14.width-_12)/2,_16=(_14.height-_13)/2;this.$108z(this.$1503(_14.left+_15),this.$1503(_14.top+_16),this.$1503(_9+_15),this.$1503(_10+_16));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)},isc.A.rotateBy=function isc_DrawLabel_rotateBy(_1){if(this.useTextpath){return this.Super("rotateBy",arguments)}else{this.rotateTo(+this.rotation+_1)}},isc.A.rotateTo=function isc_DrawLabel_rotateTo(_1){if(this.useTextpath){return this.Super("rotateTo",arguments)}else{isc.DrawLabel.$140f(_1);this.rotation=_1;this.$1586()}},isc.A.getCenter=function isc_DrawLabel_getCenter(){var m=this.$1540(true,true),_2=m.width,_3=m.height;return[this.left+this.$1503(_2/2),this.top+this.$1503(_3/2)]},isc.A.getBoundingBox=function isc_DrawLabel_getBoundingBox(_1,_2){var m=this.$1540(true,true),_4=m.width,_5=m.height,_6=(_2||new Array(4));_6[1]=this.top;_6[3]=this.top+_5;var _7=this.left,_8=this.$181z();switch(_8){case"center":_6[0]=_7-_4/2;_6[2]=_7+_4/2;break;case"right":_6[0]=_7-_4;_6[2]=_7;break;default:_6[0]=_7;_6[2]=_7+_4;break}
  return _6},isc.A.$129y=function isc_DrawLabel__getHtmlTextContents(){var _1;if(this.contents!=null){_1=String(this.contents).replace(isc.DrawPane.$156w,"\u0020").asHTML()}
  var _2=isc.DrawPane.$167b(this.fontFamily);return isc.SB.concat("<div style=",_2,"font-weight:",this.fontWeight,";text-align:",this.$181z(),";font-size:",this.fontSize,"px;font-style:",this.fontStyle,";white-space:pre;font-family:",this.fontFamily,_2,">",_1,"</div>")},isc.A.makeHTMLText=function isc_DrawLabel_makeHTMLText(){var _1=this.$45c=isc.HTMLFlow.create({creator:this,left:0,top:0,width:1,height:1,cursor:this.cursor,canDragReposition:this.canDrag,dragAppearance:"target",dragRepositionCursor:this.dragRepositionCursor,contents:this.$129y(),canSelectText:false,textColor:this.lineColor,autoDraw:false,$136u:function(){var _2=this.creator,_3=_2.drawPane;var _4=" translate("+_2.left+"px, "+_2.top+"px)";if(this.isDrawn()){var t=_2.$1486("local","global");var _6=_2.$181z();if(_6!="left"){var _7=_2.getTextWidth();if(_6=="center")_7/=2;t.translate(Math.round(-_7),0)}
  var _8=7;_4=" matrix("+t.m00.toFixed(_8)+", "+t.m10.toFixed(_8)+", "+t.m01.toFixed(_8)+", "+t.m11.toFixed(_8)+", "+t.m02.toFixed(_8)+", "+t.m12.toFixed(_8)+")"+_4;_4="translate("+_3.getLeftPadding()+"px, "+_3.getTopPadding()+"px)"+_4}
  return _4},getTransformCSS:function(){var _4=this.$136u();return(";"+isc.Element.$159t+":"+_4+";"+isc.Element.$1388+":0 0;")},dragRepositionStop:function(){var _2=this.creator,_3=_2.drawPane;var t=(_3.$147h().duplicate().translate(this.getLeft(),this.getTop()).rightMultiply(_3.$1338()));_2.moveBy(t.m02,t.m12);this.moveTo(0,0)}});this.drawPane.addChild(_1);this.$1348=null;isc.Element.$136r(this.$45c,this.$45c.$136u())},isc.A.$129x=function isc_DrawLabel__useHTML(){return this.drawingBitmap&&(this.useHTML!=null?this.useHTML:isc.Browser.isIPhone)},isc.A.drawBitmap=function isc_DrawLabel_drawBitmap(_1){var _2=this.drawPane.$150w;if((_2==null||_2.$166k==null)&&this.$129x()){if(this.$45c==null){this.makeHTMLText()}else{isc.Element.$136r(this.$45c,this.$45c.$136u())}}else{this.Super("drawBitmap",arguments)}},isc.A.erase=function isc_DrawLabel_erase(){if(this.$45c!=null)this.$45c.destroy();this.Super("erase",arguments)},isc.A.destroy=function isc_DrawLabel_destroy(){if(this.$45c!=null)this.$45c.destroy();this.Super("destroy",arguments)},isc.A.getFontString=function isc_DrawLabel_getFontString(){return(this.fontStyle!="normal"?this.fontStyle+" ":"")+(this.fontWeight!="normal"?this.fontWeight+" ":"")+this.fontSize+"px "+this.fontFamily},isc.A.$104w=function isc_DrawLabel__calculateAlignMiddleCorrection(){if(!(isc.Browser.isFirefox&&isc.Browser.hasCANVAS&&this.$104x!=false))
  {return 0}
  var _1=this.drawPane.$104y;if(_1==null){_1=this.drawPane.$104y={}}
  var _2=this.getFontString();if(_1.hasOwnProperty(_2)){return _1[_2]}
  var _3="The quick, brown fox",_4=this.drawPane.measureLabel(_3,this),_5=_4.height;var _6=isc.DrawPane.$104v();_6.setContents("<CANVAS></CANVAS>");_6.redraw();var _7=_6.getHandle().getElementsByTagName("canvas")[0],_8=_7.getContext("2d");_8.font=_2;var _9=_8.measureText(_3),_10=_9.width,_11=_8.canvas.width=Math.ceil(_10),_12=_8.canvas.height=Math.ceil(3*_5);_8.font=_2;_8.textBaseline="top";_8.fillText(_3,0,_5);var _13=_8.getImageData(0,0,_11,_12),_14=_13.data,_15=0,_16=0;for(var i=_14.length-4;i>0;i-=4){if(_14[i+3]){_16=Math.floor(i/(4*_11));break}};for(var i=0,_18=_14.length;i<_18;i+=4){if(_14[i+3]){_15=Math.floor(i/(4*_11));break}}
  var _19=_16-_15;return(_1[_2]=Math.round((_5-_19)/2))},isc.A.drawBitmapPath=function isc_DrawLabel_drawBitmapPath(_1){_1.textBaseline="top";_1.font=this.getFontString();_1.fillStyle=this.lineColor;_1.textAlign=this.$1661?"left":this.alignment;var _2=this.top+this.$104w();if(this.$142n==null){this.bmFillText(this.contents,this.left,_2,_1)}else{var _3=this.$142o;if(_3==null)_3=this.$142m(true);for(var i=this.$142n.length;i--;){this.bmFillText(this.$142n[i],this.left,_2+i*_3,_1)}}},isc.A.$142m=function isc_DrawLabel__setLineHeight(_1){if(_1||(!this.drawingVML&&(this.drawingBitmap||this.drawingSVG||(this.drawPane&&(this.drawPane.drawingType=="bitmap"||this.drawPane.drawingType=="svg")))&&!this.$129x()))
  {this.$142o=(this.drawPane.measureLabel("Xy\nXy",this).height-
  this.drawPane.measureLabel("Xy",this).height)}
  return this.$142o},isc.A.setLineColor=function isc_DrawLabel_setLineColor(_1){this.lineColor=_1;if(this.drawingVML){if(this.useTextpath){this.$154s.setProperty("fillColor",_1).flush()}else{var _2=this.$125f().firstChild;while(_2!=null&&_2.tagName!=this.$95){_2=_2.firstChild}
  if(_2!=null)_2.style.color=_1}}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"fill",_1)}else if(this.drawingBitmap){if(this.$129x()){if(this.$45c!=null){this.$45c.setTextColor(_1)}}else{this.drawPane.redrawBitmap()}}},isc.A.setContents=function isc_DrawLabel_setContents(_1,_2){if(this.contents==_1)return;this.contents=_1;this.$142l();if(this.drawingVML){if(this.useTextpath){this.$154s.setProperty("contents",_1).flush()}else{var _3=this.$125f().firstChild;while(_3!=null&&_3.tagName!=this.$95){_3=_3.firstChild}
  if(_3!=null)_3.innerText=_1}}else if(this.drawingSVG){var _4=this.left,_5=this.$44z,_6=this.$142n,_7;if(_6==null||(_7=_6.length)<=1){if(this.escapeContents){_5.textContent=(_1==null?"":String(_1))}else{_5.innerHTML=_1}}else{var _8;while((_8=_5.lastChild)!=null){_5.removeChild(_8)}
  if(_5.insertAdjacentHTML!=null){_5.insertAdjacentHTML("beforeend",this.$165w(_4))}else{var _9=this.drawPane.$162s(),_10=this.$142o;for(var i=0,j=1;i<_7;++i){var _13=_6[i];if(_13==""){++j}else{var _14=_9.createElementNS(isc.$100g,"tspan");_14.setAttributeNS(null,"x",_4);_14.setAttributeNS(null,"dy",_10*j);_14.textContent=_13;_5.appendChild(_14);j=1}}}}}else if(this.drawingBitmap){if(this.$129x()){if(this.$45c!=null){this.$45c.setContents(this.$129y())}}else{this.drawPane.redrawBitmap()}}
  this.$143s()},isc.A.$142l=function isc_DrawLabel__setContentLines(){this.$142n=null;var _1=this.contents;if(!isc.isA.String(_1)){return}
  if(!this.drawingVML&&this.escapeContents&&(this.drawingBitmap||this.drawingSVG||(this.drawPane&&(this.drawPane.drawingType=="bitmap"||this.drawPane.drawingType=="svg")))&&!this.$129x())
  {var _2=isc.DrawLabel.$165b;_2.lastIndex=0;if(_2.test(_1)){this.$142n=_1.split(_2)}}},isc.A.$1540=function isc_DrawLabel__getTextMeasurements(_1,_2){var _3=this.$154z;if(!(this.drawingVML||this.drawingSVG||this.drawingBitmap)){var m=this.drawPane.measureLabel(this.contents,this);if(_1)_3.width=m.width;if(_2)_3.height=m.height;return _3}
  if(this.drawingVML){if(this.useTextpath){var m=this.drawPane.measureLabel(this.contents,this);if(_1)_3.width=m.width;if(_2)_3.height=m.height}else{var _5=this.$125f();if(this.synchTextMove){var _6=_5.firstChild;if(_1)_3.width=_6.scrollWidth;if(_2)_3.height=_6.scrollHeight}else{var _7=(((this.rotation||0)%360)+360)%360;if(_7!=0){if(_1)_3.width=_5.scrollHeight;if(_2)_3.height=_5.scrollWidth}else{if(_1)_3.width=_5.scrollWidth;if(_2)_3.height=_5.scrollHeight}}}}else if(this.drawingSVG&&(this.drawPane.$150w==null||this.drawPane.$150w.$166k==null))
  {if(!this.escapeContents){_3.width=_3.height=0}else if(this.$44z){if(_1&&!_2&&(this.$142n==null||this.$142n.length<=1))
  {_3.width=this.$44z.getComputedTextLength()}else{var _8=this.$44z.getBBox();if(_1)_3.width=_8.width;if(_2)_3.height=_8.height}}else{var m=this.drawPane.measureLabel(this.contents,this);if(_1)_3.width=m.width;if(_2)_3.height=m.height}}else{var _9=this.drawPane.$150w;if((_9==null||_9.$166k==null)&&this.$129x())
  {if(this.$45c==null)this.makeHTMLText();var _10=this.$45c;if(!_10.isDrawn()&&!this.$189u){this.$189u=true;this.logWarn("When rendering a DrawLabel via HTML, trying to calculate text dimensions before the HTML is drawn may yield inaccurate results")}
  if(_1)_3.width=_10.getScrollWidth();if(_2)_3.height=_10.getScrollHeight()}else{var _11,_12;if(_9!=null&&(_11=_9.$166k)!=null)
  {_12=false}else{_11=this.drawPane.getBitmapContext(true);_12=true}
  var _13=this.getFontString();_11.font=_13;var _14=this.$142n,_15=0,_16=0;if(_14==null){var m=_11.measureText(this.contents);_15=m.width;_16=m.height}else{var _17=this.$142o,_18=_14.length;if(_1){for(var i=0;i<_18;++i){var m=_11.measureText(_14[i]),_20=m.width,_21=m.height;if(i==0||_20>_15){_15=_20}}}
  _16=_18*_17}
  if(_12){_11.restore()}
  _3.width=_15;_3.height=_16||this.fontSize}}
  return _3},isc.A.getTextWidth=function isc_DrawLabel_getTextWidth(){return this.$1540(true,false).width},isc.A.getTextHeight=function isc_DrawLabel_getTextHeight(){return this.$1540(false,true).height},isc.A.setFontSize=function isc_DrawLabel_setFontSize(_1,_2){if(_1<=0)_1=null;if(_1==this.fontSize||_1==null&&!this.drawingSVG&&(!this.drawPane||this.drawPane.drawingType!="svg"))
  {return}
  this.fontSize=_1;this.$142m();if(this.drawingVML){if(this.useTextpath){this.$154s.setProperty("fontSize",_1+"px").flush()}else{this.$125u().fontSize=(_1*this.drawPane.zoomLevel)+"px"}}else if(this.drawingSVG){var _3=this.$44z.style;if(_3&&_3.setProperty){_3.setProperty("font-size",_1?_1+"px":null)}}else if(this.drawingBitmap){if(this.$129x()){if(this.$45c!=null){this.$45c.setContents(this.$129y())}}else{if(_2!==false)this.drawPane.redrawBitmap()}}
  this.$143s();if(_2!==false&&this.$1661&&this.masterElement){this.masterElement.$166z()}},isc.A.$1844=function isc_DrawLabel__getFontSize(){if(this.fontSize)return this.fontSize;if(this.drawingSVG||(this.drawPane&&this.drawPane.drawingType=="svg")){var _1=isc.Element.getStyleDeclaration(this.styleName);if(_1&&_1.fontSize&&_1.fontSize.endsWith("px")){var _2=parseInt(_1.fontSize);if(isc.isA.Number(_2))return _2}}
  return 0},isc.A.$186l=function isc_DrawLabel__calculateFontSizeForTitleFit(_1,_2,_3,_4,_5){var _6=Math.max(1,Math.floor(this.fontSize*_4));var _7,_8=1,_9=Infinity,_10=Math.ceil(_4);while(_9-_8>1){this.fontSize=_6;var m=_5.measureLabel(_1,this,true);if(m.width!=_2||m.height!=_3){var _12=m.width>_2||m.height>_3;if(_12)_9=_6;else _8=_6;if(_7==_12)_10=Math.max(1,Math.floor(_10/2));if(_12)_6-=_10;else _6+=_10;if(_6<1){_6=1;_10=_9-_6}
  _7=!_12}else{_8=_9=_6}}
  isc.DrawPane.$186k(false);return _8});isc.B._maxIndex=isc.C+38;isc.DrawLabel.markUnsupportedMethods(null,["setLineWidth","setLineOpacity","setLinePattern","setLineCap","setFillColor","setFillGradient","setFillOpacity"]);isc.DrawLabel.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawImage","DrawItem");isc.A=isc.DrawImage.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.left=0;isc.A.top=0;isc.A.width=16;isc.A.height=16;isc.A.src="blank.png";isc.A.roundCoordinates=false;isc.A.$179j=true;isc.A.isPointInPath=isc.DrawItem.getInstanceProperty("isInBounds");isc.A.$1541=new isc.VMLRenderer.shapeConfig();isc.A.$44l=isc.Class.NO_OP;isc.B.push(isc.A.$1558=function isc_DrawImage__getUseMatrixFilter(){return(this.useMatrixFilter===true||(this.useMatrixFilter!==false&&(this.$1559=!isc.Canvas.neverUseFilters)))},isc.A.$156a=function isc_DrawImage__checkUseMatrixFilter(){if(!(this.useMatrixFilter===true||this.useMatrixFilter===false)){var _1=this.$1559;if(_1!=this.$1558()){this.$154s.setProperty("useMatrixFilter",!_1)}}},isc.A.getBoundingBox=function isc_DrawImage_getBoundingBox(_1,_2){var _3=(_2||new Array(4));_3[0]=this.left;_3[1]=this.top;_3[2]=this.left+this.width;_3[3]=this.top+this.height;return _3},isc.A.init=function isc_DrawImage_init(){this.exemptFromGlobalTransform=false;this.Super("init",arguments);this.initImage(this.src)},isc.A.initImage=function isc_DrawImage_initImage(_1){if(_1){_1=this.getSrcURL(_1);var _2=this.image;if(_2==null){_2=this.image=new Image();var _3=this;_2.onload=function(){if(_3.drawPane&&_3.drawingBitmap){_3.drawPane.redrawBitmap()}}}
  _2.src=_1}},isc.A.getSrcURL=function isc_DrawImage_getSrcURL(_1){var _2=isc.Canvas.getImgURL(_1);return _2},isc.A.$154t=function isc_DrawImage__renderVML(_1,_2,_3){var _4=this.$1541;isc.VMLRenderer.drawItemToShapeConfig(this,_4);_4.alt=this.title;_4.useMatrixFilter=this.$1558();this.$154s=_1.image(_2,_4)},isc.A.getSvgString=function isc_DrawImage_getSvgString(_1){var _2;var _3="<image";var _4=this.$1620();if(_4!=null)_3+=" id='"+_4+"'";var t=this.$1339();_3+=(" transform='matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")' x='"+this.left+"' y='"+this.top+"' width='"+this.width+"px' height='"+this.height+"px' "+(_1?_1.xlinkPrefix||isc.SVGStringConversionContext.$99a:isc.SVGStringConversionContext.$99a)+":href='"+this.getSrcURL(this.src)+"'");var _6=this.getAttributesSVG();if(_6)_3+=" "+_6;_3+=">";if(this.title){_3+="<title>"+isc.makeXMLSafe(this.title)+"</title>"}
  _3+="</image>";return _3},isc.A.getAttributesSVG=function isc_DrawImage_getAttributesSVG(){return this.Super("getAttributesSVG",arguments)+" preserveAspectRatio='none'"},isc.A.drawBitmapPath=function isc_DrawImage_drawBitmapPath(_1){_1.drawImage(this.image,this.left,this.top,this.width,this.height)},isc.A.getCenter=function isc_DrawImage_getCenter(){return[this.left+this.$1503(this.width/2),this.top+this.$1503(this.height/2)]},isc.A.setSrc=function isc_DrawImage_setSrc(_1){this.initImage(_1);if(this.drawingVML){this.$154s.setProperty("src",this.src);this.$156a();this.$154s.flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(isc.$100f,"href",this.src)}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.setLeft=function isc_DrawImage_setLeft(_1){this.setRect(_1,this.top,this.width,this.height)},isc.A.setTop=function isc_DrawImage_setTop(_1){this.setRect(this.left,_1,this.width,this.height)},isc.A.setWidth=function isc_DrawImage_setWidth(_1){this.setRect(this.left,this.top,_1,this.height)},isc.A.setHeight=function isc_DrawImage_setHeight(_1){this.setRect(this.left,this.top,this.width,_1)},isc.A.setRect=function isc_DrawImage_setRect(_1,_2,_3,_4,_5,_6){if(_1==null)_1=this.left;if(_2==null)_2=this.top;if(_3==null)_3=this.width;if(_4==null)_4=this.height;var _7=false;if(this.left==_1&&this.top==_2&&this.width==_3&&this.height==_4)
  {_7=true;if(_5==null&&_6==null)return}
  if(_5==null||_6==null){var _8=this.$147l();if(_7&&(_5==null||_5==_8.cx)&&(_6==null||_6==_8.cy))
  {return}
  _5=_8.cx;_6=_8.cy}
  this.left=_1;this.top=_2;this.width=_3;this.height=_4;var _9=this.$147l();if(_7&&_5==_9.cx&&_6==_9.cy)
  {return}
  this.$147x(_5,_6,_9.cx,_9.cy);if(this.drawingVML){var _10=this.$154s;if(_5!=_9.cx||_6!=_9.cy){this.$1348=null;_10.setProperty("transform",this.$1339())}
  _10.setProperty("left",_1).setProperty("top",_2).setProperty("width",_3).setProperty("height",_4);this.$156a();_10.flush()}else if(this.drawingSVG){var _11=this.$44z;if(_5!=_9.cx||_6!=_9.cy){this.$1348=null;var t=this.$1339();_11.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}
  _11.setAttributeNS(null,"x",_1);_11.setAttributeNS(null,"y",_2);_11.setAttributeNS(null,"width",_3);_11.setAttributeNS(null,"height",_4)}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.$147w=function isc_DrawImage__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(!_6){if(_4==null){_4=this}
  var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var _11=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_4.width,_4.height,0,this.$179h());if(_11.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);this.setRect(this.$1503(_11.left),this.$1503(_11.top),this.$1503(_11.width),this.$1503(_11.height),this.$1503(_9),this.$1503(_10));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)},isc.A.$147m=function isc_DrawImage__saveShape(){return{left:this.left,top:this.top,width:this.width,height:this.height}});isc.B._maxIndex=isc.C+19;isc.DrawImage.markUnsupportedMethods(null,["setLineWidth","setLineColor","setLineOpacity","setLinePattern","setLineCap","setFillColor","setFillGradient","setFillOpacity"]);isc.DrawImage.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.defineClass("DrawCurve","DrawItem");isc.A=isc.DrawCurve.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showTitleLabelBackground=true;isc.A.startPoint=[0,0];isc.A.endPoint=[100,100];isc.A.controlPoint1=[100,0];isc.A.controlPoint2=[0,100];isc.A.svgElementName="path";isc.A.eventOpaque=false;isc.A.lineCap="butt";isc.A.$1542=new isc.VMLRenderer.shapeConfig();isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.A.showMoveKnobs=isc.Class.NO_OP;isc.A.hideMoveKnobs=isc.Class.NO_OP;isc.A.c1LineDefaults={_constructor:"DrawLine",lineWidth:1,lineColor:"#8000ff",linePattern:"shortdot"};isc.A.c1KnobDefaults={cursor:"move",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultDrawCurveC1KnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#d6c1ec",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.c1KnobConstructor="DrawKnob";isc.A.c2LineDefaults={_constructor:"DrawLine",lineWidth:1,lineColor:"#8000ff",linePattern:"shortdot"};isc.A.c2KnobDefaults={cursor:"move",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultDrawCurveC2KnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#d6c1ec",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.c2KnobConstructor="DrawKnob";isc.B.push(isc.A.init=function isc_DrawCurve_init(){this.Super("init",arguments);this.startPoint=this.startPoint.duplicate();this.endPoint=this.endPoint.duplicate();this.controlPoint1=this.controlPoint1.duplicate();this.controlPoint2=this.controlPoint2.duplicate();if(!isc.Browser.$141c){this.$1420()}},isc.A.getCenter=function isc_DrawCurve_getCenter(){return[this.startPoint[0]+this.$1503((this.endPoint[0]-this.startPoint[0])/2),this.startPoint[1]+this.$1503((this.endPoint[1]-this.startPoint[1])/2)]},isc.A.$154t=function isc_DrawCurve__renderVML(_1,_2,_3){var _4=this.$1542;isc.VMLRenderer.drawItemToShapeConfig(this,_4);_4.fromX=this.startPoint[0];_4.fromY=this.startPoint[1];_4.control1X=this.controlPoint1[0];_4.control1Y=this.controlPoint1[1];_4.control2X=this.controlPoint2[0];_4.control2Y=this.controlPoint2[1];_4.toX=this.endPoint[0];_4.toY=this.endPoint[1];this.$154s=_1.curve(_2,_4)},isc.A.getAttributesSVG=function isc_DrawCurve_getAttributesSVG(){return"d='"+this.getPathSVG()+"'"},isc.A.getPathSVG=function isc_DrawCurve_getPathSVG(){return"M"+this.startPoint[0]+" "+this.startPoint[1]+"C"+this.controlPoint1[0]+" "+this.controlPoint1[1]+" "+this.controlPoint2[0]+" "+this.controlPoint2[1]+" "+this.endPoint[0]+" "+this.endPoint[1]},isc.A.computeBezierPoint=function isc_DrawCurve_computeBezierPoint(_1){var x=isc.DrawPane.bezier(this.startPoint[0],this.controlPoint1[0],this.controlPoint2[0],this.endPoint[0],_1);var y=isc.DrawPane.bezier(this.startPoint[1],this.controlPoint1[1],this.controlPoint2[1],this.endPoint[1],_1);return[x,y]},isc.A.drawBitmapPath=function isc_DrawCurve_drawBitmapPath(_1,_2){var _3=false;if(this.startArrow=="open"||this.startArrow=="block"){_3=true;_1.save();this.$144s(_1,this.lineWidth,(_2!==false));_1.restore()}
  if(this.endArrow=="open"||this.endArrow=="block"){_3=true;_1.save();this.$144t(_1,this.lineWidth,(_2!==false));_1.restore()}
  if(_3){_1.beginPath()}
  _1.moveTo(this.startPoint[0],this.startPoint[1]);_1.bezierCurveTo(this.controlPoint1[0],this.controlPoint1[1],this.controlPoint2[0],this.controlPoint2[1],this.endPoint[0],this.endPoint[1])},isc.A.$144s=function isc_DrawCurve__drawBitmapStartArrow(_1,_2,_3){var _4=10,_5=this.startPoint[0],_6=this.startPoint[1],_7=this.computeBezierPoint(0.01),_8=this.computeAngle(_5,_6,_7[0],_7[1]);_1.beginPath();if(_3){_1.fillStyle=this.lineColor;_1.strokeStyle=this.lineColor}
  _1.lineWidth=_2;_1.lineCap=this.lineCap;_1.translate(_5,_6);_1.rotate(_8*this.$125w);this.bmMoveTo(_4,-_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(_4,_4,_1);if(this.startArrow=="block"){_1.closePath()}
  if(_3){if(this.startArrow=="block"){_1.fill()}
  _1.stroke()}},isc.A.$144t=function isc_DrawCurve__drawBitmapEndArrow(_1,_2,_3){var _4=10,_5=this.endPoint[0],_6=this.endPoint[1],_7=this.computeBezierPoint(0.99),_8=this.computeAngle(_7[0],_7[1],_5,_6);_1.beginPath();if(_3){_1.fillStyle=this.lineColor;_1.strokeStyle=this.lineColor}
  _1.lineWidth=_2;_1.lineCap=this.lineCap;_1.translate(_5,_6);_1.rotate(_8*this.$125w);this.bmMoveTo(-_4,_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(-_4,-_4,_1);if(this.endArrow=="block"){_1.closePath()}
  if(_3){if(this.endArrow=="block"){_1.fill()}
  _1.stroke()}},isc.A.$1421=function isc_DrawCurve__bezierCurve(_1,_2,_3,_4,_5,_6,_7,_8){this.p1x=_1;this.p1y=_2;this.cp1x=_3;this.cp1y=_4;this.cp2x=_5;this.cp2y=_6;this.p2x=_7;this.p2y=_8},isc.A.$1422=function isc_DrawCurve__bezierCurveZero(){return new this.$1421(0,0,0,0,0,0,0,0)},isc.A.$1423=function isc_DrawCurve__bezierCurveCopy(_1,_2){_2.p1x=_1.p1x;_2.p1y=_1.p1y;_2.cp1x=_1.cp1x;_2.cp1y=_1.cp1y;_2.cp2x=_1.cp2x;_2.cp2y=_1.cp2y;_2.p2x=_1.p2x;_2.p2y=_1.p2y;return _2},isc.A.$1424=function isc_DrawCurve__drawCurveToBezierCurve(_1){return new this.$1421(_1.startPoint[0],_1.startPoint[1],_1.controlPoint1[0],_1.controlPoint1[1],_1.controlPoint2[0],_1.controlPoint2[1],_1.endPoint[0],_1.endPoint[1])},isc.A.$1425=function isc_DrawCurve__bezierCurveReverse(_1,_2){var _3=_1.p1x;_2.p1x=_1.p2x;_2.p2x=_3;_3=_1.p1y;_2.p1y=_1.p2y;_2.p2y=_3;_3=_1.cp1x;_2.cp1x=_1.cp2x;_2.cp2x=_3;_3=_1.cp1y;_2.cp1y=_1.cp2y;_2.cp2y=_3;return _2},isc.A.$1426=function isc_DrawCurve__bezierCurveDeCasteljau(_1,_2,_3,_4){var w=1-_2,_6=_1.p1x,_7=_1.p1y,_8=_1.p2x,_9=_1.p2y,_10=w*_6+_2*_1.cp1x,_11=w*_7+_2*_1.cp1y,_12=w*_1.cp1x+_2*_1.cp2x,_13=w*_1.cp1y+_2*_1.cp2y,_14=w*_1.cp2x+_2*_8,_15=w*_1.cp2y+_2*_9,_16=w*_10+_2*_12,_17=w*_11+_2*_13,_18=w*_12+_2*_14,_19=w*_13+_2*_15,_20=w*_16+_2*_18,_21=w*_17+_2*_19;if(_3!=null){_3.p1x=_6;_3.p1y=_7;_3.cp1x=_10;_3.cp1y=_11;_3.cp2x=_16;_3.cp2y=_17;_3.p2x=_20;_3.p2y=_21}
  if(_4!=null){_4.p1x=_20;_4.p1y=_21;_4.cp1x=_18;_4.cp1y=_19;_4.cp2x=_14;_4.cp2y=_15;_4.p2x=_8;_4.p2y=_9}},isc.A.$1420=function isc_DrawCurve__calculateOffsetCurvePath(){var _1=1e-6,_2=0.01,_3=0.001,_4=((this.lineWidth==null?1:Math.max(1,this.lineWidth))+2*this.hitTolerance),_5=this.$1424(this);var _6=_5.p1x,_7=_5.p1y,_8=_5.cp1x,_9=_5.cp1y,_10=_5.cp2x,_11=_5.cp2y,_12=_5.p2x,_13=_5.p2y;var _14=2*Math.PI,_15=(Math.abs(_6-_8)<_1&&Math.abs(_7-_9)<_1),_16=(Math.abs(_12-_10)<_1&&Math.abs(_13-_11)<_1),_17=(_6+_8+_10+_12)/4,_18=(_7+_9+_11+_13)/4,_19=(_6+_8+_10+_12)/4,_20=(_7+_9+_11+_13)/4,_21=0,_22=0,_23=0,_24=true;for(var i=4;i--;){var x=0,y=0;if(i==3){x=_6;y=_7}else if(i==2){x=_8;y=_9}else if(i==1){x=_10;y=_11}else{x=_12;y=_13}
  var _28=x-_19,_29=y-_20;_21+=_28*_28;_22+=_28*_29;_23+=_29*_29;if(isc.Math.$101k(x-_17,y-_18)>=_1){_24=false}}
  var _30=!_24,_31=0;if(_30){var _32=(_23-_21+isc.Math.$101k(_23-_21,2*_22)),_33=2*_22;_31=Math.atan2(_32,_33);var c=Math.cos(_31),s=Math.sin(_31),_36=_19*s-_20*c;for(var i=0;_30&&i<4;++i){var x=0,y=0;if(i==3){x=_6;y=_7}else if(i==2){x=_8;y=_9}else if(i==1){x=_10;y=_11}else{x=_12;y=_13}
  var _37=x*c+y*s,_28=_36*s+_37*c-x,_29=_36*-c+_37*s-y,_38=isc.Math.$101k(_28,_29);_30=(_38<2*Math.SQRT2)}}
  var _39=_4/2;if(_24){var _40=0,_41=0;if(!(_6==_8&&_7==_9)){_40=Math.atan2(_9-_7,_8-_6)}else if(!(_6==_10&&_7==_11)){_40=Math.atan2(_11-_7,_10-_6)}else if(!(_6==_12&&_7==_13)){_40=Math.atan2(_13-_7,_12-_6)}
  if(!(_12==_10&&_13==_11)){_41=Math.atan2(_11-_13,_10-_12)}else if(!(_12==_8&&_13==_9)){_41=Math.atan2(_9-_13,_8-_12)}else if(!(_12==_6&&_13==_7)){_41=Math.atan2(_7-_13,_6-_12)}
  this.$143a={halfLineWidth:_39,singlePoint:true,collinear:false,midpointX:_17,midpointY:_18,angle1:_40,angle2:_41};return}
  _30=_30||(_15&&_16);if(_30){var _42=isc.DrawPane.bezierExtrema(_6,_8,_10,_12),_43=_42[0],_44=_42[1],_45=isc.DrawPane.bezierExtrema(_7,_9,_11,_13),_46=_45[0],_47=_45[1];var _48=Math.cos(_31),_49=-Math.sin(_31),_50=0,_51=0,_52=0,_53=0;if(Math.abs(_48*(_47-_46)+_49*(_44-_43))
  <Math.abs(_48*(_46-_47)+_49*(_44-_43)))
  {_50=_43;_51=_46;_52=_44;_53=_47}else{_50=_43;_51=_47;_52=_44;_53=_46}
  var _14=2*Math.PI,_54=(_14+Math.atan2(_53-_51,_52-_50))%_14;this.$143a={halfLineWidth:_39,singlePoint:false,collinear:true,roundPoint1:!(_50==_6&&_51==_7)&&!(_50==_12&&_51==_13),roundPoint2:!(_52==_6&&_53==_7)&&!(_52==_12&&_53==_13),x1:_50,y1:_51,x1Left:_50-_39*Math.cos(Math.PI/2-_54),y1Left:_51+_39*Math.sin(Math.PI/2-_54),x1Right:_50+_39*Math.cos(Math.PI/2-_54),y1Right:_51-_39*Math.sin(Math.PI/2-_54),startAngle1:_54+Math.PI/2,endAngle1:_54+3*Math.PI/2,x2:_52,y2:_53,x2Left:_52-_39*Math.cos(Math.PI/2-_54),y2Left:_53+_39*Math.sin(Math.PI/2-_54),x2Right:_52+_39*Math.cos(Math.PI/2-_54),y2Right:_53-_39*Math.sin(Math.PI/2-_54),startAngle2:_54+Math.PI/2,endAngle2:_54-Math.PI/2,angle:3*Math.PI/4-_54};return}
  var _55=-_6+3*(_8-_10)+_12,_56=-_7+3*(_9-_11)+_13,_57=3*(_6-_8-_8+_10),_58=3*(_7-_9-_9+_11),_59=3*(-_6+_8),_60=3*(-_7+_9),_28=_6,_29=_7;var _61=isc.Math.$1439([3*_55,2*_57,_59],2).zeros,_62=(_61.length>0&&Math.abs(_61[0].imag)<_1),_63=(_61.length>1&&Math.abs(_61[1].imag)<_1),_64=null,_65=false,_66=false;if(_62||_63){_64=isc.Math.$1439([3*_56,2*_58,_60],2).zeros;_65=(_64.length>0&&Math.abs(_64[0].imag)<_1&&_1<_64[0].real&&_64[0].real<1-_1);_66=(_64.length>1&&Math.abs(_64[1].imag)<_1&&_1<_64[1].real&&_64[1].real<1-_1)}
  var _67=[];if(_62&&_65&&Math.abs(_61[0].real,_64[0].real)<_1){_67.push((_61[0].real+_64[0].real)/2)}
  if(_62&&_66&&Math.abs(_61[0].real,_64[1].real)<_1){_67.push((_61[0].real+_64[1].real)/2)}
  if(_63&&_65&&Math.abs(_61[1].real,_64[0].real)<_1){_67.push((_61[1].real+_64[0].real)/2)}
  if(_63&&_66&&Math.abs(_61[1].real,_64[1].real)<_1){_67.push((_61[1].real+_64[1].real)/2)}
  for(var i=_67.length;i--;){var _68=_67[i];if(_68<-_1||_68>1+_1){_67.splice(i,1)}else if(_68<_1){_15=true;_67.splice(i,1)}else if(_68>1-_1){_16=true;_67.splice(i,1)}}
  for(var i=1;i<_67.length;++i){for(var j=i;_67[j-1]>_67[j];--j){var _70=_67[j-1];_67[j-1]=_67[j];_67[j]=_70}}
  var _71=[],_72=[];var _39=_4/2,_73=_8-_6,_74=_9-_7,_75=isc.Math.$101k(_73,_74),_48=_74/_75,_49=-_73/_75;_71.push(_6+_39*_48,_7+_39*_49);var _76=_10-_12,_77=_11-_13,z=isc.Math.$101k(_76,_77),_79=_77/z,_80=-_76/z;var _81=this.$1422(),_82=this.$1422(),_83=this.$1422(),_84=this.$1422();_67.unshift(0);_67.push(1);var _85=_67.length;for(var i=1;i<_85;++i){var _86=_67[i-1],_87=_67[i];if(_85==2){this.$1423(_5,_84)}else{if(1<i){this.$1426(_5,_86,null,_84)}
  if(i<_85-1){this.$1426((1<i?_84:_5),(_87-_86)/(1-_86),_84,null)}}
  var _88=((1<i&&isc.Math.$101k(_84.cp1x-_84.p1x,_84.cp2x-_84.p2x)<_1)||_15),_89=((i<_85-1&&isc.Math.$101k(_84.cp2x-_84.p2x,_84.cp2y-_84.p2y)<_1)||_16);if(_88&&_89){this.$1429(_4,_84,_71,_72)}else{this.$1428(_4,_2,_3,_84,_88,_89,_71,_72,_81,_82,_83)}}
  _72.push(_13+_39*_80,_12+_39*_79);_72=_72.reverse();var _14=2*Math.PI,_90=_71[0],_91=_71[1],_92=_72[_72.length-2],_93=_72[_72.length-1],_94=_71[_71.length-2],_95=_71[_71.length-1],_96=_72[0],_97=_72[1],_98=(Math.PI+Math.atan2(_91-_93,_90-_92))%_14,_99=_98+Math.PI,_100=(_14+Math.PI+Math.atan2(_95-_97,_94-_96))%_14,_101=_100-Math.PI,_102=3*Math.PI/2-_98,_103=_92+_39*Math.cos(_102),_104=_93-_39*Math.sin(_102),_105=_90+_39*Math.cos(_102),_106=_91-_39*Math.sin(_102),_107=3*Math.PI/2-_101,_108=_94+_39*Math.cos(_107),_109=_95-_39*Math.sin(_107),_110=_96+_39*Math.cos(_107),_111=_97-_39*Math.sin(_107);this.$143a={halfLineWidth:_39,singlePoint:false,collinear:false,leftPath:_71,rightPath:_72,x1:(_90+_92)/2,y1:(_91+_93)/2,radius1:isc.Math.$101k(_90-_92,_91-_93)/2,startAngle1:_98,endAngle1:_99,leftCorner1x:_103,leftCorner1y:_104,rightCorner1x:_105,rightCorner1y:_106,x2:(_94+_96)/2,y2:(_95+_97)/2,radius2:isc.Math.$101k(_94-_96,_95-_97)/2,startAngle2:_101,endAngle2:_100,leftCorner2x:_108,leftCorner2y:_109,rightCorner2x:_110,rightCorner2y:_111}},isc.A.$1428=function isc_DrawCurve__addOffsetCurveToPath(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11){var _12=1e-6,_13=_4.p1x,_14=_4.p1y,_15=_4.cp1x,_16=_4.cp1y,_17=_4.cp2x,_18=_4.cp2y,_19=_4.p2x,_20=_4.p2y,_21=-_13+3*(_15-_17)+_19,_22=-_14+3*(_16-_18)+_20,_23=3*(_13-_15-_15+_17),_24=3*(_14-_16-_16+_18),_25=3*(-_13+_15),_26=3*(-_14+_16),_27=_13,_28=_14;var _29=(_22*_23-_21*_24),_30=0,_31=0,_32=0,_33=false;if(Math.abs(_29)<_12){var _34=(_22*_25-_21*_26);if(Math.abs(_34)<_12){_30=_31=_32=-1;_33=true}else{_30=_31=_32=-(_24*_25-_23*_26)/(3*_34)}}else{_30=-(_22*_25-_21*_26)/(2*_29);var _35=_30*_30-(_24*_25-_23*_26)/(3*_29);if(_35<=0){_31=_32=_30}else{var _36=Math.sqrt(_35);_31=_30-_36;_32=_30+_36}}
  if(_32-_31<_12){_30=_31=_32=(_31+_32)/2}
  var _37=0;if(-_12<_31&&_31<1+_12){if(_31>0.5){this.$1426(_4,_31,_10,null);this.$1425(_10,_10)}else{this.$1426(_4,_31,null,_10)}
  var _38=this.$1427(_10);if(_38==null){_31=-1}else{_37=Math.pow(Math.abs(_3/_38.s3),1/3)}}
  var _39=0;if(_31==_32){_39=_37}else if(_32<1+_12){if(_32>0.5){this.$1426(_4,_32,_10,null);this.$1425(_10,_10)}else{this.$1426(_4,_32,null,_10)}
  var _38=this.$1427(_10);if(_38==null){_32=_31}else{_39=Math.pow(Math.abs(_3/_38.s3),1/3)}}
  var _40=1000*_12,_41=Math.min(_31-_40,_31-_37*(1-_31)),_42=Math.max(_31+_40,_31+_37*(1-_31)),_43=Math.min(_32-_40,_32-_39*(1-_32)),_44=Math.max(_32+_40,_32+_39*(1-_32)),_45=(_31==_32?[_31]:[_31,_32]),_46=(_31==_32?[_41]:[_41,_43]),_47=(_31==_32?[_42]:[_42,_44]),_48=0,_49=(_31==_32?_48:1);var _50=_21*_21,_51=_21*_50,_52=_22*_22,_53=_22*_52,_54=_23*_23,_55=_23*_54,_56=_24*_24,_57=_24*_56,_58=_25*_25,_59=_25*_58,_60=_26*_26,_61=_26*_60;var _62=36*(_50+_52)*(_21*_24-_23*_22),_63=15*(3*(_50+_52)*(_21*_26-_25*_22)-2*_21*_22*(_54-_56)+2*(_50-_52)*_23*_24),_64=4*(3*(4*_21*_22*_24+_52*_23+5*_50*_23)*_26-
  3*(5*_52*_24+_50*_24+4*_21*_22*_23)*_25+(_21*_24-_23*_22)*(_54+_56)),_65=2*(-6*_21*_22*(_58-_60)+6*(_50-_52)*_25*_26+(3*_21*_56+10*_22*_23*_24+13*_21*_54)*_26-
  (13*_22*_56+10*_21*_23*_24+3*_22*_54)*_25),_66=4*(2*(_21*_25+_22*_26)+_54+_56)*(_23*_26-_25*_24),_67=(-_21*_61+_22*_59+_25*_26*(_22*_26-_21*_25)+2*(_54-_56)*_25*_26-
  2*_23*_24*(_58-_60));var _68=10*_40,_69=isc.Math.$1439([_62,_63,_64,_65,_66,_67],5).zeros;for(var i=_69.length;i--;){var z=_69[i];if(-_12<_69[i].real&&_69[i].real<1+_12&&Math.abs(z.imag)<_12){var _72=_69[i].real,_73=true;for(var j=_45.length;_73&&j--;){_73=(Math.abs(_72-_45[j])>=_12)}
  if(!_73){continue}
  _45.push(_72);this.$1426(_4,_72,null,_11);var _38=this.$1427(_11),_75=_38.r1,_76=_38.s2,_77=Math.abs(_76),_78=_1*_76/(3*_75*_75),_79=0;if(_78<1+_12){_79=_2/(3*_77*(1-_78))}
  if(_78>-1+_12){_79=Math.max(_79,_2/(3*_77*(1+_78)))}
  var t=2*Math.sqrt(_79);_46.push(Math.min(_72-_68,_72-t*(1-_72)));_47.push(Math.max(_72+_68,_72+t*(1-_72)))}}
  for(var i=1;false&&i<_45.length;++i){for(var j=i;_45[j-1]>_45[j];--j){var _81=_45[j-1];_45[j-1]=_45[j];_45[j]=_81;_81=_46[j-1];_46[j-1]=_46[j];_46[j]=_81;_81=_47[j-1];_47[j-1]=_47[j];_47[j]=_81;if(j==_48){_48=j-1}else if(j-1==_48){_48=j}else if(j==_49){_49=j-1}else if(j-1==_49){_49=j}}}
  var _82=0,_83=1,_84=2,_85=(_31!=_32&&_43<=_42),_86=[0],_87=[];for(var t=0;t<1;){var _88=(_41<=t&&t<_42),_89=(_31!=_32&&_43<=t&&t<_44),_90=_83,_91=t,_92=false;for(var i=0;!_92&&i<_45.length;++i){_92=(i!=_48&&i!=_49&&_46[i]<=t&&t<_47[i])}
  if(_88||_89){_90=_82}else if(_92){_90=_84}else{_90=_83}
  if(_85&&_41<=t&&t<_30){_91=_30}else if(_85&&_30<=t&&t<_44){_91=_44}else if(_88){_91=_42}else if(_89){_91=_44}else if(_92){_91=2;for(var i=0;i<_45.length;++i){if(i!=_48&&i!=_49&&t<_45[i]){_91=Math.min(_91,_45[i])}
  if(_46[i]<=t&&t<_47[i]){_91=Math.min(_91,_47[i])}}}else{_91=2;for(var i=0;i<_45.length;++i){if(t<_46[i]){_91=Math.min(_91,_46[i])}}}
  _91=Math.min(_91,1);_86.push(_91);_87.push(_90);t=_91}
  for(var i=0;i<_87.length;++i){var _93=_86[i],_94=_86[i+1],_90=_87[i],_95=(i==_87.length-1);if(_95){_9=_4}else{this.$1426(_4,(_94-_93)/(1-_93),_9,_4)}
  if(_90==_82){this.$1429(_1,_9,_7,_8)}else{var f=(_90==_83?_2:_3);this.$144o(f,_1,_9,_7,_8,_11)}}},isc.A.$1427=function isc_DrawCurve__xyToRS(_1){var _2=1e-6,_3=_1.cp1x-_1.p1x,_4=_1.cp1y-_1.p1y,_5=isc.Math.$101k(_3,_4);var _6=0,_7=0,_8=0;if(_5<_2){var _9=_1.cp2x-_1.cp1x,_10=_1.cp2y-_1.cp1y,_11=isc.Math.$101k(_9,_10);if(_11<_2){var _12=_1.p2x-_1.p1x,_13=_1.p2y-_1.p1y,_14=isc.Math.$101k(_12,_13);if(_14<_2){return null}else{_6=_12;_7=_13;_8=_14}}else{_6=_9;_7=_10;_8=_11}}else{_6=_3;_7=_4;_8=_5}
  var _15=_1.p1x,_16=_1.p1y,_17=_1.p1x-_15,_18=_1.p1y-_16,_19=_1.cp1x-_15,_20=_1.cp1y-_16,_21=_1.cp2x-_15,_22=_1.cp2y-_16,_23=_1.p2x-_15,_24=_1.p2y-_16;return{r0:(_17*_6+_18*_7)/_8,s0:(_17*_7-_18*_6)/_8,r1:(_19*_6+_20*_7)/_8,s1:(_19*_7-_20*_6)/_8,r2:(_21*_6+_22*_7)/_8,s2:(_21*_6-_22*_6)/_8,r3:(_23*_6+_24*_7)/_8,s3:(_23*_7-_24*_6)/_8}},isc.A.$1429=function isc_DrawCurve__addOffsetLineToPath(_1,_2,_3,_4){var _5=1e-6,_6=_2.p1x,_7=_2.p1y,_8=_2.p2x,_9=_2.p2y,_10=_8-_6,_11=_9-_7,_12=isc.Math.$101k(_10,_11);if(!(_12<_5)){var _13=_1/(2*_12),_14=_11*_13,_15=-_10*_13;_3.push(_8+_14,_9+_15);_4.push(_7-_15,_6-_14)}},isc.A.$144o=function isc_DrawCurve__addOffsetSimpleCurveToPath(_1,_2,_3,_4,_5,_6){var _7=1e-6,_8=_3;for(var _9=0;_9<2;++_9){var _10=true,_11=0;if(_9==0){_10=true}else if(_9==1){_10=false;this.$1425(_8,_8);_11=_5.length}
  _3=this.$1423(_8,_6);var _12=0;for(var _13=true;_13;){var _14=_3.p1x,_15=_3.p1y,_16=_3.cp1x,_17=_3.cp1y,_18=_3.cp2x,_19=_3.cp2y,_20=_3.p2x,_21=_3.p2y;var _22=_16-_14,_23=_17-_15,_24=isc.Math.$101k(_22,_23),_25=((_16-_14)*_22+(_17-_15)*_23)/_24,_26=((_18-_14)*_23-(_19-_15)*_22)/_24,_27=3*_25*_25/2/_26,_28=2*_27,_29=_2/_28,_30=(_28>=(_10?_2:-_2)),_31=Math.abs(_26),_32=3*_31*(_10?(1-_29):(1+_29)),_33=(_32>0);if(!_10){var _34=this.$1427(_3)}
  if(!_33){_32=-_32}
  var t=2*Math.sqrt(_1/_32);_12=_12+t*(1-_12);_13=(_12<1-_7);if(_13){this.$1426(_8,_12,null,_3)}else{t=_12=1}
  if(_13){var _36=3*(-_3.cp1x+_3.p1x),_37=3*(-_3.cp1y+_3.p1y),_38=_2/(2*isc.Math.$101k(_36,_37)),_39=-_37*_38,_40=_36*_38;if(_10){_4.push(_3.p1x+_39,_3.p1y+_40)}else{_5.push(_3.p1y+_40,_3.p1x+_39)}}else{var _36=-3*(-_18+_3.p2x),_37=-3*(-_19+_21),_38=_2/(2*isc.Math.$101k(_36,_37)),_39=-_37*_38,_40=_36*_38;if(_10){_4.push(_3.p2x+_39,_3.p2y+_40)}else{_5.push(_3.p2y+_40,_3.p2x+_39)}}}
  if(!_10){var _41=_5.length;for(var i=_11,j=_41-2;i<j;i+=2,j-=2){var _44=_5[i];_5[i]=_5[j];_5[j]=_44;_44=_5[i+1];_5[i+1]=_5[j+1];_5[j+1]=_44}}}
  this.$1425(_8,_8)},isc.A.$142z=function isc_DrawCurve__isPointInStroke(_1,_2,_3){if(!(isc.isA.Number(_2)&&isc.isA.Number(_3))){return false}
  _1.save();var _4=this.$143a,_5=_4.halfLineWidth;var _6=false;if(_4.singlePoint){var _7=_4.midpointX,_8=_4.midpointY;if(this.lineCap=="square"){var _9=_5*Math.SQRT2,c=Math.cos(_4.angle1),s=Math.sin(_4.angle1),_12=_7+_9*c,_13=_8-_9*s;_1.beginPath();_1.moveTo(_12,_13);_1.lineTo(_7+_9*s,_8+_9*c);_1.lineTo(_7-_9*c,_8+_9*s);_1.lineTo(_7-_9*s,_8-_9*c);_1.lineTo(_12,_13);_1.closePath();_6=_1.isPointInPath(_2,_3);if(!_6&&_4.angle2!=_4.angle1){c=Math.cos(_4.angle2);s=Math.sin(_4.angle2);_1.beginPath();_1.moveTo(_7+_9*c,_8-_9*s);_1.lineTo(_7+_9*s,_8+_9*c);_1.lineTo(_7-_9*c,_8+_9*s);_1.lineTo(_7-_9*s,_8-_9*c);_1.lineTo(_7+_9*c,_8-_9*s);_1.moveTo(_12,_13);_1.closePath()}
  _1.closePath()}else if(this.lineCap=="round"){_1.beginPath();_1.moveTo(_7+_5,_8);_1.arc(_7,_8,_5,0,360,false);_1.closePath();_6=_1.isPointInPath(_2,_3)}}else if(_4.collinear){_1.beginPath();_1.moveTo(_4.x1Left,_4.y1Left);_1.lineTo(_4.x2Left,_4.y2Left);if(_4.roundPoint2||this.lineCap=="round"){_1.arc(_4.x2,_4.y2,_5,_4.startAngle2,_4.endAngle2)}else{_1.lineTo(_4.x2Right,_4.y2Right)}
  _1.lineTo(_4.x1Right,_4.y1Right);if(_4.roundPoint1||this.lineCap=="round"){_1.arc(_4.x1,_4.y1,_5,_4.startAngle1,_4.endAngle1)}
  _1.lineTo(_4.x1Left,_4.y1Left);_1.closePath();_6=_1.isPointInPath(_2,_3);if(!_6&&this.lineCap=="square"){var _9=_5*Math.SQRT2,c=Math.cos(_4.angle),s=Math.sin(_4.angle);if(!_4.roundPoint1){var _7=_4.x1,_8=_4.y1;_1.beginPath();_1.moveTo(_7+_9*c,_8-_9*s);_1.lineTo(_7+_9*s,_8+_9*c);_1.lineTo(_7-_9*c,_8+_9*s);_1.lineTo(_7-_9*s,_8-_9*c);_1.lineTo(_7+_9*c,_8-_9*s);_1.closePath();_6=_1.isPointInPath(_2,_3)}
  if(!_6&&!_4.roundPoint2){var _7=_4.x2,_8=_4.y2;_1.beginPath();_1.moveTo(_7+_9*c,_8-_9*s);_1.lineTo(_7+_9*s,_8+_9*c);_1.lineTo(_7-_9*c,_8+_9*s);_1.lineTo(_7-_9*s,_8-_9*c);_1.lineTo(_7+_9*c,_8-_9*s);_1.closePath();_6=_1.isPointInPath(_2,_3)}}}else{var _14=_4.leftPath,_15=_4.rightPath;_1.beginPath();_1.moveTo(_14[0],_14[1]);for(var i=2,_17=_14.length;i<_17;i+=2){_1.lineTo(_14[i],_14[i+1])}
  if(this.lineCap=="round"){_1.arc(_4.x2,_4.y2,_4.radius2,_4.startAngle2,_4.endAngle2,false)}else if(this.lineCap=="square"){_1.lineTo(_4.leftCorner2x,_4.leftCorner2y);_1.lineTo(_4.rightCorner2x,_4.rightCorner2y)}else{_1.lineTo(_15[0],_15[1])}
  for(var i=2,_18=_15.length;i<_18;i+=2){_1.lineTo(_15[i],_15[i+1])}
  if(this.lineCap=="round"){_1.arc(_4.x1,_4.y1,_4.radius1,_4.startAngle1,_4.endAngle1,false)}else if(this.lineCap=="square"){_1.lineTo(_4.leftCorner1x,_4.leftCorner1y);_1.lineTo(_4.rightCorner1x,_4.rightCorner1y)}
  _1.closePath();_6=_1.isPointInPath(_2,_3)}
  var _19=10,_20=2*_5;if(!_6&&(this.startArrow=="open"||this.startArrow=="block")){var _21=this.startPoint[0],_22=this.startPoint[1],_23=this.computeBezierPoint(0.01),_24=this.computeAngle(_21,_22,_23[0],_23[1])*this.$125w,c=Math.cos(-_24),s=Math.sin(-_24),_25=_21,_26=_22,_7=(c-s)*_19+_25,_8=-(s+c)*_19+_26,_27=(c+s)*_19+_25,_28=(-s+c)*_19+_26;_6=(isc.Math.euclideanDistanceToLine(_7,_8,_25,_26,_2,_3)<=_20||isc.Math.euclideanDistanceToLine(_25,_26,_27,_28,_2,_3)<=_20||(this.startArrow=="block"&&isc.Math.euclideanDistanceToLine(_27,_28,_7,_8,_2,_3)<=_20))}
  if(!_6&&(this.endArrow=="open"||this.endArrow=="block")){var _21=this.endPoint[0],_22=this.endPoint[1],_23=this.computeBezierPoint(0.99),_24=this.computeAngle(_23[0],_23[1],_21,_22)*this.$125w,c=Math.cos(-_24),s=Math.sin(-_24),_25=_21,_26=_22,_7=(-c+s)*_19+_25,_8=(s+c)*_19+_26,_27=-(c+s)*_19+_25,_28=(s-c)*_19+_26;_6=(isc.Math.euclideanDistanceToLine(_7,_8,_25,_26,_2,_3)<=_20||isc.Math.euclideanDistanceToLine(_25,_26,_27,_28,_2,_3)<=_20||(this.endArrow=="block"&&isc.Math.euclideanDistanceToLine(_27,_28,_7,_8,_2,_3)<=_20))}
  _1.restore();return _6},isc.A.setStartPoint=function isc_DrawCurve_setStartPoint(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.startPoint[0]=_1;this.startPoint[1]=_2;if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){this.$154s.setProperty("fromX",_1).setProperty("fromY",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.setEndPoint=function isc_DrawCurve_setEndPoint(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.endPoint[0]=_1;this.endPoint[1]=_2;if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){this.$154s.setProperty("toX",_1).setProperty("toY",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.setControlPoint1=function isc_DrawCurve_setControlPoint1(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.controlPoint1[0]=_1;this.controlPoint1[1]=_2;if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){this.$154s.setProperty("control1X",_1).setProperty("control1Y",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.setControlPoint2=function isc_DrawCurve_setControlPoint2(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.controlPoint2[0]=_1;this.controlPoint2[1]=_2;if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){this.$154s.setProperty("control2X",_1).setProperty("control2Y",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.$156y=function isc_DrawCurve__setCurve(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){var _11=((this.startPoint[0]!=_1?0x1:0)|(this.startPoint[1]!=_2?0x2:0)|(this.controlPoint1[0]!=_3?0x4:0)|(this.controlPoint1[1]!=_4?0x8:0)|(this.controlPoint2[0]!=_5?0x10:0)|(this.controlPoint2[1]!=_6?0x20:0)|(this.endPoint[0]!=_7?0x40:0)|(this.endPoint[1]!=_8?0x80:0));if(_11==0){return}
  if(_9==null||_10==null){var _12=this.$147l();_9=_12.cx;_10=_12.cy}
  this.startPoint[0]=_1;this.startPoint[1]=_2;this.controlPoint1[0]=_3;this.controlPoint1[1]=_4;this.controlPoint2[0]=_5;this.controlPoint2[1]=_6;this.endPoint[0]=_7;this.endPoint[1]=_8;var _13=this.$147l();this.$147x(_9,_10,_13.cx,_13.cy);if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){var _14=this.$154s;if(_9!=_13.cx||_10!=_13.cy){this.$1348=null;_14.setProperty("transform",this.$1339())}
  if(_11&0x1)_14.setProperty("fromX",_1);if(_11&0x2)_14.setProperty("fromY",_2);if(_11&0x4)_14.setProperty("control1X",_3);if(_11&0x8)_14.setProperty("control1Y",_4);if(_11&0x10)_14.setProperty("control2X",_5);if(_11&0x20)_14.setProperty("control2Y",_6);if(_11&0x40)_14.setProperty("toX",_7);if(_11&0x80)_14.setProperty("toY",_8);_14.flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()},isc.A.setLineWidth=function isc_DrawCurve_setLineWidth(_1){if(_1!=null){var _2=(this.lineWidth==null?1:Math.max(1,this.lineWidth));this.lineWidth=_1;if(!isc.Browser.$141c){var _3=(this.lineWidth==null?1:Math.max(1,this.lineWidth));if(_2!=_3){this.$1420()}}}
  return this.Super("setLineWidth",[_1,true],arguments)},isc.A.getBoundingBox=function isc_DrawCurve_getBoundingBox(_1,_2){var _3=1e-6,_4=(_2||new Array(4));for(var k=0;k<2;++k){var x=this.startPoint[k],y=this.controlPoint1[k],z=this.controlPoint2[k],w=this.endPoint[k],_10=isc.DrawPane.bezierExtrema(x,y,z,w);_4[k]=_10[0];_4[k+2]=_10[1]}
  return _1!=true?_4:this.$147b(true,false,_4)},isc.A.$147c=function isc_DrawCurve__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=(_4||new Array(4));var _6=(_2&&this.$125h()?(this.lineWidth/2):0),_7=(_3?this.hitTolerance:0),_8=_6+_7;var _9=this.startPoint[0],_10=this.startPoint[1],_11=this.controlPoint1[0],_12=this.controlPoint1[1],_13=this.controlPoint2[0],_14=this.controlPoint2[1],_15=this.endPoint[0],_16=this.endPoint[1];var _17=_1.m00,_18=_1.m01,_19=_1.m02,_20=_1.m10,_21=_1.m11,_22=_1.m12;var _23=isc.DrawPane.bezierExtrema(_17*_9+_18*_10+_19,_17*_11+_18*_12+_19,_17*_13+_18*_14+_19,_17*_15+_18*_16+_19),_24=_23[0],_25=_23[1],_26=isc.DrawPane.bezierExtrema(_20*_9+_21*_10+_22,_20*_11+_21*_12+_22,_20*_13+_21*_14+_22,_20*_15+_21*_16+_22),_27=_26[0],_28=_26[1];if(_8==0){_5[0]=_24;_5[1]=_27;_5[2]=_25;_5[3]=_28}else{var _29=_8*isc.Math.$101k(_17,_18),_30=_8*isc.Math.$101k(_20,_21);_5[0]=_24-_29;_5[1]=_27-_30;_5[2]=_25+_29;_5[3]=_28+_30}
  return _5});isc.evalBoundary;isc.B.push(isc.A.showStartPointKnobs=function isc_DrawCurve_showStartPointKnobs(){if(this.$639!=null&&!this.$639.destroyed)return;var v=this.$136i(this.startPoint[0],this.startPoint[1],"local","global");this.$639=this.createAutoChild("startKnob",{_constructor:"DrawKnob",x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.startPoint[0],_2.startPoint[1],"local","global");this.setCenterPoint(v[0],v[1])},updatePoints:function(_10,_11,_12,_13,_14){var _2=this.creator;if(_14=="start"){_2.$114b=_2.controlPoint1.duplicate();_2.$114c=_2.controlPoint2.duplicate()}
  var _3=_2.$114b,_4=_2.$114c;if(_2.keepInParentRect){var _5=_2.$113u(),_6={startPoint:[0,0],controlPoint1:_3.duplicate(),controlPoint2:_4.duplicate(),endPoint:_2.endPoint};_2.$156z(_6,"local","global");_6.startPoint[0]=_10;_6.startPoint[1]=_11;_2.$114d(_6.endPoint,_6,_5);_2.$156z(_6,"global","local");var _7=_6.startPoint,_8=_6.controlPoint1,_9=_6.controlPoint2;_2.$156y(_2.$1503(_7[0]),_2.$1503(_7[1]),_2.$1503(_8[0]),_2.$1503(_8[1]),_2.$1503(_9[0]),_2.$1503(_9[1]),_2.endPoint[0],_2.endPoint[1],null,null)}else{var v=_2.$136i(_10,_11,"global","local");_2.$156y(_2.$1503(v[0]),_2.$1503(v[1]),_3[0],_3[1],_4[0],_4[1],_2.endPoint[0],_2.endPoint[1],null,null)}
  if(_14=="stop"){delete _2.$114b;delete _2.$114c}}})},isc.A.$156z=function isc_DrawCurve__normalizeCurve(_1,_2,_3){var _4=_1.startPoint,v=this.$136i(_4[0],_4[1],_2,_3);_4[0]=v[0];_4[1]=v[1];var _6=_1.controlPoint1;v=this.$136i(_6[0],_6[1],_2,_3);_6[0]=v[0];_6[1]=v[1];var _7=_1.controlPoint2;v=this.$136i(_7[0],_7[1],_2,_3);_7[0]=v[0];_7[1]=v[1];var _8=_1.endPoint;v=this.$136i(_8[0],_8[1],_2,_3);_8[0]=v[0];_8[1]=v[1]},isc.A.$114d=function isc_DrawCurve__intersectCurveBox(_1,_2,_3){var _4=Math.min(_3[0],_3[2]),_5=Math.min(_3[1],_3[3]),_6=Math.max(_3[0],_3[2]),_7=Math.max(_3[1],_3[3]);_3[0]=_4;_3[1]=_5;_3[2]=_6;_3[3]=_7;var _8=(_1==_2.endPoint);if(_8){this.$114e(_2)}
  var _9=1e-6,_10=_2.startPoint,_11=_2.endPoint,_12=(_3[0]<=_10[0]&&_10[0]<=_3[2]&&_3[1]<=_10[1]&&_10[1]<=_3[3]),_13=(_3[0]<=_11[0]&&_11[0]<=_3[2]&&_3[1]<=_11[1]&&_11[1]<=_3[3]),_14=_12,_15=!_14&&_13,_16=!_14&&!_15,_17=null;for(var m=0;m<4;++m){var k=m%2,l=(k+1)%2,s=(m<2?-1:1),_22=_3[s+1+k];var x=_10[k],y=_2.controlPoint1[k],z=_2.controlPoint2[k],w=_11[k],a=(-x+3*(y-z)+w),b=3*(x-y-y+z),c=3*(-x+y),d=x-_22;var _31=(Math.abs(a)<_9),_32=(Math.abs(b)<_9),_33=(Math.abs(c)<_9);if(!(_31&&_32&&_33)){var _34;if(_31&&_32){_34=[-d/c]}else if(_31){var _35=(c*c-4*b*d);if(_35<0){_34=[]}else if(_35>0){var _36=Math.sqrt(_35);_34=[(-c+_36)/(2*b),(-c-_36)/(2*b)]}else{_34=[-c/(2*b)]}}else{var _37=a*a,_38=a*_37,_39=b*b,_40=b*_39,_41=-b/(3*a),p=(3*a*c-_39)/(3*_37),q=(2*_40-9*a*b*c+27*_37*d)/(27*_38),_35=(q*q/4+p*p*p/27);if(_35>0){var _36=Math.sqrt(_35),_44=(-q/2+_36),_45=(-q/2-_36),u=(_44>0?1:-1)*Math.pow(Math.abs(_44),1/3),v=(_45>0?1:-1)*Math.pow(Math.abs(_45),1/3);_34=[u+v+_41]}else{var r=Math.sqrt(-4*p/3),_49=-4*q/(r*r*r),_50=Math.acos(Math.max(-1,Math.min(1,_49)))/3;_34=[_41+r*Math.cos(_50),_41+r*Math.cos(_50+2*Math.PI/3),_41+r*Math.cos(_50-2*Math.PI/3)]}}
  for(var i=_34.length;i--;){var r=_34[i],_52=3*a*r*r+2*b*r+c;if(_9<r&&r<1-_9&&_52!=0){var _53=(m+3)%4,_54=(m+1)%4,_55=(_53<2?-1:1),_56=(_54<2?-1:1),_57=l,_58=l,_59=_3[_55+1+_57],_60=_3[_56+1+_58],_61=isc.DrawPane.bezier(_10[l],_2.controlPoint1[l],_2.controlPoint2[l],_11[l],r);if(!(_55*_61>_55*_59)&&!(_56*_61>_56*_60)&&(_15?(s==(_52>0?-1:1)&&(_17==null||r<_17)):(_17==null||(_14?(r<_17):(r>_17)))))
  {_17=r}}}}}
  if(_17!=null){this.$114f(_2,_17,true)}
  if(_8){this.$114e(_2)}},isc.A.$114e=function isc_DrawCurve__backward(_1){var _2=_1.startPoint;_1.startPoint=_1.endPoint;_1.endPoint=_2;_2=_1.controlPoint1;_1.controlPoint1=_1.controlPoint2;_1.controlPoint2=_2},isc.A.$114f=function isc_DrawCurve__decasteljau(_1,_2,_3){var w=1-_2;for(var k=0;k<2;++k){var a=w*_1.startPoint[k]+_2*_1.controlPoint1[k],b=w*_1.controlPoint1[k]+_2*_1.controlPoint2[k],c=w*_1.controlPoint2[k]+_2*_1.endPoint[k],d=w*a+_2*b,e=w*b+_2*c,f=w*d+_2*e;if(_3){_1.controlPoint1[k]=a;_1.controlPoint2[k]=d;_1.endPoint[k]=f}else{_1.startPoint[k]=f;_1.controlPoint1[k]=e;_1.controlPoint2[k]=c}}
  return _1},isc.A.hideStartPointKnobs=function isc_DrawCurve_hideStartPointKnobs(){if(this.$639){this.$639.destroy();delete this.$639}},isc.A.showEndPointKnobs=function isc_DrawCurve_showEndPointKnobs(){if(this.$64a!=null&&!this.$64a.destroyed)return;var v=this.$136i(this.endPoint[0],this.endPoint[1],"local","global");this.$64a=this.createAutoChild("endKnob",{_constructor:"DrawKnob",x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.endPoint[0],_2.endPoint[1],"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_10,_11,_12,_13,_14){var _2=this.creator;if(_14=="start"){_2.$114g=_2.controlPoint1.duplicate();_2.$114h=_2.controlPoint2.duplicate()}
  var _3=_2.$114g,_4=_2.$114h;if(_2.keepInParentRect){var _5=_2.$113u(),_6={startPoint:_2.startPoint,controlPoint1:_3.duplicate(),controlPoint2:_4.duplicate(),endPoint:[0,0]};_2.$156z(_6,"local","global");_6.endPoint[0]=_10;_6.endPoint[1]=_11;_2.$114d(_6.startPoint,_6,_5);_2.$156z(_6,"global","local");var _7=_6.endPoint,_8=_6.controlPoint2,_9=_6.controlPoint1;_2.$156y(_2.startPoint[0],_2.startPoint[1],_2.$1503(_9[0]),_2.$1503(_9[1]),_2.$1503(_8[0]),_2.$1503(_8[1]),_2.$1503(_7[0]),_2.$1503(_7[1]),null,null)}else{var v=_2.$136i(_10,_11,"global","local");_2.$156y(_2.startPoint[0],_2.startPoint[1],_3[0],_3[1],_4[0],_4[1],_2.$1503(v[0]),_2.$1503(v[1]),null,null)}
  if(_14=="stop"){delete _2.$114g,delete _2.$114h}}})},isc.A.hideEndPointKnobs=function isc_DrawCurve_hideEndPointKnobs(){if(this.$64a){this.$64a.destroy();delete this.$64a}},isc.A.showControlPoint1Knobs=function isc_DrawCurve_showControlPoint1Knobs(){var _1=(this.$64b==null||this.$64b.destroyed),_2=(this.$64c==null||this.$64c.destroyed),v=null;if(_1||_2){v=this.$136i(this.controlPoint1[0],this.controlPoint1[1],"local","global")}
  if(_2){var w=this.$136i(this.startPoint[0],this.startPoint[1],"local","global");this.$64c=this.createAutoChild("c1Line",{_constructor:"DrawLine",startLeft:w[0],startTop:w[1],endLeft:v[0],endTop:v[1],drawPane:this.drawPane,autoDraw:true,$145w:true,exemptFromGlobalTransform:true,$1502:function(){var _5=this.creator,v=_5.$136i(_5.startPoint[0],_5.startPoint[1],"local","global"),w=_5.$136i(_5.controlPoint1[0],_5.controlPoint1[1],"local","global");this.$1487(v[0],v[1],w[0],w[1],null,null)}})}
  if(_1){this.$64b=this.createAutoChild("c1Knob",{x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _5=this.creator,v=_5.$136i(_5.controlPoint1[0],_5.controlPoint1[1],"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_14,_15,_16,_17,_18){var _5=this.creator;if(_18=="start"){_5.$114i=_5.startPoint.duplicate();_5.$114j=_5.controlPoint2.duplicate();_5.$114k=_5.endPoint.duplicate()}
  var _6=_5.$114i,_7=_5.$114j,_8=_5.$114k;if(_5.keepInParentRect){var _9=_5.$113u(),_10={startPoint:_6.duplicate(),controlPoint1:[0,0],controlPoint2:_7.duplicate(),endPoint:_8.duplicate()};_5.$156z(_10,"local","global");_10.controlPoint1[0]=_14;_10.controlPoint1[1]=_15;_5.$114d(_10.endPoint,_10,_9);_5.$156z(_10,"global","local");var _11=_10.startPoint,_12=_10.controlPoint1,_13=_10.controlPoint2;_5.$156y(_5.$1503(_11[0]),_5.$1503(_11[1]),_5.$1503(_12[0]),_5.$1503(_12[1]),_5.$1503(_13[0]),_5.$1503(_13[1]),_5.endPoint[0],_5.endPoint[1],null,null)}else{var v=_5.$136i(_14,_15,"global","local");_5.$156y(_6[0],_6[1],_5.$1503(v[0]),_5.$1503(v[1]),_7[0],_7[1],_8[0],_8[1],null,null)}
  if(_18=="stop"){delete _5.$114i;delete _5.$114j;delete _5.$114k}}})}},isc.A.hideControlPoint1Knobs=function isc_DrawCurve_hideControlPoint1Knobs(){if(this.$64b){this.$64b.destroy();delete this.$64b}
  if(this.$64c){this.$64c.erase();delete this.$64c}},isc.A.showControlPoint2Knobs=function isc_DrawCurve_showControlPoint2Knobs(){var _1=(this.$64d==null||this.$64d.destroyed),_2=(this.$64e==null||this.$64e.destroyed),v=null;if(_1||_2){v=this.$136i(this.controlPoint2[0],this.controlPoint2[1],"local","global")}
  if(_2){var w=this.$136i(this.endPoint[0],this.endPoint[1],"local","global");this.$64e=this.createAutoChild("c2Line",{_constructor:"DrawLine",startLeft:w[0],startTop:w[1],endLeft:v[0],endTop:v[1],drawPane:this.drawPane,autoDraw:true,$145w:true,exemptFromGlobalTransform:true,$1502:function(){var _5=this.creator,v=_5.$136i(_5.endPoint[0],_5.endPoint[1],"local","global"),w=_5.$136i(_5.controlPoint2[0],_5.controlPoint2[1],"local","global");this.$1487(v[0],v[1],w[0],w[1],null,null)}})}
  if(_1){this.$64d=this.createAutoChild("c2Knob",{x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _5=this.creator,v=_5.$136i(_5.controlPoint2[0],_5.controlPoint2[1],"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_14,_15,_16,_17,_18){var _5=this.creator;if(_18=="start"){_5.$114l=_5.startPoint.duplicate();_5.$114m=_5.controlPoint1.duplicate();_5.$114n=_5.endPoint.duplicate()}
  var _6=_5.$114l,_7=_5.$114m,_8=_5.$114n;if(_5.keepInParentRect){var _9=_5.$113u(),_10={startPoint:_6.duplicate(),controlPoint1:_7.duplicate(),controlPoint2:[0,0],endPoint:_8.duplicate()};_5.$156z(_10,"local","global");_10.controlPoint2[0]=_14;_10.controlPoint2[1]=_15;_5.$114d(_10.startPoint,_10,_9);_5.$156z(_10,"global","local");var _11=_10.controlPoint1,_12=_10.controlPoint2,_13=_10.endPoint;_5.$156y(_5.startPoint[0],_5.startPoint[1],_5.$1503(_11[0]),_5.$1503(_11[1]),_5.$1503(_12[0]),_5.$1503(_12[1]),_5.$1503(_13[0]),_5.$1503(_13[1]),null,null)}else{var v=_5.$136i(_14,_15,"global","local");_5.$156y(_6[0],_6[1],_7[0],_7[1],_5.$1503(v[0]),_5.$1503(v[1]),_8[0],_8[1],null,null)}
  if(_18=="stop"){delete _5.$114l;delete _5.$114m;delete _5.$114n}}})}},isc.A.hideControlPoint2Knobs=function isc_DrawCurve_hideControlPoint2Knobs(){if(this.$64d){this.$64d.destroy();delete this.$64d}
  if(this.$64e){this.$64e.erase();delete this.$64e}},isc.A.updateControlKnobs=function isc_DrawCurve_updateControlKnobs(){this.Super("updateControlKnobs",arguments);if(this.$639||this.$64c){var v=this.$136i(this.startPoint[0],this.startPoint[1],"local","global");if(this.$64c){this.$64c.setStartPoint(this.$1503(v[0]),this.$1503(v[1]))}
  if(this.$639){this.$639.setCenterPoint(v[0],v[1])}}
  if(this.$64a||this.$64e){var v=this.$136i(this.endPoint[0],this.endPoint[1],"local","global");if(this.$64e){this.$64e.setStartPoint(this.$1503(v[0]),this.$1503(v[1]))}
  if(this.$64a){this.$64a.setCenterPoint(v[0],v[1])}}
  if(this.$64b){var v=this.$136i(this.controlPoint1[0],this.controlPoint1[1],"local","global");this.$64c.setEndPoint(this.$1503(v[0]),this.$1503(v[1]));this.$64b.setCenterPoint(v[0],v[1])}
  if(this.$64d){var v=this.$136i(this.controlPoint2[0],this.controlPoint2[1],"local","global");this.$64e.setEndPoint(this.$1503(v[0]),this.$1503(v[1]));this.$64d.setCenterPoint(v[0],v[1])}},isc.A.moveStartPointTo=function isc_DrawCurve_moveStartPointTo(_1,_2){this.$147y(_1,_2,this.startPoint[0],this.startPoint[1])},isc.A.$147w=function isc_DrawCurve__updateLocalTransform(_1,_2,_3,_4,_5,_6){if(_6){this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments);return}
  var _7=1e-9;if(Math.abs(_1.getDeterminant())>_7){if(_4==null){_4=this.$147m()}
  var _8=_4.invLocalTransform;if(_8==null){this.Super("$147w",[isc.AffineTransform.$147g(),_2,_3,_4,false,true],arguments)}else{_1.leftMultiply(_8);var _9=this.translate=(this.translate||new Array(2)),_10=this.scale=(this.scale||new Array(2));_9[0]=_4.translateX;_9[1]=_4.translateY;_10[0]=_4.scaleX;_10[1]=_4.scaleY;this.xShearFactor=_4.xShearFactor;this.yShearFactor=_4.yShearFactor;this.rotation=_4.rotation}
  var _11=_1.transform(_4.startLeft,_4.startTop);this.startPoint[0]=_11[0];this.startPoint[1]=_11[1];var _12=_1.transform(_4.control1Left,_4.control1Top);this.controlPoint1[0]=_12[0];this.controlPoint1[1]=_12[1];var _13=_1.transform(_4.control2Left,_4.control2Top);this.controlPoint2[0]=_13[0];this.controlPoint2[1]=_13[1];var _14=_1.transform(_4.endLeft,_4.endTop);this.endPoint[0]=_14[0];this.endPoint[1]=_14[1];var _15=this.$147l();this.$147x(_2,_3,_15.cx,_15.cy);if(!isc.Browser.$141c){this.$1420()}
  if(this.drawingVML){var _16=this.$154s;if(_2!=_15.cx||_3!=_15.cy){this.$1348=null;_16.setProperty("transform",this.$1339())}
  _16.setProperty("fromX",this.startPoint[0]).setProperty("fromY",this.startPoint[1]).setProperty("control1X",this.controlPoint1[0]).setProperty("control1Y",this.controlPoint1[1]).setProperty("control2X",this.controlPoint2[0]).setProperty("control2Y",this.controlPoint2[1]).setProperty("toX",this.endPoint[0]).setProperty("toY",this.endPoint[1]).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s()}else{this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)}},isc.A.$147m=function isc_DrawCurve__saveShape(){var _1=0,_2=0,_3=1,_4=1,_5=this.xShearFactor||0,_6=this.yShearFactor||0,_7=this.rotation||0;if(this.translate){_1=this.translate[0];_2=this.translate[1]}
  if(this.scale&&this.scale.length===2){_3=this.scale[0];_4=this.scale[1]}
  return{startLeft:this.startPoint[0],startTop:this.startPoint[1],control1Left:this.controlPoint1[0],control1Top:this.controlPoint1[1],control2Left:this.controlPoint2[0],control2Top:this.controlPoint2[1],endLeft:this.endPoint[0],endTop:this.endPoint[1],invLocalTransform:this.$1476(),translateX:_1,translateY:_2,scaleX:_3,scaleY:_4,xShearFactor:_5,yShearFactor:_6,rotation:_7}});isc.B._maxIndex=isc.C+45;isc.defineClass("DrawBlockConnector","DrawCurve");isc.defineClass("DrawPath","DrawItem");isc.A=isc.DrawPath.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showTitleLabelBackground=true;isc.A.points=[[0,0],[100,100]];isc.A.svgElementName=isc.Browser.isMoz?"path":"polyline";isc.A.eventOpaque=false;isc.A.$1543=new isc.VMLRenderer.shapeConfig();isc.B.push(isc.A.init=function isc_DrawPath_init(){this.points=isc.clone(this.points);this.$1433();this.Super("init",arguments)},isc.A.getBoundingBox=function isc_DrawPath_getBoundingBox(_1,_2){var _3=(_2||new Array(4));_3[0]=this._left;_3[1]=this._top;_3[2]=this._right;_3[3]=this._bottom;return _1!=true?_3:this.$147b(true,false,_3)},isc.A.$147c=function isc_DrawPath__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=(_4||new Array(4));var _6=(_2&&this.$125h()?(this.lineWidth/2):0),_7=(_3?this.hitTolerance:0),_8=_6+_7;var _9=this.points,_10=this.$149u,_11=0,_12=0,_13=0,_14=0;if(_10==null){_11=this._left;_12=this._top;_13=this._right;_14=this._bottom}else{var _15=_1.m00,_16=_1.m01,_17=_1.m02,_18=_1.m10,_19=_1.m11,_20=_1.m12;for(var i=0,h=_10.length;i<h;++i){var _23=_9[_10[i]],u=_23[0],v=_23[1],x=_15*u+_16*v+_17,y=_18*u+_19*v+_20;if(i==0){_11=_13=x;_12=_14=y}else{if(x<_11)_11=x;else if(_13<x)_13=x;if(y<_12)_12=y;else if(_14<y)_14=y}}}
  _5[0]=_11;_5[1]=_12;_5[2]=_13;_5[3]=_14;if(_8!=0){var _28=_8*isc.Math.$101k(_15,_16),_29=_8*isc.Math.$101k(_18,_19);_5[0]-=_28;_5[1]-=_29;_5[2]+=_28;_5[3]+=_29}
  return _5},isc.A.getPathSVG=function isc_DrawPath_getPathSVG(){if(this.points==null||this.points.length==0)return"";var _1="M ",i,_3=this.points[0];_1+=_3[0]+" "+_3[1]+" ";for(i=1;i<this.points.length;++i){_3=this.points[i];_1+=" L "+_3[0]+" "+_3[1]}
  return _1},isc.A.getAttributesSVG=function isc_DrawPath_getAttributesSVG(){if(this.svgElementName==="path"){return"d='"+this.getPathSVG()+"'"}else{return"points='"+this.getPointsText()+"'"}},isc.A.getPointsText=function isc_DrawPath_getPointsText(){var _1=isc.StringBuffer.create();this.$149n(_1);return _1.release(false)},isc.A.$149n=function isc_DrawPath__getPointsText(_1){var _2=this.points;if(_2==null)return;for(var i=0,_4=_2.length;i<_4;++i){if(i>0){_1.append(" ")}
  _1.append(_2[i][0]," ",_2[i][1])}},isc.A.$154t=function isc_DrawPath__renderVML(_1,_2,_3){var _4=this.$1543;isc.VMLRenderer.drawItemToShapeConfig(this,_4);this.$154s=_1.polyline(_2,_4)},isc.A.drawBitmapPath=function isc_DrawPath_drawBitmapPath(_1){var _2=this.points;if(_2==null||_2.length==0)return;var _3,_4=10,_5=_2.length-1,_6,_7;if(this.startArrow=="open"){_1.save();_1.beginPath();_1.strokeStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_3=this.computeAngle(_2[0][0],_2[0][1],_2[1][0],_2[1][1]);_6=_2[0][0];_7=_2[0][1];_1.scale(1,1);_1.translate(_6,_7);_1.rotate(_3*this.$125w);this.bmMoveTo(_4,-_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(_4,_4,_1);_1.stroke();_1.restore()}else if(this.startArrow=="block"){_1.save();_1.beginPath();_1.fillStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_3=this.computeAngle(_2[0][0],_2[0][1],_2[1][0],_2[1][1]);_6=_2[0][0];_7=_2[0][1];_1.translate(_6,_7);_1.rotate(_3*this.$125w);this.bmMoveTo(_4,-_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(_4,_4,_1);_1.closePath();_1.fill();_1.stroke();_1.restore()}
  if(this.endArrow=="open"){_1.save();_1.beginPath();_1.strokeStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_3=this.computeAngle(_2[_5-1][0],_2[_5-1][1],_2[_5][0],_2[_5][1]);_6=_2[_5][0];_7=_2[_5][1];_1.translate(_6,_7);_1.rotate(_3*this.$125w);this.bmMoveTo(-_4,_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(-_4,-_4,_1);_1.stroke();_1.restore()}else if(this.endArrow=="block"){_1.save();_1.beginPath();_1.fillStyle=this.lineColor;_1.lineWidth=this.lineWidth;_1.lineCap=this.lineCap;_3=this.computeAngle(_2[_5-1][0],_2[_5-1][1],_2[_5][0],_2[_5][1]);_6=_2[_5][0];_7=_2[_5][1];_1.translate(_6,_7);_1.rotate(_3*this.$125w);this.bmMoveTo(-_4,_4,_1);this.bmLineTo(0,0,_1);this.bmLineTo(-_4,-_4,_1);_1.closePath();_1.fill();_1.restore()}
  this.bmMoveTo(_2[0][0],_2[0][1],_1);for(var i=1;i<_2.length;i++){var _9=_2[i];if(!_1.setLineDash&&this.linePattern.toLowerCase()!=="solid"){this.$85x(_2[i-1][0],_2[i-1][1],_2[i][0],_2[i][1],_1)}else{this.bmLineTo(_9[0],_9[1],_1)}}},isc.A.getCenter=function isc_DrawPath_getCenter(){return[this.$1503(this.$149v),this.$1503(this.$149w)]},isc.A.isPointInPath=function isc_DrawPath_isPointInPath(_1,_2){if(this.$125k()||this.eventOpaque){return this.Super("isPointInPath",arguments)}
  var _3=Math.max(this.lineWidth/2,2)+this.hitTolerance;var _4=this.$136i(_1,_2);var _5=this.points,_6=_5.length,_7,_8;for(var i=0;i<_6-1;++i){_7=_5[i];_8=_5[i+1];if(isc.Math.euclideanDistanceToLine(_7[0],_7[1],_8[0],_8[1],_4[0],_4[1])<_3)
  {return true}}
  if(isc.isA.DrawPolygon(this)&&_6>=3){var _10=_5[0],_11=_5[_6-1];if(isc.Math.euclideanDistanceToLine(_10[0],_10[1],_11[0],_11[1],_4[0],_4[1])<_3)
  {return true}}
  return false},isc.A.setPoints=function isc_DrawPath_setPoints(_1,_2,_3){this.points=_1;this.$1433();delete this.$184m;if(_2!=null&&_3!=null){var _4=this.$147l();this.$147x(_2,_3,_4.cx,_4.cy)}
  this.$152a(false);this.$143s()},isc.A.$152a=function isc_DrawPath__redrawAfterSetPoints(_1){if(this.drawingVML){if(_1){this.$1348=null;this.$154s.setProperty("transform",this.$1339())}
  this.$154s.setProperty("points",this.points).flush()}else if(this.drawingSVG){if(this.svgElementName==="path"){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else{this.$44z.setAttributeNS(null,"points",this.getPointsText())}}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.$1433=function isc_DrawPath__initBoundingParams(){var _1=this.points,_2=_1[0];if(_2==null){this._left=this.$126i[0],this._top=this.$126i[1],this._right=this.$126i[2],this._bottom=this.$126i[3];if(isc.isA.DrawDiamond(this)){this.left=this.$1503(this._left);this.top=this.$1503(this._top);this.width=this.$1503(this._right)-this.left;this.height=this.$1503(this._bottom)-this.top}
  this.$149v=0;this.$149w=0;this.$149u=null;return}
  var n=_1.length,_4=new Array(n);for(var i=n;i--;){_4[i]=i}
  for(var i=1;i<n;++i){var j=i,p=_1[_4[j-1]],q=_1[_4[j]];while(p[0]>q[0]||(p[0]==q[0]&&p[1]>q[1])){var _9=_4[j-1];_4[j-1]=_4[j];_4[j]=_9;--j;if(j>0){p=_1[_4[j-1]];q=_1[_4[j]]}else{break}}}
  var _10=_1[_4[0]][0],_11=_1[_4[_4.length-1]][0],_12=_1[0][1],_13=_12,_14=[],k=0;for(var i=0;i<n;++i){var j=_4[i],p=_1[j],_16=p[0],_17=p[1];if(_17<_12){_12=_17}else if(_13<_17){_13=_17}
  while(k>1){var q=_1[_14[k-2]],r=_1[_14[k-1]],_19=(r[0]-q[0])*(_17-r[1])-(_16-r[0])*(r[1]-q[1]);if(_19<=0){--k}else{break}}
  _14[k++]=j}
  --k;var l=1,_21=0,_22=0;for(var i=n;i--;){var j=_4[i],p=_1[j],_16=p[0],_17=p[1];while(l>1){var m=k+l,q=_1[_14[m-2]],r=_1[_14[m-1]],_19=(r[0]-q[0])*(_17-r[1])-(_16-r[0])*(r[1]-q[1]);if(_19<=0){--l}else{break}}
  _14[k+(l++)]=j;_21+=_16;_22+=_17}
  _14.length=k+l-1;this._left=_10;this._top=_12;this._right=_11;this._bottom=_13;if(isc.isA.DrawDiamond(this)){this.left=this.$1503(this._left);this.top=this.$1503(this._top);this.width=this.$1503(this._right)-this.left;this.height=this.$1503(this._bottom)-this.top}
  this.$149v=(n>0?(_21/n):0);this.$149w=(n>0?(_22/n):0);this.$149u=_14},isc.A.moveFirstPointTo=function isc_DrawPath_moveFirstPointTo(_1,_2){var _3=this.points[0];this.$147y(_1,_2,_3[0],_3[1])},isc.A.$147w=function isc_DrawPath__updateLocalTransform(_1,_2,_3,_4,_5,_6){var _7=1e-9;if(_4==null){_4=this.$147m()}
  if(this.titleAutoFit&&!_1.isTranslate(_7)){delete this.$184m}
  if(_6){this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments);return}
  var _8=this.points,_9=_8.length,_10=this.$149u;if(_9>0&&_10!=null&&Math.abs(_1.getDeterminant())>_7&&this.getClass().getClassName()!=="DrawLinePath")
  {var _11=_4.invLocalTransform;if(_11==null){this.Super("$147w",[isc.AffineTransform.$147g(),_2,_3,_4,false,true],arguments)}else{var _12=this.translate=(this.translate||new Array(2)),_13=this.scale=(this.scale||new Array(2));_12[0]=_4.translateX;_12[1]=_4.translateY;_13[0]=_4.scaleX;_13[1]=_4.scaleY;this.xShearFactor=_4.xShearFactor;this.yShearFactor=_4.yShearFactor;this.rotation=_4.rotation}
  var _14=_4.points,_15=_1.m00,_16=_1.m01,_17=_1.m02,_18=_1.m10,_19=_1.m11,_20=_1.m12,_21=isc.Math.$101k(_15,_16),_22=isc.Math.$101k(_18,_19),_23=_15,_24=_16,_25=_17,_26=_18,_27=_19,_28=_20;if(_11!=null){_1.leftMultiply(_11);_23=_1.m00;_24=_1.m01;_25=_1.m02;_26=_1.m10;_27=_1.m11;_28=_1.m12}
  var _29=(this.$125h()?(this.lineWidth/2):0);if(!(_29==0||(_23==1&&_24==0&&_26==0&&_27==1))){var _30=2*_29;var _31=0,_32=0,_33=0,_34=0;for(var i=0,h=_10.length;i<h;++i){var j=2*_10[i],u=_14[j],v=_14[j+1],x=_15*u+_16*v+_17,y=_18*u+_19*v+_20;if(i==0){_31=_32=x;_33=_34=y}else{if(x<_31)_31=x;else if(_32<x)_32=x;if(y<_33)_33=y;else if(_34<y)_34=y}}
  var _42=_32-_31,_43=_34-_33;var _44=1,_45=1;if(_11!=null){var _46=_4.localTransform;_44=isc.Math.$101k(_46.m00,_46.m01);_45=isc.Math.$101k(_46.m10,_46.m11)}
  var _47=(_42+_44*_30)/(_42+_21*_30),_48=(_43+_45*_30)/(_43+_22*_30);var _49=_30*_30,_50=_44*_30,_51=_45*_30,_52=((_21-_44)*(_21+_44)*_49+_42*(2*_50-_42)),_53=_42*(_42-_50),_54=(_42<=_50?-1:1),_55=_21*_30*_42,_56=((_22-_45)*(_22+_45)*_49+_43*(2*_51-_43)),_57=_43*(_43-_51),_58=(_43<=_51?-1:1),_59=_22*_30*_43;if(_52!=0){var _60=-(_53+_54*_55)/_52,_61=-(2*_53/_52+_60);if(_60>0&&(_61<=0||Math.abs(_47-_60)<Math.abs(_47-_61)))
  {_47=_60}else if(_61>0){_47=_61}}else if(_54==1){_47=_42/(2*(_42-_50))}
  if(_56!=0){var _62=-(_57+_58*_59)/_56,_63=-(2*_57/_56+_62);if(_62>0&&(_63<=0||Math.abs(_48-_62)<Math.abs(_48-_63)))
  {_48=_62}else if(_63>0){_48=_63}}else if(_58==1){_48=_43/(2*(_43-_45*_30))}
  var _64=(1-_47)*(_31+_32)/2,_65=(1-_48)*(_33+_34)/2;_1.m00=_15/_47;_1.m01=_16/_47;_1.m02=(_17-_64)/_47;_1.m10=_18/_48;_1.m11=_19/_48;_1.m12=(_20-_65)/_48;if(_11!=null){_1.leftMultiply(_11)}
  _23=_1.m00;_24=_1.m01;_25=_1.m02;_26=_1.m10;_27=_1.m11;_28=_1.m12}
  var _66=0,_67=0,_68=0,_69=0;for(var i=0,h=_10.length;i<h;++i){var j=2*_10[i],u=_14[j],v=_14[j+1],x=_23*u+_24*v+_25,y=_26*u+_27*v+_28;if(i==0){_66=_67=x;_68=_69=y}else{if(x<_66)_66=x;else if(_67<x)_67=x;if(y<_68)_68=y;else if(_69<y)_69=y}}
  this._left=_66;this._top=_68;this._right=_67;this._bottom=_69;var _70=isc.isA.DrawDiamond(this);if(_70){this.left=this.$1503(this._left);this.top=this.$1503(this._top);this.width=this.$1503(this._right)-this.left;this.height=this.$1503(this._bottom)-this.top}
  this.$149v=_23*_4.centerX+_24*_4.centerY+_25;this.$149w=_26*_4.centerX+_27*_4.centerY+_28;for(var i=0,j=0;i<_9;++i,j+=2){var _71=_8[i],u=_14[j],v=_14[j+1];_71[0]=_23*u+_24*v+_25;_71[1]=_26*u+_27*v+_28;if(_70){_71[0]=this.$1503(_71[0]);_71[1]=this.$1503(_71[1])}}
  var _72=this.$147l();this.$147x(_2,_3,_72.cx,_72.cy);this.$152a(this.drawingVML&&(_2!=_72.cx||_3!=_72.cy));if(_5){this.$143s()}}else{this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)}},isc.A.$147m=function isc_DrawPath__saveShape(){var _1=this.points,n=_1.length,_3=new Array(n*2);for(var i=0,j=0;i<n;++i,j+=2){var _6=_1[i];_3[j]=_6[0];_3[j+1]=_6[1]}
  var _7=0,_8=0,_9=1,_10=1,_11=this.xShearFactor||0,_12=this.yShearFactor||0,_13=this.rotation||0;if(this.translate){_7=this.translate[0];_8=this.translate[1]}
  if(this.scale&&this.scale.length===2){_9=this.scale[0];_10=this.scale[1]}
  return{points:_3,centerX:this.$149v,centerY:this.$149w,localTransform:this.$1339(),invLocalTransform:this.$1476(),translateX:_7,translateY:_8,scaleX:_9,scaleY:_10,xShearFactor:_11,yShearFactor:_12,rotation:_13}});isc.B._maxIndex=isc.C+17;isc.defineClass("DrawPolygon","DrawPath");isc.A=isc.DrawPolygon.getPrototype();isc.A.showTitleLabelBackground=false;isc.A.points=[[0,0],[50,50],[100,0]];isc.A.lineCap="butt";isc.A.titleRotationMode="withItemAlwaysUp";isc.A.svgElementName="path";isc.A.eventOpaque=true;isc.A=isc.DrawPolygon.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1545=new isc.VMLRenderer.shapeConfig();isc.B.push(isc.A.$165u=function isc_DrawPolygon__isClosed(){return true},isc.A.$152a=function isc_DrawPolygon__redrawAfterSetPoints(_1){if(this.drawingVML){if(_1){this.$1348=null;this.$154s.setProperty("transform",this.$1339())}
  var _2;this.$154s.setProperty("$126a",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.getPathSVG())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}},isc.A.$149n=function isc_DrawPolygon__getPointsText(_1){var _2=this.points;for(var i=0,_4=_2.length;i<_4;++i){_1.append(_2[i][0]," ",_2[i][1]," ")}
  _1.append(_2[0][0]," ",_2[0][1])},isc.A.getPathSVG=function isc_DrawPolygon_getPathSVG(){return this.Super("getPathSVG",arguments)+" Z"},isc.A.getAttributesSVG=function isc_DrawPolygon_getAttributesSVG(){return"d='"+this.getPathSVG()+"'"},isc.A.$154t=function isc_DrawPolygon__renderVML(_1,_2,_3){var _4=this.$1545;isc.VMLRenderer.drawItemToShapeConfig(this,_4);this.$154s=_1.shape(_2,_4)},isc.A.$126a=function isc_DrawPolygon__getPathVML(_1){var _2=this.points,_3=_2==null?0:_2.length;if(_3>0){var _4=_2[0];_1.m(_4[0],_4[1]);for(var i=1;i<_3;++i){_4=_2[i];_1.l(_4[0],_4[1])}
  _1.x()}},isc.A.drawBitmapPath=function isc_DrawPolygon_drawBitmapPath(_1){var _2=this.points;this.bmMoveTo(_2[0][0],_2[0][1],_1);for(var i=1;i<_2.length;i++){var _4=_2[i];this.bmLineTo(_4[0],_4[1],_1)}
  _1.closePath()},isc.A.$184n=function isc_DrawPolygon__hasOnlyRightAngles(_1){_1=_1||1e-9;var _2=this.points;for(var i=0;i<_2.length;i++){var _4=_2[i],_5=_2[(i+1)%_2.length];var _6=_4[0]-_5[0],_7=_4[1]-_5[1];if(Math.abs(_6)>_1&&Math.abs(_7)>_1){return false}}
  return true},isc.A.$184o=function isc_DrawPolygon__getAxisCoordinates(_1){var _2=[],_3=this.points;for(var i=0;i<_3.length;i++){_2.add(Math.round(_1?_3[i][1]:_3[i][0]))}
  _2.sort(function(_7,_8){return _7-_8});var _5=[];for(var i=0;i<_2.length;i++){var _6=_5.length;if(_5.length>0&&_2[i]<=_5.last())_6--;_5[_6]=_2[i]}
  return _5},isc.A.$184p=function isc_DrawPolygon__getAxisSegments(_1,_2){var _3=[],_4=this.points,_5=_1?1:0,_6=_1?0:1,_7=_4.last()[_5]==_4[0][_5];for(var i=0;i<_4.length;i++){var _9=_4[i],_10=_4[(i+1)%_4.length],_11=Math.round(_9[_5]),_12=Math.round(_10[_5]);if(_11!=_12){_3.add({start:Math.min(_11,_12),end:Math.max(_11,_12),offset:Math.round(_9[_6])});_7=false}else if(_7){var _13=Math.round(_9[_6]),_14=Math.round(_10[_6]);_2.add({start:Math.min(_13,_14),end:Math.max(_13,_14),offset:_11})}else{_7=true}}
  _3.sort(function(_18,_19){var _15=_18.start-_19.start;if(_15!=0)return _15;var _16=_18.end-_19.end;return _16!=0?_16:_18.offset-_19.offset});_2.sort(function(_18,_19){var _17=_18.offset-_19.offset;if(_17!=0)return _17;var _15=_18.start-_19.start;return _15!=0?_15:_18.end-_19.end});return _3},isc.A.$184q=function isc_DrawPolygon__getColumnLayoutInfo(_1){var _2=[],_3=this.$184p(false,_2);var _4=[];for(var i=0;i<_1.length-1;i++)_4[i]=[];for(var i=0;i<_3.length;i++){var _6=_3[i],_7=_6.offset,_8=_6.start,_9=_6.end;for(var j=0;j<_1.length-1;j++){if(_1[j]>=_8&&_1[j+1]<=_9){_4[j].add(_7)}}}
  for(var i=0;i<_1.length-1;i++){_4[i].sort(function(_15,_16){return _15-_16})}
  var _11=[];for(var i=1,j=0;i<_1.length-1&&j<_2.length;j++){var _12=_1[i],_6=_2[j];if(_12<_6.offset){i++;j--;continue}
  if(_12>_6.offset)continue;var _13=_11[i];if(_13==null){_13=_11[i]=[]}else{var _14=_13.last();if(_14>=_6.start){if(_6.end>_14){_13[_13.length-1]=_6.end}
  continue}}
  _11[i].add(_6.start);_11[i].add(_6.end)}
  return{nXCoords:_1.length,columnSegments:_11,columnIntervals:_4,spanIntervalCache:[]}},isc.A.$184i=function isc_DrawPolygon__getTitleAutoFit(_1){if(!this.invokeSuper(isc.DrawPolygon,"$184i",_1))return false;if(!this.$184n()){if(!this.$184r){this.logWarn("Cannot apply titleAutoFit to this DrawPolygon since it contains other than 90 degree angles.  Fix the points array for compliance.");var _2=isc.addProperties({},this.titleLabelDefaults,this.titleLabelProperties);if(isc.isA.DrawLabel(_1))_1.setFontSize(_2.fontSize)}
  this.$184r=true;return false}
  delete this.$184r;return true},isc.A.$184j=function isc_DrawPolygon__getMaximalRects(){if(this.$184m)return this.$184m;delete this.$184h;var _1={},_2=isc.DrawPolygon,_3=this.getCenter(),_4=this.$184o(false),_5=this.$184q(_4);for(var _6=0;_6<_4.length-1;_6++){for(var _7=_6+1;_7<_4.length;_7++){var _8=_4[_7]-_4[_6],_9=_2.$184s(_5,_6,_7);for(var i=0;i<_9.length;i+=2){var _11=_9[i+1]-_9[i];if(_1[_11]==null){_1[_11]={left:_4[_6]-_3[0],width:_8,top:_9[i]-_3[1],height:_11}}else if(_1[_11].width<_8){var _12=_1[_11];_12.left=_4[_6]-_3[0];_12.top=_9[i]-_3[1];_12.width=_8}}}}
  var _13=[];for(var _11 in _1){_13.add(_1[_11])}
  _13.sort(function(_19,_20){return _19.width-_20.width})
  var _14=[],_15=0,_16=0;for(var i=0;i<_13.length;i++){var _17=_14.length,_18=_14.length>0?_14[_17-1]:null;if(_18&&_13[i].height>=_18.height)_17--;_14[_17]=_13[i]}
  return this.$184m=_14});isc.B._maxIndex=isc.C+14;isc.DrawPolygon.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.A=isc.DrawPolygon;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$184t=function isc_c_DrawPolygon__getIntervalsOutsideSegments(_1,_2,_3){var _4=_1.columnSegments,_5=_4[_3];if(_5==null)return _2;var _6=0,_7=0,_8=_5.length,_9=_2.length,_10=[];if(_9==0||_8==0||_2[0]>=_5.last()||_2.last()<=_5[0])return _2;while(_7<_9||_6<_8){while(_7<_9&&(_6>=_8||_2[_7+1]<=_5[_6]))
  {_10.add(_2[_7++]);_10.add(_2[_7++])}
  while(_6<_8&&(_7>=_9||_5[_6+1]<=_2[_7]))
  {_6+=2}
  if(_7<_9&&_6<_8){if(_2[_7]<_5[_6]){_10.add(_2[_7]);_10.add(_5[_6])}
  if(_2[_7+1]>_5[_6+1]){_2[_7]=_5[_6+1];_6+=2;continue}
  _7+=2}}
  return _10},isc.A.$184s=function isc_c_DrawPolygon__getColumnIntersection(_1,_2,_3){var _4=_3-_2;if(_4<=1)return _1.columnIntervals[_2];var _5=_1.spanIntervalCache,_6=_1.nXCoords*_3+_2;if(_5[_6])return _5[_6];var _7=_2+Math.floor(_4/2),_8=this.$184s(_1,_2,_7),_9=this.$184s(_1,_7,_3);var _10=0,_11=0,_12=[];var _13=_8.length,_14=_9.length;while(_10<_13&&_11<_14){if(_9[_11+1]<=_8[_10]){_11+=2;continue}
  if(_8[_10+1]<=_9[_11]){_10+=2;continue}
  if(_8[_10+1]>_9[_11+1]){_12.add(Math.max(_8[_10],_9[_11]));_12.add(_9[_11+1]);_11+=2}else{_12.add(Math.max(_9[_11],_8[_10]));_12.add(_8[_10+1]);_10+=2}}
  if(_1.columnSegments.length>0){_12=this.$184t(_1,_12,_7)}
  return _5[_6]=_12});isc.B._maxIndex=isc.C+2;isc.defineClass("DrawTriangle","DrawPolygon");isc.A=isc.DrawTriangle.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getCenter=function isc_DrawTriangle_getCenter(){var a=isc.Math.euclideanDistance(this.points[1],this.points[2]),b=isc.Math.euclideanDistance(this.points[0],this.points[2]),c=isc.Math.euclideanDistance(this.points[0],this.points[1]),P=a+b+c,u=[a,b,c],_6=[this.points[0][0],this.points[1][0],this.points[2][0]],_7=[this.points[0][1],this.points[1][1],this.points[2][1]],_8=[isc.Math.$fr(u,_6)/P,isc.Math.$fr(u,_7)/P];return _8});isc.B._maxIndex=isc.C+1;isc.defineClass("DrawDiamond","DrawPolygon");isc.A=isc.DrawDiamond.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.left=0;isc.A.top=0;isc.A.width=100;isc.A.height=100;isc.A.titleRotationMode="withItemAlwaysUp";isc.A.roundCoordinates=false;isc.A.$179j=true;isc.B.push(isc.A.init=function isc_DrawDiamond_init(){this.points=this.$1509(this.left,this.top,this.width,this.height);this.Super("init",arguments)},isc.A.setLeft=function isc_DrawDiamond_setLeft(_1){this.setRect(_1,this.top,this.width,this.height)},isc.A.setTop=function isc_DrawDiamond_setTop(_1){this.setRect(this.left,_1,this.width,this.height)},isc.A.setWidth=function isc_DrawDiamond_setWidth(_1){this.setRect(this.left,this.top,_1,this.height)},isc.A.setHeight=function isc_DrawDiamond_setHeight(_1){this.setRect(this.left,this.top,this.width,_1)},isc.A.$1509=function isc_DrawDiamond__getPoints(_1,_2,_3,_4){var _5=this.$1503(_1+_3/2),_6=this.$1503(_2+_4/2);return[[_5,_2],[_1+_3,_6],[_5,_2+_4],[_1,_6]]},isc.A.setRect=function isc_DrawDiamond_setRect(_1,_2,_3,_4,_5,_6){if(_1==null)_1=this.left;if(_2==null)_2=this.top;if(_3==null)_3=this.width;if(_4==null)_4=this.height;var _7=false;if(this.left==_1&&this.top==_2&&this.width==_3&&this.height==_4)
  {_7=true;if(_5==null&&_6==null)return}
  if(_5==null||_6==null){var _8=this.$147l();if(_7&&(_5==null||_5==_8.cx)&&(_6==null||_6==_8.cy))
  {return}
  _5=_8.cx;_6=_8.cy}
  this.left=_1;this.top=_2;this.width=_3;this.height=_4;this.setPoints(this.$1509(_1,_2,_3,_4),_5,_6)},isc.A.$147m=function isc_DrawDiamond__saveShape(){var _1=this.Super("$147m",arguments);return isc.addProperties(_1,{left:this.left,top:this.top,width:this.width,height:this.height})},isc.A.$147w=function isc_DrawDiamond__updateLocalTransform(_1,_2,_3,_4,_5,_6,_7,_8){if(!_6){if(_4==null){_4=this.$147m()}
  var _9=_8!=null?_8.cx:_2,_10=_8!=null?_8.cy:_3;var _11=isc.DrawItem.$147j(_1,_9,_10,_4.left,_4.top,_4.width,_4.height,!_7&&this.$125h()?this.lineWidth/2:0,this.$179h());if(_11.success){this.Super("$147w",[_1,_9,_10,_4,false,true],arguments);this.setRect(this.$1503(_11.left),this.$1503(_11.top),this.$1503(_11.width),this.$1503(_11.height),this.$1503(_9),this.$1503(_10));return}}
  this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)});isc.B._maxIndex=isc.C+9;isc.defineClass("DrawLinePath","DrawPath");isc.A=isc.DrawLinePath.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.connectorStyle="diagonal";isc.A.connectorOrientation="auto";isc.A.titleRotationMode="withLineAlwaysUp";isc.A.showTitleLabelBackground=true;isc.A.startPoint=[0,0];isc.A.endPoint=[100,100];isc.A.controlPoint1=null;isc.A.controlPoint2=null;isc.A.tailSize=30;isc.A.startArrow=null;isc.A.endArrow="open";isc.A.showResizeKnobs=isc.Class.NO_OP;isc.A.hideResizeKnobs=isc.Class.NO_OP;isc.A.showMoveKnobs=isc.Class.NO_OP;isc.A.hideMoveKnobs=isc.Class.NO_OP;isc.A.showStartPointKnobs=isc.DrawLine.getPrototype().showStartPointKnobs;isc.A.hideStartPointKnobs=isc.DrawLine.getPrototype().hideStartPointKnobs;isc.A.showEndPointKnobs=isc.DrawLine.getPrototype().showEndPointKnobs;isc.A.hideEndPointKnobs=isc.DrawLine.getPrototype().hideEndPointKnobs;isc.A.c1KnobDefaults={cursor:"move",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultDrawLinePathC1KnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#ecc1cc",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.A.c2KnobDefaults={cursor:"move",knobShapeProperties:{_constructor:"DrawOval",radius:4.5,lineWidth:1,lineOpacity:1,fillOpacity:1,lineColor:"#333333",fillGradient:{id:"isc_defaultDrawLinePathC2KnobGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",colorStops:[{color:"#ffffff",offset:0.15},{color:"#ecc1cc",offset:0.5},{color:"#ffffff",offset:0.85}]}}};isc.B.push(isc.A.init=function isc_DrawLinePath_init(){this.startPoint=this.startPoint.duplicate();this.endPoint=this.endPoint.duplicate();this.startLeft=(this.startLeft==0?0:(this.startLeft||this.startPoint[0]));this.startTop=(this.startTop==0?0:(this.startTop||this.startPoint[1]));this.endLeft=(this.endLeft==0?0:(this.endLeft||this.endPoint[0]));this.endTop=(this.endTop==0?0:(this.endTop||this.endPoint[1]));this.points=this.$45e(this.controlPoint1,this.controlPoint2);this.Super("init",arguments)},isc.A.getConnectorOrientationState=function isc_DrawLinePath_getConnectorOrientationState(){var _1=this.connectorOrientation;if(_1==="auto"){var _2=Math.abs(this.endLeft-this.startLeft),_3=Math.abs(this.endTop-this.startTop);_1=(_2>=_3?"horizontal":"vertical")}
  return _1},isc.A.$45e=function isc_DrawLinePath__getSegmentPoints(_1,_2){var _3=[this.startLeft,this.startTop];var _4=[this.endLeft,this.endTop];var _5=this.getConnectorOrientationState();var _6=this.connectorStyle;var _7=this.tailSize;if(_5==="horizontal"){if(_6==="rightAngle"){if(this.controlPoint1==null){_7=this.startLeft<=this.endLeft?-this.tailSize:this.tailSize}else{_7=this.startLeft-this.controlPoint1[0]}
  _1=[this.startLeft-_7,this.startTop];_2=[this.startLeft-_7,this.endTop]}else{if(this.startLeft<=this.endLeft){_7=-_7}
  _1=_1||[this.startLeft-_7,this.startTop];_2=_2||[this.endLeft+_7,this.endTop]}}
  if(_5==="vertical"){if(_6==="rightAngle"){if(this.controlPoint1==null){_7=this.startTop<=this.endTop?-this.tailSize:this.tailSize}else{_7=this.startTop-this.controlPoint1[1]}
  _1=[this.startLeft,this.startTop-_7];_2=[this.endLeft,this.startTop-_7]}else{if(this.startTop<=this.endTop){_7=-_7}
  _1=_1||[this.startLeft,this.startTop-_7];_2=_2||[this.endLeft,this.endTop+_7]}}
  if(_6==="rightAngle"){this.controlPoint1=this.getCenter(_1,_2)}else{this.controlPoint1=_1;this.controlPoint2=_2}
  this.$45f=[_3,_1,_2,_4];return this.$45f},isc.A.$63r=function isc_DrawLinePath__drawLineStartArrow(){return false},isc.A.$63s=function isc_DrawLinePath__drawLineEndArrow(){return false},isc.A.getCenter=function isc_DrawLinePath_getCenter(_1,_2){var _3=_1||this.startPoint;var _4=_2||this.endPoint;return[_3[0]+this.$1503((_4[0]-_3[0])/2),_3[1]+this.$1503((_4[1]-_3[1])/2)]},isc.A.setStartPoint=function isc_DrawLinePath_setStartPoint(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.startLeft=this.startPoint[0]=_1;this.startTop=this.startPoint[1]=_2;this.setPoints(this.$45e(null,this.controlPoint2),_4,_5)},isc.A.setEndPoint=function isc_DrawLinePath_setEndPoint(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.endLeft=this.endPoint[0]=_1;this.endTop=this.endPoint[1]=_2;this.setPoints(this.$45e(this.controlPoint1,null),_4,_5)},isc.A.setControlPoint1=function isc_DrawLinePath_setControlPoint1(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.controlPoint1[0]=_1;this.controlPoint1[1]=_2;this.setPoints(this.$45e(this.controlPoint1,this.controlPoint2),_4,_5)},isc.A.setControlPoint2=function isc_DrawLinePath_setControlPoint2(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
  this.controlPoint2[0]=_1;this.controlPoint2[1]=_2;this.setPoints(this.$45e(this.controlPoint1,this.controlPoint2),_4,_5)},isc.A.getBoundingBox=function isc_DrawLinePath_getBoundingBox(_1,_2){var _3=this.startPoint[0],_4=this.startPoint[1],_5=this.endPoint[0],_6=this.endPoint[1],_7=(_2||new Array(4));_7[0]=Math.min(_3,_5);_7[1]=Math.min(_4,_6);_7[2]=Math.max(_3,_5);_7[3]=Math.max(_4,_6);return _1!=true?_7:this.$147b(true,false,_7)},isc.A.showControlPoint1Knobs=function isc_DrawLinePath_showControlPoint1Knobs(){if(this.$64b==null||this.$64b.destroyed){var v=this.$136i(this.controlPoint1[0],this.controlPoint1[1],"local","global");this.$64b=this.createAutoChild("c1Knob",{_constructor:"DrawKnob",x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.controlPoint1[0],_2.controlPoint1[1],"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_7,_8,_9,_10,_11){var _2=this.creator,_3=_2.getConnectorOrientationState(),v=_2.$136i(_7,_8,"global","local"),w=_2.$136i(_9,_10,"global","local"),z=_2.$136i(0,0,"global","local");_7=v[0];_8=v[1];_9=w[0]-z[0];_10=w[1]-z[1];if(_3==="horizontal"){_8-=_10}else{_7-=_9}
  var _6=_2.$147l();_2.setControlPoint1(_2.$1503(_7),_2.$1503(_8),false,_6.cx,_6.cy)}})}},isc.A.hideControlPoint1Knobs=function isc_DrawLinePath_hideControlPoint1Knobs(){if(this.$64b){this.$64b.destroy();delete this.$64b}},isc.A.showControlPoint2Knobs=function isc_DrawLinePath_showControlPoint2Knobs(){if(this.connectorStyle==="diagonal"&&(this.$64d==null||this.$64d.destroyed)){var v=this.$136i(this.controlPoint2[0],this.controlPoint2[1],"local","global");this.$64d=this.createAutoChild("c2Knob",{_constructor:"DrawKnob",x:v[0],y:v[1],drawPane:this.drawPane,resetKnobPosition:function(){var _2=this.creator,v=_2.$136i(_2.controlPoint2[0],_2.controlPoint2[1],"local","global");this.setCenterPoint(v[0],v[1],false)},updatePoints:function(_7,_8,_9,_10,_11){var _2=this.creator,_3=_2.getConnectorOrientationState(),v=_2.$136i(_7,_8,"global","local"),w=_2.$136i(_9,_10,"global","local"),z=_2.$136i(0,0,"global","local");_7=v[0];_8=v[1];_9=w[0]-z[0];_10=w[1]-z[1];if(_3==="horizontal"){_8-=_10}else{_7-=_9}
  var _6=_2.$147l();_2.setControlPoint2(_2.$1503(_7),_2.$1503(_8),false,_6.cx,_6.cy)}})}},isc.A.hideControlPoint2Knobs=function isc_DrawLinePath_hideControlPoint2Knobs(){if(this.$64d){this.$64d.destroy();delete this.$64d}},isc.A.updateStartPointKnob=function isc_DrawLinePath_updateStartPointKnob(){if(this.$639){var v=this.$136i(this.startLeft,this.startTop,"local","global");this.$639.setCenterPoint(v[0],v[1])}},isc.A.updateEndPointKnob=function isc_DrawLinePath_updateEndPointKnob(){if(this.$64a){var v=this.$136i(this.endLeft,this.endTop,"local","global");this.$64a.setCenterPoint(v[0],v[1])}},isc.A.updateControlPoint1Knob=function isc_DrawLinePath_updateControlPoint1Knob(){if(this.$64b){var v=this.$136i(this.controlPoint1[0],this.controlPoint1[1],"local","global");this.$64b.setCenterPoint(v[0],v[1])}},isc.A.updateControlPoint2Knob=function isc_DrawLinePath_updateControlPoint2Knob(){if(this.$64d){var v=this.$136i(this.controlPoint2[0],this.controlPoint2[1],"local","global");this.$64d.setCenterPoint(v[0],v[1])}},isc.A.updateControlKnobs=function isc_DrawLinePath_updateControlKnobs(){this.Super("updateControlKnobs",arguments);this.updateStartPointKnob();this.updateEndPointKnob();this.updateControlPoint1Knob();this.updateControlPoint2Knob()},isc.A.moveStartPointTo=function isc_DrawLinePath_moveStartPointTo(_1,_2){this.$147y(_1,_2,this.startLeft,this.startTop)},isc.A.$147w=function isc_DrawLinePath__updateLocalTransform(_1,_2,_3,_4,_5,_6){if(_6){this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments);return}
  var _7=1e-9,_8=_1.getDeterminant();if(Math.abs(_8)>_7){var _9=this.$1503(_1.m02*_1.m11-
  _1.m12*_1.m01),_10=this.$1503(_1.m12*_1.m00-
  _1.m02*_1.m10);this.Super("$147w",[_1.duplicate().rightMultiply(isc.AffineTransform.getTranslateTransform(-_9,-_10)),_2,_3,_4,false,true],arguments);this.startLeft+=_9;this.startPoint[0]+=_9;this.startTop+=_10;this.startPoint[1]+=_10;this.endLeft+=_9;this.endPoint[0]+=_9;this.endTop+=_10;this.endPoint[1]+=_10;this.controlPoint1[0]+=_9;this.controlPoint1[1]+=_10;this.controlPoint2[0]+=_9;this.controlPoint2[1]+=_10;var _11=this.$147l();this.$147x(_2,_3,_11.cx,_11.cy);if(_2!=_11.cx||_3!=_11.cy){this.$1348=null;if(this.drawingVML){this.$154s.setProperty("transform",this.$1339())}else if(this.drawingSVG){var t=this.$1339();this.$44z.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}}
  this.setPoints(this.$45e(this.controlPoint1,this.controlPoint2))}else{this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)}});isc.B._maxIndex=isc.C+22;isc.defineClass("DrawShape","DrawItem");isc.A=isc.DrawShape;isc.A.$1252="close";isc.A.$1253="moveto";isc.A.$1254="lineto";isc.A.$1255="circleto";isc.A=isc.DrawShape.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.titleRotationMode="withItemAlwaysUp";isc.A.svgElementName="path";isc.A.eventOpaque=false;isc.A.fillSubpathsIndependently=false;isc.A.$1252=isc.DrawShape.$1252;isc.A.$1253=isc.DrawShape.$1253;isc.A.$1254=isc.DrawShape.$1254;isc.A.$1255=isc.DrawShape.$1255;isc.A.$1545=new isc.VMLRenderer.shapeConfig();isc.A.$1258=["d='"];isc.B.push(isc.A.setCommands=function isc_DrawShape_setCommands(_1){this.commands=_1;if(this.drawingVML){var _2;this.$154s.setProperty("$126a",_2).flush()}else if(this.drawingSVG){this.$44z.setAttributeNS(null,"d",this.$126b())}else if(this.drawingBitmap){this.drawPane.redrawBitmap()}
  this.$143s();this.$1433()},isc.A.$1433=function isc_DrawShape__initBoundingParams(_1){var _2=this.getBoundingBox(false,this.$145i);this.left=_2[0];this.top=_2[1];this.width=_2[2]-_2[0];this.height=_2[3]-_2[1]},isc.A.getBoundingBox=function isc_DrawShape_getBoundingBox(_1,_2){var _3=(_2||new Array(4)),_4=this.commands,_5=this.drawPane,_6=_5.$163f(),_7=_5.$163g(),_8=_6,_9=_7,_10=0,_11=0,_12=true,_13=true,_14=null;if(!_4||_4.length==0){_3[0]=_3[1]=_3[2]=_3[3]=0;return _3}
  for(var i=0,_16=_4.length;i<_16;++i){var _17=_4[i],_18=_17.type,_19=_17.args;if(_18=="moveto"){_14=_19}else if(_18=="lineto"){_13=false;if(_14!=null){if(_12){_8=_10=_14[0];_9=_11=_14[1];_12=false}else{if(_14[0]<_8)_8=_14[0];else if(_10<_14[0])_10=_14[0];if(_14[1]<_9)_9=_14[1];else if(_11<_14[1])_11=_14[1]}
  _14=null}
  for(var j=_19.length;j--;){var _21=_19[j];if(_21[0]<_8)_8=_21[0];else if(_10<_21[0])_10=_21[0];if(_21[1]<_9)_9=_21[1];else if(_11<_21[1])_11=_21[1]}}else if(_18=="circleto"){_13=false;var _22=_19[0],_23=_22[0],_24=_22[1],_25=_19[1],_26=_19[2],_27=_19[3],_28=(_26>_27);if(_14!=null){if(_12){_8=_10=_14[0];_9=_11=_14[1];_12=false}else{if(_14[0]<_8)_8=_14[0];else if(_10<_14[0])_10=_14[0];if(_14[1]<_9)_9=_14[1];else if(_11<_14[1])_11=_14[1]}
  _14=null}
  var _29=_23+_25*Math.cos(_26*Math.PI/180),_30=_24+_25*Math.sin(_26*Math.PI/180),_31=_23+_25*Math.cos(_27*Math.PI/180),_32=_24+_25*Math.sin(_27*Math.PI/180);if(_29<_8)_8=_29;else if(_10<_29)_10=_29;if(_30<_9)_9=_30;else if(_11<_30)_11=_30;if(_31<_8)_8=_31;else if(_10<_31)_10=_31;if(_32<_9)_9=_32;else if(_11<_32)_11=_32;if(_28?(_26<270||270<_27):(_26<270&&270<_27)){var _33=_24+_25;if(_11<_33)_11=_33}
  if(_28?(_26<90||90<_27):(_26<90&&90<_27)){var _34=_24-_25;if(_34<_9)_9=_34}
  if(_28?(_26<180||180<_27):(_26<180&&180<_27)){var _35=_23-_25;if(_35<_8)_8=_35}
  if(_28?(_26<0||0<_27):(_26<0&&0<_27)){var _36=_23+_25;if(_10<_36)_10=_36}}}
  if(_13){if(_14==null){_8=_10=_9=_11=0}else{_8=_10=_14[0];_9=_11=_14[1]}}
  _3[0]=_8;_3[1]=_9;_3[2]=_10;_3[3]=_11;return _3},isc.A.$147c=function isc_DrawShape__getBoundingBoxOfTransformedShape(_1,_2,_3,_4){var _5=this.$125w,_6=_4||new Array(4);var _7=this.commands,_8=this.drawPane.$163f(),_9=this.drawPane.$163g(),_10=0,_11=0,_12=true,_13=true,_14=null;if(!_7||_7.length==0){_6[0]=_6[1]=_6[2]=_6[3]=0;return _6}
  var _15=_1.m00,_16=_1.m01,_17=_1.m02,_18=_1.m10,_19=_1.m11,_20=_1.m12,_21=isc.Math.$101k(_15,_16),_22=isc.Math.$101k(_18,_19),_23=_15*_18+_16*_19;for(var i=0,_25=_7.length;i<_25;++i){var _26=_7[i],_27=_26.type,_28=_26.args;if(_27=="moveto"){_14=_28}else if(_27=="lineto"||_27=="circleto"){_13=false;if(_14!=null){var _29=_15*_14[0]+_16*_14[1]+_17,_30=_18*_14[0]+_19*_14[1]+_20;if(_12){_8=_10=_29;_9=_11=_30;_12=false}else{if(_29<_8)_8=_29;else if(_10<_29)_10=_29;if(_30<_9)_9=_30;else if(_11<_30)_11=_30}
  _14=null}
  if(_27=="lineto"){for(var j=_28.length;j--;){var _32=_28[j],x=_15*_32[0]+_16*_32[1]+_17,y=_18*_32[0]+_19*_32[1]+_20;if(x<_8)_8=x;else if(_10<x)_10=x;if(y<_9)_9=y;else if(_11<y)_11=y}}else{var _35=_28[0],_36=_35[0],_37=_35[1],_38=_28[1],_39=_28[2],_40=_28[3],_41=(_40<_39),_42=_40-_39,_43=(_42>=360||(_42!=0&&Math.round(_42)%360==0));var _44=_36+_38*Math.cos(_39*Math.PI/180),_45=_37+_38*Math.sin(_39*Math.PI/180),_46=_36+_38*Math.cos(_40*Math.PI/180),_47=_37+_38*Math.sin(_40*Math.PI/180),_48=_15*_44+_16*_45+_17,_49=_18*_44+_19*_45+_20,_50=_15*_46+_16*_47+_17,_51=_18*_46+_19*_47+_20;if(_48<_8)_8=_48;else if(_10<_48)_10=_48;if(_49<_9)_9=_49;else if(_11<_49)_11=_49;if(_50<_8)_8=_50;else if(_10<_50)_10=_50;if(_51<_9)_9=_51;else if(_11<_51)_11=_51;var _52=_15*_36+_16*_37+_17,_53=_18*_36+_19*_37+_20,_54=_21*_38,_55=_22*_38,_56=_52-_54,_57=_53-_55,_58=_52+_54,_59=_53+_55,_60=Math.atan2(_49-_53,_48-_52),_61=Math.atan2(_51-_53,_50-_52),_62=_23*_38,_63=(_21<=0?0:(_62/_21)),_64=(_22<=0?0:(_62/_22)),_65=(_53-_63),_66=(_52-_64),_67=(_53+_63),_68=(_52+_64),_69=Math.atan2(_65-_53,_56-_52),_70=Math.atan2(_57-_53,_66-_52),_71=Math.atan2(_67-_53,_58-_52),_72=Math.atan2(_59-_53,_68-_52);if(_41){var _73=_60;_60=_61;_61=_73}
  var _74=(_60>_61);if(_56<_8&&(_74?(_60<_69||_69<_61):(_60<_69&&_69<_61)))
  {_8=_56}
  if(_57<_9&&(_74?(_60<_70||_70<_61):(_60<_70&&_70<_61)))
  {_9=_57}
  if(_10<_58&&(_74?(_60<_71||_71<_61):(_60<_71&&_71<_61)))
  {_10=_58}
  if(_11<_59&&(_74?(_60<_72||_72<_61):(_60<_72&&_72<_61)))
  {_11=_59}}}}
  if(_13){if(_14==null){_8=_10=_9=_11=0}else{_8=_10=_14[0];_9=_11=_14[1]}}else{var _75=(_2&&this.$125h()?(this.lineWidth/2):0),_76=(_3?this.hitTolerance:0),_77=_75+_76,_78=_21*_77,_79=_22*_77;_8-=_78;_10+=_78;_9-=_79;_11+=_79}
  _6[0]=_8;_6[1]=_9;_6[2]=_10;_6[3]=_11;return _6},isc.A.$147w=function isc_DrawShape__updateLocalTransform(_1,_2,_3,_4,_5,_6){if(_6){this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments);return}
  var _7=1e-9,_8=this.commands;if(isc.isAn.Array(_8)&&_8.length>0&&Math.abs(_1.getDeterminant())>_7)
  {var _9=this.$1252,_10=this.$1253,_11=this.$1254,_12=this.$1255,_13=_8.length;if(_8.containsProperty("type",_12)){var _14=2*Math.PI,_15=isc.DrawItem.$125w,_16=isc.AffineTransform.$145r(_1,_2,_3),_17=_16.theta,_18=Math.sin(_17),_19=Math.cos(_17),_20=(_16.kx*_16.ky+1)*_16.sx,_21=_16.sy,_22=Math.min(Math.abs(_20),Math.abs(_21)),t=isc.AffineTransform.create();if(_22==0){_22=1}
  var _24=_22/(_16.sx*_16.sy),_25=_24*(_16.dx*_16.sy-_16.dy*_16.kx*_16.sx),_26=-_24*(_16.dx*_16.ky*_16.sy-
  _16.dy*(1+_16.kx*_16.ky)*_16.sx);t.translate(_25,_26);if(_22!=1){t.scale(_22,_22)}
  t.rotate(_17/_15,_2,_3);for(var i=_13;i--;){var _28=_8[i],_29=_28.type,_30=_28.args;if(_29==_10){var v=t.transform(_30[0],_30[1]);_30[0]=v[0];_30[1]=v[1]}else if(_29==_11){for(var j=_30.length;j--;){var _33=_30[j],v=t.transform(_33[0],_33[1]);_33[0]=v[0];_33[1]=v[1]}}else if(_29==_12){var _34=_30[0],_35=_30[1],_36=_30[2]*_15,_37=_30[3]*_15,_38=(_30[2]<_30[3]),_39=_34[0],_40=_34[1],_41=_39+_35*Math.cos(_36),_42=_40+_35*Math.sin(_36),_43=_39+_35*Math.cos(_37),_44=_40+_35*Math.sin(_37);var u=t.transform(_39,_40),_46=_34[0]=u[0],_47=_34[1]=u[1];_30[1]=_22*_35;var v=t.transform(_41,_42),_48=Math.atan2(v[1]-_47,v[0]-_46),w=t.transform(_43,_44),_50=Math.atan2(w[1]-_47,w[0]-_46);_48=(_14+(_48%_14))%_14;_50=(_14+(_50%_14))%_14;if(_38){if(_48>=_50){_50+=_14}}else{if(_48<_50){_48+=_14}}
  _30[2]=_48/_15;_30[3]=_50/_15}}
  _1.rightMultiply(t.getInverse())}else{for(var i=_13;i--;){var _28=_8[i],_29=_28.type,_30=_28.args;if(_29==_10){var v=_1.transform(_30[0],_30[1]);_30[0]=v[0];_30[1]=v[1]}else if(_29==_11){for(var j=_30.length;j--;){var _33=_30[j],v=_1.transform(_33[0],_33[1]);_33[0]=v[0];_33[1]=v[1]}}}
  _1=isc.AffineTransform.$147g()}
  this.Super("$147w",[_1,_2,_3,_4,false,true],arguments);var _51=this.$147l();this.$147x(_2,_3,_51.cx,_51.cy);if(this.drawingVML){if(_2!=_51.cx||_3!=_51.cy){this.$1348=null;this.$154s.setProperty("transform",this.$1339())}}else if(this.drawingSVG){if(_2!=_51.cx||_3!=_51.cy){this.$1348=null;var t=this.$1339();this.$44z.setAttributeNS(null,"transform","matrix("+t.m00+" "+t.m10+" "+t.m01+" "+t.m11+" "+t.m02+" "+t.m12+")")}}
  this.setCommands(_8)}else{this.Super("$147w",[_1,_2,_3,_4,_5,true],arguments)}},isc.A.$154t=function isc_DrawShape__renderVML(_1,_2,_3){var _4=this.$1545;isc.VMLRenderer.drawItemToShapeConfig(this,_4);this.$154s=_1.shape(_2,_4)},isc.A.$126a=function isc_DrawShape__getPathVML(_1){var _2=this.commands,_3=(_2!=null?_2.length:0),_4=this.fillSubpathsIndependently,_5=true;for(var i=0;i<_3;++i){var _7=_2[i],_8=_7.type,_9=_7.args,_10=(_8==this.$1253);if(_8==this.$1252){_1.x()}else if(_10){if(_4&&!_5){_1.e()}
  var _11=_9;_1.m(_11[0],_11[1])}else if(_8==this.$1254){var _12=_9;_1.ls(_12,0,_12.length)}else if(_8==this.$1255){var _13=_9[0],_14=_13[0],_15=_13[1],r=_9[1],_17=_9[2],_18=_9[3],_19=_18-_17;_19=Math.min(_19,360);_1.ae(_14,_15,r,r,-_17,-_19)}
  _5=_10}},isc.A.$126b=function isc_DrawShape__getPathDataSVG(_1){var _2=_1||[];var _3=this.commands;if(_3!=null&&_3.length>0){var _4=isc.DrawShape.$125w;for(var i=0;i<_3.length;++i){var _6=_3[i],_7=_6.type,_8=_6.args;if(_7=="close"){_2.push(" Z")}else if(_7=="moveto"){var _9=_8;_2.push(" M ",_9[0]," ",_9[1])}else if(_7=="lineto"){var _10=_8,_9=_10[0];_2.push(" L ",_9[0]," ",_9[1]);for(var n=1;n<_10.length;++n){_9=_10[n];_2.push(" ",_9[0]," ",_9[1])}}else if(_7=="circleto"){var _12=_8[0],_13=_12[0],_14=_12[1],_15=_8[1],_16=_8[2],_17=_8[3],_18=Math.abs(_17-_16)>180?"1":"0",_19;if(_16<=_17){_19="1";_17=Math.min(_17,_16+359.9)}else{_19="0";_17=Math.max(_16-359.9,_17)}
  var _20=_13+_15*Math.cos(_16*_4),_21=_14-_15*Math.sin(-_16*_4);_2.push(" L ",_20," ",_21);var x=_13+_15*Math.cos(_17*_4),y=_14-_15*Math.sin(-_17*_4);_2.push(" A ",_15," ",_15," ",_16<=_17?-_16:-_17," ",_18," ",_19," ",x," ",y)}}}
  if(_1==null)return _2.join("")},isc.A.getAttributesSVG=function isc_DrawShape_getAttributesSVG(){var _1=this.$1258,_2=_1.length;this.$126b(_1);_1.push("'");var _3=_1.join("");_1.setLength(_2);return _3},isc.A.drawBitmapPath=function isc_DrawShape_drawBitmapPath(_1){var _2=this.commands;if(_2!=null&&_2.length>0){if(this.lineWidth==0){_1.strokeStyle=this.fillColor;_1.globalAlpha=this.fillOpacity}
  _1.beginPath();for(var i=0;i<_2.length;++i){var _4=_2[i],_5=_4.type,_6=_4.args;if(_5=="close"){_1.closePath()}else if(_5=="moveto"){var _7=_6;_1.moveTo(_7[0],_7[1])}else if(_5=="lineto"){var _8=_6,_7=_8[0];_1.lineTo(_7[0],_7[1]);for(var n=1;n<_8.length;++n){_7=_8[n];_1.lineTo(_7[0],_7[1])}}else if(_5=="circleto"){var _10=_6[0],_11=_10[0],_12=_10[1],_13=_6[1],_14=_6[2],_15=_6[3];_1.arc(_11,_12,_13,_14*isc.DrawShape.$125w,_15*isc.DrawShape.$125w,_15<_14)}}}});isc.B._maxIndex=isc.C+10;isc.DrawShape.markUnsupportedMethods(null,["setStartArrow","setEndArrow"]);isc.GraphMath={zeroPoint:[0,0],polar2screen:function(_1,_2,_3,_4){_3=_3||this.zeroPoint;var _5=Math.PI-((_1+450)%360)/180*Math.PI;var _6=[_3[0]+(_2*Math.cos(_5)),_3[1]+(-_2*Math.sin(_5))]
  if(_4){_6[0]=Math.round(_6[0]);_6[1]=Math.round(_6[1])}
  return _6},screen2polar:function(_1,_2){return[((Math.PI-Math.atan2(-_2,_1))/Math.PI*180+270)%360,isc.Math.$101k(_1,_2)]},angleDifference:function(_1,_2){var _3=Math.max(_1,_2),_4=Math.min(_1,_2),_5=_3-_4,_6=_4+360-_3;if(_6<_5){var _7=_3==_1?1:-1;return _7*_6}else{var _7=_3==_1?-1:1;return _7*_5}},straightDistance:function(_1,_2){return isc.Math.$101k(_1[0]-_2[0],_1[1]-_2[1])}}
  isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.setCenter=function isc_Canvas_setCenter(_1,_2){this.moveTo(_1-this.getVisibleWidth()/2,_2-this.getVisibleHeight()/2)},isc.A.getCenter=function isc_Canvas_getCenter(){return[this.getLeft()+this.getVisibleWidth()/2,this.getTop()+this.getVisibleHeight()/2]});isc.B._maxIndex=isc.C+2;isc.defineClass("LinkedList","Class");isc.A=isc.LinkedList.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.length=0;isc.B.push(isc.A.init=function isc_LinkedList_init(){this.head=null},isc.A.add=function isc_LinkedList_add(_1){var _2={next:null,data:_1};if(!this.head){this.head=_2}else{var _3=this.head;while(_3.next){_3=_3.next}
  _3.next=_2}
  this.length++},isc.A.get=function isc_LinkedList_get(_1){var _2=null;if(_1>=0&&_1<this.length){var _3=this.head,i=0;while(i++<_1){_3=_3&&_3.next}
  _2=_3.data}
  return _2},isc.A.remove=function isc_LinkedList_remove(_1){var _2=null;if(_1>=0&&_1<this.length){var _3=this.head,i=0;if(_1===0){this.head=_3.next}else{var _5;while(i++<_1){_5=_3;_3=_3&&_3.next}
  _5.next=_3.next}
  _2=_3.data;this.length--}
  return _2},isc.A.toArray=function isc_LinkedList_toArray(){var _1=[],_2=this.head;while(_2){_1.push(_2.data);_2=_2.next}
  return _1});isc.B._maxIndex=isc.C+5;isc.defineClass("QuadTree").addClassProperties({$148u:function(_1){var _2=[_1];var _3=_1.drawPane;for(;_1!=null;_1=_1.drawGroup){_2.unshift(_1)}
  _2.unshift(_3);return _2},$148q:function(_1,_2){_1=_1.shape;_2=_2.shape;var _3=isc.QuadTree.$148u(_1),_4=isc.QuadTree.$148u(_2);for(var i=0;i<_3.length;++i){if(_3[i]!=_4[i]){var _6=_3[i-1];if(_6===_1)return-1;if(_6===_2)return 1;var _7=_6.drawItems.indexOf(_3[i]);var _8=_6.drawItems.indexOf(_4[i]);if(_7>=0&&_8>=0){return _7-_8}else{return _1.$148r-_8.$148r}}}
  return 0}});isc.A=isc.QuadTree.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.depth=0;isc.A.maxDepth=0;isc.A.maxChildren=0;isc.B.push(isc.A.init=function isc_QuadTree_init(){this.root=null;this.bounds=null},isc.A.insert=function isc_QuadTree_insert(_1){if(isc.isAn.Array(_1)){var _2=_1.length;for(var i=0;i<_2;i++){this.root.insert(_1[i])}}else{this.root.insert(_1)}},isc.A.remove=function isc_QuadTree_remove(_1){this.root.remove(_1)},isc.A.clear=function isc_QuadTree_clear(){this.root.clear()},isc.A.retrieve=function isc_QuadTree_retrieve(_1){return this.root.retrieve(_1).slice()},isc.A.update=function isc_QuadTree_update(_1,_2,_3,_4,_5){return this.root.update(_1,_2,_3,_4,_5)});isc.B._maxIndex=isc.C+6;isc.defineClass("QuadTreeNode","Class");isc.A=isc.QuadTreeNode;isc.A.TOP_LEFT=0;isc.A.TOP_RIGHT=1;isc.A.BOTTOM_LEFT=2;isc.A.BOTTOM_RIGHT=3;isc.A=isc.QuadTreeNode.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.depth=0;isc.A.maxDepth=4;isc.A.maxChildren=4;isc.B.push(isc.A.init=function isc_QuadTreeNode_init(){this.bounds=null;this.nodes=[];this.children=isc.LinkedList.create()},isc.A.insert=function isc_QuadTreeNode_insert(_1){if(this.nodes.length){var _2=this.findQuadrants(_1);for(var i=0;i<_2.length;++i){var _4=_2[i];this.nodes[_4].insert(_1)}
  return}
  this.children.add(_1);var _5=this.children.length;if(!(this.depth>=this.maxDepth)&&_5>this.maxChildren){this.subdivide();for(var i=0;i<_5;i++){this.insert(this.children.get(i))}
  this.children=isc.LinkedList.create()}},isc.A.remove=function isc_QuadTreeNode_remove(_1){if(this.nodes.length){var _2=this.findQuadrants(_1);for(var i=0;i<_2.length;++i){var _4=_2[i];this.nodes[_4].remove(_1)}}
  var _5=this.children;for(var j=0,_7=_5.length;j<_7;++j){var _8=_5.get(j);if(_8===_1){_5.remove(j);--_7;--j}}},isc.A.retrieve=function isc_QuadTreeNode_retrieve(_1){if(this.nodes.length){var _2=this.findQuadrant(_1);return this.nodes[_2].retrieve(_1)}
  return this.children.toArray()},isc.A.findQuadrant=function isc_QuadTreeNode_findQuadrant(_1){var b=this.bounds,_3=!(_1.x>b.x+b.width/2),_4=!(_1.y>b.y+b.height/2);var _5=isc.QuadTreeNode.TOP_LEFT;if(_3){if(!_4){_5=isc.QuadTreeNode.BOTTOM_LEFT}}else{if(_4){_5=isc.QuadTreeNode.TOP_RIGHT}else{_5=isc.QuadTreeNode.BOTTOM_RIGHT}}
  return _5},isc.A.findQuadrants=function isc_QuadTreeNode_findQuadrants(_1){var _2=[];var _3={};var _4=this.findQuadrant({x:_1.x,y:_1.y});_2.push(_4);_3[_4]=true;_4=this.findQuadrant({x:_1.x+_1.width,y:_1.y+_1.height});if(!_3[_4]){_2.push(_4);_3[_4]=true}
  _4=this.findQuadrant({x:_1.x,y:_1.y+_1.height});if(!_3[_4]){_2.push(_4);_3[_4]=true}
  _4=this.findQuadrant({x:_1.x+_1.width,y:_1.y});if(!_3[_4]){_2.push(_4)}
  return _2},isc.A.subdivide=function isc_QuadTreeNode_subdivide(){var _1=this.depth+1;var _2=this.bounds.x;var _3=this.bounds.y;var _4=(this.bounds.width/2)|0;var _5=(this.bounds.height/2)|0;var _6=_2+_4;var _7=_3+_5;this.nodes[isc.QuadTreeNode.TOP_LEFT]=isc.QuadTreeNode.create({depth:_1});this.nodes[isc.QuadTreeNode.TOP_LEFT].bounds={x:_2,y:_3,width:_4,height:_5};this.nodes[isc.QuadTreeNode.TOP_RIGHT]=isc.QuadTreeNode.create({depth:_1});this.nodes[isc.QuadTreeNode.TOP_RIGHT].bounds={x:_6,y:_3,width:_4,height:_5};this.nodes[isc.QuadTreeNode.BOTTOM_LEFT]=isc.QuadTreeNode.create({depth:_1});this.nodes[isc.QuadTreeNode.BOTTOM_LEFT].bounds={x:_2,y:_7,width:_4,height:_5};this.nodes[isc.QuadTreeNode.BOTTOM_RIGHT]=isc.QuadTreeNode.create({depth:_1});this.nodes[isc.QuadTreeNode.BOTTOM_RIGHT].bounds={x:_6,y:_7,width:_4,height:_5}},isc.A.clear=function isc_QuadTreeNode_clear(){this.children=isc.LinkedList.create();var _1=this.nodes.length;for(var i=0;i<_1;i++){this.nodes[i].clear()}
  this.nodes=[];this.depth=0;this.maxDepth=4;this.maxChildren=4},isc.A.update=function isc_QuadTreeNode_update(_1,_2,_3,_4,_5){this.remove(_1);_1.x=_2;_1.y=_3;_1.width=_4;_1.height=_5;this.insert(_1)});isc.B._maxIndex=isc.C+9;isc.defineClass("DrawKnob","Canvas");isc.A=isc.DrawKnob.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.width=10;isc.A.height=10;isc.A.overflow="hidden";isc.A.cursor="crosshair";isc.A.canDrag=true;isc.A.dragAppearance="none";isc.A.keepInParentRect=true;isc.A.autoDraw=false;isc.A.knobShapeDefaults={_constructor:isc.DrawOval,radius:4.5,lineColor:"#333333",lineWidth:1,lineOpacity:1,fillColor:"#FF0000",fillOpacity:0.5,autoDraw:true,updateControlKnobs:function(){return},erase:function(){if(this.erasing)return;this.erasing=true;if(this.creator.isDrawn())this.creator.clear();this.Super("erase",arguments);delete this.erasing}};isc.B.push(isc.A.initWidget=function isc_DrawKnob_initWidget(){if(isc.Browser.isIE&&isc.Browser.version<11&&this.drawPane.drawingType=="bitmap"){this.setBackgroundColor("White");this.setOpacity(0)}
  var _1=this.x,_2=this.y,x=this.x=Math.round(_1),y=this.y=Math.round(_2);var _5=x-this.width/2+this.drawPane.getLeftPadding(),_6=y-this.height/2+this.drawPane.getTopPadding();this.left=(x<=_1?Math.ceil(_5):Math.floor(_5));this.top=(y<=_2?Math.ceil(_6):Math.floor(_6));if(!isc.isA.DrawPane(this.drawPane)){this.logWarn("DrawPane provided in DrawKnob.drawPane is invalid so this knob cannot be constructed.");return}
  var _7=this.knobShape=this.createAutoChild("knobShape",{drawPane:this.drawPane,knobs:null,title:null,zIndex:this.creator.getZIndex(true),$169l:true,exemptFromGlobalTransform:true,$1502:function(){this.creator.resetKnobPosition()}});if(isc.isA.DrawItem(this.creator)){this.creator.addPeer(_7)}
  _7.setCenterPoint(this.x,this.y);this.drawPane.addChild(this)},isc.A.resetKnobPosition=function isc_DrawKnob_resetKnobPosition(){this.setCenterPoint(this.x,this.y,false)},isc.A.setCenterPoint=function isc_DrawKnob_setCenterPoint(_1,_2,_3){var _4=this.drawPane.getLeftPadding(),_5=this.drawPane.getTopPadding();if(_3){var _6=this.drawPane.viewbox2global([_1,_2,0,0]);_1=_6[0]-_4;_2=_6[1]-_5}
  var _7=_1,_8=_2;_1=Math.round(_1);_2=Math.round(_2);var _9=_1-this.width/2+_4,_10=_2-this.height/2+_5;_9=(_1<=_7?Math.ceil(_9):Math.floor(_9)),_10=(_2<=_8?Math.ceil(_10):Math.floor(_10));this.$1506=_7;this.$1507=_8;this.moveTo(_9,_10);delete this.$1506;delete this.$1507},isc.A.setRect=function isc_DrawKnob_setRect(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_3=_1[2];_4=_1[3];_1=_1[0]}else if(isc.isAn.Object(_1)){_2=_1.top;_3=_1.width;_4=_1.height;_1=_1.left}
  var _6=this.keepInParentRect;if(_6){var _7=this.drawPane.getWidth(),_8=this.drawPane.getHeight(),_9=Math.min(_1+_3,_7),_10=Math.min(_2+_4,_8);_1=Math.max(_1,0);_2=Math.max(_2,0);_3=_9-_1;_4=_10-_2;if(_3<1||_4<1){this.hide();return false}else{this.show()}}
  return this.Super("setRect",[_1,_2,_3,_4,_5])},isc.A.draw=function isc_DrawKnob_draw(){this.drawPane.addDrawItem(this.knobShape);return this.Super("draw",arguments)},isc.A.moved=function isc_DrawKnob_moved(){if(!this.synchingToPane)this.updateKnobShape()},isc.A.$64f=function isc_DrawKnob__updatePoints(_1){var _2=this.drawPane.$150s(isc.EH.getX(),isc.EH.getY()),_3=_2[0],_4=_2[1],_5=_3-this.x,_6=_4-this.y;var _7=this.updatePoints(_3,_4,_5,_6,_1);return(_7!==false)},isc.A.updateKnobShape=function isc_DrawKnob_updateKnobShape(){var x=0,y=0;if(this.$1506!=null&&this.$1507!=null){x=this.$1506;y=this.$1507}else{x=this.getLeft()+this.getWidth()/2-this.drawPane.getLeftPadding();y=this.getTop()+this.getHeight()/2-this.drawPane.getTopPadding()}
  this.x=Math.round(x);this.y=Math.round(y);x+=this.drawPane.scrollLeft;y+=this.drawPane.scrollTop;this.knobShape.setCenterPoint(isc.DrawItem.$1503(x),isc.DrawItem.$1503(y))},isc.A.updatePoints=function(x,y,dX,dY,state){},isc.A.clear=function isc_DrawKnob_clear(){this.Super("clear",arguments);this.knobShape.erase()},isc.A.dragStart=function isc_DrawKnob_dragStart(){return this.$64f("start")},isc.A.dragMove=function isc_DrawKnob_dragMove(){return this.$64f("move")},isc.A.dragStop=function isc_DrawKnob_dragStop(){return this.$64f("stop")});isc.B._maxIndex=isc.C+13;isc.DrawKnob.registerStringMethods({updatePoints:"x,y,dX,dY"});isc.ClassFactory.defineClass("Gauge","DrawPane");isc.A=isc.Gauge.getPrototype();isc.A.width=400;isc.A.height=400;isc.A.redrawOnResize=true;isc.A.pivotPointHeight="70%";isc.A.pivotShapeConstructor="DrawOval";isc.A.pivotShapeDefaults={autoDraw:true,radius:6};isc.A.needleConstructor="DrawTriangle";isc.A.needleDefaults={autoDraw:false};isc.A.valueLabelConstructor="DrawLabel";isc.A.valueLabelDefaults={autoDraw:true};isc.A.tickLineConstructor="DrawLine";isc.A.tickLineDefaults={autoDraw:true};isc.A.sectorShapeConstructor="DrawSector";isc.A.sectorShapeDefaults={autoDraw:true};isc.A.dialRadius=150;isc.A.fontSize=11;isc.A.borderWidth=1;isc.A.borderColor="#333333";isc.A.scaleColor=null;isc.A.needleColor="#000000";isc.A.sectorColors=["#AFFFFF","#008080","#AAAFFF","#FF0000","#FFCC99","#800080"];isc.A.minValue=0;isc.A.maxValue=100;isc.A.value=0;isc.A.numMajorTicks=0;isc.A.numMinorTicks=0;isc.A.labelPrefix="";isc.A.labelSuffix="%";isc.A.drawnClockwise=true;isc.A.sectors=null;isc.A.pivotPoint=null;isc.A.sectorDefaults={fillColor:null,startAngle:0,endAngle:0,value:0};isc.A=isc.Gauge.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.initWidget=function isc_Gauge_initWidget(){this.Super("initWidget",arguments);if(this.fontSize<3){this.logWarn("Gauge specified with fontSize:"+this.fontSize+". Setting to 3.");this.fontSize=3}
  if(!(this.sectorColors instanceof Array)){this.logWarn("Gauge specified with non-array sectorColors. Setting to [ \"#AFFFFF\" ].");this.sectorColors=["#AFFFFF"]}
  if(this.sectorColors.length==0){this.logWarn("Gauge specified with empty sectorColors array. Setting to [ \"#AFFFFF\" ].");this.sectorColors=["#AFFFFF"]}
  if(this.minValue>this.maxValue){this.logWarn("Gauge specified with minValue:"+this.minValue+", greater than maxValue:"+this.maxValue+". Swapping.");var _1=this.minValue;this.minValue=this.maxValue;this.maxValue=_1}
  if(!(this.maxValue>=0.99999+this.minValue)){this.logWarn("Gauge specified with maxValue:"+this.maxValue+", not at least 1 greater than minValue:"+this.minValue);this.maxValue=1+this.minValue}
  this.value=Math.min(Math.max(this.value,this.minValue),this.maxValue);this.numMajorTicks=Math.floor(this.numMajorTicks);this.numMajorTicks=Math.max(0,this.numMajorTicks);if(this.numMajorTicks!=0){this.numMajorTicks=Math.max(2,this.numMajorTicks)}
  this.numMinorTicks=Math.floor(this.numMinorTicks);this.numMinorTicks=Math.max(0,this.numMinorTicks);if(this.numMinorTicks!=0){this.numMinorTicks=Math.max(2,this.numMinorTicks)}
  this.$93w(this.getInnerContentWidth(),this.getInnerContentHeight());this.setSectors(this.sectors?this.sectors:[{fillColor:this.getDefaultFillColor(0),startAngle:0,endAngle:180,value:this.maxValue}])},isc.A.resized=function isc_Gauge_resized(_1,_2){this.$93w(this.getInnerContentWidth(),this.getInnerContentHeight());this.$134w()},isc.A.$134w=function isc_Gauge__makeItems(){this.erase();if(this.tickLine!=null){var _1=this.tickLine;for(var i=0;i<_1.length;++i){_1[i].destroy()}
  delete this.tickLine}
  if(this.valueLabel!=null){var _3=this.valueLabel;for(var i=0;i<_3.length;++i){_3[i].destroy()}
  delete this.valueLabel}
  this.$93x();this.$931();this.$93e(this.value);this.$93y()},isc.A.$93w=function isc_Gauge__makePivotPoint(_1,_2){if(this.pivotPoint!=this.$161z){this.$161z=this.pivotPoint}else{if(isc.isA.String(this.pivotPointHeight)&&this.pivotPointHeight.charAt(this.pivotPointHeight.length-1)=="%"){var _3=parseInt(this.pivotPointHeight);if(isc.isA.Number(_3)){this.pivotPoint=[_1/2,_2*(_3/100)]}}else{this.pivotPoint=[_1/2,this.pivotPointHeight]}}
  this.$161z=this.pivotPoint},isc.A.$93x=function isc_Gauge__makeDrawSectors(){var _1=new Array(this.sectors.length);if(this.sectorShape){for(var i=0;i<this.sectorShape.length;++i){this.sectorShape[i].destroy()}}
  var _3=this.sectors;for(var _4=0;_4<_3.length;++_4){var _5=_3[_4];var _6,_7;if(this.drawnClockwise){_6=_5.startAngle-180;_7=_5.endAngle-180}else{_6=-_5.endAngle;_7=-_5.startAngle}
  var _8;_1[_4]=_8=this.createAutoChild("sectorShape",{radius:this.dialRadius,centerPoint:this.pivotPoint,startAngle:_6,endAngle:_7,lineWidth:this.borderWidth,lineColor:this.borderColor,fillColor:_5.fillColor});this.addDrawItem(_8,true)}
  this.sectorShape=_1;this.$93d()},isc.A.$93d=function isc_Gauge__makeTickLines(){var _1=this.numMajorTicks;var _2=this.numMinorTicks;var _3=this.drawnClockwise;var _4=this.pivotPoint;var _5;var i;if(!this.tickLine){_5=new Array(_1+_2)}else if(this.tickLine.length!=_1+_2){for(i=_1+_2;i<this.tickLine.length;++i){this.tickLine[i].destroy()}
  _5=new Array(_1+_2);for(i=0;i<_5.length;++i){_5[i]=this.tickLine[i]}}else{_5=this.tickLine}
  var _7=this.scaleColor?this.scaleColor:this.borderColor;for(i=0;i<_1;++i){var _8=Math.PI-Math.PI*i/(_1-1);if(!_3){_8=Math.PI-_8}
  var x=(this.dialRadius+3)*Math.cos(_8);var y=(this.dialRadius+3)*Math.sin(_8);var p=[_4[0]+x,_4[1]-y];var _12=(this.dialRadius-10)*Math.cos(_8);var _13=(this.dialRadius-10)*Math.sin(_8);var _14=[_4[0]+_12,_4[1]-_13];if(!_5[i]){_5[i]=this.createAutoChild("tickLine",{lineColor:_7,startPoint:_14,endPoint:p,lineWidth:2})}else{_5[i].setLineColor(_7);_5[i].setStartPoint(p[0],p[1]);_5[i].setEndPoint(_14[0],_14[1])}}
  for(var j=0;j<_2;++j,++i){var _8=Math.PI-Math.PI*j/(_2-1);if(!_3){_8=Math.PI-_8}
  var x=this.dialRadius*Math.cos(_8);var y=this.dialRadius*Math.sin(_8);var p=[_4[0]+x,_4[1]-y];var _12=(this.dialRadius-5)*Math.cos(_8);var _13=(this.dialRadius-5)*Math.sin(_8);var _14=[_4[0]+_12,_4[1]-_13];if(!_5[i]){_5[i]=this.createAutoChild("tickLine",{lineColor:_7,startPoint:_14,endPoint:p,lineWidth:1})}else{_5[i].setLineColor(_7);_5[i].setStartPoint(p[0],p[1]);_5[i].setEndPoint(_14[0],_14[1])}}
  for(i=0;i<_5.length;++i){this.addDrawItem(_5[i],true)}
  this.tickLine=_5},isc.A.$931=function isc_Gauge__makeNeedle(){var _1=this.needleColor?this.needleColor:this.borderColor;if(this.needle)this.needle.destroy();this.needle=this.createAutoChild("needle",{fillColor:_1,drawPane:this,lineColor:this.borderColor,lineWidth:this.borderWidth});this.addDrawItem(this.needle,true);this.$932()},isc.A.$932=function isc_Gauge__makeKnob(){var _1=this.needleColor?this.needleColor:this.borderColor;if(this.pivotShape)this.pivotShape.destroy();this.pivotShape=this.createAutoChild("pivotShape",{drawPane:this,centerPoint:this.pivotPoint,lineColor:this.borderColor,lineWidth:this.borderWidth,fillColor:_1});this.addDrawItem(this.pivotShape,true)},isc.A.$93y=function isc_Gauge__makeLabels(){var _1=this.sectors;var _2=new Array(1+_1.length);if(this.valueLabel){for(var i=0;i<this.valueLabel.length;++i){this.valueLabel[i].destroy()}}
  var _4;_2[0]=_4=this.$93g(this.formatLabelContents(this.minValue),this.minValue);this.addDrawItem(_4,true);for(var _5=0;_5<_1.length;++_5){var _6=_1[_5];var _7=this.$93g(this.formatLabelContents(_6.value),_6.value);_2[1+_5]=_7;this.addDrawItem(_7,true)}
  this.valueLabel=_2},isc.A.setMinValue=function isc_Gauge_setMinValue(_1){_1=Math.min(0+_1,this.maxValue-1);this.$93h(_1,this.maxValue)},isc.A.setDialRadius=function isc_Gauge_setDialRadius(_1){if(this.isDrawn()){this.destroyItems();this.dialRadius=_1;this.$134w()}else{this.dialRadius=_1}},isc.A.setPivotPoint=function isc_Gauge_setPivotPoint(_1){if(this.isDrawn()){this.destroyItems();this.pivotPoint=_1;this.$134w()}else{this.pivotPoint=_1}},isc.A.setMaxValue=function isc_Gauge_setMaxValue(_1){_1=Math.max(0+_1,1+this.minValue);this.$93h(this.minValue,_1)},isc.A.$93h=function isc_Gauge__rescaleSectors(_1,_2){var _3=this.maxValue;var _4=this.minValue;var _5=this.sectors;var _6=_3-_4;var _7=_2-_1;var _8=0;for(var _9=0;_9<_5.length;++_9){var _10=_5[_9];var _11=_7*(_10.value-_4)/_6+_1;_10.value=_11;_10.startAngle=_8;_10.endAngle=_8=this.$93i(_11,_1,_7)}
  this.value=_7*(this.value-_4)/_6+_1;this.minValue=_4=_1;this.maxValue=_3=_2;this.$134w()},isc.A.setValue=function isc_Gauge_setValue(_1){_1=Math.min(Math.max(0+_1,this.minValue),this.maxValue);this.$93e(_1);this.value=_1},isc.A.setNumMajorTicks=function isc_Gauge_setNumMajorTicks(_1){_1=Math.floor(_1);if(this.numMajorTicks!=_1){_1=Math.max(0,_1);if(_1!=0){_1=Math.max(2,_1)}
  this.numMajorTicks=_1;this.$134w()}},isc.A.setNumMinorTicks=function isc_Gauge_setNumMinorTicks(_1){_1=Math.floor(_1);if(this.numMinorTicks!=_1){_1=Math.max(0,_1);if(_1!=0){_1=Math.max(2,_1)}
  this.numMinorTicks=_1;this.$134w()}},isc.A.setLabelPrefix=function isc_Gauge_setLabelPrefix(_1){if(_1==null)_1="";if(this.labelPrefix!=_1){this.labelPrefix=_1;this.reformatLabelContents()}},isc.A.setLabelSuffix=function isc_Gauge_setLabelSuffix(_1){if(_1==null)_1="";if(this.labelSuffix!=_1){this.labelSuffix=_1;this.reformatLabelContents()}},isc.A.setDrawnClockwise=function isc_Gauge_setDrawnClockwise(_1){_1=!!_1;if(this.drawnClockwise!=_1){this.drawnClockwise=_1;this.$134w()}},isc.A.formatLabelContents=function isc_Gauge_formatLabelContents(_1){return this.labelPrefix+(0+_1)+this.labelSuffix},isc.A.reformatLabelContents=function isc_Gauge_reformatLabelContents(){this.$134w()},isc.A.getNumSectors=function isc_Gauge_getNumSectors(){return this.sectors.length},isc.A.getSectorValue=function isc_Gauge_getSectorValue(_1){return this.sectors[_1].value},isc.A.getDefaultFillColor=function isc_Gauge_getDefaultFillColor(_1){var _2=this.sectorColors.length;return this.sectorColors[_1%_2]},isc.A.getSectorFillColor=function isc_Gauge_getSectorFillColor(_1){return this.sectors[_1].fillColor},isc.A.setSectorFillColor=function isc_Gauge_setSectorFillColor(_1,_2){var _3=this.sectors;var _4=this.sectorShape;_3[_1].fillColor=_2;if(_4&&_4.length==_3.length){_4[_1].setFillColor(_2)}else{this.$134w()}},isc.A.$1113=function isc_Gauge__shiftSectorFillColor(_1,_2){if(_2<this.sectors.length){_1.fillColor=this.sectors[_2].fillColor}else{_1.fillColor=this.getDefaultFillColor(_2)}},isc.A.getSectorLabelContents=function isc_Gauge_getSectorLabelContents(_1){return this.formatLabelContents(this.sectors[_1].value)},isc.A.setBorderColor=function isc_Gauge_setBorderColor(_1){this.borderColor=_1;this.redraw()},isc.A.setBorderWidth=function isc_Gauge_setBorderWidth(_1){this.borderWidth=_1;this.redraw()},isc.A.setSectors=function isc_Gauge_setSectors(_1){this.sectors=[];for(var i=0;i<_1.length;i++){this.addSector(_1[i],true)}
  this.$134w()},isc.A.addSector=function isc_Gauge_addSector(_1,_2){if(!isc.isAn.Object(_1)){_1={value:_1}}
  var _3=_1.value;_1=isc.addProperties({},this.sectorDefaults,_1);_3=Math.min(Math.max(0+_3,this.minValue),this.maxValue);var _4=this.sectors;var _5=this.maxValue;var _6=this.minValue;var _7=0;for(;_7<_4.length&&_4[_7].value<_3;++_7)
  {}
  var _8=new Array(_4.length+1);for(var _9=0;_9<_7;++_9){_8[_9]=_4[_9]}
  var _10,_11=_5-_6,_12=!_1.fillColor;_1.startAngle=this.$93j(_7,_6,_11);_1.endAngle=_10=this.$93i(_3,_6,_11);_8[_7]=_1;if(_12)this.$1113(_1,_7);if(_7<_4.length){_4[_7].startAngle=_10}
  for(var _9=_7;_9<_4.length;++_9){var _13=_4[_9];if(_12)this.$1113(_13,_9+1);_8[_9+1]=_13}
  this.sectors=_4=_8;if(!_2){this.$134w()}
  return _7},isc.A.removeSector=function isc_Gauge_removeSector(_1){var _2=this.sectors;if(_1==0&&_2.length==1){return}
  var _3=new Array(_2.length-1);for(var i=0;i<_1;++i){_3[i]=_2[i]}
  var _5=0;if(_1>0){_5=_2[_1-1].endAngle}
  if(_1<_2.length-1){_2[_1+1].startAngle=_5}
  for(var i=_1+1;i<_2.length;++i){_3[i-1]=_2[i]}
  if(_1==_2.length-1){_3[_1-1].endAngle=180;_3[_1-1].value=this.maxValue}
  this.sectors=_2=_3;this.$134w()},isc.A.$93j=function isc_Gauge__getSectorStartAngle(_1,_2,_3){if(_1==0){return 0}else{var _4=this.sectors[_1-1].value;return 180*(_4-_2)/_3}},isc.A.$93i=function isc_Gauge__getSectorEndAngle(_1,_2,_3){return 180*(_1-_2)/_3},isc.A.$93e=function isc_Gauge__positionNeedleTriangle(_1){var _2=this.pivotPoint;var _3=this.maxValue-this.minValue;var _4=Math.PI-Math.PI*(_1-this.minValue)/_3;if(!this.drawnClockwise){_4=Math.PI-_4}
  var x=(this.dialRadius-15)*Math.cos(_4);var y=(this.dialRadius-15)*Math.sin(_4);var p=[_2[0]+x,_2[1]-y];var _8=_4-Math.PI/2.0;var _9=this.pivotShape.radius*Math.cos(_8);var _10=this.pivotShape.radius*Math.sin(_8);var _11=[_2[0]+_9,_2[1]-_10];var _12=_4+Math.PI/2.0;var _13=this.pivotShape.radius*Math.cos(_12);var _14=this.pivotShape.radius*Math.sin(_12);var _15=[_2[0]+_13,_2[1]-_14];this.needle.setPoints([p,_11,_15])},isc.A.$93g=function isc_Gauge__makePositionedLabel(_1,_2){var _3=this.pivotPoint;var _4=this.maxValue-this.minValue;var _5=Math.PI-Math.PI*(_2-this.minValue)/_4;if(!this.drawnClockwise){_5=Math.PI-_5}
  var _6={fontSize:this.fontSize,contents:_1,left:0,top:0};var _7=this.measureLabel(_1,isc.addProperties({},this.valueLabelDefaults,this.valueLabelProperties,_6)),_8=_7.width,_9=_7.height;var x=(this.dialRadius+5)*Math.cos(_5);var y=(this.dialRadius+5)*Math.sin(_5);var _12;if(_5<9.0*Math.PI/20.0-0.001){_12=Math.round(_3[0]+x+2)}else if(_5<=11.0*Math.PI/20.0+0.001){_12=Math.round(_3[0]+x-_8/2)}else{_12=Math.round(_3[0]+x-_8-2)}
  var _13;if(Math.PI/4.0<=_5&&_5<=3.0*Math.PI/4.0){_13=Math.round(_3[1]-y-_9*(1.0-Math.abs(Math.PI/2.0-_5)*0.5))}else{_13=Math.round(_3[1]-y-_9/2)}
  _6.left=_12;_6.top=_13;return this.createAutoChild("valueLabel",_6)});isc.B._maxIndex=isc.C+38;isc._nonDebugModules=(isc._nonDebugModules!=null?isc._nonDebugModules:[]);isc._nonDebugModules.push('Drawing');isc.checkForDebugAndNonDebugModules();isc._moduleEnd=isc._Drawing_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Drawing module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;if(isc.Page)isc.Page.handleEvent(null,"moduleLoaded",{moduleName:'Drawing',loadTime:(isc._moduleEnd-isc._moduleStart)});}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Drawing'.");}
  