@daoyi/nmtl-ui 2.0.1-beta.15 → 2.0.1-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/lib/components/Autocomplete.js +1 -1
  2. package/lib/components/BackTop.js +1 -1
  3. package/lib/components/BarChart.js +1 -1
  4. package/lib/components/Breadcrumbs.js +1 -1
  5. package/lib/components/Carousel.js +1 -1
  6. package/lib/components/Checkbox.js +1 -1
  7. package/lib/components/ContactModal.js +2 -17
  8. package/lib/components/Drawer.js +1 -1
  9. package/lib/components/Dropdown.js +1 -1
  10. package/lib/components/Empty-54b79907.js +1 -0
  11. package/lib/components/ExportButton.js +1 -1
  12. package/lib/components/ExtraTools.js +1 -1
  13. package/lib/components/Filter.js +6 -6
  14. package/lib/components/Footer.js +1 -1
  15. package/lib/components/Header.js +1 -1
  16. package/lib/components/Image.js +1 -1
  17. package/lib/components/InputMethod.js +2 -2
  18. package/lib/components/KeywordSearch-5a393f12.js +1 -0
  19. package/lib/components/KeywordSearch.js +1 -1
  20. package/lib/components/KeywordTicker.js +1 -1
  21. package/lib/components/Keywords.js +1 -1
  22. package/lib/components/MUITheme.js +1 -1
  23. package/lib/components/Radio.js +1 -1
  24. package/lib/components/SNA.js +4 -4
  25. package/lib/components/{Select-c8f23c48.js → Select-f2441b83.js} +1 -1
  26. package/lib/components/Select.js +1 -1
  27. package/lib/components/Table.js +1 -1
  28. package/lib/components/Tooltip.js +1 -1
  29. package/lib/components/{_rollupPluginBabelHelpers-b18bba19.js → _rollupPluginBabelHelpers-ec4e2a53.js} +0 -0
  30. package/lib/components/createSvgIcon-62b64929.js +1 -0
  31. package/lib/components/createSvgIcon-e24792d4.js +1 -0
  32. package/lib/components/createTheme-7fffa109.js +1 -0
  33. package/lib/components/transform-011f0fe5.js +1 -0
  34. package/lib/utils/{_rollupPluginBabelHelpers-0b27a2cb.js → _rollupPluginBabelHelpers-928a52ce.js} +0 -0
  35. package/lib/utils/exportXlsx.js +1 -1
  36. package/lib/utils/historyAppendSearch.js +1 -1
  37. package/lib/utils/snaPreProcess.js +1 -1
  38. package/package.json +2 -1
  39. package/lib/components/Empty-8a67e9c0.js +0 -1
  40. package/lib/components/KeywordSearch-71d79d41.js +0 -1
  41. package/lib/components/createSvgIcon-1fa2d6e5.js +0 -1
  42. package/lib/components/createSvgIcon-3f4d5820.js +0 -1
  43. package/lib/components/createTheme-215d3b6c.js +0 -1
  44. package/lib/components/transform-ee09e63e.js +0 -1
