Ask your own question, for FREE!
OpenStudy Feedback 17 Online
JoelTheBoss (joel_the_boss):

@thesmartone what is that program used to make the full pictures? Do you guys use autodraw or what? lol im lost

JoelTheBoss (joel_the_boss):

@CausticSyndicalist @Luigi0210 @Data_LG2

OpenStudy (causticsyndicalist):

'Tis actually a console script. Just open the 'Draw' window, right-click outside the drawing space but on the Draw window, click the 'Console' tab on the popup window and paste this: $.getScript(' http://assets.openstudy.com/updates/attachments/555abc50e4b0a00c802fe4dd-rational-1432123567213-draw.js') then press Enter.

OpenStudy (causticsyndicalist):

|dw:1434423431402:dw|

OpenStudy (anonymous):

aww.. you should've ask for a cookie in return before revealing it xDD

OpenStudy (causticsyndicalist):

LOL

jagr2713 (jagr2713):

dont see the console option

JoelTheBoss (joel_the_boss):

tbh, i have no idea what you said, but bravo lol

OpenStudy (causticsyndicalist):

|dw:1434423519516:dw|

Nnesha (nnesha):

Ctrl+shift+J then enter that thingy

OpenStudy (anonymous):

or press "f12"

TheSmartOne (thesmartone):

It's magic.

OpenStudy (causticsyndicalist):

I always did it the hard way. xD

TheSmartOne (thesmartone):

|dw:1434423633184:dw|

jagr2713 (jagr2713):

i am lost........

TheSmartOne (thesmartone):

I made a video of how to do it. Let me find it x'D

OpenStudy (causticsyndicalist):

|dw:1434423686344:dw| No, it's called AESTHETICS

TheSmartOne (thesmartone):

Here you go: https://youtu.be/Y3lo-Zhq3s0

TheSmartOne (thesmartone):

@Compassionate come learn this sorcery

OpenStudy (causticsyndicalist):

|dw:1434423903574:dw|

TheSmartOne (thesmartone):

or for me actually x'D

OpenStudy (causticsyndicalist):

Whoops, I got Netflix to catch up on. e.e Gonna watch |dw:1434424127510:dw|

Nnesha (nnesha):

|dw:1434424112850:dw|

OpenStudy (causticsyndicalist):

|dw:1434424192079:dw|

OpenStudy (causticsyndicalist):

LOL Nnesha

OpenStudy (compassionate):

So do you have to copy the picture then press the image thing

OpenStudy (causticsyndicalist):

Actually you press the Image button first and then paste the link to a picture in a little popup window that will appear.

OpenStudy (causticsyndicalist):

|dw:1434424272245:dw|

OpenStudy (theraggedydoctor):

o_o

OpenStudy (compassionate):

Which one do you enter

TheSmartOne (thesmartone):

|dw:1434424297892:dw|

TheSmartOne (thesmartone):

did it work? o.o

OpenStudy (causticsyndicalist):

@TheSmartOne I dunno. It comes up as a blank white thingy to me. Must not have enough vaporwave. e.e

TheSmartOne (thesmartone):

Might take a while to load, happens when you post gifs too :/

OpenStudy (causticsyndicalist):

That's odd. My gifs load perfectly. :l

OpenStudy (compassionate):

What is the full source code you enter?

OpenStudy (causticsyndicalist):

Incoming gibberish.

OpenStudy (causticsyndicalist):

