!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.d3=e.d3||{})}(this,function(e){"use strict";function t(e,t){var u=e,r=t,a=n(u,r),i=[];return u=a[0],r=a[1],a=a[2],function(e){i=[];for(var t=0,n=u.length;t1829.2||(300!==Math.round(a.x)||20!==Math.round(a.y)||(n(e),n(t),i=u(e),l=u(t),!(i.split(/[Mm]/).length>2||l.split(/[Mm]/).length>2)&&e.length===t.length))}function u(e){var t=[],n=0,u=e.length;if("string"==typeof e)return e;for(n=0;n=0;)a=e.length-1,e.push(e.slice(a)),--s;for(r=e.length,a=0;a<=t;++a)u.push(Math.round(a/t*r));for(a=0,i=u.length-1;a0?(t=g,i=!1):(e=-e,t=c),r=0,a=t.length;r=r)return{index:i,mapValue:a[l],diff:i-n};return-1}function a(e){var t=e.length-1;return["M",e[t-1],e[t]].join(" ")}function i(e){return e.join("")}var l,o,f=0,s=0,h=0,c=0,g=0,p=0,x={},d={},y=[],v=[],b=-1,M=-1,m=!0;for(e=n(e),t=n(t),u(e,x),u(t,d),h=e.length,c=t.length,f=0,s=0;fo.diff)&&(g=o.mapValue,p=o.index),~l||~o||(g=h-1,p=c-1);f<=g;)y[b].push(e[f].stringValue),++f;for(;s<=p;)v[M].push(t[s].stringValue),++s}y[b]=i(y[b]),v[M]=i(v[M])}if(f7){e[t].shift();for(var i=e[t];i.length;)e.splice(t++,0,["C"][a](i.splice(0,6)));e.splice(t,1),x=r(n.length,u&&u.length||0)}},g=function(e,t,a,i,l){e&&t&&"M"==e[l][0]&&"M"!=t[l][0]&&(t.splice(l,0,["M",i.x,i.y]),a.bx=0,a.by=0,a.x=e[l][1],a.y=e[l][2],x=r(n.length,u&&u.length||0))},p=0,x=r(n.length,u&&u.length||0);p2&&(a.push([t][u](l.splice(0,2))),o="l",t="m"==t?"l":"L"),"r"==o)a.push([t][u](l));else for(;l.length>=r[o]&&(a.push([t][u](l.splice(0,r[o]))),r[o]););}),a}function f(e,t,n,u){return[e,t,n,u,n,u]}function s(e,t,n,u,r,a){var i=1/3,l=2/3;return[i*e+l*n,i*t+l*u,i*r+l*n,i*a+l*u,r,a]}e.morphPath=t,Object.defineProperty(e,"__esModule",{value:!0})});