@daoyi/nmtl-ui 2.0.1-beta.1 → 2.0.1-beta.4

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 (71) hide show
  1. package/lib/components/Autocomplete.js +1 -0
  2. package/lib/components/Avatar.js +1 -0
  3. package/lib/components/BackTop.js +1 -0
  4. package/lib/components/BarChart.js +1 -0
  5. package/lib/components/Breadcrumbs.js +1 -0
  6. package/lib/components/Button.js +1 -0
  7. package/lib/components/Carousel.js +1 -0
  8. package/lib/components/Checkbox.js +1 -0
  9. package/lib/components/CollapseContent.js +1 -0
  10. package/lib/components/ContactModal.js +18 -0
  11. package/lib/components/Drawer.js +1 -0
  12. package/lib/components/Dropdown.js +1 -0
  13. package/lib/components/Empty-8a67e9c0.js +1 -0
  14. package/lib/components/Empty.js +1 -0
  15. package/lib/components/ExportButton.js +1 -0
  16. package/lib/components/ExtraTools.js +22 -0
  17. package/lib/components/Filter.js +12 -0
  18. package/lib/components/Footer.js +1 -0
  19. package/lib/components/Header.js +1 -0
  20. package/lib/components/Image.js +1 -0
  21. package/lib/components/Input.js +1 -0
  22. package/lib/components/InputMethod.js +26 -0
  23. package/lib/components/KeywordSearch-71d79d41.js +1 -0
  24. package/lib/components/KeywordSearch.js +1 -0
  25. package/lib/components/KeywordTicker.js +1 -0
  26. package/lib/components/Keywords.js +1 -0
  27. package/lib/components/Loading.js +1 -0
  28. package/lib/components/MUITheme.js +1 -0
  29. package/lib/components/Modal.js +1 -0
  30. package/lib/components/MoreButton.js +1 -0
  31. package/lib/components/Radio.js +1 -0
  32. package/lib/components/SNA.js +22 -0
  33. package/lib/components/Select-c8f23c48.js +1 -0
  34. package/lib/components/Select.js +1 -0
  35. package/lib/components/Spin.js +1 -0
  36. package/lib/components/Table.js +1 -0
  37. package/lib/components/Tooltip.js +1 -0
  38. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +1 -0
  39. package/lib/components/_rollupPluginBabelHelpers-b18bba19.js +1 -0
  40. package/lib/components/createSvgIcon-550e8fd8.js +1 -0
  41. package/lib/components/createSvgIcon-9d57472c.js +1 -0
  42. package/lib/components/createTheme-215d3b6c.js +1 -0
  43. package/lib/components/dataExport-9fccd4f0.js +1 -0
  44. package/lib/components/debounce-c993109b.js +1 -0
  45. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +1 -0
  46. package/lib/components/index-11391ca3.js +7 -0
  47. package/lib/components/index-b2745105.js +7 -0
  48. package/lib/components/isObjectLike-2f1983fe.js +1 -0
  49. package/lib/components/style-inject.es-1f59c1d0.js +1 -0
  50. package/lib/components/style-inject.es-c875d022.js +1 -0
  51. package/lib/components/transform-95ae0119.js +1 -0
  52. package/lib/index.d.ts +35 -0
  53. package/lib/index.js +35 -0
  54. package/lib/utils/_commonjsHelpers-e2cda605.js +1 -0
  55. package/lib/utils/_rollupPluginBabelHelpers-0b27a2cb.js +1 -0
  56. package/lib/utils/arrayMerge.js +1 -0
  57. package/lib/utils/chunkArray.js +1 -0
  58. package/lib/utils/convert2HtmlEntities.js +1 -0
  59. package/lib/utils/domToImage.js +1 -0
  60. package/lib/utils/downloadGephi.js +1 -0
  61. package/lib/utils/exportXlsx.js +1 -0
  62. package/lib/utils/historyAppendSearch.js +1 -0
  63. package/lib/utils/index.d.ts +13 -0
  64. package/lib/utils/index.js +13 -0
  65. package/lib/utils/isDevelopMode.js +1 -0
  66. package/lib/utils/parseYMD.js +1 -0
  67. package/lib/utils/removeDuplicateItem.js +1 -0
  68. package/lib/utils/sendEmail.js +1 -0
  69. package/lib/utils/snaDefine.js +1 -0
  70. package/lib/utils/snaPreProcess.js +1 -0
  71. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import{c as r}from"./style-inject.es-c875d022.js";var t=r((function(r){
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ !function(){var t={}.hasOwnProperty;function e(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o)){if(o.length){var i=e.apply(null,o);i&&r.push(i)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var a in o)t.call(o,a)&&o[a]&&r.push(a);else r.push(o.toString())}}return r.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}()}));export{t as c};
@@ -0,0 +1,7 @@
1
+ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}var r=o((function(e){
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ !function(){var t={}.hasOwnProperty;function o(){for(var e=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var f in n)t.call(n,f)&&n[f]&&e.push(f);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o}()}));export{e as a,o as b,r as c,t as u};
@@ -0,0 +1 @@
1
+ import{a as t}from"./style-inject.es-c875d022.js";var e=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},o="object"==typeof t&&t&&t.Object===Object&&t,r="object"==typeof self&&self&&self.Object===Object&&self,n=o||r||Function("return this")(),c=n.Symbol,a=Object.prototype,i=a.hasOwnProperty,l=a.toString,u=c?c.toStringTag:void 0;var f=function(t){var e=i.call(t,u),o=t[u];try{t[u]=void 0;var r=!0}catch(t){}var n=l.call(t);return r&&(e?t[u]=o:delete t[u]),n},b=Object.prototype.toString;var j=function(t){return b.call(t)},s=c?c.toStringTag:void 0;var v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?f(t):j(t)};var p=function(t){return null!=t&&"object"==typeof t};export{n as _,v as a,e as b,o as c,p as i};
@@ -0,0 +1 @@
1
+ function e(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===d&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}export{e as s};
@@ -0,0 +1 @@
1
+ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function r(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}export{e as a,t as b,o as c,r as s,n as u};
@@ -0,0 +1 @@
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}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 c="http://www.w3.org/1999/xhtml",h={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),h.hasOwnProperty(n)?{space:h[n],local:t}:t}function p(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===c&&n.documentElement.namespaceURI===c?n.createElement(t):n.createElementNS(e,t)}}function d(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function v(t){var n=f(t);return(n.local?d:p)(n)}function y(){}function g(t){return null==t?y:function(){return this.querySelector(t)}}function m(){return[]}function _(t){return null==t?m:function(){return this.querySelectorAll(t)}}function w(t){return function(){return this.matches(t)}}function b(t){return new Array(t.length)}function x(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}x.prototype={constructor:x,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 k(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 x(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function A(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 x(t,o[a]);for(a=0;a<h;++a)(s=n[a])&&c[p[a]]===s&&(i[a]=s)}function N(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function E(t){return function(){this.removeAttribute(t)}}function M(t){return function(){this.removeAttributeNS(t.space,t.local)}}function S(t,n){return function(){this.setAttribute(t,n)}}function P(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function $(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function q(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 C(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function X(t){return function(){this.style.removeProperty(t)}}function T(t,n,e){return function(){this.style.setProperty(t,n,e)}}function O(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function R(t,n){return t.style.getPropertyValue(n)||C(t).getComputedStyle(t,null).getPropertyValue(n)}function I(t){return function(){delete this[t]}}function Y(t,n){return function(){this[t]=n}}function j(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function L(t){return t.trim().split(/^|\s+/)}function z(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=L(t.getAttribute("class")||"")}function H(t,n){for(var e=z(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function B(t,n){for(var e=z(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function V(t){return function(){H(this,t)}}function U(t){return function(){B(this,t)}}function F(t,n){return function(){(n.apply(this,arguments)?H:B)(this,t)}}function G(){this.textContent=""}function J(t){return function(){this.textContent=t}}function K(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Q(){this.innerHTML=""}function W(t){return function(){this.innerHTML=t}}function Z(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function tt(){this.nextSibling&&this.parentNode.appendChild(this)}function nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function et(){return null}function rt(){var t=this.parentNode;t&&t.removeChild(this)}function it(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ot(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}D.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 ut={},at=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ut={mouseenter:"mouseover",mouseleave:"mouseout"}));function st(t,n,e){return t=lt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function lt(t,n,e){return function(r){var i=at;at=r;try{t.call(this,this.__data__,n,e)}finally{at=i}}}function ct(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 ht(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 ft(t,n,e){var r=ut.hasOwnProperty(t.type)?st:lt;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 pt(t,n,e,r){var i=at;t.sourceEvent=at,at=t;try{return n.apply(e,r)}finally{at=i}}function dt(t,n,e){var r=C(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 vt(t,n){return function(){return dt(this,t,n)}}function yt(t,n){return function(){return dt(this,t,n.apply(this,arguments))}}var gt=[null];function mt(t,n){this._groups=t,this._parents=n}function _t(){return new mt([[document.documentElement]],gt)}function wt(t){return"string"==typeof t?new mt([[document.querySelector(t)]],[document.documentElement]):new mt([[t]],gt)}function bt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function xt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function kt(){}mt.prototype=_t.prototype={constructor:mt,select:function(t){"function"!=typeof t&&(t=g(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 mt(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=_(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 mt(r,i)},filter:function(t){"function"!=typeof t&&(t=w(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 mt(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?A:k,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 mt(a,i))._enter=s,a._exit=l,a},enter:function(){return new mt(this._enter||this._groups.map(b),this._parents)},exit:function(){return new mt(this._exit||this._groups.map(b),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 mt(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=N);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 mt(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=f(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?M:E:"function"==typeof n?e.local?q:$:e.local?P:S)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?X:"function"==typeof n?O:T)(t,n,null==e?"":e)):R(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?I:"function"==typeof n?j:Y)(t,n)):this.node()[t]},classed:function(t,n){var e=L(t+"");if(arguments.length<2){for(var r=z(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?F:n?V:U)(e,n))},text:function(t){return arguments.length?this.each(null==t?G:("function"==typeof t?K:J)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Q:("function"==typeof t?Z:W)(t)):this.node().innerHTML},raise:function(){return this.each(tt)},lower:function(){return this.each(nt)},append:function(t){var n="function"==typeof t?t:v(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:v(t),r=null==n?et:"function"==typeof n?n:g(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(rt)},clone:function(t){return this.select(t?ot:it)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=ct(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?ft:ht,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?yt:vt)(t,n))}};var At=1/.7,Nt="\\s*([+-]?\\d+)\\s*",Et="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",St=/^#([0-9a-f]{3,8})$/,Pt=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),$t=new RegExp("^rgb\\("+[Mt,Mt,Mt]+"\\)$"),qt=new RegExp("^rgba\\("+[Nt,Nt,Nt,Et]+"\\)$"),Ct=new RegExp("^rgba\\("+[Mt,Mt,Mt,Et]+"\\)$"),Xt=new RegExp("^hsl\\("+[Et,Mt,Mt]+"\\)$"),Tt=new RegExp("^hsla\\("+[Et,Mt,Mt,Et]+"\\)$"),Ot={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 Rt(){return this.rgb().formatHex()}function It(){return this.rgb().formatRgb()}function Yt(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=St.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?jt(n):3===e?new Ht(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Lt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Lt(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=Pt.exec(t))?new Ht(n[1],n[2],n[3],1):(n=$t.exec(t))?new Ht(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qt.exec(t))?Lt(n[1],n[2],n[3],n[4]):(n=Ct.exec(t))?Lt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xt.exec(t))?Ft(n[1],n[2]/100,n[3]/100,1):(n=Tt.exec(t))?Ft(n[1],n[2]/100,n[3]/100,n[4]):Ot.hasOwnProperty(t)?jt(Ot[t]):"transparent"===t?new Ht(NaN,NaN,NaN,0):null}function jt(t){return new Ht(t>>16&255,t>>8&255,255&t,1)}function Lt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ht(t,n,e,r)}function zt(t){return t instanceof kt||(t=Yt(t)),t?new Ht((t=t.rgb()).r,t.g,t.b,t.opacity):new Ht}function Dt(t,n,e,r){return 1===arguments.length?zt(t):new Ht(t,n,e,null==r?1:r)}function Ht(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Bt(){return"#"+Ut(this.r)+Ut(this.g)+Ut(this.b)}function Vt(){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 Ut(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ft(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Jt(t,n,e,r)}function Gt(t){if(t instanceof Jt)return new Jt(t.h,t.s,t.l,t.opacity);if(t instanceof kt||(t=Yt(t)),!t)return new Jt;if(t instanceof Jt)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 Jt(u,a,s,t.opacity)}function Jt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Kt(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 Qt(t){return function(){return t}}function Wt(t){return 1==(t=+t)?Zt: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):Qt(isNaN(n)?e:n)}}function Zt(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Qt(isNaN(t)?n:t)}bt(kt,Yt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Rt,formatHex:Rt,formatHsl:function(){return Gt(this).formatHsl()},formatRgb:It,toString:It}),bt(Ht,Dt,xt(kt,{brighter:function(t){return t=null==t?At:Math.pow(At,t),new Ht(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ht(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:Bt,formatHex:Bt,formatRgb:Vt,toString:Vt})),bt(Jt,(function(t,n,e,r){return 1===arguments.length?Gt(t):new Jt(t,n,e,null==r?1:r)}),xt(kt,{brighter:function(t){return t=null==t?At:Math.pow(At,t),new Jt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Jt(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 Ht(Kt(t>=240?t-240:t+120,i,r),Kt(t,i,r),Kt(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 tn=function t(n){var e=Wt(n);function r(t,n){var r=e((t=Dt(t)).r,(n=Dt(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=Zt(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 nn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var en=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rn=new RegExp(en.source,"g");function on(t,n){var e,r,i,o=en.lastIndex=rn.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=en.exec(t))&&(r=rn.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:nn(e,r)})),o=rn.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 un,an,sn,ln,cn=180/Math.PI,hn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fn(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)*cn,skewX:Math.atan(s)*cn,scaleX:u,scaleY:a}}function pn(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:nn(t,i)},{i:s-2,x:nn(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:nn(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:nn(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:nn(t,e)},{i:a-2,x:nn(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 dn,vn,yn=pn((function(t){return"none"===t?hn:(un||(un=document.createElement("DIV"),an=document.documentElement,sn=document.defaultView),un.style.transform=t,t=sn.getComputedStyle(an.appendChild(un),null).getPropertyValue("transform"),an.removeChild(un),fn(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),gn=pn((function(t){return null==t?hn:(ln||(ln=document.createElementNS("http://www.w3.org/2000/svg","g")),ln.setAttribute("transform",t),(t=ln.transform.baseVal.consolidate())?fn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):hn)}),", ",")",")"),mn=0,_n=0,wn=0,bn=0,xn=0,kn=0,An="object"==typeof performance&&performance.now?performance:Date,Nn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function En(){return xn||(Nn(Mn),xn=An.now()+kn)}function Mn(){xn=0}function Sn(){this._call=this._time=this._next=null}function Pn(t,n,e){var r=new Sn;return r.restart(t,n,e),r}function $n(){xn=(bn=An.now())+kn,mn=_n=0;try{!function(){En(),++mn;for(var t,n=dn;n;)(t=xn-n._time)>=0&&n._call.call(null,t),n=n._next;--mn}()}finally{mn=0,function(){var t,n,e=dn,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:dn=n);vn=t,Cn(r)}(),xn=0}}function qn(){var t=An.now(),n=t-bn;n>1e3&&(kn-=n,bn=t)}function Cn(t){mn||(_n&&(_n=clearTimeout(_n)),t-xn>24?(t<1/0&&(_n=setTimeout($n,t-An.now()-kn)),wn&&(wn=clearInterval(wn))):(wn||(bn=An.now(),wn=setInterval(qn,1e3)),mn=1,Nn($n)))}function Xn(t,n,e){var r=new Sn;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}Sn.prototype=Pn.prototype={constructor:Sn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?En():+e)+(null==n?0:+n),this._next||vn===this||(vn?vn._next=this:dn=this,vn=this),this._call=t,this._time=e,Cn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Cn())}};var Tn=o("start","end","cancel","interrupt"),On=[];function Rn(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 Xn(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(Xn((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=Pn(o,0,e.time)}(t,e,{name:n,index:r,group:i,on:Tn,tween:On,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function In(t,n){var e=jn(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Yn(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 Ln(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 zn(t,n){var e,r;return function(){var i=Yn(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 Dn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Yn(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 Hn(t,n,e){var r=t._id;return t.each((function(){var t=Yn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return jn(t,r).value[n]}}function Bn(t,n){var e;return("number"==typeof n?nn:n instanceof Yt?tn:(e=Yt(n))?(n=e,tn):on)(t,n)}function Vn(t){return function(){this.removeAttribute(t)}}function Un(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fn(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 Gn(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 Jn(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 Kn(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 Qn(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Wn(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Zn(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Wn(t,i)),e}return i._value=n,i}function te(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Qn(t,i)),e}return i._value=n,i}function ne(t,n){return function(){In(this,t).delay=+n.apply(this,arguments)}}function ee(t,n){return n=+n,function(){In(this,t).delay=n}}function re(t,n){return function(){Yn(this,t).duration=+n.apply(this,arguments)}}function ie(t,n){return n=+n,function(){Yn(this,t).duration=n}}function oe(t,n){if("function"!=typeof n)throw new Error;return function(){Yn(this,t).ease=n}}function ue(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)?In:Yn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var ae=_t.prototype.constructor;function se(t){return function(){this.style.removeProperty(t)}}function le(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function ce(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&le(t,o,e)),r}return o._value=n,o}function he(t){return function(n){this.textContent=t.call(this,n)}}function fe(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&he(r)),n}return r._value=t,r}var pe=0;function de(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ve(){return++pe}var ye=_t.prototype;de.prototype={constructor:de,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=g(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,Rn(h[f],n,e,f,h,jn(a,e)));return new de(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=_(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])&&Rn(f,n,e,v,p,d);o.push(p),u.push(s)}return new de(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=w(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 de(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 de(u,this._parents,this._name,this._id)},selection:function(){return new ae(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=ve(),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);Rn(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new de(r,this._parents,t,e)},call:ye.call,nodes:ye.nodes,node:ye.node,size:ye.size,empty:ye.empty,each:ye.each,on:function(t,n){var e=this._id;return arguments.length<2?jn(this.node(),e).on.on(t):this.each(ue(e,t,n))},attr:function(t,n){var e=f(t),r="transform"===e?gn:Bn;return this.attrTween(t,"function"==typeof n?(e.local?Kn:Jn)(e,r,Hn(this,"attr."+t,n)):null==n?(e.local?Un:Vn)(e):(e.local?Gn:Fn)(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=f(t);return this.tween(e,(r.local?Zn:te)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?yn:Bn;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=R(this,t),u=(this.style.removeProperty(t),R(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,se(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=R(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=R(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,Hn(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=Yn(this,t),l=s.on,c=null==s.value[u]?o||(o=se(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=R(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,ce(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}}(Hn(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,fe(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?zn:Dn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ne:ee)(n,t)):jn(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?re:ie)(n,t)):jn(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(oe(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=Yn(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 ge={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function me(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return ge.time=En(),ge;return e}_t.prototype.interrupt=function(t){return this.each((function(){Ln(this,t)}))},_t.prototype.transition=function(t){var n,e;t instanceof de?(n=t._id,t=t._name):(n=ve(),(e=ge).time=En(),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])&&Rn(u,t,n,l,a,e||me(u,n));return new de(r,this._parents,t,n)};function _e(){}function we(t,n){var e=new _e;if(t instanceof _e)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 be(){}_e.prototype=we.prototype={constructor:_e,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 xe=we.prototype;function ke(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}be.prototype={constructor:be,has:xe.has,add:function(t){return this["$"+(t+="")]=t,this},remove:xe.remove,clear:xe.clear,values:xe.keys,size:xe.size,empty:xe.empty,each:xe.each};var Ae=Array.prototype,Ne=Ae.map,Ee=Ae.slice,Me={name:"implicit"};function Se(){var t=we(),n=[],e=[],r=Me;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==Me)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=we();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=Ee.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Se(n,e).unknown(r)},ke.apply(i,arguments),i}function Pe(t,n,e){this.k=t,this.x=n,this.y=e}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,Ln as a,Qt as b,pt as c,o as d,at as e,nn as f,Yt as g,tn as h,$e as i,on as j,ke as k,Ne as l,we as m,Ee as n,Se as o,r as p,wt as s,Pn as t};
package/lib/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ export { default as Avatar } from './components/Avatar';
2
+ export { default as Autocomplete } from './components/Autocomplete';
3
+ export { default as Button } from './components/Button';
4
+ export { default as BackTop } from './components/BackTop';
5
+ export { default as Carousel } from './components/Carousel';
6
+ export { default as Checkbox } from './components/Checkbox';
7
+ export { default as Drawer } from './components/Drawer';
8
+ export { default as Empty } from './components/Empty';
9
+ export { default as Image } from './components/Image';
10
+ export { default as InputMethod } from './components/InputMethod';
11
+ export { default as Loading } from './components/Loading';
12
+ export { default as Modal } from './components/Modal';
13
+ export { default as Radio } from './components/Radio';
14
+ export { default as Select } from './components/Select';
15
+ export { default as Spin } from './components/Spin';
16
+ export { default as Table } from './components/Table';
17
+ export { default as Tooltip } from './components/Tooltip';
18
+ export { default as Input } from './components/Input';
19
+ export { default as Dropdown } from './components/Dropdown';
20
+ export { default as Breadcrumbs } from './components/Breadcrumbs';
21
+ export { default as ExportButton } from './components/ExportButton';
22
+ export { default as SNA } from './components/SNA';
23
+ export { default as BarChart } from './components/BarChart';
24
+
25
+ export { default as ContactModal } from './components/ContactModal';
26
+ export { default as KeywordSearch } from './components/KeywordSearch';
27
+ export { default as MUITheme } from './components/MUITheme';
28
+ export { default as Header } from './components/Header';
29
+ export { default as Footer } from './components/Footer';
30
+ export { default as Keywords } from './components/Keywords';
31
+ export { default as CollapseContent } from './components/CollapseContent';
32
+ export { default as MoreButton } from './components/MoreButton';
33
+ export { default as KeywordTicker } from './components/KeywordTicker';
34
+ export { default as ExtraTools } from './components/ExtraTools';
35
+ export { default as Filter } from './components/Filter';
package/lib/index.js ADDED
@@ -0,0 +1,35 @@
1
+ export { default as Avatar } from './components/Avatar';
2
+ export { default as Autocomplete } from './components/Autocomplete';
3
+ export { default as Button } from './components/Button';
4
+ export { default as BackTop } from './components/BackTop';
5
+ export { default as Carousel } from './components/Carousel';
6
+ export { default as Checkbox } from './components/Checkbox';
7
+ export { default as Drawer } from './components/Drawer';
8
+ export { default as Empty } from './components/Empty';
9
+ export { default as Image } from './components/Image';
10
+ export { default as InputMethod } from './components/InputMethod';
11
+ export { default as Loading } from './components/Loading';
12
+ export { default as Modal } from './components/Modal';
13
+ export { default as Radio } from './components/Radio';
14
+ export { default as Select } from './components/Select';
15
+ export { default as Spin } from './components/Spin';
16
+ export { default as Table } from './components/Table';
17
+ export { default as Tooltip } from './components/Tooltip';
18
+ export { default as Input } from './components/Input';
19
+ export { default as Dropdown } from './components/Dropdown';
20
+ export { default as Breadcrumbs } from './components/Breadcrumbs';
21
+ export { default as ExportButton } from './components/ExportButton';
22
+ export { default as SNA } from './components/SNA';
23
+ export { default as BarChart } from './components/BarChart';
24
+
25
+ export { default as ContactModal } from './components/ContactModal';
26
+ export { default as KeywordSearch } from './components/KeywordSearch';
27
+ export { default as MUITheme } from './components/MUITheme';
28
+ export { default as Header } from './components/Header';
29
+ export { default as Footer } from './components/Footer';
30
+ export { default as Keywords } from './components/Keywords';
31
+ export { default as CollapseContent } from './components/CollapseContent';
32
+ export { default as MoreButton } from './components/MoreButton';
33
+ export { default as KeywordTicker } from './components/KeywordTicker';
34
+ export { default as ExtraTools } from './components/ExtraTools';
35
+ export { default as Filter } from './components/Filter';
@@ -0,0 +1 @@
1
+ function r(r,t){return r(t={exports:{}},t.exports),t.exports}export{r as c};
@@ -0,0 +1 @@
1
+ function r(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function e(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function n(r,t){if(null==r)return{};var e,n,o=function(r,t){if(null==r)return{};var e,n,o={},a=Object.keys(r);for(n=0;n<a.length;n++)e=a[n],t.indexOf(e)>=0||(o[e]=r[e]);return o}(r,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(n=0;n<a.length;n++)e=a[n],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(r,e)&&(o[e]=r[e])}return o}function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==e)return;var n,o,a=[],i=!0,u=!1;try{for(e=e.call(r);!(i=(n=e.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(r){u=!0,o=r}finally{try{i||null==e.return||e.return()}finally{if(u)throw o}}return a}(r,t)||i(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(r){return function(r){if(Array.isArray(r))return u(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||i(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){if(r){if("string"==typeof r)return u(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(r,t):void 0}}function u(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}export{a as _,o as a,n as b,t as c};
@@ -0,0 +1 @@
1
+ var t={};t.author=function(t,r){return t.reduce((function(t,u){if(Object.keys(u).indexOf(r)<0)return t.push(u),t;var o=t.find((function(t){return t[r]===u[r]}));return o?(o.authors=u.authorId?o.authors.concat({author:u.author,authorId:u.authorId}):o.authors,o.authorId=u.authorId?o.authorId.concat(u.authorId):o.authorId,o.author=u.author?o.author.concat(u.author):o.author):(u.authors=[{author:u.author,authorId:u.authorId}],u.authorId=u.authorId?[u.authorId]:[],u.author=u.author?[u.author]:[],t.push(u)),t}),[])},t.timeline=function(t,r,u){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mergedList";return t.reduce((function(t,a){var n=t.find((function(t){var u=!0;return r.forEach((function(r){Object.keys(a).indexOf(r)<0&&(u=!1),Object.keys(t).indexOf(r)<0&&(u=!1),t[r]!==a[r]&&(u=!1)})),u?t:null})),h=function(t,r){var u={};return r.forEach((function(r){u[r]=t[r]})),u};return n?n[o]=n[o].concat(h(a,u)):(a[o]=[h(a,u)],t.push(a)),t}),[])};export{t as default};
@@ -0,0 +1 @@
1
+ var u=function(u,e){return u.reduce((function(u,n,r){return r%e?u[u.length-1].push(n):u.push([n]),u}),[])};export{u as default};
@@ -0,0 +1 @@
1
+ var r=new(0,require("html-to-react").Parser),e=require("markdown-it")({html:!1,xhtmlOut:!0,breaks:!0,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:function(){return""}}),t=function(t){return void 0===t?"":r.parse(e.render(t))};export{t as default};
@@ -0,0 +1 @@
1
+ import{c as e}from"./_commonjsHelpers-e2cda605.js";var t=e((function(e){!function(t){var n=function(){return{escape:function(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",o="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,o},dataAsUrl:function(e,t){return"data:"+t+";base64,"+e},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise((function(t){e.toBlob(t)})):function(e){return new Promise((function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),r=n.length,o=new Uint8Array(r),i=0;i<r;i++)o[i]=n.charCodeAt(i);t(new Blob([o],{type:"image/png"}))}))}(e)},resolveUrl:function(e,t){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var o=n.createElement("a");return n.body.appendChild(o),r.href=t,o.href=e,o.href},getAndEncode:function(e){var t=3e4;a.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,o=new XMLHttpRequest;if(o.onreadystatechange=u,o.ontimeout=c,o.responseType="blob",o.timeout=t,o.open("GET",e,!0),o.send(),a.impl.options.imagePlaceholder){var i=a.impl.options.imagePlaceholder.split(/,/);i&&i[1]&&(r=i[1])}function u(){if(4===o.readyState)if(200===o.status){var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(o.response)}else r?n(r):l("cannot fetch resource: "+e+", status: "+o.status)}function c(){r?n(r):l("timeout of "+t+"ms occured while fetching resource: "+e)}function l(e){console.error(e),n("")}}))},uid:(e=0,function(){return"u"+t()+e++;function t(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}),delay:function(e){return function(t){return new Promise((function(n){setTimeout((function(){n(t)}),e)}))}},asArray:function(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t},escapeXhtml:function(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=e}))},width:function(e){var t=n(e,"border-left-width"),r=n(e,"border-right-width");return e.scrollWidth+t+r},height:function(e){var t=n(e,"border-top-width"),r=n(e,"border-bottom-width");return e.scrollHeight+t+r}};var e;function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}}(),r=function(){var e=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(e,n,i){return u()?Promise.resolve(e):Promise.resolve(e).then(r).then((function(t){var r=Promise.resolve(e);return t.forEach((function(e){r=r.then((function(t){return o(t,e,n,i)}))})),r}));function u(){return!t(e)}},shouldProcess:t,impl:{readUrls:r,inline:o}};function t(t){return-1!==t.search(e)}function r(t){for(var r,o=[];null!==(r=e.exec(t));)o.push(r[1]);return o.filter((function(e){return!n.isDataUrl(e)}))}function o(e,t,r,o){return Promise.resolve(t).then((function(e){return r?n.resolveUrl(e,r):e})).then(o||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t))})).then((function(r){return e.replace(function(e){return new RegExp("(url\\(['\"]?)("+n.escape(e)+")(['\"]?\\))","g")}(t),"$1"+r+"$3")}))}}(),o=function(){return{resolveAll:function(){return e().then((function(e){return Promise.all(e.map((function(e){return e.resolve()})))})).then((function(e){return e.join("\n")}))},impl:{readAll:e}};function e(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(e){var t=[];return e.forEach((function(e){try{n.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}})),t})).then((function(e){return e.filter((function(e){return e.type===CSSRule.FONT_FACE_RULE})).filter((function(e){return r.shouldProcess(e.style.getPropertyValue("src"))}))})).then((function(t){return t.map(e)}));function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return r.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}}(),i=function(){return{inlineAll:function t(o){return o instanceof Element?i(o).then((function(){return o instanceof HTMLImageElement?e(o).inline():Promise.all(n.asArray(o.childNodes).map((function(e){return t(e)})))})):Promise.resolve(o);function i(e){var t=e.style.getPropertyValue("background");return t?r.inlineAll(t).then((function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))})).then((function(){return e})):Promise.resolve(e)}},impl:{newImage:e}};function e(e){return{inline:function(t){return n.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e.src))})).then((function(t){return new Promise((function(n,r){e.onload=n,e.onerror=r,e.src=t}))}))}}}}(),u={imagePlaceholder:void 0,cacheBust:!1},a={toSvg:c,toPng:function(e,t){return l(e,t||{}).then((function(e){return e.toDataURL()}))},toJpeg:function(e,t){return l(e,t=t||{}).then((function(e){return e.toDataURL("image/jpeg",t.quality||1)}))},toBlob:function(e,t){return l(e,t||{}).then(n.canvasToBlob)},toPixelData:function(e,t){return l(e,t||{}).then((function(t){return t.getContext("2d").getImageData(0,0,n.width(e),n.height(e)).data}))},impl:{fontFaces:o,images:i,util:n,inliner:r,options:{}}};function c(e,t){return function(e){void 0===e.imagePlaceholder?a.impl.options.imagePlaceholder=u.imagePlaceholder:a.impl.options.imagePlaceholder=e.imagePlaceholder;void 0===e.cacheBust?a.impl.options.cacheBust=u.cacheBust:a.impl.options.cacheBust=e.cacheBust}(t=t||{}),Promise.resolve(e).then((function(e){return s(e,t.filter,!0)})).then(f).then(h).then((function(e){t.bgcolor&&(e.style.backgroundColor=t.bgcolor);t.width&&(e.style.width=t.width+"px");t.height&&(e.style.height=t.height+"px");t.style&&Object.keys(t.style).forEach((function(n){e.style[n]=t.style[n]}));return e})).then((function(r){return function(e,t,r){return Promise.resolve(e).then((function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)})).then(n.escapeXhtml).then((function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"})).then((function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+r+'">'+e+"</svg>"})).then((function(e){return"data:image/svg+xml;charset=utf-8,"+e}))}(r,t.width||n.width(e),t.height||n.height(e))}))}function l(e,t){return c(e,t).then(n.makeImage).then(n.delay(100)).then((function(r){var o=function(e){var r=document.createElement("canvas");if(r.width=t.width||n.width(e),r.height=t.height||n.height(e),t.bgcolor){var o=r.getContext("2d");o.fillStyle=t.bgcolor,o.fillRect(0,0,r.width,r.height)}return r}(e);return o.getContext("2d").drawImage(r,0,0),o}))}function s(e,t,r){return r||!t||t(e)?Promise.resolve(e).then((function(e){return e instanceof HTMLCanvasElement?n.makeImage(e.toDataURL()):e.cloneNode(!1)})).then((function(r){return function(e,t,r){var o=e.childNodes;return 0===o.length?Promise.resolve(t):i(t,n.asArray(o),r).then((function(){return t}));function i(e,t,n){var r=Promise.resolve();return t.forEach((function(t){r=r.then((function(){return s(t,n)})).then((function(t){t&&e.appendChild(t)}))})),r}}(e,r,t)})).then((function(t){return function(e,t){return t instanceof Element?Promise.resolve().then(r).then(o).then(i).then(u).then((function(){return t})):t;function r(){function r(e,t){function r(e,t){n.asArray(e).forEach((function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))}))}e.cssText?t.cssText=e.cssText:r(e,t)}r(window.getComputedStyle(e),t.style)}function o(){function r(r){var o=window.getComputedStyle(e,r),i=o.getPropertyValue("content");if(""!==i&&"none"!==i){var u=n.uid();t.className=t.className+" "+u;var a=document.createElement("style");a.appendChild(c(u,r,o)),t.appendChild(a)}function c(e,t,r){var o="."+e+":"+t,i=r.cssText?u(r):a(r);return document.createTextNode(o+"{"+i+"}");function u(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}function a(e){return n.asArray(e).map(t).join("; ")+";";function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}}}}[":before",":after"].forEach((function(e){r(e)}))}function i(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function u(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach((function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)})))}}(e,t)})):Promise.resolve()}function f(e){return o.resolveAll().then((function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e}))}function h(e){return i.inlineAll(e).then((function(){return e}))}e.exports=a}()})),n=function(e){var n=e.id,r=e.fileName,o=void 0===r?"image":r,i=e.quality,u=void 0===i?.95:i,a=document.getElementById(n),c=document.getElementById("yaxis"),l=document.getElementById("barChart__block");c&&c.setAttribute("transform","translate(0, 0 )"),t.toPng(a,{quality:u}).then((function(e){var t=document.createElement("a");t.download="".concat(o,".png"),t.href=e,t.click(),c&&l&&(c.setAttribute("transform","translate(0, 0 )"),c.setAttribute("transform","translate(".concat(l.scrollLeft,", 0)")))})).catch((function(e){console.error("oops, something went wrong!",e)}))};export{n as default};
@@ -0,0 +1 @@
1
+ var e=require("jszip"),t=require("react-file-download"),n=function(n){var r=n.nodes,a=(n.links||[]).map((function(e){var t=e.source,n=e.target;return{source:r[t].name,target:r[n].name,sourceType:r[t].type,targetType:r[n].type}})),c=function(e){var t=1e7,n={},r=!1;e.forEach((function(e){var a=e.source,c=e.target,o=e.sourceType,E=e.targetType;""!==c&&""!==a&&(Object.keys(n).indexOf(a)<0?(""!==o?(r=!0,n[a]={ID:t,WEIGHT:1,NODE_TYPE:o}):n[a]={ID:t,WEIGHT:1},t+=1):n[a].WEIGHT+=1,Object.keys(n).indexOf(c)<0?(""!==E?(r=!0,n[c]={ID:t,WEIGHT:1,NODE_TYPE:E}):n[c]={ID:t,WEIGHT:1},t+=1):n[c].WEIGHT+=1)}));var a=r?"ID\tLABEL\tWEIGHT\tNODE_TYPE\r\n":"ID\tLABEL\tWEIGHT\r\n";return Object.keys(n).forEach((function(e){var t=n[e].ID,c=n[e].WEIGHT,o=r?n[e].NODE_TYPE:"";a+=r?"".concat(t,"\t").concat(e,"\t").concat(c,"\t").concat(o,"\r\n"):"".concat(t,"\t").concat(e,"\t").concat(c,"\r\n")})),{nodeMap:n,nodesTsv:a}}(a),o=c.nodeMap,E=c.nodesTsv,T=function(e,t){var n="SOURCE\tTARGET\tWEIGHT\tTYPE\r\n";return e.forEach((function(e){var r=e.source,a=e.target;if(""!==a&&""!==r){var c=t[r].ID,o=t[a].ID;n+="".concat(c,"\t").concat(o,"\t1\tUndirected\r\n")}})),n}(a,o),i=new e;i.file("Node_Table.tsv",E),i.file("Edge_Table.tsv",T),i.generateAsync({type:"blob"}).then((function(e){t(e,"Gephi_generated_by_NMTL.zip")}))};export{n as default};
@@ -0,0 +1 @@
1
+ import{a as t}from"./_rollupPluginBabelHelpers-0b27a2cb.js";var e=function(t){var e,n=t.data,a=t.dataType,o=t.extType,r=void 0===o?"xlsx":o;if("sna"===a)e=function(t){var e=t||{},n=e.links,a=e.nodes;return n&&n.length>0?n.map((function(t){return{From:a[t.source].name,To:a[t.target].name}})):[]}(n);else e=n;!function(t,e,n,a){var o=new Blob(void 0!==a?[a,t]:[t],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,e);else{var r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),c=document.createElement("a");c.style.display="none",c.href=r,c.setAttribute("download",e),void 0===c.download&&c.setAttribute("target","_blank"),document.body.appendChild(c),c.click(),setTimeout((function(){document.body.removeChild(c),window.URL.revokeObjectURL(r)}),200)}}("\ufeff".concat(function(t){var e="";if(Array.isArray(t)&&t.length>0){var n=Object.keys(t[0]);e+="".concat(n.toString(),"\n"),t.forEach((function(t){n.forEach((function(n){e+="".concat(t[n],",")})),e+="\n"}))}else{var a=Object.keys(t);e+="".concat(a.toString(),"\n"),a.forEach((function(n){e+="".concat(t[n],",")})),e+="\n"}return e}(e)),"output.".concat(r))};e.chronologyConvert=function(e){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split('<span class="tooltip">'),a=t(n,2),o=a[0],r=a[1];return{before:o,after:r}};return(e||[]).map((function(t){var e=t.start_date,a=e.day,o=e.month,r=e.year,c=t.display_date,i=t.text,l=i.headline,u=i.text;return{"日期":"".concat(r||"","/").concat(o||"","/").concat(a||""),"名稱":(c||"").replace("<span>","").replace("</span>",""),"描述":(l||"").replaceAll(/(<([^>]+)>)/gi,""),"類型":n(u).before,"註(資料集名稱)":n(u).after.replaceAll("\n","").replaceAll("\t","").replace("註","").replace("資料來源:","").replaceAll(/(<([^>]+)>)/gi,"")}}))},e.mapConvert=function(t){return(t||[]).map((function(t){return{"名稱(書名/文章名)":t.title||"","作者":t.author||"","出版者":t.publisher||"","地點(作品描述區域)":t.locations||"","經度":t.posX||"","緯度":t.posY||""}}))},e.mapLgConvert=function(t){return(t||[]).map((function(t){var e=t.title,n=t.locationOfFormation,a=t.workLocations;return{"組織名稱":e||"","創立地點":n,"創立地點經度":t.createPosX||"","創立地點緯度":t.createPosY||"","活動地點":a||"","活動地點經度":t.activePosX||"","活動地點緯度":t.activePosY||""}}))},e.worksBarChart=function(t){return(t||[]).map((function(t){var e=t.date,n=t.year,a=t.title,o=t.keywords,r=t.authors,c=t.genreName;return{"出版年/發表年":e||n||"","名稱(書名/文章名)":a||"","作者":(r||[]).map((function(t){return t.author})).join(","),"關鍵字":(o||"").replaceAll("\n",""),"文學分類":c||""}}))},e.worksSlider=function(t){return(t||[]).map((function(t){return{"名稱(書名/文章名)":t.title||"","作者":t.author||"","出版日期/發表日期":t.date||""}}))};export{e as default};
@@ -0,0 +1 @@
1
+ import{b as r,c as e}from"./_rollupPluginBabelHelpers-0b27a2cb.js";import t from"prop-types";import{c as o}from"./_commonjsHelpers-e2cda605.js";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function s(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),o=r.slice(e);return Array.prototype.concat.call([],s(t),s(o))}function c(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t<e.length;t++)e=(r=s(e,t).join("")).match(n);return r}}var i=function(r){if("string"!=typeof r)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(e){return function(r){for(var e={"%FE%FF":"��","%FF%FE":"��"},t=a.exec(r);t;){try{e[t[0]]=decodeURIComponent(t[0])}catch(r){var o=c(t[0]);o!==t[0]&&(e[t[0]]=o)}t=a.exec(r)}e["%C2"]="�";for(var n=Object.keys(e),s=0;s<n.length;s++){var i=n[s];r=r.replace(new RegExp(i,"g"),e[i])}return r}(r)}},l=(r,e)=>{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]},u=o((function(r,e){function t(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(r,e){return e.encode?e.strict?encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(r):r}function n(r,e){return e.decode?i(r):r}function a(r){return Array.isArray(r)?r.sort():"object"==typeof r?a(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function s(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function c(r){const e=(r=s(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function u(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function p(r,e){t((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const o=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,o)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===o[r]&&(o[r]={}),o[r][e[1]]=t):o[r]=t};case"bracket":return(r,t,o)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==o[r]?o[r]=[].concat(o[r],t):o[r]=[t]:o[r]=t};case"comma":case"separator":return(e,t,o)=>{const a="string"==typeof t&&t.split("").indexOf(r.arrayFormatSeparator)>-1?t.split(r.arrayFormatSeparator).map((e=>n(e,r))):null===t?t:n(t,r);o[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),s=Object.create(null);if("string"!=typeof r)return s;if(!(r=r.trim().replace(/^[?#&]/,"")))return s;for(const t of r.split("&")){let[r,a]=l(e.decode?t.replace(/\+/g," "):t,"=");a=void 0===a?null:["comma","separator"].includes(e.arrayFormat)?a:n(a,e),o(n(r,e),a,s)}for(const r of Object.keys(s)){const t=s[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=u(t[r],e);else s[r]=u(t,e)}return!1===e.sort?s:(!0===e.sort?Object.keys(s).sort():Object.keys(s).sort(e.sort)).reduce(((r,e)=>{const t=s[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=a(t):r[e]=t,r}),Object.create(null))}e.extract=c,e.parse=p,e.stringify=(r,e)=>{if(!r)return"";t((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const n=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],a=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const a=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[",a,"]"].join("")]:[...t,[o(e,r),"[",o(a,r),"]=",o(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[o(e,r),"[]"].join("")]:[...t,[o(e,r),"[]=",o(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>null==n||0===n.length?t:0===t.length?[[o(e,r),"=",o(n,r)].join("")]:[[t,o(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,o(e,r)]:[...t,[o(e,r),"=",o(n,r)].join("")]}}(e),s={};for(const e of Object.keys(r))n(e)||(s[e]=r[e]);const c=Object.keys(s);return!1!==e.sort&&c.sort(e.sort),c.map((t=>{const n=r[t];return void 0===n?"":null===n?o(t,e):Array.isArray(n)?n.reduce(a(t),[]).join("&"):o(t,e)+"="+o(n,e)})).filter((r=>r.length>0)).join("&")},e.parseUrl=(r,e)=>({url:s(r).split("?")[0]||"",query:p(c(r),e)}),e.stringifyUrl=(r,t)=>{const o=s(r.url).split("?")[0]||"",n=e.extract(r.url),a=e.parse(n),c=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url),i=Object.assign(a,r.query);let l=e.stringify(i,t);return l&&(l=`?${l}`),`${o}${l}${c}`}}));u.extract,u.parse,u.stringify,u.parseUrl,u.stringifyUrl;var p=["history"],f=function(t){var o=t.history,n=r(t,p);if(o){var a=o.location.search;o.replace({search:u.stringify(e(e({},u.parse(a)),n))})}else console.error("error","historyAppendSearch needs history")};f.propTypes={history:t.objectOf(t.any).isRequired};export{f as default};
@@ -0,0 +1,13 @@
1
+ export { default as isDevelopMode } from './isDevelopMode';
2
+ export { default as removeDuplicateItem } from './removeDuplicateItem';
3
+ export { default as snaPreProcess } from './snaPreProcess';
4
+ export { default as snaDefine } from './snaDefine';
5
+ export { default as convert2HtmlEntities } from './convert2HtmlEntities';
6
+ export { default as domToImage } from './domToImage';
7
+ export { default as exportXlsx } from './exportXlsx';
8
+ export { default as downloadGephi } from './downloadGephi';
9
+ export { default as parseYMD } from './parseYMD';
10
+ export { default as historyAppendSearch } from './historyAppendSearch';
11
+ export { default as sendEmail } from './sendEmail';
12
+ export { default as chunkArray } from './chunkArray';
13
+ export { default as arrayMerge } from './arrayMerge';
@@ -0,0 +1,13 @@
1
+ export { default as isDevelopMode } from './isDevelopMode';
2
+ export { default as removeDuplicateItem } from './removeDuplicateItem';
3
+ export { default as snaPreProcess } from './snaPreProcess';
4
+ export { default as snaDefine } from './snaDefine';
5
+ export { default as convert2HtmlEntities } from './convert2HtmlEntities';
6
+ export { default as domToImage } from './domToImage';
7
+ export { default as exportXlsx } from './exportXlsx';
8
+ export { default as downloadGephi } from './downloadGephi';
9
+ export { default as parseYMD } from './parseYMD';
10
+ export { default as historyAppendSearch } from './historyAppendSearch';
11
+ export { default as sendEmail } from './sendEmail';
12
+ export { default as chunkArray } from './chunkArray';
13
+ export { default as arrayMerge } from './arrayMerge';
@@ -0,0 +1 @@
1
+ var o=function(){return"localhost"===window.location||!1};export{o as default};
@@ -0,0 +1 @@
1
+ var t=function(t){var a="",n=t.split("-"),r=parseInt(n[0],10);r<=0?r=1911:a=r.toString();var o=parseInt(n[1],10);o<=0||o>12?o=1:a="".concat(a,"-").concat(o.toString());var c=parseInt(n[2],10);return c<=0||c>31?c=1:a="".concat(a,"-").concat(c.toString()),{year:r,month:o,day:c,displayDate:a}};export{t as default};
@@ -0,0 +1 @@
1
+ var r=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";return Array.isArray(r)?r.filter((function(r,t,e){return e.findIndex((function(t){return t[n]===r[n]}))===t})):[]};export{r as default};
@@ -0,0 +1 @@
1
+ import r from"axios";var e=function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;r.defaults.timeout=o;try{return r.post(t,{sendMail:e}).then((function(r){return a({state:r&&200===r.status})})).catch((function(r){return console.error("api:axios:catch:error: ",r.message),{state:!1,error:r.message}}))}catch(r){return console.error("api:axios:try:catch:error: ",r.message),{state:!1,error:r.message}}};export{e as default};
@@ -0,0 +1 @@
1
+ var a={mainNode:"mainNode"};export{a as default};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./_rollupPluginBabelHelpers-0b27a2cb.js";import n from"./snaDefine.js";var r=function(r){var a=r.mainNodes,t=r.snaData;if(!(a&&Array.isArray(a)&&t&&Array.isArray(t)))return console.log("ERROR: wrong input data.",a,t),{nodes:[],links:[]};var i=[];t.forEach((function(e){var r=e.sourceId,t=e.sourceType,o=e.source,u=e.sourceHide,s=e.targetId,d=e.targetType,f=e.target,c=e.targetHide;i.find((function(n){return n.name===e.source}))||i.push({name:o,id:r,type:-1!==a.indexOf(r)?n.mainNode:t,hasClick:-1===a.indexOf(r),hide:u||"0"}),i.find((function(n){return n.name===e.target}))||i.push({name:f,id:s,type:-1!==a.indexOf(s)?n.mainNode:d,hasClick:-1===a.indexOf(s),hide:c||"0"})}));var o=e(new Set(i.map((function(e){return JSON.stringify(e)})))).map((function(e){return JSON.parse(e)})),u=[];return t.forEach((function(e){var n=e.source,r=e.target;u.push({target:o.findIndex((function(e){return r===e.name})),source:o.findIndex((function(e){return n===e.name}))})})),{nodes:o,links:u}};export{r as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daoyi/nmtl-ui",
3
- "version": "2.0.1-beta.1",
3
+ "version": "2.0.1-beta.4",
4
4
  "description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
5
5
  "author": "daoyi",
6
6
  "main": "lib/index.js",