@simpleform/form 1.0.9 → 1.0.11

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/README.md CHANGED
@@ -29,6 +29,8 @@ The `Form.Item` component acts as an item in the `Form.List` array type and is c
29
29
  - [react](https://react.docschina.org/) Version >= 16.8.0
30
30
  ```bash
31
31
  npm install @simpleform/form --save
32
+ # or
33
+ yarn add @simpleform/form
32
34
  ```
33
35
 
34
36
  ## base
package/README_CN.md CHANGED
@@ -30,6 +30,8 @@
30
30
  - [react](https://react.docschina.org/) Version >= 16.8.0
31
31
  ```bash
32
32
  npm install @simpleform/form --save
33
+ # 或者
34
+ yarn add @simpleform/form
33
35
  ```
34
36
 
35
37
  ## 基本使用
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { ControlBaseProps } from './control';
3
3
  import { LabelBaseProps } from './label';
4
- import './item.less';
4
+ import './index.less';
5
5
  export type Layout = 'horizontal' | 'vertical' | string;
6
6
  export interface ItemProps extends LabelBaseProps, ControlBaseProps {
7
7
  label?: string | React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './tooltip.less';
2
+ import './index.less';
3
3
  interface TooltipCustomProps extends React.HtmlHTMLAttributes<HTMLElement> {
4
4
  content: string;
5
5
  }
package/lib/css/main.css CHANGED
@@ -1 +1 @@
1
- .item-control__container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.item-control__content{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:0;margin-right:0;min-height:32px}.item-control__content--text{word-wrap:break-word;word-break:break-all}.item-control__message{color:red;font-size:12px}.item-control__suffix{font-size:14px;margin-left:10px;margin-top:3px}.item-control__footer{margin-top:8px;width:100%}.item-control--error .item-control__content .ant-checkbox,.item-control--error .item-control__content .ant-input,.item-control--error .item-control__content .ant-input-number,.item-control--error .item-control__content .ant-mentions,.item-control--error .item-control__content .ant-picker,.item-control--error .item-control__content .ant-radio,.item-control--error .item-control__content .ant-rate,.item-control--error .item-control__content .ant-select .ant-select-selector,.item-control--error .item-control__content .ant-slider,.item-control--error .item-control__content .ant-switch,.item-control--error .item-control__content .ant-upload{border-color:#ff4d4f}.item-control--error .item-control__content .ant-checkbox:hover,.item-control--error .item-control__content .ant-input-number:hover,.item-control--error .item-control__content .ant-input:hover,.item-control--error .item-control__content .ant-mentions:hover,.item-control--error .item-control__content .ant-picker:hover,.item-control--error .item-control__content .ant-radio:hover,.item-control--error .item-control__content .ant-rate:hover,.item-control--error .item-control__content .ant-select .ant-select-selector:hover,.item-control--error .item-control__content .ant-slider:hover,.item-control--error .item-control__content .ant-switch:hover,.item-control--error .item-control__content .ant-upload:hover{border-color:#ff7875;border-right-width:1px!important;-webkit-box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px rgba(255,77,79,.2);outline:0}.svg-icon{fill:currentColor;height:1.1em;outline:none;overflow:hidden;vertical-align:-.2em;width:1.1em}.custom-tooltip.react-tooltip{background:#fff;background-clip:padding-box;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85);z-index:999}.custom-tooltip.react-tooltip .react-tooltip-arrow{background:#fff}.item-label__header{word-wrap:break-word;font-size:14px;width:100px;word-break:break-all}.item-label__tooltip{-webkit-margin-start:4px;cursor:help;margin-inline-start:4px;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}.item-label--required.item-label__header:before{-webkit-margin-end:4px;color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-inline-end:4px}.field-item{margin-bottom:16px;width:100%}.field-item--error{margin-bottom:3px}.field-item--readOnly{margin-bottom:0}.field-item--horizontal{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.field-item--horizontal>.item-label__header{margin-right:8px;margin-top:5px;text-align:right}.field-item--horizontal.field-item--inline{width:auto}.field-item--vertical{display:inline-block}.field-item--vertical.field-item--inline{vertical-align:top;width:auto}.field-item--compact{margin-bottom:0}
1
+ .item-control__container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.item-control__content{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:0;margin-right:0;min-height:32px}.item-control__content--text{word-wrap:break-word;word-break:break-all}.item-control__message{color:red;font-size:12px}.item-control__suffix{font-size:14px;margin-left:10px;margin-top:3px}.item-control__footer{margin-top:8px;width:100%}.item-control--error .item-control__content .ant-checkbox,.item-control--error .item-control__content .ant-input,.item-control--error .item-control__content .ant-input-number,.item-control--error .item-control__content .ant-mentions,.item-control--error .item-control__content .ant-picker,.item-control--error .item-control__content .ant-radio,.item-control--error .item-control__content .ant-rate,.item-control--error .item-control__content .ant-select .ant-select-selector,.item-control--error .item-control__content .ant-slider,.item-control--error .item-control__content .ant-switch,.item-control--error .item-control__content .ant-upload{border-color:#ff4d4f}.item-control--error .item-control__content .ant-checkbox:hover,.item-control--error .item-control__content .ant-input-number:hover,.item-control--error .item-control__content .ant-input:hover,.item-control--error .item-control__content .ant-mentions:hover,.item-control--error .item-control__content .ant-picker:hover,.item-control--error .item-control__content .ant-radio:hover,.item-control--error .item-control__content .ant-rate:hover,.item-control--error .item-control__content .ant-select .ant-select-selector:hover,.item-control--error .item-control__content .ant-slider:hover,.item-control--error .item-control__content .ant-switch:hover,.item-control--error .item-control__content .ant-upload:hover{border-color:#ff7875;border-right-width:1px!important;-webkit-box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px rgba(255,77,79,.2);outline:0}.svg-icon{fill:currentColor;height:1.1em;outline:none;overflow:hidden;vertical-align:-.2em;width:1.1em}.custom-tooltip.react-tooltip{background:#fff;background-clip:padding-box;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85);z-index:999}.custom-tooltip.react-tooltip .react-tooltip-arrow{background:#fff}.item-label__header{word-wrap:break-word;font-size:14px;width:100px;word-break:break-all}.item-label__tooltip{-webkit-margin-start:4px;cursor:help;margin-inline-start:4px;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}.item-label--required.item-label__header:before{-webkit-margin-end:4px;color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-inline-end:4px}.field-item{margin-bottom:16px;width:100%}.field-item--error{margin-bottom:3px}.field-item--readOnly{margin-bottom:0}.field-item--horizontal{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.field-item--horizontal>.item-label__header{margin-right:8px;margin-top:7px;text-align:right}.field-item--horizontal.field-item--inline{width:auto}.field-item--vertical{display:inline-block}.field-item--vertical.field-item--inline{vertical-align:top;width:auto}.field-item--compact{margin-bottom:0}
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties } from 'react';
2
- import { ItemProps } from './components/item';
2
+ import { ItemProps } from './components/Item';
3
3
  import { ItemCoreProps } from './item-core';
4
4
  export type FormItemProps<T = ItemProps> = T & ItemCoreProps & {
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties } from 'react';
2
- import { ItemProps } from './components/item';
2
+ import { ItemProps } from './components/Item';
3
3
  import { ListCoreProps } from './list-core';
4
4
  export type FormListProps<T = ItemProps> = T & ListCoreProps & {
5
5
  className?: string;
package/lib/form.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { SimpleForm } from './form-store';
3
3
  import { ItemCoreProps } from './item-core';
4
- import { ItemProps } from './components/item';
4
+ import { ItemProps } from './components/Item';
5
5
  interface CreateFormProps extends React.HTMLAttributes<HTMLElement> {
6
6
  tagName?: keyof React.ReactHTML;
7
7
  onSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * from './form-list';
6
6
  export * from './form-store';
7
7
  export * from './form-context';
8
8
  export * from './hooks';
9
- export * from './components/tooltip';
10
- export * from './components/item';
9
+ export * from './components/Tooltip';
10
+ export * from './components/Item';
11
11
  export * from './utils/utils';
12
12
  export * from './validator';
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.React);for(var n in r)("object"===typeof exports?exports:e)[n]=r[n]}}(self,(function(e){return function(){var t={910:function(e,t,r){"use strict";r.r(t);var n,o=r(359);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}t.default=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"wenhao_svg__icon",viewBox:"0 0 1024 1024"},e),n||(n=o.createElement("path",{fill:"#272636",d:"M510.827 64.042c247.096.027 448.767 201.816 448.28 448.541-.49 247.641-201.839 448.844-448.57 448.241C263.075 960.22 62.84 759.868 62.513 512.535c-.329-246.882 201.23-448.521 448.314-448.493m405.948 448.323c-.036-223.591-181.117-405.318-405.726-405.778-223.89-.459-405.925 181.253-406.16 405.79-.232 223.613 181.45 405.166 405.674 405.805 223.336.636 406.248-182.097 406.212-405.817M535.795 657.3h-56.939c0-11.373-.608-22.537.128-33.612 1.485-22.365 6.658-43.815 18.344-63.301 9.094-15.164 20.675-28.25 33.54-40.276 15.98-14.935 32.149-29.678 47.81-44.94 9.223-8.985 17.42-19.009 21.68-31.483 10.208-29.883 3.682-56.57-16.199-80.337-33.015-39.47-88.235-40.821-122.05-21.066-21.314 12.45-34.093 31.502-41.553 54.414-3.344 10.272-5.653 20.88-8.65 32.155l-60.637-7.199c.779-5.205 1.337-10.1 2.263-14.924 5.196-27.06 14.59-52.297 32.253-73.943 21.52-26.37 49.555-41.723 82.58-48.061 34.471-6.616 68.92-5.902 102.442 4.986 42.92 13.94 74.68 41.177 89.113 84.564 13.857 41.655 7.048 81.004-20.227 116.156-17.302 22.299-38.82 40.415-59.041 59.831-8.896 8.542-17.896 17.137-25.623 26.697-11.477 14.198-15.858 31.37-17.242 49.325-.781 10.137-1.313 20.294-1.992 31.014m-60.637 120.44V710.33h67.458v67.411z"})))}},779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},435:function(e){var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){if(e.constructor!==l.constructor)return!1;var a,s,u,c;if(Array.isArray(e)){if((a=e.length)!=l.length)return!1;for(s=a;0!==s--;)if(!i(e[s],l[s]))return!1;return!0}if(r&&e instanceof Map&&l instanceof Map){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!i(s.value[1],l.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&l instanceof Set){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(l)){if((a=e.length)!=l.length)return!1;for(s=a;0!==s--;)if(e[s]!==l[s])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof l.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof l.toString)return e.toString()===l.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=a;0!==s--;)if(!Object.prototype.hasOwnProperty.call(l,u[s]))return!1;if(t&&e instanceof Element)return!1;for(s=a;0!==s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!i(e[u[s]],l[u[s]]))return!1;return!0}return e!==e&&l!==l}e.exports=function(e,t){try{return i(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},490:function(e,t,r){var n={"./wenhao.svg":910};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=490},359:function(t){"use strict";t.exports=e},609:function(e,t,r){var n=r(425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:F(e,r,l)}),i}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function E(){}function x(){}var O={};d(O,u,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(P([])));_&&_!==i&&l.call(_,u)&&(O=_);var k=x.prototype=w.prototype=Object.create(O);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,i,a,s){var u=v(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function F(e,r,n){var o=h;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=v(e,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=v(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return E.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},L(A.prototype),d(A.prototype,c,(function(){return this})),r.AsyncIterator=A,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new A(p(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},L(k),d(k,f,"Generator"),d(k,u,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=l.call(i,"catchLoc"),u=l.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},425:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},841:function(e,t,r){var n=r(609)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function r(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}n.r(o),n.d(o,{Form:function(){return pr},FormInitialValuesContext:function(){return h},FormItem:function(){return nr},FormList:function(){return ar},Item:function(){return Qt},ItemCore:function(){return z},ListCore:function(){return K},SimpleForm:function(){return se},SimpleFormContext:function(){return v},deepGet:function(){return V},deepSet:function(){return C},getValueFromEvent:function(){return N},getValuePropName:function(){return P},isExitPrefix:function(){return T},isValidNumber:function(){return M},isWithBracket:function(){return R},joinFormPath:function(){return I},pathToArr:function(){return F},toArray:function(){return $},useFormError:function(){return fe},useFormValues:function(){return de},useSimpleForm:function(){return ue},useValidator:function(){return ce},validateTriggerCondition:function(){return D}});var c=n(779),f=n.n(c),d=n(359),p=n.n(d),v=p().createContext({}),h=p().createContext(void 0);function m(e){return Object.prototype.toString.call(e).slice(8,-1)}function y(e){return"Array"===m(e)}function g(e){if("Object"!==m(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function b(e){return"Null"===m(e)}function w(e){return"Undefined"===m(e)}function E(e,t={}){if(y(e))return e.map((e=>E(e,t)));if(!g(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(y(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=r),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,E(e[n],t),e,t.nonenumerable),r}),{})}n(435);function x(e){return Object.prototype.toString.call(e)}function O(e){return"[object Object]"==x(e)}function S(e){return Array.isArray(e)||"string"===typeof e||e instanceof String?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"[object Object]"==={}.toString.call(e)?0===Object.keys(e).length:"number"===typeof e?isNaN(e):void 0===e||null===e}var _=function(e){if("number"===typeof e&&!isNaN(e))return!0;if("string"===typeof e){var t=Number(e);if(!isNaN(t)&&e)return!0}};function k(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return E(e)}function F(e){return e instanceof Array?e:"string"===typeof e&&e?e.replace(/\]$/,"").replace(/^\[/,"").split(/\.\[|\]\[|\[|\]\.|\]|\./g):[]}var j=function(e,t){return void 0===e||null===e?e:t instanceof Array?t.reduce((function(t,r){var n=V(e,r);return void 0!==n&&(t[r]=n),t}),{}):"function"===typeof t?Object.keys(e||{}).reduce((function(r,n){var o=e[n];return t(n,o)&&(r[n]=o),r}),{}):void 0};function V(e,t){if(null!==t&&void 0!==t&&t.length){if(t instanceof Array){var r,n=e instanceof Array?[]:{},o=k(t);try{for(o.s();!(r=o.n()).done;){var i,l,a,s=r.value;n[s]=null===(i=F(s))||void 0===i||null===(l=(a=i).reduce)||void 0===l?void 0:l.call(a,(function(e,t){return null===e||void 0===e?void 0:e[t]}),e)}}catch(f){o.e(f)}finally{o.f()}return n}var u,c;return null===(u=F(t))||void 0===u||null===(c=u.reduce)||void 0===c?void 0:c.call(u,(function(e,t){return null===e||void 0===e?void 0:e[t]}),e)}}function C(e,t,r){var n=F(t);if(null===n||void 0===n||!n.length)return e;for(var o,i=function(e){return Array.isArray(t)?_(e):(null===t||void 0===t?void 0:t.indexOf("[".concat(e,"]")))>-1},l=S(e)?i(n[0])?[]:{}:A(e),a=l,s=function(){var e=n[u],t=n[u+1],o=function(){if(void 0===r)if(l instanceof Array){var t,n=+e;null===(t=l)||void 0===t||t.splice(n,1)}else delete l[e];else l[e]=r};if(u===(null===n||void 0===n?void 0:n.length)-1)o();else if(S(l[e])){if(void 0==r)return o(),{v:a};l[e]=i(t)?[]:{}}l=l[e]},u=0;u<(null===n||void 0===n?void 0:n.length);u++)if(o=s())return o.v;return a}function T(e,t){var r=F(e),n=F(t);return!((null===r||void 0===r?void 0:r.length)>(null===n||void 0===n?void 0:n.length)||null===r||void 0===r||!r.length||null===n||void 0===n||!n.length)&&(null===r||void 0===r?void 0:r.every((function(e,t){return e==n[t]})))}function P(e,t){return"function"===typeof e?e(t):e}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];return n&&n.target?"checkbox"===n.target.type?n.target.checked:n.target.value:n}var R=function(e){return"string"===typeof e&&/\[(\d+)\]/gi.test(e)},M=function(e){return _(e)};function I(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null===t||void 0===t?void 0:t.reduce((function(e,t){var r=S(t)?"":M(t)?"[".concat(t,"]"):t,n=S(e)?"":M(e)?"[".concat(e,"]"):e;return R(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}))}var D=function(e,t){return void 0===t||void 0===e||("boolean"===typeof e?e:"string"===typeof t?t===e:t instanceof Array?null===t||void 0===t?void 0:t.includes(e):void 0)};function $(e){return e?Array.isArray(e)?e:[e]:[]}var B=["form"],q=["children"],W=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"],z=function(e){var t=(0,d.useContext)(v),n=t.form,o=u(t,B),i=(0,d.useContext)(h),l=Object.assign({},o,e),c=l.children,m=u(l,q),y=m.name,g=m.valueProp,b=void 0===g?"value":g,w=m.valueGetter,E=void 0===w?N:w,x=m.valueSetter,O=m.errorClassName,_=m.onFieldsChange,k=m.onFieldsMounted,L=m.onValuesChange,A=m.initialValue,F=m.trigger,j=void 0===F?"onChange":F,C=m.validateTrigger,T=u(m,W),R=(null===T||void 0===T?void 0:T.ignore)||(null===T||void 0===T?void 0:T.readOnly),M=S(y)||!0===R?void 0:y,I=null!==A&&void 0!==A?A:V(i,M),D=n&&n.getFieldValue(M),z=null!==D&&void 0!==D?D:I,H=s((0,d.useState)(z),2),G=H[0],K=H[1];M&&(null===n||void 0===n||n.setFieldProps(M,m));var U=(0,d.useMemo)((function(){var e=null===m||void 0===m?void 0:m.rules,t=[];if(e instanceof Array)for(var r=0;r<(null===e||void 0===e?void 0:e.length);r++){var n=null===e||void 0===e?void 0:e[r];null!==n&&void 0!==n&&n.validateTrigger&&t.push(null===n||void 0===n?void 0:n.validateTrigger)}return t}),[null===m||void 0===m?void 0:m.rules]),Y=(0,d.useMemo)((function(){return new Set([].concat(a($(j)),a($(C)),a(U)))}),[j,C,U]),J=(0,d.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i="function"==typeof E?E.apply(void 0,r):void 0;M&&n&&(n.setFieldValue(M,i,e),_&&_({name:M,value:i},null===n||void 0===n?void 0:n.getFieldValue()))}),[JSON.stringify(M),n,E,_]);(0,d.useEffect)((function(){if(M&&n)return n.subscribeFormItem(M,(function(e,t){K(e),S(e)&&S(t)||L&&L({name:M,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(M)}}),[JSON.stringify(M),n,L]),(0,d.useEffect)((function(){if(M&&n)return void 0!==z&&n.setInitialValues(M,z),k&&k({name:M,value:z},null===n||void 0===n?void 0:n.getFieldValue()),function(){M&&(null===n||void 0===n||n.setFieldProps(M,void 0)),M&&n.setInitialValues(M,void 0)}}),[JSON.stringify(M)]);var X=(0,d.useMemo)((function(){return"function"===typeof x?x(G):x?void 0:G}),[x,G]),Z=function e(t){return p().Children.map(t,(function(t){var n,o,i,l=null===t||void 0===t||null===(n=t.props)||void 0===n?void 0:n.children,a=null===t||void 0===t||null===(o=t.props)||void 0===o?void 0:o["data-type"],s=null===t||void 0===t||null===(i=t.props)||void 0===i?void 0:i["data-name"],u=null===t||void 0===t?void 0:t.type;return!l||"ignore"!==a&&"string"!==typeof u||s?function(e){if(!S(M)&&(0,d.isValidElement)(e)){var t=P(b,e&&e.type),n=null===e||void 0===e?void 0:e.props,o=(n||{}).className,i=X,l=r({className:f()(o,O)},t,i);return Y.forEach((function(e){l[e]=function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===J||void 0===J||J.apply(void 0,[e].concat(o)),null===(t=n[e])||void 0===t||t.call.apply(t,[n].concat(o))}})),(0,d.cloneElement)(e,l)}return e}(t):(0,d.cloneElement)(t,{children:e(l)})}))}(c);return Z};z.displayName="ItemCore";var H=["children"],G=["name","rules","initialValue"],K=function(e){var t=(0,d.useContext)(v),r=Object.assign({},t,e),n=r.children,o=u(r,H),i=o.name,l=o.rules,a=o.initialValue,s=u(o,G),c=(null===s||void 0===s?void 0:s.ignore)||(null===s||void 0===s?void 0:s.readOnly),f=S(i)||!0===c?void 0:i,h=0,m=function(e){var t,r,n,o,i,s=h;h++;var u=l instanceof Array?null===l||void 0===l?void 0:l.concat(null===e||void 0===e||null===(t=e.props)||void 0===t?void 0:t.rules):null===e||void 0===e||null===(r=e.props)||void 0===r?void 0:r.rules,c=null!==(n=null===e||void 0===e||null===(o=e.props)||void 0===o?void 0:o.initialValue)&&void 0!==n?n:null===a||void 0===a?void 0:a[s],v=I(f,s,null===e||void 0===e||null===(i=e.props)||void 0===i?void 0:i.name);return p().isValidElement(e)?(0,d.cloneElement)(e,{name:v,rules:u,initialValue:c}):e},y=function e(t){return p().Children.map(t,(function(t){var r,n,o=null===t||void 0===t||null===(r=t.props)||void 0===r?void 0:r.children,i=null===t||void 0===t||null===(n=t.props)||void 0===n?void 0:n["data-type"],l=null===t||void 0===t?void 0:t.type;return!o||"ignore"!==i&&"string"!==typeof l?p().isValidElement(t)?m(t):t:(0,d.cloneElement)(t,{children:e(o)})}))}(n);return y};function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}function Y(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(u){return void r(u)}a.done?t(s):Promise.resolve(s).then(n,o)}function J(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){Y(i,n,o,l,a,"next",e)}function a(e){Y(i,n,o,l,a,"throw",e)}l(void 0)}))}}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}function Q(e,t,r){return t&&Z(e.prototype,t),r&&Z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}K.displayName="ListCore";var ee=n(841),te=n.n(ee);var re={required:function(e,t){if(!0===e&&S(t))return!0},pattern:function(e,t){return e instanceof RegExp?!e.test(t):"string"===typeof e?!new RegExp(e).test(t):void 0},whitespace:function(e,t){if(!0===e&&"string"===typeof t)return/^\s+$/.test(t)||""===t},max:function(e,t){if("number"===typeof e){if("string"===typeof t||t instanceof Array)return(null===t||void 0===t?void 0:t.length)>e;if("number"===typeof t)return t>e}},min:function(e,t){if("number"===typeof e){if(void 0===t)return!0;if("string"===typeof t||t instanceof Array)return(null===t||void 0===t?void 0:t.length)<e;if("number"===typeof t)return t<e}}},ne=["validateTrigger"];function oe(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ie(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var le=function(){function e(){X(this,e),this.rulesMap=void 0,this.errorsMap=void 0,this.getError=this.getError.bind(this),this.setError=this.setError.bind(this),this.resetError=this.resetError.bind(this),this.start=this.start.bind(this),this.add=this.add.bind(this),this.rulesMap={},this.errorsMap={}}return Q(e,[{key:"add",value:function(e,t){void 0===t?this.rulesMap[e]&&delete this.rulesMap[e]:this.rulesMap[e]=t}},{key:"getRulesMap",value:function(){return this.rulesMap}},{key:"getError",value:function(e){if(e)return this.errorsMap[e]}},{key:"setError",value:function(e,t){e&&(void 0===t?delete this.errorsMap[e]:this.errorsMap[e]=t)}},{key:"resetError",value:function(){this.errorsMap={}}},{key:"start",value:function(){var e=J(te().mark((function e(t,r,n){var o,i,l,a,s,c,f;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setError(t),(o=this.rulesMap[t])instanceof Array){e.next=4;break}return e.abrupt("return");case 4:i=0;case 5:if(!(i<(null===o||void 0===o?void 0:o.length))){e.next=19;break}if(l=null===o||void 0===o?void 0:o[i],s=(a=l||{}).validateTrigger,c=u(a,ne),!D(n,s)){e.next=16;break}return e.next=12,ae(c,r);case 12:if(!(f=e.sent)){e.next=16;break}return this.setError(t,f),e.abrupt("return",f);case 16:i++,e.next=5;break;case 19:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),e}(),ae=function(){var e=J(te().mark((function e(t,r){var n,o,i,l,a,u,c;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:o=null===t||void 0===t?void 0:t.message,i=null===(n=Object.entries(t))||void 0===n?void 0:n.filter((function(e){return"message"!==s(e,1)[0]})),l=oe(i),e.prev=5,u=te().mark((function e(){var t,n,i,l,u;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s(a.value,2),i=n[0],l=n[1],"validator"!==i||"function"!==typeof l){e.next=17;break}return e.prev=2,e.next=5,null===l||void 0===l?void 0:l(r,(function(e){u=e}));case 5:return e.abrupt("return",{v:u});case 8:if(e.prev=8,e.t0=e.catch(2),"string"!==typeof e.t0){e.next=12;break}return e.abrupt("return",{v:e.t0});case 12:if("string"!=typeof(null===e.t0||void 0===e.t0?void 0:e.t0.message)){e.next=14;break}return e.abrupt("return",{v:null===e.t0||void 0===e.t0?void 0:e.t0.message});case 14:return e.abrupt("return",{v:o});case 15:e.next=19;break;case 17:if(!0!==(null===(t=re[i])||void 0===t?void 0:t.call(re,l,r))){e.next=19;break}return e.abrupt("return",{v:o});case 19:case"end":return e.stop()}}),e,null,[[2,8]])})),l.s();case 8:if((a=l.n()).done){e.next=15;break}return e.delegateYield(u(),"t0",10);case 10:if(!(c=e.t0)){e.next=13;break}return e.abrupt("return",c.v);case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(5),l.e(e.t1);case 20:return e.prev=20,l.f(),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[5,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}(),se=function(){function e(t){X(this,e),this.initialValues=void 0,this.formItemListeners=[],this.formValueListeners=[],this.formValuesListeners=[],this.errorListeners=[],this.values=void 0,this.lastValues=void 0,this.formErrors={},this.fieldProps={},this.validator=void 0,this.initialValues=t,this.fieldProps={},this.formErrors={},this.validator=new le,this.values=A(t),this.getFieldValue=this.getFieldValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.setFieldError=this.setFieldError.bind(this),this.setFieldsError=this.setFieldsError.bind(this),this.getFieldProps=this.getFieldProps.bind(this),this.setFieldProps=this.setFieldProps.bind(this),this.reset=this.reset.bind(this),this.validate=this.validate.bind(this),this.subscribeError=this.subscribeError.bind(this),this.unsubscribeError=this.unsubscribeError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyError=this.notifyError.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}return Q(e,[{key:"getFieldProps",value:function(e){return void 0===e?this.fieldProps:null===(t=this.fieldProps)||void 0===t?void 0:t[e];var t}},{key:"setFieldProps",value:function(e,t){if(e)if(void 0===t)delete this.fieldProps[e];else{var r=this.fieldProps[e],n=Object.assign({},r,t);this.fieldProps[e]=n,this.validator.add(e,null===t||void 0===t?void 0:t.rules)}}},{key:"getFieldValue",value:function(e){return void 0===e?this.values:V(this.values,e)}},{key:"getLastValue",value:function(e){return void 0===e?this.lastValues:V(this.lastValues,e)}},{key:"setInitialValues",value:function(e,t){this.initialValues=C(this.initialValues,e,t),this.lastValues=A(this.values),this.values=C(this.values,e,t),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues()}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:V(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=A(n.values),n.values=C(n.values,e,t);var o=n.getFieldProps(e),i=null===o||void 0===o?void 0:o.rules;null!==i&&void 0!==i&&i.length&&i instanceof Array&&n.validate(e,r)};"string"===typeof e?(o(e,t,r),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues()):O(e)&&(Promise.all(Object.keys(e).map((function(t){return o(t,null===e||void 0===e?void 0:e[t])}))),this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues())}},{key:"setFieldsValue",value:function(e){this.lastValues=A(this.values),this.values=e,this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues()}},{key:"reset",value:function(e){var t=e||this.initialValues;this.setFieldsError({}),this.setFieldsValue(t)}},{key:"getFieldError",value:function(e){return void 0===e?this.formErrors:this.formErrors[e]}},{key:"setFieldError",value:function(e,t){e&&(void 0===t?delete this.formErrors[e]:this.formErrors[e]=t,this.notifyError(e))}},{key:"setFieldsError",value:function(e){this.formErrors=A(e),this.notifyError()}},{key:"validate",value:function(){var e=J(te().mark((function e(t,r){var n,o,i,l,a,s,u=this;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=J(te().mark((function e(t){var n,o,i,l;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.setFieldError(t,void 0),n=u.getFieldProps(t)||{},o=u.getFieldValue(t),i=null===n||void 0===n?void 0:n.ignore,!D(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=11;break}return e.next=8,u.validator.start(t,o,r);case 8:return(l=e.sent)&&u.setFieldError(t,l),e.abrupt("return",l);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!(t instanceof Array||void 0===t)){e.next=11;break}return i=this.getFieldProps()||{},l=t instanceof Array?t:Object.keys(i||{}),e.next=6,Promise.all(null===l||void 0===l?void 0:l.map((function(e){var t=null===i||void 0===i?void 0:i[e];if((null===t||void 0===t?void 0:t.rules)instanceof Array)return n(e)})));case 6:return a=e.sent,s=null===a||void 0===a||null===(o=a.filter((function(e){return void 0!==e})))||void 0===o?void 0:o[0],e.abrupt("return",{error:s,values:this.getFieldValue()});case 11:if("string"!==typeof t){e.next=13;break}return e.abrupt("return",n(t));case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"notifyFormItem",value:function(e){var t=this;e?this.formItemListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formItemListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){T(null===r||void 0===r?void 0:r.path,e)&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formValueListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"notifyFormValues",value:function(){var e=this;this.formValuesListeners.forEach((function(t){return t(e.getFieldValue(),e.getLastValue())}))}},{key:"notifyError",value:function(e){e?this.errorListeners.forEach((function(t){(null===t||void 0===t?void 0:t.path)===e&&(null===t||void 0===t?void 0:t.onChange)&&(null===t||void 0===t||t.onChange())})):this.errorListeners.forEach((function(e){return e.onChange()}))}},{key:"subscribeFormItem",value:function(e,t){var r=this;return this.formItemListeners.push({onChange:t,path:e}),function(){r.formItemListeners=r.formItemListeners.filter((function(t){return t.path!==e}))}}},{key:"subscribeFormValue",value:function(e,t){var r=this;return this.formValueListeners.push({onChange:t,path:e}),function(){r.formValueListeners=r.formValueListeners.filter((function(t){return t.path!==e}))}}},{key:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.formValuesListeners=[]}}},{key:"subscribeError",value:function(e,t){var r=this;return this.errorListeners.push({onChange:t,path:e}),function(){r.errorListeners=r.errorListeners.filter((function(t){return t.path!==e}))}}},{key:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{key:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}}]),e}();function ue(e){return(0,d.useMemo)((function(){return new se(e)}),[])}function ce(){return(0,d.useMemo)((function(){return new le}),[])}function fe(e,t){var r=s((0,d.useState)(),2),n=r[0],o=r[1],i=function(){t&&e&&e.subscribeError(t,(function(){var r=null===e||void 0===e?void 0:e.getFieldError(t);o(r)}))};return(0,d.useMemo)((function(){i()}),[]),(0,d.useEffect)((function(){return i(),function(){e&&e.unsubscribeError(t)}}),[e,JSON.stringify(t)]),[n,o]}function de(e,t){var r=s((0,d.useState)(),2),n=r[0],o=r[1],i=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)o(e);else{var r=t instanceof Array?t:[t],n=r?j(e,r):e;o(n)}}))};return(0,d.useMemo)((function(){i()}),[]),(0,d.useEffect)((function(){return i(),function(){e.unsubscribeFormValues()}}),[e,JSON.stringify(t)]),n}var pe=["children","style","className","error","footer","suffix"],ve=p().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.error,l=e.footer,a=e.suffix,s=u(e,pe),c="item-control",d=f()("".concat(c,"__container"),i?"".concat(c,"--error"):"",o||""),v="string"===typeof r;return p().createElement("div",U({ref:t,className:d,style:n},s),p().createElement("div",{className:f()("".concat(c,"__content"),v&&"".concat(c,"__content--text"))},r,!S(a)&&p().createElement("div",{className:"".concat(c,"__suffix")},a)),!S(l)&&p().createElement("div",{className:"".concat(c,"__footer")},l),p().createElement("div",{className:"".concat(c,"__message")},i))})),he=["name","className"],me={},ye=n(490);ye.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=ye(e).default;me[t]=r}));var ge=p().forwardRef((function(e,t){var r=e.name,n=e.className,o=u(e,he),i=n?"svg-icon "+n:"svg-icon",l=r?me[r]:null;return l?p().createElement(l,U({className:i},o)):null}));const be=Math.min,we=Math.max,Ee=Math.round,xe=Math.floor,Oe=e=>({x:e,y:e}),Se={left:"right",right:"left",bottom:"top",top:"bottom"},_e={start:"end",end:"start"};function ke(e,t,r){return we(e,be(t,r))}function Le(e,t){return"function"===typeof e?e(t):e}function Ae(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function je(e){return"x"===e?"y":"x"}function Ve(e){return"y"===e?"height":"width"}function Ce(e){return["top","bottom"].includes(Ae(e))?"y":"x"}function Te(e){return je(Ce(e))}function Pe(e){return e.replace(/start|end/g,(e=>_e[e]))}function Ne(e){return e.replace(/left|right|bottom|top/g,(e=>Se[e]))}function Re(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Me(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ie(e,t,r){let{reference:n,floating:o}=e;const i=Ce(t),l=Te(t),a=Ve(l),s=Ae(t),u="y"===i,c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(s){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Fe(t)){case"start":p[l]-=d*(r&&u?-1:1);break;case"end":p[l]+=d*(r&&u?-1:1)}return p}async function De(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Le(t,e),v=Re(p),h=a[d?"floating"===f?"reference":"floating":f],m=Me(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{...l.floating,x:n,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=Me(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+v.top)/b.y,bottom:(w.bottom-m.bottom+v.bottom)/b.y,left:(m.left-w.left+v.left)/b.x,right:(w.right-m.right+v.right)/b.x}}const $e=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=Le(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Ae(o),g=Ae(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=d||(g||!h?[Ne(a)]:function(e){const t=Ne(e);return[Pe(e),t,Pe(t)]}(a));d||"none"===v||w.push(...function(e,t,r,n){const o=Fe(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}(Ae(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Pe)))),i}(a,h,v,b));const E=[a,...w],x=await De(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&O.push(x[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=Fe(e),o=Te(e),i=Ve(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ne(l)),[l,Ne(l)]}(o,l,b);O.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every((e=>e<=0))){var _,k;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(p){case"bestFit":{var L;const e=null==(L=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}};const Be=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),l=Ae(r),a=Fe(r),s="y"===Ce(r),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=Le(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof v&&(p="end"===a?-1*v:v),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},qe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=Le(e,t),u={x:r,y:n},c=await De(t,s),f=Ce(Ae(o)),d=je(f);let p=u[d],v=u[f];if(i){const e="y"===d?"bottom":"right";p=ke(p+c["y"===d?"top":"left"],p,p-c[e])}if(l){const e="y"===f?"bottom":"right";v=ke(v+c["y"===f?"top":"left"],v,v-c[e])}const h=a.fn({...t,[d]:p,[f]:v});return{...h,data:{x:h.x-r,y:h.y-n}}}}};function We(e){return Ge(e)?(e.nodeName||"").toLowerCase():"#document"}function ze(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function He(e){var t;return null==(t=(Ge(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ge(e){return e instanceof Node||e instanceof ze(e).Node}function Ke(e){return e instanceof Element||e instanceof ze(e).Element}function Ue(e){return e instanceof HTMLElement||e instanceof ze(e).HTMLElement}function Ye(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ze(e).ShadowRoot)}function Je(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Xe(e){return["table","td","th"].includes(We(e))}function Ze(e){const t=Qe(),r=tt(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Qe(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function et(e){return["html","body","#document"].includes(We(e))}function tt(e){return ze(e).getComputedStyle(e)}function rt(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if("html"===We(e))return e;const t=e.assignedSlot||e.parentNode||Ye(e)&&e.host||He(e);return Ye(t)?t.host:t}function ot(e){const t=nt(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ue(t)&&Je(t)?t:ot(t)}function it(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=ot(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=ze(o);return i?t.concat(l,l.visualViewport||[],Je(o)?o:[],l.frameElement&&r?it(l.frameElement):[]):t.concat(o,it(o,[],r))}function lt(e){const t=tt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ue(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=Ee(r)!==i||Ee(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function at(e){return Ke(e)?e:e.contextElement}function st(e){const t=at(e);if(!Ue(t))return Oe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=lt(t);let l=(i?Ee(r.width):r.width)/n,a=(i?Ee(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const ut=Oe(0);function ct(e){const t=ze(e);return Qe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ut}function ft(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=at(e);let l=Oe(1);t&&(n?Ke(n)&&(l=st(n)):l=st(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==ze(e))&&t}(i,r,n)?ct(i):Oe(0);let s=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const e=ze(i),t=n&&Ke(n)?ze(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=st(r),t=r.getBoundingClientRect(),n=tt(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=o,u+=i,r=ze(r).frameElement}}return Me({width:c,height:f,x:s,y:u})}function dt(e){return ft(He(e)).left+rt(e).scrollLeft}function pt(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=ze(e),n=He(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=Qe();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){const t=He(e),r=rt(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+dt(e);const a=-r.scrollTop;return"rtl"===tt(n).direction&&(l+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}(He(e));else if(Ke(t))n=function(e,t){const r=ft(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ue(e)?st(e):Oe(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=ct(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Me(n)}function vt(e,t){const r=nt(e);return!(r===t||!Ke(r)||et(r))&&("fixed"===tt(r).position||vt(r,t))}function ht(e,t,r){const n=Ue(t),o=He(t),i="fixed"===r,l=ft(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Oe(0);if(n||!n&&!i)if(("body"!==We(t)||Je(o))&&(a=rt(t)),n){const e=ft(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=dt(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function mt(e,t){return Ue(e)&&"fixed"!==tt(e).position?t?t(e):e.offsetParent:null}function yt(e,t){const r=ze(e);if(!Ue(e))return r;let n=mt(e,t);for(;n&&Xe(n)&&"static"===tt(n).position;)n=mt(n,t);return n&&("html"===We(n)||"body"===We(n)&&"static"===tt(n).position&&!Ze(n))?r:n||function(e){let t=nt(e);for(;Ue(t)&&!et(t);){if(Ze(t))return t;t=nt(t)}return null}(e)||r}const gt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ue(r),i=He(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Oe(1);const s=Oe(0);if((o||!o&&"fixed"!==n)&&(("body"!==We(r)||Je(i))&&(l=rt(r)),Ue(r))){const e=ft(r);a=st(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}},getDocumentElement:He,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?function(e,t){const r=t.get(e);if(r)return r;let n=it(e,[],!1).filter((e=>Ke(e)&&"body"!==We(e))),o=null;const i="fixed"===tt(e).position;let l=i?nt(e):e;for(;Ke(l)&&!et(l);){const t=tt(l),r=Ze(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Je(l)&&!r&&vt(e,l))?n=n.filter((e=>e!==l)):o=t,l=nt(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=pt(t,r,o);return e.top=we(n.top,e.top),e.right=be(n.right,e.right),e.bottom=be(n.bottom,e.bottom),e.left=we(n.left,e.left),e}),pt(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:yt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||yt,i=this.getDimensions;return{reference:ht(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return lt(e)},getScale:st,isElement:Ke,isRTL:function(e){return"rtl"===tt(e).direction}};function bt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:a="function"===typeof IntersectionObserver,animationFrame:s=!1}=n,u=at(e),c=o||i?[...u?it(u):[],...it(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=u&&a?function(e,t){let r,n=null;const o=He(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-xe(c)+"px "+-xe(o.clientWidth-(u+f))+"px "+-xe(o.clientHeight-(c+d))+"px "+-xe(u)+"px",threshold:we(0,be(1,s))||1};let v=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{n=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(h,p)}n.observe(e)}(!0),i}(u,r):null;let d,p=-1,v=null;l&&(v=new ResizeObserver((e=>{let[n]=e;n&&n.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{v&&v.observe(t)}))),r()})),u&&!s&&v.observe(u),v.observe(t));let h=s?ft(e):null;return s&&function t(){const n=ft(e);!h||n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height||r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),v&&v.disconnect(),v=null,s&&cancelAnimationFrame(d)}}const wt=(e,t,r)=>{const n=new Map,o={platform:gt,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ie(u,n,s),d=n,p={},v=0;for(let h=0;h<a.length;h++){const{name:r,fn:i}=a[h],{x:m,y:y,data:g,reset:b}=await i({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&v<=50&&(v++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:f}=Ie(u,d,s))),h=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Et="react-tooltip-core-styles",xt="react-tooltip-base-styles",Ot={core:!1,base:!1};function St({css:e,id:t=xt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||Ot[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{MOCK:void 0,PUBLIC_PATH:"./"})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:{MOCK:void 0,PUBLIC_PATH:"./"})||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=Et),n||(n={});const{insertAt:l}=n;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===l&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),Ot[r]=!0}const _t=(e,t,r)=>{let n=null;return function(...o){const i=()=>{n=null,r||e.apply(this,o)};r&&!n&&(e.apply(this,o),n=setTimeout(i,t)),r||(n&&clearTimeout(n),n=setTimeout(i,t))}},kt="DEFAULT_TOOLTIP_ID",Lt={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},At=(0,d.createContext)({getTooltipData:()=>Lt});function Ft(e=kt){return(0,d.useContext)(At).getTooltipData(e)}const jt="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,Vt=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},Ct=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Vt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Tt=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[Be(Number(o)),$e(),qe({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const s=l;return r?(s.push({name:"arrow",options:u={element:r,padding:5},async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:c=0}=Le(u,e)||{};if(null==s)return{};const f=Re(c),d={x:t,y:r},p=Te(n),v=Ve(p),h=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[p]-d[p]-o.floating[v],E=d[p]-o.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=x?x[b]:0;O&&await(null==i.isElement?void 0:i.isElement(x))||(O=l.floating[b]||o.floating[v]);const S=w/2-E/2,_=O/2-h[v]/2-1,k=be(f[y],_),L=be(f[g],_),A=k,F=O-h[v]-L,j=O/2-h[v]/2+S,V=ke(A,j,F),C=!a.arrow&&null!=Fe(n)&&j!=V&&o.reference[v]/2-(j<A?k:L)-h[v]/2<0,T=C?j<A?j-A:j-F:0;return{[p]:d[p]+T,data:{[p]:V,centerOffset:j-V-T,...C&&{alignmentOffset:T}},reset:C}}}),wt(e,t,{placement:n,strategy:i,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:n})=>{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:u}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==i?i:"bottom",f=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...f,[c]:`-${4+d}px`},place:r}}))):wt(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})));var u};var Pt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Nt={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Rt=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:p="absolute",middlewares:v,wrapper:h,delayShow:m=0,delayHide:y=0,float:g=!1,hidden:b=!1,noArrow:w=!1,clickable:E=!1,closeOnEsc:x=!1,closeOnScroll:O=!1,closeOnResize:S=!1,openEvents:_,closeEvents:k,globalCloseEvents:L,imperativeModeOnly:A,style:F,position:j,afterShow:V,afterHide:C,content:T,contentWrapperRef:P,isOpen:N,setIsOpen:R,activeAnchor:M,setActiveAnchor:I,border:D,opacity:$,arrowColor:B,role:q="tooltip"})=>{var W;const z=(0,d.useRef)(null),H=(0,d.useRef)(null),G=(0,d.useRef)(null),K=(0,d.useRef)(null),[U,Y]=(0,d.useState)(a),[J,X]=(0,d.useState)({}),[Z,Q]=(0,d.useState)({}),[ee,te]=(0,d.useState)(!1),[re,ne]=(0,d.useState)(!1),[oe,ie]=(0,d.useState)(null),le=(0,d.useRef)(!1),ae=(0,d.useRef)(null),{anchorRefs:se,setActiveAnchor:ue}=Ft(t),ce=(0,d.useRef)(!1),[fe,de]=(0,d.useState)([]),pe=(0,d.useRef)(!1),ve=f||u.includes("click"),he=ve||(null==_?void 0:_.click)||(null==_?void 0:_.dblclick)||(null==_?void 0:_.mousedown),me=_?{..._}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!_&&ve&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&ve&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=L?{...L}:{escape:x||!1,scroll:O||!1,resize:S||!1,clickOutsideAnchor:he||!1};A&&(Object.assign(me,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ye,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ge,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&ne(!0),setTimeout((()=>{pe.current&&(null==R||R(e),void 0===N&&te(e))}),10))};(0,d.useEffect)((()=>{if(void 0===N)return()=>null;N&&ne(!0);const e=setTimeout((()=>{te(N)}),10);return()=>{clearTimeout(e)}}),[N]),(0,d.useEffect)((()=>{ee!==le.current&&(le.current=ee,ee&&(null==V||V()))}),[ee]);const we=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{be(!0)}),e)},Ee=(e=y)=>{K.current&&clearTimeout(K.current),K.current=setTimeout((()=>{ce.current||be(!1)}),e)},xe=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return I(null),void ue({current:null});m?we():be(!0),I(r),ue({current:r}),K.current&&clearTimeout(K.current)},Oe=()=>{E?Ee(y||100):y?Ee():be(!1),G.current&&clearTimeout(G.current)},Se=({x:e,y:t})=>{var r;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};Tt({place:null!==(r=null==oe?void 0:oe.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:z.current,tooltipArrowReference:H.current,strategy:p,middlewares:v,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Q(e.tooltipArrowStyles),Y(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),ae.current=r},ke=e=>{var t;if(!ee)return;const r=e.target;(null===(t=z.current)||void 0===t?void 0:t.contains(r))||[document.querySelector(`[id='${i}']`),...fe].some((e=>null==e?void 0:e.contains(r)))||(be(!1),G.current&&clearTimeout(G.current))},Le=_t(xe,50,!0),Ae=_t(Oe,50,!0),Fe=(0,d.useCallback)((()=>{var e,t;const r=null!==(e=null==oe?void 0:oe.position)&&void 0!==e?e:j;r?Se(r):g?ae.current&&Se(ae.current):(null==M?void 0:M.isConnected)&&Tt({place:null!==(t=null==oe?void 0:oe.place)&&void 0!==t?t:a,offset:s,elementReference:M,tooltipReference:z.current,tooltipArrowReference:H.current,strategy:p,middlewares:v,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Q(e.tooltipArrowStyles),Y(e.place))}))}),[ee,M,T,F,a,null==oe?void 0:oe.place,s,p,j,null==oe?void 0:oe.position,g]);(0,d.useEffect)((()=>{var e,t;const r=new Set(se);fe.forEach((e=>{r.add({current:e})}));const n=document.querySelector(`[id='${i}']`);n&&r.add({current:n});const o=()=>{be(!1)},l=Ct(M),a=Ct(z.current);ge.scroll&&(window.addEventListener("scroll",o),null==l||l.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;ge.resize?window.addEventListener("resize",o):M&&z.current&&(s=bt(M,z.current,Fe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",u),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const c=[],f=e=>{ee||xe(e)},d=()=>{ee&&Oe()},p=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Le}):v.includes(e)&&c.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Ae}):v.includes(e)&&c.push({event:e,listener:d}))})),g&&c.push({event:"mousemove",listener:_e});const h=()=>{ce.current=!0},m=()=>{ce.current=!1,Oe()};return E&&!he&&(null===(e=z.current)||void 0===e||e.addEventListener("mouseenter",h),null===(t=z.current)||void 0===t||t.addEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)}))})),()=>{var e,t;ge.scroll&&(window.removeEventListener("scroll",o),null==l||l.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),ge.resize?window.removeEventListener("resize",o):null==s||s(),ge.clickOutsideAnchor&&window.removeEventListener("click",ke),ge.escape&&window.removeEventListener("keydown",u),E&&!he&&(null===(e=z.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=z.current)||void 0===t||t.removeEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[M,Fe,re,se,fe,_,k,L,ve]),(0,d.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==oe?void 0:oe.anchorSelect)&&void 0!==e?e:l)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const r=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&e.target.getAttribute("data-tooltip-id")===t&&r.push(e.target),"childList"===e.type){if(M){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(n)try{o.push(...t.filter((e=>e.matches(n)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,M))&&(ne(!1),be(!1),I(null),G.current&&clearTimeout(G.current),K.current&&clearTimeout(K.current),!0)}))}if(n)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((e=>e.matches(n)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}}})),(r.length||o.length)&&de((e=>[...e.filter((e=>!o.includes(e))),...r]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{o.disconnect()}}),[t,l,null==oe?void 0:oe.anchorSelect,M]),(0,d.useEffect)((()=>{Fe()}),[Fe]),(0,d.useEffect)((()=>{if(!(null==P?void 0:P.current))return()=>null;const e=new ResizeObserver((()=>{Fe()}));return e.observe(P.current),()=>{e.disconnect()}}),[T,null==P?void 0:P.current]),(0,d.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];M&&r.includes(M)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,M]),(0,d.useEffect)((()=>()=>{G.current&&clearTimeout(G.current),K.current&&clearTimeout(K.current)}),[]),(0,d.useEffect)((()=>{var e;let r=null!==(e=null==oe?void 0:oe.anchorSelect)&&void 0!==e?e:l;if(!r&&t&&(r=`[data-tooltip-id='${t}']`),r)try{const e=Array.from(document.querySelectorAll(r));de(e)}catch(e){de([])}}),[t,l,null==oe?void 0:oe.anchorSelect]);const je=null!==(W=null==oe?void 0:oe.content)&&void 0!==W?W:T,Ve=ee&&Object.keys(J).length>0;return(0,d.useImperativeHandle)(e,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}ie(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?Ee(e.delay):be(!1)},activeAnchor:M,place:U,isOpen:Boolean(re&&!b&&je&&Ve)}))),re&&!b&&je?d.createElement(h,{id:t,role:q,className:c("react-tooltip",Pt.tooltip,Nt.tooltip,Nt[o],r,`react-tooltip__place-${U}`,Pt[Ve?"show":"closing"],Ve?"react-tooltip__show":"react-tooltip__closing","fixed"===p&&Pt.fixed,E&&Pt.clickable),onTransitionEnd:e=>{ee||"opacity"!==e.propertyName||(ne(!1),ie(null),null==C||C())},style:{...F,...J,opacity:void 0!==$&&Ve?$:void 0},ref:z},je,d.createElement(h,{className:c("react-tooltip-arrow",Pt.arrow,Nt.arrow,n,w&&Pt.noArrow),style:{...Z,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:H})):null},Mt=({content:e})=>d.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),It=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Dt=d.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:u="top",offset:f=10,wrapper:p="div",children:v=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:g,delayShow:b=0,delayHide:w=0,float:E=!1,hidden:x=!1,noArrow:O=!1,clickable:S=!1,closeOnEsc:_=!1,closeOnScroll:k=!1,closeOnResize:L=!1,openEvents:A,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:V=!1,style:C,position:T,isOpen:P,disableStyleInjection:N=!1,border:R,opacity:M,arrowColor:I,setIsOpen:D,afterShow:$,afterHide:B,role:q="tooltip"},W)=>{const[z,H]=(0,d.useState)(n),[G,K]=(0,d.useState)(o),[U,Y]=(0,d.useState)(u),[J,X]=(0,d.useState)(s),[Z,Q]=(0,d.useState)(f),[ee,te]=(0,d.useState)(b),[re,ne]=(0,d.useState)(w),[oe,ie]=(0,d.useState)(E),[le,ae]=(0,d.useState)(x),[se,ue]=(0,d.useState)(p),[ce,fe]=(0,d.useState)(h),[de,pe]=(0,d.useState)(y),[ve,he]=(0,d.useState)(null),[me,ye]=(0,d.useState)(null),ge=(0,d.useRef)(N),{anchorRefs:be,activeAnchor:we}=Ft(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t}),{}),xe=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{H(null!=e?e:n)},html:e=>{K(null!=e?e:o)},variant:e=>{var t;X(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Q(null===e?f:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?b:Number(e))},"delay-hide":e=>{ne(null===e?w:Number(e))},float:e=>{ie(null===e?E:"true"===e)},hidden:e=>{ae(null===e?x:"true"===e)},"class-name":e=>{he(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)}))};(0,d.useEffect)((()=>{H(n)}),[n]),(0,d.useEffect)((()=>{K(o)}),[o]),(0,d.useEffect)((()=>{Y(u)}),[u]),(0,d.useEffect)((()=>{X(s)}),[s]),(0,d.useEffect)((()=>{Q(f)}),[f]),(0,d.useEffect)((()=>{te(b)}),[b]),(0,d.useEffect)((()=>{ne(w)}),[w]),(0,d.useEffect)((()=>{ie(E)}),[E]),(0,d.useEffect)((()=>{ae(x)}),[x]),(0,d.useEffect)((()=>{pe(y)}),[y]),(0,d.useEffect)((()=>{ge.current!==N&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[N]),(0,d.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===N,disableBase:N}}))}),[]),(0,d.useEffect)((()=>{var n;const o=new Set(be);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(n){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=me?me:l)&&void 0!==n?n:we.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=Ee(a);xe(r)}))})),u={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),s.observe(a,u)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,d.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!It("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),M&&!It("opacity",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`opacity\`.`)}),[]);let Oe=v;const Se=(0,d.useRef)(null);if(i){const e=i({content:null!=z?z:null,activeAnchor:me});Oe=e?d.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);G&&(Oe=d.createElement(Mt,{content:G}));const _e={forwardRef:W,id:e,anchorId:t,anchorSelect:r,className:c(l,ve),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:U,variant:J,offset:Z,wrapper:se,events:ce,openOnClick:m,positionStrategy:de,middlewares:g,delayShow:ee,delayHide:re,float:oe,hidden:le,noArrow:O,clickable:S,closeOnEsc:_,closeOnScroll:k,closeOnResize:L,openEvents:A,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:V,style:C,position:T,isOpen:P,border:R,opacity:M,arrowColor:I,setIsOpen:D,afterShow:$,afterHide:B,activeAnchor:me,setActiveAnchor:e=>ye(e),role:q};return d.createElement(Rt,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||St({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||St({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var $t=["children","content","className"],Bt=p().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;u(e,$t);return p().createElement(p().Fragment,null,p().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),p().createElement(Dt,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),qt=["children","style","className","colon","required","gutter","labelWidth","labelAlign","tooltip","showLabel"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var zt=p().forwardRef((function(e,t){var n=e.children,o=e.style,i=e.className,l=e.colon,a=e.required,s=e.gutter,c=e.labelWidth,d=e.labelAlign,v=e.tooltip,h=e.showLabel,m=void 0===h||h,y=u(e,qt),g="item-label",b=f()("".concat(g,"__header"),!0===a?"".concat(g,"--required"):"",i||""),w=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({marginRight:s,width:c,textAlign:d},o);return!S(n)&&m?p().createElement("label",U({ref:t,className:b,style:w},y),!0===l?p().createElement(p().Fragment,null,n,":"):n,v&&p().createElement(Bt,{content:v},p().createElement(ge,{name:"wenhao",className:"".concat(g,"__tooltip")}))):null}));function Ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Gt="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Kt(e,t){return 0===e.indexOf(t)}function Ut(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===n?t={aria:!0,data:!0,attr:!0}:!0===n?t={aria:!0}:O(n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n));var o={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||Kt(r,"aria-"))||t.data&&Kt(r,"data-")||t.attr&&Gt.includes(r))&&(o[r]=e[r])})),o}var Yt=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],Jt=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"],Xt="field-item",Zt={field:Xt,inline:"".concat(Xt,"--inline"),required:"".concat(Xt,"--required"),compact:"".concat(Xt,"--compact"),error:"".concat(Xt,"--error"),readOnly:"".concat(Xt,"--readOnly")},Qt=p().forwardRef((function(e,t){var r=e.colon,n=e.required,o=e.showLabel,i=e.labelWidth,l=e.labelAlign,a=e.gutter,s=e.tooltip,c=e.error,d=e.suffix,v=e.footer,h=u(e,Yt),m=h.label,y=h.labelStyle,g=h.inline,b=h.layout,w=void 0===b?"horizontal":b,E=h.compact,x=h.readOnly,O=h.className,S=h.style,_=h.children,k=u(h,Jt),L=f()(Zt.field,w?"".concat(Zt.field,"--").concat(w):"",!0===n?Zt.required:"",!0===E?Zt.compact:"",c?Zt.error:"",!0===g?Zt.inline:"",!0===x?Zt.readOnly:"",O||"");return p().createElement("div",U({ref:t,className:L,style:S},Ut(k)),p().createElement(zt,{showLabel:o,tooltip:s,colon:r,gutter:a,labelWidth:i,labelAlign:l,required:n,style:y},m),p().createElement(ve,{error:c,footer:v,suffix:d},_))})),er=["form"],tr=["children"],rr=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],nr=p().forwardRef((function(e,t){var r=(0,d.useContext)(v),n=r.form,o=u(r,er),i=Object.assign({},o,e),l=i.children,a=u(i,tr),c=a.name,f=a.index,h=a.trigger,m=a.validateTrigger,y=a.valueProp,g=a.valueGetter,b=a.valueSetter,w=a.errorClassName,E=a.onFieldsChange,x=a.onValuesChange,O=a.initialValue,S=a.rules,_=a.component,k=void 0===_?Qt:_,L=u(a,rr),A=s(fe(n,c),1)[0],F=(null===L||void 0===L?void 0:L.ignore)||(null===L||void 0===L?void 0:L.readOnly),j=!(!(0,d.useMemo)((function(){return S instanceof Array&&(null===S||void 0===S?void 0:S.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[S])||!0===F)||(null===L||void 0===L?void 0:L.required),V=k,C=p().createElement(z,{ignore:F,name:c,index:f,trigger:h,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:E,onValuesChange:x},l);return V?p().createElement(V,U({},a,{required:j,ref:t,error:!0!==F&&A}),C):C}));nr.displayName="Form.Item";var or=["form"],ir=["children"],lr=["name","rules","initialValue","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","component"],ar=p().forwardRef((function(e,t){var r=(0,d.useContext)(v),n=r.form,o=u(r,or),i=Object.assign({},o,e),l=i.children,a=u(i,ir),c=a.name,f=a.rules,h=a.initialValue,m=(a.index,a.trigger,a.validateTrigger,a.valueProp,a.valueGetter,a.valueSetter,a.errorClassName,a.onFieldsChange,a.onValuesChange,a.component),y=void 0===m?Qt:m,g=u(a,lr),b=s(fe(n,c),1)[0],w=(null===g||void 0===g?void 0:g.ignore)||(null===g||void 0===g?void 0:g.readOnly),E=!(!(0,d.useMemo)((function(){return f instanceof Array&&(null===f||void 0===f?void 0:f.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[f])||!0===w)||(null===g||void 0===g?void 0:g.required),x=y,O=p().createElement(K,{ignore:w,name:c,rules:f,initialValue:h},l);return x?p().createElement(x,U({},a,{required:E,ref:t,error:!0!==w&&b}),O):O}));ar.displayName="Form.List";var sr=["tagName"],ur=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dr=p().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=u(e,sr);return p().createElement(n,fr(fr({},o),{},{ref:t}))}));function pr(e){var t=e.className,r=void 0===t?"":t,n=e.style,o=e.children,i=e.initialValues,l=e.tagName,a=e.onSubmit,c=e.onReset,f=e.watch,m=u(e,ur),y="simple-form "+r,g=null===m||void 0===m?void 0:m.form;return(0,d.useEffect)((function(){var e;if(g&&f)return null===(e=Object.entries(f))||void 0===e||e.map((function(e){var t=s(e,2),r=t[0],n=t[1];"function"===typeof n?null===g||void 0===g||g.subscribeFormValue(r,n):O(n)&&("function"===typeof n.handler&&(null===g||void 0===g||g.subscribeFormValue(r,n.handler)),n.immediate&&n.handler(null===g||void 0===g?void 0:g.getFieldValue(r),null===g||void 0===g?void 0:g.getLastValue(r)))})),function(){var e;null===(e=Object.entries(f||{}))||void 0===e||e.forEach((function(e){var t=s(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[g,f]),p().createElement(dr,{tagName:l,className:y,style:n,onSubmit:function(e){e.preventDefault(),null===a||void 0===a||a(e)},onReset:c},p().createElement(v.Provider,{value:m},p().createElement(h.Provider,{value:i},o)))}pr.Item=nr,pr.List=ar}(),o}()}));
1
+ !function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.React);for(var n in r)("object"===typeof exports?exports:e)[n]=r[n]}}(self,(function(e){return function(){var t={910:function(e,t,r){"use strict";r.r(t);var n,o=r(359);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}t.default=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"wenhao_svg__icon",viewBox:"0 0 1024 1024"},e),n||(n=o.createElement("path",{fill:"#272636",d:"M510.827 64.042c247.096.027 448.767 201.816 448.28 448.541-.49 247.641-201.839 448.844-448.57 448.241C263.075 960.22 62.84 759.868 62.513 512.535c-.329-246.882 201.23-448.521 448.314-448.493m405.948 448.323c-.036-223.591-181.117-405.318-405.726-405.778-223.89-.459-405.925 181.253-406.16 405.79-.232 223.613 181.45 405.166 405.674 405.805 223.336.636 406.248-182.097 406.212-405.817M535.795 657.3h-56.939c0-11.373-.608-22.537.128-33.612 1.485-22.365 6.658-43.815 18.344-63.301 9.094-15.164 20.675-28.25 33.54-40.276 15.98-14.935 32.149-29.678 47.81-44.94 9.223-8.985 17.42-19.009 21.68-31.483 10.208-29.883 3.682-56.57-16.199-80.337-33.015-39.47-88.235-40.821-122.05-21.066-21.314 12.45-34.093 31.502-41.553 54.414-3.344 10.272-5.653 20.88-8.65 32.155l-60.637-7.199c.779-5.205 1.337-10.1 2.263-14.924 5.196-27.06 14.59-52.297 32.253-73.943 21.52-26.37 49.555-41.723 82.58-48.061 34.471-6.616 68.92-5.902 102.442 4.986 42.92 13.94 74.68 41.177 89.113 84.564 13.857 41.655 7.048 81.004-20.227 116.156-17.302 22.299-38.82 40.415-59.041 59.831-8.896 8.542-17.896 17.137-25.623 26.697-11.477 14.198-15.858 31.37-17.242 49.325-.781 10.137-1.313 20.294-1.992 31.014m-60.637 120.44V710.33h67.458v67.411z"})))}},779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},435:function(e){var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){if(e.constructor!==l.constructor)return!1;var a,s,u,c;if(Array.isArray(e)){if((a=e.length)!=l.length)return!1;for(s=a;0!==s--;)if(!i(e[s],l[s]))return!1;return!0}if(r&&e instanceof Map&&l instanceof Map){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!i(s.value[1],l.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&l instanceof Set){if(e.size!==l.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(l)){if((a=e.length)!=l.length)return!1;for(s=a;0!==s--;)if(e[s]!==l[s])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof l.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof l.toString)return e.toString()===l.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=a;0!==s--;)if(!Object.prototype.hasOwnProperty.call(l,u[s]))return!1;if(t&&e instanceof Element)return!1;for(s=a;0!==s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!i(e[u[s]],l[u[s]]))return!1;return!0}return e!==e&&l!==l}e.exports=function(e,t){try{return i(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},490:function(e,t,r){var n={"./wenhao.svg":910};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=490},359:function(t){"use strict";t.exports=e},609:function(e,t,r){var n=r(425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:F(e,r,l)}),i}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function E(){}function x(){}var O={};d(O,u,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(P([])));_&&_!==i&&l.call(_,u)&&(O=_);var k=x.prototype=w.prototype=Object.create(O);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,i,a,s){var u=v(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function F(e,r,n){var o=h;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=v(e,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=v(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return E.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},L(A.prototype),d(A.prototype,c,(function(){return this})),r.AsyncIterator=A,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new A(p(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},L(k),d(k,f,"Generator"),d(k,u,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=l.call(i,"catchLoc"),u=l.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},425:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},841:function(e,t,r){var n=r(609)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function r(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}n.r(o),n.d(o,{Form:function(){return pr},FormInitialValuesContext:function(){return h},FormItem:function(){return nr},FormList:function(){return ar},Item:function(){return Qt},ItemCore:function(){return W},ListCore:function(){return G},SimpleForm:function(){return se},SimpleFormContext:function(){return v},deepGet:function(){return V},deepSet:function(){return C},getValueFromEvent:function(){return R},getValuePropName:function(){return P},isCanTrigger:function(){return ae},isExitPrefix:function(){return T},isValidNumber:function(){return M},isWithBracket:function(){return N},joinFormPath:function(){return I},pathToArr:function(){return F},toArray:function(){return D},useFormError:function(){return fe},useFormValues:function(){return de},useSimpleForm:function(){return ue},useValidator:function(){return ce}});var c=n(779),f=n.n(c),d=n(359),p=n.n(d),v=p().createContext({}),h=p().createContext(void 0);function m(e){return Object.prototype.toString.call(e).slice(8,-1)}function y(e){return"Array"===m(e)}function g(e){if("Object"!==m(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function b(e){return"Null"===m(e)}function w(e){return"Undefined"===m(e)}function E(e,t={}){if(y(e))return e.map((e=>E(e,t)));if(!g(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(y(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=r),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,E(e[n],t),e,t.nonenumerable),r}),{})}n(435);function x(e){return Object.prototype.toString.call(e)}function O(e){return"[object Object]"==x(e)}function S(e){return Array.isArray(e)||"string"===typeof e||e instanceof String?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"[object Object]"==={}.toString.call(e)?0===Object.keys(e).length:"number"===typeof e?isNaN(e):void 0===e||null===e}var _=function(e){if("number"===typeof e&&!isNaN(e))return!0;if("string"===typeof e){var t=Number(e);if(!isNaN(t)&&e)return!0}};function k(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return E(e)}function F(e){return e instanceof Array?e:"string"===typeof e&&e?e.replace(/\]$/,"").replace(/^\[/,"").split(/\.\[|\]\[|\[|\]\.|\]|\./g):[]}var j=function(e,t){return void 0===e||null===e?e:t instanceof Array?t.reduce((function(t,r){var n=V(e,r);return void 0!==n&&(t[r]=n),t}),{}):"function"===typeof t?Object.keys(e||{}).reduce((function(r,n){var o=e[n];return t(n,o)&&(r[n]=o),r}),{}):void 0};function V(e,t){if(null!==t&&void 0!==t&&t.length){if(t instanceof Array){var r,n=e instanceof Array?[]:{},o=k(t);try{for(o.s();!(r=o.n()).done;){var i,l,a,s=r.value;n[s]=null===(i=F(s))||void 0===i||null===(l=(a=i).reduce)||void 0===l?void 0:l.call(a,(function(e,t){return null===e||void 0===e?void 0:e[t]}),e)}}catch(f){o.e(f)}finally{o.f()}return n}var u,c;return null===(u=F(t))||void 0===u||null===(c=u.reduce)||void 0===c?void 0:c.call(u,(function(e,t){return null===e||void 0===e?void 0:e[t]}),e)}}function C(e,t,r){var n=F(t);if(null===n||void 0===n||!n.length)return e;for(var o,i=function(e){return Array.isArray(t)?_(e):(null===t||void 0===t?void 0:t.indexOf("[".concat(e,"]")))>-1},l=S(e)?i(n[0])?[]:{}:A(e),a=l,s=function(){var e=n[u],t=n[u+1],o=function(){if(void 0===r)if(l instanceof Array){var t,n=+e;null===(t=l)||void 0===t||t.splice(n,1)}else delete l[e];else l[e]=r};if(u===(null===n||void 0===n?void 0:n.length)-1)o();else if(S(l[e])){if(void 0==r)return o(),{v:a};l[e]=i(t)?[]:{}}l=l[e]},u=0;u<(null===n||void 0===n?void 0:n.length);u++)if(o=s())return o.v;return a}function T(e,t){var r=F(e),n=F(t);return!((null===r||void 0===r?void 0:r.length)>(null===n||void 0===n?void 0:n.length)||null===r||void 0===r||!r.length||null===n||void 0===n||!n.length)&&(null===r||void 0===r?void 0:r.every((function(e,t){return e==n[t]})))}function P(e,t){return"function"===typeof e?e(t):e}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];return n&&n.target?"checkbox"===n.target.type?n.target.checked:n.target.value:n}var N=function(e){return"string"===typeof e&&/\[(\d+)\]/gi.test(e)},M=function(e){return _(e)};function I(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null===t||void 0===t?void 0:t.reduce((function(e,t){var r=S(t)?"":M(t)?"[".concat(t,"]"):t,n=S(e)?"":M(e)?"[".concat(e,"]"):e;return N(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}))}function D(e){return e?Array.isArray(e)?e:[e]:[]}var $=["form"],q=["children"],B=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"],W=function(e){var t=(0,d.useContext)(v),n=t.form,o=u(t,$),i=(0,d.useContext)(h),l=Object.assign({},o,e),c=l.children,m=u(l,q),y=m.name,g=m.valueProp,b=void 0===g?"value":g,w=m.valueGetter,E=void 0===w?R:w,x=m.valueSetter,O=m.errorClassName,_=m.onFieldsChange,k=m.onFieldsMounted,L=m.onValuesChange,A=m.initialValue,F=m.trigger,j=void 0===F?"onChange":F,C=m.validateTrigger,T=u(m,B),N=(null===T||void 0===T?void 0:T.ignore)||(null===T||void 0===T?void 0:T.readOnly),M=S(y)||!0===N?void 0:y,I=null!==A&&void 0!==A?A:V(i,M),W=n&&n.getFieldValue(M),z=null!==W&&void 0!==W?W:I,H=s((0,d.useState)(z),2),G=H[0],K=H[1];M&&(null===n||void 0===n||n.setFieldProps(M,m));var U=(0,d.useMemo)((function(){var e=null===m||void 0===m?void 0:m.rules,t=[];if(e instanceof Array)for(var r=0;r<(null===e||void 0===e?void 0:e.length);r++){var n=null===e||void 0===e?void 0:e[r];null!==n&&void 0!==n&&n.validateTrigger&&t.push(null===n||void 0===n?void 0:n.validateTrigger)}return t}),[null===m||void 0===m?void 0:m.rules]),Y=(0,d.useMemo)((function(){return new Set([].concat(a(D(j)),a(D(C)),a(U)))}),[j,C,U]),J=(0,d.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i="function"==typeof E?E.apply(void 0,r):void 0;M&&n&&(n.setFieldValue(M,i,e),_&&_({name:M,value:i},null===n||void 0===n?void 0:n.getFieldValue()))}),[JSON.stringify(M),n,E,_]);(0,d.useEffect)((function(){if(M&&n)return n.subscribeFormItem(M,(function(e,t){K(e),S(e)&&S(t)||L&&L({name:M,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(M)}}),[JSON.stringify(M),n,L]),(0,d.useEffect)((function(){if(M&&n)return void 0!==z&&n.setInitialValues(M,z),k&&k({name:M,value:z},null===n||void 0===n?void 0:n.getFieldValue()),function(){M&&(null===n||void 0===n||n.setFieldProps(M,void 0)),M&&n.setInitialValues(M,void 0)}}),[JSON.stringify(M)]);var X=(0,d.useMemo)((function(){return"function"===typeof x?x(G):x?void 0:G}),[x,G]),Z=function e(t){return p().Children.map(t,(function(t){var n,o,i,l=null===t||void 0===t||null===(n=t.props)||void 0===n?void 0:n.children,a=null===t||void 0===t||null===(o=t.props)||void 0===o?void 0:o["data-type"],s=null===t||void 0===t||null===(i=t.props)||void 0===i?void 0:i["data-name"],u=null===t||void 0===t?void 0:t.type;return!l||"ignore"!==a&&"string"!==typeof u||s?function(e){if(!S(M)&&(0,d.isValidElement)(e)){var t=P(b,e&&e.type),n=null===e||void 0===e?void 0:e.props,o=(n||{}).className,i=X,l=r({className:f()(o,O)},t,i);return Y.forEach((function(e){l[e]=function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===J||void 0===J||J.apply(void 0,[e].concat(o)),null===(t=n[e])||void 0===t||t.call.apply(t,[n].concat(o))}})),(0,d.cloneElement)(e,l)}return e}(t):(0,d.cloneElement)(t,{children:e(l)})}))}(c);return Z};W.displayName="ItemCore";var z=["children"],H=["name","rules","initialValue"],G=function(e){var t=(0,d.useContext)(v),r=Object.assign({},t,e),n=r.children,o=u(r,z),i=o.name,l=o.rules,a=o.initialValue,s=u(o,H),c=(null===s||void 0===s?void 0:s.ignore)||(null===s||void 0===s?void 0:s.readOnly),f=S(i)||!0===c?void 0:i,h=0,m=function(e){var t,r,n,o,i,s=h;h++;var u=l instanceof Array?null===l||void 0===l?void 0:l.concat(null===e||void 0===e||null===(t=e.props)||void 0===t?void 0:t.rules):null===e||void 0===e||null===(r=e.props)||void 0===r?void 0:r.rules,c=null!==(n=null===e||void 0===e||null===(o=e.props)||void 0===o?void 0:o.initialValue)&&void 0!==n?n:null===a||void 0===a?void 0:a[s],v=I(f,s,null===e||void 0===e||null===(i=e.props)||void 0===i?void 0:i.name);return p().isValidElement(e)?(0,d.cloneElement)(e,{name:v,rules:u,initialValue:c}):e},y=function e(t){return p().Children.map(t,(function(t){var r,n,o=null===t||void 0===t||null===(r=t.props)||void 0===r?void 0:r.children,i=null===t||void 0===t||null===(n=t.props)||void 0===n?void 0:n["data-type"],l=null===t||void 0===t?void 0:t.type;return!o||"ignore"!==i&&"string"!==typeof l?p().isValidElement(t)?m(t):t:(0,d.cloneElement)(t,{children:e(o)})}))}(n);return y};function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K.apply(this,arguments)}function U(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(u){return void r(u)}a.done?t(s):Promise.resolve(s).then(n,o)}function Y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){U(i,n,o,l,a,"next",e)}function a(e){U(i,n,o,l,a,"throw",e)}l(void 0)}))}}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}function Z(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}G.displayName="ListCore";var Q=n(841),ee=n.n(Q);var te={required:function(e,t){if(!0===e&&S(t))return!0},pattern:function(e,t){return e instanceof RegExp?!e.test(t):"string"===typeof e?!new RegExp(e).test(t):void 0},whitespace:function(e,t){if(!0===e&&"string"===typeof t)return/^\s+$/.test(t)||""===t},max:function(e,t){if("number"===typeof e){if("string"===typeof t||t instanceof Array)return t.length>e;if("number"===typeof t)return t>e}},min:function(e,t){if("number"===typeof e){if(void 0===t)return!0;if("string"===typeof t||t instanceof Array)return t.length<e;if("number"===typeof t)return t<e}}},re=["validateTrigger"];function ne(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oe(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ie=function(){function e(){J(this,e),this.rulesMap=void 0,this.errorsMap=void 0,this.getError=this.getError.bind(this),this.setError=this.setError.bind(this),this.clearError=this.clearError.bind(this),this.start=this.start.bind(this),this.addRules=this.addRules.bind(this),this.rulesMap={},this.errorsMap={}}return Z(e,[{key:"addRules",value:function(e,t){void 0===t?this.rulesMap[e]&&delete this.rulesMap[e]:this.rulesMap[e]=t}},{key:"setRulesMap",value:function(e){this.rulesMap=Object.assign(this.rulesMap,e)}},{key:"getRulesMap",value:function(){return this.rulesMap}},{key:"getError",value:function(e){if(e)return this.errorsMap[e]}},{key:"setError",value:function(e,t){e&&(void 0===t?delete this.errorsMap[e]:this.errorsMap[e]=t)}},{key:"clearError",value:function(){this.errorsMap={}}},{key:"start",value:function(){var e=Y(ee().mark((function e(t,r,n){var o,i,l,a,s,c,f;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setError(t),(o=this.rulesMap[t])instanceof Array){e.next=4;break}return e.abrupt("return");case 4:i=0;case 5:if(!(i<o.length)){e.next=19;break}if(l=o[i],s=(a=l||{}).validateTrigger,c=u(a,re),!ae(n,s)){e.next=16;break}return e.next=12,le(c,r);case 12:if(!(f=e.sent)){e.next=16;break}return this.setError(t,f),e.abrupt("return",f);case 16:i++,e.next=5;break;case 19:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),e}(),le=function(){var e=Y(ee().mark((function e(t,r){var n,o,i,l,a,u;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:n=t.message,o=Object.entries(t).filter((function(e){return"message"!==s(e,1)[0]})),i=ne(o),e.prev=5,a=ee().mark((function e(){var t,o,i,a;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s(l.value,2),o=t[0],i=t[1],"validator"!==o||"function"!==typeof i){e.next=17;break}return e.prev=2,e.next=5,i(r,(function(e){a=e}));case 5:return e.abrupt("return",{v:a});case 8:if(e.prev=8,e.t0=e.catch(2),"string"!==typeof e.t0){e.next=12;break}return e.abrupt("return",{v:e.t0});case 12:if("string"!=typeof e.t0.message){e.next=14;break}return e.abrupt("return",{v:e.t0.message});case 14:return e.abrupt("return",{v:n});case 15:e.next=19;break;case 17:if(!0!==te[o](i,r)){e.next=19;break}return e.abrupt("return",{v:n});case 19:case"end":return e.stop()}}),e,null,[[2,8]])})),i.s();case 8:if((l=i.n()).done){e.next=15;break}return e.delegateYield(a(),"t0",10);case 10:if(!(u=e.t0)){e.next=13;break}return e.abrupt("return",u.v);case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(5),i.e(e.t1);case 20:return e.prev=20,i.f(),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[5,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}(),ae=function(e,t){return void 0===t||void 0===e||("boolean"===typeof e?e:"string"===typeof t?t===e:t instanceof Array?t.includes(e):void 0)},se=function(){function e(t){J(this,e),this.initialValues=void 0,this.formItemListeners=[],this.formValueListeners=[],this.formValuesListeners=[],this.errorListeners=[],this.values=void 0,this.lastValues=void 0,this.formErrors={},this.fieldProps={},this.validator=void 0,this.initialValues=t,this.fieldProps={},this.formErrors={},this.validator=new ie,this.values=A(t),this.getFieldValue=this.getFieldValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.setFieldError=this.setFieldError.bind(this),this.setFieldsError=this.setFieldsError.bind(this),this.getFieldProps=this.getFieldProps.bind(this),this.setFieldProps=this.setFieldProps.bind(this),this.reset=this.reset.bind(this),this.validate=this.validate.bind(this),this.subscribeError=this.subscribeError.bind(this),this.unsubscribeError=this.unsubscribeError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyError=this.notifyError.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}return Z(e,[{key:"getFieldProps",value:function(e){return void 0===e?this.fieldProps:null===(t=this.fieldProps)||void 0===t?void 0:t[e];var t}},{key:"setFieldProps",value:function(e,t){if(e)if(void 0===t)delete this.fieldProps[e];else{var r=this.fieldProps[e],n=Object.assign({},r,t);this.fieldProps[e]=n,this.validator.addRules(e,null===t||void 0===t?void 0:t.rules)}}},{key:"getFieldValue",value:function(e){return void 0===e?this.values:V(this.values,e)}},{key:"getLastValue",value:function(e){return void 0===e?this.lastValues:V(this.lastValues,e)}},{key:"setInitialValues",value:function(e,t){this.initialValues=C(this.initialValues,e,t),this.lastValues=A(this.values),this.values=C(this.values,e,t),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues()}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:V(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=A(n.values),n.values=C(n.values,e,t);var o=n.getFieldProps(e),i=null===o||void 0===o?void 0:o.rules;null!==i&&void 0!==i&&i.length&&i instanceof Array&&n.validate(e,r)};"string"===typeof e?(o(e,t,r),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues()):O(e)&&(Promise.all(Object.keys(e).map((function(t){return o(t,null===e||void 0===e?void 0:e[t])}))),this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues())}},{key:"setFieldsValue",value:function(e){this.lastValues=A(this.values),this.values=e,this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues()}},{key:"reset",value:function(e){var t=e||this.initialValues;this.setFieldsError({}),this.setFieldsValue(t)}},{key:"getFieldError",value:function(e){return void 0===e?this.formErrors:this.formErrors[e]}},{key:"setFieldError",value:function(e,t){e&&(void 0===t?delete this.formErrors[e]:this.formErrors[e]=t,this.notifyError(e))}},{key:"setFieldsError",value:function(e){this.formErrors=A(e),this.notifyError()}},{key:"validate",value:function(){var e=Y(ee().mark((function e(t,r){var n,o,i,l,a,s,u=this;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=Y(ee().mark((function e(t){var n,o,i,l;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.setFieldError(t,void 0),n=u.getFieldProps(t)||{},o=u.getFieldValue(t),i=null===n||void 0===n?void 0:n.ignore,!ae(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=11;break}return e.next=8,u.validator.start(t,o,r);case 8:return(l=e.sent)&&u.setFieldError(t,l),e.abrupt("return",l);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!(t instanceof Array||void 0===t)){e.next=11;break}return i=this.getFieldProps()||{},l=t instanceof Array?t:Object.keys(i||{}),e.next=6,Promise.all(null===l||void 0===l?void 0:l.map((function(e){var t=null===i||void 0===i?void 0:i[e];if((null===t||void 0===t?void 0:t.rules)instanceof Array)return n(e)})));case 6:return a=e.sent,s=null===a||void 0===a||null===(o=a.filter((function(e){return void 0!==e})))||void 0===o?void 0:o[0],e.abrupt("return",{error:s,values:this.getFieldValue()});case 11:if("string"!==typeof t){e.next=13;break}return e.abrupt("return",n(t));case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"notifyFormItem",value:function(e){var t=this;e?this.formItemListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formItemListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){T(null===r||void 0===r?void 0:r.path,e)&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formValueListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"notifyFormValues",value:function(){var e=this;this.formValuesListeners.forEach((function(t){return t(e.getFieldValue(),e.getLastValue())}))}},{key:"notifyError",value:function(e){e?this.errorListeners.forEach((function(t){(null===t||void 0===t?void 0:t.path)===e&&(null===t||void 0===t?void 0:t.onChange)&&(null===t||void 0===t||t.onChange())})):this.errorListeners.forEach((function(e){return e.onChange()}))}},{key:"subscribeFormItem",value:function(e,t){var r=this;return this.formItemListeners.push({onChange:t,path:e}),function(){r.formItemListeners=r.formItemListeners.filter((function(t){return t.path!==e}))}}},{key:"subscribeFormValue",value:function(e,t){var r=this;return this.formValueListeners.push({onChange:t,path:e}),function(){r.formValueListeners=r.formValueListeners.filter((function(t){return t.path!==e}))}}},{key:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.formValuesListeners=[]}}},{key:"subscribeError",value:function(e,t){var r=this;return this.errorListeners.push({onChange:t,path:e}),function(){r.errorListeners=r.errorListeners.filter((function(t){return t.path!==e}))}}},{key:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{key:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}}]),e}();function ue(e){return(0,d.useMemo)((function(){return new se(e)}),[])}function ce(){return(0,d.useMemo)((function(){return new ie}),[])}function fe(e,t){var r=s((0,d.useState)(),2),n=r[0],o=r[1],i=function(){t&&e&&e.subscribeError(t,(function(){var r=null===e||void 0===e?void 0:e.getFieldError(t);o(r)}))};return(0,d.useMemo)((function(){i()}),[]),(0,d.useEffect)((function(){return i(),function(){e&&e.unsubscribeError(t)}}),[e,JSON.stringify(t)]),[n,o]}function de(e,t){var r=s((0,d.useState)(),2),n=r[0],o=r[1],i=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)o(e);else{var r=t instanceof Array?t:[t],n=r?j(e,r):e;o(n)}}))};return(0,d.useMemo)((function(){i()}),[]),(0,d.useEffect)((function(){return i(),function(){e.unsubscribeFormValues()}}),[e,JSON.stringify(t)]),n}var pe=["children","style","className","error","footer","suffix"],ve=p().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.error,l=e.footer,a=e.suffix,s=u(e,pe),c="item-control",d=f()("".concat(c,"__container"),i?"".concat(c,"--error"):"",o||""),v="string"===typeof r;return p().createElement("div",K({ref:t,className:d,style:n},s),p().createElement("div",{className:f()("".concat(c,"__content"),v&&"".concat(c,"__content--text"))},r,!S(a)&&p().createElement("div",{className:"".concat(c,"__suffix")},a)),!S(l)&&p().createElement("div",{className:"".concat(c,"__footer")},l),p().createElement("div",{className:"".concat(c,"__message")},i))})),he=["name","className"],me={},ye=n(490);ye.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=ye(e).default;me[t]=r}));var ge=p().forwardRef((function(e,t){var r=e.name,n=e.className,o=u(e,he),i=n?"svg-icon "+n:"svg-icon",l=r?me[r]:null;return l?p().createElement(l,K({className:i},o)):null}));const be=Math.min,we=Math.max,Ee=Math.round,xe=Math.floor,Oe=e=>({x:e,y:e}),Se={left:"right",right:"left",bottom:"top",top:"bottom"},_e={start:"end",end:"start"};function ke(e,t,r){return we(e,be(t,r))}function Le(e,t){return"function"===typeof e?e(t):e}function Ae(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function je(e){return"x"===e?"y":"x"}function Ve(e){return"y"===e?"height":"width"}function Ce(e){return["top","bottom"].includes(Ae(e))?"y":"x"}function Te(e){return je(Ce(e))}function Pe(e){return e.replace(/start|end/g,(e=>_e[e]))}function Re(e){return e.replace(/left|right|bottom|top/g,(e=>Se[e]))}function Ne(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Me(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ie(e,t,r){let{reference:n,floating:o}=e;const i=Ce(t),l=Te(t),a=Ve(l),s=Ae(t),u="y"===i,c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(s){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Fe(t)){case"start":p[l]-=d*(r&&u?-1:1);break;case"end":p[l]+=d*(r&&u?-1:1)}return p}async function De(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Le(t,e),v=Ne(p),h=a[d?"floating"===f?"reference":"floating":f],m=Me(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{...l.floating,x:n,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=Me(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+v.top)/b.y,bottom:(w.bottom-m.bottom+v.bottom)/b.y,left:(m.left-w.left+v.left)/b.x,right:(w.right-m.right+v.right)/b.x}}const $e=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=Le(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Ae(o),g=Ae(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=d||(g||!h?[Re(a)]:function(e){const t=Re(e);return[Pe(e),t,Pe(t)]}(a));d||"none"===v||w.push(...function(e,t,r,n){const o=Fe(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}(Ae(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Pe)))),i}(a,h,v,b));const E=[a,...w],x=await De(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&O.push(x[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=Fe(e),o=Te(e),i=Ve(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Re(l)),[l,Re(l)]}(o,l,b);O.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every((e=>e<=0))){var _,k;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(p){case"bestFit":{var L;const e=null==(L=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}};const qe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),l=Ae(r),a=Fe(r),s="y"===Ce(r),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=Le(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof v&&(p="end"===a?-1*v:v),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},Be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=Le(e,t),u={x:r,y:n},c=await De(t,s),f=Ce(Ae(o)),d=je(f);let p=u[d],v=u[f];if(i){const e="y"===d?"bottom":"right";p=ke(p+c["y"===d?"top":"left"],p,p-c[e])}if(l){const e="y"===f?"bottom":"right";v=ke(v+c["y"===f?"top":"left"],v,v-c[e])}const h=a.fn({...t,[d]:p,[f]:v});return{...h,data:{x:h.x-r,y:h.y-n}}}}};function We(e){return Ge(e)?(e.nodeName||"").toLowerCase():"#document"}function ze(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function He(e){var t;return null==(t=(Ge(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ge(e){return e instanceof Node||e instanceof ze(e).Node}function Ke(e){return e instanceof Element||e instanceof ze(e).Element}function Ue(e){return e instanceof HTMLElement||e instanceof ze(e).HTMLElement}function Ye(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ze(e).ShadowRoot)}function Je(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Xe(e){return["table","td","th"].includes(We(e))}function Ze(e){const t=Qe(),r=tt(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Qe(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function et(e){return["html","body","#document"].includes(We(e))}function tt(e){return ze(e).getComputedStyle(e)}function rt(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if("html"===We(e))return e;const t=e.assignedSlot||e.parentNode||Ye(e)&&e.host||He(e);return Ye(t)?t.host:t}function ot(e){const t=nt(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ue(t)&&Je(t)?t:ot(t)}function it(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=ot(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=ze(o);return i?t.concat(l,l.visualViewport||[],Je(o)?o:[],l.frameElement&&r?it(l.frameElement):[]):t.concat(o,it(o,[],r))}function lt(e){const t=tt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ue(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=Ee(r)!==i||Ee(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function at(e){return Ke(e)?e:e.contextElement}function st(e){const t=at(e);if(!Ue(t))return Oe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=lt(t);let l=(i?Ee(r.width):r.width)/n,a=(i?Ee(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const ut=Oe(0);function ct(e){const t=ze(e);return Qe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ut}function ft(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=at(e);let l=Oe(1);t&&(n?Ke(n)&&(l=st(n)):l=st(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==ze(e))&&t}(i,r,n)?ct(i):Oe(0);let s=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const e=ze(i),t=n&&Ke(n)?ze(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=st(r),t=r.getBoundingClientRect(),n=tt(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=o,u+=i,r=ze(r).frameElement}}return Me({width:c,height:f,x:s,y:u})}function dt(e){return ft(He(e)).left+rt(e).scrollLeft}function pt(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=ze(e),n=He(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=Qe();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){const t=He(e),r=rt(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+dt(e);const a=-r.scrollTop;return"rtl"===tt(n).direction&&(l+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}(He(e));else if(Ke(t))n=function(e,t){const r=ft(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ue(e)?st(e):Oe(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=ct(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Me(n)}function vt(e,t){const r=nt(e);return!(r===t||!Ke(r)||et(r))&&("fixed"===tt(r).position||vt(r,t))}function ht(e,t,r){const n=Ue(t),o=He(t),i="fixed"===r,l=ft(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Oe(0);if(n||!n&&!i)if(("body"!==We(t)||Je(o))&&(a=rt(t)),n){const e=ft(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=dt(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function mt(e,t){return Ue(e)&&"fixed"!==tt(e).position?t?t(e):e.offsetParent:null}function yt(e,t){const r=ze(e);if(!Ue(e))return r;let n=mt(e,t);for(;n&&Xe(n)&&"static"===tt(n).position;)n=mt(n,t);return n&&("html"===We(n)||"body"===We(n)&&"static"===tt(n).position&&!Ze(n))?r:n||function(e){let t=nt(e);for(;Ue(t)&&!et(t);){if(Ze(t))return t;t=nt(t)}return null}(e)||r}const gt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ue(r),i=He(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Oe(1);const s=Oe(0);if((o||!o&&"fixed"!==n)&&(("body"!==We(r)||Je(i))&&(l=rt(r)),Ue(r))){const e=ft(r);a=st(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}},getDocumentElement:He,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?function(e,t){const r=t.get(e);if(r)return r;let n=it(e,[],!1).filter((e=>Ke(e)&&"body"!==We(e))),o=null;const i="fixed"===tt(e).position;let l=i?nt(e):e;for(;Ke(l)&&!et(l);){const t=tt(l),r=Ze(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Je(l)&&!r&&vt(e,l))?n=n.filter((e=>e!==l)):o=t,l=nt(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=pt(t,r,o);return e.top=we(n.top,e.top),e.right=be(n.right,e.right),e.bottom=be(n.bottom,e.bottom),e.left=we(n.left,e.left),e}),pt(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:yt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||yt,i=this.getDimensions;return{reference:ht(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return lt(e)},getScale:st,isElement:Ke,isRTL:function(e){return"rtl"===tt(e).direction}};function bt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:a="function"===typeof IntersectionObserver,animationFrame:s=!1}=n,u=at(e),c=o||i?[...u?it(u):[],...it(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=u&&a?function(e,t){let r,n=null;const o=He(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-xe(c)+"px "+-xe(o.clientWidth-(u+f))+"px "+-xe(o.clientHeight-(c+d))+"px "+-xe(u)+"px",threshold:we(0,be(1,s))||1};let v=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{n=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(h,p)}n.observe(e)}(!0),i}(u,r):null;let d,p=-1,v=null;l&&(v=new ResizeObserver((e=>{let[n]=e;n&&n.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{v&&v.observe(t)}))),r()})),u&&!s&&v.observe(u),v.observe(t));let h=s?ft(e):null;return s&&function t(){const n=ft(e);!h||n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height||r();h=n,d=requestAnimationFrame(t)}(),r(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),v&&v.disconnect(),v=null,s&&cancelAnimationFrame(d)}}const wt=(e,t,r)=>{const n=new Map,o={platform:gt,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ie(u,n,s),d=n,p={},v=0;for(let h=0;h<a.length;h++){const{name:r,fn:i}=a[h],{x:m,y:y,data:g,reset:b}=await i({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&v<=50&&(v++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:f}=Ie(u,d,s))),h=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Et="react-tooltip-core-styles",xt="react-tooltip-base-styles",Ot={core:!1,base:!1};function St({css:e,id:t=xt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||Ot[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=Et),n||(n={});const{insertAt:l}=n;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===l&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),Ot[r]=!0}const _t=(e,t,r)=>{let n=null;return function(...o){const i=()=>{n=null,r||e.apply(this,o)};r&&!n&&(e.apply(this,o),n=setTimeout(i,t)),r||(n&&clearTimeout(n),n=setTimeout(i,t))}},kt="DEFAULT_TOOLTIP_ID",Lt={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},At=(0,d.createContext)({getTooltipData:()=>Lt});function Ft(e=kt){return(0,d.useContext)(At).getTooltipData(e)}const jt="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,Vt=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},Ct=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Vt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Tt=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[qe(Number(o)),$e(),Be({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const s=l;return r?(s.push({name:"arrow",options:u={element:r,padding:5},async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:c=0}=Le(u,e)||{};if(null==s)return{};const f=Ne(c),d={x:t,y:r},p=Te(n),v=Ve(p),h=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[p]-d[p]-o.floating[v],E=d[p]-o.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=x?x[b]:0;O&&await(null==i.isElement?void 0:i.isElement(x))||(O=l.floating[b]||o.floating[v]);const S=w/2-E/2,_=O/2-h[v]/2-1,k=be(f[y],_),L=be(f[g],_),A=k,F=O-h[v]-L,j=O/2-h[v]/2+S,V=ke(A,j,F),C=!a.arrow&&null!=Fe(n)&&j!=V&&o.reference[v]/2-(j<A?k:L)-h[v]/2<0,T=C?j<A?j-A:j-F:0;return{[p]:d[p]+T,data:{[p]:V,centerOffset:j-V-T,...C&&{alignmentOffset:T}},reset:C}}}),wt(e,t,{placement:n,strategy:i,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:n})=>{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:u}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==i?i:"bottom",f=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...f,[c]:`-${4+d}px`},place:r}}))):wt(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})));var u};var Pt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Rt={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Nt=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:p="absolute",middlewares:v,wrapper:h,delayShow:m=0,delayHide:y=0,float:g=!1,hidden:b=!1,noArrow:w=!1,clickable:E=!1,closeOnEsc:x=!1,closeOnScroll:O=!1,closeOnResize:S=!1,openEvents:_,closeEvents:k,globalCloseEvents:L,imperativeModeOnly:A,style:F,position:j,afterShow:V,afterHide:C,content:T,contentWrapperRef:P,isOpen:R,setIsOpen:N,activeAnchor:M,setActiveAnchor:I,border:D,opacity:$,arrowColor:q,role:B="tooltip"})=>{var W;const z=(0,d.useRef)(null),H=(0,d.useRef)(null),G=(0,d.useRef)(null),K=(0,d.useRef)(null),[U,Y]=(0,d.useState)(a),[J,X]=(0,d.useState)({}),[Z,Q]=(0,d.useState)({}),[ee,te]=(0,d.useState)(!1),[re,ne]=(0,d.useState)(!1),[oe,ie]=(0,d.useState)(null),le=(0,d.useRef)(!1),ae=(0,d.useRef)(null),{anchorRefs:se,setActiveAnchor:ue}=Ft(t),ce=(0,d.useRef)(!1),[fe,de]=(0,d.useState)([]),pe=(0,d.useRef)(!1),ve=f||u.includes("click"),he=ve||(null==_?void 0:_.click)||(null==_?void 0:_.dblclick)||(null==_?void 0:_.mousedown),me=_?{..._}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!_&&ve&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&ve&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=L?{...L}:{escape:x||!1,scroll:O||!1,resize:S||!1,clickOutsideAnchor:he||!1};A&&(Object.assign(me,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ye,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ge,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&ne(!0),setTimeout((()=>{pe.current&&(null==N||N(e),void 0===R&&te(e))}),10))};(0,d.useEffect)((()=>{if(void 0===R)return()=>null;R&&ne(!0);const e=setTimeout((()=>{te(R)}),10);return()=>{clearTimeout(e)}}),[R]),(0,d.useEffect)((()=>{ee!==le.current&&(le.current=ee,ee&&(null==V||V()))}),[ee]);const we=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{be(!0)}),e)},Ee=(e=y)=>{K.current&&clearTimeout(K.current),K.current=setTimeout((()=>{ce.current||be(!1)}),e)},xe=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return I(null),void ue({current:null});m?we():be(!0),I(r),ue({current:r}),K.current&&clearTimeout(K.current)},Oe=()=>{E?Ee(y||100):y?Ee():be(!1),G.current&&clearTimeout(G.current)},Se=({x:e,y:t})=>{var r;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};Tt({place:null!==(r=null==oe?void 0:oe.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:z.current,tooltipArrowReference:H.current,strategy:p,middlewares:v,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Q(e.tooltipArrowStyles),Y(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),ae.current=r},ke=e=>{var t;if(!ee)return;const r=e.target;(null===(t=z.current)||void 0===t?void 0:t.contains(r))||[document.querySelector(`[id='${i}']`),...fe].some((e=>null==e?void 0:e.contains(r)))||(be(!1),G.current&&clearTimeout(G.current))},Le=_t(xe,50,!0),Ae=_t(Oe,50,!0),Fe=(0,d.useCallback)((()=>{var e,t;const r=null!==(e=null==oe?void 0:oe.position)&&void 0!==e?e:j;r?Se(r):g?ae.current&&Se(ae.current):(null==M?void 0:M.isConnected)&&Tt({place:null!==(t=null==oe?void 0:oe.place)&&void 0!==t?t:a,offset:s,elementReference:M,tooltipReference:z.current,tooltipArrowReference:H.current,strategy:p,middlewares:v,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Q(e.tooltipArrowStyles),Y(e.place))}))}),[ee,M,T,F,a,null==oe?void 0:oe.place,s,p,j,null==oe?void 0:oe.position,g]);(0,d.useEffect)((()=>{var e,t;const r=new Set(se);fe.forEach((e=>{r.add({current:e})}));const n=document.querySelector(`[id='${i}']`);n&&r.add({current:n});const o=()=>{be(!1)},l=Ct(M),a=Ct(z.current);ge.scroll&&(window.addEventListener("scroll",o),null==l||l.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;ge.resize?window.addEventListener("resize",o):M&&z.current&&(s=bt(M,z.current,Fe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",u),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const c=[],f=e=>{ee||xe(e)},d=()=>{ee&&Oe()},p=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Le}):v.includes(e)&&c.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Ae}):v.includes(e)&&c.push({event:e,listener:d}))})),g&&c.push({event:"mousemove",listener:_e});const h=()=>{ce.current=!0},m=()=>{ce.current=!1,Oe()};return E&&!he&&(null===(e=z.current)||void 0===e||e.addEventListener("mouseenter",h),null===(t=z.current)||void 0===t||t.addEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)}))})),()=>{var e,t;ge.scroll&&(window.removeEventListener("scroll",o),null==l||l.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),ge.resize?window.removeEventListener("resize",o):null==s||s(),ge.clickOutsideAnchor&&window.removeEventListener("click",ke),ge.escape&&window.removeEventListener("keydown",u),E&&!he&&(null===(e=z.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=z.current)||void 0===t||t.removeEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[M,Fe,re,se,fe,_,k,L,ve]),(0,d.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==oe?void 0:oe.anchorSelect)&&void 0!==e?e:l)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const r=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&e.target.getAttribute("data-tooltip-id")===t&&r.push(e.target),"childList"===e.type){if(M){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(n)try{o.push(...t.filter((e=>e.matches(n)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,M))&&(ne(!1),be(!1),I(null),G.current&&clearTimeout(G.current),K.current&&clearTimeout(K.current),!0)}))}if(n)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((e=>e.matches(n)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}}})),(r.length||o.length)&&de((e=>[...e.filter((e=>!o.includes(e))),...r]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{o.disconnect()}}),[t,l,null==oe?void 0:oe.anchorSelect,M]),(0,d.useEffect)((()=>{Fe()}),[Fe]),(0,d.useEffect)((()=>{if(!(null==P?void 0:P.current))return()=>null;const e=new ResizeObserver((()=>{Fe()}));return e.observe(P.current),()=>{e.disconnect()}}),[T,null==P?void 0:P.current]),(0,d.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];M&&r.includes(M)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,M]),(0,d.useEffect)((()=>()=>{G.current&&clearTimeout(G.current),K.current&&clearTimeout(K.current)}),[]),(0,d.useEffect)((()=>{var e;let r=null!==(e=null==oe?void 0:oe.anchorSelect)&&void 0!==e?e:l;if(!r&&t&&(r=`[data-tooltip-id='${t}']`),r)try{const e=Array.from(document.querySelectorAll(r));de(e)}catch(e){de([])}}),[t,l,null==oe?void 0:oe.anchorSelect]);const je=null!==(W=null==oe?void 0:oe.content)&&void 0!==W?W:T,Ve=ee&&Object.keys(J).length>0;return(0,d.useImperativeHandle)(e,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}ie(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?Ee(e.delay):be(!1)},activeAnchor:M,place:U,isOpen:Boolean(re&&!b&&je&&Ve)}))),re&&!b&&je?d.createElement(h,{id:t,role:B,className:c("react-tooltip",Pt.tooltip,Rt.tooltip,Rt[o],r,`react-tooltip__place-${U}`,Pt[Ve?"show":"closing"],Ve?"react-tooltip__show":"react-tooltip__closing","fixed"===p&&Pt.fixed,E&&Pt.clickable),onTransitionEnd:e=>{ee||"opacity"!==e.propertyName||(ne(!1),ie(null),null==C||C())},style:{...F,...J,opacity:void 0!==$&&Ve?$:void 0},ref:z},je,d.createElement(h,{className:c("react-tooltip-arrow",Pt.arrow,Rt.arrow,n,w&&Pt.noArrow),style:{...Z,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:H})):null},Mt=({content:e})=>d.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),It=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Dt=d.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:u="top",offset:f=10,wrapper:p="div",children:v=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:g,delayShow:b=0,delayHide:w=0,float:E=!1,hidden:x=!1,noArrow:O=!1,clickable:S=!1,closeOnEsc:_=!1,closeOnScroll:k=!1,closeOnResize:L=!1,openEvents:A,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:V=!1,style:C,position:T,isOpen:P,disableStyleInjection:R=!1,border:N,opacity:M,arrowColor:I,setIsOpen:D,afterShow:$,afterHide:q,role:B="tooltip"},W)=>{const[z,H]=(0,d.useState)(n),[G,K]=(0,d.useState)(o),[U,Y]=(0,d.useState)(u),[J,X]=(0,d.useState)(s),[Z,Q]=(0,d.useState)(f),[ee,te]=(0,d.useState)(b),[re,ne]=(0,d.useState)(w),[oe,ie]=(0,d.useState)(E),[le,ae]=(0,d.useState)(x),[se,ue]=(0,d.useState)(p),[ce,fe]=(0,d.useState)(h),[de,pe]=(0,d.useState)(y),[ve,he]=(0,d.useState)(null),[me,ye]=(0,d.useState)(null),ge=(0,d.useRef)(R),{anchorRefs:be,activeAnchor:we}=Ft(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t}),{}),xe=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{H(null!=e?e:n)},html:e=>{K(null!=e?e:o)},variant:e=>{var t;X(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Q(null===e?f:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?b:Number(e))},"delay-hide":e=>{ne(null===e?w:Number(e))},float:e=>{ie(null===e?E:"true"===e)},hidden:e=>{ae(null===e?x:"true"===e)},"class-name":e=>{he(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)}))};(0,d.useEffect)((()=>{H(n)}),[n]),(0,d.useEffect)((()=>{K(o)}),[o]),(0,d.useEffect)((()=>{Y(u)}),[u]),(0,d.useEffect)((()=>{X(s)}),[s]),(0,d.useEffect)((()=>{Q(f)}),[f]),(0,d.useEffect)((()=>{te(b)}),[b]),(0,d.useEffect)((()=>{ne(w)}),[w]),(0,d.useEffect)((()=>{ie(E)}),[E]),(0,d.useEffect)((()=>{ae(x)}),[x]),(0,d.useEffect)((()=>{pe(y)}),[y]),(0,d.useEffect)((()=>{ge.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[R]),(0,d.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===R,disableBase:R}}))}),[]),(0,d.useEffect)((()=>{var n;const o=new Set(be);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(n){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=me?me:l)&&void 0!==n?n:we.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=Ee(a);xe(r)}))})),u={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),s.observe(a,u)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,d.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),N&&!It("border",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),M&&!It("opacity",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`opacity\`.`)}),[]);let Oe=v;const Se=(0,d.useRef)(null);if(i){const e=i({content:null!=z?z:null,activeAnchor:me});Oe=e?d.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);G&&(Oe=d.createElement(Mt,{content:G}));const _e={forwardRef:W,id:e,anchorId:t,anchorSelect:r,className:c(l,ve),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:U,variant:J,offset:Z,wrapper:se,events:ce,openOnClick:m,positionStrategy:de,middlewares:g,delayShow:ee,delayHide:re,float:oe,hidden:le,noArrow:O,clickable:S,closeOnEsc:_,closeOnScroll:k,closeOnResize:L,openEvents:A,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:V,style:C,position:T,isOpen:P,border:N,opacity:M,arrowColor:I,setIsOpen:D,afterShow:$,afterHide:q,activeAnchor:me,setActiveAnchor:e=>ye(e),role:B};return d.createElement(Nt,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||St({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||St({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var $t=["children","content","className"],qt=p().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;u(e,$t);return p().createElement(p().Fragment,null,p().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),p().createElement(Dt,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),Bt=["children","style","className","colon","required","gutter","labelWidth","labelAlign","tooltip","showLabel"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var zt=p().forwardRef((function(e,t){var n=e.children,o=e.style,i=e.className,l=e.colon,a=e.required,s=e.gutter,c=e.labelWidth,d=e.labelAlign,v=e.tooltip,h=e.showLabel,m=void 0===h||h,y=u(e,Bt),g="item-label",b=f()("".concat(g,"__header"),!0===a?"".concat(g,"--required"):"",i||""),w=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({marginRight:s,width:c,textAlign:d},o);return!S(n)&&m?p().createElement("label",K({ref:t,className:b,style:w},y),!0===l?p().createElement(p().Fragment,null,n,":"):n,v&&p().createElement(qt,{content:v},p().createElement(ge,{name:"wenhao",className:"".concat(g,"__tooltip")}))):null}));function Ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Gt="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Kt(e,t){return 0===e.indexOf(t)}function Ut(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===n?t={aria:!0,data:!0,attr:!0}:!0===n?t={aria:!0}:O(n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n));var o={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||Kt(r,"aria-"))||t.data&&Kt(r,"data-")||t.attr&&Gt.includes(r))&&(o[r]=e[r])})),o}var Yt=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],Jt=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"],Xt="field-item",Zt={field:Xt,inline:"".concat(Xt,"--inline"),required:"".concat(Xt,"--required"),compact:"".concat(Xt,"--compact"),error:"".concat(Xt,"--error"),readOnly:"".concat(Xt,"--readOnly")},Qt=p().forwardRef((function(e,t){var r=e.colon,n=e.required,o=e.showLabel,i=e.labelWidth,l=e.labelAlign,a=e.gutter,s=e.tooltip,c=e.error,d=e.suffix,v=e.footer,h=u(e,Yt),m=h.label,y=h.labelStyle,g=h.inline,b=h.layout,w=void 0===b?"horizontal":b,E=h.compact,x=h.readOnly,O=h.className,S=h.style,_=h.children,k=u(h,Jt),L=f()(Zt.field,w?"".concat(Zt.field,"--").concat(w):"",!0===n?Zt.required:"",!0===E?Zt.compact:"",c?Zt.error:"",!0===g?Zt.inline:"",!0===x?Zt.readOnly:"",O||"");return p().createElement("div",K({ref:t,className:L,style:S},Ut(k)),p().createElement(zt,{showLabel:o,tooltip:s,colon:r,gutter:a,labelWidth:i,labelAlign:l,required:n,style:y},m),p().createElement(ve,{error:c,footer:v,suffix:d},_))})),er=["form"],tr=["children"],rr=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],nr=p().forwardRef((function(e,t){var r=(0,d.useContext)(v),n=r.form,o=u(r,er),i=Object.assign({},o,e),l=i.children,a=u(i,tr),c=a.name,f=a.index,h=a.trigger,m=a.validateTrigger,y=a.valueProp,g=a.valueGetter,b=a.valueSetter,w=a.errorClassName,E=a.onFieldsChange,x=a.onValuesChange,O=a.initialValue,S=a.rules,_=a.component,k=void 0===_?Qt:_,L=u(a,rr),A=s(fe(n,c),1)[0],F=(null===L||void 0===L?void 0:L.ignore)||(null===L||void 0===L?void 0:L.readOnly),j=!(!(0,d.useMemo)((function(){return S instanceof Array&&(null===S||void 0===S?void 0:S.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[S])||!0===F)||(null===L||void 0===L?void 0:L.required),V=k,C=p().createElement(W,{ignore:F,name:c,index:f,trigger:h,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:E,onValuesChange:x},l);return V?p().createElement(V,K({},a,{required:j,ref:t,error:!0!==F&&A}),C):C}));nr.displayName="Form.Item";var or=["form"],ir=["children"],lr=["name","rules","initialValue","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","component"],ar=p().forwardRef((function(e,t){var r=(0,d.useContext)(v),n=r.form,o=u(r,or),i=Object.assign({},o,e),l=i.children,a=u(i,ir),c=a.name,f=a.rules,h=a.initialValue,m=(a.index,a.trigger,a.validateTrigger,a.valueProp,a.valueGetter,a.valueSetter,a.errorClassName,a.onFieldsChange,a.onValuesChange,a.component),y=void 0===m?Qt:m,g=u(a,lr),b=s(fe(n,c),1)[0],w=(null===g||void 0===g?void 0:g.ignore)||(null===g||void 0===g?void 0:g.readOnly),E=!(!(0,d.useMemo)((function(){return f instanceof Array&&(null===f||void 0===f?void 0:f.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[f])||!0===w)||(null===g||void 0===g?void 0:g.required),x=y,O=p().createElement(G,{ignore:w,name:c,rules:f,initialValue:h},l);return x?p().createElement(x,K({},a,{required:E,ref:t,error:!0!==w&&b}),O):O}));ar.displayName="Form.List";var sr=["tagName"],ur=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dr=p().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=u(e,sr);return p().createElement(n,fr(fr({},o),{},{ref:t}))}));function pr(e){var t=e.className,r=void 0===t?"":t,n=e.style,o=e.children,i=e.initialValues,l=e.tagName,a=e.onSubmit,c=e.onReset,f=e.watch,m=u(e,ur),y="simple-form "+r,g=null===m||void 0===m?void 0:m.form;return(0,d.useEffect)((function(){var e;if(g&&f)return null===(e=Object.entries(f))||void 0===e||e.map((function(e){var t=s(e,2),r=t[0],n=t[1];"function"===typeof n?null===g||void 0===g||g.subscribeFormValue(r,n):O(n)&&("function"===typeof n.handler&&(null===g||void 0===g||g.subscribeFormValue(r,n.handler)),n.immediate&&n.handler(null===g||void 0===g?void 0:g.getFieldValue(r),null===g||void 0===g?void 0:g.getLastValue(r)))})),function(){var e;null===(e=Object.entries(f||{}))||void 0===e||e.forEach((function(e){var t=s(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[g,f]),p().createElement(dr,{tagName:l,className:y,style:n,onSubmit:function(e){e.preventDefault(),null===a||void 0===a||a(e)},onReset:c},p().createElement(v.Provider,{value:m},p().createElement(h.Provider,{value:i},o)))}pr.Item=nr,pr.List=ar}(),o}()}));
@@ -1,4 +1,3 @@
1
- import { TriggerType } from "../item-core";
2
1
  import { pathToArr, deepGet, deepSet } from "./object";
3
2
  export { pathToArr, deepGet, deepSet };
4
3
  export declare function isExitPrefix(prefix: string, path: string | string[]): boolean;
@@ -7,5 +6,4 @@ export declare function getValueFromEvent(...args: any[]): any;
7
6
  export declare const isWithBracket: (part?: any) => boolean;
8
7
  export declare const isValidNumber: (item?: any) => true | undefined;
9
8
  export declare function joinFormPath(...args: Array<any>): any;
10
- export declare const validateTriggerCondition: (eventName?: TriggerType | boolean, validateTrigger?: TriggerType | TriggerType[]) => boolean | undefined;
11
9
  export declare function toArray<T>(list?: T | T[]): T[];
@@ -19,12 +19,16 @@ export default class Validator {
19
19
  [path: string]: string | undefined;
20
20
  };
21
21
  constructor();
22
- add(path: string, rules?: FormRule[]): void;
22
+ addRules(path: string, rules?: FormRule[]): void;
23
+ setRulesMap(rulesMap: {
24
+ [path: string]: FormRule[];
25
+ }): void;
23
26
  getRulesMap(): {
24
27
  [path: string]: FormRule[];
25
28
  };
26
29
  getError(path?: string): string | undefined;
27
30
  setError(path: string, msg?: string): void;
28
- resetError(): void;
31
+ clearError(): void;
29
32
  start(path: string, value: any, eventName?: TriggerType | boolean): Promise<any>;
30
33
  }
34
+ export declare const isCanTrigger: (eventName?: TriggerType | boolean, validateTrigger?: TriggerType | TriggerType[]) => boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleform/form",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "simple form component",
5
5
  "author": "mezhanglei <496623925@qq.com>",
6
6
  "homepage": "https://github.com/mezhanglei/simpleform#readme",
@@ -26,10 +26,10 @@
26
26
  "registry": "https://registry.npmjs.org/"
27
27
  },
28
28
  "scripts": {
29
- "build:dist": "cross-env NODE_ENV=dist webpack --progress --config ./webpack/webpack.prod.js",
30
- "build": "cross-env NODE_ENV=prod webpack --progress --config ./webpack/webpack.prod.js && tsc -d",
31
- "stats": "cross-env NODE_ENV=prod webpack --progress --config ./webpack/webpack.prod.js --json > stats.json",
32
- "start": "cross-env NODE_ENV=dev webpack serve --config ./webpack/webpack.dev.js",
29
+ "build:dist": "cross-env NODE_ENV=dist webpack --progress --config ./build/webpack.prod.js",
30
+ "build": "cross-env NODE_ENV=prod webpack --progress --config ./build/webpack.prod.js && tsc -d",
31
+ "stats": "cross-env NODE_ENV=prod webpack --progress --config ./build/webpack.prod.js --json > stats.json",
32
+ "start": "cross-env NODE_ENV=dev webpack serve --config ./build/webpack.dev.js",
33
33
  "lint": "eslint --ext=.js,.ts,.jsx,.tsx src/",
34
34
  "lint:fix": "eslint --fix --ext=.js,.ts,.jsx,.tsx src/",
35
35
  "csslint": "stylelint src/**/*.{css,scss,less}",
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "antd": "^5.11.1",
40
+ "history": "^5.3.0",
40
41
  "react": "^18.2.0",
41
42
  "react-dom": "^18.2.0",
42
43
  "react-router-dom": "^6.19.0"
@@ -44,7 +45,6 @@
44
45
  "dependencies": {
45
46
  "classnames": "^2.3.2",
46
47
  "copy-anything": "^3.0.5",
47
- "history": "^5.3.0",
48
48
  "react-fast-compare": "^3.2.2",
49
49
  "react-tooltip": "^5.23.0"
50
50
  },
File without changes