@simpleform/form 2.0.7 → 2.0.8
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/lib/index.js +1 -1
- package/lib/utils/utils.d.ts +2 -2
- package/package.json +1 -1
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,c,u;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(u=e.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;for(u=e.entries();!(s=u.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(u=e.entries();!(s=u.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=(c=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=a;0!==s--;)if(!Object.prototype.hasOwnProperty.call(l,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=a;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!i(e[c[s]],l[c[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:{},c=s.iterator||"@@iterator",u=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:j(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function x(){}function E(){}var O={};d(O,c,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(C([])));_&&_!==i&&l.call(_,c)&&(O=_);var k=E.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 F(e,t){function r(o,i,a,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.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){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.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 j(e,r,n){var o=v;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=A(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===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function A(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,A(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=h(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 P(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 C(e){if(e||""===e){var r=e[c];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 x.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:x,configurable:!0}),x.displayName=d(E,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},L(F.prototype),d(F.prototype,u,(function(){return this})),r.AsyncIterator=F,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new F(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,c,(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=C,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(P),!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"),c=l.call(i,"finallyLoc");if(s&&c){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(!c)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),P(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;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(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(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 t(t,r){if(t){if("string"===typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function r(e,r){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,c=!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){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,r)||t(e,r)||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 i(e){return i="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},i(e)}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(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}function c(r){return function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||t(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(o),n.d(o,{Form:function(){return ir},FormInitialValuesContext:function(){return p},FormItem:function(){return Qt},Item:function(){return Jt},ItemCore:function(){return z},SimpleForm:function(){return re},SimpleFormContext:function(){return d},deepGet:function(){return j},deepSet:function(){return A},getRulesTriggers:function(){return q},getTriggers:function(){return W},getValueFromEvent:function(){return T},getValuePropName:function(){return P},handleRules:function(){return ee},isCanTrigger:function(){return te},isExitPrefix:function(){return V},isWithBracket:function(){return C},joinFormPath:function(){return R},pathToArr:function(){return k},toArray:function(){return N},useFormError:function(){return ie},useFormValues:function(){return le},useMethod:function(){return ne},useSimpleForm:function(){return oe}});var u=n(359),f=n.n(u),d=f().createContext({}),p=f().createContext(void 0);function h(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Array"===h(e)}function m(e){if("Object"!==h(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function y(e){return"Null"===h(e)}function g(e){return"Undefined"===h(e)}function b(e,t={}){if(v(e))return e.map((e=>b(e,t)));if(!m(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(v(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,b(e[n],t),e,t.nonenumerable),r}),{})}n(435);function w(e){return Object.prototype.toString.call(e)}function x(e){return"[object Object]"==w(e)}function E(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}function O(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 S(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 S(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 S(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 _(e){return b(e)}function k(e){if(e instanceof Array)return e;return("string"===typeof e&&e?e.match(/([^\.\[\]]+)|(\[\d+\])/g):[])||[]}function L(e){return"number"!==typeof e&&"string"!==typeof e?"":"number"===typeof e?e:e.toString().replace(/\]/,"").replace(/\[/,"")}var F=function(e,t){return void 0===e||null===e?e:t instanceof Array?t.reduce((function(t,r){var n=j(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 j(e,t){if(null!==t&&void 0!==t&&t.length){if(t instanceof Array){var r,n=e instanceof Array?[]:{},o=O(t);try{var i=function(){var t,o,i=r.value;n[i]=null===(t=k(i))||void 0===t||null===(o=t.reduce)||void 0===o?void 0:o.call(t,(function(e,t){return null===e||void 0===e?void 0:e[L(i)]}),e)};for(o.s();!(r=o.n()).done;)i()}catch(s){o.e(s)}finally{o.f()}return n}var l,a;return null===(l=k(t))||void 0===l||null===(a=l.reduce)||void 0===a?void 0:a.call(l,(function(e,t){return null===e||void 0===e?void 0:e[L(t)]}),e)}}function A(e,t,r){var n=k(t);if(null===n||void 0===n||!n.length)return e;for(var o,i=function(e){if("number"===typeof e||"string"===typeof e)return"number"===typeof e||C(e)},l=E(e)?i(n[0])?[]:{}:_(e),a=l,s=function(){var e=L(n[c]),t=n[c+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(c===(null===n||void 0===n?void 0:n.length)-1)o();else if(E(l[e])){if(void 0==r)return o(),{v:a};l[e]=i(t)?[]:{}}l=l[e]},c=0;c<(null===n||void 0===n?void 0:n.length);c++)if(o=s())return o.v;return a}function V(e,t){var r=k(e),n=k(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 T(){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 C=function(e){return"string"===typeof e&&/^\[\d+\]$/.test(e)};function R(){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=E(t)?"":"number"===typeof t?"[".concat(t,"]"):t,n=E(e)?"":"number"===typeof e?"[".concat(e,"]"):e;return C(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}))}function N(e){return e?Array.isArray(e)?e:[e]:[]}var I=["form"],D=["children"],M=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"];function B(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 $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e){var t=[];if(e instanceof Array&&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}function W(e,t,r){return new Set([].concat(c(N(e)),c(N(t)),c(r)))}var z=function(e){var t=(0,u.useContext)(d),n=t.form,o=s(t,I),i=(0,u.useContext)(p),l=Object.assign({},o,e),a=l.children,c=s(l,D),f=c.name,h=c.valueProp,v=void 0===h?"value":h,m=c.valueGetter,y=void 0===m?T:m,g=(c.valueSetter,c.errorClassName),b=(c.onFieldsChange,c.onFieldsMounted),w=c.onValuesChange,x=c.initialValue,O=c.trigger,S=void 0===O?"onChange":O,_=(c.validateTrigger,s(c,M)),k=$($({},c),{},{valueProp:v,valueGetter:y,trigger:S}),L=(null===_||void 0===_?void 0:_.ignore)||(null===_||void 0===_?void 0:_.readOnly),F=E(f)||!0===L?void 0:f,A=null!==x&&void 0!==x?x:j(i,F),V=n&&n.getFieldValue(F),P=null!==V&&void 0!==V?V:A,C=r((0,u.useState)(),2),R=C[0],N=C[1];F&&(null===n||void 0===n||n.setFieldProps(F,k)),(0,u.useEffect)((function(){if(F&&n)return n.subscribeFormItem(F,(function(e,t){N(e),E(e)&&E(t)||w&&w({name:F,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(F)}}),[JSON.stringify(F),n,w]),(0,u.useEffect)((function(){if(F&&n)return void 0!==P&&n.setInitialValues(F,P),b&&b({name:F,value:P},null===n||void 0===n?void 0:n.getFieldValue()),function(){F&&(null===n||void 0===n||n.setFieldProps(F,void 0)),F&&n.setInitialValues(F,void 0)}}),[JSON.stringify(F)]);var B=function(e){if("function"===typeof e){var t=n&&n.getBindProps(F,R)||{};return e({className:g,form:n,bindProps:t})}return e}(a);return B};function H(){return H=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},H.apply(this,arguments)}function G(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(c){return void r(c)}a.done?t(s):Promise.resolve(s).then(n,o)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){G(i,n,o,l,a,"next",e)}function a(e){G(i,n,o,l,a,"throw",e)}l(void 0)}))}}function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}z.displayName="ItemCore";var J=n(841),Y=n.n(J);var X={required:function(e,t){if(!0===e&&E(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}}},Z=["validateTrigger","message"],Q=function(){var e=K(Y().mark((function e(t,n,o){var i,l,a,c,u,f,d,p,h;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(l=(i=t||{}).validateTrigger,a=i.message,c=s(i,Z),te(o,l)){e.next=6;break}return e.abrupt("return");case 6:u=Object.entries(c||{}),f=Y().mark((function e(){var t,o,i,l,s;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r(h[p],2),o=t[0],i=t[1],l=X[o],"validator"!==o||"function"!==typeof i){e.next=18;break}return e.prev=3,e.next=6,i(n,(function(e){s=e}));case 6:return e.abrupt("return",{v:s});case 9:if(e.prev=9,e.t0=e.catch(3),"string"!==typeof e.t0){e.next=13;break}return e.abrupt("return",{v:e.t0});case 13:if("string"!=typeof e.t0.message){e.next=15;break}return e.abrupt("return",{v:e.t0.message});case 15:return e.abrupt("return",{v:a});case 16:e.next=21;break;case 18:if("function"!==typeof l){e.next=21;break}if(!0!==l(i,n)){e.next=21;break}return e.abrupt("return",{v:a});case 21:case"end":return e.stop()}}),e,null,[[3,9]])})),p=0,h=u;case 9:if(!(p<h.length)){e.next=17;break}return e.delegateYield(f(),"t0",11);case 11:if(!(d=e.t0)){e.next=14;break}return e.abrupt("return",d.v);case 14:p++,e.next=9;break;case 17:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),ee=function(){var e=K(Y().mark((function e(t,r,n){var o,i,l;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Array){e.next=2;break}return e.abrupt("return");case 2:o=0;case 3:if(!(o<t.length)){e.next=13;break}return i=t[o],e.next=7,Q(i,r,n);case 7:if(!(l=e.sent)){e.next=10;break}return e.abrupt("return",l);case 10:o++,e.next=3;break;case 13:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),te=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)},re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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.initialValues=t,this.fieldProps={},this.formErrors={},this.values=_(t),this.getFieldValue=this.getFieldValue.bind(this),this.getLastValue=this.getLastValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getInitialValues=this.getInitialValues.bind(this),this.setInitialValues=this.setInitialValues.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.getBindProps=this.getBindProps.bind(this),this.bindChange=this.bindChange.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.notifyError=this.notifyError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}var t,r,n;return t=e,r=[{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:"bindChange",value:function(e,t){if(e){for(var r=this.getFieldProps(e)||{},n=r.valueGetter,o=r.onFieldsChange,i=arguments.length,l=new Array(i>2?i-2:0),a=2;a<i;a++)l[a-2]=arguments[a];var s="function"==typeof n?n.apply(void 0,l):void 0;this.setFieldValue(e,s,t),o&&o({name:e,value:s},this.getFieldValue())}}},{key:"getBindProps",value:function(e,t){var r=this;if(e){var n=this.getFieldProps(e),o=this.getFieldValue(e),i=n||{},l=i.valueProp,s=i.valueSetter,c=i.trigger,u=i.validateTrigger,f=i.rules,d=P(l),p=W(c,u,q(f)),h=a({},d,"function"===typeof s?s(o):s?void 0:o);if(void 0!==t){var v="function"===typeof s?s(t):s?void 0:t;h[d]=v}return p.forEach((function(t){h[t]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.bindChange.apply(r,[e,t].concat(o))}})),h}}},{key:"setFieldProps",value:function(e,t){if(e){var r=this.fieldProps[e];if(void 0===t)void 0!==r&&delete this.fieldProps[e];else{var n=Object.assign({},r,t);this.fieldProps[e]=n}}}},{key:"getFieldValue",value:function(e){return void 0===e?this.values:j(this.values,e)}},{key:"getLastValue",value:function(e){return void 0===e?this.lastValues:j(this.lastValues,e)}},{key:"setInitialValues",value:function(e,t){this.initialValues=A(this.initialValues,e,t),this.lastValues=_(this.values),this.values=A(this.values,e,t),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues(e)}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:j(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=_(n.values),n.values=A(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(e)):x(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=_(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=_(e),this.notifyError()}},{key:"validate",value:function(){var e=K(Y().mark((function e(t,r){var n,o,i,l,a,s,c=this;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=K(Y().mark((function e(t){var n,o,i,l,a;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.setFieldError(t,void 0),n=c.getFieldProps(t)||{},o=c.getFieldValue(t),i=null===n||void 0===n?void 0:n.ignore,!te(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=12;break}return l=n.rules,e.next=9,ee(l,o,r);case 9:return(a=e.sent)&&c.setFieldError(t,a),e.abrupt("return",a);case 12: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:"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:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{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:"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:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){V(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:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.formValuesListeners=[]}}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"notifyFormValues",value:function(e){var t=this;this.formValuesListeners.forEach((function(e){return e(t.getFieldValue(),t.getLastValue())}))}},{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:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}},{key:"notifyError",value:function(e){var t=this;e?this.errorListeners.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.getFieldError(e)))})):this.errorListeners.forEach((function(e){return e.onChange(t.getFieldError(e.path))}))}}],r&&U(t.prototype,r),n&&U(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ne(e){var t=f().useRef({method:e,func:void 0}).current;return t.method=e,t.func||(t.func=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.method).call.apply(e,[t.method].concat(n))}),t.func}function oe(e){var t=(0,u.useRef)(new re(e));return le(t.current),t.current}function ie(e,t){var n=r((0,u.useState)(),2),o=n[0],i=n[1],l=function(){t&&e&&e.subscribeError(t,(function(e){i(e)}))};return(0,u.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,u.useEffect)((function(){return l(),function(){e&&e.unsubscribeError(t)}}),[JSON.stringify(t)]),[o,i]}function le(e,t){var n=r((0,u.useState)(),2),o=n[0],i=n[1],l=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)i(e);else{var r=t instanceof Array?t:[t],n=r?F(e,r):e;i(n)}}))};return(0,u.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,u.useEffect)((function(){return l(),function(){e&&e.unsubscribeFormValues()}}),[JSON.stringify(t)]),o}var ae=n(779),se=n.n(ae),ce=["children","style","className","error","footer","suffix"],ue=f().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.error,l=e.footer,a=e.suffix,c=s(e,ce),u="item-control",d=se()("".concat(u,"__container"),i?"".concat(u,"--error"):"",o||""),p="string"===typeof r;return f().createElement("div",H({ref:t,className:d,style:n},c),f().createElement("div",{className:se()("".concat(u,"__content"),p&&"".concat(u,"__content--text"))},r,!E(a)&&f().createElement("div",{className:"".concat(u,"__suffix")},a)),!E(l)&&f().createElement("div",{className:"".concat(u,"__footer")},l),f().createElement("div",{className:"".concat(u,"__message")},i))})),fe=["name","className"],de={},pe=n(490);pe.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=pe(e).default;de[t]=r}));var he=f().forwardRef((function(e,t){var r=e.name,n=e.className,o=s(e,fe),i=n?"svg-icon "+n:"svg-icon",l=r?de[r]:null;return l?f().createElement(l,H({className:i},o)):null}));const ve=Math.min,me=Math.max,ye=Math.round,ge=Math.floor,be=e=>({x:e,y:e}),we={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function Ee(e,t,r){return me(e,ve(t,r))}function Oe(e,t){return"function"===typeof e?e(t):e}function Se(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function ke(e){return"x"===e?"y":"x"}function Le(e){return"y"===e?"height":"width"}function Fe(e){return["top","bottom"].includes(Se(e))?"y":"x"}function je(e){return ke(Fe(e))}function Ae(e){return e.replace(/start|end/g,(e=>xe[e]))}function Ve(e){return e.replace(/left|right|bottom|top/g,(e=>we[e]))}function Pe(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 Te(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ce(e,t,r){let{reference:n,floating:o}=e;const i=Fe(t),l=je(t),a=Le(l),s=Se(t),c="y"===i,u=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:u,y:n.y-o.height};break;case"bottom":p={x:u,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(_e(t)){case"start":p[l]-=d*(r&&c?-1:1);break;case"end":p[l]+=d*(r&&c?-1:1)}return p}async function Re(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Oe(t,e),h=Pe(p),v=a[d?"floating"===f?"reference":"floating":f],m=Te(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(v)))||r?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,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=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}const Ne=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:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=Oe(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Se(o),g=Se(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=d||(g||!v?[Ve(a)]:function(e){const t=Ve(e);return[Ae(e),t,Ae(t)]}(a));d||"none"===h||w.push(...function(e,t,r,n){const o=_e(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[]}}(Se(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ae)))),i}(a,v,h,b));const x=[a,...w],E=await Re(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&O.push(E[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=_e(e),o=je(e),i=Le(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ve(l)),[l,Ve(l)]}(o,l,b);O.push(E[e[0]],E[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=x[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 Ie=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=Se(r),a=_e(r),s="y"===Fe(r),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,f=Oe(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(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}}}}},De=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}=Oe(e,t),c={x:r,y:n},u=await Re(t,s),f=Fe(Se(o)),d=ke(f);let p=c[d],h=c[f];if(i){const e="y"===d?"bottom":"right";p=Ee(p+u["y"===d?"top":"left"],p,p-u[e])}if(l){const e="y"===f?"bottom":"right";h=Ee(h+u["y"===f?"top":"left"],h,h-u[e])}const v=a.fn({...t,[d]:p,[f]:h});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Me(e){return qe(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $e(e){var t;return null==(t=(qe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qe(e){return e instanceof Node||e instanceof Be(e).Node}function We(e){return e instanceof Element||e instanceof Be(e).Element}function ze(e){return e instanceof HTMLElement||e instanceof Be(e).HTMLElement}function He(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot)}function Ge(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Ke(e){return["table","td","th"].includes(Me(e))}function Ue(e){const t=Je(),r=Xe(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 Je(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ye(e){return["html","body","#document"].includes(Me(e))}function Xe(e){return Be(e).getComputedStyle(e)}function Ze(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qe(e){if("html"===Me(e))return e;const t=e.assignedSlot||e.parentNode||He(e)&&e.host||$e(e);return He(t)?t.host:t}function et(e){const t=Qe(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Ge(t)?t:et(t)}function tt(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=et(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=Be(o);return i?t.concat(l,l.visualViewport||[],Ge(o)?o:[],l.frameElement&&r?tt(l.frameElement):[]):t.concat(o,tt(o,[],r))}function rt(e){const t=Xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=ye(r)!==i||ye(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function nt(e){return We(e)?e:e.contextElement}function ot(e){const t=nt(e);if(!ze(t))return be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=rt(t);let l=(i?ye(r.width):r.width)/n,a=(i?ye(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const it=be(0);function lt(e){const t=Be(e);return Je()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:it}function at(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=nt(e);let l=be(1);t&&(n?We(n)&&(l=ot(n)):l=ot(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Be(e))&&t}(i,r,n)?lt(i):be(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(i){const e=Be(i),t=n&&We(n)?Be(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=ot(r),t=r.getBoundingClientRect(),n=Xe(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=o,c+=i,r=Be(r).frameElement}}return Te({width:u,height:f,x:s,y:c})}function st(e){return at($e(e)).left+Ze(e).scrollLeft}function ct(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Be(e),n=$e(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=Je();(!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=$e(e),r=Ze(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+st(e);const a=-r.scrollTop;return"rtl"===Xe(n).direction&&(l+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}($e(e));else if(We(t))n=function(e,t){const r=at(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ze(e)?ot(e):be(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=lt(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Te(n)}function ut(e,t){const r=Qe(e);return!(r===t||!We(r)||Ye(r))&&("fixed"===Xe(r).position||ut(r,t))}function ft(e,t,r){const n=ze(t),o=$e(t),i="fixed"===r,l=at(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=be(0);if(n||!n&&!i)if(("body"!==Me(t)||Ge(o))&&(a=Ze(t)),n){const e=at(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=st(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function dt(e,t){return ze(e)&&"fixed"!==Xe(e).position?t?t(e):e.offsetParent:null}function pt(e,t){const r=Be(e);if(!ze(e))return r;let n=dt(e,t);for(;n&&Ke(n)&&"static"===Xe(n).position;)n=dt(n,t);return n&&("html"===Me(n)||"body"===Me(n)&&"static"===Xe(n).position&&!Ue(n))?r:n||function(e){let t=Qe(e);for(;ze(t)&&!Ye(t);){if(Ue(t))return t;t=Qe(t)}return null}(e)||r}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=ze(r),i=$e(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=be(1);const s=be(0);if((o||!o&&"fixed"!==n)&&(("body"!==Me(r)||Ge(i))&&(l=Ze(r)),ze(r))){const e=at(r);a=ot(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:$e,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=tt(e,[],!1).filter((e=>We(e)&&"body"!==Me(e))),o=null;const i="fixed"===Xe(e).position;let l=i?Qe(e):e;for(;We(l)&&!Ye(l);){const t=Xe(l),r=Ue(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ge(l)&&!r&&ut(e,l))?n=n.filter((e=>e!==l)):o=t,l=Qe(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=ct(t,r,o);return e.top=me(n.top,e.top),e.right=ve(n.right,e.right),e.bottom=ve(n.bottom,e.bottom),e.left=me(n.left,e.left),e}),ct(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:pt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||pt,i=this.getDimensions;return{reference:ft(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 rt(e)},getScale:ot,isElement:We,isRTL:function(e){return"rtl"===Xe(e).direction}};function vt(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,c=nt(e),u=o||i?[...c?tt(c):[],...tt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=c&&a?function(e,t){let r,n=null;const o=$e(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:c,top:u,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-ge(u)+"px "+-ge(o.clientWidth-(c+f))+"px "+-ge(o.clientHeight-(u+d))+"px "+-ge(c)+"px",threshold:me(0,ve(1,s))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),i}(c,r):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),r()})),c&&!s&&h.observe(c),h.observe(t));let v=s?at(e):null;return s&&function t(){const n=at(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,d=requestAnimationFrame(t)}(),r(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const mt=(e,t,r)=>{const n=new Map,o={platform:ht,...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 c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ce(c,n,s),d=n,p={},h=0;for(let v=0;v<a.length;v++){const{name:r,fn:i}=a[v],{x:m,y:y,data:g,reset:b}=await i({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=m?m:u,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&h<=50&&(h++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:f}=Ce(c,d,s))),v=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},yt="react-tooltip-core-styles",gt="react-tooltip-base-styles",bt={core:!1,base:!1};function wt({css:e,id:t=gt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||bt[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=yt),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)),bt[r]=!0}const xt=(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))}},Et="DEFAULT_TOOLTIP_ID",Ot={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},St=(0,u.createContext)({getTooltipData:()=>Ot});function _t(e=Et){return(0,u.useContext)(St).getTooltipData(e)}const kt="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,Lt=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}))},Ft=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Lt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},jt=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[Ie(Number(o)),Ne(),De({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:c={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:u=0}=Oe(c,e)||{};if(null==s)return{};const f=Pe(u),d={x:t,y:r},p=je(n),h=Le(p),v=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-d[p]-o.floating[h],x=d[p]-o.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=E?E[b]:0;O&&await(null==i.isElement?void 0:i.isElement(E))||(O=l.floating[b]||o.floating[h]);const S=w/2-x/2,_=O/2-v[h]/2-1,k=ve(f[y],_),L=ve(f[g],_),F=k,j=O-v[h]-L,A=O/2-v[h]/2+S,V=Ee(F,A,j),P=!a.arrow&&null!=_e(n)&&A!=V&&o.reference[h]/2-(A<F?k:L)-v[h]/2<0,T=P?A<F?A-F:A-j:0;return{[p]:d[p]+T,data:{[p]:V,centerOffset:A-V-T,...P&&{alignmentOffset:T}},reset:P}}}),mt(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:c}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},u=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!=c?`${c}px`:"",right:"",bottom:"",...f,[u]:`-${4+d}px`},place:r}}))):mt(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 c};var At={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"},Vt={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 Pt=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:c=["hover"],openOnClick:f=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:y=!1,hidden:g=!1,noArrow:b=!1,clickable:w=!1,closeOnEsc:x=!1,closeOnScroll:E=!1,closeOnResize:O=!1,openEvents:S,closeEvents:_,globalCloseEvents:k,imperativeModeOnly:L,style:F,position:j,afterShow:A,afterHide:V,content:P,contentWrapperRef:T,isOpen:C,setIsOpen:R,activeAnchor:N,setActiveAnchor:I,border:D,opacity:M,arrowColor:B,role:$="tooltip"})=>{var q;const W=(0,u.useRef)(null),z=(0,u.useRef)(null),H=(0,u.useRef)(null),G=(0,u.useRef)(null),[K,U]=(0,u.useState)(a),[J,Y]=(0,u.useState)({}),[X,Z]=(0,u.useState)({}),[Q,ee]=(0,u.useState)(!1),[te,re]=(0,u.useState)(!1),[ne,oe]=(0,u.useState)(null),ie=(0,u.useRef)(!1),le=(0,u.useRef)(null),{anchorRefs:se,setActiveAnchor:ce}=_t(t),ue=(0,u.useRef)(!1),[fe,de]=(0,u.useState)([]),pe=(0,u.useRef)(!1),he=f||c.includes("click"),ve=he||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),me=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&he&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=_?{..._}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!_&&he&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=k?{...k}:{escape:x||!1,scroll:E||!1,resize:O||!1,clickOutsideAnchor:ve||!1};L&&(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})),kt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&re(!0),setTimeout((()=>{pe.current&&(null==R||R(e),void 0===C&&ee(e))}),10))};(0,u.useEffect)((()=>{if(void 0===C)return()=>null;C&&re(!0);const e=setTimeout((()=>{ee(C)}),10);return()=>{clearTimeout(e)}}),[C]),(0,u.useEffect)((()=>{Q!==ie.current&&(ie.current=Q,Q&&(null==A||A()))}),[Q]);const we=(e=v)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{be(!0)}),e)},xe=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{ue.current||be(!1)}),e)},Ee=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 ce({current:null});v?we():be(!0),I(r),ce({current:r}),G.current&&clearTimeout(G.current)},Oe=()=>{w?xe(m||100):m?xe():be(!1),H.current&&clearTimeout(H.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})};jt({place:null!==(r=null==ne?void 0:ne.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:W.current,tooltipArrowReference:z.current,strategy:d,middlewares:p,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&Y(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),le.current=r},ke=e=>{var t;if(!Q)return;const r=e.target;(null===(t=W.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),H.current&&clearTimeout(H.current))},Le=xt(Ee,50,!0),Fe=xt(Oe,50,!0),je=(0,u.useCallback)((()=>{var e,t;const r=null!==(e=null==ne?void 0:ne.position)&&void 0!==e?e:j;r?Se(r):y?le.current&&Se(le.current):(null==N?void 0:N.isConnected)&&jt({place:null!==(t=null==ne?void 0:ne.place)&&void 0!==t?t:a,offset:s,elementReference:N,tooltipReference:W.current,tooltipArrowReference:z.current,strategy:d,middlewares:p,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&Y(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place))}))}),[Q,N,P,F,a,null==ne?void 0:ne.place,s,d,j,null==ne?void 0:ne.position,y]);(0,u.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=Ft(N),a=Ft(W.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):N&&W.current&&(s=vt(N,W.current,je,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",c),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const u=[],f=e=>{Q||Ee(e)},d=()=>{Q&&Oe()},p=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?u.push({event:e,listener:Le}):h.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?u.push({event:e,listener:Fe}):h.includes(e)&&u.push({event:e,listener:d}))})),y&&u.push({event:"mousemove",listener:_e});const v=()=>{ue.current=!0},m=()=>{ue.current=!1,Oe()};return w&&!ve&&(null===(e=W.current)||void 0===e||e.addEventListener("mouseenter",v),null===(t=W.current)||void 0===t||t.addEventListener("mouseleave",m)),u.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",c),w&&!ve&&(null===(e=W.current)||void 0===e||e.removeEventListener("mouseenter",v),null===(t=W.current)||void 0===t||t.removeEventListener("mouseleave",m)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[N,je,te,se,fe,S,_,k,he]),(0,u.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==ne?void 0:ne.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(N){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,N))&&(re(!1),be(!1),I(null),H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.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==ne?void 0:ne.anchorSelect,N]),(0,u.useEffect)((()=>{je()}),[je]),(0,u.useEffect)((()=>{if(!(null==T?void 0:T.current))return()=>null;const e=new ResizeObserver((()=>{je()}));return e.observe(T.current),()=>{e.disconnect()}}),[P,null==T?void 0:T.current]),(0,u.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];N&&r.includes(N)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,N]),(0,u.useEffect)((()=>()=>{H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current)}),[]),(0,u.useEffect)((()=>{var e;let r=null!==(e=null==ne?void 0:ne.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==ne?void 0:ne.anchorSelect]);const Ae=null!==(q=null==ne?void 0:ne.content)&&void 0!==q?q:P,Ve=Q&&Object.keys(J).length>0;return(0,u.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`)}oe(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?xe(e.delay):be(!1)},activeAnchor:N,place:K,isOpen:Boolean(te&&!g&&Ae&&Ve)}))),te&&!g&&Ae?u.createElement(h,{id:t,role:$,className:ae("react-tooltip",At.tooltip,Vt.tooltip,Vt[o],r,`react-tooltip__place-${K}`,At[Ve?"show":"closing"],Ve?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&At.fixed,w&&At.clickable),onTransitionEnd:e=>{Q||"opacity"!==e.propertyName||(re(!1),oe(null),null==V||V())},style:{...F,...J,opacity:void 0!==M&&Ve?M:void 0},ref:W},Ae,u.createElement(h,{className:ae("react-tooltip-arrow",At.arrow,Vt.arrow,n,b&&At.noArrow),style:{...X,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:z})):null},Tt=({content:e})=>u.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Ct=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Rt=u.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:c="top",offset:f=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:O=!1,closeOnEsc:S=!1,closeOnScroll:_=!1,closeOnResize:k=!1,openEvents:L,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:A=!1,style:V,position:P,isOpen:T,disableStyleInjection:C=!1,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,role:$="tooltip"},q)=>{const[W,z]=(0,u.useState)(n),[H,G]=(0,u.useState)(o),[K,U]=(0,u.useState)(c),[J,Y]=(0,u.useState)(s),[X,Z]=(0,u.useState)(f),[Q,ee]=(0,u.useState)(g),[te,re]=(0,u.useState)(b),[ne,oe]=(0,u.useState)(w),[ie,le]=(0,u.useState)(x),[se,ce]=(0,u.useState)(d),[ue,fe]=(0,u.useState)(h),[de,pe]=(0,u.useState)(m),[he,ve]=(0,u.useState)(null),[me,ye]=(0,u.useState)(null),ge=(0,u.useRef)(C),{anchorRefs:be,activeAnchor:we}=_t(e),xe=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}),{}),Ee=e=>{const t={place:e=>{var t;U(null!==(t=e)&&void 0!==t?t:c)},content:e=>{z(null!=e?e:n)},html:e=>{G(null!=e?e:o)},variant:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Z(null===e?f:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:d)},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:m)},"delay-show":e=>{ee(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{oe(null===e?w:"true"===e)},hidden:e=>{le(null===e?x:"true"===e)},"class-name":e=>{ve(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,u.useEffect)((()=>{z(n)}),[n]),(0,u.useEffect)((()=>{G(o)}),[o]),(0,u.useEffect)((()=>{U(c)}),[c]),(0,u.useEffect)((()=>{Y(s)}),[s]),(0,u.useEffect)((()=>{Z(f)}),[f]),(0,u.useEffect)((()=>{ee(g)}),[g]),(0,u.useEffect)((()=>{re(b)}),[b]),(0,u.useEffect)((()=>{oe(w)}),[w]),(0,u.useEffect)((()=>{le(x)}),[x]),(0,u.useEffect)((()=>{pe(m)}),[m]),(0,u.useEffect)((()=>{ge.current!==C&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[C]),(0,u.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===C,disableBase:C}}))}),[]),(0,u.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=xe(a);Ee(r)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=xe(a);Ee(e),s.observe(a,c)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,u.useEffect)((()=>{(null==V?void 0:V.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!Ct("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==V?void 0:V.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!Ct("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Se=(0,u.useRef)(null);if(i){const e=i({content:null!=W?W:null,activeAnchor:me});Oe=e?u.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else W&&(Oe=W);H&&(Oe=u.createElement(Tt,{content:H}));const _e={forwardRef:q,id:e,anchorId:t,anchorSelect:r,className:ae(l,he),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:K,variant:J,offset:X,wrapper:se,events:ue,openOnClick:v,positionStrategy:de,middlewares:y,delayShow:Q,delayHide:te,float:ne,hidden:ie,noArrow:E,clickable:O,closeOnEsc:S,closeOnScroll:_,closeOnResize:k,openEvents:L,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:A,style:V,position:P,isOpen:T,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,activeAnchor:me,setActiveAnchor:e=>ye(e),role:$};return u.createElement(Pt,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||wt({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||wt({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 Nt=["children","content","className"],It=f().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;s(e,Nt);return f().createElement(f().Fragment,null,f().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),f().createElement(Rt,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),Dt=["children","style","className","colon","required","gutter","labelWidth","labelAlign","tooltip","showLabel"];function Mt(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 Bt=f().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.colon,l=e.required,c=e.gutter,u=e.labelWidth,d=e.labelAlign,p=e.tooltip,h=e.showLabel,v=void 0===h||h,m=s(e,Dt),y="item-label",g=se()("".concat(y,"__header"),!0===l?"".concat(y,"--required"):"",o||""),b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({marginRight:c,width:u,textAlign:d},n);return!E(r)&&v?f().createElement("label",H({ref:t,className:g,style:b},m),!0===i?f().createElement(f().Fragment,null,r,":"):r,p&&f().createElement(It,{content:p},f().createElement(he,{name:"wenhao",className:"".concat(y,"__tooltip")}))):null}));function $t(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 qt="".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 Wt(e,t){return 0===e.indexOf(t)}function zt(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===r?t={aria:!0,data:!0,attr:!0}:!0===r?t={aria:!0}:x(r)&&(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r));var n={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||Wt(r,"aria-"))||t.data&&Wt(r,"data-")||t.attr&&qt.includes(r))&&(n[r]=e[r])})),n}var Ht=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],Gt=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"],Kt="field-item",Ut={field:Kt,inline:"".concat(Kt,"--inline"),required:"".concat(Kt,"--required"),compact:"".concat(Kt,"--compact"),error:"".concat(Kt,"--error"),readOnly:"".concat(Kt,"--readOnly")},Jt=f().forwardRef((function(e,t){var r=e.colon,n=e.required,o=e.showLabel,i=e.labelWidth,l=e.labelAlign,a=e.gutter,c=e.tooltip,u=e.error,d=e.suffix,p=e.footer,h=s(e,Ht),v=h.label,m=h.labelStyle,y=h.inline,g=h.layout,b=void 0===g?"horizontal":g,w=h.compact,x=h.readOnly,E=h.className,O=h.style,S=h.children,_=s(h,Gt),k=se()(Ut.field,b?"".concat(Ut.field,"--").concat(b):"",!0===n?Ut.required:"",!0===w?Ut.compact:"",u?Ut.error:"",!0===y?Ut.inline:"",!0===x?Ut.readOnly:"",E||"");return f().createElement("div",H({ref:t,className:k,style:O},zt(_)),f().createElement(Bt,{showLabel:o,tooltip:c,colon:r,gutter:a,labelWidth:i,labelAlign:l,required:n,style:m},v),f().createElement(ue,{error:u,footer:p,suffix:d},S))})),Yt=["form"],Xt=["children"],Zt=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],Qt=f().forwardRef((function(e,t){var n=(0,u.useContext)(d),o=n.form,i=s(n,Yt),l=Object.assign({},i,e),a=l.children,c=s(l,Xt),p=c.name,h=c.index,v=c.trigger,m=c.validateTrigger,y=c.valueProp,g=c.valueGetter,b=c.valueSetter,w=c.errorClassName,x=c.onFieldsChange,E=c.onValuesChange,O=c.initialValue,S=c.rules,_=c.component,k=void 0===_?Jt:_,L=s(c,Zt),F=r(ie(o,p),1)[0],j=(null===L||void 0===L?void 0:L.ignore)||(null===L||void 0===L?void 0:L.readOnly),A=!(!(0,u.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===j)||(null===L||void 0===L?void 0:L.required),V=k,P=f().createElement(z,{ignore:j,name:p,index:h,trigger:v,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:x,onValuesChange:E},a);return V?f().createElement(V,H({},c,{required:A,ref:t,error:!0!==j&&F}),P):P}));Qt.displayName="Form.Item";var er=["tagName"],tr=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function rr(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 nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=f().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=s(e,er);return f().createElement(n,nr(nr({},o),{},{ref:t}))}));function ir(e){var t=e.className,n=void 0===t?"":t,o=e.style,i=e.children,l=e.initialValues,a=e.tagName,c=e.onSubmit,h=e.onReset,v=e.watch,m=s(e,tr),y="simple-form "+n,g=null===m||void 0===m?void 0:m.form;return(0,u.useEffect)((function(){var e;if(g&&v)return null===(e=Object.entries(v))||void 0===e||e.map((function(e){var t=r(e,2),n=t[0],o=t[1];"function"===typeof o?null===g||void 0===g||g.subscribeFormValue(n,o):x(o)&&("function"===typeof o.handler&&(null===g||void 0===g||g.subscribeFormValue(n,o.handler)),o.immediate&&o.handler(null===g||void 0===g?void 0:g.getFieldValue(n),null===g||void 0===g?void 0:g.getLastValue(n)))})),function(){var e;null===(e=Object.entries(v||{}))||void 0===e||e.forEach((function(e){var t=r(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[v]),f().createElement(or,{tagName:a,className:y,style:o,onSubmit:function(e){e.preventDefault(),null===c||void 0===c||c(e)},onReset:h},f().createElement(d.Provider,{value:m},f().createElement(p.Provider,{value:l},i)))}ir.Item=Qt}(),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,c,u;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(u=e.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;for(u=e.entries();!(s=u.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(u=e.entries();!(s=u.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=(c=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(s=a;0!==s--;)if(!Object.prototype.hasOwnProperty.call(l,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=a;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!i(e[c[s]],l[c[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:{},c=s.iterator||"@@iterator",u=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:j(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function x(){}function E(){}var O={};d(O,c,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(C([])));_&&_!==i&&l.call(_,c)&&(O=_);var k=E.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 F(e,t){function r(o,i,a,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.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){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.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 j(e,r,n){var o=v;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=A(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===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function A(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,A(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=h(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 P(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 C(e){if(e||""===e){var r=e[c];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 x.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:x,configurable:!0}),x.displayName=d(E,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},L(F.prototype),d(F.prototype,u,(function(){return this})),r.AsyncIterator=F,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new F(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,c,(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=C,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(P),!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"),c=l.call(i,"finallyLoc");if(s&&c){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(!c)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),P(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;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(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(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 t(t,r){if(t){if("string"===typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function r(e,r){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,c=!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){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,r)||t(e,r)||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 i(e){return i="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},i(e)}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(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}function c(r){return function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||t(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(o),n.d(o,{Form:function(){return ir},FormInitialValuesContext:function(){return p},FormItem:function(){return Qt},Item:function(){return Jt},ItemCore:function(){return z},SimpleForm:function(){return re},SimpleFormContext:function(){return d},deepGet:function(){return j},deepSet:function(){return A},formatFormKey:function(){return L},getRulesTriggers:function(){return q},getTriggers:function(){return W},getValueFromEvent:function(){return T},getValuePropName:function(){return P},handleRules:function(){return ee},isCanTrigger:function(){return te},isExitPrefix:function(){return V},isWithBracket:function(){return C},joinFormPath:function(){return R},pathToArr:function(){return k},toArray:function(){return N},useFormError:function(){return ie},useFormValues:function(){return le},useMethod:function(){return ne},useSimpleForm:function(){return oe}});var u=n(359),f=n.n(u),d=f().createContext({}),p=f().createContext(void 0);function h(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Array"===h(e)}function m(e){if("Object"!==h(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function y(e){return"Null"===h(e)}function g(e){return"Undefined"===h(e)}function b(e,t={}){if(v(e))return e.map((e=>b(e,t)));if(!m(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(v(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,b(e[n],t),e,t.nonenumerable),r}),{})}n(435);function w(e){return Object.prototype.toString.call(e)}function x(e){return"[object Object]"==w(e)}function E(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}function O(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 S(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 S(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 S(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 _(e){return b(e)}function k(e){if(e instanceof Array)return e;return("string"===typeof e&&e?e.match(/([^\.\[\]]+)|(\[\d+\])/g):[])||[]}function L(e){return"number"!==typeof e&&"string"!==typeof e?"":"number"===typeof e?e:e.toString().replace(/\]/,"").replace(/\[/,"")}var F=function(e,t){return void 0===e||null===e?e:t instanceof Array?t.reduce((function(t,r){var n=j(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 j(e,t){if(null!==t&&void 0!==t&&t.length){if(t instanceof Array){var r,n=e instanceof Array?[]:{},o=O(t);try{var i=function(){var t,o,i=r.value;n[i]=null===(t=k(i))||void 0===t||null===(o=t.reduce)||void 0===o?void 0:o.call(t,(function(e,t){return null===e||void 0===e?void 0:e[L(i)]}),e)};for(o.s();!(r=o.n()).done;)i()}catch(s){o.e(s)}finally{o.f()}return n}var l,a;return null===(l=k(t))||void 0===l||null===(a=l.reduce)||void 0===a?void 0:a.call(l,(function(e,t){return null===e||void 0===e?void 0:e[L(t)]}),e)}}function A(e,t,r){var n=k(t);if(null===n||void 0===n||!n.length)return e;for(var o,i=function(e){if("number"===typeof e||"string"===typeof e)return"number"===typeof e||C(e)},l=E(e)?i(n[0])?[]:{}:_(e),a=l,s=function(){var e=L(n[c]),t=n[c+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(c===(null===n||void 0===n?void 0:n.length)-1)o();else if(E(l[e])){if(void 0==r)return o(),{v:a};l[e]=i(t)?[]:{}}l=l[e]},c=0;c<(null===n||void 0===n?void 0:n.length);c++)if(o=s())return o.v;return a}function V(e,t){var r=k(e),n=k(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 T(){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 C=function(e){return"string"===typeof e&&/^\[\d+\]$/.test(e)};function R(){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=E(t)?"":"number"===typeof t?"[".concat(t,"]"):t,n=E(e)?"":"number"===typeof e?"[".concat(e,"]"):e;return C(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}))}function N(e){return e?Array.isArray(e)?e:[e]:[]}var I=["form"],D=["children"],M=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"];function B(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 $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e){var t=[];if(e instanceof Array&&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}function W(e,t,r){return new Set([].concat(c(N(e)),c(N(t)),c(r)))}var z=function(e){var t=(0,u.useContext)(d),n=t.form,o=s(t,I),i=(0,u.useContext)(p),l=Object.assign({},o,e),a=l.children,c=s(l,D),f=c.name,h=c.valueProp,v=void 0===h?"value":h,m=c.valueGetter,y=void 0===m?T:m,g=(c.valueSetter,c.errorClassName),b=(c.onFieldsChange,c.onFieldsMounted),w=c.onValuesChange,x=c.initialValue,O=c.trigger,S=void 0===O?"onChange":O,_=(c.validateTrigger,s(c,M)),k=$($({},c),{},{valueProp:v,valueGetter:y,trigger:S}),L=(null===_||void 0===_?void 0:_.ignore)||(null===_||void 0===_?void 0:_.readOnly),F=E(f)||!0===L?void 0:f,A=null!==x&&void 0!==x?x:j(i,F),V=n&&n.getFieldValue(F),P=null!==V&&void 0!==V?V:A,C=r((0,u.useState)(),2),R=C[0],N=C[1];F&&(null===n||void 0===n||n.setFieldProps(F,k)),(0,u.useEffect)((function(){if(F&&n)return n.subscribeFormItem(F,(function(e,t){N(e),E(e)&&E(t)||w&&w({name:F,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(F)}}),[JSON.stringify(F),n,w]),(0,u.useEffect)((function(){if(F&&n)return void 0!==P&&n.setInitialValues(F,P),b&&b({name:F,value:P},null===n||void 0===n?void 0:n.getFieldValue()),function(){F&&(null===n||void 0===n||n.setFieldProps(F,void 0)),F&&n.setInitialValues(F,void 0)}}),[JSON.stringify(F)]);var B=function(e){if("function"===typeof e){var t=n&&n.getBindProps(F,R)||{};return e({className:g,form:n,bindProps:t})}return e}(a);return B};function H(){return H=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},H.apply(this,arguments)}function G(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(c){return void r(c)}a.done?t(s):Promise.resolve(s).then(n,o)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){G(i,n,o,l,a,"next",e)}function a(e){G(i,n,o,l,a,"throw",e)}l(void 0)}))}}function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}z.displayName="ItemCore";var J=n(841),Y=n.n(J);var X={required:function(e,t){if(!0===e&&E(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}}},Z=["validateTrigger","message"],Q=function(){var e=K(Y().mark((function e(t,n,o){var i,l,a,c,u,f,d,p,h;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(l=(i=t||{}).validateTrigger,a=i.message,c=s(i,Z),te(o,l)){e.next=6;break}return e.abrupt("return");case 6:u=Object.entries(c||{}),f=Y().mark((function e(){var t,o,i,l,s;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r(h[p],2),o=t[0],i=t[1],l=X[o],"validator"!==o||"function"!==typeof i){e.next=18;break}return e.prev=3,e.next=6,i(n,(function(e){s=e}));case 6:return e.abrupt("return",{v:s});case 9:if(e.prev=9,e.t0=e.catch(3),"string"!==typeof e.t0){e.next=13;break}return e.abrupt("return",{v:e.t0});case 13:if("string"!=typeof e.t0.message){e.next=15;break}return e.abrupt("return",{v:e.t0.message});case 15:return e.abrupt("return",{v:a});case 16:e.next=21;break;case 18:if("function"!==typeof l){e.next=21;break}if(!0!==l(i,n)){e.next=21;break}return e.abrupt("return",{v:a});case 21:case"end":return e.stop()}}),e,null,[[3,9]])})),p=0,h=u;case 9:if(!(p<h.length)){e.next=17;break}return e.delegateYield(f(),"t0",11);case 11:if(!(d=e.t0)){e.next=14;break}return e.abrupt("return",d.v);case 14:p++,e.next=9;break;case 17:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),ee=function(){var e=K(Y().mark((function e(t,r,n){var o,i,l;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Array){e.next=2;break}return e.abrupt("return");case 2:o=0;case 3:if(!(o<t.length)){e.next=13;break}return i=t[o],e.next=7,Q(i,r,n);case 7:if(!(l=e.sent)){e.next=10;break}return e.abrupt("return",l);case 10:o++,e.next=3;break;case 13:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),te=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)},re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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.initialValues=t,this.fieldProps={},this.formErrors={},this.values=_(t),this.getFieldValue=this.getFieldValue.bind(this),this.getLastValue=this.getLastValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getInitialValues=this.getInitialValues.bind(this),this.setInitialValues=this.setInitialValues.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.getBindProps=this.getBindProps.bind(this),this.bindChange=this.bindChange.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.notifyError=this.notifyError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}var t,r,n;return t=e,r=[{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:"bindChange",value:function(e,t){if(e){for(var r=this.getFieldProps(e)||{},n=r.valueGetter,o=r.onFieldsChange,i=arguments.length,l=new Array(i>2?i-2:0),a=2;a<i;a++)l[a-2]=arguments[a];var s="function"==typeof n?n.apply(void 0,l):void 0;this.setFieldValue(e,s,t),o&&o({name:e,value:s},this.getFieldValue())}}},{key:"getBindProps",value:function(e,t){var r=this;if(e){var n=this.getFieldProps(e),o=this.getFieldValue(e),i=n||{},l=i.valueProp,s=i.valueSetter,c=i.trigger,u=i.validateTrigger,f=i.rules,d=P(l),p=W(c,u,q(f)),h=a({},d,"function"===typeof s?s(o):s?void 0:o);if(void 0!==t){var v="function"===typeof s?s(t):s?void 0:t;h[d]=v}return p.forEach((function(t){h[t]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.bindChange.apply(r,[e,t].concat(o))}})),h}}},{key:"setFieldProps",value:function(e,t){if(e){var r=this.fieldProps[e];if(void 0===t)void 0!==r&&delete this.fieldProps[e];else{var n=Object.assign({},r,t);this.fieldProps[e]=n}}}},{key:"getFieldValue",value:function(e){return void 0===e?this.values:j(this.values,e)}},{key:"getLastValue",value:function(e){return void 0===e?this.lastValues:j(this.lastValues,e)}},{key:"setInitialValues",value:function(e,t){this.initialValues=A(this.initialValues,e,t),this.lastValues=_(this.values),this.values=A(this.values,e,t),this.notifyFormItem(e),this.notifyFormValue(e),this.notifyFormValues(e)}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:j(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=_(n.values),n.values=A(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(e)):x(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=_(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=_(e),this.notifyError()}},{key:"validate",value:function(){var e=K(Y().mark((function e(t,r){var n,o,i,l,a,s,c=this;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=K(Y().mark((function e(t){var n,o,i,l,a;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.setFieldError(t,void 0),n=c.getFieldProps(t)||{},o=c.getFieldValue(t),i=null===n||void 0===n?void 0:n.ignore,!te(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=12;break}return l=n.rules,e.next=9,ee(l,o,r);case 9:return(a=e.sent)&&c.setFieldError(t,a),e.abrupt("return",a);case 12: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:"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:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{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:"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:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){V(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:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.formValuesListeners=[]}}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"notifyFormValues",value:function(e){var t=this;this.formValuesListeners.forEach((function(e){return e(t.getFieldValue(),t.getLastValue())}))}},{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:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}},{key:"notifyError",value:function(e){var t=this;e?this.errorListeners.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.getFieldError(e)))})):this.errorListeners.forEach((function(e){return e.onChange(t.getFieldError(e.path))}))}}],r&&U(t.prototype,r),n&&U(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ne(e){var t=f().useRef({method:e,func:void 0}).current;return t.method=e,t.func||(t.func=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.method).call.apply(e,[t.method].concat(n))}),t.func}function oe(e){var t=(0,u.useRef)(new re(e));return le(t.current),t.current}function ie(e,t){var n=r((0,u.useState)(),2),o=n[0],i=n[1],l=function(){t&&e&&e.subscribeError(t,(function(e){i(e)}))};return(0,u.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,u.useEffect)((function(){return l(),function(){e&&e.unsubscribeError(t)}}),[JSON.stringify(t)]),[o,i]}function le(e,t){var n=r((0,u.useState)(),2),o=n[0],i=n[1],l=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)i(e);else{var r=t instanceof Array?t:[t],n=r?F(e,r):e;i(n)}}))};return(0,u.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,u.useEffect)((function(){return l(),function(){e&&e.unsubscribeFormValues()}}),[JSON.stringify(t)]),o}var ae=n(779),se=n.n(ae),ce=["children","style","className","error","footer","suffix"],ue=f().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.error,l=e.footer,a=e.suffix,c=s(e,ce),u="item-control",d=se()("".concat(u,"__container"),i?"".concat(u,"--error"):"",o||""),p="string"===typeof r;return f().createElement("div",H({ref:t,className:d,style:n},c),f().createElement("div",{className:se()("".concat(u,"__content"),p&&"".concat(u,"__content--text"))},r,!E(a)&&f().createElement("div",{className:"".concat(u,"__suffix")},a)),!E(l)&&f().createElement("div",{className:"".concat(u,"__footer")},l),f().createElement("div",{className:"".concat(u,"__message")},i))})),fe=["name","className"],de={},pe=n(490);pe.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=pe(e).default;de[t]=r}));var he=f().forwardRef((function(e,t){var r=e.name,n=e.className,o=s(e,fe),i=n?"svg-icon "+n:"svg-icon",l=r?de[r]:null;return l?f().createElement(l,H({className:i},o)):null}));const ve=Math.min,me=Math.max,ye=Math.round,ge=Math.floor,be=e=>({x:e,y:e}),we={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function Ee(e,t,r){return me(e,ve(t,r))}function Oe(e,t){return"function"===typeof e?e(t):e}function Se(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function ke(e){return"x"===e?"y":"x"}function Le(e){return"y"===e?"height":"width"}function Fe(e){return["top","bottom"].includes(Se(e))?"y":"x"}function je(e){return ke(Fe(e))}function Ae(e){return e.replace(/start|end/g,(e=>xe[e]))}function Ve(e){return e.replace(/left|right|bottom|top/g,(e=>we[e]))}function Pe(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 Te(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ce(e,t,r){let{reference:n,floating:o}=e;const i=Fe(t),l=je(t),a=Le(l),s=Se(t),c="y"===i,u=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:u,y:n.y-o.height};break;case"bottom":p={x:u,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(_e(t)){case"start":p[l]-=d*(r&&c?-1:1);break;case"end":p[l]+=d*(r&&c?-1:1)}return p}async function Re(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Oe(t,e),h=Pe(p),v=a[d?"floating"===f?"reference":"floating":f],m=Te(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(v)))||r?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,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=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}const Ne=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:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=Oe(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Se(o),g=Se(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=d||(g||!v?[Ve(a)]:function(e){const t=Ve(e);return[Ae(e),t,Ae(t)]}(a));d||"none"===h||w.push(...function(e,t,r,n){const o=_e(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[]}}(Se(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ae)))),i}(a,v,h,b));const x=[a,...w],E=await Re(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&O.push(E[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=_e(e),o=je(e),i=Le(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ve(l)),[l,Ve(l)]}(o,l,b);O.push(E[e[0]],E[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=x[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 Ie=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=Se(r),a=_e(r),s="y"===Fe(r),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,f=Oe(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(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}}}}},De=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}=Oe(e,t),c={x:r,y:n},u=await Re(t,s),f=Fe(Se(o)),d=ke(f);let p=c[d],h=c[f];if(i){const e="y"===d?"bottom":"right";p=Ee(p+u["y"===d?"top":"left"],p,p-u[e])}if(l){const e="y"===f?"bottom":"right";h=Ee(h+u["y"===f?"top":"left"],h,h-u[e])}const v=a.fn({...t,[d]:p,[f]:h});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function Me(e){return qe(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $e(e){var t;return null==(t=(qe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qe(e){return e instanceof Node||e instanceof Be(e).Node}function We(e){return e instanceof Element||e instanceof Be(e).Element}function ze(e){return e instanceof HTMLElement||e instanceof Be(e).HTMLElement}function He(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot)}function Ge(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Ke(e){return["table","td","th"].includes(Me(e))}function Ue(e){const t=Je(),r=Xe(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 Je(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ye(e){return["html","body","#document"].includes(Me(e))}function Xe(e){return Be(e).getComputedStyle(e)}function Ze(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qe(e){if("html"===Me(e))return e;const t=e.assignedSlot||e.parentNode||He(e)&&e.host||$e(e);return He(t)?t.host:t}function et(e){const t=Qe(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Ge(t)?t:et(t)}function tt(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=et(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=Be(o);return i?t.concat(l,l.visualViewport||[],Ge(o)?o:[],l.frameElement&&r?tt(l.frameElement):[]):t.concat(o,tt(o,[],r))}function rt(e){const t=Xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=ye(r)!==i||ye(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function nt(e){return We(e)?e:e.contextElement}function ot(e){const t=nt(e);if(!ze(t))return be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=rt(t);let l=(i?ye(r.width):r.width)/n,a=(i?ye(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const it=be(0);function lt(e){const t=Be(e);return Je()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:it}function at(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=nt(e);let l=be(1);t&&(n?We(n)&&(l=ot(n)):l=ot(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Be(e))&&t}(i,r,n)?lt(i):be(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(i){const e=Be(i),t=n&&We(n)?Be(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=ot(r),t=r.getBoundingClientRect(),n=Xe(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=o,c+=i,r=Be(r).frameElement}}return Te({width:u,height:f,x:s,y:c})}function st(e){return at($e(e)).left+Ze(e).scrollLeft}function ct(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Be(e),n=$e(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=Je();(!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=$e(e),r=Ze(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+st(e);const a=-r.scrollTop;return"rtl"===Xe(n).direction&&(l+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}($e(e));else if(We(t))n=function(e,t){const r=at(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ze(e)?ot(e):be(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=lt(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Te(n)}function ut(e,t){const r=Qe(e);return!(r===t||!We(r)||Ye(r))&&("fixed"===Xe(r).position||ut(r,t))}function ft(e,t,r){const n=ze(t),o=$e(t),i="fixed"===r,l=at(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=be(0);if(n||!n&&!i)if(("body"!==Me(t)||Ge(o))&&(a=Ze(t)),n){const e=at(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=st(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function dt(e,t){return ze(e)&&"fixed"!==Xe(e).position?t?t(e):e.offsetParent:null}function pt(e,t){const r=Be(e);if(!ze(e))return r;let n=dt(e,t);for(;n&&Ke(n)&&"static"===Xe(n).position;)n=dt(n,t);return n&&("html"===Me(n)||"body"===Me(n)&&"static"===Xe(n).position&&!Ue(n))?r:n||function(e){let t=Qe(e);for(;ze(t)&&!Ye(t);){if(Ue(t))return t;t=Qe(t)}return null}(e)||r}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=ze(r),i=$e(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=be(1);const s=be(0);if((o||!o&&"fixed"!==n)&&(("body"!==Me(r)||Ge(i))&&(l=Ze(r)),ze(r))){const e=at(r);a=ot(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:$e,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=tt(e,[],!1).filter((e=>We(e)&&"body"!==Me(e))),o=null;const i="fixed"===Xe(e).position;let l=i?Qe(e):e;for(;We(l)&&!Ye(l);){const t=Xe(l),r=Ue(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ge(l)&&!r&&ut(e,l))?n=n.filter((e=>e!==l)):o=t,l=Qe(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=ct(t,r,o);return e.top=me(n.top,e.top),e.right=ve(n.right,e.right),e.bottom=ve(n.bottom,e.bottom),e.left=me(n.left,e.left),e}),ct(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:pt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||pt,i=this.getDimensions;return{reference:ft(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 rt(e)},getScale:ot,isElement:We,isRTL:function(e){return"rtl"===Xe(e).direction}};function vt(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,c=nt(e),u=o||i?[...c?tt(c):[],...tt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=c&&a?function(e,t){let r,n=null;const o=$e(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:c,top:u,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-ge(u)+"px "+-ge(o.clientWidth-(c+f))+"px "+-ge(o.clientHeight-(u+d))+"px "+-ge(c)+"px",threshold:me(0,ve(1,s))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),i}(c,r):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),r()})),c&&!s&&h.observe(c),h.observe(t));let v=s?at(e):null;return s&&function t(){const n=at(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,d=requestAnimationFrame(t)}(),r(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const mt=(e,t,r)=>{const n=new Map,o={platform:ht,...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 c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ce(c,n,s),d=n,p={},h=0;for(let v=0;v<a.length;v++){const{name:r,fn:i}=a[v],{x:m,y:y,data:g,reset:b}=await i({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=m?m:u,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&h<=50&&(h++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:f}=Ce(c,d,s))),v=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},yt="react-tooltip-core-styles",gt="react-tooltip-base-styles",bt={core:!1,base:!1};function wt({css:e,id:t=gt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||bt[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=yt),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)),bt[r]=!0}const xt=(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))}},Et="DEFAULT_TOOLTIP_ID",Ot={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},St=(0,u.createContext)({getTooltipData:()=>Ot});function _t(e=Et){return(0,u.useContext)(St).getTooltipData(e)}const kt="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,Lt=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}))},Ft=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Lt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},jt=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[Ie(Number(o)),Ne(),De({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:c={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:u=0}=Oe(c,e)||{};if(null==s)return{};const f=Pe(u),d={x:t,y:r},p=je(n),h=Le(p),v=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-d[p]-o.floating[h],x=d[p]-o.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=E?E[b]:0;O&&await(null==i.isElement?void 0:i.isElement(E))||(O=l.floating[b]||o.floating[h]);const S=w/2-x/2,_=O/2-v[h]/2-1,k=ve(f[y],_),L=ve(f[g],_),F=k,j=O-v[h]-L,A=O/2-v[h]/2+S,V=Ee(F,A,j),P=!a.arrow&&null!=_e(n)&&A!=V&&o.reference[h]/2-(A<F?k:L)-v[h]/2<0,T=P?A<F?A-F:A-j:0;return{[p]:d[p]+T,data:{[p]:V,centerOffset:A-V-T,...P&&{alignmentOffset:T}},reset:P}}}),mt(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:c}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},u=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!=c?`${c}px`:"",right:"",bottom:"",...f,[u]:`-${4+d}px`},place:r}}))):mt(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 c};var At={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"},Vt={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 Pt=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:c=["hover"],openOnClick:f=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:y=!1,hidden:g=!1,noArrow:b=!1,clickable:w=!1,closeOnEsc:x=!1,closeOnScroll:E=!1,closeOnResize:O=!1,openEvents:S,closeEvents:_,globalCloseEvents:k,imperativeModeOnly:L,style:F,position:j,afterShow:A,afterHide:V,content:P,contentWrapperRef:T,isOpen:C,setIsOpen:R,activeAnchor:N,setActiveAnchor:I,border:D,opacity:M,arrowColor:B,role:$="tooltip"})=>{var q;const W=(0,u.useRef)(null),z=(0,u.useRef)(null),H=(0,u.useRef)(null),G=(0,u.useRef)(null),[K,U]=(0,u.useState)(a),[J,Y]=(0,u.useState)({}),[X,Z]=(0,u.useState)({}),[Q,ee]=(0,u.useState)(!1),[te,re]=(0,u.useState)(!1),[ne,oe]=(0,u.useState)(null),ie=(0,u.useRef)(!1),le=(0,u.useRef)(null),{anchorRefs:se,setActiveAnchor:ce}=_t(t),ue=(0,u.useRef)(!1),[fe,de]=(0,u.useState)([]),pe=(0,u.useRef)(!1),he=f||c.includes("click"),ve=he||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),me=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&he&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=_?{..._}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!_&&he&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=k?{...k}:{escape:x||!1,scroll:E||!1,resize:O||!1,clickOutsideAnchor:ve||!1};L&&(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})),kt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&re(!0),setTimeout((()=>{pe.current&&(null==R||R(e),void 0===C&&ee(e))}),10))};(0,u.useEffect)((()=>{if(void 0===C)return()=>null;C&&re(!0);const e=setTimeout((()=>{ee(C)}),10);return()=>{clearTimeout(e)}}),[C]),(0,u.useEffect)((()=>{Q!==ie.current&&(ie.current=Q,Q&&(null==A||A()))}),[Q]);const we=(e=v)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{be(!0)}),e)},xe=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{ue.current||be(!1)}),e)},Ee=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 ce({current:null});v?we():be(!0),I(r),ce({current:r}),G.current&&clearTimeout(G.current)},Oe=()=>{w?xe(m||100):m?xe():be(!1),H.current&&clearTimeout(H.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})};jt({place:null!==(r=null==ne?void 0:ne.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:W.current,tooltipArrowReference:z.current,strategy:d,middlewares:p,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&Y(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),le.current=r},ke=e=>{var t;if(!Q)return;const r=e.target;(null===(t=W.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),H.current&&clearTimeout(H.current))},Le=xt(Ee,50,!0),Fe=xt(Oe,50,!0),je=(0,u.useCallback)((()=>{var e,t;const r=null!==(e=null==ne?void 0:ne.position)&&void 0!==e?e:j;r?Se(r):y?le.current&&Se(le.current):(null==N?void 0:N.isConnected)&&jt({place:null!==(t=null==ne?void 0:ne.place)&&void 0!==t?t:a,offset:s,elementReference:N,tooltipReference:W.current,tooltipArrowReference:z.current,strategy:d,middlewares:p,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&Y(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place))}))}),[Q,N,P,F,a,null==ne?void 0:ne.place,s,d,j,null==ne?void 0:ne.position,y]);(0,u.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=Ft(N),a=Ft(W.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):N&&W.current&&(s=vt(N,W.current,je,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",c),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const u=[],f=e=>{Q||Ee(e)},d=()=>{Q&&Oe()},p=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?u.push({event:e,listener:Le}):h.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?u.push({event:e,listener:Fe}):h.includes(e)&&u.push({event:e,listener:d}))})),y&&u.push({event:"mousemove",listener:_e});const v=()=>{ue.current=!0},m=()=>{ue.current=!1,Oe()};return w&&!ve&&(null===(e=W.current)||void 0===e||e.addEventListener("mouseenter",v),null===(t=W.current)||void 0===t||t.addEventListener("mouseleave",m)),u.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",c),w&&!ve&&(null===(e=W.current)||void 0===e||e.removeEventListener("mouseenter",v),null===(t=W.current)||void 0===t||t.removeEventListener("mouseleave",m)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[N,je,te,se,fe,S,_,k,he]),(0,u.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==ne?void 0:ne.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(N){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,N))&&(re(!1),be(!1),I(null),H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.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==ne?void 0:ne.anchorSelect,N]),(0,u.useEffect)((()=>{je()}),[je]),(0,u.useEffect)((()=>{if(!(null==T?void 0:T.current))return()=>null;const e=new ResizeObserver((()=>{je()}));return e.observe(T.current),()=>{e.disconnect()}}),[P,null==T?void 0:T.current]),(0,u.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];N&&r.includes(N)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,N]),(0,u.useEffect)((()=>()=>{H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current)}),[]),(0,u.useEffect)((()=>{var e;let r=null!==(e=null==ne?void 0:ne.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==ne?void 0:ne.anchorSelect]);const Ae=null!==(q=null==ne?void 0:ne.content)&&void 0!==q?q:P,Ve=Q&&Object.keys(J).length>0;return(0,u.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`)}oe(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?xe(e.delay):be(!1)},activeAnchor:N,place:K,isOpen:Boolean(te&&!g&&Ae&&Ve)}))),te&&!g&&Ae?u.createElement(h,{id:t,role:$,className:ae("react-tooltip",At.tooltip,Vt.tooltip,Vt[o],r,`react-tooltip__place-${K}`,At[Ve?"show":"closing"],Ve?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&At.fixed,w&&At.clickable),onTransitionEnd:e=>{Q||"opacity"!==e.propertyName||(re(!1),oe(null),null==V||V())},style:{...F,...J,opacity:void 0!==M&&Ve?M:void 0},ref:W},Ae,u.createElement(h,{className:ae("react-tooltip-arrow",At.arrow,Vt.arrow,n,b&&At.noArrow),style:{...X,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:z})):null},Tt=({content:e})=>u.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Ct=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Rt=u.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:c="top",offset:f=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:O=!1,closeOnEsc:S=!1,closeOnScroll:_=!1,closeOnResize:k=!1,openEvents:L,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:A=!1,style:V,position:P,isOpen:T,disableStyleInjection:C=!1,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,role:$="tooltip"},q)=>{const[W,z]=(0,u.useState)(n),[H,G]=(0,u.useState)(o),[K,U]=(0,u.useState)(c),[J,Y]=(0,u.useState)(s),[X,Z]=(0,u.useState)(f),[Q,ee]=(0,u.useState)(g),[te,re]=(0,u.useState)(b),[ne,oe]=(0,u.useState)(w),[ie,le]=(0,u.useState)(x),[se,ce]=(0,u.useState)(d),[ue,fe]=(0,u.useState)(h),[de,pe]=(0,u.useState)(m),[he,ve]=(0,u.useState)(null),[me,ye]=(0,u.useState)(null),ge=(0,u.useRef)(C),{anchorRefs:be,activeAnchor:we}=_t(e),xe=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}),{}),Ee=e=>{const t={place:e=>{var t;U(null!==(t=e)&&void 0!==t?t:c)},content:e=>{z(null!=e?e:n)},html:e=>{G(null!=e?e:o)},variant:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Z(null===e?f:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:d)},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:m)},"delay-show":e=>{ee(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{oe(null===e?w:"true"===e)},hidden:e=>{le(null===e?x:"true"===e)},"class-name":e=>{ve(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,u.useEffect)((()=>{z(n)}),[n]),(0,u.useEffect)((()=>{G(o)}),[o]),(0,u.useEffect)((()=>{U(c)}),[c]),(0,u.useEffect)((()=>{Y(s)}),[s]),(0,u.useEffect)((()=>{Z(f)}),[f]),(0,u.useEffect)((()=>{ee(g)}),[g]),(0,u.useEffect)((()=>{re(b)}),[b]),(0,u.useEffect)((()=>{oe(w)}),[w]),(0,u.useEffect)((()=>{le(x)}),[x]),(0,u.useEffect)((()=>{pe(m)}),[m]),(0,u.useEffect)((()=>{ge.current!==C&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[C]),(0,u.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===C,disableBase:C}}))}),[]),(0,u.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=xe(a);Ee(r)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=xe(a);Ee(e),s.observe(a,c)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,u.useEffect)((()=>{(null==V?void 0:V.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!Ct("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==V?void 0:V.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!Ct("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Se=(0,u.useRef)(null);if(i){const e=i({content:null!=W?W:null,activeAnchor:me});Oe=e?u.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else W&&(Oe=W);H&&(Oe=u.createElement(Tt,{content:H}));const _e={forwardRef:q,id:e,anchorId:t,anchorSelect:r,className:ae(l,he),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:K,variant:J,offset:X,wrapper:se,events:ue,openOnClick:v,positionStrategy:de,middlewares:y,delayShow:Q,delayHide:te,float:ne,hidden:ie,noArrow:E,clickable:O,closeOnEsc:S,closeOnScroll:_,closeOnResize:k,openEvents:L,closeEvents:F,globalCloseEvents:j,imperativeModeOnly:A,style:V,position:P,isOpen:T,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,activeAnchor:me,setActiveAnchor:e=>ye(e),role:$};return u.createElement(Pt,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||wt({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||wt({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 Nt=["children","content","className"],It=f().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;s(e,Nt);return f().createElement(f().Fragment,null,f().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),f().createElement(Rt,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),Dt=["children","style","className","colon","required","gutter","labelWidth","labelAlign","tooltip","showLabel"];function Mt(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 Bt=f().forwardRef((function(e,t){var r=e.children,n=e.style,o=e.className,i=e.colon,l=e.required,c=e.gutter,u=e.labelWidth,d=e.labelAlign,p=e.tooltip,h=e.showLabel,v=void 0===h||h,m=s(e,Dt),y="item-label",g=se()("".concat(y,"__header"),!0===l?"".concat(y,"--required"):"",o||""),b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({marginRight:c,width:u,textAlign:d},n);return!E(r)&&v?f().createElement("label",H({ref:t,className:g,style:b},m),!0===i?f().createElement(f().Fragment,null,r,":"):r,p&&f().createElement(It,{content:p},f().createElement(he,{name:"wenhao",className:"".concat(y,"__tooltip")}))):null}));function $t(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 qt="".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 Wt(e,t){return 0===e.indexOf(t)}function zt(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===r?t={aria:!0,data:!0,attr:!0}:!0===r?t={aria:!0}:x(r)&&(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r));var n={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||Wt(r,"aria-"))||t.data&&Wt(r,"data-")||t.attr&&qt.includes(r))&&(n[r]=e[r])})),n}var Ht=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],Gt=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"],Kt="field-item",Ut={field:Kt,inline:"".concat(Kt,"--inline"),required:"".concat(Kt,"--required"),compact:"".concat(Kt,"--compact"),error:"".concat(Kt,"--error"),readOnly:"".concat(Kt,"--readOnly")},Jt=f().forwardRef((function(e,t){var r=e.colon,n=e.required,o=e.showLabel,i=e.labelWidth,l=e.labelAlign,a=e.gutter,c=e.tooltip,u=e.error,d=e.suffix,p=e.footer,h=s(e,Ht),v=h.label,m=h.labelStyle,y=h.inline,g=h.layout,b=void 0===g?"horizontal":g,w=h.compact,x=h.readOnly,E=h.className,O=h.style,S=h.children,_=s(h,Gt),k=se()(Ut.field,b?"".concat(Ut.field,"--").concat(b):"",!0===n?Ut.required:"",!0===w?Ut.compact:"",u?Ut.error:"",!0===y?Ut.inline:"",!0===x?Ut.readOnly:"",E||"");return f().createElement("div",H({ref:t,className:k,style:O},zt(_)),f().createElement(Bt,{showLabel:o,tooltip:c,colon:r,gutter:a,labelWidth:i,labelAlign:l,required:n,style:m},v),f().createElement(ue,{error:u,footer:p,suffix:d},S))})),Yt=["form"],Xt=["children"],Zt=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],Qt=f().forwardRef((function(e,t){var n=(0,u.useContext)(d),o=n.form,i=s(n,Yt),l=Object.assign({},i,e),a=l.children,c=s(l,Xt),p=c.name,h=c.index,v=c.trigger,m=c.validateTrigger,y=c.valueProp,g=c.valueGetter,b=c.valueSetter,w=c.errorClassName,x=c.onFieldsChange,E=c.onValuesChange,O=c.initialValue,S=c.rules,_=c.component,k=void 0===_?Jt:_,L=s(c,Zt),F=r(ie(o,p),1)[0],j=(null===L||void 0===L?void 0:L.ignore)||(null===L||void 0===L?void 0:L.readOnly),A=!(!(0,u.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===j)||(null===L||void 0===L?void 0:L.required),V=k,P=f().createElement(z,{ignore:j,name:p,index:h,trigger:v,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:x,onValuesChange:E},a);return V?f().createElement(V,H({},c,{required:A,ref:t,error:!0!==j&&F}),P):P}));Qt.displayName="Form.Item";var er=["tagName"],tr=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function rr(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 nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=f().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=s(e,er);return f().createElement(n,nr(nr({},o),{},{ref:t}))}));function ir(e){var t=e.className,n=void 0===t?"":t,o=e.style,i=e.children,l=e.initialValues,a=e.tagName,c=e.onSubmit,h=e.onReset,v=e.watch,m=s(e,tr),y="simple-form "+n,g=null===m||void 0===m?void 0:m.form;return(0,u.useEffect)((function(){var e;if(g&&v)return null===(e=Object.entries(v))||void 0===e||e.map((function(e){var t=r(e,2),n=t[0],o=t[1];"function"===typeof o?null===g||void 0===g||g.subscribeFormValue(n,o):x(o)&&("function"===typeof o.handler&&(null===g||void 0===g||g.subscribeFormValue(n,o.handler)),o.immediate&&o.handler(null===g||void 0===g?void 0:g.getFieldValue(n),null===g||void 0===g?void 0:g.getLastValue(n)))})),function(){var e;null===(e=Object.entries(v||{}))||void 0===e||e.forEach((function(e){var t=r(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[v]),f().createElement(or,{tagName:a,className:y,style:o,onSubmit:function(e){e.preventDefault(),null===c||void 0===c||c(e)},onReset:h},f().createElement(d.Provider,{value:m},f().createElement(p.Provider,{value:l},i)))}ir.Item=Qt}(),o}()}));
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pathToArr, deepGet, deepSet } from "./object";
|
|
2
|
-
export { pathToArr, deepGet, deepSet };
|
|
1
|
+
import { pathToArr, deepGet, deepSet, formatFormKey } from "./object";
|
|
2
|
+
export { pathToArr, deepGet, deepSet, formatFormKey };
|
|
3
3
|
export declare function isExitPrefix(prefix: string, path: string | string[]): boolean;
|
|
4
4
|
export declare function getValuePropName(valueProp: string | ((type: any) => string), type?: any): string;
|
|
5
5
|
export declare function getValueFromEvent(...args: any[]): any;
|