@para-ui/core 4.0.14 → 4.0.16
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.
- package/Cascader/index.js +7 -6
- package/ComboSelect/index.js +7 -3
- package/CycleSelector/index.js +1 -2
- package/DatePicker/index.js +1 -2
- package/DynamicMultiBox/index.js +8 -5
- package/Form/index.js +8 -4
- package/FormItem/index.js +8 -4
- package/FunctionModal/index.js +2 -2
- package/PopMenu/context.d.ts +33 -0
- package/PopMenu/hooks.d.ts +5 -0
- package/PopMenu/index.d.ts +5 -0
- package/PopMenu/index.js +288 -0
- package/PopMenu/interface.d.ts +61 -0
- package/PopMenu/item.d.ts +4 -0
- package/PopMenu/list.d.ts +4 -0
- package/Popover/index.js +10 -1
- package/QuickReply/index.js +1 -1
- package/README.md +8 -0
- package/Select/index.js +1 -1
- package/Selector/index.js +4 -326
- package/SelectorPicker/index.js +4 -2
- package/TimePicker/index.js +1 -2
- package/Tooltip/index.js +7 -3
- package/Tooltip/interface.d.ts +2 -0
- package/Tree/index.js +8 -4
- package/Upload/index.js +2 -1
- package/_verture/{defineProperty-1d116156.js → defineProperty-51493dbe.js} +10 -2
- package/_verture/{index-20e4afce.js → index-06069532.js} +1 -1
- package/_verture/{index-767e63dd.js → index-0ad6af26.js} +394 -313
- package/_verture/index-287ae1b3.js +327 -0
- package/_verture/{index-9784b09c.js → index-782e05bf.js} +5 -20
- package/_verture/{slicedToArray-8223a2ef.js → slicedToArray-a8206399.js} +2 -15
- package/_verture/toConsumableArray-8f4c9589.js +19 -0
- package/_verture/unsupportedIterableToArray-cb478f24.js +16 -0
- package/index.d.ts +2 -0
- package/index.js +12 -9
- package/package.json +1 -1
- package/umd/AutoBox.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/Cascader.js +1 -1
- package/umd/Checkbox.js +1 -1
- package/umd/CheckboxGroup.js +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/CopyText.js +1 -1
- package/umd/CycleSelector.js +2 -2
- package/umd/DatePicker.js +1 -1
- package/umd/Descriptions.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +2 -2
- package/umd/FunctionModal.js +1 -1
- package/umd/Help.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/InputNumber.js +1 -1
- package/umd/Label.js +1 -1
- package/umd/Menu.js +1 -1
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +1 -1
- package/umd/Pagination.js +2 -2
- package/umd/PopConfirm.js +1 -1
- package/umd/PopMenu.js +43 -0
- package/umd/Popover.js +1 -1
- package/umd/QuickReply.js +1 -1
- package/umd/Radio.js +1 -1
- package/umd/RadioGroup.js +1 -1
- package/umd/Search.js +1 -1
- package/umd/Select.js +4 -4
- package/umd/SelectInput.js +4 -4
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +1 -1
- package/umd/Table.js +4 -4
- package/umd/Tabs.js +1 -1
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/Title.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Tooltip.js +1 -1
- package/umd/Transfer.js +1 -1
- package/umd/Tree.js +1 -1
- package/umd/Upload.js +1 -1
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-28a6bc3a.js → index-9bef932a.js} +0 -0
- /package/_verture/{modalContext-7380ea41.js → modalContext-b101ffaa.js} +0 -0
- /package/_verture/{typeof-c310ee4a.js → typeof-6ec38efd.js} +0 -0
package/umd/Tag.js
CHANGED
|
@@ -40,4 +40,4 @@ Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
|
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/n(27418);var r=n(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)u.call(e,r)&&!s.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:c,ref:l,props:i,_owner:a.current}}e.jsx=c,e.jsxs=c},85893:(t,e,n)=>{"use strict";t.exports=n(75251)},91033:(t,e,n)=>{"use strict";n.d(e,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&s()}function u(){a(i)}function s(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=b(0,0,0,0);function d(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,u=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==e&&(u-=h(r,"left","right")+i),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var c=Math.round(u+i)-e,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return b(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return o?m(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):v(t):p}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,r,o,i,a,u,s,c=(r=(n=e).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:t,contentRect:c})},x=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,Z=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new x(e,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Z.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:Z},29697:(t,e,n)=>{var r=n(93379),o=n(67921);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},89034:(t,e,n)=>{var r=n(93379),o=n(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},70591:(t,e,n)=>{var r=n(93379),o=n(15243);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},42560:(t,e,n)=>{var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},93379:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(t,e){var n,r,o;if(e.singleton){var i=v++;n=h||(h=c(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(t,e),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},52211:(t,e,n)=>{"use strict";n.d(e,{default:()=>l});var r=n(8156),o=n.n(r),i=n(77918),a=n(37464),u=n(58543);n(29697);n(89034);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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.")}()}const l=function(t){var e=t.children,n=t.arrow,s=void 0!==n&&n,l=t.placement,f=void 0===l?"bottom-start":l,p=t.tips,d=void 0===p?"":p,h=t.className,v=void 0===h?"":h,m=t.beyondText,g=void 0===m||m,b=t.interactive,y=void 0===b||b,w=t.tipMaxWidth,x=t.style,O=(0,r.useRef)(),Z=(0,r.useRef)(),E=c((0,r.useState)(""),2),M=E[0],S=E[1];(0,r.useEffect)((function(){S(d)}),[d]);var k;return o().createElement("div",{ref:O,className:(k="".concat(a.W,"-auto-tips"),function(){var t=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(t))return!0}()&&(k+=" ".concat(a.W,"-auto-tips-safari")),v&&(k+=" ".concat(v)),k),onMouseOver:function(){var t="",n=O.current,r=n.getBoundingClientRect(),o=Z.current.getBoundingClientRect();O.current&&((0,u.isIE)()?r.width>o.width&&(t=d||(g?n.innerText:e)):o.width>r.width&&(t=d||(g?n.innerText:e))),S(t)},style:x},o().createElement(i.default,{arrow:s,title:M,placement:f,interactive:y,boundariesElement:"viewport",overlayClassName:"".concat(a.W,"-auto-tips-tooltip"),maxWidth:w},o().createElement("div",{className:"auto-tips-content",ref:Z},e)))}},37464:(t,e,n)=>{"use strict";n.d(e,{W:()=>r,Z:()=>o});var r="paraui-v4",o="component"},77918:(t,e,n)=>{"use strict";n.d(e,{default:()=>M});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),u=n(86010),s=n(37464);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function h(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function v(t){var e=o().isValidElement(t)?t:o().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=function(t,e){var n={},r=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(e,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.Z)(e.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function m(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}var g=n(30465);n(42560);function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){y(t,e,n[e])}))}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function O(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,e)||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.")}()}var E=o().forwardRef((function(t,e){var n,r=Z(o().useState(t.defaultVisible),2),c=r[0],p=r[1],d=o().useRef(),b=o().useRef(),y=Z(o().useState([0,0]),2),E=y[0],M=y[1];o().useEffect((function(){var e;("visible"in t||"open"in t)&&p(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var S=function(){var e=t.title;return!e&&0!==e},k=function(){var e=t.builtinPlacements,n=t.autoAdjustOverflow;return e||function(t){var e=t.horizontalArrowShift,n=void 0===e?16:e,r=t.verticalArrowShift,o=void 0===r?8:r,i=t.autoAdjustOverflow,u={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(u).forEach((function(t){var e,n;u[t]=f(l({},a.Ct[t]),{offset:(e=t,n=m(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:h(i)}),u[t].ignoreShake=!0})),u}({autoAdjustOverflow:n})},j=t.prefixCls,_=void 0===j?"".concat(s.Z,"-tooltip"):j,C=t.getPopupContainer,P=t.overlayClassName,T=t.overlayInnerStyle,A=t.overlayStyle,R=t.children,D=t.title,N=t.placement,L=t.isPopover,H=t.followCursor,z=t.maxWidth,I=t.disabled,V=O(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),W=c;"visible"in t||"open"in t||!S()||(W=!1);var F=(0,u.Z)(!L&&"".concat(s.W,"-tooltip"),P),B=w({},A);return z&&(B.maxWidth=z),o().createElement(i.Z,x(w({},V),{prefixCls:_,placement:H?"top":m(N),overlayClassName:F,getTooltipContainer:C,ref:e||b,builtinPlacements:k(),overlay:o().createElement(o().Fragment,null,I&&o().createElement(g.Z,{className:"disabled-svg"}),D),visible:W,align:{targetOffset:E},onVisibleChange:function(e){var n;("visible"in t||"open"in t||p(!S()&&e),S())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=k(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var o=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:B,overlayInnerStyle:T,arrowContent:null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(t){if(d.current){var e,n,r,o,i=(null===(o=b.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(e=n.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,u=d.current.getBoundingClientRect(),s=u.x,c=u.y,l=u.width,f=t.clientX-(s+l/2),p=t.clientY-c+i+a;setTimeout((function(){M([-f,-p])}))}}},v(R)):v(R))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const M=E},58543:t=>{"use strict";t.exports=n},8156:e=>{"use strict";e.exports=t},47111:t=>{"use strict";t.exports=e},30907:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:()=>r})},83878:(t,e,n)=>{"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:()=>r})},97326:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:()=>r})},15861:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}}n.d(e,{Z:()=>o})},15671:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:()=>r})},43144:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(67343);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.Z)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29388:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(61120),o=n(78814),i=n(82963);function a(t){var e=(0,o.Z)();return function(){var n,o=(0,r.Z)(t);if(e){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(67343);function o(t,e,n){return(e=(0,r.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},87462:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:()=>r})},61120:(t,e,n)=>{"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{Z:()=>r})},60136:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(89611);function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.Z)(t,e)}},78814:(t,e,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:()=>r})},31902:(t,e,n)=>{"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(e,{Z:()=>r})},25267:(t,e,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:()=>r})},1413:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(4942);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},45987:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(63366);function o(t,e){if(null==t)return{};var n,o,i=(0,r.Z)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},63366:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:()=>r})},82963:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(71002),o=n(97326);function i(t,e){if(e&&("object"===(0,r.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},89611:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{Z:()=>r})},93324:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(t,e){return(0,r.Z)(t)||(0,o.Z)(t,e)||(0,i.Z)(t,e)||(0,a.Z)()}},35512:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(71002);function o(t,e){if("object"!==(0,r.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(71002),o=n(35512);function i(t){var e=(0,o.Z)(t,"string");return"symbol"===(0,r.Z)(e)?e:String(e)}},71002:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{Z:()=>r})},40181:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(30907);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Tag:()=>ut,TagGroup:()=>g,default:()=>st});var t=i(8156),e=i.n(t),n=i(34819),r=i(85893),o=i(97435),u=function(t){return(0,r.jsx)(o.l,Object.assign({dataName:"EditOutline",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"EditOutline",transform:"translate(-288 -426)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 426)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M.8,17.866a.8.8,0,0,1-.8-.8V1.336a.8.8,0,0,1,.8-.8H8.667a.8.8,0,0,1,0,1.6H1.6V16.267H15.734V9.221a.8.8,0,1,1,1.6,0v7.847a.8.8,0,0,1-.8.8Zm3.362-4.234a.8.8,0,0,1-.23-.618l.244-3.75A.8.8,0,0,1,4.41,8.75L12.925.234a.8.8,0,0,1,1.131,0l3.505,3.5A.811.811,0,0,1,17.8,4.3a.8.8,0,0,1-.234.565L9.045,13.386a.806.806,0,0,1-.513.234l-3.75.245H4.729A.808.808,0,0,1,4.163,13.632ZM5.754,9.668l-.167,2.54,2.54-.167L15.864,4.3,13.492,1.932Z",transform:"translate(291.102 429.067)"})]}))})},t))},s=i(86010),c=function(t){return(0,r.jsx)(o.l,Object.assign({dataName:"Plus",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"Plus",transform:"translate(-140 -287)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 287)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M17.2,7.867H10V.933a.933.933,0,0,0-1.867,0V7.867H.933a.933.933,0,0,0,0,1.867h7.2V17.2A.933.933,0,1,0,10,17.2V9.733h7.2a.933.933,0,1,0,0-1.867",transform:"translate(142.934 289.933)"})]}))})},t))},l=i(37464);i(70591);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||m(t,e)||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 v(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||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 m(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}const g=function(n){var r=n.className,o=n.size,i=void 0===o?"large":o,a=n.style,u=n.defaultInputValue,f=n.increased,m=void 0!==f&&f,g=n.increasedTag,b=n.inputClassName,y=n.inputWidth,w=n.onChange,x=h((0,t.useState)([]),2),O=x[0],Z=x[1],E=h((0,t.useState)(null!=u?u:""),2),M=E[0],S=E[1],k=h((0,t.useState)(!1),2),j=k[0],_=k[1],C=(0,t.useRef)(),P=h((0,t.useState)(),2),T=P[0],A=P[1];(0,t.useEffect)((function(){if(n.data){var t=n.data;t.some((function(t){return["string","number"].includes(void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e);var e}))&&(t=t.map((function(t){return{value:t,label:t}}))),Z(v(t))}}),[n.data]);var R=function(t){return t.map((function(t){return t.value}))},D=function(){_(!0),setTimeout((function(){var t;null===(t=C.current)||void 0===t||t.focus()}))},N=function(t){S(t.target.value)},L=function(){var t=M.trim();""!==t&&(O.push({value:t,label:t,closable:!0}),Z(v(O)),null==w||w(O,R(O))),S(null!=u?u:""),_(!1)},H=function(t){13!==t.keyCode&&13!==t.which||L()},z=function(t){return function(e){var n=O.findIndex((function(e){return e.value===t.value}));n>-1&&(O.splice(n,1),Z(v(O))),t.onClose&&t.onClose(e),null==w||w(O,R(O))}};return e().createElement("div",{className:(0,s.Z)("".concat(l.W,"-tag-group"),r),style:a},(null==O?void 0:O.length)?O.map((function(t,n){return e().createElement(st,d(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){p(t,e,n[e])}))}return t}({key:n},t),{size:i,visible:!0,tagChange:function(t){return function(t,e){O[e].value=t,Z(v(O)),null==w||w(O,R(O))}(t,n)},onClose:z(t)}),t.label)})):null,m&&function(){if(j){var t=(0,s.Z)("tag-group-input",{"tag-group-input-large":"large"===i},b);return e().createElement("input",{style:{width:y||T,minWidth:T},type:"text",ref:C,className:t,value:M,onChange:N,onBlur:L,onKeyDown:H})}var n,r=e().createElement(c,null),o="New Tag";g&&(r=g.icon||e().createElement(c,null),o=null!==(n=g.text)&&void 0!==n?n:"New Tag");var a=(0,s.Z)("tag-group-new",{"tag-group-new-icon":!o},"tag-group-add-btn");return e().createElement(st,{getWidth:function(t){return A(t)},className:a,size:i,icon:r,onClick:D},o)}())};var b=i(52211);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var w=/^\s+/,x=/\s+$/;function O(t,e){if(e=e||{},(t=t||"")instanceof O)return t;if(!(this instanceof O))return new O(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(w,"").replace(x,"").toLowerCase();var e,n=!1;if(z[t])t=z[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=K.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=K.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=K.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=K.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=K.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=K.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=K.hex8.exec(t))return{r:B(e[1]),g:B(e[2]),b:B(e[3]),a:X(e[4]),format:n?"name":"hex8"};if(e=K.hex6.exec(t))return{r:B(e[1]),g:B(e[2]),b:B(e[3]),format:n?"name":"hex"};if(e=K.hex4.exec(t))return{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),a:X(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=K.hex3.exec(t))return{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==y(t)&&(J(t.r)&&J(t.g)&&J(t.b)?(s=t.r,c=t.g,l=t.b,e={r:255*W(s,255),g:255*W(c,255),b:255*W(l,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):J(t.h)&&J(t.s)&&J(t.v)?(r=Y(t.s),o=Y(t.v),e=function(t,e,n){t=6*W(t,360),e=W(e,100),n=W(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=r%6,c=[n,a,i,i,u,n][s],l=[u,n,n,a,i,i][s],f=[i,i,u,n,n,a][s];return{r:255*c,g:255*l,b:255*f}}(t.h,r,o),a=!0,u="hsv"):J(t.h)&&J(t.s)&&J(t.l)&&(r=Y(t.s),i=Y(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=W(t,360),e=W(e,100),n=W(n,100),0===e)r=o=i=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,r,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(n=t.a));var s,c,l;return n=V(n),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Z(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,l:u}}function E(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,v:u}}function M(t,e,n,r){var o=[q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function S(t,e,n,r){return[q(U(r)),q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16))].join("")}function k(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.s-=e/100,n.s=F(n.s),O(n)}function j(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.s+=e/100,n.s=F(n.s),O(n)}function _(t){return O(t).desaturate(100)}function C(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.l+=e/100,n.l=F(n.l),O(n)}function P(t,e){e=0===e?0:e||10;var n=O(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),O(n)}function T(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.l-=e/100,n.l=F(n.l),O(n)}function A(t,e){var n=O(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,O(n)}function R(t){var e=O(t).toHsl();return e.h=(e.h+180)%360,O(e)}function D(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=O(t).toHsl(),r=[O(t)],o=360/e,i=1;i<e;i++)r.push(O({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function N(t){var e=O(t).toHsl(),n=e.h;return[O(t),O({h:(n+72)%360,s:e.s,l:e.l}),O({h:(n+216)%360,s:e.s,l:e.l})]}function L(t,e,n){e=e||6,n=n||30;var r=O(t).toHsl(),o=360/n,i=[O(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(O(r));return i}function H(t,e){e=e||6;for(var n=O(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/e;e--;)a.push(O({h:r,s:o,v:i})),i=(i+u)%1;return a}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=V(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=E(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=E(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=Z(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Z(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return M(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16)),q(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[M(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+S(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=O(t);n="#"+S(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(j,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(D,[3])},tetrad:function(){return this._applyCombination(D,[4])}},O.fromRatio=function(t,e){if("object"==y(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Y(t[r]));t=n}return O(t,e)},O.equals=function(t,e){return!(!t||!e)&&O(t).toRgbString()==O(e).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},O.mix=function(t,e,n){n=0===n?0:n||50;var r=O(t).toRgb(),o=O(e).toRgb(),i=n/100;return O({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},O.readability=function(t,e){var n=O(t),r=O(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},O.isReadable=function(t,e,n){var r,o,i=O.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},O.mostReadable=function(t,e,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=O.readability(t,e[c]))>s&&(s=r,u=O(e[c]));return O.isReadable(t,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,O.mostReadable(t,["#fff","#000"],n))};var z=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=O.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(z);function V(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function F(t){return Math.min(1,Math.max(0,t))}function B(t){return parseInt(t,16)}function q(t){return 1==t.length?"0"+t:""+t}function Y(t){return t<=1&&(t=100*t+"%"),t}function U(t){return Math.round(255*parseFloat(t)).toString(16)}function X(t){return B(t)/255}var $,G,Q,K=(G="[\\s|\\(]+("+($="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Q="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+G),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+G),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+G),hsva:new RegExp("hsva"+Q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function J(t){return!!K.CSS_UNIT.exec(t)}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){et(t,e,n[e])}))}return t}function rt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ot(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(t,e)}(t,e)||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.")}()}var at=["blue","green","yellow","red"],ut=function(r){var o=r.type,i=void 0===o?"normal":o,a=r.className,c=r.children,f=r.icon,p=r.color,d=r.onClose,h=r.onEdit,v=r.getWidth,m=r.tagChange,g=r.editInputClassName,y=r.closeIcon,w=r.closable,x=void 0!==w&&w,Z=r.editable,E=void 0!==Z&&Z,M=r.size,S=void 0===M?"larage":M,k=r.maxWidth,j=r.style,_=r.visible,C=r.editInputWidth,P=r.tipMaxWidth,T=ot(r,["type","className","children","icon","color","onClose","onEdit","getWidth","tagChange","editInputClassName","closeIcon","closable","editable","size","maxWidth","style","visible","editInputWidth","tipMaxWidth"]),A=it((0,t.useState)(!0),2),R=A[0],D=A[1],N=it((0,t.useState)(!1),2),L=N[0],H=N[1],z=it((0,t.useState)(""),2),I=z[0],V=z[1],W=it((0,t.useState)(""),2),F=W[0],B=W[1],q=it((0,t.useState)(!1),2),Y=q[0],U=q[1],X=it((0,t.useState)(!1),2),$=X[0],G=X[1],Q=(0,t.useRef)(),K=(0,t.useRef)();(0,t.useEffect)((function(){"visible"in r&&D(!!_)}),[_]),(0,t.useEffect)((function(){if(K.current){var t=K.current.offsetWidth;B(t),v&&v(t)}}),[K,L]),(0,t.useEffect)((function(){"string"==typeof c&&V(c)}),[c]);var J,tt,ut=function(){return!!p&&at.includes(p)},st=nt({color:p&&!ut()?p:void 0,backgroundColor:p&&!ut()?O(p).setAlpha(.1).toRgbString():void 0,borderColor:p&&!ut()&&"outline"===i?p:void 0,maxWidth:k},j),ct={backgroundColor:Y?O(p).setAlpha(.1).toRgbString():void 0,borderRadius:"2px"},lt={backgroundColor:$?O(p).setAlpha(.1).toRgbString():void 0,marginRight:c?"small"===S?"2px":"4px":void 0,borderRadius:"2px"},ft=(0,s.Z)("".concat(l.W,"-tag"),"".concat(l.W,"-tag-").concat(i),"".concat(l.W,"-tag-").concat(S),a,(et(J={},"".concat(l.W,"-tag-has-color"),p),et(J,"".concat(l.W,"-tag-hidden"),!R),et(J,"".concat(l.W,"-tag-").concat(p),ut()),J)),pt=function(t){t.stopPropagation(),null==d||d(t),U(!1),t.defaultPrevented||"visible"in r||D(!1)},dt=function(){U(!0)},ht=function(){U(!1)},vt=function(){G(!0)},mt=function(){G(!1)},gt=function(t){t.stopPropagation(),h&&h(t),t.defaultPrevented||(G(!1),H(!0))},bt=function(t){V(t.target.value),m&&m(t.target.value)},yt=function(){H(!1)},wt=function(t){13!==t.keyCode&&13!==t.which||yt()};return e().createElement(e().Fragment,null,L?(tt=(0,s.Z)("".concat(l.W,"-tag-edit-input"),g),e().createElement("input",{style:{width:C||F,minWidth:F},type:"text",autoFocus:!0,ref:Q,className:tt,value:I,onChange:bt,onBlur:yt,onKeyDown:wt})):e().createElement("span",rt(nt({},T),{className:ft,style:st,ref:K}),(E||f)&&e().createElement("span",{className:"tag-edit-icon ".concat(f?"tag-custom-icon":""),style:lt,onMouseEnter:vt,onMouseLeave:mt},E?e().createElement(u,{onMouseEnter:vt,onMouseLeave:mt,className:"tag-edit-icon",onClick:gt}):e().createElement(e().Fragment,null,f)),c&&e().createElement(b.default,{tipMaxWidth:P},e().createElement("span",{className:"tag-text"},I||c)),x?y?e().createElement("span",{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht},y):e().createElement(n.Z,{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht}):null))};const st=ut})(),a})()));
|
|
43
|
+
*/n(27418);var r=n(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)u.call(e,r)&&!s.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:c,ref:l,props:i,_owner:a.current}}e.jsx=c,e.jsxs=c},85893:(t,e,n)=>{"use strict";t.exports=n(75251)},91033:(t,e,n)=>{"use strict";n.d(e,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&s()}function u(){a(i)}function s(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=b(0,0,0,0);function d(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,u=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==e&&(u-=h(r,"left","right")+i),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var c=Math.round(u+i)-e,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return b(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return o?m(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):v(t):p}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,r,o,i,a,u,s,c=(r=(n=e).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:t,contentRect:c})},x=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,Z=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new x(e,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Z.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:Z},29697:(t,e,n)=>{var r=n(93379),o=n(67921);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},89034:(t,e,n)=>{var r=n(93379),o=n(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},70591:(t,e,n)=>{var r=n(93379),o=n(15243);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},42560:(t,e,n)=>{var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},93379:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(t,e){var n,r,o;if(e.singleton){var i=v++;n=h||(h=c(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(t,e),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},52211:(t,e,n)=>{"use strict";n.d(e,{default:()=>l});var r=n(8156),o=n.n(r),i=n(77918),a=n(37464),u=n(58543);n(29697);n(89034);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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.")}()}const l=function(t){var e=t.children,n=t.arrow,s=void 0!==n&&n,l=t.placement,f=void 0===l?"bottom-start":l,p=t.tips,d=void 0===p?"":p,h=t.className,v=void 0===h?"":h,m=t.beyondText,g=void 0===m||m,b=t.interactive,y=void 0===b||b,w=t.tipMaxWidth,x=t.style,O=(0,r.useRef)(),Z=(0,r.useRef)(),E=c((0,r.useState)(""),2),M=E[0],S=E[1];(0,r.useEffect)((function(){S(d)}),[d]);var k;return o().createElement("div",{ref:O,className:(k="".concat(a.W,"-auto-tips"),function(){var t=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(t))return!0}()&&(k+=" ".concat(a.W,"-auto-tips-safari")),v&&(k+=" ".concat(v)),k),onMouseOver:function(){var t="",n=O.current,r=n.getBoundingClientRect(),o=Z.current.getBoundingClientRect();O.current&&((0,u.isIE)()?r.width>o.width&&(t=d||(g?n.innerText:e)):o.width>r.width&&(t=d||(g?n.innerText:e))),S(t)},style:x},o().createElement(i.default,{arrow:s,title:M,placement:f,interactive:y,boundariesElement:"viewport",overlayClassName:"".concat(a.W,"-auto-tips-tooltip"),maxWidth:w},o().createElement("div",{className:"auto-tips-content",ref:Z},e)))}},37464:(t,e,n)=>{"use strict";n.d(e,{W:()=>r,Z:()=>o});var r="paraui-v4",o="component"},77918:(t,e,n)=>{"use strict";n.d(e,{default:()=>M});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),u=n(86010),s=n(37464);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function h(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function v(t){var e=o().isValidElement(t)?t:o().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=function(t,e){var n={},r=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(e,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.Z)(e.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function m(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}var g=n(30465);n(42560);function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){y(t,e,n[e])}))}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function O(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,e)||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.")}()}var E=o().forwardRef((function(t,e){var n,r=Z(o().useState(t.defaultVisible),2),c=r[0],p=r[1],d=o().useRef(),b=o().useRef(),y=Z(o().useState([0,0]),2),E=y[0],M=y[1];o().useEffect((function(){var e;("visible"in t||"open"in t)&&p(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var S=function(){var e=t.title;return!e&&0!==e},k=function(){var e=t.builtinPlacements,n=t.autoAdjustOverflow;return e||function(t){var e=t.horizontalArrowShift,n=void 0===e?16:e,r=t.verticalArrowShift,o=void 0===r?8:r,i=t.autoAdjustOverflow,u={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(u).forEach((function(t){var e,n;u[t]=f(l({},a.Ct[t]),{offset:(e=t,n=m(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:h(i)}),u[t].ignoreShake=!0})),u}({autoAdjustOverflow:n})},j=t.prefixCls,_=void 0===j?"".concat(s.Z,"-tooltip"):j,C=t.getPopupContainer,P=t.overlayClassName,T=t.overlayInnerStyle,A=t.overlayStyle,R=t.children,D=t.title,N=t.placement,L=t.isPopover,H=t.followCursor,z=t.maxWidth,I=t.disabled,V=O(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),W=c;"visible"in t||"open"in t||!S()||(W=!1);var F=(0,u.Z)(!L&&"".concat(s.W,"-tooltip"),P),B=w({},A);z&&(B.maxWidth=z);var q={targetOffset:E};return t.offset&&(q.offset=t.offset),o().createElement(i.Z,x(w({},V),{prefixCls:_,placement:H?"top":m(N),overlayClassName:F,getTooltipContainer:C,ref:e||b,builtinPlacements:k(),overlay:o().createElement(o().Fragment,null,I&&o().createElement(g.Z,{className:"disabled-svg"}),D),visible:W,align:q,onVisibleChange:function(e){var n;("visible"in t||"open"in t||p(!S()&&e),S())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=k(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var o=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:B,overlayInnerStyle:T,arrowContent:null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(t){if(d.current){var e,n,r,o,i=(null===(o=b.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(e=n.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,u=d.current.getBoundingClientRect(),s=u.x,c=u.y,l=u.width,f=t.clientX-(s+l/2),p=t.clientY-c+i+a;setTimeout((function(){M([-f,-p])}))}}},v(R)):v(R))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const M=E},58543:t=>{"use strict";t.exports=n},8156:e=>{"use strict";e.exports=t},47111:t=>{"use strict";t.exports=e},30907:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:()=>r})},83878:(t,e,n)=>{"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:()=>r})},97326:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:()=>r})},15861:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}}n.d(e,{Z:()=>o})},15671:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:()=>r})},43144:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(67343);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.Z)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29388:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(61120),o=n(78814),i=n(82963);function a(t){var e=(0,o.Z)();return function(){var n,o=(0,r.Z)(t);if(e){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(67343);function o(t,e,n){return(e=(0,r.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},87462:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:()=>r})},61120:(t,e,n)=>{"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{Z:()=>r})},60136:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(89611);function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.Z)(t,e)}},78814:(t,e,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:()=>r})},31902:(t,e,n)=>{"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(e,{Z:()=>r})},25267:(t,e,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:()=>r})},1413:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(4942);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},45987:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(63366);function o(t,e){if(null==t)return{};var n,o,i=(0,r.Z)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},63366:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:()=>r})},82963:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(71002),o=n(97326);function i(t,e){if(e&&("object"===(0,r.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},89611:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{Z:()=>r})},93324:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(t,e){return(0,r.Z)(t)||(0,o.Z)(t,e)||(0,i.Z)(t,e)||(0,a.Z)()}},35512:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(71002);function o(t,e){if("object"!==(0,r.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(71002),o=n(35512);function i(t){var e=(0,o.Z)(t,"string");return"symbol"===(0,r.Z)(e)?e:String(e)}},71002:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{Z:()=>r})},40181:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(30907);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Tag:()=>ut,TagGroup:()=>g,default:()=>st});var t=i(8156),e=i.n(t),n=i(34819),r=i(85893),o=i(97435),u=function(t){return(0,r.jsx)(o.l,Object.assign({dataName:"EditOutline",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"EditOutline",transform:"translate(-288 -426)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 426)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M.8,17.866a.8.8,0,0,1-.8-.8V1.336a.8.8,0,0,1,.8-.8H8.667a.8.8,0,0,1,0,1.6H1.6V16.267H15.734V9.221a.8.8,0,1,1,1.6,0v7.847a.8.8,0,0,1-.8.8Zm3.362-4.234a.8.8,0,0,1-.23-.618l.244-3.75A.8.8,0,0,1,4.41,8.75L12.925.234a.8.8,0,0,1,1.131,0l3.505,3.5A.811.811,0,0,1,17.8,4.3a.8.8,0,0,1-.234.565L9.045,13.386a.806.806,0,0,1-.513.234l-3.75.245H4.729A.808.808,0,0,1,4.163,13.632ZM5.754,9.668l-.167,2.54,2.54-.167L15.864,4.3,13.492,1.932Z",transform:"translate(291.102 429.067)"})]}))})},t))},s=i(86010),c=function(t){return(0,r.jsx)(o.l,Object.assign({dataName:"Plus",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"Plus",transform:"translate(-140 -287)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 287)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M17.2,7.867H10V.933a.933.933,0,0,0-1.867,0V7.867H.933a.933.933,0,0,0,0,1.867h7.2V17.2A.933.933,0,1,0,10,17.2V9.733h7.2a.933.933,0,1,0,0-1.867",transform:"translate(142.934 289.933)"})]}))})},t))},l=i(37464);i(70591);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||m(t,e)||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 v(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||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 m(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}const g=function(n){var r=n.className,o=n.size,i=void 0===o?"large":o,a=n.style,u=n.defaultInputValue,f=n.increased,m=void 0!==f&&f,g=n.increasedTag,b=n.inputClassName,y=n.inputWidth,w=n.onChange,x=h((0,t.useState)([]),2),O=x[0],Z=x[1],E=h((0,t.useState)(null!=u?u:""),2),M=E[0],S=E[1],k=h((0,t.useState)(!1),2),j=k[0],_=k[1],C=(0,t.useRef)(),P=h((0,t.useState)(),2),T=P[0],A=P[1];(0,t.useEffect)((function(){if(n.data){var t=n.data;t.some((function(t){return["string","number"].includes(void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e);var e}))&&(t=t.map((function(t){return{value:t,label:t}}))),Z(v(t))}}),[n.data]);var R=function(t){return t.map((function(t){return t.value}))},D=function(){_(!0),setTimeout((function(){var t;null===(t=C.current)||void 0===t||t.focus()}))},N=function(t){S(t.target.value)},L=function(){var t=M.trim();""!==t&&(O.push({value:t,label:t,closable:!0}),Z(v(O)),null==w||w(O,R(O))),S(null!=u?u:""),_(!1)},H=function(t){13!==t.keyCode&&13!==t.which||L()},z=function(t){return function(e){var n=O.findIndex((function(e){return e.value===t.value}));n>-1&&(O.splice(n,1),Z(v(O))),t.onClose&&t.onClose(e),null==w||w(O,R(O))}};return e().createElement("div",{className:(0,s.Z)("".concat(l.W,"-tag-group"),r),style:a},(null==O?void 0:O.length)?O.map((function(t,n){return e().createElement(st,d(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){p(t,e,n[e])}))}return t}({key:n},t),{size:i,visible:!0,tagChange:function(t){return function(t,e){O[e].value=t,Z(v(O)),null==w||w(O,R(O))}(t,n)},onClose:z(t)}),t.label)})):null,m&&function(){if(j){var t=(0,s.Z)("tag-group-input",{"tag-group-input-large":"large"===i},b);return e().createElement("input",{style:{width:y||T,minWidth:T},type:"text",ref:C,className:t,value:M,onChange:N,onBlur:L,onKeyDown:H})}var n,r=e().createElement(c,null),o="New Tag";g&&(r=g.icon||e().createElement(c,null),o=null!==(n=g.text)&&void 0!==n?n:"New Tag");var a=(0,s.Z)("tag-group-new",{"tag-group-new-icon":!o},"tag-group-add-btn");return e().createElement(st,{getWidth:function(t){return A(t)},className:a,size:i,icon:r,onClick:D},o)}())};var b=i(52211);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var w=/^\s+/,x=/\s+$/;function O(t,e){if(e=e||{},(t=t||"")instanceof O)return t;if(!(this instanceof O))return new O(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(w,"").replace(x,"").toLowerCase();var e,n=!1;if(z[t])t=z[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=K.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=K.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=K.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=K.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=K.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=K.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=K.hex8.exec(t))return{r:B(e[1]),g:B(e[2]),b:B(e[3]),a:X(e[4]),format:n?"name":"hex8"};if(e=K.hex6.exec(t))return{r:B(e[1]),g:B(e[2]),b:B(e[3]),format:n?"name":"hex"};if(e=K.hex4.exec(t))return{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),a:X(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=K.hex3.exec(t))return{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==y(t)&&(J(t.r)&&J(t.g)&&J(t.b)?(s=t.r,c=t.g,l=t.b,e={r:255*W(s,255),g:255*W(c,255),b:255*W(l,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):J(t.h)&&J(t.s)&&J(t.v)?(r=Y(t.s),o=Y(t.v),e=function(t,e,n){t=6*W(t,360),e=W(e,100),n=W(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=r%6,c=[n,a,i,i,u,n][s],l=[u,n,n,a,i,i][s],f=[i,i,u,n,n,a][s];return{r:255*c,g:255*l,b:255*f}}(t.h,r,o),a=!0,u="hsv"):J(t.h)&&J(t.s)&&J(t.l)&&(r=Y(t.s),i=Y(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=W(t,360),e=W(e,100),n=W(n,100),0===e)r=o=i=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,r,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(n=t.a));var s,c,l;return n=V(n),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Z(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,l:u}}function E(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,v:u}}function M(t,e,n,r){var o=[q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function S(t,e,n,r){return[q(U(r)),q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16))].join("")}function k(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.s-=e/100,n.s=F(n.s),O(n)}function j(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.s+=e/100,n.s=F(n.s),O(n)}function _(t){return O(t).desaturate(100)}function C(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.l+=e/100,n.l=F(n.l),O(n)}function P(t,e){e=0===e?0:e||10;var n=O(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),O(n)}function T(t,e){e=0===e?0:e||10;var n=O(t).toHsl();return n.l-=e/100,n.l=F(n.l),O(n)}function A(t,e){var n=O(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,O(n)}function R(t){var e=O(t).toHsl();return e.h=(e.h+180)%360,O(e)}function D(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=O(t).toHsl(),r=[O(t)],o=360/e,i=1;i<e;i++)r.push(O({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function N(t){var e=O(t).toHsl(),n=e.h;return[O(t),O({h:(n+72)%360,s:e.s,l:e.l}),O({h:(n+216)%360,s:e.s,l:e.l})]}function L(t,e,n){e=e||6,n=n||30;var r=O(t).toHsl(),o=360/n,i=[O(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(O(r));return i}function H(t,e){e=e||6;for(var n=O(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/e;e--;)a.push(O({h:r,s:o,v:i})),i=(i+u)%1;return a}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=V(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=E(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=E(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=Z(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Z(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return M(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[q(Math.round(t).toString(16)),q(Math.round(e).toString(16)),q(Math.round(n).toString(16)),q(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[M(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+S(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=O(t);n="#"+S(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(j,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(D,[3])},tetrad:function(){return this._applyCombination(D,[4])}},O.fromRatio=function(t,e){if("object"==y(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Y(t[r]));t=n}return O(t,e)},O.equals=function(t,e){return!(!t||!e)&&O(t).toRgbString()==O(e).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},O.mix=function(t,e,n){n=0===n?0:n||50;var r=O(t).toRgb(),o=O(e).toRgb(),i=n/100;return O({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},O.readability=function(t,e){var n=O(t),r=O(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},O.isReadable=function(t,e,n){var r,o,i=O.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},O.mostReadable=function(t,e,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=O.readability(t,e[c]))>s&&(s=r,u=O(e[c]));return O.isReadable(t,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,O.mostReadable(t,["#fff","#000"],n))};var z=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=O.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(z);function V(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function F(t){return Math.min(1,Math.max(0,t))}function B(t){return parseInt(t,16)}function q(t){return 1==t.length?"0"+t:""+t}function Y(t){return t<=1&&(t=100*t+"%"),t}function U(t){return Math.round(255*parseFloat(t)).toString(16)}function X(t){return B(t)/255}var $,G,Q,K=(G="[\\s|\\(]+("+($="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Q="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+G),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+G),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+G),hsva:new RegExp("hsva"+Q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function J(t){return!!K.CSS_UNIT.exec(t)}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){et(t,e,n[e])}))}return t}function rt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ot(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(t,e)}(t,e)||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.")}()}var at=["blue","green","yellow","red"],ut=function(r){var o=r.type,i=void 0===o?"normal":o,a=r.className,c=r.children,f=r.icon,p=r.color,d=r.onClose,h=r.onEdit,v=r.getWidth,m=r.tagChange,g=r.editInputClassName,y=r.closeIcon,w=r.closable,x=void 0!==w&&w,Z=r.editable,E=void 0!==Z&&Z,M=r.size,S=void 0===M?"larage":M,k=r.maxWidth,j=r.style,_=r.visible,C=r.editInputWidth,P=r.tipMaxWidth,T=ot(r,["type","className","children","icon","color","onClose","onEdit","getWidth","tagChange","editInputClassName","closeIcon","closable","editable","size","maxWidth","style","visible","editInputWidth","tipMaxWidth"]),A=it((0,t.useState)(!0),2),R=A[0],D=A[1],N=it((0,t.useState)(!1),2),L=N[0],H=N[1],z=it((0,t.useState)(""),2),I=z[0],V=z[1],W=it((0,t.useState)(""),2),F=W[0],B=W[1],q=it((0,t.useState)(!1),2),Y=q[0],U=q[1],X=it((0,t.useState)(!1),2),$=X[0],G=X[1],Q=(0,t.useRef)(),K=(0,t.useRef)();(0,t.useEffect)((function(){"visible"in r&&D(!!_)}),[_]),(0,t.useEffect)((function(){if(K.current){var t=K.current.offsetWidth;B(t),v&&v(t)}}),[K,L]),(0,t.useEffect)((function(){"string"==typeof c&&V(c)}),[c]);var J,tt,ut=function(){return!!p&&at.includes(p)},st=nt({color:p&&!ut()?p:void 0,backgroundColor:p&&!ut()?O(p).setAlpha(.1).toRgbString():void 0,borderColor:p&&!ut()&&"outline"===i?p:void 0,maxWidth:k},j),ct={backgroundColor:Y?O(p).setAlpha(.1).toRgbString():void 0,borderRadius:"2px"},lt={backgroundColor:$?O(p).setAlpha(.1).toRgbString():void 0,marginRight:c?"small"===S?"2px":"4px":void 0,borderRadius:"2px"},ft=(0,s.Z)("".concat(l.W,"-tag"),"".concat(l.W,"-tag-").concat(i),"".concat(l.W,"-tag-").concat(S),a,(et(J={},"".concat(l.W,"-tag-has-color"),p),et(J,"".concat(l.W,"-tag-hidden"),!R),et(J,"".concat(l.W,"-tag-").concat(p),ut()),J)),pt=function(t){t.stopPropagation(),null==d||d(t),U(!1),t.defaultPrevented||"visible"in r||D(!1)},dt=function(){U(!0)},ht=function(){U(!1)},vt=function(){G(!0)},mt=function(){G(!1)},gt=function(t){t.stopPropagation(),h&&h(t),t.defaultPrevented||(G(!1),H(!0))},bt=function(t){V(t.target.value),m&&m(t.target.value)},yt=function(){H(!1)},wt=function(t){13!==t.keyCode&&13!==t.which||yt()};return e().createElement(e().Fragment,null,L?(tt=(0,s.Z)("".concat(l.W,"-tag-edit-input"),g),e().createElement("input",{style:{width:C||F,minWidth:F},type:"text",autoFocus:!0,ref:Q,className:tt,value:I,onChange:bt,onBlur:yt,onKeyDown:wt})):e().createElement("span",rt(nt({},T),{className:ft,style:st,ref:K}),(E||f)&&e().createElement("span",{className:"tag-edit-icon ".concat(f?"tag-custom-icon":""),style:lt,onMouseEnter:vt,onMouseLeave:mt},E?e().createElement(u,{onMouseEnter:vt,onMouseLeave:mt,className:"tag-edit-icon",onClick:gt}):e().createElement(e().Fragment,null,f)),c&&e().createElement(b.default,{tipMaxWidth:P},e().createElement("span",{className:"tag-text"},I||c)),x?y?e().createElement("span",{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht},y):e().createElement(n.Z,{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht}):null))};const st=ut})(),a})()));
|