!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom")):e.ParaUI=t(e.react,e["react-dom"])}(self,(function(e,t){return function(){var n={90747:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-message-box--message-float{position:fixed;top:3%;left:0;z-index:9999;text-align:center;width:100%;pointer-events:none}.paraui-v3-message-box .msg-item .msg-wrapper{position:relative;display:inline-block;margin:10px auto;min-height:44px;padding:12px 16px;border-radius:4px;font-size:14px;text-align:left}.paraui-v3-message-box .msg-item .msg-icon{position:absolute;top:15px;left:16px;line-height:0}.paraui-v3-message-box .msg-item .msg-icon svg{font-size:14px;color:currentColor}.paraui-v3-message-box .msg-item .msg-text{display:inline-block;max-width:60vw;word-wrap:break-word;margin-right:32px;margin-left:22px;line-height:20px;word-break:break-all}.paraui-v3-message-box .msg-item .msg-text--title{font-weight:700}.paraui-v3-message-box .msg-item .msg-text--noicon{margin-left:0}.paraui-v3-message-box .msg-item .msg-text .msg-desc{display:block;margin-top:8px;font-weight:400;word-wrap:break-word}.paraui-v3-message-box .msg-item .msg-close{position:absolute;right:16px;top:15px;cursor:pointer;line-height:0;pointer-events:auto}.paraui-v3-message-box .msg-item .msg-close svg{font-size:14px;color:currentColor}.paraui-v3-message-box .msg-item-fill .msg-wrapper{width:100%}.paraui-v3-message-box .msg-info{background-color:#f3f6fc;color:#3666d6}.paraui-v3-message-box .msg-info .msg-close{color:#3666d6}.paraui-v3-message-box .msg-warn{background-color:#fef9f5;color:#ffa150}.paraui-v3-message-box .msg-warn .msg-close{color:#ffa150}.paraui-v3-message-box .msg-error{background-color:#fdf6f5;color:#eb6054}.paraui-v3-message-box .msg-error .msg-close{color:#eb6054}.paraui-v3-message-box .msg-success{background-color:#f5fbf2;color:#53c31b}.paraui-v3-message-box .msg-success .msg-close{color:#53c31b}.paraui-v3-message-box .message-fadeInDown{animation-duration:.5s;animation-name:messageFadeInDown}@keyframes messageFadeInDown{from{opacity:0;transform:translate(0, -50px)}to{opacity:1;transform:translate(0, 0)}}",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},27418:function(e){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(s[l]=a[l]);if(t){i=t(a);for(var u=0;u<i.length;u++)r.call(a,i[u])&&(s[i[u]]=a[i[u]])}}return s}},75251:function(e,t,n){"use strict";
/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */n(27418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:a,_owner:i.current}}t.jsx=l,t.jsxs=l},85893:function(e,t,n){"use strict";e.exports=n(75251)},20752:function(e,t,n){var r=n(93379),o=n(90747);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:v(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function m(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function v(e,t){var n,r,o;if(t.singleton){var a=g++;n=p||(p=l(t)),r=f.bind(null,n,a,!1),o=f.bind(null,n,a,!0)}else n=l(t),r=m.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);i[o].references--}for(var a=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return function(){"use strict";o.r(a),o.d(a,{Message:function(){return k},MessageBar:function(){return y},default:function(){return w}});var e=o(8156),t=o.n(e),n=o(47111),r=o.n(n),i=o(85893);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-icon {\n  width: 1em;\n  height: 1em;\n  fill: currentColor;\n  display: inline-block;\n  user-select: none;\n  flex-shrink: 0;\n}\n.paraui-icon-primary {\n  color: #3666d6;\n}\n.paraui-icon-secondary {\n  color: #3666d6;\n}\n.paraui-icon-thirdary {\n  color: #3666d6;\n}\n.paraui-icon-small {\n  font-size: 16px;\n}\n.paraui-icon-medium {\n  font-size: 18px;\n}\n.paraui-icon-large {\n  font-size: 20px;\n}');var s=function(e){var t,n,r=e.path,o=e.className,a=e.color,s=void 0===a?"primary":a,c=e.size,l=void 0===c?"small":c,u=e.dataName,d=void 0===u?"":u,f=e.style,m=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["path","className","color","size","dataName","style"]);return(0,i.jsx)("svg",Object.assign({className:(n="paraui-icon",n+=" svg-icon",o&&(n+=" "+o),"primary"!==s&&"secondary"!==s&&"thirdary"!==s||(n+=" paraui-icon-"+s),l&&(n+=" paraui-icon-"+l),n),viewBox:"0 0 1024 1024","data-name":d,style:(t=Object.assign({},f),s&&"primary"!==s&&"secondary"!==s&&"thirdary"!==s&&(t.color=s),t)},m,{children:r}))},c=function(e){return(0,i.jsx)(s,Object.assign({dataName:"WarningCircleF",viewBox:"0 0 24 24",path:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("g",Object.assign({id:"WarningCircleF",transform:"translate(-182 -738)"},{children:[(0,i.jsx)("g",Object.assign({id:"边缘框",transform:"translate(182 738)"},{children:(0,i.jsx)("rect",{id:"边缘框-2","data-name":"边缘框",width:"24",height:"24",fill:"none"})})),(0,i.jsx)("path",{id:"路径_19931","data-name":"路径 19931",d:"M5019.338,443.131a11,11,0,1,1,7.778-3.222A10.929,10.929,0,0,1,5019.338,443.131Zm.182-7.712a1.533,1.533,0,1,0,1.533,1.533A1.534,1.534,0,0,0,5019.52,435.419Zm0-9.377a1.11,1.11,0,0,0-.826.395,2.115,2.115,0,0,0-.478,1.6l.47,5.081c.052.555.4.973.815.973h.039c.413,0,.763-.418.814-.973l.47-5.081a2.115,2.115,0,0,0-.478-1.6A1.11,1.11,0,0,0,5019.52,426.041Z",transform:"translate(-4825.338 317.869)"})]}))})},e))},l=function(e){return(0,i.jsx)(s,Object.assign({dataName:"CheckCircleF",viewBox:"0 0 24 24",path:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("g",Object.assign({id:"CheckCircleF",transform:"translate(-534 -459)"},{children:[(0,i.jsx)("rect",{id:"边缘框",width:"24",height:"24",transform:"translate(534 459)",fill:"none"}),(0,i.jsx)("path",{id:"排除_4","data-name":"排除 4",d:"M-1084.09-746.632a10.468,10.468,0,0,1-10.455-10.456,10.468,10.468,0,0,1,10.455-10.456,10.468,10.468,0,0,1,10.456,10.456A10.468,10.468,0,0,1-1084.09-746.632Zm-4.72-11a.993.993,0,0,0-.707.293,1,1,0,0,0,0,1.414l3,3a.994.994,0,0,0,.707.293,1,1,0,0,0,.493-.13.95.95,0,0,0,.22-.167l6.138-6.138a1,1,0,0,0,0-1.414.994.994,0,0,0-.707-.293.994.994,0,0,0-.707.293l-5.435,5.435-2.3-2.294A.993.993,0,0,0-1088.81-757.636Z",transform:"translate(1630.089 1228.088)",stroke:"rgba(0,0,0,0)",strokeMiterlimit:"10",strokeWidth:"1"})]}))})},e))},u=function(e){return(0,i.jsx)(s,Object.assign({dataName:"Close",viewBox:"0 0 24 24",path:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("g",Object.assign({id:"Close",transform:"translate(-288 -287)"},{children:[(0,i.jsx)("rect",{id:"边缘框",width:"24",height:"24",transform:"translate(288 287)",fill:"none"}),(0,i.jsx)("path",{id:"联合_524","data-name":"联合 524",d:"M3186.155-1838.431l-5.247-5.247-5.247,5.247a.994.994,0,0,1-.707.292,1,1,0,0,1-.707-.292,1,1,0,0,1,0-1.414l5.247-5.247-5.247-5.247a1,1,0,0,1,0-1.414,1,1,0,0,1,1.414,0l5.247,5.247,5.247-5.248a1,1,0,0,1,1.414,0,1,1,0,0,1,0,1.415l-5.247,5.247,5.247,5.247a1,1,0,0,1,0,1.414.994.994,0,0,1-.707.292A1,1,0,0,1,3186.155-1838.431Z",transform:"translate(-2880.908 2144.092)"})]}))})},e))},d=function(e){return(0,i.jsx)(s,Object.assign({dataName:"CloseCircleF",viewBox:"0 0 24 24",path:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("g",Object.assign({id:"CloseCircleF",transform:"translate(-451 -475)"},{children:[(0,i.jsx)("rect",{id:"边缘框",width:"24",height:"24",transform:"translate(451 475)",fill:"none"}),(0,i.jsx)("path",{id:"排除_3","data-name":"排除 3",d:"M-1012.09-746.632a10.468,10.468,0,0,1-10.455-10.456,10.468,10.468,0,0,1,10.455-10.456,10.468,10.468,0,0,1,10.456,10.456A10.468,10.468,0,0,1-1012.09-746.632Zm0-9.042h0l2.292,2.292a.99.99,0,0,0,.706.293,1,1,0,0,0,.707-.293.994.994,0,0,0,.293-.707.994.994,0,0,0-.293-.707l-2.293-2.292,2.293-2.293a.994.994,0,0,0,.293-.708.991.991,0,0,0-.293-.706.994.994,0,0,0-.707-.293.992.992,0,0,0-.707.293l-2.293,2.293-2.293-2.293a.993.993,0,0,0-.707-.293.994.994,0,0,0-.707.293.991.991,0,0,0-.293.706.994.994,0,0,0,.293.708l2.292,2.293-2.292,2.292a.994.994,0,0,0-.293.707.994.994,0,0,0,.293.707.994.994,0,0,0,.707.293.993.993,0,0,0,.706-.293l2.292-2.292Z",transform:"translate(1475.089 1244.088)",stroke:"rgba(0,0,0,0)",strokeMiterlimit:"10",strokeWidth:"1"})]}))})},e))},f="paraui-v3";o(20752);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.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 m(e,t)}(e)||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.")}()}var h={info:t().createElement(c,null),warn:t().createElement(c,null),error:t().createElement(d,null),success:t().createElement(l,null)},b=function(){return window===window.top?window:window.top},y=function(n){var r=n.className,o=n.style,a=n.type,i=x(),s=_(),c=S(n.className||"");return r&&(c+=" ".concat(r)),(0,e.useEffect)((function(){var e=document.getElementById(i);return O(e,g(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}({},n),{id:s,icon:h[a]}),0,!1,!0),function(){var t=document.querySelector("#".concat(s));t&&(null==e||e.removeChild(t))}}),v(Object.values(n))),t().createElement("div",{id:i,className:c,style:o})},x=function(){return"msgbox_"+String(1e5*Math.random()|0+(new Date).getTime())},j=x();function w(){return t().createElement("div",{className:"".concat(f,"-message-box"),id:j})}var O=function(e,n,o,a,i){var s=n.icon,c=n.text,l=n.id,d=n.type,f=n.html,m=n.close,p=n.desc,g=n.hideIcon,v=function(e){var t=e.icon,n=e.text,r=e.id,o=e.type,a=e.html,i=e.close,s=e.desc,c=e.hideIcon,l=document.createElement("div");l.className="msg-item",l.id=r||"",l.innerHTML='<div class="msg-wrapper message-fadeInDown msg-'.concat(o,'">\n                ').concat(t?'<div class="msg-icon"></div>':"",'\n                <div class="msg-text"></div>\n                ').concat(i?'<div class="msg-close"></div>':"","\n                </div>\n    ");var u=l.querySelector(".msg-text");if(!u)return l;if(a?u.innerHTML=n:u.textContent=n,s){var d=document.createElement("span");d.className="msg-desc",d.textContent=s||"",u.classList.add("msg-text--title"),u.appendChild(d)}c&&u.classList.add("msg-text--noicon");var f=l.querySelector(".msg-close");return f&&f.addEventListener("click",(function(){var e;document.querySelector("#".concat(r))&&(null==l||null===(e=l.parentNode)||void 0===e||e.removeChild(l),l=null)})),l}({id:l,text:c,icon:s,type:d,html:f,close:m,desc:p,hideIcon:g});i&&v&&v.classList.add("msg-item-fill"),null==e||e.appendChild(v);var h=document.querySelector("#".concat(l," .msg-icon"));h&&s&&!g&&r().render(s,h);var b=document.querySelector("#".concat(l," .msg-close"));b&&r().render(t().createElement(u,null),b),a&&setTimeout((function(){document.querySelector("#".concat(v.id))&&(null==e||e.removeChild(v))}),o)},C=function(e,t,n,r){var o,a,i,s=function(){return b().__msg_conf__||{}},c=h[n],l="",u="",d=!1,m=!1,p=null!==(o=s().maxCount)&&void 0!==o?o:1/0,g=null!==(a=s().duration)&&void 0!==a?a:t,v=!isNaN(g)&&g>0;"string"==typeof e?l=e:"object"==typeof e&&(l=e.text||"",u=e.desc,c=e.icon||h[n],d=e.html||!1,m=e.hideIcon||!1,e.maxCount>0&&(p=e.maxCount||1/0)),i="object"==typeof e&&"boolean"==typeof e.close?e.close:!v;var y=document.getElementById(r);y||((y=document.createElement("div")).id=r,document.body.appendChild(y)),y.className=S(""),y.className+=" "+"".concat(f,"-message-box--message-float");var x=_();O(y,{id:x,text:l,icon:c,type:n,html:d,close:i,desc:u,hideIcon:m},g,v),E(y,p)},S=function(e){return"".concat(f,"-message-box").concat(e?" "+e:"")},_=function(){return"msgitem_"+String(1e5*Math.random()|0+(new Date).getTime())},E=function(e,t){var n;if(e&&(null===(n=e.children)||void 0===n?void 0:n.length)){var r=e.children,o=r.length;if(o>t)for(var a=0;a<o;a++){var i;if(a<t&&r[a])null===(i=r[a].parentNode)||void 0===i||i.removeChild(r[a])}}},N=function(e){var t=document.getElementById(e);t&&(t.innerHTML="")},k={info:function(e){return C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,"info",j)},warn:function(e){return C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,"warn",j)},error:function(e){return C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,"error",j)},success:function(e){return C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,"success",j)},clear:function(){return N(j)},destroyAll:function(){return N(j)},config:function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b().__msg_conf__=e}(e)}}}(),a}()}));