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