@@ -1 +0,0 @@
1
- function t(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var n,e,r=(1===(n=t).length&&(e=n,n=function(n,r){return t(e(n),r)}),{left:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}).right,i={value:function(){}};function o(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new u(r)}function u(t){this._=t}function a(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function s(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function l(t,n,e){for(var r=0,o=t.length;r<o;++r)if(t[r].name===n){t[r]=i,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function c(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function h(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function f(){}u.prototype=o.prototype={constructor:u,on:function(t,n){var e,r=this._,i=a(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=l(r[e],t.name,n);else if(null==n)for(e in r)r[e]=l(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=s(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new u(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var p=1/.7,d="\\s*([+-]?\\d+)\\s*",v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g=/^#([0-9a-f]{3,8})$/,m=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),_=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),w=new RegExp("^rgba\\("+[d,d,d,v]+"\\)$"),b=new RegExp("^rgba\\("+[y,y,y,v]+"\\)$"),x=new RegExp("^hsl\\("+[v,y,y]+"\\)$"),k=new RegExp("^hsla\\("+[v,y,y,v]+"\\)$"),A={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function N(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function M(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=g.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?S(n):3===e?new C(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?P(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?P(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=m.exec(t))?new C(n[1],n[2],n[3],1):(n=_.exec(t))?new C(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=w.exec(t))?P(n[1],n[2],n[3],n[4]):(n=b.exec(t))?P(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=x.exec(t))?R(n[1],n[2]/100,n[3]/100,1):(n=k.exec(t))?R(n[1],n[2]/100,n[3]/100,n[4]):A.hasOwnProperty(t)?S(A[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function S(t){return new C(t>>16&255,t>>8&255,255&t,1)}function P(t,n,e,r){return r<=0&&(t=n=e=NaN),new C(t,n,e,r)}function $(t){return t instanceof f||(t=M(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function q(t,n,e,r){return 1===arguments.length?$(t):new C(t,n,e,null==r?1:r)}function C(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function X(){return"#"+O(this.r)+O(this.g)+O(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function R(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Y(t,n,e,r)}function I(t){if(t instanceof Y)return new Y(t.h,t.s,t.l,t.opacity);if(t instanceof f||(t=M(t)),!t)return new Y;if(t instanceof Y)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new Y(u,a,s,t.opacity)}function Y(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function j(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function L(t){return function(){return t}}function z(t){return 1==(t=+t)?D:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):L(isNaN(n)?e:n)}}function D(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):L(isNaN(t)?n:t)}c(f,M,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:N,formatHex:N,formatHsl:function(){return I(this).formatHsl()},formatRgb:E,toString:E}),c(C,q,h(f,{brighter:function(t){return t=null==t?p:Math.pow(p,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:X,formatHex:X,formatRgb:T,toString:T})),c(Y,(function(t,n,e,r){return 1===arguments.length?I(t):new Y(t,n,e,null==r?1:r)}),h(f,{brighter:function(t){return t=null==t?p:Math.pow(p,t),new Y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new C(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var H=function t(n){var e=z(n);function r(t,n){var r=e((t=q(t)).r,(n=q(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=D(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function B(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var V=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U=new RegExp(V.source,"g");function F(t,n){var e,r,i,o=V.lastIndex=U.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=V.exec(t))&&(r=U.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:B(e,r)})),o=U.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})}var G,J,K,Q,W=180/Math.PI,Z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tt(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*W,skewX:Math.atan(s)*W,scaleX:u,scaleY:a}}function nt(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],s=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:B(t,i)},{i:s-2,x:B(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,s),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:B(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:B(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,s),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:B(t,e)},{i:a-2,x:B(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var n,e=-1,r=s.length;++e<r;)a[(n=s[e]).i]=n.x(t);return a.join("")}}}var et,rt,it=nt((function(t){return"none"===t?Z:(G||(G=document.createElement("DIV"),J=document.documentElement,K=document.defaultView),G.style.transform=t,t=K.getComputedStyle(J.appendChild(G),null).getPropertyValue("transform"),J.removeChild(G),tt(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),ot=nt((function(t){return null==t?Z:(Q||(Q=document.createElementNS("http://www.w3.org/2000/svg","g")),Q.setAttribute("transform",t),(t=Q.transform.baseVal.consolidate())?tt((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Z)}),", ",")",")"),ut=0,at=0,st=0,lt=0,ct=0,ht=0,ft="object"==typeof performance&&performance.now?performance:Date,pt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function dt(){return ct||(pt(vt),ct=ft.now()+ht)}function vt(){ct=0}function yt(){this._call=this._time=this._next=null}function gt(t,n,e){var r=new yt;return r.restart(t,n,e),r}function mt(){ct=(lt=ft.now())+ht,ut=at=0;try{!function(){dt(),++ut;for(var t,n=et;n;)(t=ct-n._time)>=0&&n._call.call(null,t),n=n._next;--ut}()}finally{ut=0,function(){var t,n,e=et,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:et=n);rt=t,wt(r)}(),ct=0}}function _t(){var t=ft.now(),n=t-lt;n>1e3&&(ht-=n,lt=t)}function wt(t){ut||(at&&(at=clearTimeout(at)),t-ct>24?(t<1/0&&(at=setTimeout(mt,t-ft.now()-ht)),st&&(st=clearInterval(st))):(st||(lt=ft.now(),st=setInterval(_t,1e3)),ut=1,pt(mt)))}function bt(t,n,e){var r=new yt;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}yt.prototype=gt.prototype={constructor:yt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?dt():+e)+(null==n?0:+n),this._next||rt===this||(rt?rt._next=this:et=this,rt=this),this._call=t,this._time=e,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}},o("start","end","cancel","interrupt");function xt(){}function kt(t,n){var e=new xt;if(t instanceof xt)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function At(){}xt.prototype=kt.prototype={constructor:xt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Nt=kt.prototype;function Et(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}At.prototype={constructor:At,has:Nt.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Nt.remove,clear:Nt.clear,values:Nt.keys,size:Nt.size,empty:Nt.empty,each:Nt.each};var Mt=Array.prototype,St=Mt.map,Pt=Mt.slice,$t={name:"implicit"};function qt(){var t=kt(),n=[],e=[],r=$t;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==$t)return r;t.set(o,u=n.push(i))}return e[(u-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=kt();for(var r,o,u=-1,a=e.length;++u<a;)t.has(o=(r=e[u])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Pt.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return qt(n,e).unknown(r)},Et.apply(i,arguments),i}var Ct="http://www.w3.org/1999/xhtml",Xt={svg:"http://www.w3.org/2000/svg",xhtml:Ct,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Tt(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Xt.hasOwnProperty(n)?{space:Xt[n],local:t}:t}function Ot(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ct&&n.documentElement.namespaceURI===Ct?n.createElement(t):n.createElementNS(e,t)}}function Rt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function It(t){var n=Tt(t);return(n.local?Rt:Ot)(n)}function Yt(){}function jt(t){return null==t?Yt:function(){return this.querySelector(t)}}function Lt(){return[]}function zt(t){return null==t?Lt:function(){return this.querySelectorAll(t)}}function Dt(t){return function(){return this.matches(t)}}function Ht(t){return new Array(t.length)}function Bt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Bt.prototype={constructor:Bt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Vt(t,n,e,r,i,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Bt(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function Ut(t,n,e,r,i,o,u){var a,s,l,c={},h=n.length,f=o.length,p=new Array(h);for(a=0;a<h;++a)(s=n[a])&&(p[a]=l="$"+u.call(s,s.__data__,a,n),l in c?i[a]=s:c[l]=s);for(a=0;a<f;++a)(s=c[l="$"+u.call(t,o[a],a,o)])?(r[a]=s,s.__data__=o[a],c[l]=null):e[a]=new Bt(t,o[a]);for(a=0;a<h;++a)(s=n[a])&&c[p[a]]===s&&(i[a]=s)}function Ft(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Gt(t){return function(){this.removeAttribute(t)}}function Jt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kt(t,n){return function(){this.setAttribute(t,n)}}function Qt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Wt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Zt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function tn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function nn(t){return function(){this.style.removeProperty(t)}}function en(t,n,e){return function(){this.style.setProperty(t,n,e)}}function rn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function on(t,n){return t.style.getPropertyValue(n)||tn(t).getComputedStyle(t,null).getPropertyValue(n)}function un(t){return function(){delete this[t]}}function an(t,n){return function(){this[t]=n}}function sn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function ln(t){return t.trim().split(/^|\s+/)}function cn(t){return t.classList||new hn(t)}function hn(t){this._node=t,this._names=ln(t.getAttribute("class")||"")}function fn(t,n){for(var e=cn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function pn(t,n){for(var e=cn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function dn(t){return function(){fn(this,t)}}function vn(t){return function(){pn(this,t)}}function yn(t,n){return function(){(n.apply(this,arguments)?fn:pn)(this,t)}}function gn(){this.textContent=""}function mn(t){return function(){this.textContent=t}}function _n(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function wn(){this.innerHTML=""}function bn(t){return function(){this.innerHTML=t}}function xn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function kn(){this.nextSibling&&this.parentNode.appendChild(this)}function An(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nn(){return null}function En(){var t=this.parentNode;t&&t.removeChild(this)}function Mn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Sn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}hn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Pn={},$n=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Pn={mouseenter:"mouseover",mouseleave:"mouseout"}));function qn(t,n,e){return t=Cn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Cn(t,n,e){return function(r){var i=$n;$n=r;try{t.call(this,this.__data__,n,e)}finally{$n=i}}}function Xn(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function Tn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function On(t,n,e){var r=Pn.hasOwnProperty(t.type)?qn:Cn;return function(i,o,u){var a,s=this.__on,l=r(n,o,u);if(s)for(var c=0,h=s.length;c<h;++c)if((a=s[c]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=e),void(a.value=n);this.addEventListener(t.type,l,e),a={type:t.type,name:t.name,value:n,listener:l,capture:e},s?s.push(a):this.__on=[a]}}function Rn(t,n,e,r){var i=$n;t.sourceEvent=$n,$n=t;try{return n.apply(e,r)}finally{$n=i}}function In(t,n,e){var r=tn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Yn(t,n){return function(){return In(this,t,n)}}function jn(t,n){return function(){return In(this,t,n.apply(this,arguments))}}var Ln=[null];function zn(t,n){this._groups=t,this._parents=n}function Dn(){return new zn([[document.documentElement]],Ln)}function Hn(t){return"string"==typeof t?new zn([[document.querySelector(t)]],[document.documentElement]):new zn([[t]],Ln)}zn.prototype=Dn.prototype={constructor:zn,select:function(t){"function"!=typeof t&&(t=jt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],s=a.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new zn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=zt(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new zn(r,i)},filter:function(t){"function"!=typeof t&&(t=Dt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new zn(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),c=-1,this.each((function(t){d[++c]=t})),d;var e,r=n?Ut:Vt,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var h=i[c],f=o[c],p=f.length,d=t.call(h,h&&h.__data__,c,i),v=d.length,y=s[c]=new Array(v),g=a[c]=new Array(v);r(h,f,y,g,l[c]=new Array(p),d,n);for(var m,_,w=0,b=0;w<v;++w)if(m=y[w]){for(w>=b&&(b=w+1);!(_=g[b])&&++b<v;);m._next=_||null}}return(a=new zn(a,i))._enter=s,a._exit=l,a},enter:function(){return new zn(this._enter||this._groups.map(Ht),this._parents)},exit:function(){return new zn(this._exit||this._groups.map(Ht),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],h=l.length,f=u[a]=new Array(h),p=0;p<h;++p)(s=l[p]||c[p])&&(f[p]=s);for(;a<r;++a)u[a]=n[a];return new zn(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ft);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new zn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=Tt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Jt:Gt:"function"==typeof n?e.local?Zt:Wt:e.local?Qt:Kt)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?nn:"function"==typeof n?rn:en)(t,n,null==e?"":e)):on(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?un:"function"==typeof n?sn:an)(t,n)):this.node()[t]},classed:function(t,n){var e=ln(t+"");if(arguments.length<2){for(var r=cn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?yn:n?dn:vn)(e,n))},text:function(t){return arguments.length?this.each(null==t?gn:("function"==typeof t?_n:mn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wn:("function"==typeof t?xn:bn)(t)):this.node().innerHTML},raise:function(){return this.each(kn)},lower:function(){return this.each(An)},append:function(t){var n="function"==typeof t?t:It(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:It(t),r=null==n?Nn:"function"==typeof n?n:jt(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(En)},clone:function(t){return this.select(t?Sn:Mn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=Xn(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?On:Tn,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?jn:Yn)(t,n))}};var Bn=o("start","end","cancel","interrupt"),Vn=[];function Un(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}function u(o){var l,c,h,f;if(1!==e.state)return s();for(l in i)if((f=i[l]).name===e.name){if(3===f.state)return bt(u);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(bt((function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(h=e.tween.length),l=0,c=-1;l<h;++l)(f=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=f);r.length=c+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(s),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),s())}function s(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=gt(o,0,e.time)}(t,e,{name:n,index:r,group:i,on:Bn,tween:Vn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Fn(t,n){var e=Jn(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Gn(t,n){var e=Jn(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Jn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Kn(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function Qn(t,n){var e,r;return function(){var i=Gn(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Wn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Gn(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function Zn(t,n,e){var r=t._id;return t.each((function(){var t=Gn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Jn(t,r).value[n]}}function te(t,n){var e;return("number"==typeof n?B:n instanceof M?H:(e=M(n))?(n=e,H):F)(t,n)}function ne(t){return function(){this.removeAttribute(t)}}function ee(t){return function(){this.removeAttributeNS(t.space,t.local)}}function re(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function ie(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function oe(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function ue(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function ae(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function se(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function le(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&se(t,i)),e}return i._value=n,i}function ce(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&ae(t,i)),e}return i._value=n,i}function he(t,n){return function(){Fn(this,t).delay=+n.apply(this,arguments)}}function fe(t,n){return n=+n,function(){Fn(this,t).delay=n}}function pe(t,n){return function(){Gn(this,t).duration=+n.apply(this,arguments)}}function de(t,n){return n=+n,function(){Gn(this,t).duration=n}}function ve(t,n){if("function"!=typeof n)throw new Error;return function(){Gn(this,t).ease=n}}function ye(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Fn:Gn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var ge=Dn.prototype.constructor;function me(t){return function(){this.style.removeProperty(t)}}function _e(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function we(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&_e(t,o,e)),r}return o._value=n,o}function be(t){return function(n){this.textContent=t.call(this,n)}}function xe(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&be(r)),n}return r._value=t,r}var ke=0;function Ae(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ne(){return++ke}var Ee=Dn.prototype;Ae.prototype={constructor:Ae,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=jt(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,l=r[u],c=l.length,h=o[u]=new Array(c),f=0;f<c;++f)(a=l[f])&&(s=t.call(a,a.__data__,f,l))&&("__data__"in a&&(s.__data__=a.__data__),h[f]=s,Un(h[f],n,e,f,h,Jn(a,e)));return new Ae(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=zt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],c=l.length,h=0;h<c;++h)if(s=l[h]){for(var f,p=t.call(s,s.__data__,h,l),d=Jn(s,e),v=0,y=p.length;v<y;++v)(f=p[v])&&Un(f,n,e,v,p,d);o.push(p),u.push(s)}return new Ae(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=Dt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new Ae(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],h=l.length,f=u[a]=new Array(h),p=0;p<h;++p)(s=l[p]||c[p])&&(f[p]=s);for(;a<r;++a)u[a]=n[a];return new Ae(u,this._parents,this._name,this._id)},selection:function(){return new ge(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Ne(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=Jn(u,n);Un(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ae(r,this._parents,t,e)},call:Ee.call,nodes:Ee.nodes,node:Ee.node,size:Ee.size,empty:Ee.empty,each:Ee.each,on:function(t,n){var e=this._id;return arguments.length<2?Jn(this.node(),e).on.on(t):this.each(ye(e,t,n))},attr:function(t,n){var e=Tt(t),r="transform"===e?ot:te;return this.attrTween(t,"function"==typeof n?(e.local?ue:oe)(e,r,Zn(this,"attr."+t,n)):null==n?(e.local?ee:ne)(e):(e.local?ie:re)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=Tt(t);return this.tween(e,(r.local?le:ce)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?it:te;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=on(this,t),u=(this.style.removeProperty(t),on(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,me(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=on(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=on(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,Zn(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=Gn(this,t),l=s.on,c=null==s.value[u]?o||(o=me(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=on(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,we(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Zn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,xe(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Jn(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Qn:Wn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?he:fe)(n,t)):Jn(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?pe:de)(n,t)):Jn(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(ve(n,t)):Jn(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=Gn(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n}))}))}};var Me={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Se(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Me.time=dt(),Me;return e}function Pe(t,n,e){this.k=t,this.x=n,this.y=e}Dn.prototype.interrupt=function(t){return this.each((function(){Kn(this,t)}))},Dn.prototype.transition=function(t){var n,e;t instanceof Ae?(n=t._id,t=t._name):(n=Ne(),(e=Me).time=dt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&Un(u,t,n,l,a,e||Se(u,n));return new Ae(r,this._parents,t,n)},Pe.prototype={constructor:Pe,scale:function(t){return 1===t?this:new Pe(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Pe(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $e=new Pe(1,0,0);export{Pe as T,Kn as a,L as b,Rn as c,o as d,$n as e,B as f,M as g,H as h,$e as i,F as j,Et as k,St as l,kt as m,Pt as n,qt as o,r as p,Hn as s,gt as t};