fusioncharts
Version:
FusionCharts JavaScript charting framework
14 lines • 28.1 kB
JavaScript
!function(t){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=t:t()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[15],{1136:function(t,e,r){"use strict";var i=r(181);e.__esModule=!0,e["default"]=void 0;var n=i(r(1137)),a=i(r(1138)),o={extension:function(t){var e=t.getDep("redraphael","plugin");(0,n["default"])(e),(0,a["default"])(e)},name:"redraphaelVml",type:"plugin",requiresFusionCharts:!0};e["default"]=o},1137:function(t,e,r){"use strict";e.__esModule=!0,e["default"]=
/**!
* RedRaphael 1.0.0 - JavaScript Vector Library VML Module
* Copyright (c) 2012-2013 FusionCharts Technologies <http://www.fusioncharts.com>
*
* Raphael 2.1.0 - JavaScript Vector Library VML Module
* Copyright (c) 2008-2012 Dmitry Baranovskiy <http://raphaeljs.com>
* Copyright © 2008-2012 Sencha Labs <http://sencha.com>
*
* Licensed under the MIT license.
*/
function(t){if(t.vml){var e,r="hasOwnProperty",n=String,a=parseFloat,o=Math,s=o.round,l=o.max,c=o.min,p=o.sqrt,h=o.abs,f=/[, ]+/,d=t.eve,u=Array.prototype.shift,g=t._g.doc,v=g.createElement("div"),m=" ",_="",w={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},b=/([clmz]),?([^clmz]*)/gi,k=/-?[^,\s-]+/g,S="position:absolute;left:0;top:0;width:1px;height:1px",T=21600,R={path:1,rect:1,image:1},C={circle:1,ellipse:1},N=function(e,r,i){var n=t.matrix();return n.rotate(-e,.5,.5),{dx:n.x(r,i),dy:n.y(r,i)}},B=function(t,e,r,i,n,a){var o=t._,s=t.matrix,l=o.fillpos,c=t.node,p=c.style,f=1,d="",u=T/e,y=T/r;if(p.visibility="hidden",e&&r){if(c.coordsize=h(u)+m+h(y),p.rotation=a*(e*r<0?-1:1),a){var g=N(a,i,n);i=g.dx,n=g.dy}if(e<0&&(d+="x"),r<0&&(d+=" y")&&(f=-1),p.flip=d,c.coordorigin=i*-u+m+n*-y,l||o.fillsize){var v=c.getElementsByTagName("fill");(v=v&&v[0])&&(c.removeChild(v),l&&(g=N(a,s.x(l[0],l[1]),s.y(l[0],l[1])),v.position=g.dx*f+m+g.dy*f),o.fillsize&&(v.size=o.fillsize[0]*h(e)+m+o.fillsize[1]*h(r)),c.appendChild(v))}p.visibility="visible"}};v.innerHTML='<v:shape adj="1"/>',(e=v.firstChild).style.behavior="url(#default#VML)",e&&"object"==typeof e.adj||(t.type=_),v=null,t._url=_,t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var z,L=function(t,e){for(var r in e)d("raphael.attr."+r+"."+t.id,t,e[r],r),t.ca[r]&&t.attr(r,e[r])},E=["font","line-height","font-family","font-weight","font-style","font-size"],F=t._setFillAndStroke=function(e,i){if(e.paper.canvas){e.attrs=e.attrs||{};var o,p=e.node,h=e.attrs,d=p.style,u=R[e.type]&&(i.x!=h.x||i.y!=h.y||i.width!=h.width||i.height!=h.height||i.cx!=h.cx||i.cy!=h.cy||i.rx!=h.rx||i.ry!=h.ry||i.r!=h.r),y=C[e.type]&&(h.cx!=i.cx||h.cy!=i.cy||h.r!=i.r||h.rx!=i.rx||h.ry!=i.ry),g="group"===e.type,v=e;for(var x in o=v.oriOp||(v.oriOp={}),i)""!==i[x]?i[r](x)&&(h[x]=i[x]):(p.removeAttribute(x),delete h[x],delete i[x]);if(u&&(h.path=t._getPath[e.type](e),e._.dirty=1),i.href&&(p.href=i.href),i.title&&(p.title=i.title),i.target&&(p.target=i.target),i.cursor&&(d.cursor=i.cursor),"blur"in i&&e.blur(i.blur),(i.path&&"path"==e.type||u)&&(p.path=function(e){var r=/[ahqstv]/gi,i=t._pathToAbsolute;if(n(e).match(r)&&(i=t._path2curve),r=/[clmz]/g,i==t._pathToAbsolute&&!n(e).match(r)){var a=n(e).replace(b,function(t,e,r){var i=[],n="m"==e.toLowerCase(),a=w[e];return r.replace(k,function(t){n&&2==i.length&&(a+=i+w["m"==e?"l":"L"],i=[]),i.push(s(t*T))}),a+i});return a||"m0,0"}var o,l,c=i(e);a=[];for(var p=0,h=c.length;p<h;p++){o=c[p],"z"==(l=c[p][0].toLowerCase())&&(l="x");for(var f=1,d=o.length;f<d;f++)l+=s(o[f]*T)+(f!=d-1?",":_);a.push(l)}return a.length?a.join(m):"m0,0"}(~n(h.path).toLowerCase().indexOf("r")?t._pathToAbsolute(h.path):h.path),"image"==e.type&&(e._.fillpos=[h.x,h.y],e._.fillsize=[h.width,h.height],B(e,1,1,0,0,0))),"transform"in i&&e.transform(i.transform),"rotation"in i){var S=i.rotation;t.is(S,"array")?e.rotate.apply(e,S):e.rotate(S)}if("visibility"in i&&("hidden"===i.visibility?e.hide():e.show()),y){var N=+h.cx,L=+h.cy,F=+h.rx||+h.r||0,j=+h.ry||+h.r||0;p.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s((N-F)*T),s((L-j)*T),s((N+F)*T),s((L+j)*T),s(N*T))}if("clip-rect"in i){var M=n(i["clip-rect"]).split(f);if(4==M.length){M[0]=+M[0],M[1]=+M[1],M[2]=+M[2]+M[0],M[3]=+M[3]+M[1];var H,O=g?p:p.clipRect||t._g.doc.createElement("div"),W=O.style;g?(e.clip=M.slice(),H=e.matrix.offset(),H=[a(H[0]),a(H[1])],M[0]-=H[0],M[1]-=H[1],M[2]-=H[0],M[3]-=H[1],W.width="1px",W.height="1px"):p.clipRect||(W.top="0",W.left="0",W.width=e.paper.width+"px",W.height=e.paper.height+"px",p.parentNode.insertBefore(O,p),O.appendChild(p),O.raphael=!0,O.raphaelid=p.raphaelid,p.clipRect=O),W.position="absolute",W.clip=t.format("rect({1}px {2}px {3}px {0}px)",M)}i["clip-rect"]||(g&&e.clip?(p.style.clip="rect(0px 10800px 10800px 0px)",delete e.clip):p.clipRect&&(p.clipRect.style.clip="rect(0px 10800px 10800px 0px)"))}if("shape-rendering"in i&&(p.style.antialias="crisp"!==i["shape-rendering"]),e.textpath||g){var I=g?p.style:e.textpath.style;i.font&&(I.font=i.font),i["font-family"]&&(I.fontFamily='"'+i["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,_)+'"'),i["font-size"]&&(I.fontSize=i["font-size"]),i["font-weight"]&&(I.fontWeight=i["font-weight"]),i["font-style"]&&(I.fontStyle=i["font-style"])}if("arrow-start"in i&&t.addArrow&&t.addArrow(v,i["arrow-start"]),"arrow-end"in i&&t.addArrow&&t.addArrow(v,i["arrow-end"],1),null!=i.opacity||null!=i["stroke-width"]||null!=i.fill||null!=i.src||null!=i.stroke||null!=i["stroke-width"]||null!=i["stroke-opacity"]||null!=i["fill-opacity"]||null!=i["stroke-dasharray"]||null!=i["stroke-miterlimit"]||null!=i["stroke-linejoin"]||null!=i["stroke-linecap"]){var G=p.getElementsByTagName("fill"),P=-1;if(!(G=G&&G[0])&&(G=z("fill")),"image"==e.type&&i.src&&(!function(t,e){var r=e.src;t._.group,t.node;t._.RefImg||(t._.RefImg=new Image);if(e.src===undefined)return;t._.RefImg.src=r}(e,i),G.src=i.src),i.fill&&(G.on=!0),null!=G.on&&"none"!=i.fill&&null!==i.fill||(G.on=!1),G.on&&i.fill){var V,Y=n(i.fill).match(t._ISURL);if(Y){V=i.fill.split(t._ISURL),G.parentNode==p&&p.removeChild(G),G.rotate=!0,G.src=V[1],G.type="tile";var q=e.getBBox(1);G.position=q.x+m+q.y,e._.fillpos=[q.x,q.y],t._preload(V[1],function(){e._.fillsize=[this.offsetWidth,this.offsetHeight]})}else{var X=t.getRGB(i.fill);G.color=X.hex,G.src=_,G.type="solid",X.error&&(v.type in{circle:1,ellipse:1}||"r"!=n(i.fill).charAt())&&A(v,i.fill,G)?(h.fill="none",h.gradient=i.fill,G.rotate=!1):"opacity"in X&&!("fill-opacity"in i)&&(o.nonGradOpacity=P=X.opacity)}}if(-1!==P||"fill-opacity"in i||"opacity"in i){var U=((+h["fill-opacity"]+1||2)-1)*((+h.opacity+1||2)-1);U=c(l(U,0),1),o.opacity=U,o.opacity1!==undefined?(G.opacity=o.opacity1*U,G["o:opacity2"]=o.opacity2*U):G.opacity=U*(o.nonGradOpacity===undefined?1:o.nonGradOpacity),G.src&&(G.color="none")}o.opacity=undefined,p.appendChild(G);var D=p.getElementsByTagName("stroke")&&p.getElementsByTagName("stroke")[0],J=!1;!D&&(J=D=z("stroke")),(i.stroke&&"none"!=i.stroke||i["stroke-width"]||null!=i["stroke-opacity"]||i["stroke-dasharray"]||i["stroke-miterlimit"]||i["stroke-linejoin"]||i["stroke-linecap"])&&(D.on=!0),("none"==i.stroke||null===i.stroke||null==D.on||0==i.stroke||0==i["stroke-width"])&&(D.on=!1);var $=t.getRGB("stroke"in i?i.stroke:h.stroke);D.on&&i.stroke&&(D.color=$.hex),U=((+h["stroke-opacity"]+1||2)-1)*((+h.opacity+1||2)-1)*((+$.opacity+1||2)-1);var Z=.75*(a(i["stroke-width"])||1);if(U=c(l(U,0),1),null==i["stroke-width"]&&(Z=h["stroke-width"]),i["stroke-width"]&&(D.weight=Z),Z&&Z<1&&(U*=Z)&&(D.weight=1),D.opacity="none"!==h.stroke?U:0,i["stroke-linejoin"]&&(D.joinstyle=i["stroke-linejoin"])||J&&(J.joinstyle="miter"),D.miterlimit=i["stroke-miterlimit"]||8,i["stroke-linecap"]&&(D.endcap="butt"==i["stroke-linecap"]?"flat":"square"==i["stroke-linecap"]?"square":"round"),i["stroke-dasharray"]){var K={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};D.dashstyle=K[r](i["stroke-dasharray"])?K[i["stroke-dasharray"]]:i["stroke-dasharray"].join&&i["stroke-dasharray"].join(" ")||_}J&&p.appendChild(D)}if("text"==v.type){v.paper.canvas.style.display=_;var Q=v.paper.span,tt=100,et=function(t){var e,r,i,n={},a=E.length;for(;t.paper&&t.paper.canvas;){for(i=t.attrs,e=!0,r=0;r<a;r++)n[E[r]]||(n[E[r]]=i[E[r]],e=!1);if(e)break;t=t.parent}return n}(v),rt=et.font&&et.font.match(/\d+(?:\.\d*)?(?=px)/),it=et["line-height"]&&(et["line-height"]+_).match(/\d+(?:\.\d*)?(?=px)/);d=Q.style,et.font&&(d.font=et.font),et["font-family"]&&(d.fontFamily=et["font-family"]),et["font-weight"]&&(d.fontWeight=et["font-weight"]),et["font-style"]&&(d.fontStyle=et["font-style"]),rt=a(et["font-size"]||rt&&rt[0])||10,d.fontSize=rt*tt+"px",it=a(et["line-height"]||it&&it[0]||1.2*rt)||12,d.lineHeight=it*tt+"px",t.is(i.text,"array")&&(i.text=v.textpath.string=i.text.join("\n").replace(/<br\s*?\/?>/gi,"\n")),v.textpath.string&&(Q.innerHTML=n(v.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var nt=Q.getBoundingClientRect();v.W=h.w=(nt.right-nt.left)/tt,v.H=h.h=(nt.bottom-nt.top)/tt,v.X=h.x,v.Y=h.y;switch(h["vertical-align"]){case"top":v.bby=v.H/2;break;case"bottom":v.bby=-v.H/2;break;default:v.bby=0}("x"in i||"y"in i||v.bby!==undefined)&&(v.path.v=t.format("m{0},{1}l{2},{1}",s(h.x*T),s((h.y+(v.bby||0))*T),s(h.x*T)+1));for(var at=["x","y","text","font","font-family","font-weight","font-style","font-size","line-height"],ot=0,st=at.length;ot<st;ot++)if(at[ot]in i){v._.dirty=1;break}switch(h["text-anchor"]){case"start":v.textpath.style["v-text-align"]="left",v.bbx=v.W/2;break;case"end":v.textpath.style["v-text-align"]="right",v.bbx=-v.W/2;break;default:v.textpath.style["v-text-align"]="center",v.bbx=0}v.textpath.style["v-text-kern"]=!0}}},j=t._updateFollowers=function(){var t,e,r,n=(0,i.getArrayCopy)(arguments),a=u.call(n),o=u.call(n);for(t=0,e=a.followers.length;t<e;t++)(r=a.followers[t].el)[o].apply(r,n)},A=function(e,r,i){e.attrs=e.attrs||{};e.attrs;var o,s=Math.pow,l=e.oriOp,c="linear",h=".5 .5";if(e.attrs.gradient=r,r=(r=n(r).replace(t._radial_gradient,function(t,e){c="radial";(e=e&&e.split(",")||[])[0],e[1],e[2];var r=e[3],i=e[4];e[5];return r&&i&&(r=a(r),i=a(i),s(r-.5,2)+s(i-.5,2)>.25&&(i=p(.25-s(r-.5,2))*(2*(i>.5)-1)+.5),h=r+m+i),_})).split(/\s*\-\s*/),"linear"==c){var f=r.shift();if(f=-a(f),isNaN(f))return null}var d=t._parseDots(r);if(!d)return null;if(e=e.shape||e.node,d.length){i.parentNode==e&&e.removeChild(i),i.on=!0,i.method="none",i.color=d[0].color,i.color2=d[d.length-1].color;for(var u=[],y=1,g=d[0].opacity===undefined?1:d[0].opacity,v=0,x=d.length;v<x;v++)d[v].offset&&u.push(d[v].offset+m+d[v].color),d[v].opacity!==undefined&&(y=d[v].opacity);i.colors=u.length?u.join():"0% "+i.color,l.opacity1=y,l.opacity2=g,o=l.opacity===undefined?1:l.opacity,i.opacity=y*o,i["o:opacity2"]=g*o,"radial"==c?(i.type="gradientTitle",i.focus="100%",i.focussize="0 0",i.focusposition=h,i.angle=0):(i.type="gradient",i.angle=(270-f)%360),e.appendChild(i)}return 1},M=function(e,r,i){var n,a=this,o=i||r;
/*!dontAppend && */o.canvas&&o.canvas.appendChild(e),(n=z("skew")).on=!0,e.appendChild(n),a.skew=n,a.node=a[0]=e,e.raphael=!0,e.raphaelid=a.id=t._oid++,a.X=0,a.Y=0,a.attrs=a.attrs||{},a.followers=a.followers||[],a.paper=r,a.ca=a.customAttributes=a.customAttributes||new r._CustomAttributes,a.matrix=t.matrix(),a._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},a.parent=o,!o.bottom&&(o.bottom=a),a.prev=o.top,o.top&&(o.top.next=a),o.top=a,a.next=null},H=t.el;M.prototype=H,H.constructor=M,H.transform=function(e){if(null==e)return this._.transform;var r,i=this.paper._viewBoxShift,a=i?"s"+[i.scale,i.scale]+"-1-1t"+[i.dx,i.dy]:_;i&&(r=e=n(e).replace(/\.{3}|\u2026/g,this._.transform||_)),t._extractTransform(this,a+e);var o,s=this.matrix.clone(),l=this.skew,c=this.node,p=~n(this.attrs.fill).indexOf("-"),h=!n(this.attrs.fill).indexOf("url(");if(s.translate(-.5,-.5),h||p||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),p&&o.noRotation||!o.isSimple){c.style.filter=s.toFilter();var f=this.getBBox(),d=this.getBBox(1),u=f.x2&&d.x2?"x2":"x",y=f.y2&&d.y2?"y2":"y",g=f[u]-d[u],v=f[y]-d[y];c.coordorigin=g*-T+m+v*-T,B(this,1,1,g,v,0)}else c.style.filter=_,B(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else c.style.filter=_,l.matrix=n(s),l.offset=s.offset();return r&&(this._.transform=r),this},H.rotate=function(t,e,r){var i=this;if(i.removed)return i;if(j(i,"rotate",t,e,r),null!=t){if((t=n(t).split(f)).length-1&&(e=a(t[1]),r=a(t[2])),t=a(t[0]),null==r&&(e=r),null==e||null==r){var o=i.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return i._.dirtyT=1,i.transform(i._.transform.concat([["r",t,e,r]])),i}},H.translate=function(t,e){var r=this;return r.removed?r:(j(r,"translate",t,e),(t=n(t).split(f)).length-1&&(e=a(t[1])),t=a(t[0])||0,e=+e||0,r._.bbox&&(r._.bbox.x+=t,r._.bbox.y+=e),r.transform(r._.transform.concat([["t",t,e]])),r)},H.scale=function(t,e,r,i){var o=this;if(o.removed)return o;if(j(o,"scale",t,e,r,i),(t=n(t).split(f)).length-1&&(e=a(t[1]),r=a(t[2]),i=a(t[3]),isNaN(r)&&(r=null),isNaN(i)&&(i=null)),t=a(t[0]),null==e&&(e=t),null==i&&(r=i),null==r||null==i)var s=o.getBBox(1);return r=null==r?s.x+s.width/2:r,i=null==i?s.y+s.height/2:i,o.transform(o._.transform.concat([["s",t,e,r,i]])),o._.dirtyT=1,o},H.hide=function(t){var e=this;return j(e,"hide",t),!e.removed&&(e.node.style.display="none"),e},H.show=function(t){var e=this;return j(e,"show",t),!e.removed&&(e.node.style.display=_),e},H._getBBox=function(){var t=this;return t.removed?{}:{x:t.X+(t.bbx||0)-t.W/2,y:t.Y+(t.bby||0)-t.H/2,width:t.W,height:t.H}},H.remove=function(){if(!this.removed&&this.parent.canvas){var e=this,r=t._engine.getNode(e),i=e.paper,n=e.shape;for(i.__set__&&i.__set__.exclude(e),d.unbind("raphael.*.*."+e.id),n&&n.parentNode.removeChild(n),r.parentNode&&r.parentNode.removeChild(r);a=e.followers.pop();)a.el.remove();for(;a=e.bottom;)a.remove();if(e._drag&&e.undrag(),e.events)for(;a=e.events.pop();)a.unbind();for(var a in e.removeData(),delete i._elementsById[e.id],t._tear(e,e.parent),e)e[a]="function"==typeof e[a]?t._removedFactory(a):null;e.removed=!0}},H.attr=function(e,i){if(this.removed)return this;if(null==e){var n={};for(var a in this.attrs)this.attrs[r](a)&&(n[a]=this.attrs[a]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n.visibility="none"===this.node.style.display?"hidden":"visible",n}if(null==i&&t.is(e,"string")){if("fill"==e&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("visibility"==e)return"none"===this.node.style.display?"hidden":"visible";for(var o=e.split(f),s={},l=0,c=o.length;l<c;l++)(e=o[l])in this.attrs?s[e]=this.attrs[e]:t.is(this.ca[e],"function")?s[e]=this.ca[e].def:s[e]=t._availableAttrs[e];return c-1?s:s[o[0]]}if(this.attrs&&null==i&&t.is(e,"array")){for(s={},l=0,c=e.length;l<c;l++)s[e[l]]=this.attr(e[l]);return s}var p;if(null!=i&&((p={})[e]=i),null==i&&t.is(e,"object")&&(p=e),!t.stopPartialEventPropagation)for(var h in p)d("raphael.attr."+h+"."+this.id,this,p[h],h);if(p){var u,y={};for(h in this.ca)if(this.ca[h]&&p[r](h)&&t.is(this.ca[h],"function")&&!this.ca["_invoked"+h]){this.ca["_invoked"+h]=!0;var g=this.ca[h].apply(this,[].concat(p[h]));for(var v in delete this.ca["_invoked"+h],g)g[r](v)&&(p[v]=g[v]);this.attrs[h]=p[h],!1===g&&(y[h]=p[h],delete p[h])}"text"in p&&"text"==this.type&&(t.is(p.text,"array")&&(p.text=p.text.join("\n")),this.textpath.string=p.text.replace(/<br\s*?\/?>/gi,"\n")),F(this,p);for(l=0,c=this.followers.length;l<c;l++)(u=this.followers[l]).cb&&!u.cb.call(u.el,p,this)||u.el.attr(p);for(var v in y)p[v]=y[v]}return this},H.on=function(e,r,i){var n,a=this,o=r;if(a.removed)return a;switch(a._actualListners||(a._actualListners=[]),a._derivedListeners||(a._derivedListeners=[]),e){case"fc-dragstart":return a.drag(null,r),a;case"fc-dragmove":return a.drag(r),a;case"fc-dragend":return a.drag(null,null,r),a;case"fc-dbclick":return a.dbclick(r,i),a;case"fc-click":return a.fcclick(r,i),a}return e=e.replace(/fc-/,""),a._&&a._.RefImg&&("load"===e||"error"===e)?(node=a._.RefImg,o=function(e,r){return function(i){n={},t.makeSelectiveCopy(n,i),n.target=a._.RefImg,!e.removed&&r.call(e,n)}}(a,r)):node=a.node,node.attachEvent?o===r&&(o=function(t){r.call(i||a,t)}):o=function(){var e=t._g.win.event;e.target=e.srcElement,r(e)},a._actualListners.push(r),a._derivedListeners.push(o),node.attachEvent?node.attachEvent("on"+e,o):node["on"+e]=o,a},H.off=function(t,e){var r;if(this.removed)return this;switch(t){case"fc-dragstart":return this.undragstart(e),this;case"fc-dragmove":return this.undragmove(e),this;case"fc-dragend":return this.undragend(e),this;case"fc-dbclick":return this.undbclick(e),this;case"fc-click":return this.fcunclick(e),this}return t=t.replace(/fc-/,""),-1!==(r=this._actualListners.indexOf(e))&&(e=this._derivedListeners[r],this._actualListners.splice(r,1),this._derivedListeners.splice(r,1)),this.node.attachEvent?this.node.detachEvent("on"+t,e):this.node["on"+t]=null,this},t._engine.getNode=function(t){var e=t.node||t[0].node;return e.clipRect||e},t._engine.getLastNode=function(t){var e=t.node||t[t.length-1].node;return e.clipRect||e},t._engine.group=function(e,r,i){var n,a=t._g.doc.createElement("div"),o=e._HTMLClassName,s=new M(a,e,i);return a.style.cssText=S,s._id=r||_,r&&(n=a.className="raphael-group-"+s.id+"-"+r),o&&(a.className=n?n+" "+o:o),(i||e).canvas.appendChild(a),s.type="group",s.canvas=s.node,s.transform=t._engine.group.transform,s.top=null,s.bottom=null,s},t._engine.group.transform=function(e){if(null==e)return this._.transform;var r,i,o,s,l=this,c=l.node.style,p=l.clip,h=l.paper._viewBoxShift,f=h?"s"+[h.scale,h.scale]+"-1-1t"+[h.dx,h.dy]:_;return h&&(e=n(e).replace(/\.{3}|\u2026/g,l._.transform||_)),t._extractTransform(l,f+e),r=l.matrix,i=r.offset(),o=a(i[0])||0,s=a(i[1])||0,c.left=o+"px",c.top=s+"px",c.zoom=(l._.tzoom=r.get(0))+_,p&&(c.clip=t.format("rect({1}px {2}px {3}px {0}px)",[p[0]-o,p[1]-s,p[2]-o,p[3]-s])),l},t._engine.path=function(t,e,r){var i=z("shape");i.style.cssText=S,i.coordsize=T+m+T,i.coordorigin=t.coordorigin;var n=new M(i,t,r);return n.type=e.type||"path",n.path=[],n.Path=_,e.type&&delete e.type,F(n,e),L(n,e),n},t._engine.rect=function(e,r,i){var n=t._rectPath(r.x,r.y,r.w,r.h,r.r);r.path=n,r.type="rect";var a=e.path(r,i),o=a.attrs;return a.X=o.x,a.Y=o.y,a.W=o.width,a.H=o.height,o.path=n,a},t._engine.ellipse=function(t,e,r){e.type="ellipse";var i=t.path(e,r),n=i.attrs;return i.X=n.x-n.rx,i.Y=n.y-n.ry,i.W=2*n.rx,i.H=2*n.ry,i},t._engine.circle=function(t,e,r){e.type="circle";var i=t.path(e,r),n=i.attrs;return i.X=n.x-n.r,i.Y=n.y-n.r,i.W=i.H=2*n.r,i},t._engine.image=function(e,r,i){r.w||(r.w=r.width),r.h||(r.h=r.height);var n=t._rectPath(r.x,r.y,r.w,r.h);r.path=n,r.type="image",r.stroke="none";var a=e.path(r,i),o=a.attrs,s=a.node,l=s.getElementsByTagName("fill")[0];return!a._.RefImg&&(a._.RefImg=new Image),o.src=r.src,a.X=o.x=r.x,a.Y=o.y=r.y,a.W=o.width=r.w,a.H=o.height=r.h,l.parentNode==s&&s.removeChild(l),l.rotate=!0,l.src=o.src,l.type="tile",a._.fillpos=[o.x,o.y],a._.fillsize=[o.w,o.h],s.appendChild(l),B(a,1,1,0,0,0),a},t._engine.text=function(e,r,i,a){var o=z("shape"),l=z("path"),c=z("textpath");x=r.x||0,y=r.y||0,text=r.text,l.v=t.format("m{0},{1}l{2},{1}",s(r.x*T),s(r.y*T),s(r.x*T)+1),l.textpathok=!0,c.string=n(r.text).replace(/<br\s*?\/?>/gi,"\n"),c.on=!0,o.style.cssText=S,o.coordsize=T+m+T,o.coordorigin="0 0";var p=new M(o,e,i);return p.shape=o,p.path=l,p.textpath=c,p.type="text",p.attrs.text=n(r.text||_),p.attrs.x=r.x,p.attrs.y=r.y,p.attrs.w=1,p.attrs.h=1,a&&p.css&&p.css(a,undefined,!0),F(p,r),L(p,r),o.appendChild(c),o.appendChild(l),p},t._engine.setSize=function(e,r){var i=this.canvas.style;return this.width=e,this.height=r,e==+e&&(e+="px"),r==+r&&(r+="px"),e&&(i.width=e),r&&(i.height=r),i.clip="rect(0 "+i.width+" "+i.height+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(t,e,r,i,n){d("raphael.setViewBox",this,this._viewBox,[t,e,r,i,n]);var a,o,s=this.width,c=this.height,p=1/l(r/s,i/c);return n&&(r*(a=c/i)<s&&(t-=(s-r*a)/2/a),i*(o=s/r)<c&&(e-=(c-i*o)/2/o)),this._viewBox=[t,e,r,i,!!n],this._viewBoxShift={dx:-t,dy:-e,scale:p},this.forEach(function(t){t.transform("...")}),this},t._engine.initWin=function(e){var r=e.document;r.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!r.namespaces.rvml&&r.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),z=t._createNode=function(t,e){var i,a=r.createElement("<rvml:"+t+' class="rvml">');for(i in e)a[i]=n(e[i]);return a}}catch(i){z=t._createNode=function(t,e){var i,a=r.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');for(i in e)a[i]=n(e[i]);return a}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),r=e.container,i=e.height,n=e.width,a=e.x,o=e.y;if(!r)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),c=l.style;return a=a||0,o=o||0,n=n||512,i=i||342,s.width=n,s.height=i,n==+n&&(n+="px"),i==+i&&(i+="px"),s.coordsize=216e5+m+216e5,s.coordorigin="0 0",l.id="raphael-paper-"+s.id,s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),c.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,i),1==r?(t._g.doc.body.appendChild(l),c.left=a+"px",c.top=o+"px",c.position="absolute"):r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){var e;for(d("raphael.clear",this);e=this.bottom;)e.remove();this.canvas.innerHTML=_,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){var e;for(d("raphael.remove",this);e=this.bottom;)e.remove();for(e in this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0},t.prototype.setHTMLClassName=function(t){this._HTMLClassName=t}}};var i=r(190)},1138:function(t,e,r){"use strict";e.__esModule=!0,e["default"]=function(t){var e=t._availableAttrs,r='" id = "',n=/^matrix\(|\)$/g,a=/\,/g,o=/\n|<br\s*?\/?>/gi,s=/[^\d\.]/gi,l=/[\%\(\)\s,\xb0#]/g,c=/group/gi,p=/&/g,h=/"/g,f=/'/g,d=/</g,u=/>/g,y=0,g={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},v=Math,x=parseFloat,m=v.max,_=v.abs,w=v.pow,b=String,k=/[, ]+/,S={blur:function(){},transform:function(){},src:function(){var t=arguments[1],e=t.attrs,r=e.src;t.attrSTR+=' xlink:href="'+r+'"'},path:function(){var e=arguments[1],r=e.attrs,i=r.path;i=t._pathToAbsolute(i||""),e.attrSTR+=' d="'+(i.toString&&i.toString()||"").replace(a," ")+'"'},gradient:function(e,i,n){var a,o,s,c,p,h,f,d,u,y,k=e.attrs,S=k.gradient,T="linear",R=S,C=.5,N=.5,B="",z="",L="";if(R=R.replace(l,"_"),!n[R]){if(S=(S=b(S).replace(t._radial_gradient,function(t,e){var r,i,n,a,o,s,l,c,p=e;return p=p&&p.split(",")||[],T="radial",r=p[0],i=p[1],a=p[2],o=p[3],s=p[4],y=p[5],c=r&&i,a&&(u=/\%/.test(a)?a:x(a)),y===g.userSpaceOnUse?(c&&(C=r,N=i),o&&s&&(f=o,d=s,c||(C=f,N=d)),""):(c&&(C=x(r),N=x(i),n=2*(N>.5)-1,(l=w(C-.5,2))+w(N-.5,2)>.25&&l<.25&&(N=v.sqrt(.25-l)*n+.5)&&.5!==N&&(N=N.toFixed(5)-1e-5*n)),o&&s&&(f=x(o),d=x(s),n=2*(d>.5)-1,(l=w(f-.5,2))+w(d-.5,2)>.25&&l<.25&&(d=v.sqrt(.25-l)*n+.5)&&.5!==d&&(d=d.toFixed(5)-1e-5*n),c||(C=f,N=d)),"")})).split(/\s*\-\s*/),"linear"===T){if(a=S.shift(),a=-x(a),isNaN(a))return null;o=[0,0,v.cos(t.rad(a)),v.sin(t.rad(a))],s=1/(m(_(o[2]),_(o[3]))||1),o[2]*=s,o[3]*=s,o[2]<0&&(o[0]=-o[2],o[2]=0),o[3]<0&&(o[1]=-o[3],o[3]=0)}if(!(c=t._parseDots(S)))return null;for("radial"===T?(B='<radialGradient fx = "'+C+'" fy = "'+N+'" cy = "'+d+'" cx = "'+f+'" r = "'+u+'" gradientUnits = "'+y+r+R+'">',z="</radialGradient>"):(B='<linearGradient x1 = "'+o[0]+'" y1 = "'+o[1]+'" x2 = "'+o[2]+'" y2 = "'+o[3]+'" gradientTransform ="matrix('+e.matrix.invert()+")"+r+R+'">',z="</linearGradient>"),p=0,h=c.length;p<h;p++)L+='<stop offset="'+(c[p].offset?c[p].offset:p?"100%":"0%")+'" stop-color="'+(c[p].color||"#fff")+'" stop-opacity="'+(void 0===c[p].opacity?1:c[p].opacity)+'" />';n[R]=!0,n.str+=B+L+z}i.attrSTR+=" fill=\"url('#"+R+"')\""},fill:function(e,r){var i,n,a=r.attrs,o=a.fill;e.attrs.gradient||(i=t.color(o),n=i.opacity,"text"===e.type?r.styleSTR+="fill:"+i+"; stroke-opacity:0; ":(r.attrSTR+=' fill="'+i+'"',a["fill-opacity"]||!n&&0!==n||(r.attrSTR+=' fill-opacity="'+n+'"')))},stroke:function(e,r){var i,n,a=r.attrs,o=a.stroke;i=t.color(o),n=i.opacity,"text"!==e.type&&(r.attrSTR+=' stroke="'+i+'"',a["stroke-opacity"]||!n&&0!==n||(r.attrSTR+=' stroke-opacity="'+n+'"'))},"clip-rect":function(t,e,r){var i=e.attrs,a=b(i["clip-rect"]),o=a.split(k),s=a.replace(l,"_")+"__"+y++;4===o.length&&(r[s]||(r[s]=!0,r.str+='<clipPath id="'+s+'"><rect x="'+o[0]+'" y="'+o[1]+'" width="'+o[2]+'" height="'+o[3]+'" transform="matrix('+t.matrix.invert().toMatrixString().replace(n,"")+')"/></clipPath>'),e.attrSTR+=' clip-path="url(#'+s+')"')},cursor:function(){var t=arguments[1],e=t.attrs,r=e.cursor;r&&(t.styleSTR+="cursor:"+r+"; ")},font:function(){var t=arguments[1],e=t.attrs,r=e.font;t.styleSTR+="font:"+r.replace(/\"/gi," ")+"; "},"font-size":function(){var t=arguments[1],e=t.attrs,r=(0,i.pluck)(e["font-size"],"10");r&&r.replace&&(r=r.replace(s,"")),t.styleSTR+="font-size:"+r+"px; "},"font-weight":function(){var t=arguments[1],e=t.attrs,r=e["font-weight"];t.styleSTR+="font-weight:"+r+"; "},"font-family":function(){var t=arguments[1],e=t.attrs,r=e["font-family"];t.styleSTR+="font-family:"+r+"; "},"line-height":i.stubFN,"clip-path":i.stubFN,visibility:i.stubFN,"vertical-align":i.stubFN,"text-anchor":function(t,e){var r=e.attrs,i=r["text-anchor"]||"middle";"text"===t.type&&(e.attrSTR+=' text-anchor="'+i+'"')},title:i.stubFN,text:function(){var t,e,r,n,a,l,c,y,g=arguments[1],v=g.attrs,x=v.text,m=(0,i.pluck)(v["font-size"],v.font,"10"),_=(0,i.pluck)(v["line-height"]);for(m&&m.replace&&(m=m.replace(s,"")),m=(0,i.pluckNumber)(m),_&&_.replace&&(_=_.replace(s,"")),_=(0,i.pluckNumber)(_,m&&1.2*m),t=m?.85*m:.75*_,e=v.x,r=(0,i.pluck)(v["vertical-align"],"middle").toLowerCase(),n=b(x).split(o),l=n.length,a=0,c="top"===r?t:"bottom"===r?t-_*l:t-_*l*.5;a<l;a++)g.textSTR+="<tspan ",y=(n[a]||"").replace(p,"&").replace(h,""").replace(f,"'").replace(d,"<").replace(u,">"),g.textSTR+=a?'dy="'+_+'" x="'+e+'" ':'dy="'+c+'"',g.textSTR+=">"+y+"</tspan>"}};t.vml&&(t.fn.toSVG=function(t){var r="",i={str:""},a="";return r='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=function o(t,r){var i,a,s,l="",p={attrSTR:"",styleSTR:"",textSTR:"",attrs:t.attr()},h=t.isShadow,f="",d="",u=p.attrs;if("none"===t.node.style.display||h)t.next&&(l+=o(t.next,r));else{for(i in u)"gradient"===i||void 0===e[i]&&!S[i]||void 0===u[i]||(S[i]?S[i](t,p,r):p.attrSTR+=" "+i+'="'+u[i]+'"');for(a in t.attrs.gradient&&S.gradient(t,p,r),"rect"===t.type&&u.r&&(p.attrSTR+=' rx="'+u.r+'" ry="'+u.r+'"'),t.styles)p.styleSTR+=a+":"+t.styles[a]+"; ";"image"===t.type&&(p.attrSTR+=' preserveAspectRatio="none"'),"text"!==t.type||u["text-anchor"]||S["text-anchor"](t,p),t.bottom&&(f=o(t.bottom,r)),t.next&&(d=o(t.next,r)),(s=t.type).match(c)&&(s="g"),l+="<"+s+' transform="matrix('+t.matrix.toMatrixString().replace(n,"")+')" style="'+p.styleSTR+'"'+p.attrSTR+">"+p.textSTR+f+"</"+s+">"+d}return l}(this.bottom,i)),r+="<defs>"+i.str+"</defs>"+a+"</svg>",t||(r=r.replace(/<image[^\>]*\>[^\>]*\>/gi,function(t){return t.match(/href=\"data\:image/i)?t:""})),r})};var i=r(187)}}])});
//# sourceMappingURL=http://localhost:3052/3.14.0/map/eval/fusioncharts.vml.js.map