function checkForDialog(){var t=$("#drawing-dialog");t.length>0&&0===$("#drawing-dialog .toolbar #image_button").length&&modifyDrawingDialog(t)}function insert_image(){var t=prompt("Please enter the url of image"," http://theinspirationgrid.com/wp-content/uploads/2014/03/motion-david-szakaly-01.gif ");if(t){var e=$("#drawing-dialog .canvas").data().whiteboard.canvas;e.image(t,0,0,500,300),image_object.src=t,drawing_id=$("#drawing-dialog .canvas").data().whiteboard.id}}function parseDrawingData(){return JSON.parse("{"+$("#drawing-data").val()+"}")}function deriveDrawingData(t){var e=[];for(x in t)e.push(),e.push('"'+x+'": '+JSON.stringify(t[x]));return e.join(",")}function modifyDrawingData(){var t=parseDrawingData();"undefined"!=typeof t[drawing_id]&&(t[drawing_id].shapes.push(image_object),$("#drawing-data").val(deriveDrawingData(t)))}function modifyDrawingDialog(t){$("<button/>",{text:"Image",id:"image_button",height:"29px",click:function(){insert_image()}}).css({"margin-right":"10px",color:"white","background-color":"black"}).prependTo("#drawing-dialog .toolbar"),t.find(".actions .insert").click(function(){modifyDrawingData()})}Raphael=function(){function t(){if(t.is(arguments[0],se)){for(var e=arguments[0],r=Ze[H](t,e.splice(0,3+t.is(e[0],ie))),i=r.set(),n=0,s=e[Q];s>n;n++){var a=e[n]||{};j.test(a.type)&&i[ce](r[a.type]().attr(a))}return i}return Ze[H](t,arguments)}function e(){}function r(e){if(t.vml){var i=/^\s+|\s+$/g;r=a(function(t){var e;t=X(t)[ke](i,Y);try{var r=new P.ActiveXObject("htmlfile");r.write("<body>"),r.close(),e=r.body}catch(n){e=P.createPopup().document.body}r=e.createTextRange();try{e.style.color=t;var s=r.queryCommandValue("ForeColor");return s=(255&s)<<16|65280&s|(16711680&s)>>>16,"#"+("000000"+s[ae](16)).slice(-6)}catch(a){return"none"}})}else{var n=L.createElement("i");n.title="Raphaël Colour Picker",n.style.display="none",L.body[F](n),r=a(function(t){return n.style.color=t,L.defaultView.getComputedStyle(n,Y).getPropertyValue("color")})}return r(e)}function i(){return"hsb("+[this.h,this.s,this.b]+")"}function n(){return"hsl("+[this.h,this.s,this.l]+")"}function s(){return this.hex}function a(t,e,r){function i(){var n=Array[D].slice.call(arguments,0),s=n[J]("?"),a=i.cache=i.cache||{},o=i.count=i.count||[];return a[q](s)?r?r(a[s]):a[s]:(o[Q]>=1e3&&delete a[o.shift()],o[ce](s),a[s]=t[H](e,n),r?r(a[s]):a[s])}return i}function o(e){var r=[];t.is(e,se)&&t.is(e&&e[0],se)||(e=t.parsePathString(e));for(var i=0,n=e[Q];n>i;i++){r[i]=[];for(var s=0,a=e[i][Q];a>s;s++)r[i][s]=e[i][s]}return r[ae]=t._path2string,r}function h(t,e,r,i){return[t,e,r,i,r,i]}function l(t,e,r,i,n,s){var a=1/3,o=2/3;return[a*t+o*r,a*e+o*i,a*n+o*r,a*s+o*i,n,s]}function c(t,e,r,i,n,s,o,h,l,f){var u,p=te.PI,d=120*p/180,g=p/180*(+n||0),y=[],v=a(function(t,e,r){var i=t*te.cos(r)-e*te.sin(r);return t=t*te.sin(r)+e*te.cos(r),{x:i,y:t}});if(f)b=f[0],u=f[1],s=f[2],m=f[3];else{u=v(t,e,-g),t=u.x,e=u.y,u=v(h,l,-g),h=u.x,l=u.y,te.cos(p/180*n),te.sin(p/180*n),u=(t-h)/2,b=(e-l)/2,m=u*u/(r*r)+b*b/(i*i),m>1&&(m=te.sqrt(m),r=m*r,i=m*i),m=r*r;var x=i*i;m=(s==o?-1:1)*te.sqrt(te.abs((m*x-m*b*b-x*u*u)/(m*b*b+x*u*u))),s=m*r*b/i+(t+h)/2;var m=m*-i*u/r+(e+l)/2,b=te.asin(((e-m)/i).toFixed(7));u=te.asin(((l-m)/i).toFixed(7)),b=s>t?p-b:b,u=s>h?p-u:u,0>b&&(b=2*p+b),0>u&&(u=2*p+u),o&&b>u&&(b-=2*p),!o&&u>b&&(u-=2*p)}if(p=u-b,te.abs(p)>d&&(y=u,p=h,x=l,u=b+d*(o&&u>b?1:-1),h=s+r*te.cos(u),l=m+i*te.sin(u),y=c(h,l,r,i,n,0,o,p,x,[u,y,s,m])),p=u-b,n=te.cos(b),s=te.sin(b),o=te.cos(u),u=te.sin(u),p=te.tan(p/4),r=4/3*r*p,p=4/3*i*p,i=[t,e],t=[t+r*s,e-p*n],e=[h+r*u,l-p*o],h=[h,l],t[0]=2*i[0]-t[0],t[1]=2*i[1]-t[1],f)return[t,e,h][W](y);for(y=[t,e,h][W](y)[J]()[I](","),f=[],h=0,l=y[Q];l>h;h++)f[h]=h%2?v(y[h-1],y[h],g).y:v(y[h],y[h+1],g).x;return f}function f(t,e,r,i,n,s,a,o,h){var l=1-h;return{x:le(l,3)*t+3*le(l,2)*h*r+3*l*h*h*n+le(h,3)*a,y:le(l,3)*e+3*le(l,2)*h*i+3*l*h*h*s+le(h,3)*o}}function u(e,r,i,n){return t.is(e,ne)||t.is(e,"object")?(e=t.is(e,ne)?L.getElementById(e):e,e.tagName?null==r?{container:e,width:e.style.pixelWidth||e.offsetWidth,height:e.style.pixelHeight||e.offsetHeight}:{container:e,width:r,height:i}:void 0):{container:1,x:e,y:r,width:i,height:n}}function p(t,e){var r=this;for(var i in e)if(e[q](i)&&!(i in t))switch(typeof e[i]){case"function":!function(e){t[i]=t===r?e:function(){return e[H](r,arguments)}}(e[i]);break;case"object":t[i]=t[i]||{},p.call(this,t[i],e[i]);break;default:t[i]=e[i]}}function d(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}function g(t,e){e.top!==t&&(d(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)}function y(t,e){e.bottom!==t&&(d(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)}function v(t,e,r){d(t,r),e==r.top&&(r.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t}function x(t,e,r){d(t,r),e==r.bottom&&(r.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e}function m(t){return function(){throw new Error("Raphaël: you are calling to method “"+t+"” of removed object")}}function b(e,r,i,n,s){return s?t.format("M{0},{1}l{2},0a{3},{3},0,0,1,{3},{3}l0,{5}a{3},{3},0,0,1,{4},{3}l{6},0a{3},{3},0,0,1,{4},{4}l0,{7}a{3},{3},0,0,1,{3},{4}z",e+s,r,i-2*s,s,-s,n-2*s,2*s-i,2*s-n):t.format("M{0},{1}l{2},0,0,{3},{4},0z",e,r,i,n,-i)}function w(){this.returnValue=!1}function k(){return this.originalEvent.preventDefault()}function _(){this.cancelBubble=!0}function B(){return this.originalEvent.stopPropagation()}function C(t){for(var e,r=t.clientX,i=t.clientY,n=hr.length;n--;){if(e=hr[n],$){for(var s,a=t.touches.length;a--;)if(s=t.touches[a],s.identifier==e.el._drag.id){r=s.clientX,i=s.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();e.move&&e.move.call(e.el,r-e.el._drag.x,i-e.el._drag.y,r,i)}}function N(){t.unmousemove(C).unmouseup(N);for(var e,r=hr.length;r--;)e=hr[r],e.el._drag={},e.end&&e.end.call(e.el);hr=[]}function S(){return this.x+O+this.y}function A(e,r){return function(i,n,s){i=ze(i);for(var a,o,h,l,c="",f={},u=0,p=0,d=i.length;d>p;p++){if(h=i[p],"M"==h[0])a=+h[1],o=+h[2];else{if(l=cr(a,o,h[1],h[2],h[3],h[4],h[5],h[6]),u+l>n){if(r&&!f.start){if(a=lr(a,o,h[1],h[2],h[3],h[4],h[5],h[6],n-u),c+=["C",a.start.x,a.start.y,a.m.x,a.m.y,a.x,a.y],s)return c;f.start=c,c=["M",a.x,a.y+"C",a.n.x,a.n.y,a.end.x,a.end.y,h[5],h[6]][J](),u+=l,a=+h[5],o=+h[6];continue}if(!e&&!r)return a=lr(a,o,h[1],h[2],h[3],h[4],h[5],h[6],n-u),{x:a.x,y:a.y,alpha:a.alpha}}u+=l,a=+h[5],o=+h[6]}c+=h}return f.end=c,a=e?u:r?f:t.findDotsAtSegment(a,o,h[1],h[2],h[3],h[4],h[5],h[6],1),a.alpha&&(a={x:a.x,y:a.y,alpha:a.alpha}),a}}function G(){var e=+new Date;for(var r in dr)if("length"!=r&&dr[q](r)){var i=dr[r];if(i.stop||i.el.removed)delete dr[r],dr[Q]--;else{var n,s=e-i.start,a=i.ms,o=i.easing,h=i.from,l=i.diff,c=i.to,f=i.t,u=i.prev||0,p=i.el,d=i.callback,g={};if(a>s){d=t.easing_formulas[o]?t.easing_formulas[o](s/a):s/a;for(var y in h)if(h[q](y)){switch(we[y]){case"along":n=d*a*l[y],c.back&&(n=c.len-n),o=ur(c[y],n),p.translate(l.sx-l.x||0,l.sy-l.y||0),l.x=o.x,l.y=o.y,p.translate(o.x-l.sx,o.y-l.sy),c.rot&&p.rotate(l.r+o.alpha,o.x,o.y);break;case ie:n=+h[y]+d*a*l[y];break;case"colour":n="rgb("+[M(de(h[y].r+d*a*l[y].r)),M(de(h[y].g+d*a*l[y].g)),M(de(h[y].b+d*a*l[y].b))][J](",")+")";break;case"path":n=[],o=0;for(var v=h[y][Q];v>o;o++){n[o]=[h[y][o][0]];for(var x=1,m=h[y][o][Q];m>x;x++)n[o][x]=+h[y][o][x]+d*a*l[y][o][x];n[o]=n[o][J](O)}n=n[J](O);break;case"csv":switch(y){case"translation":n=l[y][0]*(s-u),o=l[y][1]*(s-u),f.x+=n,f.y+=o,n=n+O+o;break;case"rotation":n=+h[y][0]+d*a*l[y][0],h[y][1]&&(n+=","+h[y][1]+","+h[y][2]);break;case"scale":n=[+h[y][0]+d*a*l[y][0],+h[y][1]+d*a*l[y][1],2 in c[y]?c[y][2]:Y,3 in c[y]?c[y][3]:Y][J](O);break;case"clip-rect":for(n=[],o=4;o--;)n[o]=+h[y][o]+d*a*l[y][o]}}g[y]=n}p.attr(g),p._run&&p._run.call(p)}else c.along&&(o=ur(c.along,c.len*!c.back),p.translate(l.sx-(l.x||0)+o.x-l.sx,l.sy-(l.y||0)+o.y-l.sy),c.rot&&p.rotate(l.r+o.alpha,o.x,o.y)),(f.x||f.y)&&p.translate(-f.x,-f.y),c.scale&&(c.scale+=Y),p.attr(c),delete dr[r],dr[Q]--,p.in_animation=null,t.is(d,"function")&&d.call(p);i.prev=s}}t.svg&&p&&p.paper&&p.paper.safari(),dr[Q]&&P.setTimeout(G)}function M(t){return ee(re(t,255),0)}function T(t,e){if(null==t)return{x:this._.tx,y:this._.ty,toString:S};switch(this._.tx+=+t,this._.ty+=+e,this.type){case"circle":case"ellipse":this.attr({cx:+t+this.attrs.cx,cy:+e+this.attrs.cy});break;case"rect":case"image":case"text":this.attr({x:+t+this.attrs.x,y:+e+this.attrs.y});break;case"path":var r=Me(this.attrs.path);r[0][1]+=+t,r[0][2]+=+e,this.attr({path:r})}return this}function E(e){return function(r,i,n,s){var a={back:e};return t.is(n,"function")?s=n:a.rot=n,r&&r.constructor==We&&(r=r.attrs.path),r&&(a.along=r),this.animate(a,i,s)}}function z(t){if(this.items=[],this[Q]=0,this.type="set",t)for(var e=0,r=t[Q];r>e;e++)!t[e]||t[e].constructor!=We&&t[e].constructor!=z||(this[this.items[Q]]=this.items[this.items[Q]]=t[e],this[Q]++)}t.version="1.4.7";var R=/[, ]+/,j=/^(circle|rect|path|ellipse|text|image)$/,D="prototype",q="hasOwnProperty",L=document,P=window,V={was:Object[D][q].call(P,"Raphael"),is:P.Raphael},F="appendChild",H="apply",W="concat",$="createTouch"in L,Y="",O=" ",X=String,I="split",U="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend orientationchange touchcancel gesturestart gesturechange gestureend"[I](O),Z={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},J="join",Q="length",K=String[D].toLowerCase,te=Math,ee=te.max,re=te.min,ie="number",ne="string",se="array",ae="toString",oe="fill",he=Object[D][ae],le=te.pow,ce="push",fe=/^(?=[\da-f]$)/,ue=/^url\(['"]?([^\)]+?)['"]?\)$/i,pe=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+(?:\s*,\s*[\d\.]+)?)\s*\)|rgba?\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%(?:\s*,\s*[\d\.]+%)?)\s*\)|hsb\(\s*([\d\.]+(?:deg|\xb0)?\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hsb\(\s*([\d\.]+(?:deg|\xb0|%)\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\)|hsl\(\s*([\d\.]+(?:deg|\xb0)?\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hsl\(\s*([\d\.]+(?:deg|\xb0|%)\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i,de=te.round,ge="setAttribute",ye=parseFloat,ve=parseInt,xe=" progid:DXImageTransform.Microsoft",me=String[D].toUpperCase,be={blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:" http://raphaeljs.com/ ",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",translation:"0 0",width:0,x:0,y:0},we={along:"along",blur:ie,"clip-rect":"csv",cx:ie,cy:ie,fill:"colour","fill-opacity":ie,"font-size":ie,height:ie,opacity:ie,path:"path",r:ie,rotation:"csv",rx:ie,ry:ie,scale:"csv",stroke:"colour","stroke-opacity":ie,"stroke-width":ie,translation:"csv",width:ie,x:ie,y:ie},ke="replace";if(t.type=P.SVGAngle||L.implementation.hasFeature(" http://www.w3.org/TR/SVG11/feature#BasicStructure ","1.1")?"SVG":"VML","VML"==t.type){var _e=L.createElement("div");if(_e.innerHTML='<v:shape adj="1"/>',_e=_e.firstChild,_e.style.behavior="url(#default#VML)",!_e||"object"!=typeof _e.adj)return t.type=null;_e=null}t.svg=!(t.vml="VML"==t.type),e[D]=t[D],t._id=0,t._oid=0,t.fn={},t.is=function(t,e){return e=K.call(e),"object"==e&&t===Object(t)||"undefined"==e&&typeof t==e||"null"==e&&null==t||"array"==e&&Array.isArray&&Array.isArray(t)||K.call(he.call(t).slice(8,-1))==e},t.setWindow=function(t){P=t,L=P.document},t.hsb2rgb=function(e,r,i){return t.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(i=e.b,r=e.s,e=e.h),t.hsl2rgb(e,r,i/2)},t.hsl2rgb=function(e,r,i){t.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(i=e.l,r=e.s,e=e.h);var n,a={},o=["r","g","b"];if(r){r=.5>i?i*(1+r):i+r-i*r,i=2*i-r;for(var h=0,l=o.length;l>h;h++)n=e+1/3*-(h-1),0>n&&n++,n>1&&n--,a[o[h]]=1>6*n?i+6*(r-i)*n:1>2*n?r:2>3*n?i+(r-i)*(2/3-n)*6:i}else a={r:i,g:i,b:i};return a.r*=255,a.g*=255,a.b*=255,e=(~~a.r)[ae](16),o=(~~a.g)[ae](16),r=(~~a.b)[ae](16),e=e[ke](fe,"0"),o=o[ke](fe,"0"),r=r[ke](fe,"0"),a.hex="#"+e+o+r,a.toString=s,a},t.rgb2hsb=function(e,r,n){if(null==r&&t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(n=e.b,r=e.g,e=e.r),null==r&&t.is(e,ne)){var s=t.getRGB(e);e=s.r,r=s.g,n=s.b}(e>1||r>1||n>1)&&(e/=255,r/=255,n/=255);var a=ee(e,r,n),o=re(e,r,n);if(s=a,o==a)return{h:0,s:0,b:a,toString:i};var h=a-o;return o=h/a,e=e==a?(r-n)/h:r==a?2+(n-e)/h:4+(e-r)/h,e/=6,0>e&&e++,e>1&&e--,{h:e,s:o,b:s,toString:i}},t.rgb2hsl=function(e,r,i){if(null==r&&t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(i=e.b,r=e.g,e=e.r),null==r&&t.is(e,ne)){var s=t.getRGB(e);e=s.r,r=s.g,i=s.b}(e>1||r>1||i>1)&&(e/=255,r/=255,i/=255);var a=ee(e,r,i),o=re(e,r,i);if(s=(a+o)/2,o==a)e={h:0,s:0,l:s};else{var h=a-o;o=.5>s?h/(a+o):h/(2-a-o),e=e==a?(r-i)/h:r==a?2+(i-e)/h:4+(e-r)/h,e/=6,0>e&&e++,e>1&&e--,e={h:e,s:o,l:s}}return e.toString=n,e};var Be=/,?([achlmqrstvxz]),?/gi,Ce=/\s*,\s*/,Ne={hs:1,rg:1};t._path2string=function(){return this.join(",")[ke](Be,"$1")},t.getRGB=a(function(e){if(!e||(e=X(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none"};!(Ne[q](e.substring(0,2))||"#"==e.charAt())&&(e=r(e));var i,n,s,a,o;return(e=e.match(pe))?(e[2]&&(s=ve(e[2].substring(5),16),n=ve(e[2].substring(3,5),16),i=ve(e[2].substring(1,3),16)),e[3]&&(s=ve((o=e[3].charAt(3))+o,16),n=ve((o=e[3].charAt(2))+o,16),i=ve((o=e[3].charAt(1))+o,16)),e[4]&&(e=e[4][I](Ce),i=ye(e[0]),n=ye(e[1]),s=ye(e[2]),a=ye(e[3])),e[5]&&(e=e[5][I](Ce),i=2.55*ye(e[0]),n=2.55*ye(e[1]),s=2.55*ye(e[2]),a=ye(e[3])),e[6]?(e=e[6][I](Ce),i=ye(e[0]),n=ye(e[1]),s=ye(e[2]),("deg"==e[0].slice(-3)||"°"==e[0].slice(-1))&&(i/=360),t.hsb2rgb(i,n,s)):e[7]?(e=e[7][I](Ce),i=2.55*ye(e[0]),n=2.55*ye(e[1]),s=2.55*ye(e[2]),("deg"==e[0].slice(-3)||"°"==e[0].slice(-1))&&(i/=360*2.55),t.hsb2rgb(i,n,s)):e[8]?(e=e[8][I](Ce),i=ye(e[0]),n=ye(e[1]),s=ye(e[2]),("deg"==e[0].slice(-3)||"°"==e[0].slice(-1))&&(i/=360),t.hsl2rgb(i,n,s)):e[9]?(e=e[9][I](Ce),i=2.55*ye(e[0]),n=2.55*ye(e[1]),s=2.55*ye(e[2]),("deg"==e[0].slice(-3)||"°"==e[0].slice(-1))&&(i/=360*2.55),t.hsl2rgb(i,n,s)):(e={r:i,g:n,b:s},i=(~~i)[ae](16),n=(~~n)[ae](16),s=(~~s)[ae](16),i=i[ke](fe,"0"),n=n[ke](fe,"0"),s=s[ke](fe,"0"),e.hex="#"+i+n+s,isFinite(ye(a))&&(e.o=a),e)):{r:-1,g:-1,b:-1,hex:"none",error:1}},t),t.getColor=function(t){t=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75};var e=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),e.hex},t.getColor.reset=function(){delete this.start};var Se=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/gi,Ae=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/gi;t.parsePathString=a(function(e){if(!e)return null;var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return t.is(e,se)&&t.is(e[0],se)&&(i=o(e)),i[Q]||X(e)[ke](Se,function(t,e,n){var s=[];for(t=K.call(e),n[ke](Ae,function(t,e){e&&s[ce](+e)}),"m"==t&&s[Q]>2&&(i[ce]([e][W](s.splice(0,2))),t="l",e="m"==e?"l":"L");s[Q]>=r[t]&&(i[ce]([e][W](s.splice(0,r[t]))),r[t]););}),i[ae]=t._path2string,i}),t.findDotsAtSegment=function(t,e,r,i,n,s,a,o,h){var l=1-h,c=le(l,3)*t+3*le(l,2)*h*r+3*l*h*h*n+le(h,3)*a;l=le(l,3)*e+3*le(l,2)*h*i+3*l*h*h*s+le(h,3)*o;var f=t+2*h*(r-t)+h*h*(n-2*r+t),u=e+2*h*(i-e)+h*h*(s-2*i+e),p=r+2*h*(n-r)+h*h*(a-2*n+r),d=i+2*h*(s-i)+h*h*(o-2*s+i);return t=(1-h)*t+h*r,e=(1-h)*e+h*i,n=(1-h)*n+h*a,s=(1-h)*s+h*o,o=90-180*te.atan((f-p)/(u-d))/te.PI,(f>p||d>u)&&(o+=180),{x:c,y:l,m:{x:f,y:u},n:{x:p,y:d},start:{x:t,y:e},end:{x:n,y:s},alpha:o}};var Ge=a(function(t){if(!t)return{x:0,y:0,width:0,height:0};t=ze(t);for(var e,r=0,i=0,n=[],s=[],a=0,o=t[Q];o>a;a++)e=t[a],"M"==e[0]?(r=e[1],i=e[2],n[ce](r),s[ce](i)):(r=Ee(r,i,e[1],e[2],e[3],e[4],e[5],e[6]),n=n[W](r.min.x,r.max.x),s=s[W](r.min.y,r.max.y),r=e[5],i=e[6]);return t=re[H](0,n),e=re[H](0,s),{x:t,y:e,width:ee[H](0,n)-t,height:ee[H](0,s)-e}}),Me=a(function(e){t.is(e,se)&&t.is(e&&e[0],se)||(e=t.parsePathString(e));var r=[],i=0,n=0,s=0,a=0,o=0;"M"==e[0][0]&&(i=e[0][1],n=e[0][2],s=i,a=n,o++,r[ce](["M",i,n])),o=o;for(var h=e[Q];h>o;o++){var l=r[o]=[],c=e[o];if(c[0]!=K.call(c[0]))switch(l[0]=K.call(c[0]),l[0]){case"a":l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=+(c[6]-i).toFixed(3),l[7]=+(c[7]-n).toFixed(3);break;case"v":l[1]=+(c[1]-n).toFixed(3);break;case"m":s=c[1],a=c[2];default:for(var f=1,u=c[Q];u>f;f++)l[f]=+(c[f]-(f%2?i:n)).toFixed(3)}else for(r[o]=[],"m"==c[0]&&(s=c[1]+i,a=c[2]+n),l=0,f=c[Q];f>l;l++)r[o][l]=c[l];switch(c=r[o][Q],r[o][0]){case"z":i=s,n=a;break;case"h":i+=+r[o][c-1];break;case"v":n+=+r[o][c-1];break;default:i+=+r[o][c-2],n+=+r[o][c-1]}}return r[ae]=t._path2string,r},0,o),Te=a(function(e){t.is(e,se)&&t.is(e&&e[0],se)||(e=t.parsePathString(e));var r=[],i=0,n=0,s=0,a=0,o=0;"M"==e[0][0]&&(i=+e[0][1],n=+e[0][2],s=i,a=n,o++,r[0]=["M",i,n]),o=o;for(var h=e[Q];h>o;o++){var l=r[o]=[],c=e[o];if(c[0]!=me.call(c[0]))switch(l[0]=me.call(c[0]),l[0]){case"A":l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=+(c[6]+i),l[7]=+(c[7]+n);break;case"V":l[1]=+c[1]+n;break;case"H":l[1]=+c[1]+i;break;case"M":s=+c[1]+i,a=+c[2]+n;default:for(var f=1,u=c[Q];u>f;f++)l[f]=+c[f]+(f%2?i:n)}else for(f=0,u=c[Q];u>f;f++)r[o][f]=c[f];switch(l[0]){case"Z":i=s,n=a;break;case"H":i=l[1];break;case"V":n=l[1];break;case"M":s=r[o][r[o][Q]-2],a=r[o][r[o][Q]-1];default:i=r[o][r[o][Q]-2],n=r[o][r[o][Q]-1]}}return r[ae]=t._path2string,r},null,o),Ee=a(function(t,e,r,i,n,s,a,o){var h=n-2*r+t-(a-2*n+r),l=2*(r-t)-2*(n-r),c=t-r,u=(-l+te.sqrt(l*l-4*h*c))/2/h;h=(-l-te.sqrt(l*l-4*h*c))/2/h;var p=[e,o],d=[t,a];return te.abs(u)>1e12&&(u=.5),te.abs(h)>1e12&&(h=.5),u>0&&1>u&&(u=f(t,e,r,i,n,s,a,o,u),d[ce](u.x),p[ce](u.y)),h>0&&1>h&&(u=f(t,e,r,i,n,s,a,o,h),d[ce](u.x),p[ce](u.y)),h=s-2*i+e-(o-2*s+i),l=2*(i-e)-2*(s-i),c=e-i,u=(-l+te.sqrt(l*l-4*h*c))/2/h,h=(-l-te.sqrt(l*l-4*h*c))/2/h,te.abs(u)>1e12&&(u=.5),te.abs(h)>1e12&&(h=.5),u>0&&1>u&&(u=f(t,e,r,i,n,s,a,o,u),d[ce](u.x),p[ce](u.y)),h>0&&1>h&&(u=f(t,e,r,i,n,s,a,o,h),d[ce](u.x),p[ce](u.y)),{min:{x:re[H](0,d),y:re[H](0,p)},max:{x:ee[H](0,d),y:ee[H](0,p)}}}),ze=a(function(t,e){function r(t,e){var r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][W](c[H](0,[e.x,e.y][W](t.slice(1))));break;case"S":r=e.x+(e.x-(e.bx||e.x)),e=e.y+(e.y-(e.by||e.y)),t=["C",r,e][W](t.slice(1));break;case"T":e.qx=e.x+(e.x-(e.qx||e.x)),e.qy=e.y+(e.y-(e.qy||e.y)),t=["C"][W](l(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][W](l(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][W](h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][W](h(e.x,e.y,t[1],e.y));break;case"V":t=["C"][W](h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][W](h(e.x,e.y,e.X,e.Y))}return t}function i(t,e){if(t[e][Q]>7){t[e].shift();for(var r=t[e];r[Q];)t.splice(e++,0,["C"][W](r.splice(0,6)));t.splice(e,1),f=ee(s[Q],a&&a[Q]||0)}}function n(t,e,r,i,n){t&&e&&"M"==t[n][0]&&"M"!=e[n][0]&&(e.splice(n,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[n][1],r.y=t[n][2],f=ee(s[Q],a&&a[Q]||0))}var s=Te(t),a=e&&Te(e);t={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null};for(var o=0,f=ee(s[Q],a&&a[Q]||0);f>o;o++){s[o]=r(s[o],t),i(s,o),a&&(a[o]=r(a[o],e)),a&&i(a,o),n(s,a,t,e,o),n(a,s,e,t,o);var u=s[o],p=a&&a[o],d=u[Q],g=a&&p[Q];t.x=u[d-2],t.y=u[d-1],t.bx=ye(u[d-4])||t.x,t.by=ye(u[d-3])||t.y,e.bx=a&&(ye(p[g-4])||e.x),e.by=a&&(ye(p[g-3])||e.y),e.x=a&&p[g-2],e.y=a&&p[g-1]}return a?[s,a]:s},null,o),Re=a(function(e){for(var r=[],i=0,n=e[Q];n>i;i++){var s={},a=e[i].match(/^([^:]*):?([\d\.]*)/);if(s.color=t.getRGB(a[1]),s.color.error)return null;s.color=s.color.hex,a[2]&&(s.offset=a[2]+"%"),r[ce](s)}for(i=1,n=r[Q]-1;n>i;i++)if(!r[i].offset){for(e=ye(r[i-1].offset||0),a=0,s=i+1;n>s;s++)if(r[s].offset){a=r[s].offset;break}for(a||(a=100,s=n),a=ye(a),a=(a-e)/(s-i+1);s>i;i++)e+=a,r[i].offset=e+"%"}return r}),je=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(t.pathToRelative=Me,t.svg){e[D].svgns=" http://www.w3.org/2000/svg ",e[D].xlink=" http://www.w3.org/1999/xlink ",de=function(t){return+t+.5*(~~t===t)};var De=function(t,r){if(!r)return t=L.createElementNS(e[D].svgns,t),t.style.webkitTapHighlightColor="rgba(0,0,0,0)",t;for(var i in r)r[q](i)&&t[ge](i,X(r[i]))};t[ae]=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var qe=function(t,e){var r=De("path");return e.canvas&&e.canvas[F](r),e=new We(r,e),e.type="path",Ve(e,{fill:"none",stroke:"#000",path:t}),e},Le=function(e,r,i){var n="linear",s=.5,a=.5,o=e.style;if(r=X(r)[ke](je,function(t,e,r){return n="radial",e&&r&&(s=ye(e),a=ye(r),t=2*(a>.5)-1,le(s-.5,2)+le(a-.5,2)>.25&&(a=te.sqrt(.25-le(s-.5,2))*t+.5)&&.5!=a&&(a=a.toFixed(5)-1e-5*t)),Y}),r=r[I](/\s*\-\s*/),"linear"==n){var h=r.shift();if(h=-ye(h),isNaN(h))return null;h=[0,0,te.cos(h*te.PI/180),te.sin(h*te.PI/180)];var l=1/(ee(te.abs(h[2]),te.abs(h[3]))||1);h[2]*=l,h[3]*=l,h[2]<0&&(h[0]=-h[2],h[2]=0),h[3]<0&&(h[1]=-h[3],h[3]=0)}if(r=Re(r),!r)return null;for(l=e.getAttribute(oe),(l=l.match(/^url\(#(.*)\)$/))&&i.defs.removeChild(L.getElementById(l[1])),l=De(n+"Gradient"),l.id="r"+(t._id++)[ae](36),De(l,"radial"==n?{fx:s,fy:a}:{x1:h[0],y1:h[1],x2:h[2],y2:h[3]}),i.defs[F](l),i=0,h=r[Q];h>i;i++){var c=De("stop");De(c,{offset:r[i].offset?r[i].offset:i?"100%":"0%","stop-color":r[i].color||"#fff"}),l[F](c)}return De(e,{fill:"url(#"+l.id+")",opacity:1,"fill-opacity":1}),o.fill=Y,o.opacity=1,o.fillOpacity=1},Pe=function(e){var r=e.getBBox();De(e.pattern,{patternTransform:t.format("translate({0},{1})",r.x,r.y)})},Ve=function(e,r){function i(t,e){if(e=n[K.call(e)]){var i=t.attrs["stroke-width"]||"1";t={round:i,square:i,butt:0}[t.attrs["stroke-linecap"]||r["stroke-linecap"]]||0;for(var a=[],o=e[Q];o--;)a[o]=e[o]*i+(o%2?1:-1)*t;De(s,{"stroke-dasharray":a[J](",")})}}var n={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},s=e.node,a=e.attrs,o=e.rotate();r[q]("rotation")&&(o=r.rotation);var h=X(o)[I](R);h.length-1?(h[1]=+h[1],h[2]=+h[2]):h=null,ye(o)&&e.rotate(0,!0);for(var l in r)if(r[q](l)&&be[q](l)){var c=r[l];switch(a[l]=c,l){case"blur":e.blur(c);break;case"rotation":e.rotate(c,!0);break;case"href":case"title":case"target":var f=s.parentNode;if("a"!=K.call(f.tagName)){var u=De("a");f.insertBefore(u,s),u[F](s),f=u}f.setAttributeNS(e.paper.xlink,l,c);break;case"cursor":s.style.cursor=c;break;case"clip-rect":if(f=X(c)[I](R),4==f[Q]){e.clip&&e.clip.parentNode.parentNode.removeChild(e.clip.parentNode);var p=De("clipPath");u=De("rect"),p.id="r"+(t._id++)[ae](36),De(u,{x:f[0],y:f[1],width:f[2],height:f[3]}),p[F](u),e.paper.defs[F](p),De(s,{"clip-path":"url(#"+p.id+")"}),e.clip=u}c||((c=L.getElementById(s.getAttribute("clip-path")[ke](/(^url\(#|\)$)/g,Y)))&&c.parentNode.removeChild(c),De(s,{"clip-path":Y}),delete e.clip);break;case"path":"path"==e.type&&De(s,{d:c?a.path=Te(c):"M0,0"});break;case"width":if(s[ge](l,c),!a.fx)break;l="x",c=a.x;case"x":a.fx&&(c=-a.x-(a.width||0));case"rx":if("rx"==l&&"rect"==e.type)break;case"cx":h&&("x"==l||"cx"==l)&&(h[1]+=c-a[l]),s[ge](l,c),e.pattern&&Pe(e);break;case"height":if(s[ge](l,c),!a.fy)break;l="y",c=a.y;case"y":a.fy&&(c=-a.y-(a.height||0));case"ry":if("ry"==l&&"rect"==e.type)break;case"cy":h&&("y"==l||"cy"==l)&&(h[2]+=c-a[l]),s[ge](l,c),e.pattern&&Pe(e);break;case"r":"rect"==e.type?De(s,{rx:c,ry:c}):s[ge](l,c);break;case"src":"image"==e.type&&s.setAttributeNS(e.paper.xlink,"href",c);break;case"stroke-width":s.style.strokeWidth=c,s[ge](l,c),a["stroke-dasharray"]&&i(e,a["stroke-dasharray"]);break;case"stroke-dasharray":i(e,c);break;case"translation":c=X(c)[I](R),c[0]=+c[0]||0,c[1]=+c[1]||0,h&&(h[1]+=c[0],h[2]+=c[1]),T.call(e,c[0],c[1]);break;case"scale":c=X(c)[I](R),e.scale(+c[0]||1,+c[1]||+c[0]||1,isNaN(ye(c[2]))?null:+c[2],isNaN(ye(c[3]))?null:+c[3]);break;case oe:if(f=X(c).match(ue)){p=De("pattern");var d=De("image");p.id="r"+(t._id++)[ae](36),De(p,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),De(d,{x:0,y:0}),d.setAttributeNS(e.paper.xlink,"href",f[1]),p[F](d),c=L.createElement("img"),c.style.cssText="position:absolute;left:-9999em;top-9999em",c.onload=function(){De(p,{width:this.offsetWidth,height:this.offsetHeight}),De(d,{width:this.offsetWidth,height:this.offsetHeight}),L.body.removeChild(this),e.paper.safari()},L.body[F](c),c.src=f[1],e.paper.defs[F](p),s.style.fill="url(#"+p.id+")",De(s,{fill:"url(#"+p.id+")"}),e.pattern=p,e.pattern&&Pe(e);break}if(f=t.getRGB(c),f.error){if(({circle:1,ellipse:1}[q](e.type)||"r"!=X(c).charAt())&&Le(s,c,e.paper)){a.gradient=c,a.fill="none";break}}else delete r.gradient,delete a.gradient,!t.is(a.opacity,"undefined")&&t.is(r.opacity,"undefined")&&De(s,{opacity:a.opacity}),!t.is(a["fill-opacity"],"undefined")&&t.is(r["fill-opacity"],"undefined")&&De(s,{"fill-opacity":a["fill-opacity"]});f[q]("o")&&De(s,{"fill-opacity":f.o/100});case"stroke":f=t.getRGB(c),s[ge](l,f.hex),"stroke"==l&&f[q]("o")&&De(s,{"stroke-opacity":f.o/100});break;case"gradient":(({circle:1,ellipse:1})[q](e.type)||"r"!=X(c).charAt())&&Le(s,c,e.paper);break;case"opacity":case"fill-opacity":if(a.gradient){(f=L.getElementById(s.getAttribute(oe)[ke](/^url\(#|\)$/g,Y)))&&(f=f.getElementsByTagName("stop"),f[f[Q]-1][ge]("stop-opacity",c));break}default:"font-size"==l&&(c=ve(c,10)+"px"),f=l[ke](/(\-.)/g,function(t){return me.call(t.substring(1))}),s.style[f]=c,s[ge](l,c)}}He(e,r),h?e.rotate(h.join(O)):ye(o)&&e.rotate(o,!0)},Fe=1.2,He=function(t,e){if("text"==t.type&&(e[q]("text")||e[q]("font")||e[q]("font-size")||e[q]("x")||e[q]("y"))){var r=t.attrs,i=t.node,n=i.firstChild?ve(L.defaultView.getComputedStyle(i.firstChild,Y).getPropertyValue("font-size"),10):10;if(e[q]("text")){for(r.text=e.text;i.firstChild;)i.removeChild(i.firstChild);e=X(e.text)[I]("\n");for(var s=0,a=e[Q];a>s;s++)if(e[s]){var o=De("tspan");s&&De(o,{dy:n*Fe,x:r.x}),o[F](L.createTextNode(e[s])),i[F](o)}}else for(e=i.getElementsByTagName("tspan"),s=0,a=e[Q];a>s;s++)s&&De(e[s],{dy:n*Fe,x:r.x});De(i,{y:r.y}),t=t.getBBox(),(t=r.y-(t.y+t.height/2))&&isFinite(t)&&De(i,{y:r.y+t})}},We=function(e,r){this[0]=e,this.id=t._oid++,this.node=e,e.raphael=this,this.paper=r,this.attrs=this.attrs||{},this.transformations=[],this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1},!r.bottom&&(r.bottom=this),(this.prev=r.top)&&(r.top.next=this),r.top=this,this.next=null};We[D].rotate=function(e,r,i){if(this.removed)return this;if(null==e)return this._.rt.cx?[this._.rt.deg,this._.rt.cx,this._.rt.cy][J](O):this._.rt.deg;var n=this.getBBox();return e=X(e)[I](R),e[Q]-1&&(r=ye(e[1]),i=ye(e[2])),e=ye(e[0]),null!=r?this._.rt.deg=e:this._.rt.deg+=e,null==i&&(r=null),this._.rt.cx=r,this._.rt.cy=i,r=null==r?n.x+n.width/2:r,i=null==i?n.y+n.height/2:i,this._.rt.deg?(this.transformations[0]=t.format("rotate({0} {1} {2})",this._.rt.deg,r,i),this.clip&&De(this.clip,{transform:t.format("rotate({0} {1} {2})",-this._.rt.deg,r,i)})):(this.transformations[0]=Y,this.clip&&De(this.clip,{transform:Y})),De(this.node,{transform:this.transformations[J](O)}),this},We[D].hide=function(){return!this.removed&&(this.node.style.display="none"),this},We[D].show=function(){return!this.removed&&(this.node.style.display=""),this},We[D].remove=function(){if(!this.removed){d(this,this.paper),this.node.parentNode.removeChild(this.node);for(var t in this)delete this[t];this.removed=!0}},We[D].getBBox=function(){if(this.removed)return this;if("path"==this.type)return Ge(this.attrs.path);if("none"==this.node.style.display){this.show();var t=!0}var e={};try{e=this.node.getBBox()}catch(r){}finally{e=e||{}}if("text"==this.type){e={x:e.x,y:1/0,width:0,height:0};for(var i=0,n=this.node.getNumberOfChars();n>i;i++){var s=this.node.getExtentOfChar(i);s.y<e.y&&(e.y=s.y),s.y+s.height-e.y>e.height&&(e.height=s.y+s.height-e.y),s.x+s.width-e.x>e.width&&(e.width=s.x+s.width-e.x)}}return t&&this.hide(),e},We[D].attr=function(e,r){if(this.removed)return this;if(null==e){e={};for(var i in this.attrs)this.attrs[q](i)&&(e[i]=this.attrs[i]);return this._.rt.deg&&(e.rotation=this.rotate()),(1!=this._.sx||1!=this._.sy)&&(e.scale=this.scale()),e.gradient&&"none"==e.fill&&(e.fill=e.gradient)&&delete e.gradient,e}if(null==r&&t.is(e,ne))return"translation"==e?T.call(this):"rotation"==e?this.rotate():"scale"==e?this.scale():e==oe&&"none"==this.attrs.fill&&this.attrs.gradient?this.attrs.gradient:this.attrs[e];if(null==r&&t.is(e,se)){r={},i=0;for(var n=e.length;n>i;i++)r[e[i]]=this.attr(e[i]);return r}return null!=r?(i={},i[e]=r,Ve(this,i)):null!=e&&t.is(e,"object")&&Ve(this,e),this},We[D].toFront=function(){if(this.removed)return this;this.node.parentNode[F](this.node);var t=this.paper;return t.top!=this&&g(this,t),this},We[D].toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),y(this,this.paper)),this)},We[D].insertAfter=function(t){if(this.removed)return this;var e=t.node||t[t.length].node;return e.nextSibling?e.parentNode.insertBefore(this.node,e.nextSibling):e.parentNode[F](this.node),v(this,t,this.paper),this},We[D].insertBefore=function(t){if(this.removed)return this;var e=t.node||t[0].node;return e.parentNode.insertBefore(this.node,e),x(this,t,this.paper),this},We[D].blur=function(e){var r=this;if(0!==+e){var i=De("filter"),n=De("feGaussianBlur");r.attrs.blur=e,i.id="r"+(t._id++)[ae](36),De(n,{stdDeviation:+e||1.5}),i.appendChild(n),r.paper.defs.appendChild(i),r._blur=i,De(r.node,{filter:"url(#"+i.id+")"})}else r._blur&&(r._blur.parentNode.removeChild(r._blur),delete r._blur,delete r.attrs.blur),r.node.removeAttribute("filter")};var $e=function(t,e,r,i){var n=De("circle");return t.canvas&&t.canvas[F](n),t=new We(n,t),t.attrs={cx:e,cy:r,r:i,fill:"none",stroke:"#000"},t.type="circle",De(n,t.attrs),t},Ye=function(t,e,r,i,n,s){var a=De("rect");return t.canvas&&t.canvas[F](a),t=new We(a,t),t.attrs={x:e,y:r,width:i,height:n,r:s||0,rx:s||0,ry:s||0,fill:"none",stroke:"#000"},t.type="rect",De(a,t.attrs),t},Oe=function(t,e,r,i,n){var s=De("ellipse");return t.canvas&&t.canvas[F](s),t=new We(s,t),t.attrs={cx:e,cy:r,rx:i,ry:n,fill:"none",stroke:"#000"},t.type="ellipse",De(s,t.attrs),t},Xe=function(t,e,r,i,n,s){var a=De("image");return De(a,{x:r,y:i,width:n,height:s,preserveAspectRatio:"none"}),a.setAttributeNS(t.xlink,"href",e),t.canvas&&t.canvas[F](a),t=new We(a,t),t.attrs={x:r,y:i,width:n,height:s,src:e},t.type="image",t},Ie=function(t,e,r,i){var n=De("text");return De(n,{x:e,y:r,"text-anchor":"middle"}),t.canvas&&t.canvas[F](n),t=new We(n,t),t.attrs={x:e,y:r,"text-anchor":"middle",text:i,font:be.font,stroke:"none",fill:"#000"},t.type="text",Ve(t,t.attrs),t},Ue=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas[ge]("width",this.width),this.canvas[ge]("height",this.height),this},Ze=function(){var r=u[H](0,arguments),i=r&&r.container,n=r.x,s=r.y,a=r.width;if(r=r.height,!i)throw new Error("SVG container not found.");var o=De("svg");return n=n||0,s=s||0,a=a||512,r=r||342,De(o,{xmlns:" http://www.w3.org/2000/svg ",version:1.1,width:a,height:r}),1==i?(o.style.cssText="position:absolute;left:"+n+"px;top:"+s+"px",L.body[F](o)):i.firstChild?i.insertBefore(o,i.firstChild):i[F](o),i=new e,i.width=a,i.height=r,i.canvas=o,p.call(i,i,t.fn),i.clear(),i};e[D].clear=function(){for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,(this.desc=De("desc"))[F](L.createTextNode("Created with Raphaël")),t[F](this.desc),t[F](this.defs=De("defs"))},e[D].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=m(t)}}if(t.vml){var Je={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},Qe=/([clmz]),?([^clmz]*)/gi,Ke=/-?[^,\s-]+/g,tr=1e3+O+1e3,er=10,rr={path:1,rect:1},ir=function(t){var e=/[ahqstv]/gi,r=Te; if(X(t).match(e)&&(r=ze),e=/[clmz]/g,r==Te&&!X(t).match(e))return t=X(t)[ke](Qe,function(t,e,r){var i=[],n="m"==K.call(e),s=Je[e];return r[ke](Ke,function(t){n&&2==i[Q]&&(s+=i+Je["m"==e?"l":"L"],i=[]),i[ce](de(t*er))}),s+i});e=r(t);var i;t=[];for(var n=0,s=e[Q];s>n;n++){r=e[n],i=K.call(e[n][0]),"z"==i&&(i="x");for(var a=1,o=r[Q];o>a;a++)i+=de(r[a]*er)+(a!=o-1?",":Y);t[ce](i)}return t[J](O)};t[ae]=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version},qe=function(t,e){var r=sr("group");r.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px",r.coordsize=e.coordsize,r.coordorigin=e.coordorigin;var i=sr("shape"),n=i.style;return n.width=e.width+"px",n.height=e.height+"px",i.coordsize=tr,i.coordorigin=e.coordorigin,r[F](i),i=new We(i,r,e),n={fill:"none",stroke:"#000"},t&&(n.path=t),i.isAbsolute=!0,i.type="path",i.path=[],i.Path=Y,Ve(i,n),e.canvas[F](r),i},Ve=function(e,r){e.attrs=e.attrs||{};var i,n=e.node,s=e.attrs,a=n.style;i=(r.x!=s.x||r.y!=s.y||r.width!=s.width||r.height!=s.height||r.r!=s.r)&&"rect"==e.type;var o=e;for(var h in r)r[q](h)&&(s[h]=r[h]);if(i&&(s.path=b(s.x,s.y,s.width,s.height,s.r),e.X=s.x,e.Y=s.y,e.W=s.width,e.H=s.height),r.href&&(n.href=r.href),r.title&&(n.title=r.title),r.target&&(n.target=r.target),r.cursor&&(a.cursor=r.cursor),"blur"in r&&e.blur(r.blur),(r.path&&"path"==e.type||i)&&(n.path=ir(s.path)),null!=r.rotation&&e.rotate(r.rotation,!0),r.translation&&(i=X(r.translation)[I](R),T.call(e,i[0],i[1]),null!=e._.rt.cx&&(e._.rt.cx+=+i[0],e._.rt.cy+=+i[1],e.setBox(e.attrs,i[0],i[1]))),r.scale&&(i=X(r.scale)[I](R),e.scale(+i[0]||1,+i[1]||+i[0]||1,+i[2]||null,+i[3]||null)),"clip-rect"in r){if(i=X(r["clip-rect"])[I](R),4==i[Q]){i[2]=+i[2]+ +i[0],i[3]=+i[3]+ +i[1],h=n.clipRect||L.createElement("div");var l=h.style,c=n.parentNode;l.clip=t.format("rect({1}px {2}px {3}px {0}px)",i),n.clipRect||(l.position="absolute",l.top=0,l.left=0,l.width=e.paper.width+"px",l.height=e.paper.height+"px",c.parentNode.insertBefore(h,c),h[F](c),n.clipRect=h)}r["clip-rect"]||n.clipRect&&(n.clipRect.style.clip=Y)}if("image"==e.type&&r.src&&(n.src=r.src),"image"==e.type&&r.opacity&&(n.filterOpacity=xe+".Alpha(opacity="+100*r.opacity+")",a.filter=(n.filterMatrix||Y)+(n.filterOpacity||Y)),r.font&&(a.font=r.font),r["font-family"]&&(a.fontFamily='"'+r["font-family"][I](",")[0][ke](/^['"]+|['"]+$/g,Y)+'"'),r["font-size"]&&(a.fontSize=r["font-size"]),r["font-weight"]&&(a.fontWeight=r["font-weight"]),r["font-style"]&&(a.fontStyle=r["font-style"]),(null!=r.opacity||null!=r["stroke-width"]||null!=r.fill||null!=r.stroke||null!=r["stroke-width"]||null!=r["stroke-opacity"]||null!=r["fill-opacity"]||null!=r["stroke-dasharray"]||null!=r["stroke-miterlimit"]||null!=r["stroke-linejoin"]||null!=r["stroke-linecap"])&&(n=e.shape||n,a=n.getElementsByTagName(oe)&&n.getElementsByTagName(oe)[0],i=!1,!a&&(i=a=sr(oe)),("fill-opacity"in r||"opacity"in r)&&(e=((+s["fill-opacity"]+1||2)-1)*((+s.opacity+1||2)-1)*((+t.getRGB(r.fill).o+1||2)-1),0>e&&(e=0),e>1&&(e=1),a.opacity=e),r.fill&&(a.on=!0),(null==a.on||"none"==r.fill)&&(a.on=!1),a.on&&r.fill&&((e=r.fill.match(ue))?(a.src=e[1],a.type="tile"):(a.color=t.getRGB(r.fill).hex,a.src=Y,a.type="solid",t.getRGB(r.fill).error&&(o.type in{circle:1,ellipse:1}||"r"!=X(r.fill).charAt())&&Le(o,r.fill)&&(s.fill="none",s.gradient=r.fill))),i&&n[F](a),a=n.getElementsByTagName("stroke")&&n.getElementsByTagName("stroke")[0],i=!1,!a&&(i=a=sr("stroke")),(r.stroke&&"none"!=r.stroke||r["stroke-width"]||null!=r["stroke-opacity"]||r["stroke-dasharray"]||r["stroke-miterlimit"]||r["stroke-linejoin"]||r["stroke-linecap"])&&(a.on=!0),("none"==r.stroke||null==a.on||0==r.stroke||0==r["stroke-width"])&&(a.on=!1),e=t.getRGB(r.stroke),a.on&&r.stroke&&(a.color=e.hex),e=((+s["stroke-opacity"]+1||2)-1)*((+s.opacity+1||2)-1)*((+e.o+1||2)-1),h=.75*(ye(r["stroke-width"])||1),0>e&&(e=0),e>1&&(e=1),null==r["stroke-width"]&&(h=s["stroke-width"]),r["stroke-width"]&&(a.weight=h),h&&1>h&&(e*=h)&&(a.weight=1),a.opacity=e,r["stroke-linejoin"]&&(a.joinstyle=r["stroke-linejoin"]||"miter"),a.miterlimit=r["stroke-miterlimit"]||8,r["stroke-linecap"]&&(a.endcap="butt"==r["stroke-linecap"]?"flat":"square"==r["stroke-linecap"]?"square":"round"),r["stroke-dasharray"]&&(e={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},a.dashstyle=e[q](r["stroke-dasharray"])?e[r["stroke-dasharray"]]:Y),i&&n[F](a)),"text"==o.type)switch(a=o.paper.span.style,s.font&&(a.font=s.font),s["font-family"]&&(a.fontFamily=s["font-family"]),s["font-size"]&&(a.fontSize=s["font-size"]),s["font-weight"]&&(a.fontWeight=s["font-weight"]),s["font-style"]&&(a.fontStyle=s["font-style"]),o.node.string&&(o.paper.span.innerHTML=X(o.node.string)[ke](/</g,"&#60;")[ke](/&/g,"&#38;")[ke](/\n/g,"<br>")),o.W=s.w=o.paper.span.offsetWidth,o.H=s.h=o.paper.span.offsetHeight,o.X=s.x,o.Y=s.y+de(o.H/2),s["text-anchor"]){case"start":o.node.style["v-text-align"]="left",o.bbx=de(o.W/2);break;case"end":o.node.style["v-text-align"]="right",o.bbx=-de(o.W/2);break;default:o.node.style["v-text-align"]="center"}},Le=function(t,e){t.attrs=t.attrs||{};var r="linear",i=".5 .5";if(t.attrs.gradient=e,e=X(e)[ke](je,function(t,e,n){return r="radial",e&&n&&(e=ye(e),n=ye(n),le(e-.5,2)+le(n-.5,2)>.25&&(n=te.sqrt(.25-le(e-.5,2))*(2*(n>.5)-1)+.5),i=e+O+n),Y}),e=e[I](/\s*\-\s*/),"linear"==r){var n=e.shift();if(n=-ye(n),isNaN(n))return null}var s=Re(e);if(!s)return null;if(t=t.shape||t.node,e=t.getElementsByTagName(oe)[0]||sr(oe),!e.parentNode&&t.appendChild(e),s[Q]){e.on=!0,e.method="none",e.color=s[0].color,e.color2=s[s[Q]-1].color,t=[];for(var a=0,o=s[Q];o>a;a++)s[a].offset&&t[ce](s[a].offset+O+s[a].color);e.colors&&(e.colors.value=t[Q]?t[J]():"0% "+e.color),"radial"==r?(e.type="gradientradial",e.focus="100%",e.focussize=i,e.focusposition=i):(e.type="gradient",e.angle=(270-n)%360)}return 1},We=function(e,r,i){this[0]=e,this.id=t._oid++,this.node=e,e.raphael=this,this.Y=this.X=0,this.attrs={},this.Group=r,this.paper=i,this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1},!i.bottom&&(i.bottom=this),(this.prev=i.top)&&(i.top.next=this),i.top=this,this.next=null},We[D].rotate=function(t,e,r){return this.removed?this:null==t?this._.rt.cx?[this._.rt.deg,this._.rt.cx,this._.rt.cy][J](O):this._.rt.deg:(t=X(t)[I](R),t[Q]-1&&(e=ye(t[1]),r=ye(t[2])),t=ye(t[0]),null!=e?this._.rt.deg=t:this._.rt.deg+=t,null==r&&(e=null),this._.rt.cx=e,this._.rt.cy=r,this.setBox(this.attrs,e,r),this.Group.style.rotation=this._.rt.deg,this)},We[D].setBox=function(t,e,r){if(this.removed)return this;var i=this.Group.style,n=this.shape&&this.shape.style||this.node.style;t=t||{};for(var s in t)t[q](s)&&(this.attrs[s]=t[s]);e=e||this._.rt.cx,r=r||this._.rt.cy;var a,o=this.attrs;switch(this.type){case"circle":t=o.cx-o.r,s=o.cy-o.r,a=o=2*o.r;break;case"ellipse":t=o.cx-o.rx,s=o.cy-o.ry,a=2*o.rx,o=2*o.ry;break;case"image":t=+o.x,s=+o.y,a=o.width||0,o=o.height||0;break;case"text":this.textpath.v=["m",de(o.x),", ",de(o.y-2),"l",de(o.x)+1,", ",de(o.y-2)][J](Y),t=o.x-de(this.W/2),s=o.y-this.H/2,a=this.W,o=this.H;break;case"rect":case"path":this.attrs.path?(o=Ge(this.attrs.path),t=o.x,s=o.y,a=o.width,o=o.height):(s=t=0,a=this.paper.width,o=this.paper.height);break;default:s=t=0,a=this.paper.width,o=this.paper.height}e=null==e?t+a/2:e,r=null==r?s+o/2:r,e-=this.paper.width/2,r-=this.paper.height/2;var h;i.left!=(h=e+"px")&&(i.left=h),i.top!=(h=r+"px")&&(i.top=h),this.X=rr[q](this.type)?-e:t,this.Y=rr[q](this.type)?-r:s,this.W=a,this.H=o,rr[q](this.type)?(n.left!=(h=-e*er+"px")&&(n.left=h),n.top!=(h=-r*er+"px")&&(n.top=h)):"text"==this.type?(n.left!=(h=-e+"px")&&(n.left=h),n.top!=(h=-r+"px")&&(n.top=h)):(i.width!=(h=this.paper.width+"px")&&(i.width=h),i.height!=(h=this.paper.height+"px")&&(i.height=h),n.left!=(h=t-e+"px")&&(n.left=h),n.top!=(h=s-r+"px")&&(n.top=h),n.width!=(h=a+"px")&&(n.width=h),n.height!=(h=o+"px")&&(n.height=h))},We[D].hide=function(){return!this.removed&&(this.Group.style.display="none"),this},We[D].show=function(){return!this.removed&&(this.Group.style.display="block"),this},We[D].getBBox=function(){return this.removed?this:rr[q](this.type)?Ge(this.attrs.path):{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}},We[D].remove=function(){if(!this.removed){d(this,this.paper),this.node.parentNode.removeChild(this.node),this.Group.parentNode.removeChild(this.Group),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var t in this)delete this[t];this.removed=!0}},We[D].attr=function(e,r){if(this.removed)return this;if(null==e){e={};for(var i in this.attrs)this.attrs[q](i)&&(e[i]=this.attrs[i]);return this._.rt.deg&&(e.rotation=this.rotate()),(1!=this._.sx||1!=this._.sy)&&(e.scale=this.scale()),e.gradient&&"none"==e.fill&&(e.fill=e.gradient)&&delete e.gradient,e}if(null==r&&t.is(e,ne))return"translation"==e?T.call(this):"rotation"==e?this.rotate():"scale"==e?this.scale():e==oe&&"none"==this.attrs.fill&&this.attrs.gradient?this.attrs.gradient:this.attrs[e];if(this.attrs&&null==r&&t.is(e,se)){var n={};for(i=0,r=e[Q];r>i;i++)n[e[i]]=this.attr(e[i]);return n}return null!=r&&(n={},n[e]=r),null==r&&t.is(e,"object")&&(n=e),n&&(n.text&&"text"==this.type&&(this.node.string=n.text),Ve(this,n),n.gradient&&({circle:1,ellipse:1}[q](this.type)||"r"!=X(n.gradient).charAt())&&Le(this,n.gradient),(!rr[q](this.type)||this._.rt.deg)&&this.setBox(this.attrs)),this},We[D].toFront=function(){return!this.removed&&this.Group.parentNode[F](this.Group),this.paper.top!=this&&g(this,this.paper),this},We[D].toBack=function(){return this.removed?this:(this.Group.parentNode.firstChild!=this.Group&&(this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild),y(this,this.paper)),this)},We[D].insertAfter=function(t){return this.removed?this:(t.constructor==z&&(t=t[t.length]),t.Group.nextSibling?t.Group.parentNode.insertBefore(this.Group,t.Group.nextSibling):t.Group.parentNode[F](this.Group),v(this,t,this.paper),this)},We[D].insertBefore=function(t){return this.removed?this:(t.constructor==z&&(t=t[0]),t.Group.parentNode.insertBefore(this.Group,t.Group),x(this,t,this.paper),this)};var nr=/ progid:\S+Blur\([^\)]+\)/g;We[D].blur=function(e){var r=this.node.runtimeStyle,i=r.filter;i=i.replace(nr,Y),0!==+e?(this.attrs.blur=e,r.filter=i+O+xe+".Blur(pixelradius="+(+e||1.5)+")",r.margin=t.format("-{0}px 0 0 -{0}px",de(+e||1.5))):(r.filter=i,r.margin=0,delete this.attrs.blur)},$e=function(t,e,r,i){var n=sr("group"),s=sr("oval");return n.style.cssText="position:absolute;left:0;top:0;width:"+t.width+"px;height:"+t.height+"px",n.coordsize=tr,n.coordorigin=t.coordorigin,n[F](s),s=new We(s,n,t),s.type="circle",Ve(s,{stroke:"#000",fill:"none"}),s.attrs.cx=e,s.attrs.cy=r,s.attrs.r=i,s.setBox({x:e-i,y:r-i,width:2*i,height:2*i}),t.canvas[F](n),s},Ye=function(t,e,r,i,n,s){var a=b(e,r,i,n,s);t=t.path(a);var o=t.attrs;return t.X=o.x=e,t.Y=o.y=r,t.W=o.width=i,t.H=o.height=n,o.r=s,o.path=a,t.type="rect",t},Oe=function(t,e,r,i,n){var s=sr("group"),a=sr("oval");return s.style.cssText="position:absolute;left:0;top:0;width:"+t.width+"px;height:"+t.height+"px",s.coordsize=tr,s.coordorigin=t.coordorigin,s[F](a),a=new We(a,s,t),a.type="ellipse",Ve(a,{stroke:"#000"}),a.attrs.cx=e,a.attrs.cy=r,a.attrs.rx=i,a.attrs.ry=n,a.setBox({x:e-i,y:r-n,width:2*i,height:2*n}),t.canvas[F](s),a},Xe=function(t,e,r,i,n,s){var a=sr("group"),o=sr("image");return a.style.cssText="position:absolute;left:0;top:0;width:"+t.width+"px;height:"+t.height+"px",a.coordsize=tr,a.coordorigin=t.coordorigin,o.src=e,a[F](o),o=new We(o,a,t),o.type="image",o.attrs.src=e,o.attrs.x=r,o.attrs.y=i,o.attrs.w=n,o.attrs.h=s,o.setBox({x:r,y:i,width:n,height:s}),t.canvas[F](a),o},Ie=function(e,r,i,n){var s=sr("group"),a=sr("shape"),o=a.style,h=sr("path"),l=sr("textpath");return s.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px",s.coordsize=tr,s.coordorigin=e.coordorigin,h.v=t.format("m{0},{1}l{2},{1}",de(10*r),de(10*i),de(10*r)+1),h.textpathok=!0,o.width=e.width,o.height=e.height,l.string=X(n),l.on=!0,a[F](l),a[F](h),s[F](a),o=new We(l,s,e),o.shape=a,o.textpath=h,o.type="text",o.attrs.text=n,o.attrs.x=r,o.attrs.y=i,o.attrs.w=1,o.attrs.h=1,Ve(o,{font:be.font,stroke:"none",fill:"#000"}),o.setBox(),e.canvas[F](s),o},Ue=function(t,e){var r=this.canvas.style;return t==+t&&(t+="px"),e==+e&&(e+="px"),r.width=t,r.height=e,r.clip="rect(0 "+t+" "+e+" 0)",this};var sr;L.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!L.namespaces.rvml&&L.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),sr=function(t){return L.createElement("<rvml:"+t+' class="rvml">')}}catch(ar){sr=function(t){return L.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}Ze=function(){var r=u[H](0,arguments),i=r.container,n=r.height,s=r.width,a=r.x;if(r=r.y,!i)throw new Error("VML container not found.");var o=new e,h=o.canvas=L.createElement("div"),l=h.style;return a=a||0,r=r||0,s=s||512,n=n||342,s==+s&&(s+="px"),n==+n&&(n+="px"),o.width=1e3,o.height=1e3,o.coordsize=1e3*er+O+1e3*er,o.coordorigin="0 0",o.span=L.createElement("span"),o.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",h[F](o.span),l.cssText=t.format("width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",s,n),1==i?(L.body[F](h),l.left=a+"px",l.top=r+"px",l.position="absolute"):i.firstChild?i.insertBefore(h,i.firstChild):i[F](h),p.call(o,o,t.fn),o},e[D].clear=function(){this.canvas.innerHTML=Y,this.span=L.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas[F](this.span),this.bottom=this.top=null},e[D].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=m(t);return!0}}e[D].safari="Apple Computer, Inc."==navigator.vendor&&(navigator.userAgent.match(/Version\/(.*?)\s/)[1]<4||"iP"==P.navigator.platform.slice(0,2))?function(){var t=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});P.setTimeout(function(){t.remove()})}:function(){};var or=function(){return L.addEventListener?function(t,e,r,i){function n(n){if($&&Z[q](e))for(var s=0,a=n.targetTouches&&n.targetTouches.length;a>s;s++)if(n.targetTouches[s].target==t){a=n,n=n.targetTouches[s],n.originalEvent=a,n.preventDefault=k,n.stopPropagation=B;break}return r.call(i,n)}var s=$&&Z[e]?Z[e]:e;return t.addEventListener(s,n,!1),function(){return t.removeEventListener(s,n,!1),!0}}:L.attachEvent?function(t,e,r,i){function n(t){return t=t||P.event,t.preventDefault=t.preventDefault||w,t.stopPropagation=t.stopPropagation||_,r.call(i,t)}function s(){return t.detachEvent("on"+e,n),!0}return t.attachEvent("on"+e,n),s}:void 0}(),hr=[];for(_e=U[Q];_e--;)(function(e){t[e]=We[D][e]=function(r){return t.is(r,"function")&&(this.events=this.events||[],this.events.push({name:e,f:r,unbind:or(this.shape||this.node||L,e,r,this)})),this},t["un"+e]=We[D]["un"+e]=function(t){for(var r=this.events,i=r[Q];i--;)if(r[i].name==e&&r[i].f==t)return r[i].unbind(),r.splice(i,1),!r.length&&delete this.events,this;return this}})(U[_e]);We[D].hover=function(t,e){return this.mouseover(t).mouseout(e)},We[D].unhover=function(t,e){return this.unmouseover(t).unmouseout(e)},We[D].drag=function(e,r,i){return this._drag={},this.mousedown(function(n){(n.originalEvent||n).preventDefault(),this._drag.x=n.clientX,this._drag.y=n.clientY,this._drag.id=n.identifier,r&&r.call(this,n.clientX,n.clientY),!hr.length&&t.mousemove(C).mouseup(N),hr.push({el:this,move:e,end:i})}),this},We[D].undrag=function(e,r,i){for(r=hr.length;r--;)hr[r].el==this&&hr[r].move==e&&hr[r].end==i&&hr.splice(r,1),!hr.length&&t.unmousemove(C).unmouseup(N)},e[D].circle=function(t,e,r){return $e(this,t||0,e||0,r||0)},e[D].rect=function(t,e,r,i,n){return Ye(this,t||0,e||0,r||0,i||0,n||0)},e[D].ellipse=function(t,e,r,i){return Oe(this,t||0,e||0,r||0,i||0)},e[D].path=function(e){return e&&!t.is(e,ne)&&!t.is(e[0],se)&&(e+=Y),qe(t.format[H](t,arguments),this)},e[D].image=function(t,e,r,i,n){return Xe(this,t||"about:blank",e||0,r||0,i||0,n||0)},e[D].text=function(t,e,r){return Ie(this,t||0,e||0,r||Y)},e[D].set=function(t){return arguments[Q]>1&&(t=Array[D].splice.call(arguments,0,arguments[Q])),new z(t)},e[D].setSize=Ue,e[D].top=e[D].bottom=null,e[D].raphael=t,We[D].resetScale=function(){return this.removed?this:(this._.sx=1,this._.sy=1,void(this.attrs.scale="1 1"))},We[D].scale=function(t,e,r,i){if(this.removed)return this;if(null==t&&null==e)return{x:this._.sx,y:this._.sy,toString:S};e=e||t,!+e&&(e=t);var n,s,a=this.attrs;if(0!=t){var o=this.getBBox(),h=o.x+o.width/2,l=o.y+o.height/2;n=t/this._.sx,s=e/this._.sy,r=+r||0==r?r:h,i=+i||0==i?i:l,o=~~(t/te.abs(t));var c=~~(e/te.abs(e)),f=this.node.style,u=r+(h-r)*n;switch(l=i+(l-i)*s,this.type){case"rect":case"image":var p=a.width*o*n,d=a.height*c*s;this.attr({height:d,r:a.r*re(o*n,c*s),width:p,x:u-p/2,y:l-d/2});break;case"circle":case"ellipse":this.attr({rx:a.rx*o*n,ry:a.ry*c*s,r:a.r*re(o*n,c*s),cx:u,cy:l});break;case"text":this.attr({x:u,y:l});break;case"path":h=Me(a.path);for(var g=!0,y=0,v=h[Q];v>y;y++){var x=h[y],m=me.call(x[0]);if("M"!=m||!g)if(g=!1,"A"==m)x[h[y][Q]-2]*=n,x[h[y][Q]-1]*=s,x[1]*=o*n,x[2]*=c*s,x[5]=+!(o+c?!+x[5]:+x[5]);else if("H"==m){m=1;for(var b=x[Q];b>m;m++)x[m]*=n}else if("V"==m)for(m=1,b=x[Q];b>m;m++)x[m]*=s;else for(m=1,b=x[Q];b>m;m++)x[m]*=m%2?n:s}s=Ge(h),n=u-s.x-s.width/2,s=l-s.y-s.height/2,h[0][1]+=n,h[0][2]+=s,this.attr({path:h})}this.type in{text:1,image:1}&&(1!=o||1!=c)?this.transformations?(this.transformations[2]="scale("[W](o,",",c,")"),this.node[ge]("transform",this.transformations[J](O)),n=-1==o?-a.x-(p||0):a.x,s=-1==c?-a.y-(d||0):a.y,this.attr({x:n,y:s}),a.fx=o-1,a.fy=c-1):(this.node.filterMatrix=xe+".Matrix(M11="[W](o,", M12=0, M21=0, M22=",c,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')"),f.filter=(this.node.filterMatrix||Y)+(this.node.filterOpacity||Y)):this.transformations?(this.transformations[2]=Y,this.node[ge]("transform",this.transformations[J](O)),a.fx=0,a.fy=0):(this.node.filterMatrix=Y,f.filter=(this.node.filterMatrix||Y)+(this.node.filterOpacity||Y)),a.scale=[t,e,r,i][J](O),this._.sx=t,this._.sy=e}return this},We[D].clone=function(){if(this.removed)return null;var t=this.attr();return delete t.scale,delete t.translation,this.paper[this.type]().attr(t)};var lr=a(function(t,e,r,i,n,s,a,o,h){for(var l,c=0,u=0;1.01>u;u+=.01){var p=f(t,e,r,i,n,s,a,o,u);if(u&&(c+=le(le(l.x-p.x,2)+le(l.y-p.y,2),.5)),c>=h)return p;l=p}}),cr=a(function(t,e,r,i,n,s,a,o){for(var h={x:0,y:0},l=0,c=0;1.01>c;c+=.01){var u=f(t,e,r,i,n,s,a,o,c);c&&(l+=le(le(h.x-u.x,2)+le(h.y-u.y,2),.5)),h=u}return l}),fr=A(1),ur=A(),pr=A(0,1);We[D].getTotalLength=function(){return"path"==this.type?this.node.getTotalLength?this.node.getTotalLength():fr(this.attrs.path):void 0},We[D].getPointAtLength=function(t){return"path"==this.type?this.node.getPointAtLength?this.node.getPointAtLength(t):ur(this.attrs.path,t):void 0},We[D].getSubpath=function(t,e){return"path"==this.type?te.abs(this.getTotalLength()-e)<1e-6?pr(this.attrs.path,t).end:(e=pr(this.attrs.path,e,1),t?pr(e,t).end:e):void 0},t.easing_formulas={linear:function(t){return t},"<":function(t){return le(t,3)},">":function(t){return le(t-1,3)+1},"<>":function(t){return t*=2,1>t?le(t,3)/2:(t-=2,(le(t,3)+2)/2)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){if(0==t||1==t)return t;var e=.3,r=e/4;return le(2,-10*t)*te.sin(2*(t-r)*te.PI/e)+1},bounce:function(t){var e=7.5625,r=2.75;return 1/r>t?t=e*t*t:2/r>t?(t-=1.5/r,t=e*t*t+.75):2.5/r>t?(t-=2.25/r,t=e*t*t+.9375):(t-=2.625/r,t=e*t*t+.984375),t}};var dr={length:0};We[D].animateWith=function(t,e,r,i,n){return dr[t.id]&&(e.start=dr[t.id].start),this.animate(e,r,i,n)},We[D].animateAlong=E(),We[D].animateAlongBack=E(1),We[D].onAnimation=function(t){return this._run=t||0,this},We[D].animate=function(e,r,i,n){(t.is(i,"function")||!i)&&(n=i||null);var s={},a={},o={};for(var h in e)if(e[q](h)&&we[q](h))switch(s[h]=this.attr(h),null==s[h]&&(s[h]=be[h]),a[h]=e[h],we[h]){case"along":var l=fr(e[h]),c=ur(e[h],l*!!e.back),f=this.getBBox();o[h]=l/r,o.tx=f.x,o.ty=f.y,o.sx=c.x,o.sy=c.y,a.rot=e.rot,a.back=e.back,a.len=l,e.rot&&(o.r=ye(this.rotate())||0);break;case ie:o[h]=(a[h]-s[h])/r;break;case"colour":s[h]=t.getRGB(s[h]),l=t.getRGB(a[h]),o[h]={r:(l.r-s[h].r)/r,g:(l.g-s[h].g)/r,b:(l.b-s[h].b)/r};break;case"path":for(l=ze(s[h],a[h]),s[h]=l[0],c=l[1],o[h]=[],l=0,f=s[h][Q];f>l;l++){o[h][l]=[0];for(var u=1,p=s[h][l][Q];p>u;u++)o[h][l][u]=(c[l][u]-s[h][l][u])/r}break;case"csv":switch(c=X(e[h])[I](R),l=X(s[h])[I](R),h){case"translation":s[h]=[0,0],o[h]=[c[0]/r,c[1]/r];break;case"rotation":s[h]=l[1]==c[1]&&l[2]==c[2]?l:[0,c[1],c[2]],o[h]=[(c[0]-s[h][0])/r,0,0];break;case"scale":e[h]=c,s[h]=X(s[h])[I](R),o[h]=[(c[0]-s[h][0])/r,(c[1]-s[h][1])/r,0,0];break;case"clip-rect":for(s[h]=X(s[h])[I](R),o[h]=[],l=4;l--;)o[h][l]=(c[l]-s[h][l])/r}a[h]=c}return this.stop(),this.in_animation=1,dr[this.id]={start:e.start||+new Date,ms:r,easing:i,from:s,diff:o,to:a,el:this,callback:n,t:{x:0,y:0}},1==++dr[Q]&&G(),this},We[D].stop=function(){return dr[this.id]&&dr[Q]--,delete dr[this.id],this},We[D].translate=function(t,e){return this.attr({translation:t+" "+e})},We[D][ae]=function(){return"Raphaël’s object"},t.ae=dr,z[D][ce]=function(){for(var t,e,r=0,i=arguments[Q];i>r;r++)!(t=arguments[r])||t.constructor!=We&&t.constructor!=z||(e=this.items[Q],this[e]=this.items[e]=t,this[Q]++);return this},z[D].pop=function(){return delete this[this[Q]--],this.items.pop()};for(var gr in We[D])We[D][q](gr)&&(z[D][gr]=function(t){return function(){for(var e=0,r=this.items[Q];r>e;e++)this.items[e][t][H](this.items[e],arguments);return this}}(gr));z[D].attr=function(e,r){if(e&&t.is(e,se)&&t.is(e[0],"object")){r=0;for(var i=e[Q];i>r;r++)this.items[r].attr(e[r])}else{i=0;for(var n=this.items[Q];n>i;i++)this.items[i].attr(e,r)}return this},z[D].animate=function(e,r,i,n){(t.is(i,"function")||!i)&&(n=i||null);var s,a,o=this.items[Q],h=o,l=this;for(n&&(a=function(){!--o&&n.call(l)}),i=t.is(i,ne)?i:a,s=this.items[--h].animate(e,r,i,a);h--;)this.items[h].animateWith(s,e,r,i,a);return this},z[D].insertAfter=function(t){for(var e=this.items[Q];e--;)this.items[e].insertAfter(t);return this},z[D].getBBox=function(){for(var t=[],e=[],r=[],i=[],n=this.items[Q];n--;){var s=this.items[n].getBBox();t[ce](s.x),e[ce](s.y),r[ce](s.x+s.width),i[ce](s.y+s.height)}return t=re[H](0,t),e=re[H](0,e),{x:t,y:e,width:ee[H](0,r)-t,height:ee[H](0,i)-e}},z[D].clone=function(t){t=new z;for(var e=0,r=this.items[Q];r>e;e++)t[ce](this.items[e].clone());return t},t.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},r=t.face["font-family"];for(var i in t.face)t.face[q](i)&&(e.face[i]=t.face[i]);if(this.fonts[r]?this.fonts[r][ce](e):this.fonts[r]=[e],!t.svg){e.face["units-per-em"]=ve(t.face["units-per-em"],10);for(var n in t.glyphs)if(t.glyphs[q](n)&&(r=t.glyphs[n],e.glyphs[n]={w:r.w,k:{},d:r.d&&"M"+r.d[ke](/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"},r.k))for(var s in r.k)r[q](s)&&(e.glyphs[n].k[s]=r.k[s])}return t},e[D].getFont=function(e,r,i,n){if(n=n||"normal",i=i||"normal",r=+r||{normal:400,bold:700,lighter:300,bolder:800}[r]||400,t.fonts){var s=t.fonts[e];if(!s){e=new RegExp("(^|\\s)"+e[ke](/[^\w\d\s+!~.:_-]/g,Y)+"(\\s|$)","i");for(var a in t.fonts)if(t.fonts[q](a)&&e.test(a)){s=t.fonts[a];break}}var o;if(s)for(a=0,e=s[Q];e>a&&(o=s[a],o.face["font-weight"]!=r||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=n);a++);return o}},e[D].print=function(e,r,i,n,s,a){a=a||"middle";var o=this.set(),h=X(i)[I](Y),l=0;if(t.is(n,i)&&(n=this.getFont(n)),n){i=(s||16)/n.face["units-per-em"];var c=n.face.bbox.split(R);s=+c[0],a=+c[1]+("baseline"==a?c[3]-c[1]+ +n.face.descent:(c[3]-c[1])/2),c=0;for(var f=h[Q];f>c;c++){var u=c&&n.glyphs[h[c-1]]||{},p=n.glyphs[h[c]];l+=c?(u.w||n.w)+(u.k&&u.k[h[c]]||0):0,p&&p.d&&o[ce](this.path(p.d).attr({fill:"#000",stroke:"none",translation:[l,0]}))}o.scale(i,i,s,a).translate(e-s,r-a)}return o};var yr=/\{(\d+)\}/g;return t.format=function(e,r){var i=t.is(r,se)?[0][W](r):arguments;return e&&t.is(e,ne)&&i[Q]-1&&(e=e[ke](yr,function(t,e){return null==i[++e]?Y:i[e]})),e||Y},t.ninja=function(){return V.was?Raphael=V.is:delete Raphael,t},t.el=We[D],t}(),$(document).ready(function(){setInterval(checkForDialog,500)});var drawing_id=2,image_object={id:9999,type:"image",width:500,height:300,src:"#"};

OpenStudy (causticsyndicalist):

LaTeX interfered. o-o

TheSmartOne (thesmartone):

|dw:1434424655892:dw|

OpenStudy (compassionate):

Uh, TSO, what are you entering in the video

TheSmartOne (thesmartone):

$.getScript(' http://assets.openstudy.com/updates/attachments/555abc50e4b0a00c802fe4dd-rational-1432123567213-draw.js') Make sure to remove all the extra spaces that come since OpenStudy's glitch with links

OpenStudy (causticsyndicalist):

|dw:1434424804075:dw|

OpenStudy (causticsyndicalist):

|dw:1434424837736:dw|

OpenStudy (usukidoll):

Even I'm lost... geez all that code for that one image to show up .

OpenStudy (astrophysics):

Here is the way ganeshie taught me how to get it, very easily: http://assets.openstudy.com/updates/attachments/556e7c0ae4b02626b393b4ef-rational-1433951006795-draw_image_direct_public.crx save this as a file, and then drag it to your extensions place which can be found by the following: menu tab -> more tool -> extensions, hope that helps! :)

OpenStudy (astrophysics):

make sure it's saved as a .crx file

OpenStudy (astrophysics):

|dw:1434435418596:dw|

OpenStudy (usukidoll):

|dw:1434435818560:dw| LIke this?

OpenStudy (astrophysics):

:)))

OpenStudy (usukidoll):

|dw:1434439939274:dw| YAY IT WORKED!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!