@zealicsolutions/web-ui 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/index.d.ts +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/index.d.ts +0 -1
- package/dist/index.d.ts +1 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -241,5 +241,5 @@ function pt(e,t){let o;if(o=t?r(e).withConfig({displayName:t.label,shouldForward
|
|
241
241
|
*/
|
242
242
|
!function(e){!function(){var t={}.hasOwnProperty;function o(){for(var e=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)t.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o}()}(_E);var BE=_E.exports;function FE(e,t,o){return o?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function WE(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function HE(e,t){if(e){if("string"==typeof e)return WE(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?WE(e,t):void 0}}function UE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,n,i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}(e,t)||HE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qE(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit".concat(e)]="webkit".concat(t),o["Moz".concat(e)]="moz".concat(t),o["ms".concat(e)]="MS".concat(t),o["O".concat(e)]="o".concat(t.toLowerCase()),o}var GE,XE,KE,YE=(GE=zE(),XE="undefined"!=typeof window?window:{},KE={animationend:qE("Animation","AnimationEnd"),transitionend:qE("Transition","TransitionEnd")},GE&&("AnimationEvent"in XE||delete KE.animationend.animation,"TransitionEvent"in XE||delete KE.transitionend.transition),KE),ZE={};if(zE()){var JE=document.createElement("div");ZE=JE.style}var QE={};function ek(e){if(QE[e])return QE[e];var t=YE[e];if(t)for(var o=Object.keys(t),r=o.length,n=0;n<r;n+=1){var i=o[n];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ZE)return QE[e]=t[i],QE[e]}return""}var tk=ek("animationend"),ok=ek("transitionend"),rk=!(!tk||!ok),nk=tk||"animationend",ik=ok||"transitionend";function ak(e,t){return e?"object"===mE(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function sk(e){var t=p.useRef(!1),o=UE(p.useState(e),2),r=o[0],n=o[1];return p.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,o){o&&t.current||n(e)}]}var lk=zE()?O:v,ck=["prepare","start","active","end"];function pk(e){return"active"===e||"end"===e}var uk=function(e,t){var o=UE(sk("none"),2),r=o[0],n=o[1],i=function(){var e=p.useRef(null);function t(){PE.cancel(e.current)}return p.useEffect((function(){return function(){t()}}),[]),[function o(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=PE((function(){n<=1?r({isCanceled:function(){return i!==e.current}}):o(r,n-1)}));e.current=i},t]}(),a=UE(i,2),s=a[0],l=a[1];return lk((function(){if("none"!==r&&"end"!==r){var e=ck.indexOf(r),o=ck[e+1],i=t(r);false===i?n(o,!0):s((function(e){function t(){e.isCanceled()||n(o,!0)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,r]),p.useEffect((function(){return function(){l()}}),[]),[function(){n("prepare",!0)},r]};function dk(e,t,o,r){var n=r.motionEnter,i=void 0===n||n,a=r.motionAppear,s=void 0===a||a,l=r.motionLeave,c=void 0===l||l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,x=r.onAppearStart,b=r.onEnterStart,y=r.onLeaveStart,w=r.onAppearActive,O=r.onEnterActive,S=r.onLeaveActive,T=r.onAppearEnd,C=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,N=UE(sk(),2),R=N[0],M=N[1],P=UE(sk("none"),2),$=P[0],L=P[1],I=UE(sk(null),2),j=I[0],A=I[1],D=g(!1),z=g(null);function V(){return o()}var _=g(!1);function B(e){var t=V();if(!e||e.deadline||e.target===t){var o,r=_.current;"appear"===$&&r?o=null==T?void 0:T(t,e):"enter"===$&&r?o=null==C?void 0:C(t,e):"leave"===$&&r&&(o=null==E?void 0:E(t,e)),"none"!==$&&r&&!1!==o&&(L("none",!0),A(null,!0))}}var F=function(e){var t=g(),o=g(e);o.current=e;var r=p.useCallback((function(e){o.current(e)}),[]);function n(e){e&&(e.removeEventListener(ik,r),e.removeEventListener(nk,r))}return p.useEffect((function(){return function(){n(t.current)}}),[]),[function(e){t.current&&t.current!==e&&n(t.current),e&&e!==t.current&&(e.addEventListener(ik,r),e.addEventListener(nk,r),t.current=e)},n]}(B),W=UE(F,1)[0],H=p.useMemo((function(){var e,t,o;switch($){case"appear":return hE(e={},"prepare",f),hE(e,"start",x),hE(e,"active",w),e;case"enter":return hE(t={},"prepare",m),hE(t,"start",b),hE(t,"active",O),t;case"leave":return hE(o={},"prepare",h),hE(o,"start",y),hE(o,"active",S),o;default:return{}}}),[$]),U=UE(uk($,(function(e){if("prepare"===e){var t=H.prepare;return!!t&&t(V())}var o;G in H&&A((null===(o=H[G])||void 0===o?void 0:o.call(H,V(),null))||null);return"active"===G&&(W(V()),u>0&&(clearTimeout(z.current),z.current=setTimeout((function(){B({deadline:!0})}),u))),true})),2),q=U[0],G=U[1],X=pk(G);_.current=X,lk((function(){M(t);var o,r=D.current;(D.current=!0,e)&&(!r&&t&&s&&(o="appear"),r&&t&&i&&(o="enter"),(r&&!t&&c||!r&&d&&!t&&c)&&(o="leave"),o&&(L(o),q()))}),[t]),v((function(){("appear"===$&&!s||"enter"===$&&!i||"leave"===$&&!c)&&L("none")}),[s,i,c]),v((function(){return function(){D.current=!1,clearTimeout(z.current)}}),[]);var K=p.useRef(!1);v((function(){R&&(K.current=!0),void 0!==R&&"none"===$&&((K.current||R)&&(null==k||k(R)),K.current=!0)}),[R,$]);var Y=j;return H.prepare&&"start"===G&&(Y=bE({transition:"none"},Y)),[$,G,Y,null!=R?R:t]}var fk=function(e){OE(o,p.Component);var t=CE(o);function o(){return gE(this,o),t.apply(this,arguments)}return wE(o,[{key:"render",value:function(){return this.props.children}}]),o}();var mk=function(e){var t=e;function o(e){return!(!e.motionName||!t)}"object"===mE(e)&&(t=e.transitionSupport);var r=p.forwardRef((function(e,t){var r=e.visible,n=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=o(e),m=g(),h=g();var x=UE(dk(f,n,(function(){try{return m.current instanceof HTMLElement?m.current:LE(h.current)}catch(e){return null}}),e),4),b=x[0],v=x[1],y=x[2],w=x[3],O=p.useRef(w);w&&(O.current=!0);var S,T=p.useCallback((function(e){m.current=e,IE(t,e)}),[t]),C=bE(bE({},d),{},{visible:n});if(l)if("none"!==b&&o(e)){var E,k;"prepare"===v?k="prepare":pk(v)?k="active":"start"===v&&(k="start"),S=l(bE(bE({},C),{},{className:BE(ak(c,b),(E={},hE(E,ak(c,"".concat(b,"-").concat(k)),k),hE(E,c,"string"==typeof c),E)),style:y}),T)}else S=w?l(bE({},C),T):!a&&O.current?l(bE(bE({},C),{},{className:u}),T):s?l(bE(bE({},C),{},{style:{display:"none"}}),T):null;else S=null;p.isValidElement(S)&&AE(S)&&(S.ref||(S=p.cloneElement(S,{ref:T})));return p.createElement(fk,{ref:h},S)}));return r.displayName="CSSMotion",r}(rk);function hk(e){var t;return bE(bE({},t=e&&"object"===mE(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function xk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(hk)}function bk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[],r=0,n=t.length,i=xk(e),a=xk(t);i.forEach((function(e){for(var t=!1,i=r;i<n;i+=1){var s=a[i];if(s.key===e.key){r<i&&(o=o.concat(a.slice(r,i).map((function(e){return bE(bE({},e),{},{status:"add"})}))),r=i),o.push(bE(bE({},s),{},{status:"keep"})),r+=1,t=!0;break}}t||o.push(bE(bE({},e),{},{status:"remove"}))})),r<n&&(o=o.concat(a.slice(r).map((function(e){return bE(bE({},e),{},{status:"add"})}))));var s={};o.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(o=o.filter((function(t){var o=t.key,r=t.status;return o!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),o}var vk=["component","children","onVisibleChanged","onAllRemoved"],gk=["status"],yk=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var wk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mk,o=function(e){OE(r,p.Component);var o=CE(r);function r(){var e;gE(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={keyEntities:[]},e.removeKey=function(t){var o=e.state.keyEntities.map((function(e){return e.key!==t?e:bE(bE({},e),{},{status:"removed"})}));return e.setState({keyEntities:o}),o.filter((function(e){return"removed"!==e.status})).length},e}return wE(r,[{key:"render",value:function(){var e=this,o=this.state.keyEntities,r=this.props,n=r.component,i=r.children,a=r.onVisibleChanged,s=r.onAllRemoved,l=vE(r,vk),c=n||p.Fragment,u={};return yk.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,p.createElement(c,l,o.map((function(o){var r=o.status,n=vE(o,gk),l="add"===r||"keep"===r;return p.createElement(t,De({},u,{key:n.key,visible:l,eventProps:n,onVisibleChanged:function(t){(null==a||a(t,{key:n.key}),t)||0===e.removeKey(n.key)&&s&&s()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o=e.keys,r=t.keyEntities,n=xk(o);return{keyEntities:bk(r,n).filter((function(e){var t=r.find((function(t){var o=t.key;return e.key===o}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}();return o.defaultProps={component:"div"},o}(rk);function Ok(e){var t=e.prefixCls,o=e.motion,r=e.animation,n=e.transitionName;return o||(r?{motionName:"".concat(t,"-").concat(r)}:n?{motionName:n}:null)}function Sk(e){var t=e.prefixCls,o=e.visible,r=e.zIndex,n=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!n)return null;var l={};return(i||s||a)&&(l=bE({motionAppear:!0},Ok({motion:i,prefixCls:t,transitionName:s,animation:a}))),p.createElement(mk,De({},l,{visible:o,removeOnLeave:!0}),(function(e){var o=e.className;return p.createElement("div",{style:{zIndex:r},className:BE("".concat(t,"-mask"),o)})}))}var Tk;function Ck(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function Ek(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ck(Object(o),!0).forEach((function(t){Nk(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ck(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function kk(e){return kk="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},kk(e)}function Nk(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Rk={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Mk(){if(void 0!==Tk)return Tk;Tk="";var e=document.createElement("p").style;for(var t in Rk)t+"Transform"in e&&(Tk=t);return Tk}function Pk(){return Mk()?"".concat(Mk(),"TransitionProperty"):"transitionProperty"}function $k(){return Mk()?"".concat(Mk(),"Transform"):"transform"}function Lk(e,t){var o=Pk();o&&(e.style[o]=t,"transitionProperty"!==o&&(e.style.transitionProperty=t))}function Ik(e,t){var o=$k();o&&(e.style[o]=t,"transform"!==o&&(e.style.transform=t))}var jk,Ak=/matrix\((.*)\)/,Dk=/matrix3d\((.*)\)/;function zk(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Vk(e,t,o){var r=o;if("object"!==kk(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):jk(e,t);for(var n in t)t.hasOwnProperty(n)&&Vk(e,n,t[n])}function _k(e,t){var o=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof o){var n=e.document;"number"!=typeof(o=n.documentElement[r])&&(o=n.body[r])}return o}function Bk(e){return _k(e)}function Fk(e){return _k(e,!0)}function Wk(e){var t=function(e){var t,o,r,n=e.ownerDocument,i=n.body,a=n&&n.documentElement;return t=e.getBoundingClientRect(),o=Math.floor(t.left),r=Math.floor(t.top),{left:o-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),o=e.ownerDocument,r=o.defaultView||o.parentWindow;return t.left+=Bk(r),t.top+=Fk(r),t}function Hk(e){return null!=e&&e==e.window}function Uk(e){return Hk(e)?e.document:9===e.nodeType?e:e.ownerDocument}var qk=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Gk=/^(top|right|bottom|left)$/;function Xk(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Kk(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Yk(e,t,o){"static"===Vk(e,"position")&&(e.style.position="relative");var r=-999,n=-999,i=Xk("left",o),a=Xk("top",o),s=Kk(i),l=Kk(a);"left"!==i&&(r=999),"top"!==a&&(n=999);var c,p="",u=Wk(e);("left"in t||"top"in t)&&(p=(c=e).style.transitionProperty||c.style[Pk()]||"",Lk(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(n,"px")),zk(e);var d=Wk(e),f={};for(var m in t)if(t.hasOwnProperty(m)){var h=Xk(m,o),x="left"===m?r:n,b=u[m]-d[m];f[h]=h===m?x+b:x-b}Vk(e,f),zk(e),("left"in t||"top"in t)&&Lk(e,p);var v={};for(var g in t)if(t.hasOwnProperty(g)){var y=Xk(g,o),w=t[g]-u[g];v[y]=g===y?f[y]+w:f[y]-w}Vk(e,v)}function Zk(e,t){var o=Wk(e),r=function(e){var t=window.getComputedStyle(e,null),o=t.getPropertyValue("transform")||t.getPropertyValue($k());if(o&&"none"!==o){var r=o.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),n={x:r.x,y:r.y};"left"in t&&(n.x=r.x+t.left-o.left),"top"in t&&(n.y=r.y+t.top-o.top),function(e,t){var o=window.getComputedStyle(e,null),r=o.getPropertyValue("transform")||o.getPropertyValue($k());if(r&&"none"!==r){var n,i=r.match(Ak);i?((n=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,n[5]=t.y,Ik(e,"matrix(".concat(n.join(","),")"))):((n=r.match(Dk)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,n[13]=t.y,Ik(e,"matrix3d(".concat(n.join(","),")")))}else Ik(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,n)}function Jk(e,t){for(var o=0;o<e.length;o++)t(e[o])}function Qk(e){return"border-box"===jk(e,"boxSizing")}"undefined"!=typeof window&&(jk=window.getComputedStyle?function(e,t,o){var r=o,n="",i=Uk(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(n=r.getPropertyValue(t)||r[t]),n}:function(e,t){var o=e.currentStyle&&e.currentStyle[t];if(qk.test(o)&&!Gk.test(t)){var r=e.style,n=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":o||0,o=r.pixelLeft+"px",r.left=n,e.runtimeStyle.left=i}return""===o?"auto":o});var eN=["margin","border","padding"];function tN(e,t,o){var r,n={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(n[r]=i[r],i[r]=t[r]);for(r in o.call(e),t)t.hasOwnProperty(r)&&(i[r]=n[r])}function oN(e,t,o){var r,n,i,a=0;for(n=0;n<t.length;n++)if(r=t[n])for(i=0;i<o.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(o[i],"Width"):r+o[i],a+=parseFloat(jk(e,s))||0}return a}var rN={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function nN(e,t,o){var r=o;if(Hk(e))return"width"===t?rN.viewportWidth(e):rN.viewportHeight(e);if(9===e.nodeType)return"width"===t?rN.docWidth(e):rN.docHeight(e);var n="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Qk(e),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=jk(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?1:-1);var l=void 0!==i||a,c=i||s;return-1===r?l?c-oN(e,["border","padding"],n):s:l?1===r?c:c+(2===r?-oN(e,["border"],n):oN(e,["margin"],n)):s+oN(e,eN.slice(r),n)}Jk(["Width","Height"],(function(e){rN["doc".concat(e)]=function(t){var o=t.document;return Math.max(o.documentElement["scroll".concat(e)],o.body["scroll".concat(e)],rN["viewport".concat(e)](o))},rN["viewport".concat(e)]=function(t){var o="client".concat(e),r=t.document,n=r.body,i=r.documentElement[o];return"CSS1Compat"===r.compatMode&&i||n&&n[o]||i}}));var iN={position:"absolute",visibility:"hidden",display:"block"};function aN(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,n=t[0];return 0!==n.offsetWidth?r=nN.apply(void 0,t):tN(n,iN,(function(){r=nN.apply(void 0,t)})),r}function sN(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}Jk(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);rN["outer".concat(t)]=function(t,o){return t&&aN(t,e,o?0:1)};var o="width"===e?["Left","Right"]:["Top","Bottom"];rN[e]=function(t,r){var n=r;return void 0!==n?t?(Qk(t)&&(n+=oN(t,["padding","border"],o)),Vk(t,e,n)):void 0:t&&aN(t,e,-1)}}));var lN={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Uk,offset:function(e,t,o){if(void 0===t)return Wk(e);!function(e,t,o){if(o.ignoreShake){var r=Wk(e),n=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(n===a&&i===s)return}o.useCssRight||o.useCssBottom?Yk(e,t,o):o.useCssTransform&&$k()in document.body.style?Zk(e,t):Yk(e,t,o)}(e,t,o||{})},isWindow:Hk,each:Jk,css:Vk,clone:function(e){var t,o={};for(t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(o.overflow[t]=e.overflow[t]);return o},mix:sN,getWindowScrollLeft:function(e){return Bk(e)},getWindowScrollTop:function(e){return Fk(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)lN.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};sN(lN,rN);var cN=lN.getParent;function pN(e){if(lN.isWindow(e)||9===e.nodeType)return null;var t,o=lN.getDocument(e).body,r=lN.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:cN(e);for(t=cN(e);t&&t!==o&&9!==t.nodeType;t=cN(t))if("static"!==(r=lN.css(t,"position")))return t;return null}var uN=lN.getParent;function dN(e,t){for(var o={left:0,right:1/0,top:0,bottom:1/0},r=pN(e),n=lN.getDocument(e),i=n.defaultView||n.parentWindow,a=n.body,s=n.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===lN.css(r,"overflow")){if(r===a||r===s)break}else{var l=lN.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,o.top=Math.max(o.top,l.top),o.right=Math.min(o.right,l.left+r.clientWidth),o.bottom=Math.min(o.bottom,l.top+r.clientHeight),o.left=Math.max(o.left,l.left)}r=pN(r)}var c=null;lN.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===lN.css(e,"position")&&(e.style.position="fixed"));var p=lN.getWindowScrollLeft(i),u=lN.getWindowScrollTop(i),d=lN.viewportWidth(i),f=lN.viewportHeight(i),m=s.scrollWidth,h=s.scrollHeight,x=window.getComputedStyle(a);if("hidden"===x.overflowX&&(m=i.innerWidth),"hidden"===x.overflowY&&(h=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(lN.isWindow(e)||9===e.nodeType)return!1;var t=lN.getDocument(e),o=t.body,r=null;for(r=uN(e);r&&r!==o&&r!==t;r=uN(r))if("fixed"===lN.css(r,"position"))return!0;return!1}(e))o.left=Math.max(o.left,p),o.top=Math.max(o.top,u),o.right=Math.min(o.right,p+d),o.bottom=Math.min(o.bottom,u+f);else{var b=Math.max(m,p+d);o.right=Math.min(o.right,b);var v=Math.max(h,u+f);o.bottom=Math.min(o.bottom,v)}return o.top>=0&&o.left>=0&&o.bottom>o.top&&o.right>o.left?o:null}function fN(e){var t,o,r;if(lN.isWindow(e)||9===e.nodeType){var n=lN.getWindow(e);t={left:lN.getWindowScrollLeft(n),top:lN.getWindowScrollTop(n)},o=lN.viewportWidth(n),r=lN.viewportHeight(n)}else t=lN.offset(e),o=lN.outerWidth(e),r=lN.outerHeight(e);return t.width=o,t.height=r,t}function mN(e,t){var o=t.charAt(0),r=t.charAt(1),n=e.width,i=e.height,a=e.left,s=e.top;return"c"===o?s+=i/2:"b"===o&&(s+=i),"c"===r?a+=n/2:"r"===r&&(a+=n),{left:a,top:s}}function hN(e,t,o,r,n){var i=mN(t,o[1]),a=mN(e,o[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-n[0]),top:Math.round(e.top-s[1]+r[1]-n[1])}}function xN(e,t,o){return e.left<o.left||e.left+t.width>o.right}function bN(e,t,o){return e.top<o.top||e.top+t.height>o.bottom}function vN(e,t,o){var r=[];return lN.each(e,(function(e){r.push(e.replace(t,(function(e){return o[e]})))})),r}function gN(e,t){return e[t]=-e[t],e}function yN(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function wN(e,t){e[0]=yN(e[0],t.width),e[1]=yN(e[1],t.height)}function ON(e,t,o,r){var n=o.points,i=o.offset||[0,0],a=o.targetOffset||[0,0],s=o.overflow,l=o.source||e;i=[].concat(i),a=[].concat(a);var c={},p=0,u=dN(l,!(!(s=s||{})||!s.alwaysByViewport)),d=fN(l);wN(i,d),wN(a,t);var f=hN(d,t,n,i,a),m=lN.merge(d,f);if(u&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&xN(f,d,u)){var h=vN(n,/[lr]/gi,{l:"r",r:"l"}),x=gN(i,0),b=gN(a,0);(function(e,t,o){return e.left>o.right||e.left+t.width<o.left})(hN(d,t,h,x,b),d,u)||(p=1,n=h,i=x,a=b)}if(s.adjustY&&bN(f,d,u)){var v=vN(n,/[tb]/gi,{t:"b",b:"t"}),g=gN(i,1),y=gN(a,1);(function(e,t,o){return e.top>o.bottom||e.top+t.height<o.top})(hN(d,t,v,g,y),d,u)||(p=1,n=v,i=g,a=y)}p&&(f=hN(d,t,n,i,a),lN.mix(m,f));var w=xN(f,d,u),O=bN(f,d,u);if(w||O){var S=n;w&&(S=vN(n,/[lr]/gi,{l:"r",r:"l"})),O&&(S=vN(n,/[tb]/gi,{t:"b",b:"t"})),n=S,i=o.offset||[0,0],a=o.targetOffset||[0,0]}c.adjustX=s.adjustX&&w,c.adjustY=s.adjustY&&O,(c.adjustX||c.adjustY)&&(m=function(e,t,o,r){var n=lN.clone(e),i={width:t.width,height:t.height};return r.adjustX&&n.left<o.left&&(n.left=o.left),r.resizeWidth&&n.left>=o.left&&n.left+i.width>o.right&&(i.width-=n.left+i.width-o.right),r.adjustX&&n.left+i.width>o.right&&(n.left=Math.max(o.right-i.width,o.left)),r.adjustY&&n.top<o.top&&(n.top=o.top),r.resizeHeight&&n.top>=o.top&&n.top+i.height>o.bottom&&(i.height-=n.top+i.height-o.bottom),r.adjustY&&n.top+i.height>o.bottom&&(n.top=Math.max(o.bottom-i.height,o.top)),lN.mix(n,i)}(f,d,u,c))}return m.width!==d.width&&lN.css(l,"width",lN.width(l)+m.width-d.width),m.height!==d.height&&lN.css(l,"height",lN.height(l)+m.height-d.height),lN.offset(l,{left:m.left,top:m.top},{useCssRight:o.useCssRight,useCssBottom:o.useCssBottom,useCssTransform:o.useCssTransform,ignoreShake:o.ignoreShake}),{points:n,offset:i,targetOffset:a,overflow:c}}function SN(e,t,o){var r=o.target||t,n=fN(r),i=!function(e,t){var o=dN(e,t),r=fN(e);return!o||r.left+r.width<=o.left||r.top+r.height<=o.top||r.left>=o.right||r.top>=o.bottom}(r,o.overflow&&o.overflow.alwaysByViewport);return ON(e,n,o,i)}SN.__getOffsetParent=pN,SN.__getVisibleRectForElement=dN;var TN=function(){this.__data__=[],this.size=0};var CN=function(e,t){return e===t||e!=e&&t!=t},EN=CN;var kN=function(e,t){for(var o=e.length;o--;)if(EN(e[o][0],t))return o;return-1},NN=kN,RN=Array.prototype.splice;var MN=function(e){var t=this.__data__,o=NN(t,e);return!(o<0)&&(o==t.length-1?t.pop():RN.call(t,o,1),--this.size,!0)},PN=kN;var $N=function(e){var t=this.__data__,o=PN(t,e);return o<0?void 0:t[o][1]},LN=kN;var IN=kN;var jN=function(e,t){var o=this.__data__,r=IN(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this},AN=TN,DN=MN,zN=$N,VN=function(e){return LN(this.__data__,e)>-1},_N=jN;function BN(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}BN.prototype.clear=AN,BN.prototype.delete=DN,BN.prototype.get=zN,BN.prototype.has=VN,BN.prototype.set=_N;var FN=BN,WN=FN;var HN=function(){this.__data__=new WN,this.size=0};var UN=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o};var qN=function(e){return this.__data__.get(e)};var GN=function(e){return this.__data__.has(e)},XN="object"==typeof _e&&_e&&_e.Object===Object&&_e,KN=XN,YN="object"==typeof self&&self&&self.Object===Object&&self,ZN=KN||YN||Function("return this")(),JN=ZN.Symbol,QN=JN,eR=Object.prototype,tR=eR.hasOwnProperty,oR=eR.toString,rR=QN?QN.toStringTag:void 0;var nR=function(e){var t=tR.call(e,rR),o=e[rR];try{e[rR]=void 0;var r=!0}catch(e){}var n=oR.call(e);return r&&(t?e[rR]=o:delete e[rR]),n},iR=Object.prototype.toString;var aR=nR,sR=function(e){return iR.call(e)},lR=JN?JN.toStringTag:void 0;var cR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lR&&lR in Object(e)?aR(e):sR(e)};var pR=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},uR=cR,dR=pR;var fR,mR=function(e){if(!dR(e))return!1;var t=uR(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},hR=ZN["__core-js_shared__"],xR=(fR=/[^.]+$/.exec(hR&&hR.keys&&hR.keys.IE_PROTO||""))?"Symbol(src)_1."+fR:"";var bR=function(e){return!!xR&&xR in e},vR=Function.prototype.toString;var gR=function(e){if(null!=e){try{return vR.call(e)}catch(e){}try{return e+""}catch(e){}}return""},yR=mR,wR=bR,OR=pR,SR=gR,TR=/^\[object .+?Constructor\]$/,CR=Function.prototype,ER=Object.prototype,kR=CR.toString,NR=ER.hasOwnProperty,RR=RegExp("^"+kR.call(NR).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var MR=function(e){return!(!OR(e)||wR(e))&&(yR(e)?RR:TR).test(SR(e))},PR=function(e,t){return null==e?void 0:e[t]};var $R=function(e,t){var o=PR(e,t);return MR(o)?o:void 0},LR=$R(ZN,"Map"),IR=$R(Object,"create"),jR=IR;var AR=function(){this.__data__=jR?jR(null):{},this.size=0};var DR=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zR=IR,VR=Object.prototype.hasOwnProperty;var _R=function(e){var t=this.__data__;if(zR){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return VR.call(t,e)?t[e]:void 0},BR=IR,FR=Object.prototype.hasOwnProperty;var WR=IR;var HR=AR,UR=DR,qR=_R,GR=function(e){var t=this.__data__;return BR?void 0!==t[e]:FR.call(t,e)},XR=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=WR&&void 0===t?"__lodash_hash_undefined__":t,this};function KR(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}KR.prototype.clear=HR,KR.prototype.delete=UR,KR.prototype.get=qR,KR.prototype.has=GR,KR.prototype.set=XR;var YR=KR,ZR=FN,JR=LR;var QR=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var eM=function(e,t){var o=e.__data__;return QR(t)?o["string"==typeof t?"string":"hash"]:o.map},tM=eM;var oM=eM;var rM=eM;var nM=eM;var iM=function(){this.size=0,this.__data__={hash:new YR,map:new(JR||ZR),string:new YR}},aM=function(e){var t=tM(this,e).delete(e);return this.size-=t?1:0,t},sM=function(e){return oM(this,e).get(e)},lM=function(e){return rM(this,e).has(e)},cM=function(e,t){var o=nM(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this};function pM(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}pM.prototype.clear=iM,pM.prototype.delete=aM,pM.prototype.get=sM,pM.prototype.has=lM,pM.prototype.set=cM;var uM=pM,dM=FN,fM=LR,mM=uM;var hM=FN,xM=HN,bM=UN,vM=qN,gM=GN,yM=function(e,t){var o=this.__data__;if(o instanceof dM){var r=o.__data__;if(!fM||r.length<199)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new mM(r)}return o.set(e,t),this.size=o.size,this};function wM(e){var t=this.__data__=new hM(e);this.size=t.size}wM.prototype.clear=xM,wM.prototype.delete=bM,wM.prototype.get=vM,wM.prototype.has=gM,wM.prototype.set=yM;var OM=wM;var SM=uM,TM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},CM=function(e){return this.__data__.has(e)};function EM(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new SM;++t<o;)this.add(e[t])}EM.prototype.add=EM.prototype.push=TM,EM.prototype.has=CM;var kM=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1};var NM=EM,RM=kM,MM=function(e,t){return e.has(t)};var PM=function(e,t,o,r,n,i){var a=1&o,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),p=i.get(t);if(c&&p)return c==t&&p==e;var u=-1,d=!0,f=2&o?new NM:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var m=e[u],h=t[u];if(r)var x=a?r(h,m,u,t,e,i):r(m,h,u,e,t,i);if(void 0!==x){if(x)continue;d=!1;break}if(f){if(!RM(t,(function(e,t){if(!MM(f,t)&&(m===e||n(m,e,o,r,i)))return f.push(t)}))){d=!1;break}}else if(m!==h&&!n(m,h,o,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var $M=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,r){o[++t]=[r,e]})),o};var LM=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o},IM=ZN.Uint8Array,jM=CN,AM=PM,DM=$M,zM=LM,VM=JN?JN.prototype:void 0,_M=VM?VM.valueOf:void 0;var BM=function(e,t,o,r,n,i,a){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new IM(e),new IM(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jM(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=DM;case"[object Set]":var l=1&r;if(s||(s=zM),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var p=AM(s(e),s(t),r,n,i,a);return a.delete(e),p;case"[object Symbol]":if(_M)return _M.call(e)==_M.call(t)}return!1};var FM=function(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e},WM=Array.isArray,HM=FM,UM=WM;var qM=function(e,t,o){var r=t(e);return UM(e)?r:HM(r,o(e))};var GM=function(e,t){for(var o=-1,r=null==e?0:e.length,n=0,i=[];++o<r;){var a=e[o];t(a,o,e)&&(i[n++]=a)}return i};var XM=GM,KM=function(){return[]},YM=Object.prototype.propertyIsEnumerable,ZM=Object.getOwnPropertySymbols,JM=ZM?function(e){return null==e?[]:(e=Object(e),XM(ZM(e),(function(t){return YM.call(e,t)})))}:KM;var QM=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r};var eP=function(e){return null!=e&&"object"==typeof e},tP=cR,oP=eP;var rP=function(e){return oP(e)&&"[object Arguments]"==tP(e)},nP=eP,iP=Object.prototype,aP=iP.hasOwnProperty,sP=iP.propertyIsEnumerable,lP=rP(function(){return arguments}())?rP:function(e){return nP(e)&&aP.call(e,"callee")&&!sP.call(e,"callee")},cP={exports:{}};var pP=function(){return!1};!function(e,t){var o=ZN,r=pP,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n?o.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(cP,cP.exports);var uP=/^(?:0|[1-9]\d*)$/;var dP=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&uP.test(e))&&e>-1&&e%1==0&&e<t};var fP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mP=cR,hP=fP,xP=eP,bP={};bP["[object Float32Array]"]=bP["[object Float64Array]"]=bP["[object Int8Array]"]=bP["[object Int16Array]"]=bP["[object Int32Array]"]=bP["[object Uint8Array]"]=bP["[object Uint8ClampedArray]"]=bP["[object Uint16Array]"]=bP["[object Uint32Array]"]=!0,bP["[object Arguments]"]=bP["[object Array]"]=bP["[object ArrayBuffer]"]=bP["[object Boolean]"]=bP["[object DataView]"]=bP["[object Date]"]=bP["[object Error]"]=bP["[object Function]"]=bP["[object Map]"]=bP["[object Number]"]=bP["[object Object]"]=bP["[object RegExp]"]=bP["[object Set]"]=bP["[object String]"]=bP["[object WeakMap]"]=!1;var vP=function(e){return xP(e)&&hP(e.length)&&!!bP[mP(e)]};var gP=function(e){return function(t){return e(t)}},yP={exports:{}};!function(e,t){var o=XN,r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r&&o.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(yP,yP.exports);var wP=vP,OP=gP,SP=yP.exports,TP=SP&&SP.isTypedArray,CP=TP?OP(TP):wP,EP=QM,kP=lP,NP=WM,RP=cP.exports,MP=dP,PP=CP,$P=Object.prototype.hasOwnProperty;var LP=function(e,t){var o=NP(e),r=!o&&kP(e),n=!o&&!r&&RP(e),i=!o&&!r&&!n&&PP(e),a=o||r||n||i,s=a?EP(e.length,String):[],l=s.length;for(var c in e)!t&&!$P.call(e,c)||a&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||MP(c,l))||s.push(c);return s},IP=Object.prototype;var jP=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||IP)};var AP=function(e,t){return function(o){return e(t(o))}},DP=AP(Object.keys,Object),zP=jP,VP=DP,_P=Object.prototype.hasOwnProperty;var BP=mR,FP=fP;var WP=LP,HP=function(e){if(!zP(e))return VP(e);var t=[];for(var o in Object(e))_P.call(e,o)&&"constructor"!=o&&t.push(o);return t},UP=function(e){return null!=e&&FP(e.length)&&!BP(e)};var qP=qM,GP=JM,XP=function(e){return UP(e)?WP(e):HP(e)};var KP=function(e){return qP(e,XP,GP)},YP=Object.prototype.hasOwnProperty;var ZP=function(e,t,o,r,n,i){var a=1&o,s=KP(e),l=s.length;if(l!=KP(t).length&&!a)return!1;for(var c=l;c--;){var p=s[c];if(!(a?p in t:YP.call(t,p)))return!1}var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<l;){var h=e[p=s[c]],x=t[p];if(r)var b=a?r(x,h,p,t,e,i):r(h,x,p,e,t,i);if(!(void 0===b?h===x||n(h,x,o,r,i):b)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(f=!1)}return i.delete(e),i.delete(t),f},JP=$R(ZN,"DataView"),QP=LR,e$=$R(ZN,"Promise"),t$=$R(ZN,"Set"),o$=$R(ZN,"WeakMap"),r$=cR,n$=gR,i$=n$(JP),a$=n$(QP),s$=n$(e$),l$=n$(t$),c$=n$(o$),p$=r$;(JP&&"[object DataView]"!=p$(new JP(new ArrayBuffer(1)))||QP&&"[object Map]"!=p$(new QP)||e$&&"[object Promise]"!=p$(e$.resolve())||t$&&"[object Set]"!=p$(new t$)||o$&&"[object WeakMap]"!=p$(new o$))&&(p$=function(e){var t=r$(e),o="[object Object]"==t?e.constructor:void 0,r=o?n$(o):"";if(r)switch(r){case i$:return"[object DataView]";case a$:return"[object Map]";case s$:return"[object Promise]";case l$:return"[object Set]";case c$:return"[object WeakMap]"}return t});var u$=OM,d$=PM,f$=BM,m$=ZP,h$=p$,x$=WM,b$=cP.exports,v$=CP,g$="[object Object]",y$=Object.prototype.hasOwnProperty;var w$=function(e,t,o,r,n,i){var a=x$(e),s=x$(t),l=a?"[object Array]":h$(e),c=s?"[object Array]":h$(t),p=(l="[object Arguments]"==l?g$:l)==g$,u=(c="[object Arguments]"==c?g$:c)==g$,d=l==c;if(d&&b$(e)){if(!b$(t))return!1;a=!0,p=!1}if(d&&!p)return i||(i=new u$),a||v$(e)?d$(e,t,o,r,n,i):f$(e,t,l,o,r,n,i);if(!(1&o)){var f=p&&y$.call(e,"__wrapped__"),m=u&&y$.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,x=m?t.value():t;return i||(i=new u$),n(h,x,o,r,i)}}return!!d&&(i||(i=new u$),m$(e,t,o,r,n,i))},O$=eP;var S$=function e(t,o,r,n,i){return t===o||(null==t||null==o||!O$(t)&&!O$(o)?t!=t&&o!=o:w$(t,o,r,n,e,i))},T$=S$;var C$=function(e,t){return T$(e,t)},E$=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var o=-1;return e.some((function(e,r){return e[0]===t&&(o=r,!0)})),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var o=e(this.__entries__,t),r=this.__entries__[o];return r&&r[1]},t.prototype.set=function(t,o){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=o:this.__entries__.push([t,o])},t.prototype.delete=function(t){var o=this.__entries__,r=e(o,t);~r&&o.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var o=0,r=this.__entries__;o<r.length;o++){var n=r[o];e.call(t,n[1],n[0])}},t}()}(),k$="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,N$="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),R$="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(N$):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var M$=["top","right","bottom","left","width","height","size","weight"],P$="undefined"!=typeof MutationObserver,$$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var o=!1,r=!1,n=0;function i(){o&&(o=!1,e()),r&&s()}function a(){R$(i)}function s(){var e=Date.now();if(o){if(e-n<2)return;r=!0}else o=!0,r=!1,setTimeout(a,t);n=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,o=t.indexOf(e);~o&&t.splice(o,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k$&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),P$?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k$&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,o=void 0===t?"":t;M$.some((function(e){return!!~o.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),L$=function(e,t){for(var o=0,r=Object.keys(t);o<r.length;o++){var n=r[o];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},I$=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||N$},j$=B$(0,0,0,0);function A$(e){return parseFloat(e)||0}function D$(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return t.reduce((function(t,o){return t+A$(e["border-"+o+"-width"])}),0)}function z$(e){var t=e.clientWidth,o=e.clientHeight;if(!t&&!o)return j$;var r=I$(e).getComputedStyle(e),n=function(e){for(var t={},o=0,r=["top","right","bottom","left"];o<r.length;o++){var n=r[o],i=e["padding-"+n];t[n]=A$(i)}return t}(r),i=n.left+n.right,a=n.top+n.bottom,s=A$(r.width),l=A$(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=D$(r,"left","right")+i),Math.round(l+a)!==o&&(l-=D$(r,"top","bottom")+a)),!function(e){return e===I$(e).document.documentElement}(e)){var c=Math.round(s+i)-t,p=Math.round(l+a)-o;1!==Math.abs(c)&&(s-=c),1!==Math.abs(p)&&(l-=p)}return B$(n.left,n.top,s,l)}var V$="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof I$(e).SVGGraphicsElement}:function(e){return e instanceof I$(e).SVGElement&&"function"==typeof e.getBBox};function _$(e){return k$?V$(e)?function(e){var t=e.getBBox();return B$(0,0,t.width,t.height)}(e):z$(e):j$}function B$(e,t,o,r){return{x:e,y:t,width:o,height:r}}var F$=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=B$(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_$(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),W$=function(e,t){var o=function(e){var t=e.x,o=e.y,r=e.width,n=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return L$(a,{x:t,y:o,width:r,height:n,top:o,right:t+r,bottom:n+o,left:t}),a}(t);L$(this,{target:e,contentRect:o})},H$=function(){function e(e,t,o){if(this.activeObservations_=[],this.observations_=new E$,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=o}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof I$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new F$(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof I$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new W$(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),U$="undefined"!=typeof WeakMap?new WeakMap:new E$,q$=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=$$.getInstance(),r=new H$(t,o,this);U$.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){q$.prototype[e]=function(){var t;return(t=U$.get(this))[e].apply(t,arguments)}}));var G$=void 0!==N$.ResizeObserver?N$.ResizeObserver:q$;function X$(e,t){var o=null,r=null;var n=new G$((function(e){var n=UE(e,1)[0].target;if(document.documentElement.contains(n)){var i=n.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),c=Math.floor(s);o===l&&r===c||Promise.resolve().then((function(){t({width:l,height:c})})),o=l,r=c}}));return e&&n.observe(e),function(){n.disconnect()}}function K$(e){return"function"!=typeof e?null:e()}function Y$(e){return"object"===mE(e)&&e?e:null}var Z$=function(e,t){var o=e.children,r=e.disabled,n=e.target,i=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,p=u.useRef({}),d=u.useRef(),f=u.Children.only(o),m=u.useRef({});m.current.disabled=r,m.current.target=n,m.current.align=i,m.current.onAlign=a;var h=function(e,t){var o=u.useRef(!1),r=u.useRef(null);function n(){window.clearTimeout(r.current)}return[function i(a){if(n(),o.current&&!0!==a)r.current=window.setTimeout((function(){o.current=!1,i()}),t);else{if(!1===e())return;o.current=!0,r.current=window.setTimeout((function(){o.current=!1}),t)}},function(){o.current=!1,n()}]}((function(){var e=m.current,t=e.disabled,o=e.target,r=e.align,n=e.onAlign;if(!t&&o){var i,a=d.current,s=K$(o),l=Y$(o);p.current.element=s,p.current.point=l,p.current.align=r;var c=document.activeElement;return s&&function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),o=t.width,r=t.height;if(o||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=n.width,a=n.height;if(i||a)return!0}return!1}(s)?i=SN(a,s,r):l&&(i=function(e,t,o){var r,n,i=lN.getDocument(e),a=i.defaultView||i.parentWindow,s=lN.getWindowScrollLeft(a),l=lN.getWindowScrollTop(a),c=lN.viewportWidth(a),p=lN.viewportHeight(a),u={left:r="pageX"in t?t.pageX:s+t.clientX,top:n="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=r>=0&&r<=s+c&&n>=0&&n<=l+p,f=[o.points[0],"cc"];return ON(e,u,Ek(Ek({},o),{},{points:f}),d)}(a,l,r)),function(e,t){e!==document.activeElement&&$E(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),n&&i&&n(a,i),!0}return!1}),c),x=UE(h,2),b=x[0],v=x[1],g=u.useRef({cancel:function(){}}),y=u.useRef({cancel:function(){}});u.useEffect((function(){var e,t,o=K$(n),r=Y$(n);d.current!==y.current.element&&(y.current.cancel(),y.current.element=d.current,y.current.cancel=X$(d.current,b)),p.current.element===o&&((e=p.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&C$(p.current.align,i)||(b(),g.current.element!==o&&(g.current.cancel(),g.current.element=o,g.current.cancel=X$(o,b)))})),u.useEffect((function(){r?v():b()}),[r]);var w=u.useRef(null);return u.useEffect((function(){s?w.current||(w.current=DE(window,"resize",b)):w.current&&(w.current.remove(),w.current=null)}),[s]),u.useEffect((function(){return function(){g.current.cancel(),y.current.cancel(),w.current&&w.current.remove(),v()}}),[]),u.useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),u.isValidElement(f)&&(f=u.cloneElement(f,{ref:jE(f.ref,d)})),f},J$=u.forwardRef(Z$);J$.displayName="Align";var Q$="test"!==process.env.NODE_ENV&&zE()?p.useLayoutEffect:p.useEffect;function eL(){
|
243
243
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
244
|
-
eL=function(){return e};var e={},t=Object.prototype,o=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,o){return e[t]=o}}function l(e,t,o,r){var n=t&&t.prototype instanceof u?t:u,i=Object.create(n.prototype),a=new S(r||[]);return i._invoke=function(e,t,o){var r="suspendedStart";return function(n,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw i;return C()}for(o.method=n,o.arg=i;;){var a=o.delegate;if(a){var s=y(a,o);if(s){if(s===p)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===r)throw r="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r="executing";var l=c(e,t,o);if("normal"===l.type){if(r=o.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r="completed",o.method="throw",o.arg=l.arg)}}}(e,o,a),i}function c(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function u(){}function d(){}function f(){}var m={};s(m,n,(function(){return this}));var h=Object.getPrototypeOf,x=h&&h(h(T([])));x&&x!==t&&o.call(x,n)&&(m=x);var b=f.prototype=u.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(n,i,a,s){var l=c(e[n],e,i);if("throw"!==l.type){var p=l.arg,u=p.value;return u&&"object"==mE(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){p.value=e,a(p)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function y(e,t){var o=e.iterator[t.method];if(void 0===o){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=c(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function w(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function T(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=f,s(b,"constructor",f),s(f,"constructor",d),d.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(g.prototype),s(g.prototype,i,(function(){return this})),e.AsyncIterator=g,e.async=function(t,o,r,n,i){void 0===i&&(i=Promise);var a=new g(l(t,o,r,n),i);return e.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(b),s(b,a,"Generator"),s(b,n,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function o(){for(;t.length;){var r=t.pop();if(r in e)return o.value=r,o.done=!1,o}return o.done=!0,o}},e.values=T,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(o,r){return a.type="throw",a.arg=e,t.next=o,r&&(t.method="next",t.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(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&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),O(o),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var r=o.completion;if("throw"===r.type){var n=r.arg;O(o)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),p}},e}function tL(e,t,o,r,n,i,a){try{var s=e[i](a),l=s.value}catch(e){return void o(e)}s.done?t(l):Promise.resolve(l).then(r,n)}function oL(e){return function(){var t=this,o=arguments;return new Promise((function(r,n){var i=e.apply(t,o);function a(e){tL(i,r,n,a,s,"next",e)}function s(e){tL(i,r,n,a,s,"throw",e)}a(void 0)}))}}var rL=["measure","alignPre","align",null,"motion"],nL=p.forwardRef((function(e,t){var o=e.visible,r=e.prefixCls,n=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,f=e.point,m=e.getRootDomNode,h=e.getClassNameFromAlign,x=e.onAlign,y=e.onMouseEnter,w=e.onMouseLeave,O=e.onMouseDown,S=e.onTouchStart,T=e.onClick,C=g(),E=g(),k=UE(b(),2),N=k[0],R=k[1],M=function(e){var t=UE(p.useState({width:0,height:0}),2),o=t[0],r=t[1],n=p.useMemo((function(){var t={};if(e){var r=o.width,n=o.height;-1!==e.indexOf("height")&&n?t.height=n:-1!==e.indexOf("minHeight")&&n&&(t.minHeight=n),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,o]);return[n,function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),P=UE(M,2),$=P[0],L=P[1];var I=function(e,t){var o=UE(sk(null),2),r=o[0],n=o[1],i=g();function a(e){n(e,!0)}function s(){PE.cancel(i.current)}return v((function(){a("measure")}),[e]),v((function(){"measure"===r&&t(),r&&(i.current=PE(oL(eL().mark((function e(){var t,o;return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=rL.indexOf(r),(o=rL[t+1])&&-1!==t&&a(o);case 3:case"end":return e.stop()}}),e)})))))}),[r]),v((function(){return function(){s()}}),[]),[r,function(e){s(),i.current=PE((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(o,(function(){l&&L(m())})),j=UE(I,2),A=j[0],D=j[1],z=UE(b(0),2),V=z[0],_=z[1],B=g();function F(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function W(e,t){var o=h(t);N!==o&&R(o),_((function(e){return e+1})),"align"===A&&(null==x||x(e,t))}Q$((function(){"alignPre"===A&&_(0)}),[A]),Q$((function(){"align"===A&&(V<2?F():D((function(){var e;null===(e=B.current)||void 0===e||e.call(B)})))}),[V]);var H=bE({},Ok(e));function U(){return new Promise((function(e){B.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=H[e];H[e]=function(e,o){return D(),null==t?void 0:t(e,o)}})),p.useEffect((function(){H.motionName||"motion"!==A||D()}),[H.motionName,A]),p.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return E.current}}}));var q=bE(bE({},$),{},{zIndex:s,opacity:"motion"!==A&&"stable"!==A&&o?0:void 0,pointerEvents:o||"stable"===A?void 0:"none"},i),G=!0;!(null==d?void 0:d.points)||"align"!==A&&"stable"!==A||(G=!1);var X=a;return p.Children.count(a)>1&&(X=p.createElement("div",{className:"".concat(r,"-content")},a)),p.createElement(mk,De({visible:o,ref:E,leavedClassName:"".concat(r,"-hidden")},H,{onAppearPrepare:U,onEnterPrepare:U,removeOnLeave:c,forceRender:u}),(function(e,t){var o=e.className,i=e.style,a=BE(r,n,N,o);return p.createElement(J$,{target:f||m,key:"popup",ref:C,monitorWindowResize:!0,disabled:G,align:d,onAlign:W},p.createElement("div",{ref:t,className:a,onMouseEnter:y,onMouseLeave:w,onMouseDownCapture:O,onTouchStartCapture:S,onClick:T,style:bE(bE({},i),q)},X))}))}));nL.displayName="PopupInner";var iL=p.forwardRef((function(e,t){var o=e.prefixCls,r=e.visible,n=e.zIndex,i=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,u=void 0===c?{}:c,d=a.popupRender,f=e.onClick,m=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=bE({zIndex:n},l),x=i;return p.Children.count(i)>1&&(x=p.createElement("div",{className:"".concat(o,"-content")},i)),d&&(x=d(x)),p.createElement(mk,De({visible:r,ref:m,removeOnLeave:!0},u),(function(e,t){var r=e.className,n=e.style,i=BE(o,s,r);return p.createElement("div",{ref:t,className:i,onClick:f,style:bE(bE({},n),h)},x)}))}));iL.displayName="MobilePopupInner";var aL=["visible","mobile"],sL=p.forwardRef((function(e,t){var o=e.visible,r=e.mobile,n=vE(e,aL),i=UE(b(o),2),a=i[0],s=i[1],l=UE(b(!1),2),c=l[0],u=l[1],d=bE(bE({},n),{},{visible:a});v((function(){s(o),o&&r&&u(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[o,r]);var f=c?p.createElement(iL,De({},d,{mobile:r,ref:t})):p.createElement(nL,De({},d,{ref:t}));return p.createElement("div",null,p.createElement(Sk,d),f)}));sL.displayName="Popup";var lL=p.createContext(null);function cL(){}function pL(){return""}function uL(e){return e?e.ownerDocument:window.document}var dL=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var fL=function(e){var t=function(t){OE(r,p.Component);var o=CE(r);function r(e){var t,n;return gE(this,r),(t=o.call(this,e)).popupRef=p.createRef(),t.triggerRef=p.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var o=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,o,o?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var o;e.relatedTarget&&!e.relatedTarget.setTimeout&&$E(null===(o=t.popupRef.current)||void 0===o?void 0:o.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var o;if(t.preClickTime&&t.preTouchTime?o=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?o=t.preClickTime:t.preTouchTime&&(o=t.preTouchTime),Math.abs(o-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var o=e.target,r=t.getRootDomNode(),n=t.getPopupDomNode();$E(r,o)&&!t.isContextMenuOnly()||$E(n,o)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var o=LE(t.triggerRef.current);if(o)return o}catch(e){}return k.findDOMNode(Gl(t))},t.getPopupClassNameFromAlign=function(e){var o=[],r=t.props,n=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return n&&i&&o.push(function(e,t,o,r){for(var n=o.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(FE(e[s].points,n,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&o.push(l(e)),o.join(" ")},t.getComponent=function(){var e=t.props,o=e.prefixCls,r=e.destroyPopupOnHide,n=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,u=e.mask,d=e.maskAnimation,f=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,x=e.popup,b=e.stretch,v=e.alignPoint,g=e.mobile,y=e.forceRender,w=e.onPopupClick,O=t.state,S=O.popupVisible,T=O.point,C=t.getPopupAlign(),E={};return t.isMouseEnterToShow()&&(E.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(E.onMouseLeave=t.onPopupMouseLeave),E.onMouseDown=t.onPopupMouseDown,E.onTouchStart=t.onPopupMouseDown,p.createElement(sL,De({prefixCls:o,destroyPopupOnHide:r,visible:S,point:v&&T,className:n,align:C,onAlign:i,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},E,{stretch:b,getRootDomNode:t.getRootDomNode,style:c,mask:u,zIndex:h,transitionName:l,maskAnimation:d,maskTransitionName:f,maskMotion:m,ref:t.popupRef,motion:a,mobile:g,forceRender:y,onClick:w}),"function"==typeof x?x():x)},t.attachParent=function(e){PE.cancel(t.attachId);var o,r=t.props,n=r.getPopupContainer,i=r.getDocument,a=t.getRootDomNode();n?(a||0===n.length)&&(o=n(a)):o=i(t.getRootDomNode()).body,o?o.appendChild(e):t.attachId=PE((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},n="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:n,popupVisible:n},dL.forEach((function(e){t["fire".concat(e)]=function(o){t.fireEvents(e,o)}})),t}return wE(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=DE(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=DE(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=DE(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=DE(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),PE.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,o=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,o){return bE(bE({},e[t]||{}),o)}(r,t,o):o}},{key:"setPopupVisible",value:function(e,t){var o=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),o&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,o){var r=this,n=1e3*t;if(this.clearDelayTimer(),n){var i=o?{pageX:o.pageX,pageY:o.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),n)}else this.setPopupVisible(e,o)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,o=this.props;return t[e]&&o[e]?this["fire".concat(e)]:t[e]||o[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("click")||-1!==o.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==o.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("click")||-1!==o.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("hover")||-1!==o.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("hover")||-1!==o.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("focus")||-1!==o.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("focus")||-1!==o.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var o=this.props.children.props[e];o&&o(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,o=this.props,r=o.children,n=o.forceRender,i=o.alignPoint,a=o.className,s=o.autoDestroy,l=p.Children.only(r),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var u=BE(l&&l.props&&l.props.className,a);u&&(c.className=u);var d=bE({},c);AE(l)&&(d.ref=jE(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(t||this.popupRef.current||n)&&(f=p.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(f=null),p.createElement(lL.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o=e.popupVisible,r={};return void 0!==o&&t.popupVisible!==o&&(r.popupVisible=o,r.prevPopupVisible=t.popupVisible),r}}]),r}();return t.contextType=lL,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:pL,getDocument:uL,onPopupVisibleChange:cL,afterPopupVisibleChange:cL,onPopupAlign:cL,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(VE),mL={adjustX:1,adjustY:1},hL=[0,0],xL={left:{points:["cr","cl"],overflow:mL,offset:[-4,0],targetOffset:hL},right:{points:["cl","cr"],overflow:mL,offset:[4,0],targetOffset:hL},top:{points:["bc","tc"],overflow:mL,offset:[0,-4],targetOffset:hL},bottom:{points:["tc","bc"],overflow:mL,offset:[0,4],targetOffset:hL},topLeft:{points:["bl","tl"],overflow:mL,offset:[0,-4],targetOffset:hL},leftTop:{points:["tr","tl"],overflow:mL,offset:[-4,0],targetOffset:hL},topRight:{points:["br","tr"],overflow:mL,offset:[0,-4],targetOffset:hL},rightTop:{points:["tl","tr"],overflow:mL,offset:[4,0],targetOffset:hL},bottomRight:{points:["tr","br"],overflow:mL,offset:[0,4],targetOffset:hL},rightBottom:{points:["bl","br"],overflow:mL,offset:[4,0],targetOffset:hL},bottomLeft:{points:["tl","bl"],overflow:mL,offset:[0,4],targetOffset:hL},leftBottom:{points:["br","bl"],overflow:mL,offset:[-4,0],targetOffset:hL}};function bL(e){var t=e.showArrow,o=e.arrowContent,r=e.children,n=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return p.createElement("div",{className:BE("".concat(n,"-content"),s),style:l},!1!==t&&p.createElement("div",{className:"".concat(n,"-arrow"),key:"arrow"},o),p.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var vL,gL,yL,wL=y((function(e,t){var o=e.overlayClassName,r=e.trigger,n=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,m=e.onVisibleChange,h=e.afterVisibleChange,x=e.transitionName,b=e.animation,v=e.motion,y=e.placement,O=void 0===y?"right":y,S=e.align,T=void 0===S?{}:S,C=e.destroyTooltipOnHide,E=void 0!==C&&C,k=e.defaultVisible,N=e.getTooltipContainer,R=e.overlayInnerStyle,M=e.arrowContent,P=e.overlay,$=e.id,L=e.showArrow,I=vE(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),j=g(null);w(t,(function(){return j.current}));var A=bE({},I);"visible"in e&&(A.popupVisible=e.visible);var D=!1,z=!1;if("boolean"==typeof E)D=E;else if(E&&"object"===mE(E)){var V=E.keepParent;D=!0===V,z=!1===V}return p.createElement(fL,De({popupClassName:o,prefixCls:d,popup:function(){return p.createElement(bL,{showArrow:L,arrowContent:M,key:"content",prefixCls:d,id:$,overlayInnerStyle:R},P)},action:n,builtinPlacements:xL,popupPlacement:O,ref:j,popupAlign:T,getPopupContainer:N,onPopupVisibleChange:m,afterPopupVisibleChange:h,popupTransitionName:x,popupAnimation:b,popupMotion:v,defaultPopupVisible:k,destroyPopupOnHide:D,autoDestroy:z,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a},A),f)})),OL=r.div(gL||(gL=L(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=t.fonts;return n(vL||(vL=L(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S)})),SL=function(e){var t=e.trigger,r=void 0===t?"hover":t,n=e.placement,i=void 0===n?"top":n,a=M(e,["trigger","placement"]),s=g(null);return o(OL,R({ref:s},{children:o(wL,R({},a,{getTooltipContainer:function(){return s.current},trigger:r,placement:i}))}))},TL=bE({},E),CL=TL.version,EL=TL.render,kL=TL.unmountComponentAtNode;try{Number((CL||"").split(".")[0])>=18&&(yL=TL.createRoot)}catch(e){}function NL(e){var t=TL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===mE(t)&&(t.usingClientEntryPoint=e)}var RL="__rc_react_root__";function ML(e,t){yL?function(e,t){NL(!0);var o=t[RL]||yL(t);NL(!1),o.render(e),t[RL]=o}(e,t):function(e,t){EL(e,t)}(e,t)}function PL(e){return $L.apply(this,arguments)}function $L(){return($L=oL(eL().mark((function e(t){return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[RL])||void 0===e||e.unmount(),delete t[RL]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function LL(e){kL(e)}function IL(){return(IL=oL(eL().mark((function e(t){return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===yL){e.next=2;break}return e.abrupt("return",PL(t));case 2:LL(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var jL=function(e){OE(o,S);var t=CE(o);function o(){var e;gE(this,o);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var o=e.props,r=o.onClose,n=o.noticeKey;r&&r(n)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return wE(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,o=t.prefixCls,r=t.className,n=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,l=t.children,c=t.holder,u="".concat(o,"-notice"),d=Object.keys(this.props).reduce((function(t,o){return"data-"!==o.substr(0,5)&&"aria-"!==o.substr(0,5)&&"role"!==o||(t[o]=e.props[o]),t}),{}),f=p.createElement("div",De({className:BE(u,r,hE({},"".concat(u,"-closable"),n)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},d),p.createElement("div",{className:"".concat(u,"-content")},l),n?p.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(u,"-close")},i||p.createElement("span",{className:"".concat(u,"-close-x")})):null);return c?k.createPortal(f,c):f}}]),o}();function AL(e){return function(e){if(Array.isArray(e))return WE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}jL.defaultProps={onClose:function(){},duration:1.5};var DL=["getContainer"],zL=0,VL=Date.now();function _L(){var e=zL;return zL+=1,"rcNotification_".concat(VL,"_").concat(e)}var BL=function(e){OE(o,S);var t=CE(o);function o(){var e;gE(this,o);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,o){var r=t.key||_L(),n=bE(bE({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:n,holderCallback:o}):(i&&t.length>=i&&(n.key=s[0].notice.key,n.updateMark=_L(),n.userPassKey=r,s.shift()),s.push({notice:n,holderCallback:o})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var o=e.notice,r=o.key;return(o.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return wE(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,o=e.animation,r=this.props.transitionName;return!r&&o&&(r="".concat(t,"-").concat(o)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,o=this.props,r=o.prefixCls,n=o.className,i=o.closeIcon,a=o.style,s=[];return t.forEach((function(o,n){var a=o.notice,l=o.holderCallback,c=n===t.length-1?a.updateMark:void 0,p=a.key,u=a.userPassKey,d=bE(bE(bE({prefixCls:r,closeIcon:i},a),a.props),{},{key:p,noticeKey:u||p,updateMark:c,onClose:function(t){var o;e.remove(t),null===(o=a.onClose)||void 0===o||o.call(a)},onClick:a.onClick,children:a.content});s.push(p),e.noticePropsMap[p]={props:d,holderCallback:l}})),p.createElement("div",{className:BE(r,n),style:a},p.createElement(wk,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,o){var r=o.key;t||delete e.noticePropsMap[r]}},(function(t){var o=t.key,n=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[o],l=s.props,c=s.holderCallback;return c?p.createElement("div",{key:o,className:BE(n,"".concat(r,"-hook-holder")),style:bE({},i),ref:function(t){void 0!==o&&(t?(e.hookRefs.set(o,t),c(t,l)):e.hookRefs.delete(o))}}):p.createElement(jL,De({},l,{className:BE(n,null==l?void 0:l.className),style:bE(bE({},i),null==l?void 0:l.style),visible:a}))})))}}]),o}();BL.newInstance=void 0,BL.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},BL.newInstance=function(e,t){var o=e||{},r=o.getContainer,n=vE(o,DL),i=document.createElement("div");r?r().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){IL.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,o=p.useRef({}),r=UE(p.useState([]),2),n=r[0],i=r[1],[function(e){var r=!0;t.add(e,(function(e,t){var n=t.key;if(e&&(!o.current[n]||r)){var a=p.createElement(jL,De({},t,{holder:e}));o.current[n]=a,i((function(e){var o=e.findIndex((function(e){return e.key===t.key}));if(-1===o)return[].concat(AL(e),[a]);var r=AL(e);return r[o]=a,r}))}r=!1}))},p.createElement(p.Fragment,null,n)];var t,o,r,n,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(p.createElement(BL,De({},n,{ref:s}))):ML(p.createElement(BL,De({},n,{ref:s})),i)};var FL,WL,HL,UL=oe.colors,qL=oe.fonts,GL=oe.sizes,XL=r.span(FL||(FL=L(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),qL.L),KL=r.div(WL||(WL=L(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),GL.XL,GL.M,GL.XL),YL=r.div(HL||(HL=L(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),U(GL.XL),(function(e){return e.backgroundColor})),ZL=function(t){var r=t.type,n=t.message,i=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:UL.success,textColor:X(UL.success)};case"error":return{icon:"Close",backgroundColor:UL.error,textColor:X(UL.error)};case"warning":return{icon:"Warning",backgroundColor:UL.warning,textColor:X(UL.warning),iconColor:X(UL.warning),iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:UL.blue,textColor:X(UL.blue),iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:UL.gray2,textColor:X(UL.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:"infoTierOne",textColor:X(UL.blue)}}}(r),a=i.icon,s=i.iconColor,l=i.textColor,c=i.backgroundColor,p=i.iconSize;return e(KL,{children:[o(YL,R({backgroundColor:c},{children:o(BC,{size:p||32,name:a,color:s||UL.white})})),o(XL,R({textColor:l},{children:n}))]})},JL=null;BL.newInstance({maxCount:2},(function(e){return JL=e}));var QL,eI,tI,oI,rI,nI,iI,aI,sI,lI,cI,pI,uI,dI,fI,mI,hI=function(e){var t=e.message,r=e.type,n=void 0===r?"success":r,i=e.duration,a=void 0===i?2.5:i;return null==JL?void 0:JL.notice({content:o(ZL,{message:t,type:n}),className:"toast-".concat(n),closable:!0,closeIcon:o(BC,{name:"Close"}),duration:a})},xI=function(t){var r=t.size,n=void 0===r?"XL":r,i=t.withShadow,a=t.label,s=t.backgroundColor,l=t.onPress,p=t.content,u=p.initials,d=p.iconName,f=p.imageUrl,m=t.textConfig,h=void 0===m?{}:m,x=h.color,b=void 0===x?"white":x,v=h.font,g=void 0===v?"L":v,y=c().sizes,w="number"==typeof n?n:y[n],O=u?o(yI,R({variant:g,color:b,avatarSize:w},{children:u})):d?o(BC,{name:d,color:"white",size:w/1.5}):f?o(wI,{avatarSize:w,src:f}):null;return e(bI,{children:[o(gI,R({onClick:l,withShadow:i,backgroundColor:f?"white":s,avatarSize:w},{children:O})),!!a&&o(vI,R({variant:"M"},{children:a}))]})},bI=r.div(QL||(QL=L(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),vI=r(FC)(eI||(eI=L(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),gI=r.div(rI||(rI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,o=e.avatarSize,r=e.withShadow,i=e.backgroundColor;return n(oI||(oI=L(["\n cursor: pointer;\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),t[i||"indigoTint2"],t.white,Math.round(o/40),t.white,o/2,U(o),r&&n(tI||(tI=L(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),G(t[i||"indigoTint2"]),t[i||"indigoTint2"])})),yI=r(FC)(iI||(iI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return n(nI||(nI=L(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),t/2)})),wI=r(lE)(sI||(sI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return n(aI||(aI=L(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),U(t))})),OI=r.div(lI||(lI=L(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,o=e.padding;return"number"==typeof o?o:t.sizes[o]})),SI=r.div(cI||(cI=L(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,o=e.padding;return"number"==typeof o?o:t.sizes[o]})),TI=r.div(uI||(uI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.color,a=void 0===i?"gray4":i,s=e.type,l=void 0===s?"horizontal":s,c=e.weight,p=void 0===c?1:c,u=e.marginHorizontal,d=e.marginVertical;return n(pI||(pI=L(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(p,"px"):"100%","horizontal"===l?"".concat(p,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof u?u:r[u]||0)})),CI={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"error"}},EI=function(t){var r=t.label,n=t.isError,i=t.ruleLabel,a=t.tooltipText,s=c().colors,l=i?CI[i]:void 0;return e(kI,{children:[e(NI,{children:[o(FC,R({variant:"S",color:n?s.error:s.gray2},{children:r})),!!a&&o(SL,R({overlay:a},{children:o(RI,{children:o(BC,{color:n?s.error:s.gray2,name:"Info"})})}))]}),!!l&&o(FC,R({color:s[l.color],variant:"XS"},{children:l.text}))]})},kI=r.div(dI||(dI=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),NI=r.div(fI||(fI=L(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),RI=r.div(mI||(mI=L(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n"]))),MI=e=>"checkbox"===e.type,PI=e=>e instanceof Date,$I=e=>null==e;const LI=e=>"object"==typeof e;var II=e=>!$I(e)&&!Array.isArray(e)&&LI(e)&&!PI(e),jI=e=>II(e)&&e.target?MI(e.target)?e.target.checked:e.target.value:e,AI=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),DI=e=>Array.isArray(e)?e.filter(Boolean):[],zI=e=>void 0===e,VI=(e,t,o)=>{if(!t||!II(e))return o;const r=DI(t.split(/[,[\].]+?/)).reduce(((e,t)=>$I(e)?e:e[t]),e);return zI(r)||r===e?zI(e[t])?o:e[t]:r};const _I="blur",BI="focusout",FI="change",WI="onBlur",HI="onChange",UI="onSubmit",qI="onTouched",GI="all",XI="max",KI="min",YI="maxLength",ZI="minLength",JI="pattern",QI="required",ej="validate",tj=u.createContext(null),oj=()=>u.useContext(tj);var rj=(e,t,o,r=!0)=>{const n={};for(const i in e)Object.defineProperty(n,i,{get:()=>{const n=i;return t[n]!==GI&&(t[n]=!r||GI),o&&(o[n]=!0),e[n]}});return n},nj=e=>II(e)&&!Object.keys(e).length,ij=(e,t,o)=>{const{name:r,...n}=e;return nj(n)||Object.keys(n).length>=Object.keys(t).length||Object.keys(n).find((e=>t[e]===(!o||GI)))},aj=e=>Array.isArray(e)?e:[e],sj=(e,t,o)=>o&&t?e===t:!e||!t||e===t||aj(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function lj(e){const t=u.useRef(e);t.current=e,u.useEffect((()=>{const o=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(o)}),[e.disabled])}var cj=e=>"string"==typeof e,pj=(e,t,o,r)=>{const n=Array.isArray(e);return cj(e)?(r&&t.watch.add(e),VI(o,e)):n?e.map((e=>(r&&t.watch.add(e),VI(o,e)))):(r&&(t.watchAll=!0),o)},uj=e=>"function"==typeof e,dj=e=>{for(const t in e)if(uj(e[t]))return!0;return!1};function fj(e){const t=oj(),{name:o,control:r=t.control,shouldUnregister:n}=e,i=AI(r._names.array,o),a=function(e){const t=oj(),{control:o=t.control,name:r,defaultValue:n,disabled:i,exact:a}=e||{},s=u.useRef(r);s.current=r;const l=u.useCallback((e=>{if(sj(s.current,e.name,a)){const t=pj(s.current,o._names,e.values||o._formValues);p(zI(s.current)||II(t)&&!dj(t)?{...t}:Array.isArray(t)?[...t]:zI(t)?n:t)}}),[o,a,n]);lj({disabled:i,subject:o._subjects.watch,callback:l});const[c,p]=u.useState(zI(n)?o._getWatch(r):n);return u.useEffect((()=>{o._removeUnmounted()})),c}({control:r,name:o,defaultValue:VI(r._formValues,o,VI(r._defaultValues,o,e.defaultValue)),exact:!0}),s=function(e){const t=oj(),{control:o=t.control,disabled:r,name:n,exact:i}=e||{},[a,s]=u.useState(o._formState),l=u.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=u.useRef(n),p=u.useRef(!0);return c.current=n,lj({disabled:r,callback:u.useCallback((e=>p.current&&sj(c.current,e.name,i)&&ij(e,l.current)&&s({...o._formState,...e})),[o,i]),subject:o._subjects.state}),u.useEffect((()=>(p.current=!0,()=>{p.current=!1})),[]),rj(a,o._proxyFormState,l.current,!1)}({control:r,name:o}),l=u.useRef(r.register(o,{...e.rules,value:a}));return u.useEffect((()=>{const e=(e,t)=>{const o=VI(r._fields,e);o&&(o._f.mount=t)};return e(o,!0),()=>{const t=r._options.shouldUnregister||n;(i?t&&!r._stateFlags.action:t)?r.unregister(o):e(o,!1)}}),[o,r,i,n]),{field:{name:o,value:a,onChange:u.useCallback((e=>{l.current.onChange({target:{value:jI(e),name:o},type:FI})}),[o]),onBlur:u.useCallback((()=>{l.current.onBlur({target:{value:VI(r._formValues,o),name:o},type:_I})}),[o,r]),ref:u.useCallback((e=>{const t=VI(r._fields,o);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[o,r._fields])},formState:s,fieldState:Object.defineProperties({},{invalid:{get:()=>!!VI(s.errors,o)},isDirty:{get:()=>!!VI(s.dirtyFields,o)},isTouched:{get:()=>!!VI(s.touchedFields,o)},error:{get:()=>VI(s.errors,o)}})}}const mj=e=>e.render(fj(e));var hj=(e,t,o,r,n)=>t?{...o[e],types:{...o[e]&&o[e].types?o[e].types:{},[r]:n||!0}}:{},xj=e=>/^\w*$/.test(e),bj=e=>DI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function vj(e,t,o){let r=-1;const n=xj(t)?[t]:bj(t),i=n.length,a=i-1;for(;++r<i;){const t=n[r];let i=o;if(r!==a){const o=e[t];i=II(o)||Array.isArray(o)?o:isNaN(+n[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const gj=(e,t,o)=>{for(const r of o||Object.keys(e)){const o=VI(e,r);if(o){const{_f:e,...r}=o;if(e&&t(e.name)){if(e.ref.focus&&zI(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else II(r)&&gj(r,t)}}};var yj=(e,t,o)=>!o&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),wj=(e,t,o)=>{const r=DI(VI(e,o));return vj(r,"root",t[o]),vj(e,o,r),e},Oj=e=>"boolean"==typeof e,Sj=e=>"file"===e.type,Tj=e=>cj(e)||u.isValidElement(e),Cj=e=>"radio"===e.type,Ej=e=>e instanceof RegExp;const kj={value:!1,isValid:!1},Nj={value:!0,isValid:!0};var Rj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zI(e[0].attributes.value)?zI(e[0].value)||""===e[0].value?Nj:{value:e[0].value,isValid:!0}:Nj:kj}return kj};const Mj={isValid:!1,value:null};var Pj=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Mj):Mj;function $j(e,t,o="validate"){if(Tj(e)||Array.isArray(e)&&e.every(Tj)||Oj(e)&&!e)return{type:o,message:Tj(e)?e:"",ref:t}}var Lj=e=>II(e)&&!Ej(e)?e:{value:e,message:""},Ij=async(e,t,o,r,n)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:p,max:u,pattern:d,validate:f,name:m,valueAsNumber:h,mount:x,disabled:b}=e._f;if(!x||b)return{};const v=a?a[0]:i,g=e=>{r&&v.reportValidity&&(v.setCustomValidity(Oj(e)?"":e||" "),v.reportValidity())},y={},w=Cj(i),O=MI(i),S=w||O,T=(h||Sj(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,C=hj.bind(null,m,o,y),E=(e,t,o,r=YI,n=ZI)=>{const a=e?t:o;y[m]={type:e?r:n,message:a,ref:i,...C(e?r:n,a)}};if(n?!Array.isArray(t)||!t.length:s&&(!S&&(T||$I(t))||Oj(t)&&!t||O&&!Rj(a).isValid||w&&!Pj(a).isValid)){const{value:e,message:t}=Tj(s)?{value:!!s,message:s}:Lj(s);if(e&&(y[m]={type:QI,message:t,ref:v,...C(QI,t)},!o))return g(t),y}if(!(T||$I(p)&&$I(u))){let e,r;const n=Lj(u),a=Lj(p);if($I(t)||isNaN(t)){const o=i.valueAsDate||new Date(t);cj(n.value)&&(e=o>new Date(n.value)),cj(a.value)&&(r=o<new Date(a.value))}else{const o=i.valueAsNumber||+t;$I(n.value)||(e=o>n.value),$I(a.value)||(r=o<a.value)}if((e||r)&&(E(!!e,n.message,a.message,XI,KI),!o))return g(y[m].message),y}if((l||c)&&!T&&(cj(t)||n&&Array.isArray(t))){const e=Lj(l),r=Lj(c),n=!$I(e.value)&&t.length>e.value,i=!$I(r.value)&&t.length<r.value;if((n||i)&&(E(n,e.message,r.message),!o))return g(y[m].message),y}if(d&&!T&&cj(t)){const{value:e,message:r}=Lj(d);if(Ej(e)&&!t.match(e)&&(y[m]={type:JI,message:r,ref:i,...C(JI,r)},!o))return g(r),y}if(f)if(uj(f)){const e=$j(await f(t),v);if(e&&(y[m]={...e,...C(ej,e.message)},!o))return g(e.message),y}else if(II(f)){let e={};for(const r in f){if(!nj(e)&&!o)break;const n=$j(await f[r](t),v,r);n&&(e={...n,...C(r,n.message)},g(n.message),o&&(y[m]=e))}if(!nj(e)&&(y[m]={ref:v,...e},!o))return y}return g(!0),y},jj="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Aj(e){let t;const o=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(jj&&(e instanceof Blob||e instanceof FileList)||!o&&!II(e))return e;t=o?[]:{};for(const o in e){if(uj(e[o])){t=e;break}t[o]=Aj(e[o])}}return t}var Dj=e=>({isOnSubmit:!e||e===UI,isOnBlur:e===WI,isOnChange:e===HI,isOnAll:e===GI,isOnTouch:e===qI});function zj(e){for(const t in e)if(!zI(e[t]))return!1;return!0}function Vj(e,t){const o=xj(t)?[t]:bj(t),r=1==o.length?e:function(e,t){const o=t.slice(0,-1).length;let r=0;for(;r<o;)e=zI(e)?r++:e[t[r++]];return e}(e,o),n=o[o.length-1];let i;r&&delete r[n];for(let t=0;t<o.slice(0,-1).length;t++){let r,n=-1;const a=o.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++n<a.length;){const t=a[n];r=r?r[t]:e[t],s===n&&(II(r)&&nj(r)||Array.isArray(r)&&zj(r))&&(i?delete i[t]:delete e[t]),i=r}}return e}function _j(){let e=[];return{get observers(){return e},next:t=>{for(const o of e)o.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var Bj=e=>$I(e)||!LI(e);function Fj(e,t){if(Bj(e)||Bj(t))return e===t;if(PI(e)&&PI(t))return e.getTime()===t.getTime();const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(const n of o){const o=e[n];if(!r.includes(n))return!1;if("ref"!==n){const e=t[n];if(PI(o)&&PI(e)||II(o)&&II(e)||Array.isArray(o)&&Array.isArray(e)?!Fj(o,e):o!==e)return!1}}return!0}var Wj=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hj=e=>"select-multiple"===e.type,Uj=e=>Wj(e)&&e.isConnected;function qj(e,t={}){const o=Array.isArray(e);if(II(e)||o)for(const o in e)Array.isArray(e[o])||II(e[o])&&!dj(e[o])?(t[o]=Array.isArray(e[o])?[]:{},qj(e[o],t[o])):$I(e[o])||(t[o]=!0);return t}function Gj(e,t,o){const r=Array.isArray(e);if(II(e)||r)for(const r in e)Array.isArray(e[r])||II(e[r])&&!dj(e[r])?zI(t)||Bj(o[r])?o[r]=Array.isArray(e[r])?qj(e[r],[]):{...qj(e[r])}:Gj(e[r],$I(t)?{}:t[r],o[r]):o[r]=!Fj(e[r],t[r]);return o}var Xj=(e,t)=>Gj(e,t,qj(t)),Kj=(e,{valueAsNumber:t,valueAsDate:o,setValueAs:r})=>zI(e)?e:t?""===e||$I(e)?NaN:+e:o&&cj(e)?new Date(e):r?r(e):e;function Yj(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Sj(t)?t.files:Cj(t)?Pj(e.refs).value:Hj(t)?[...t.selectedOptions].map((({value:e})=>e)):MI(t)?Rj(e.refs).value:Kj(zI(t.value)?e.ref.value:t.value,e)}var Zj=e=>zI(e)?void 0:Ej(e)?e.source:II(e)?Ej(e.value)?e.value.source:e.value:e;function Jj(e,t,o){const r=VI(e,o);if(r||xj(o))return{error:r,name:o};const n=o.split(".");for(;n.length;){const r=n.join("."),i=VI(t,r),a=VI(e,r);if(i&&!Array.isArray(i)&&o!==r)return{name:o};if(a&&a.type)return{name:r,error:a};n.pop()}return{name:o}}const Qj={mode:UI,reValidateMode:HI,shouldFocusError:!0};function eA(e={}){let t,o={...Qj,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},n={},i=Aj(o.defaultValues)||{},a=o.shouldUnregister?{}:Aj(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,p={};const u={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:_j(),array:_j(),state:_j()},f=Dj(o.mode),m=Dj(o.reValidateMode),h=o.criteriaMode===GI,x=async e=>{let t=!1;return u.isValid&&(t=o.resolver?nj((await y()).errors):await w(n,!0),e||t===r.isValid||(r.isValid=t,d.state.next({isValid:t}))),t},b=(e,t,o,r)=>{const l=VI(n,e);if(l){const n=VI(a,e,zI(o)?VI(i,e):o);zI(n)||r&&r.defaultChecked||t?vj(a,e,t?n:Yj(l._f)):T(e,n),s.mount&&x()}},v=(e,t,o,n,a)=>{let s=!1;const l={name:e},c=VI(r.touchedFields,e);if(u.isDirty){const e=r.isDirty;r.isDirty=l.isDirty=O(),s=e!==l.isDirty}if(u.dirtyFields&&(!o||n)){const o=VI(r.dirtyFields,e);Fj(VI(i,e),t)?Vj(r.dirtyFields,e):vj(r.dirtyFields,e,!0),l.dirtyFields=r.dirtyFields,s=s||o!==VI(r.dirtyFields,e)}return o&&!c&&(vj(r.touchedFields,e,o),l.touchedFields=r.touchedFields,s=s||u.touchedFields&&c!==o),s&&a&&d.state.next(l),s?l:{}},g=async(o,n,i,a)=>{const s=VI(r.errors,o),l=u.isValid&&r.isValid!==n;var f;if(e.delayError&&i?(f=()=>((e,t)=>{vj(r.errors,e,t),d.state.next({errors:r.errors})})(o,i),t=e=>{clearTimeout(c),c=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,i?vj(r.errors,o,i):Vj(r.errors,o)),(i?!Fj(s,i):s)||!nj(a)||l){const e={...a,...l?{isValid:n}:{},errors:r.errors,name:o};r={...r,...e},d.state.next(e)}p[o]--,u.isValidating&&!Object.values(p).some((e=>e))&&(d.state.next({isValidating:!1}),p={})},y=async e=>o.resolver?await o.resolver({...a},o.context,((e,t,o,r)=>{const n={};for(const o of e){const e=VI(t,o);e&&vj(n,o,e._f)}return{criteriaMode:o,names:[...e],fields:n,shouldUseNativeValidation:r}})(e||l.mount,n,o.criteriaMode,o.shouldUseNativeValidation)):{},w=async(e,t,n={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),c=await Ij(s,VI(a,e.name),h,o.shouldUseNativeValidation,i);if(c[e.name]&&(n.valid=!1,t))break;!t&&(VI(c,e.name)?i?wj(r.errors,c,e.name):vj(r.errors,e.name,c[e.name]):Vj(r.errors,e.name))}i&&await w(i,t,n)}}return n.valid},O=(e,t)=>(e&&t&&vj(a,e,t),!Fj(R(),i)),S=(e,t,o)=>{const r={...s.mount?a:zI(t)?i:cj(e)?{[e]:t}:t};return pj(e,l,r,o)},T=(e,t,o={})=>{const r=VI(n,e);let i=t;if(r){const o=r._f;o&&(!o.disabled&&vj(a,e,Kj(t,o)),i=jj&&Wj(o.ref)&&$I(t)?"":t,Hj(o.ref)?[...o.ref.options].forEach((e=>e.selected=i.includes(e.value))):o.refs?MI(o.ref)?o.refs.length>1?o.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):o.refs[0]&&(o.refs[0].checked=!!i):o.refs.forEach((e=>e.checked=e.value===i)):Sj(o.ref)?o.ref.value="":(o.ref.value=i,o.ref.type||d.watch.next({name:e})))}(o.shouldDirty||o.shouldTouch)&&v(e,i,o.shouldTouch,o.shouldDirty,!0),o.shouldValidate&&N(e)},C=(e,t,o)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=VI(n,a);!l.array.has(e)&&Bj(i)&&(!s||s._f)||PI(i)?T(a,i,o):C(a,i,o)}},E=(e,t,o={})=>{const s=VI(n,e),c=l.array.has(e),p=Aj(t);vj(a,e,p),c?(d.array.next({name:e,values:a}),(u.isDirty||u.dirtyFields)&&o.shouldDirty&&(r.dirtyFields=Xj(i,a),d.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:O(e,p)}))):!s||s._f||$I(p)?T(e,p,o):C(e,p,o),yj(e,l)&&d.state.next({}),d.watch.next({name:e})},k=async e=>{const i=e.target;let s=i.name;const c=VI(n,s);if(c){let b,w;const O=i.type?Yj(c._f):jI(e),S=e.type===_I||e.type===BI,T=!((u=c._f).mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate)||o.resolver||VI(r.errors,s)||c._f.deps)||((e,t,o,r,n)=>!n.isOnAll&&(!o&&n.isOnTouch?!(t||e):(o?r.isOnBlur:n.isOnBlur)?!e:!(o?r.isOnChange:n.isOnChange)||e))(S,VI(r.touchedFields,s),r.isSubmitted,m,f),C=yj(s,l,S);vj(a,s,O),S?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);const E=v(s,O,S,!1),k=!nj(E)||C;if(!S&&d.watch.next({name:s,type:e.type}),T)return k&&d.state.next({name:s,...C?{}:E});if(!S&&C&&d.state.next({}),p[s]=(p[s],1),d.state.next({isValidating:!0}),o.resolver){const{errors:e}=await y([s]),t=Jj(r.errors,n,s),o=Jj(e,n,t.name||s);b=o.error,s=o.name,w=nj(e)}else b=(await Ij(c,VI(a,s),h,o.shouldUseNativeValidation))[s],w=await x(!0);c._f.deps&&N(c._f.deps),g(s,w,b,E)}var u},N=async(e,t={})=>{let i,a;const s=aj(e);if(d.state.next({isValidating:!0}),o.resolver){const t=await(async e=>{const{errors:t}=await y();if(e)for(const o of e){const e=VI(t,o);e?vj(r.errors,o,e):Vj(r.errors,o)}else r.errors=t;return t})(zI(e)?e:s);i=nj(t),a=e?!s.some((e=>VI(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=VI(n,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&x()):a=i=await w(n);return d.state.next({...!cj(e)||u.isValid&&i!==r.isValid?{}:{name:e},...o.resolver?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&gj(n,(e=>VI(r.errors,e)),e?s:l.mount),a},R=e=>{const t={...i,...s.mount?a:{}};return zI(e)?t:cj(e)?VI(t,e):e.map((e=>VI(t,e)))},M=(e,t)=>({invalid:!!VI((t||r).errors,e),isDirty:!!VI((t||r).dirtyFields,e),isTouched:!!VI((t||r).touchedFields,e),error:VI((t||r).errors,e)}),P=(e,t={})=>{for(const s of e?aj(e):l.mount)l.mount.delete(s),l.array.delete(s),VI(n,s)&&(t.keepValue||(Vj(n,s),Vj(a,s)),!t.keepError&&Vj(r.errors,s),!t.keepDirty&&Vj(r.dirtyFields,s),!t.keepTouched&&Vj(r.touchedFields,s),!o.shouldUnregister&&!t.keepDefaultValue&&Vj(i,s));d.watch.next({}),d.state.next({...r,...t.keepDirty?{isDirty:O()}:{}}),!t.keepIsValid&&x()},$=(e,t={})=>{let r=VI(n,e);const c=Oj(t.disabled);return vj(n,e,{_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?c&&vj(a,e,t.disabled?void 0:VI(a,e,Yj(r._f))):b(e,!0,t.value),{...c?{disabled:t.disabled}:{},...o.shouldUseNativeValidation?{required:!!t.required,min:Zj(t.min),max:Zj(t.max),minLength:Zj(t.minLength),maxLength:Zj(t.maxLength),pattern:Zj(t.pattern)}:{},name:e,onChange:k,onBlur:k,ref:a=>{if(a){$(e,t),r=VI(n,e);const o=zI(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>Cj(e)||MI(e))(o),l=r._f.refs||[];if(s?l.find((e=>e===o)):o===r._f.ref)return;vj(n,e,{_f:{...r._f,...s?{refs:[...l.filter(Uj),o,...Array.isArray(VI(i,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),b(e,!1,void 0,o)}else r=VI(n,e,{}),r._f&&(r._f.mount=!1),(o.shouldUnregister||t.shouldUnregister)&&(!AI(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:$,unregister:P,getFieldState:M,_executeSchema:y,_getWatch:S,_getDirty:O,_updateValid:x,_removeUnmounted:()=>{for(const e of l.unMount){const t=VI(n,e);t&&(t._f.refs?t._f.refs.every((e=>!Uj(e))):!Uj(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],o,l,c=!0,p=!0)=>{if(l&&o){if(s.action=!0,p&&Array.isArray(VI(n,e))){const t=o(VI(n,e),l.argA,l.argB);c&&vj(n,e,t)}if(u.errors&&p&&Array.isArray(VI(r.errors,e))){const t=o(VI(r.errors,e),l.argA,l.argB);c&&vj(r.errors,e,t),((e,t)=>{!DI(VI(e,t)).length&&Vj(e,t)})(r.errors,e)}if(u.touchedFields&&p&&Array.isArray(VI(r.touchedFields,e))){const t=o(VI(r.touchedFields,e),l.argA,l.argB);c&&vj(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=Xj(i,a)),d.state.next({isDirty:O(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else vj(a,e,t)},_getFieldArray:t=>DI(VI(s.mount?a:i,t,e.shouldUnregister?VI(i,t,[]):[])),_subjects:d,_proxyFormState:u,get _fields(){return n},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return o},set _options(e){o={...o,...e}}},trigger:N,register:$,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,c=Aj(a);d.state.next({isSubmitting:!0});try{if(o.resolver){const{errors:e,values:t}=await y();r.errors=e,c=t}else await w(n);nj(r.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(c,i)):(t&&await t({...r.errors},i),o.shouldFocusError&&gj(n,(e=>VI(r.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{r.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:nj(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>uj(e)?d.watch.subscribe({next:o=>e(S(void 0,t),o)}):S(e,t,!0),setValue:E,getValues:R,reset:(t,o={})=>{const c=t||i,p=Aj(c),f=t&&!nj(t)?p:i;if(o.keepDefaultValues||(i=c),!o.keepValues){if(o.keepDirtyValues)for(const e of l.mount)VI(r.dirtyFields,e)?vj(f,e,VI(a,e)):E(e,VI(f,e));else{if(jj&&zI(t))for(const e of l.mount){const t=VI(n,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(Wj(e)){e.closest("form").reset();break}}catch(e){}}}n={}}a=e.shouldUnregister?o.keepDefaultValues?Aj(i):{}:p,d.array.next({values:f}),d.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!o.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:o.keepSubmitCount?r.submitCount:0,isDirty:o.keepDirty||o.keepDirtyValues?r.isDirty:!(!o.keepDefaultValues||Fj(t,i)),isSubmitted:!!o.keepIsSubmitted&&r.isSubmitted,dirtyFields:o.keepDirty||o.keepDirtyValues?r.dirtyFields:o.keepDefaultValues&&t?Xj(i,t):{},touchedFields:o.keepTouched?r.touchedFields:{},errors:o.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{VI(n,e)&&(zI(t.defaultValue)?E(e,VI(i,e)):(E(e,t.defaultValue),vj(i,e,t.defaultValue)),t.keepTouched||Vj(r.touchedFields,e),t.keepDirty||(Vj(r.dirtyFields,e),r.isDirty=t.defaultValue?O(e,VI(i,e)):O()),t.keepError||(Vj(r.errors,e),u.isValid&&x()),d.state.next({...r}))},clearErrors:e=>{e?aj(e).forEach((e=>Vj(r.errors,e))):r.errors={},d.state.next({errors:r.errors})},unregister:P,setError:(e,t,o)=>{const i=(VI(n,e,{_f:{}})._f||{}).ref;vj(r.errors,e,{...t,ref:i}),d.state.next({name:e,errors:r.errors,isValid:!1}),o&&o.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const o=VI(n,e)._f,r=o.refs?o.refs[0]:o.ref;r.focus(),t.shouldSelect&&r.select()},getFieldState:M}}function tA(e={}){const t=u.useRef(),[o,r]=u.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...eA(e),formState:o};const n=t.current.control,i=u.useCallback((e=>{ij(e,n._proxyFormState,!0)&&(n._formState={...n._formState,...e},r({...n._formState}))}),[n]);return lj({subject:n._subjects.state,callback:i}),u.useEffect((()=>{n._stateFlags.mount||(n._proxyFormState.isValid&&n._updateValid(),n._stateFlags.mount=!0),n._stateFlags.watch&&(n._stateFlags.watch=!1,n._subjects.state.next({})),n._removeUnmounted()})),t.current.formState=rj(o,n._proxyFormState),t.current}var oA,rA,nA,iA,aA,sA,lA,cA,pA,uA,dA,fA,mA,hA,xA,bA,vA,gA,yA,wA,OA,SA,TA,CA,EA,kA,NA,RA=function(t){var r=t.control,n=t.name,i=t.inputProps,a=t.styles,s=t.labelsProps,l=t.defaultValue,c=void 0===l?"":l,p=t.optional,u=t.required,d="password"===i.type,f=b(d),m=f[0],h=f[1],x=i.rightIcon||d?{name:m?"View":"Hide",onClick:function(){return h((function(e){return!e}))}}:void 0,v=d?m?"password":"text":i.type;return r?o(mj,{name:n,control:r,rules:{required:u},defaultValue:c,render:function(t){var r=t.field,n=!!t.fieldState.error;return e(MA,R({style:a},{children:[s&&o(EI,R({},s,{ruleLabel:u?"REQUIRED":p?"OPTIONAL":void 0,isError:n})),o(K,{height:12}),o(oE,R({},i,r,{isError:n,rightIcon:x,type:v}))]}))}}):e(MA,R({style:a},{children:[s&&o(EI,R({},s)),o(K,{height:12}),o(oE,R({},i,{rightIcon:x,type:v}))]}))},MA=r.div(oA||(oA=L([""],[""]))),PA=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},$A=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},LA=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},IA=[{name:"firstName",type:"input",label:"First Name",required:!0,value:"Initial First Name"},{name:"lastName",type:"input",label:"Last Name",required:!0},{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"number",type:"input",label:"Phone Number",optional:!0},{name:"addressLine1",type:"input",label:"Address Line 1",optional:!0},{name:"addressLine2",type:"input",label:"Address Line 2",optional:!0,tooltip:"This is address line 2"},{name:"city",type:"input",label:"City",optional:!0},{name:"state",type:"select",label:"State",options:[{id:"USA",label:"USA"},{id:"UKRAINE",label:"Ukraine"}],optional:!0},{name:"zip",type:"input",label:"Zip Code",optional:!0},{name:"consent",type:"checkbox",label:"Confirm your consent",checkboxLabel:"I have read and I understand the provided information and have had the opportunity to ask questions. I understand that my participation is voluntary and that I am free to withdraw at any time, without giving a reason and without cost. I understand that I will be given a copy of this consent form."}],jA=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0},{name:"confirmPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],AA=[{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"password",type:"input",inputType:"password",label:"Password",required:!0},{name:"rememberMe",type:"checkbox",checkboxLabel:"Remember me"}],DA=function(r){var n=r.field,i=r.spacer,a=void 0===i?0:i,s=r.control,l=null,c=n.type,p=n.name,u=void 0===p?"":p,d=n.placeholder,f=n.tooltip,m=n.label,h=void 0===m?"":m,x=n.required,b=n.optional;switch(n.type){case"input":var v=n.inputType,g=n.maxLength;l=o(RA,{name:u.toString(),control:s,inputProps:{placeholder:d||PA(c,h),type:v,maxLength:g},labelsProps:{label:h,tooltipText:f},required:x,optional:b});break;case"select":var y=n.options;l=o(VA,{selectProps:{placeholder:d||PA(c,h),options:y},name:u.toString(),control:s,labelsProps:{label:h,tooltipText:f},required:x,optional:b});break;case"checkbox":var w=n.checkboxLabel;l=e(t,{children:[!!h&&e(t,{children:[o(FC,R({variant:"L"},{children:h})),o(K,{height:20})]}),o(zA,{name:u.toString(),control:s,checkboxProps:{label:w}})]})}return e(t,{children:[!!a&&o(K,{height:a}),l]})},zA=function(e){var t=e.control,r=e.name,n=e.checkboxProps,i=e.defaultValue;return o(mj,{name:r,control:t,defaultValue:void 0!==i&&i,render:function(e){var t=e.field,r=t.onChange,i=t.value;return o(WC,R({},n,{value:i,onClick:r}))}})},VA=function(t){var r=t.selectProps,n=t.name,i=void 0===n?"":n,a=t.defaultValue,s=void 0===a?"":a,l=t.optional,c=t.required,p=t.control,u=t.styles,d=t.labelsProps;return p?o(mj,{name:i,control:p,rules:{required:c},defaultValue:s,render:function(t){var n=t.field,i=!!t.fieldState.error;return e(_A,R({style:u},{children:[d&&o(EI,R({},d,{ruleLabel:c?"REQUIRED":l?"OPTIONAL":void 0,isError:i})),o(K,{height:12}),o(eE,R({},r,n,{isError:i}))]}))}}):e(_A,R({style:u},{children:[d&&o(EI,R({},d)),o(K,{height:12}),o(eE,R({},r))]}))},_A=r.div(rA||(rA=L([""],[""]))),BA=function(r){var n=r.rules,i=r.value,a=r.isSubmitted,s=void 0===a||a,l=r.label;return e(t,{children:[l&&e(t,{children:[o(WA,R({variant:"S"},{children:l})),o(K,{height:14})]}),o(FA,{children:n.map((function(e,t){return o(dE,{status:s?e.validate(i)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},t)}))})]})},FA=r.div(nA||(nA=L(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),WA=r(FC)(iA||(iA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),HA=r(FC).attrs({variant:"M"})(aA||(aA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),UA=n(sA||(sA=L(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),HA,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),qA=n(lA||(lA=L(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),HA,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),GA=r.div(pA||(pA=L(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.isActive;return n(cA||(cA=L(["\n padding: 24px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: 24px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.M,r.S,o.gray4,o.gray2,i?UA:qA)})),XA=r.div(dA||(dA=L(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(e){var t=e.theme.sizes,o=e.spacing;return n(uA||(uA=L(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),t[o])})),KA=function(t){var r=t.iconName,n=t.infoText,i=t.isActive,a=t.onClick,s=t.value;return e(GA,R({onClick:function(){return null==a?void 0:a(s)},isActive:i},{children:[o(BC,{name:r}),o(K,{height:12}),o(HA,{children:n})]}))},YA=function(e){var t=e.cards,r=e.handleChange,n=e.spacing,i=void 0===n?"M":n,a=e.initialValue,s=b(a),l=s[0],c=s[1],p=function(e){var t=e===l?void 0:e;null==r||r(t),c(t)};return o(XA,R({spacing:i},{children:t.map((function(e){return o(KA,R({},e,{isActive:l===e.value,onClick:p}),e.value)}))}))},ZA=function(r){var n=r.backgroundImage,i=r.button,a=r.title,s=r.description;return e(JA,{children:[o(eD,R({},n)),e(QA,{children:[o(tD,R({variant:"2XL"},{children:a})),!!s&&o(oD,R({variant:"M"},{children:s})),!!i&&e(t,{children:[o(K,{height:22}),o(ee,R({},i,{fullWidth:!!i.fullWidth}))]})]})]})},JA=r.div(fA||(fA=L(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"]))),QA=r.div(hA||(hA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes;return n(mA||(mA=L(["\n z-index: 1;\n padding: ","px ","px;\n "],["\n z-index: 1;\n padding: ","px ","px;\n "])),2.5*t["2XL"],t.XL+2*t.S)})),eD=r(lE)(xA||(xA=L(["\n object-fit: cover;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 0;\n"],["\n object-fit: cover;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 0;\n"]))),tD=r(FC)(bA||(bA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.white})),oD=r(FC)(vA||(vA=L(["\n color: ",";\n margin-top: 6px;\n"],["\n color: ",";\n margin-top: 6px;\n"])),(function(e){return e.theme.colors.white})),rD=oe.sizes.L,nD={top:{borderBottomLeftRadius:rD,borderBottomRightRadius:rD},bottom:{borderTopRightRadius:rD,borderTopLeftRadius:rD},left:{borderBottomRightRadius:rD,borderTopRightRadius:rD},right:{borderTopLeftRadius:rD,borderBottomLeftRadius:rD}},iD=r(Qm)(yA||(yA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,o=e.anchor;return n(gA||(gA=L(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n padding: ","px;\n ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n padding: ","px;\n ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),t["2XL"],nD[o])})),aD=r.div(OA||(OA=L(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,o=t.sizes,r=t.colors;return n(wA||(wA=L(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n &:hover {\n svg path {\n stroke: ",";\n }\n }\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n &:hover {\n svg path {\n stroke: ",";\n }\n }\n "])),U(o.L),o["2XL"],o["2XL"],r.gray1)})),sD=function(r){var n=r.children,i=M(r,["children"]);return o(iD,R({},i,{children:e(t,{children:[n,o(aD,R({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:o(BC,{size:32,name:"Close"})}))]})}))},lD=function(r){var n=r.title,i=r.icon,a=r.description,s=r.linkButton;return e(cD,{children:[!!i&&e(t,{children:[o(BC,{name:i}),o(K,{width:"XL"})]}),e(pD,{children:[o(FC,R({variant:"XL"},{children:n})),!!a&&e(t,{children:[o(K,{height:14}),o(FC,R({variant:"M"},{children:a}))]}),!!s&&e(t,{children:[o(K,{height:14}),o(uD,R({},s))]})]})]})},cD=r.div(SA||(SA=L(["\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n"]))),pD=r.div(TA||(TA=L(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"]))),uD=r(pE)(CA||(CA=L(["\n text-decoration-line: underline;\n"],["\n text-decoration-line: underline;\n"]))),dD=function(r){var n=r.title,i=r.onItemPress,a=r.options;return e(fD,{children:[!!n&&e(t,{children:[o(OI,R({padding:"M"},{children:o(FC,R({variant:"XL"},{children:n}))})),o(TI,{marginVertical:"M"})]}),o(OI,R({padding:"M"},{children:o(mD,{children:null==a?void 0:a.map((function(e){var t=e.id,r=e.title,n=e.onClick;return o(te,R({activeOpacity:.3,onClick:function(){null==i||i(t),null==n||n(t)}},{children:o(FC,R({variant:"M",color:"gray2"},{children:r}))}),t)}))})}))]})},fD=r.div(kA||(kA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.sizes,r=t.colors;return n(EA||(EA=L(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,o.XL,o.M,o.XL,o.S)})),mD=r.div(NA||(NA=L(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),hD={adjustX:1,adjustY:1},xD=[0,0],bD={topLeft:{points:["bl","tl"],overflow:hD,offset:[0,-4],targetOffset:xD},topCenter:{points:["bc","tc"],overflow:hD,offset:[0,-4],targetOffset:xD},topRight:{points:["br","tr"],overflow:hD,offset:[0,-4],targetOffset:xD},bottomLeft:{points:["tl","bl"],overflow:hD,offset:[0,4],targetOffset:xD},bottomCenter:{points:["tc","bc"],overflow:hD,offset:[0,4],targetOffset:xD},bottomRight:{points:["tr","br"],overflow:hD,offset:[0,4],targetOffset:xD}},vD={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=vD.F1&&t<=vD.F12)return!1;switch(t){case vD.ALT:case vD.CAPS_LOCK:case vD.CONTEXT_MENU:case vD.CTRL:case vD.DOWN:case vD.END:case vD.ESC:case vD.HOME:case vD.INSERT:case vD.LEFT:case vD.MAC_FF_META:case vD.META:case vD.NUMLOCK:case vD.NUM_CENTER:case vD.PAGE_DOWN:case vD.PAGE_UP:case vD.PAUSE:case vD.PRINT_SCREEN:case vD.RIGHT:case vD.SHIFT:case vD.UP:case vD.WIN_KEY:case vD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=vD.ZERO&&e<=vD.NINE)return!0;if(e>=vD.NUM_ZERO&&e<=vD.NUM_MULTIPLY)return!0;if(e>=vD.A&&e<=vD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case vD.SPACE:case vD.QUESTION_MARK:case vD.NUM_PLUS:case vD.NUM_MINUS:case vD.NUM_PERIOD:case vD.NUM_DIVISION:case vD.SEMICOLON:case vD.DASH:case vD.EQUALS:case vD.COMMA:case vD.PERIOD:case vD.SLASH:case vD.APOSTROPHE:case vD.SINGLE_QUOTE:case vD.OPEN_SQUARE_BRACKET:case vD.BACKSLASH:case vD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gD=function(e){return+setTimeout(e,16)},yD=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(gD=function(e){return window.requestAnimationFrame(e)},yD=function(e){return window.cancelAnimationFrame(e)});var wD=0,OD=new Map;function SD(e){OD.delete(e)}function TD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=wD+=1;function r(t){if(0===t)SD(o),e();else{var n=gD((function(){r(t-1)}));OD.set(o,n)}}return r(t),o}TD.cancel=function(e){var t=OD.get(e);return SD(t),yD(t)};var CD=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),o=t.width,r=t.height;if(o||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=n.width,a=n.height;if(i||a)return!0}return!1};function ED(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(CD(e)){var o=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(o)||e.isContentEditable||"a"===o&&!!e.getAttribute("href"),n=e.getAttribute("tabindex"),i=Number(n),a=null;return n&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var kD=vD.ESC,ND=vD.TAB;function RD(e){var t=e.visible,o=e.setTriggerVisible,r=e.triggerRef,n=e.onVisibleChange,i=e.autoFocus,a=p.useRef(!1),s=function(){var e,i,a,s;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),o(!1),"function"==typeof n&&n(!1))},l=function(){var e,t,o,n,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=AL(e.querySelectorAll("*")).filter((function(e){return ED(e,t)}));return ED(e,t)&&o.unshift(e),o}(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(o=t.current)||void 0===o||null===(n=o.getElement)||void 0===n?void 0:n.call(o)),s=i[0];return!!(null==s?void 0:s.focus)&&(s.focus(),a.current=!0,!0)},c=function(e){switch(e.keyCode){case kD:s();break;case ND:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};p.useEffect((function(){return t?(window.addEventListener("keydown",c),i&&TD(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}var MD=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function PD(e,t){var o=e.arrow,r=void 0!==o&&o,n=e.prefixCls,i=void 0===n?"rc-dropdown":n,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=void 0===c?"bottomLeft":c,d=e.placements,f=void 0===d?bD:d,m=e.getPopupContainer,h=e.showAction,x=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,g=e.visible,y=e.trigger,w=void 0===y?["hover"]:y,O=e.autoFocus,S=vE(e,MD),T=UE(p.useState(),2),C=T[0],E=T[1],k="visible"in e?g:C,N=p.useRef(null);p.useImperativeHandle(t,(function(){return N.current})),RD({visible:k,setTriggerVisible:E,triggerRef:N,onVisibleChange:e.onVisibleChange,autoFocus:O});var R,M,P,$,L=function(){var t,o="function"==typeof(t=e.overlay)?t():t;return p.createElement(p.Fragment,null,r&&p.createElement("div",{className:"".concat(i,"-arrow")}),o)},I=x;return I||-1===w.indexOf("contextMenu")||(I=["click"]),p.createElement(fL,bE(bE({builtinPlacements:f},S),{},{prefixCls:i,ref:N,popupClassName:BE(b,hE({},"".concat(i,"-show-arrow"),r)),popupStyle:v,action:w,showAction:h,hideAction:I||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:k,stretch:function(){var t=e.minOverlayWidthMatchTrigger,o=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!o}()?"minWidth":"",popup:"function"==typeof e.overlay?L:L(),onPopupVisibleChange:function(t){var o=e.onVisibleChange;E(t),"function"==typeof o&&o(t)},onPopupClick:function(t){var o=e.onOverlayClick;E(!1),o&&o(t)},getPopupContainer:m}),(M=e.children,P=M.props?M.props:{},$=BE(P.className,void 0!==(R=e.openClassName)?R:"".concat(i,"-open")),k&&M?p.cloneElement(M,{className:$}):M))}var $D,LD,ID,jD,AD,DD,zD,VD,_D,BD,FD,WD,HD,UD,qD,GD,XD,KD,YD,ZD,JD,QD,ez,tz,oz,rz,nz,iz,az,sz,lz,cz,pz=p.forwardRef(PD),uz=function(t){var r=t.avatarProps,n=t.menuConfig,i=b(!1),a=i[0],s=i[1],l=o(dD,R({},n,{onItemPress:function(){return s(!1)}}));return o(pz,R({overlay:l,onVisibleChange:s,visible:a,trigger:"click",animation:"slide-up"},{children:e(dz,{children:[o(xI,R({},r)),o(K,{width:12}),o(fz,R({isOpen:a},{children:o(BC,{size:16,name:"CaretDown"})}))]})}))},dz=r(te)($D||($D=L(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),fz=r.div(ID||(ID=L(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(e){var t=e.isOpen,o=e.theme,r=o.colors,i=o.sizes;return t&&n(LD||(LD=L(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),i.XS,r.gray4)})),mz=r(FC).attrs({variant:"L"})(AD||(AD=L(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(e){var t=e.theme.colors;return n(jD||(jD=L(["\n color: ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n &:hover {\n color: ",";\n }\n "])),t.gray2,t.gray1)})),hz=r.div(VD||(VD=L(["\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n ",";\n"],["\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n ",";\n"])),(function(e){var t=e.theme.colors,o=e.isActive;return e.disabled?n(DD||(DD=L(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),mz,t.gray3):o?n(zD||(zD=L(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mz,t.gray1):""})),xz=r.div(BD||(BD=L(["\n transition: 0.25s;\n margin-left: 10px;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(e){var t=e.theme.colors,o=e.isActive,r=e.disabled;return n(_D||(_D=L(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),o?"rotate(180deg)":"rotate(0deg)",r?t.gray3:t.gray1)})),bz=u.forwardRef((function(t,r){var n=t.options,i=t.onClick,a=t.text,s=t.tabKey,l=t.onOptionClick,c=M(t,["options","onClick","text","tabKey","onOptionClick"]),p=b(!1),u=p[0],d=p[1],f=g(null);w(r,(function(){return f.current}));var m=!!(null==n?void 0:n.length),h=o(dD,{options:n,onItemPress:function(e){null==l||l(e),d(!1)}});return o(pz,R({overlay:h,onVisibleChange:m?d:void 0,visible:u,trigger:"click",animation:"slide-up"},{children:e(hz,R({ref:f},c,{onClick:function(){null==i||i(s),m&&d(!0)}},{children:[o(mz,{children:a}),m&&o(xz,R({disabled:c.disabled,isActive:u},{children:o(BC,{name:"CaretDown"})}))]}))}))})),vz=r.div(FD||(FD=L(["\n display: flex;\n column-gap: ","px;\n width: fit-content;\n"],["\n display: flex;\n column-gap: ","px;\n width: fit-content;\n"])),(function(e){var t=e.spacing;return e.theme.sizes[t]})),gz=r.div(WD||(WD=L(["\n display: flex;\n flex-direction: column;\n width: fit-content;\n position: relative;\n"],["\n display: flex;\n flex-direction: column;\n width: fit-content;\n position: relative;\n"]))),yz=r.div(UD||(UD=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.width,a=e.left;return n(HD||(HD=L(["\n position: absolute;\n bottom: 0;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: 0;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),a,i,r.XS,o.gray4,r.XS)})),wz=function(t){var r=t.tabs,n=t.spacing,i=void 0===n?"L":n,a=t.activeTabKey,s=t.onTabChange,l=b(a),c=l[0],p=l[1],u=function(e){var t=b(0),o=t[0],r=t[1],n=b(0),i=n[0],a=n[1],s=b(0),l=s[0],c=s[1],p=g([]);return v((function(){var e=function(){var e,t,r=p.current[o];c(null!==(e=null==r?void 0:r.offsetLeft)&&void 0!==e?e:0),a(null!==(t=null==r?void 0:r.clientWidth)&&void 0!==t?t:0)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{setActiveTabIndex:r,tabUnderlineLeft:l,tabUnderlineWidth:i,tabsRef:p}}(c),d=u.tabsRef,f=u.setActiveTabIndex,m=u.tabUnderlineLeft,h=u.tabUnderlineWidth;return e(gz,{children:[o(vz,R({spacing:i},{children:r.map((function(e,t){return o(bz,R({ref:function(e){return d.current[t]=e}},e,{isActive:e.tabKey===c,onClick:function(){var o;o=null==e?void 0:e.tabKey,null==s||s(o),p(o),f(t)}}),e.tabKey)}))})),o(K,{height:12}),!!c&&o(yz,{left:m,width:h})]})},Oz=function(e){var t={text:e.label,validate:function(){return!0}},o=e.rule,r=Sz(o);if(r||Tz(o)){var n=function(e,t){return function(o){return void 0===o&&(o=0),e?o<=t:o>=t}}(r,r?o.MAX:o.MIN);switch(o.type){case"COUNT":t.validate=function(e){return n(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return n(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return n(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return n(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)}}}return t},Sz=function(e){return!!(null==e?void 0:e.MAX)},Tz=function(e){return!!(null==e?void 0:e.MIN)},Cz=function(r){var n=r.logoUrl,i=r.fields,a=r.validations,s=r.onBack,l=r.onSubmit,p=r.isLoading,u=c().sizes,d=a.map(Oz),f=tA({defaultValues:$A(i),mode:"onChange"}),m=f.control,h=f.reset,x=f.handleSubmit,b=f.formState,v=f.getValues,g=(0,f.watch)("password"),y=T((function(){var e=d.every((function(e){return e.validate(g)}));return b.isSubmitted?e&&LA(b):LA(b)}),[a,b]);return e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(kz,{children:"Set your account password."}),o(K,{height:14}),o(Ez,{children:"Set the password for your account in the Zeal Design System."}),i.map((function(e){return o(DA,{control:m,field:e,spacer:u.L},e.name.toString())})),o(K,{height:30}),o(BA,{value:g,isSubmitted:b.isSubmitted,rules:d}),e(Nz,{children:[o(ee,{onClick:x((function(){if(LA(b)&&d.every((function(e){return e.validate(g)}))){var e=v();e.password===e.confirmPassword?l(e):hI({message:"Passwords are not match",duration:1,type:"error"})}})),text:"Create password",variant:"primary",disabled:!b.isValid||!y,loading:p}),o(K,{width:"M"}),o(ee,{onClick:function(){s(),h()},text:"Back",variant:"secondary"})]})]})},Ez=r(FC).attrs({variant:"M"})(qD||(qD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),kz=r(FC).attrs({variant:"2XL"})(GD||(GD=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.indigo})),Nz=r.div(XD||(XD=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 30px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 30px;\n"]))),Rz=function(r){var n=r.logoUrl,i=r.fields,a=r.onSubmit,s=r.onLinkButtonClick,l=r.isLoading,p=c(),u=p.colors,d=p.sizes,f=tA({defaultValues:$A(i),mode:"onChange"}),m=f.control,h=f.handleSubmit,x=f.formState,b=f.getValues;return e(t,{children:[o("img",{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:u.indigo},{children:"Sign up."})),o(K,{height:14}),e(Mz,R({variant:"M"},{children:["Already have an account?",o(Pz,R({onClick:s},{children:"Log in"}))]})),i.map((function(e){return o(DA,{control:m,field:e,spacer:d.L},e.name.toString())})),o(K,{height:d.XL+d.S}),o(ee,{onClick:h((function(){return a(b())})),text:"Sign up",variant:"primary",disabled:!LA(x),loading:l})]})},Mz=r(FC)(KD||(KD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Pz=r(pE)(YD||(YD=L(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),$z=function(e){var t=b(1),o=t[0],r=t[1],n=o+1<=e,i=o-1>=1,a=C((function(t){var n=t instanceof Function?t(o):t;if(!(n>=1&&n<=e))throw new Error("Step not valid");r(n)}),[e,o]);return[o,{goToNextStep:function(){return n&&r((function(e){return e+1}))},goToPrevStep:function(){return i&&r((function(e){return e-1}))},canGoToNextStep:n,canGoToPrevStep:i,setStep:a,reset:function(){return r(1)}}]},Lz=[{iconName:"Mobile",infoText:"Text Message",isActive:!1,value:"sms"},{iconName:"Mail",infoText:"Email",isActive:!1,value:"email"}],Iz={name:"code",label:"Code",type:"input",placeholder:"Enter Six Digit Code",required:!0,tooltip:"Enter the code that was sent to you in the box below.",inputType:"number",maxLength:6},jz=r.div(ZD||(ZD=L(["\n display: flex;\n column-gap: ","px;\n"],["\n display: flex;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.L})),Az=function(r){var n=r.logoUrl,i=r.onSubmit,a=r.onBack,s=r.onNext,l=c(),p=l.colors,u=l.sizes,d=b(),f=d[0],m=d[1],h=b(""),x=h[0],v=h[1],g=tA({defaultValues:{code:x},mode:"onChange"}),y=g.control,w=g.formState,O=g.getValues,S=$z(2),T=S[0],C=S[1],E=C.canGoToNextStep,k=C.canGoToPrevStep,N=C.goToNextStep,M=C.goToPrevStep,L=[o(YA,{handleChange:m,cards:Lz,initialValue:f}),o(DA,{control:y,field:Iz})],I=1===T?!f:!w.isDirty||!w.isValid;return e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:p.indigo},{children:"Two factor authentication."})),o(K,{height:14}),o(FC,R({variant:"M"},{children:"How would you like to receive your code that will be used to authenticate your account?"})),o(K,{height:u.XL}),L[T-1],o(K,{height:u.XL}),e(jz,{children:[o(ee,{disabled:I,onClick:function(){return P(void 0,void 0,void 0,(function(){var e;return $(this,(function(t){return E&&f?(null==s||s(f).then(N),[2]):(e=O(),v(e.code),null==i||i(e),[2])}))}))},text:"Next",variant:"primary"}),o(ee,{onClick:function(){k?M():null==a||a()},text:"Back",variant:"secondary"})]})]})},Dz=function(r){var n=r.logoUrl,i=r.fields,a=r.onSubmit,s=r.onSignUpButtonClick,l=r.isLoading,p=r.twoFactorAuthConfig,u=r.onForgotPasswordButtonClick,d=c(),f=d.colors,m=d.sizes,h=tA({defaultValues:$A(i),mode:"onChange"}),x=h.control,b=h.handleSubmit,v=h.formState,g=h.getValues;return(null==p?void 0:p.twoFactorShow)?o(Az,R({},p.twoFactorAuthProps)):e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:f.indigo},{children:"Log in."})),o(K,{height:14}),e(zz,R({variant:"M"},{children:["Don’t have an account?",o(Vz,R({onClick:s},{children:"Sign up"}))]})),i.map((function(e){return o(DA,{control:x,field:e,spacer:m.L},e.name.toString())})),o(K,{height:"L"}),o(pE,R({onClick:u},{children:"Forgot your password?"})),o(K,{height:m.L+m.XS}),o(ee,{onClick:b((function(){return a(g())})),text:"Log in",variant:"primary",disabled:!LA(v),loading:l})]})},zz=r(FC)(JD||(JD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Vz=r(pE)(QD||(QD=L(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),_z=r.div(ez||(ez=L(["\n width: 100%;\n"],["\n width: 100%;\n"]))),Bz=r(FC).attrs({variant:"XS"})(oz||(oz=L(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),(function(e){var t=e.theme.colors;return n(tz||(tz=L(["\n color: ",";\n :hover {\n color: ",";\n }\n "],["\n color: ",";\n :hover {\n color: ",";\n }\n "])),t.gray2,t.gray1)})),Fz=r.div(nz||(nz=L(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"])),48,(function(e){var t=e.theme,o=t.colors,r=t.sizes;return n(rz||(rz=L(["\n background-color: ",";\n column-gap: ","px;\n "],["\n background-color: ",";\n column-gap: ","px;\n "])),o.gray5,r.M)})),Wz=r.div(iz||(iz=L(["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n"],["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n"])),48),Hz=r.div(az||(az=L(["\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 24px;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 24px;\n"]))),Uz=function(t){var r=t.logoUrl,n=t.links,i=t.onActionButtonClick,a=t.tabs,s=t.withAvatar;return e(_z,{children:[!!(null==n?void 0:n.length)&&o(Fz,{children:n.map((function(e,t){var r=e.text,n=e.href;return o(Bz,R({onClick:function(){return function(e){return window.open(e,"_blank")}(n)}},{children:r}),t)}))}),e(Wz,{children:[o("img",{height:32,src:r,alt:"Header Logo"}),e(Hz,{children:[o(wz,{activeTabKey:"1",spacing:"XL",tabs:a}),s?o(uz,R({},s.props)):o(ee,{onClick:i,fullWidth:!1,text:"Log In or Sign Up"})]})]})]})},qz={name:"email",type:"input",label:"Email Address",placeholder:"Enter Email Address",required:!0,inputType:"email"},Gz=function(r){var n=r.logoUrl,i=r.onBack,a=r.onSubmit,s=r.isLoading,l=tA({defaultValues:{email:""},mode:"onChange"}),c=l.control,p=l.reset,u=l.handleSubmit,d=l.formState;return e(t,{children:[o(lE,{src:n,alt:"App logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:"indigo"},{children:"Forgot your password?"})),o(K,{height:14}),o(FC,R({variant:"M",color:"gray2"},{children:"Enter your email address below. If there is an account in our system associated with that email address, you’ll get an email with password reset instructions."})),o(K,{height:"XL"}),o(DA,{control:c,field:qz}),o(K,{height:30}),e(Xz,{children:[o(ee,{onClick:a?u(a):void 0,variant:"primary",text:"Submit",disabled:!d.isValid||!LA(d),loading:s}),o(K,{width:"M"}),o(ee,{onClick:function(){null==i||i(),p()},text:"Back",variant:"secondary"})]})]})},Xz=r.div(sz||(sz=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Kz=function(r){var n=r.banner,i=r.header,a=r.renderContent;return e(t,{children:[o(Uz,R({},i)),n&&o(ZA,R({},n)),o(Yz,{children:a()})]})},Yz=r.div(lz||(lz=L(["\n padding: 0 ","px;\n margin-top: ","px;\n"],["\n padding: 0 ","px;\n margin-top: ","px;\n"])),(function(e){var t=e.theme.sizes;return t.XL+t.M}),(function(e){return e.theme.sizes.L})),Zz=function(e){var r=e.type,n=e.loginFormConfig,i=e.acquisitionFormConfig,a=e.forgotPasswordConfig,s=e.setPasswordConfig;switch(r){case"sign-up":return o(Rz,R({},i));case"sign-in":return o(Dz,R({},n));case"forgot-password":return o(Gz,R({},a));case"set-password":return o(Cz,R({},s));default:return o(t,{})}},Jz=function(r){var n=r.templateConfig,i=r.drawerContentConfig,a=r.drawerConfig;return e(t,{children:[o(Kz,R({},n)),o(sD,R({anchor:"right"},a,{children:o(Qz,{children:o(Zz,R({},i))})}))]})},Qz=r.div(cz||(cz=L(["\n width: 40vw;\n"],["\n width: 40vw;\n"]))),eV=require("./AppLogo.png"),tV=require("./HomeBannerImage.png");export{Rz as AcquisitionForm,eV as AppLogo,Jz as AuthPage,xI as Avatar,uz as AvatarDropdown,ZA as Banner,ee as Button,WC as Checkbox,zA as CheckboxField,BA as CustomValidation,Kz as DefaultTemplate,TI as Divider,sD as Drawer,EI as FieldLabels,DA as FieldMapper,Gz as ForgotPasswordForm,Uz as Header,tV as HomeBannerImage,OI as HorizontalPadding,BC as Icon,lE as Image,lD as InfoBox,oE as Input,RA as InputField,pE as LinkButton,Dz as LoginForm,dD as MenuItems,eE as Select,VA as SelectField,YA as SelectableCardGroup,Cz as SetPasswordForm,K as Spacer,Z as Spinner,OL as StyleWrapper,wz as TabGroup,FC as TextWrapper,SL as Tooltip,te as TouchableOpacity,Az as TwoFactorAuth,dE as ValidationTag,SI as VerticalPadding,VC as ZealThemeProvider,IA as acquisitionFormMockFields,oe as defaultTheme,PA as getFieldPlaceholder,$A as getInitialValuesFromFields,LA as isFormValid,AA as loginMockFields,jA as setPasswordMockFields,hI as toast,AC as toastStyles,$z as useStep};
|
244
|
+
eL=function(){return e};var e={},t=Object.prototype,o=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,o){return e[t]=o}}function l(e,t,o,r){var n=t&&t.prototype instanceof u?t:u,i=Object.create(n.prototype),a=new S(r||[]);return i._invoke=function(e,t,o){var r="suspendedStart";return function(n,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw i;return C()}for(o.method=n,o.arg=i;;){var a=o.delegate;if(a){var s=y(a,o);if(s){if(s===p)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===r)throw r="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r="executing";var l=c(e,t,o);if("normal"===l.type){if(r=o.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r="completed",o.method="throw",o.arg=l.arg)}}}(e,o,a),i}function c(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function u(){}function d(){}function f(){}var m={};s(m,n,(function(){return this}));var h=Object.getPrototypeOf,x=h&&h(h(T([])));x&&x!==t&&o.call(x,n)&&(m=x);var b=f.prototype=u.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(n,i,a,s){var l=c(e[n],e,i);if("throw"!==l.type){var p=l.arg,u=p.value;return u&&"object"==mE(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){p.value=e,a(p)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function y(e,t){var o=e.iterator[t.method];if(void 0===o){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=c(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function w(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function T(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=f,s(b,"constructor",f),s(f,"constructor",d),d.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(g.prototype),s(g.prototype,i,(function(){return this})),e.AsyncIterator=g,e.async=function(t,o,r,n,i){void 0===i&&(i=Promise);var a=new g(l(t,o,r,n),i);return e.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(b),s(b,a,"Generator"),s(b,n,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function o(){for(;t.length;){var r=t.pop();if(r in e)return o.value=r,o.done=!1,o}return o.done=!0,o}},e.values=T,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(o,r){return a.type="throw",a.arg=e,t.next=o,r&&(t.method="next",t.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(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&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),O(o),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var r=o.completion;if("throw"===r.type){var n=r.arg;O(o)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),p}},e}function tL(e,t,o,r,n,i,a){try{var s=e[i](a),l=s.value}catch(e){return void o(e)}s.done?t(l):Promise.resolve(l).then(r,n)}function oL(e){return function(){var t=this,o=arguments;return new Promise((function(r,n){var i=e.apply(t,o);function a(e){tL(i,r,n,a,s,"next",e)}function s(e){tL(i,r,n,a,s,"throw",e)}a(void 0)}))}}var rL=["measure","alignPre","align",null,"motion"],nL=p.forwardRef((function(e,t){var o=e.visible,r=e.prefixCls,n=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,f=e.point,m=e.getRootDomNode,h=e.getClassNameFromAlign,x=e.onAlign,y=e.onMouseEnter,w=e.onMouseLeave,O=e.onMouseDown,S=e.onTouchStart,T=e.onClick,C=g(),E=g(),k=UE(b(),2),N=k[0],R=k[1],M=function(e){var t=UE(p.useState({width:0,height:0}),2),o=t[0],r=t[1],n=p.useMemo((function(){var t={};if(e){var r=o.width,n=o.height;-1!==e.indexOf("height")&&n?t.height=n:-1!==e.indexOf("minHeight")&&n&&(t.minHeight=n),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,o]);return[n,function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),P=UE(M,2),$=P[0],L=P[1];var I=function(e,t){var o=UE(sk(null),2),r=o[0],n=o[1],i=g();function a(e){n(e,!0)}function s(){PE.cancel(i.current)}return v((function(){a("measure")}),[e]),v((function(){"measure"===r&&t(),r&&(i.current=PE(oL(eL().mark((function e(){var t,o;return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=rL.indexOf(r),(o=rL[t+1])&&-1!==t&&a(o);case 3:case"end":return e.stop()}}),e)})))))}),[r]),v((function(){return function(){s()}}),[]),[r,function(e){s(),i.current=PE((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(o,(function(){l&&L(m())})),j=UE(I,2),A=j[0],D=j[1],z=UE(b(0),2),V=z[0],_=z[1],B=g();function F(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function W(e,t){var o=h(t);N!==o&&R(o),_((function(e){return e+1})),"align"===A&&(null==x||x(e,t))}Q$((function(){"alignPre"===A&&_(0)}),[A]),Q$((function(){"align"===A&&(V<2?F():D((function(){var e;null===(e=B.current)||void 0===e||e.call(B)})))}),[V]);var H=bE({},Ok(e));function U(){return new Promise((function(e){B.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=H[e];H[e]=function(e,o){return D(),null==t?void 0:t(e,o)}})),p.useEffect((function(){H.motionName||"motion"!==A||D()}),[H.motionName,A]),p.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return E.current}}}));var q=bE(bE({},$),{},{zIndex:s,opacity:"motion"!==A&&"stable"!==A&&o?0:void 0,pointerEvents:o||"stable"===A?void 0:"none"},i),G=!0;!(null==d?void 0:d.points)||"align"!==A&&"stable"!==A||(G=!1);var X=a;return p.Children.count(a)>1&&(X=p.createElement("div",{className:"".concat(r,"-content")},a)),p.createElement(mk,De({visible:o,ref:E,leavedClassName:"".concat(r,"-hidden")},H,{onAppearPrepare:U,onEnterPrepare:U,removeOnLeave:c,forceRender:u}),(function(e,t){var o=e.className,i=e.style,a=BE(r,n,N,o);return p.createElement(J$,{target:f||m,key:"popup",ref:C,monitorWindowResize:!0,disabled:G,align:d,onAlign:W},p.createElement("div",{ref:t,className:a,onMouseEnter:y,onMouseLeave:w,onMouseDownCapture:O,onTouchStartCapture:S,onClick:T,style:bE(bE({},i),q)},X))}))}));nL.displayName="PopupInner";var iL=p.forwardRef((function(e,t){var o=e.prefixCls,r=e.visible,n=e.zIndex,i=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,u=void 0===c?{}:c,d=a.popupRender,f=e.onClick,m=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=bE({zIndex:n},l),x=i;return p.Children.count(i)>1&&(x=p.createElement("div",{className:"".concat(o,"-content")},i)),d&&(x=d(x)),p.createElement(mk,De({visible:r,ref:m,removeOnLeave:!0},u),(function(e,t){var r=e.className,n=e.style,i=BE(o,s,r);return p.createElement("div",{ref:t,className:i,onClick:f,style:bE(bE({},n),h)},x)}))}));iL.displayName="MobilePopupInner";var aL=["visible","mobile"],sL=p.forwardRef((function(e,t){var o=e.visible,r=e.mobile,n=vE(e,aL),i=UE(b(o),2),a=i[0],s=i[1],l=UE(b(!1),2),c=l[0],u=l[1],d=bE(bE({},n),{},{visible:a});v((function(){s(o),o&&r&&u(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[o,r]);var f=c?p.createElement(iL,De({},d,{mobile:r,ref:t})):p.createElement(nL,De({},d,{ref:t}));return p.createElement("div",null,p.createElement(Sk,d),f)}));sL.displayName="Popup";var lL=p.createContext(null);function cL(){}function pL(){return""}function uL(e){return e?e.ownerDocument:window.document}var dL=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var fL=function(e){var t=function(t){OE(r,p.Component);var o=CE(r);function r(e){var t,n;return gE(this,r),(t=o.call(this,e)).popupRef=p.createRef(),t.triggerRef=p.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var o=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,o,o?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var o;e.relatedTarget&&!e.relatedTarget.setTimeout&&$E(null===(o=t.popupRef.current)||void 0===o?void 0:o.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var o;if(t.preClickTime&&t.preTouchTime?o=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?o=t.preClickTime:t.preTouchTime&&(o=t.preTouchTime),Math.abs(o-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var o=e.target,r=t.getRootDomNode(),n=t.getPopupDomNode();$E(r,o)&&!t.isContextMenuOnly()||$E(n,o)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var o=LE(t.triggerRef.current);if(o)return o}catch(e){}return k.findDOMNode(Gl(t))},t.getPopupClassNameFromAlign=function(e){var o=[],r=t.props,n=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return n&&i&&o.push(function(e,t,o,r){for(var n=o.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(FE(e[s].points,n,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&o.push(l(e)),o.join(" ")},t.getComponent=function(){var e=t.props,o=e.prefixCls,r=e.destroyPopupOnHide,n=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,u=e.mask,d=e.maskAnimation,f=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,x=e.popup,b=e.stretch,v=e.alignPoint,g=e.mobile,y=e.forceRender,w=e.onPopupClick,O=t.state,S=O.popupVisible,T=O.point,C=t.getPopupAlign(),E={};return t.isMouseEnterToShow()&&(E.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(E.onMouseLeave=t.onPopupMouseLeave),E.onMouseDown=t.onPopupMouseDown,E.onTouchStart=t.onPopupMouseDown,p.createElement(sL,De({prefixCls:o,destroyPopupOnHide:r,visible:S,point:v&&T,className:n,align:C,onAlign:i,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},E,{stretch:b,getRootDomNode:t.getRootDomNode,style:c,mask:u,zIndex:h,transitionName:l,maskAnimation:d,maskTransitionName:f,maskMotion:m,ref:t.popupRef,motion:a,mobile:g,forceRender:y,onClick:w}),"function"==typeof x?x():x)},t.attachParent=function(e){PE.cancel(t.attachId);var o,r=t.props,n=r.getPopupContainer,i=r.getDocument,a=t.getRootDomNode();n?(a||0===n.length)&&(o=n(a)):o=i(t.getRootDomNode()).body,o?o.appendChild(e):t.attachId=PE((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},n="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:n,popupVisible:n},dL.forEach((function(e){t["fire".concat(e)]=function(o){t.fireEvents(e,o)}})),t}return wE(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=DE(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=DE(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=DE(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=DE(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),PE.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,o=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,o){return bE(bE({},e[t]||{}),o)}(r,t,o):o}},{key:"setPopupVisible",value:function(e,t){var o=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),o&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,o){var r=this,n=1e3*t;if(this.clearDelayTimer(),n){var i=o?{pageX:o.pageX,pageY:o.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),n)}else this.setPopupVisible(e,o)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,o=this.props;return t[e]&&o[e]?this["fire".concat(e)]:t[e]||o[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("click")||-1!==o.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==o.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("click")||-1!==o.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("hover")||-1!==o.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("hover")||-1!==o.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,o=e.showAction;return-1!==t.indexOf("focus")||-1!==o.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,o=e.hideAction;return-1!==t.indexOf("focus")||-1!==o.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var o=this.props.children.props[e];o&&o(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,o=this.props,r=o.children,n=o.forceRender,i=o.alignPoint,a=o.className,s=o.autoDestroy,l=p.Children.only(r),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var u=BE(l&&l.props&&l.props.className,a);u&&(c.className=u);var d=bE({},c);AE(l)&&(d.ref=jE(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(t||this.popupRef.current||n)&&(f=p.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(f=null),p.createElement(lL.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o=e.popupVisible,r={};return void 0!==o&&t.popupVisible!==o&&(r.popupVisible=o,r.prevPopupVisible=t.popupVisible),r}}]),r}();return t.contextType=lL,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:pL,getDocument:uL,onPopupVisibleChange:cL,afterPopupVisibleChange:cL,onPopupAlign:cL,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(VE),mL={adjustX:1,adjustY:1},hL=[0,0],xL={left:{points:["cr","cl"],overflow:mL,offset:[-4,0],targetOffset:hL},right:{points:["cl","cr"],overflow:mL,offset:[4,0],targetOffset:hL},top:{points:["bc","tc"],overflow:mL,offset:[0,-4],targetOffset:hL},bottom:{points:["tc","bc"],overflow:mL,offset:[0,4],targetOffset:hL},topLeft:{points:["bl","tl"],overflow:mL,offset:[0,-4],targetOffset:hL},leftTop:{points:["tr","tl"],overflow:mL,offset:[-4,0],targetOffset:hL},topRight:{points:["br","tr"],overflow:mL,offset:[0,-4],targetOffset:hL},rightTop:{points:["tl","tr"],overflow:mL,offset:[4,0],targetOffset:hL},bottomRight:{points:["tr","br"],overflow:mL,offset:[0,4],targetOffset:hL},rightBottom:{points:["bl","br"],overflow:mL,offset:[4,0],targetOffset:hL},bottomLeft:{points:["tl","bl"],overflow:mL,offset:[0,4],targetOffset:hL},leftBottom:{points:["br","bl"],overflow:mL,offset:[-4,0],targetOffset:hL}};function bL(e){var t=e.showArrow,o=e.arrowContent,r=e.children,n=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return p.createElement("div",{className:BE("".concat(n,"-content"),s),style:l},!1!==t&&p.createElement("div",{className:"".concat(n,"-arrow"),key:"arrow"},o),p.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var vL,gL,yL,wL=y((function(e,t){var o=e.overlayClassName,r=e.trigger,n=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,m=e.onVisibleChange,h=e.afterVisibleChange,x=e.transitionName,b=e.animation,v=e.motion,y=e.placement,O=void 0===y?"right":y,S=e.align,T=void 0===S?{}:S,C=e.destroyTooltipOnHide,E=void 0!==C&&C,k=e.defaultVisible,N=e.getTooltipContainer,R=e.overlayInnerStyle,M=e.arrowContent,P=e.overlay,$=e.id,L=e.showArrow,I=vE(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),j=g(null);w(t,(function(){return j.current}));var A=bE({},I);"visible"in e&&(A.popupVisible=e.visible);var D=!1,z=!1;if("boolean"==typeof E)D=E;else if(E&&"object"===mE(E)){var V=E.keepParent;D=!0===V,z=!1===V}return p.createElement(fL,De({popupClassName:o,prefixCls:d,popup:function(){return p.createElement(bL,{showArrow:L,arrowContent:M,key:"content",prefixCls:d,id:$,overlayInnerStyle:R},P)},action:n,builtinPlacements:xL,popupPlacement:O,ref:j,popupAlign:T,getPopupContainer:N,onPopupVisibleChange:m,afterPopupVisibleChange:h,popupTransitionName:x,popupAnimation:b,popupMotion:v,defaultPopupVisible:k,destroyPopupOnHide:D,autoDestroy:z,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a},A),f)})),OL=r.div(gL||(gL=L(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=t.fonts;return n(vL||(vL=L(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S)})),SL=function(e){var t=e.trigger,r=void 0===t?"hover":t,n=e.placement,i=void 0===n?"top":n,a=M(e,["trigger","placement"]),s=g(null);return o(OL,R({ref:s},{children:o(wL,R({},a,{getTooltipContainer:function(){return s.current},trigger:r,placement:i}))}))},TL=bE({},E),CL=TL.version,EL=TL.render,kL=TL.unmountComponentAtNode;try{Number((CL||"").split(".")[0])>=18&&(yL=TL.createRoot)}catch(e){}function NL(e){var t=TL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===mE(t)&&(t.usingClientEntryPoint=e)}var RL="__rc_react_root__";function ML(e,t){yL?function(e,t){NL(!0);var o=t[RL]||yL(t);NL(!1),o.render(e),t[RL]=o}(e,t):function(e,t){EL(e,t)}(e,t)}function PL(e){return $L.apply(this,arguments)}function $L(){return($L=oL(eL().mark((function e(t){return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[RL])||void 0===e||e.unmount(),delete t[RL]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function LL(e){kL(e)}function IL(){return(IL=oL(eL().mark((function e(t){return eL().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===yL){e.next=2;break}return e.abrupt("return",PL(t));case 2:LL(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var jL=function(e){OE(o,S);var t=CE(o);function o(){var e;gE(this,o);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var o=e.props,r=o.onClose,n=o.noticeKey;r&&r(n)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return wE(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,o=t.prefixCls,r=t.className,n=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,l=t.children,c=t.holder,u="".concat(o,"-notice"),d=Object.keys(this.props).reduce((function(t,o){return"data-"!==o.substr(0,5)&&"aria-"!==o.substr(0,5)&&"role"!==o||(t[o]=e.props[o]),t}),{}),f=p.createElement("div",De({className:BE(u,r,hE({},"".concat(u,"-closable"),n)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},d),p.createElement("div",{className:"".concat(u,"-content")},l),n?p.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(u,"-close")},i||p.createElement("span",{className:"".concat(u,"-close-x")})):null);return c?k.createPortal(f,c):f}}]),o}();function AL(e){return function(e){if(Array.isArray(e))return WE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}jL.defaultProps={onClose:function(){},duration:1.5};var DL=["getContainer"],zL=0,VL=Date.now();function _L(){var e=zL;return zL+=1,"rcNotification_".concat(VL,"_").concat(e)}var BL=function(e){OE(o,S);var t=CE(o);function o(){var e;gE(this,o);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,o){var r=t.key||_L(),n=bE(bE({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:n,holderCallback:o}):(i&&t.length>=i&&(n.key=s[0].notice.key,n.updateMark=_L(),n.userPassKey=r,s.shift()),s.push({notice:n,holderCallback:o})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var o=e.notice,r=o.key;return(o.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return wE(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,o=e.animation,r=this.props.transitionName;return!r&&o&&(r="".concat(t,"-").concat(o)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,o=this.props,r=o.prefixCls,n=o.className,i=o.closeIcon,a=o.style,s=[];return t.forEach((function(o,n){var a=o.notice,l=o.holderCallback,c=n===t.length-1?a.updateMark:void 0,p=a.key,u=a.userPassKey,d=bE(bE(bE({prefixCls:r,closeIcon:i},a),a.props),{},{key:p,noticeKey:u||p,updateMark:c,onClose:function(t){var o;e.remove(t),null===(o=a.onClose)||void 0===o||o.call(a)},onClick:a.onClick,children:a.content});s.push(p),e.noticePropsMap[p]={props:d,holderCallback:l}})),p.createElement("div",{className:BE(r,n),style:a},p.createElement(wk,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,o){var r=o.key;t||delete e.noticePropsMap[r]}},(function(t){var o=t.key,n=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[o],l=s.props,c=s.holderCallback;return c?p.createElement("div",{key:o,className:BE(n,"".concat(r,"-hook-holder")),style:bE({},i),ref:function(t){void 0!==o&&(t?(e.hookRefs.set(o,t),c(t,l)):e.hookRefs.delete(o))}}):p.createElement(jL,De({},l,{className:BE(n,null==l?void 0:l.className),style:bE(bE({},i),null==l?void 0:l.style),visible:a}))})))}}]),o}();BL.newInstance=void 0,BL.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},BL.newInstance=function(e,t){var o=e||{},r=o.getContainer,n=vE(o,DL),i=document.createElement("div");r?r().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){IL.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,o=p.useRef({}),r=UE(p.useState([]),2),n=r[0],i=r[1],[function(e){var r=!0;t.add(e,(function(e,t){var n=t.key;if(e&&(!o.current[n]||r)){var a=p.createElement(jL,De({},t,{holder:e}));o.current[n]=a,i((function(e){var o=e.findIndex((function(e){return e.key===t.key}));if(-1===o)return[].concat(AL(e),[a]);var r=AL(e);return r[o]=a,r}))}r=!1}))},p.createElement(p.Fragment,null,n)];var t,o,r,n,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(p.createElement(BL,De({},n,{ref:s}))):ML(p.createElement(BL,De({},n,{ref:s})),i)};var FL,WL,HL,UL=oe.colors,qL=oe.fonts,GL=oe.sizes,XL=r.span(FL||(FL=L(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),qL.L),KL=r.div(WL||(WL=L(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),GL.XL,GL.M,GL.XL),YL=r.div(HL||(HL=L(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),U(GL.XL),(function(e){return e.backgroundColor})),ZL=function(t){var r=t.type,n=t.message,i=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:UL.success,textColor:X(UL.success)};case"error":return{icon:"Close",backgroundColor:UL.error,textColor:X(UL.error)};case"warning":return{icon:"Warning",backgroundColor:UL.warning,textColor:X(UL.warning),iconColor:X(UL.warning),iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:UL.blue,textColor:X(UL.blue),iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:UL.gray2,textColor:X(UL.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:"infoTierOne",textColor:X(UL.blue)}}}(r),a=i.icon,s=i.iconColor,l=i.textColor,c=i.backgroundColor,p=i.iconSize;return e(KL,{children:[o(YL,R({backgroundColor:c},{children:o(BC,{size:p||32,name:a,color:s||UL.white})})),o(XL,R({textColor:l},{children:n}))]})},JL=null;BL.newInstance({maxCount:2},(function(e){return JL=e}));var QL,eI,tI,oI,rI,nI,iI,aI,sI,lI,cI,pI,uI,dI,fI,mI,hI=function(e){var t=e.message,r=e.type,n=void 0===r?"success":r,i=e.duration,a=void 0===i?2.5:i;return null==JL?void 0:JL.notice({content:o(ZL,{message:t,type:n}),className:"toast-".concat(n),closable:!0,closeIcon:o(BC,{name:"Close"}),duration:a})},xI=function(t){var r=t.size,n=void 0===r?"XL":r,i=t.withShadow,a=t.label,s=t.backgroundColor,l=t.onPress,p=t.content,u=p.initials,d=p.iconName,f=p.imageUrl,m=t.textConfig,h=void 0===m?{}:m,x=h.color,b=void 0===x?"white":x,v=h.font,g=void 0===v?"L":v,y=c().sizes,w="number"==typeof n?n:y[n],O=u?o(yI,R({variant:g,color:b,avatarSize:w},{children:u})):d?o(BC,{name:d,color:"white",size:w/1.5}):f?o(wI,{avatarSize:w,src:f}):null;return e(bI,{children:[o(gI,R({onClick:l,withShadow:i,backgroundColor:f?"white":s,avatarSize:w},{children:O})),!!a&&o(vI,R({variant:"M"},{children:a}))]})},bI=r.div(QL||(QL=L(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),vI=r(FC)(eI||(eI=L(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),gI=r.div(rI||(rI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.colors,o=e.avatarSize,r=e.withShadow,i=e.backgroundColor;return n(oI||(oI=L(["\n cursor: pointer;\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),t[i||"indigoTint2"],t.white,Math.round(o/40),t.white,o/2,U(o),r&&n(tI||(tI=L(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),G(t[i||"indigoTint2"]),t[i||"indigoTint2"])})),yI=r(FC)(iI||(iI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return n(nI||(nI=L(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),t/2)})),wI=r(lE)(sI||(sI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.avatarSize;return n(aI||(aI=L(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),U(t))})),OI=r.div(lI||(lI=L(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,o=e.padding;return"number"==typeof o?o:t.sizes[o]})),SI=r.div(cI||(cI=L(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,o=e.padding;return"number"==typeof o?o:t.sizes[o]})),TI=r.div(uI||(uI=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.color,a=void 0===i?"gray4":i,s=e.type,l=void 0===s?"horizontal":s,c=e.weight,p=void 0===c?1:c,u=e.marginHorizontal,d=e.marginVertical;return n(pI||(pI=L(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(p,"px"):"100%","horizontal"===l?"".concat(p,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof u?u:r[u]||0)})),CI={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"error"}},EI=function(t){var r=t.label,n=t.isError,i=t.ruleLabel,a=t.tooltipText,s=c().colors,l=i?CI[i]:void 0;return e(kI,{children:[e(NI,{children:[o(FC,R({variant:"S",color:n?s.error:s.gray2},{children:r})),!!a&&o(SL,R({overlay:a},{children:o(RI,{children:o(BC,{color:n?s.error:s.gray2,name:"Info"})})}))]}),!!l&&o(FC,R({color:s[l.color],variant:"XS"},{children:l.text}))]})},kI=r.div(dI||(dI=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),NI=r.div(fI||(fI=L(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),RI=r.div(mI||(mI=L(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n"]))),MI=e=>"checkbox"===e.type,PI=e=>e instanceof Date,$I=e=>null==e;const LI=e=>"object"==typeof e;var II=e=>!$I(e)&&!Array.isArray(e)&&LI(e)&&!PI(e),jI=e=>II(e)&&e.target?MI(e.target)?e.target.checked:e.target.value:e,AI=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),DI=e=>Array.isArray(e)?e.filter(Boolean):[],zI=e=>void 0===e,VI=(e,t,o)=>{if(!t||!II(e))return o;const r=DI(t.split(/[,[\].]+?/)).reduce(((e,t)=>$I(e)?e:e[t]),e);return zI(r)||r===e?zI(e[t])?o:e[t]:r};const _I="blur",BI="focusout",FI="change",WI="onBlur",HI="onChange",UI="onSubmit",qI="onTouched",GI="all",XI="max",KI="min",YI="maxLength",ZI="minLength",JI="pattern",QI="required",ej="validate",tj=u.createContext(null),oj=()=>u.useContext(tj);var rj=(e,t,o,r=!0)=>{const n={};for(const i in e)Object.defineProperty(n,i,{get:()=>{const n=i;return t[n]!==GI&&(t[n]=!r||GI),o&&(o[n]=!0),e[n]}});return n},nj=e=>II(e)&&!Object.keys(e).length,ij=(e,t,o)=>{const{name:r,...n}=e;return nj(n)||Object.keys(n).length>=Object.keys(t).length||Object.keys(n).find((e=>t[e]===(!o||GI)))},aj=e=>Array.isArray(e)?e:[e],sj=(e,t,o)=>o&&t?e===t:!e||!t||e===t||aj(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function lj(e){const t=u.useRef(e);t.current=e,u.useEffect((()=>{const o=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(o)}),[e.disabled])}var cj=e=>"string"==typeof e,pj=(e,t,o,r)=>{const n=Array.isArray(e);return cj(e)?(r&&t.watch.add(e),VI(o,e)):n?e.map((e=>(r&&t.watch.add(e),VI(o,e)))):(r&&(t.watchAll=!0),o)},uj=e=>"function"==typeof e,dj=e=>{for(const t in e)if(uj(e[t]))return!0;return!1};function fj(e){const t=oj(),{name:o,control:r=t.control,shouldUnregister:n}=e,i=AI(r._names.array,o),a=function(e){const t=oj(),{control:o=t.control,name:r,defaultValue:n,disabled:i,exact:a}=e||{},s=u.useRef(r);s.current=r;const l=u.useCallback((e=>{if(sj(s.current,e.name,a)){const t=pj(s.current,o._names,e.values||o._formValues);p(zI(s.current)||II(t)&&!dj(t)?{...t}:Array.isArray(t)?[...t]:zI(t)?n:t)}}),[o,a,n]);lj({disabled:i,subject:o._subjects.watch,callback:l});const[c,p]=u.useState(zI(n)?o._getWatch(r):n);return u.useEffect((()=>{o._removeUnmounted()})),c}({control:r,name:o,defaultValue:VI(r._formValues,o,VI(r._defaultValues,o,e.defaultValue)),exact:!0}),s=function(e){const t=oj(),{control:o=t.control,disabled:r,name:n,exact:i}=e||{},[a,s]=u.useState(o._formState),l=u.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=u.useRef(n),p=u.useRef(!0);return c.current=n,lj({disabled:r,callback:u.useCallback((e=>p.current&&sj(c.current,e.name,i)&&ij(e,l.current)&&s({...o._formState,...e})),[o,i]),subject:o._subjects.state}),u.useEffect((()=>(p.current=!0,()=>{p.current=!1})),[]),rj(a,o._proxyFormState,l.current,!1)}({control:r,name:o}),l=u.useRef(r.register(o,{...e.rules,value:a}));return u.useEffect((()=>{const e=(e,t)=>{const o=VI(r._fields,e);o&&(o._f.mount=t)};return e(o,!0),()=>{const t=r._options.shouldUnregister||n;(i?t&&!r._stateFlags.action:t)?r.unregister(o):e(o,!1)}}),[o,r,i,n]),{field:{name:o,value:a,onChange:u.useCallback((e=>{l.current.onChange({target:{value:jI(e),name:o},type:FI})}),[o]),onBlur:u.useCallback((()=>{l.current.onBlur({target:{value:VI(r._formValues,o),name:o},type:_I})}),[o,r]),ref:u.useCallback((e=>{const t=VI(r._fields,o);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[o,r._fields])},formState:s,fieldState:Object.defineProperties({},{invalid:{get:()=>!!VI(s.errors,o)},isDirty:{get:()=>!!VI(s.dirtyFields,o)},isTouched:{get:()=>!!VI(s.touchedFields,o)},error:{get:()=>VI(s.errors,o)}})}}const mj=e=>e.render(fj(e));var hj=(e,t,o,r,n)=>t?{...o[e],types:{...o[e]&&o[e].types?o[e].types:{},[r]:n||!0}}:{},xj=e=>/^\w*$/.test(e),bj=e=>DI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function vj(e,t,o){let r=-1;const n=xj(t)?[t]:bj(t),i=n.length,a=i-1;for(;++r<i;){const t=n[r];let i=o;if(r!==a){const o=e[t];i=II(o)||Array.isArray(o)?o:isNaN(+n[r+1])?{}:[]}e[t]=i,e=e[t]}return e}const gj=(e,t,o)=>{for(const r of o||Object.keys(e)){const o=VI(e,r);if(o){const{_f:e,...r}=o;if(e&&t(e.name)){if(e.ref.focus&&zI(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else II(r)&&gj(r,t)}}};var yj=(e,t,o)=>!o&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),wj=(e,t,o)=>{const r=DI(VI(e,o));return vj(r,"root",t[o]),vj(e,o,r),e},Oj=e=>"boolean"==typeof e,Sj=e=>"file"===e.type,Tj=e=>cj(e)||u.isValidElement(e),Cj=e=>"radio"===e.type,Ej=e=>e instanceof RegExp;const kj={value:!1,isValid:!1},Nj={value:!0,isValid:!0};var Rj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zI(e[0].attributes.value)?zI(e[0].value)||""===e[0].value?Nj:{value:e[0].value,isValid:!0}:Nj:kj}return kj};const Mj={isValid:!1,value:null};var Pj=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Mj):Mj;function $j(e,t,o="validate"){if(Tj(e)||Array.isArray(e)&&e.every(Tj)||Oj(e)&&!e)return{type:o,message:Tj(e)?e:"",ref:t}}var Lj=e=>II(e)&&!Ej(e)?e:{value:e,message:""},Ij=async(e,t,o,r,n)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:p,max:u,pattern:d,validate:f,name:m,valueAsNumber:h,mount:x,disabled:b}=e._f;if(!x||b)return{};const v=a?a[0]:i,g=e=>{r&&v.reportValidity&&(v.setCustomValidity(Oj(e)?"":e||" "),v.reportValidity())},y={},w=Cj(i),O=MI(i),S=w||O,T=(h||Sj(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,C=hj.bind(null,m,o,y),E=(e,t,o,r=YI,n=ZI)=>{const a=e?t:o;y[m]={type:e?r:n,message:a,ref:i,...C(e?r:n,a)}};if(n?!Array.isArray(t)||!t.length:s&&(!S&&(T||$I(t))||Oj(t)&&!t||O&&!Rj(a).isValid||w&&!Pj(a).isValid)){const{value:e,message:t}=Tj(s)?{value:!!s,message:s}:Lj(s);if(e&&(y[m]={type:QI,message:t,ref:v,...C(QI,t)},!o))return g(t),y}if(!(T||$I(p)&&$I(u))){let e,r;const n=Lj(u),a=Lj(p);if($I(t)||isNaN(t)){const o=i.valueAsDate||new Date(t);cj(n.value)&&(e=o>new Date(n.value)),cj(a.value)&&(r=o<new Date(a.value))}else{const o=i.valueAsNumber||+t;$I(n.value)||(e=o>n.value),$I(a.value)||(r=o<a.value)}if((e||r)&&(E(!!e,n.message,a.message,XI,KI),!o))return g(y[m].message),y}if((l||c)&&!T&&(cj(t)||n&&Array.isArray(t))){const e=Lj(l),r=Lj(c),n=!$I(e.value)&&t.length>e.value,i=!$I(r.value)&&t.length<r.value;if((n||i)&&(E(n,e.message,r.message),!o))return g(y[m].message),y}if(d&&!T&&cj(t)){const{value:e,message:r}=Lj(d);if(Ej(e)&&!t.match(e)&&(y[m]={type:JI,message:r,ref:i,...C(JI,r)},!o))return g(r),y}if(f)if(uj(f)){const e=$j(await f(t),v);if(e&&(y[m]={...e,...C(ej,e.message)},!o))return g(e.message),y}else if(II(f)){let e={};for(const r in f){if(!nj(e)&&!o)break;const n=$j(await f[r](t),v,r);n&&(e={...n,...C(r,n.message)},g(n.message),o&&(y[m]=e))}if(!nj(e)&&(y[m]={ref:v,...e},!o))return y}return g(!0),y},jj="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Aj(e){let t;const o=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(jj&&(e instanceof Blob||e instanceof FileList)||!o&&!II(e))return e;t=o?[]:{};for(const o in e){if(uj(e[o])){t=e;break}t[o]=Aj(e[o])}}return t}var Dj=e=>({isOnSubmit:!e||e===UI,isOnBlur:e===WI,isOnChange:e===HI,isOnAll:e===GI,isOnTouch:e===qI});function zj(e){for(const t in e)if(!zI(e[t]))return!1;return!0}function Vj(e,t){const o=xj(t)?[t]:bj(t),r=1==o.length?e:function(e,t){const o=t.slice(0,-1).length;let r=0;for(;r<o;)e=zI(e)?r++:e[t[r++]];return e}(e,o),n=o[o.length-1];let i;r&&delete r[n];for(let t=0;t<o.slice(0,-1).length;t++){let r,n=-1;const a=o.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++n<a.length;){const t=a[n];r=r?r[t]:e[t],s===n&&(II(r)&&nj(r)||Array.isArray(r)&&zj(r))&&(i?delete i[t]:delete e[t]),i=r}}return e}function _j(){let e=[];return{get observers(){return e},next:t=>{for(const o of e)o.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var Bj=e=>$I(e)||!LI(e);function Fj(e,t){if(Bj(e)||Bj(t))return e===t;if(PI(e)&&PI(t))return e.getTime()===t.getTime();const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(const n of o){const o=e[n];if(!r.includes(n))return!1;if("ref"!==n){const e=t[n];if(PI(o)&&PI(e)||II(o)&&II(e)||Array.isArray(o)&&Array.isArray(e)?!Fj(o,e):o!==e)return!1}}return!0}var Wj=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hj=e=>"select-multiple"===e.type,Uj=e=>Wj(e)&&e.isConnected;function qj(e,t={}){const o=Array.isArray(e);if(II(e)||o)for(const o in e)Array.isArray(e[o])||II(e[o])&&!dj(e[o])?(t[o]=Array.isArray(e[o])?[]:{},qj(e[o],t[o])):$I(e[o])||(t[o]=!0);return t}function Gj(e,t,o){const r=Array.isArray(e);if(II(e)||r)for(const r in e)Array.isArray(e[r])||II(e[r])&&!dj(e[r])?zI(t)||Bj(o[r])?o[r]=Array.isArray(e[r])?qj(e[r],[]):{...qj(e[r])}:Gj(e[r],$I(t)?{}:t[r],o[r]):o[r]=!Fj(e[r],t[r]);return o}var Xj=(e,t)=>Gj(e,t,qj(t)),Kj=(e,{valueAsNumber:t,valueAsDate:o,setValueAs:r})=>zI(e)?e:t?""===e||$I(e)?NaN:+e:o&&cj(e)?new Date(e):r?r(e):e;function Yj(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Sj(t)?t.files:Cj(t)?Pj(e.refs).value:Hj(t)?[...t.selectedOptions].map((({value:e})=>e)):MI(t)?Rj(e.refs).value:Kj(zI(t.value)?e.ref.value:t.value,e)}var Zj=e=>zI(e)?void 0:Ej(e)?e.source:II(e)?Ej(e.value)?e.value.source:e.value:e;function Jj(e,t,o){const r=VI(e,o);if(r||xj(o))return{error:r,name:o};const n=o.split(".");for(;n.length;){const r=n.join("."),i=VI(t,r),a=VI(e,r);if(i&&!Array.isArray(i)&&o!==r)return{name:o};if(a&&a.type)return{name:r,error:a};n.pop()}return{name:o}}const Qj={mode:UI,reValidateMode:HI,shouldFocusError:!0};function eA(e={}){let t,o={...Qj,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},n={},i=Aj(o.defaultValues)||{},a=o.shouldUnregister?{}:Aj(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,p={};const u={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:_j(),array:_j(),state:_j()},f=Dj(o.mode),m=Dj(o.reValidateMode),h=o.criteriaMode===GI,x=async e=>{let t=!1;return u.isValid&&(t=o.resolver?nj((await y()).errors):await w(n,!0),e||t===r.isValid||(r.isValid=t,d.state.next({isValid:t}))),t},b=(e,t,o,r)=>{const l=VI(n,e);if(l){const n=VI(a,e,zI(o)?VI(i,e):o);zI(n)||r&&r.defaultChecked||t?vj(a,e,t?n:Yj(l._f)):T(e,n),s.mount&&x()}},v=(e,t,o,n,a)=>{let s=!1;const l={name:e},c=VI(r.touchedFields,e);if(u.isDirty){const e=r.isDirty;r.isDirty=l.isDirty=O(),s=e!==l.isDirty}if(u.dirtyFields&&(!o||n)){const o=VI(r.dirtyFields,e);Fj(VI(i,e),t)?Vj(r.dirtyFields,e):vj(r.dirtyFields,e,!0),l.dirtyFields=r.dirtyFields,s=s||o!==VI(r.dirtyFields,e)}return o&&!c&&(vj(r.touchedFields,e,o),l.touchedFields=r.touchedFields,s=s||u.touchedFields&&c!==o),s&&a&&d.state.next(l),s?l:{}},g=async(o,n,i,a)=>{const s=VI(r.errors,o),l=u.isValid&&r.isValid!==n;var f;if(e.delayError&&i?(f=()=>((e,t)=>{vj(r.errors,e,t),d.state.next({errors:r.errors})})(o,i),t=e=>{clearTimeout(c),c=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,i?vj(r.errors,o,i):Vj(r.errors,o)),(i?!Fj(s,i):s)||!nj(a)||l){const e={...a,...l?{isValid:n}:{},errors:r.errors,name:o};r={...r,...e},d.state.next(e)}p[o]--,u.isValidating&&!Object.values(p).some((e=>e))&&(d.state.next({isValidating:!1}),p={})},y=async e=>o.resolver?await o.resolver({...a},o.context,((e,t,o,r)=>{const n={};for(const o of e){const e=VI(t,o);e&&vj(n,o,e._f)}return{criteriaMode:o,names:[...e],fields:n,shouldUseNativeValidation:r}})(e||l.mount,n,o.criteriaMode,o.shouldUseNativeValidation)):{},w=async(e,t,n={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),c=await Ij(s,VI(a,e.name),h,o.shouldUseNativeValidation,i);if(c[e.name]&&(n.valid=!1,t))break;!t&&(VI(c,e.name)?i?wj(r.errors,c,e.name):vj(r.errors,e.name,c[e.name]):Vj(r.errors,e.name))}i&&await w(i,t,n)}}return n.valid},O=(e,t)=>(e&&t&&vj(a,e,t),!Fj(R(),i)),S=(e,t,o)=>{const r={...s.mount?a:zI(t)?i:cj(e)?{[e]:t}:t};return pj(e,l,r,o)},T=(e,t,o={})=>{const r=VI(n,e);let i=t;if(r){const o=r._f;o&&(!o.disabled&&vj(a,e,Kj(t,o)),i=jj&&Wj(o.ref)&&$I(t)?"":t,Hj(o.ref)?[...o.ref.options].forEach((e=>e.selected=i.includes(e.value))):o.refs?MI(o.ref)?o.refs.length>1?o.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):o.refs[0]&&(o.refs[0].checked=!!i):o.refs.forEach((e=>e.checked=e.value===i)):Sj(o.ref)?o.ref.value="":(o.ref.value=i,o.ref.type||d.watch.next({name:e})))}(o.shouldDirty||o.shouldTouch)&&v(e,i,o.shouldTouch,o.shouldDirty,!0),o.shouldValidate&&N(e)},C=(e,t,o)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=VI(n,a);!l.array.has(e)&&Bj(i)&&(!s||s._f)||PI(i)?T(a,i,o):C(a,i,o)}},E=(e,t,o={})=>{const s=VI(n,e),c=l.array.has(e),p=Aj(t);vj(a,e,p),c?(d.array.next({name:e,values:a}),(u.isDirty||u.dirtyFields)&&o.shouldDirty&&(r.dirtyFields=Xj(i,a),d.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:O(e,p)}))):!s||s._f||$I(p)?T(e,p,o):C(e,p,o),yj(e,l)&&d.state.next({}),d.watch.next({name:e})},k=async e=>{const i=e.target;let s=i.name;const c=VI(n,s);if(c){let b,w;const O=i.type?Yj(c._f):jI(e),S=e.type===_I||e.type===BI,T=!((u=c._f).mount&&(u.required||u.min||u.max||u.maxLength||u.minLength||u.pattern||u.validate)||o.resolver||VI(r.errors,s)||c._f.deps)||((e,t,o,r,n)=>!n.isOnAll&&(!o&&n.isOnTouch?!(t||e):(o?r.isOnBlur:n.isOnBlur)?!e:!(o?r.isOnChange:n.isOnChange)||e))(S,VI(r.touchedFields,s),r.isSubmitted,m,f),C=yj(s,l,S);vj(a,s,O),S?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);const E=v(s,O,S,!1),k=!nj(E)||C;if(!S&&d.watch.next({name:s,type:e.type}),T)return k&&d.state.next({name:s,...C?{}:E});if(!S&&C&&d.state.next({}),p[s]=(p[s],1),d.state.next({isValidating:!0}),o.resolver){const{errors:e}=await y([s]),t=Jj(r.errors,n,s),o=Jj(e,n,t.name||s);b=o.error,s=o.name,w=nj(e)}else b=(await Ij(c,VI(a,s),h,o.shouldUseNativeValidation))[s],w=await x(!0);c._f.deps&&N(c._f.deps),g(s,w,b,E)}var u},N=async(e,t={})=>{let i,a;const s=aj(e);if(d.state.next({isValidating:!0}),o.resolver){const t=await(async e=>{const{errors:t}=await y();if(e)for(const o of e){const e=VI(t,o);e?vj(r.errors,o,e):Vj(r.errors,o)}else r.errors=t;return t})(zI(e)?e:s);i=nj(t),a=e?!s.some((e=>VI(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=VI(n,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&x()):a=i=await w(n);return d.state.next({...!cj(e)||u.isValid&&i!==r.isValid?{}:{name:e},...o.resolver?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&gj(n,(e=>VI(r.errors,e)),e?s:l.mount),a},R=e=>{const t={...i,...s.mount?a:{}};return zI(e)?t:cj(e)?VI(t,e):e.map((e=>VI(t,e)))},M=(e,t)=>({invalid:!!VI((t||r).errors,e),isDirty:!!VI((t||r).dirtyFields,e),isTouched:!!VI((t||r).touchedFields,e),error:VI((t||r).errors,e)}),P=(e,t={})=>{for(const s of e?aj(e):l.mount)l.mount.delete(s),l.array.delete(s),VI(n,s)&&(t.keepValue||(Vj(n,s),Vj(a,s)),!t.keepError&&Vj(r.errors,s),!t.keepDirty&&Vj(r.dirtyFields,s),!t.keepTouched&&Vj(r.touchedFields,s),!o.shouldUnregister&&!t.keepDefaultValue&&Vj(i,s));d.watch.next({}),d.state.next({...r,...t.keepDirty?{isDirty:O()}:{}}),!t.keepIsValid&&x()},$=(e,t={})=>{let r=VI(n,e);const c=Oj(t.disabled);return vj(n,e,{_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?c&&vj(a,e,t.disabled?void 0:VI(a,e,Yj(r._f))):b(e,!0,t.value),{...c?{disabled:t.disabled}:{},...o.shouldUseNativeValidation?{required:!!t.required,min:Zj(t.min),max:Zj(t.max),minLength:Zj(t.minLength),maxLength:Zj(t.maxLength),pattern:Zj(t.pattern)}:{},name:e,onChange:k,onBlur:k,ref:a=>{if(a){$(e,t),r=VI(n,e);const o=zI(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>Cj(e)||MI(e))(o),l=r._f.refs||[];if(s?l.find((e=>e===o)):o===r._f.ref)return;vj(n,e,{_f:{...r._f,...s?{refs:[...l.filter(Uj),o,...Array.isArray(VI(i,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),b(e,!1,void 0,o)}else r=VI(n,e,{}),r._f&&(r._f.mount=!1),(o.shouldUnregister||t.shouldUnregister)&&(!AI(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:$,unregister:P,getFieldState:M,_executeSchema:y,_getWatch:S,_getDirty:O,_updateValid:x,_removeUnmounted:()=>{for(const e of l.unMount){const t=VI(n,e);t&&(t._f.refs?t._f.refs.every((e=>!Uj(e))):!Uj(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],o,l,c=!0,p=!0)=>{if(l&&o){if(s.action=!0,p&&Array.isArray(VI(n,e))){const t=o(VI(n,e),l.argA,l.argB);c&&vj(n,e,t)}if(u.errors&&p&&Array.isArray(VI(r.errors,e))){const t=o(VI(r.errors,e),l.argA,l.argB);c&&vj(r.errors,e,t),((e,t)=>{!DI(VI(e,t)).length&&Vj(e,t)})(r.errors,e)}if(u.touchedFields&&p&&Array.isArray(VI(r.touchedFields,e))){const t=o(VI(r.touchedFields,e),l.argA,l.argB);c&&vj(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=Xj(i,a)),d.state.next({isDirty:O(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else vj(a,e,t)},_getFieldArray:t=>DI(VI(s.mount?a:i,t,e.shouldUnregister?VI(i,t,[]):[])),_subjects:d,_proxyFormState:u,get _fields(){return n},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return o},set _options(e){o={...o,...e}}},trigger:N,register:$,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,c=Aj(a);d.state.next({isSubmitting:!0});try{if(o.resolver){const{errors:e,values:t}=await y();r.errors=e,c=t}else await w(n);nj(r.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(c,i)):(t&&await t({...r.errors},i),o.shouldFocusError&&gj(n,(e=>VI(r.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{r.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:nj(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>uj(e)?d.watch.subscribe({next:o=>e(S(void 0,t),o)}):S(e,t,!0),setValue:E,getValues:R,reset:(t,o={})=>{const c=t||i,p=Aj(c),f=t&&!nj(t)?p:i;if(o.keepDefaultValues||(i=c),!o.keepValues){if(o.keepDirtyValues)for(const e of l.mount)VI(r.dirtyFields,e)?vj(f,e,VI(a,e)):E(e,VI(f,e));else{if(jj&&zI(t))for(const e of l.mount){const t=VI(n,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(Wj(e)){e.closest("form").reset();break}}catch(e){}}}n={}}a=e.shouldUnregister?o.keepDefaultValues?Aj(i):{}:p,d.array.next({values:f}),d.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!o.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:o.keepSubmitCount?r.submitCount:0,isDirty:o.keepDirty||o.keepDirtyValues?r.isDirty:!(!o.keepDefaultValues||Fj(t,i)),isSubmitted:!!o.keepIsSubmitted&&r.isSubmitted,dirtyFields:o.keepDirty||o.keepDirtyValues?r.dirtyFields:o.keepDefaultValues&&t?Xj(i,t):{},touchedFields:o.keepTouched?r.touchedFields:{},errors:o.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{VI(n,e)&&(zI(t.defaultValue)?E(e,VI(i,e)):(E(e,t.defaultValue),vj(i,e,t.defaultValue)),t.keepTouched||Vj(r.touchedFields,e),t.keepDirty||(Vj(r.dirtyFields,e),r.isDirty=t.defaultValue?O(e,VI(i,e)):O()),t.keepError||(Vj(r.errors,e),u.isValid&&x()),d.state.next({...r}))},clearErrors:e=>{e?aj(e).forEach((e=>Vj(r.errors,e))):r.errors={},d.state.next({errors:r.errors})},unregister:P,setError:(e,t,o)=>{const i=(VI(n,e,{_f:{}})._f||{}).ref;vj(r.errors,e,{...t,ref:i}),d.state.next({name:e,errors:r.errors,isValid:!1}),o&&o.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const o=VI(n,e)._f,r=o.refs?o.refs[0]:o.ref;r.focus(),t.shouldSelect&&r.select()},getFieldState:M}}function tA(e={}){const t=u.useRef(),[o,r]=u.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...eA(e),formState:o};const n=t.current.control,i=u.useCallback((e=>{ij(e,n._proxyFormState,!0)&&(n._formState={...n._formState,...e},r({...n._formState}))}),[n]);return lj({subject:n._subjects.state,callback:i}),u.useEffect((()=>{n._stateFlags.mount||(n._proxyFormState.isValid&&n._updateValid(),n._stateFlags.mount=!0),n._stateFlags.watch&&(n._stateFlags.watch=!1,n._subjects.state.next({})),n._removeUnmounted()})),t.current.formState=rj(o,n._proxyFormState),t.current}var oA,rA,nA,iA,aA,sA,lA,cA,pA,uA,dA,fA,mA,hA,xA,bA,vA,gA,yA,wA,OA,SA,TA,CA,EA,kA,NA,RA=function(t){var r=t.control,n=t.name,i=t.inputProps,a=t.styles,s=t.labelsProps,l=t.defaultValue,c=void 0===l?"":l,p=t.optional,u=t.required,d="password"===i.type,f=b(d),m=f[0],h=f[1],x=i.rightIcon||d?{name:m?"View":"Hide",onClick:function(){return h((function(e){return!e}))}}:void 0,v=d?m?"password":"text":i.type;return r?o(mj,{name:n,control:r,rules:{required:u},defaultValue:c,render:function(t){var r=t.field,n=!!t.fieldState.error;return e(MA,R({style:a},{children:[s&&o(EI,R({},s,{ruleLabel:u?"REQUIRED":p?"OPTIONAL":void 0,isError:n})),o(K,{height:12}),o(oE,R({},i,r,{isError:n,rightIcon:x,type:v}))]}))}}):e(MA,R({style:a},{children:[s&&o(EI,R({},s)),o(K,{height:12}),o(oE,R({},i,{rightIcon:x,type:v}))]}))},MA=r.div(oA||(oA=L([""],[""]))),PA=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},$A=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},LA=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},IA=[{name:"firstName",type:"input",label:"First Name",required:!0,value:"Initial First Name"},{name:"lastName",type:"input",label:"Last Name",required:!0},{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"number",type:"input",label:"Phone Number",optional:!0},{name:"addressLine1",type:"input",label:"Address Line 1",optional:!0},{name:"addressLine2",type:"input",label:"Address Line 2",optional:!0,tooltip:"This is address line 2"},{name:"city",type:"input",label:"City",optional:!0},{name:"state",type:"select",label:"State",options:[{id:"USA",label:"USA"},{id:"UKRAINE",label:"Ukraine"}],optional:!0},{name:"zip",type:"input",label:"Zip Code",optional:!0},{name:"consent",type:"checkbox",label:"Confirm your consent",checkboxLabel:"I have read and I understand the provided information and have had the opportunity to ask questions. I understand that my participation is voluntary and that I am free to withdraw at any time, without giving a reason and without cost. I understand that I will be given a copy of this consent form."}],jA=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0},{name:"confirmPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],AA=[{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"password",type:"input",inputType:"password",label:"Password",required:!0},{name:"rememberMe",type:"checkbox",checkboxLabel:"Remember me"}],DA=function(r){var n=r.field,i=r.spacer,a=void 0===i?0:i,s=r.control,l=null,c=n.type,p=n.name,u=void 0===p?"":p,d=n.placeholder,f=n.tooltip,m=n.label,h=void 0===m?"":m,x=n.required,b=n.optional;switch(n.type){case"input":var v=n.inputType,g=n.maxLength;l=o(RA,{name:u.toString(),control:s,inputProps:{placeholder:d||PA(c,h),type:v,maxLength:g},labelsProps:{label:h,tooltipText:f},required:x,optional:b});break;case"select":var y=n.options;l=o(VA,{selectProps:{placeholder:d||PA(c,h),options:y},name:u.toString(),control:s,labelsProps:{label:h,tooltipText:f},required:x,optional:b});break;case"checkbox":var w=n.checkboxLabel;l=e(t,{children:[!!h&&e(t,{children:[o(FC,R({variant:"L"},{children:h})),o(K,{height:20})]}),o(zA,{name:u.toString(),control:s,checkboxProps:{label:w}})]})}return e(t,{children:[!!a&&o(K,{height:a}),l]})},zA=function(e){var t=e.control,r=e.name,n=e.checkboxProps,i=e.defaultValue;return o(mj,{name:r,control:t,defaultValue:void 0!==i&&i,render:function(e){var t=e.field,r=t.onChange,i=t.value;return o(WC,R({},n,{value:i,onClick:r}))}})},VA=function(t){var r=t.selectProps,n=t.name,i=void 0===n?"":n,a=t.defaultValue,s=void 0===a?"":a,l=t.optional,c=t.required,p=t.control,u=t.styles,d=t.labelsProps;return p?o(mj,{name:i,control:p,rules:{required:c},defaultValue:s,render:function(t){var n=t.field,i=!!t.fieldState.error;return e(_A,R({style:u},{children:[d&&o(EI,R({},d,{ruleLabel:c?"REQUIRED":l?"OPTIONAL":void 0,isError:i})),o(K,{height:12}),o(eE,R({},r,n,{isError:i}))]}))}}):e(_A,R({style:u},{children:[d&&o(EI,R({},d)),o(K,{height:12}),o(eE,R({},r))]}))},_A=r.div(rA||(rA=L([""],[""]))),BA=function(r){var n=r.rules,i=r.value,a=r.isSubmitted,s=void 0===a||a,l=r.label;return e(t,{children:[l&&e(t,{children:[o(WA,R({variant:"S"},{children:l})),o(K,{height:14})]}),o(FA,{children:n.map((function(e,t){return o(dE,{status:s?e.validate(i)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},t)}))})]})},FA=r.div(nA||(nA=L(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),WA=r(FC)(iA||(iA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),HA=r(FC).attrs({variant:"M"})(aA||(aA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),UA=n(sA||(sA=L(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),HA,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),qA=n(lA||(lA=L(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),HA,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),GA=r.div(pA||(pA=L(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.isActive;return n(cA||(cA=L(["\n padding: 24px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: 24px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.M,r.S,o.gray4,o.gray2,i?UA:qA)})),XA=r.div(dA||(dA=L(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(e){var t=e.theme.sizes,o=e.spacing;return n(uA||(uA=L(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),t[o])})),KA=function(t){var r=t.iconName,n=t.infoText,i=t.isActive,a=t.onClick,s=t.value;return e(GA,R({onClick:function(){return null==a?void 0:a(s)},isActive:i},{children:[o(BC,{name:r}),o(K,{height:12}),o(HA,{children:n})]}))},YA=function(e){var t=e.cards,r=e.handleChange,n=e.spacing,i=void 0===n?"M":n,a=e.initialValue,s=b(a),l=s[0],c=s[1],p=function(e){var t=e===l?void 0:e;null==r||r(t),c(t)};return o(XA,R({spacing:i},{children:t.map((function(e){return o(KA,R({},e,{isActive:l===e.value,onClick:p}),e.value)}))}))},ZA=function(r){var n=r.backgroundImage,i=r.button,a=r.title,s=r.description;return e(JA,{children:[o(eD,R({},n)),e(QA,{children:[o(tD,R({variant:"2XL"},{children:a})),!!s&&o(oD,R({variant:"M"},{children:s})),!!i&&e(t,{children:[o(K,{height:22}),o(ee,R({},i,{fullWidth:!!i.fullWidth}))]})]})]})},JA=r.div(fA||(fA=L(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"]))),QA=r.div(hA||(hA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes;return n(mA||(mA=L(["\n z-index: 1;\n padding: ","px ","px;\n "],["\n z-index: 1;\n padding: ","px ","px;\n "])),2.5*t["2XL"],t.XL+2*t.S)})),eD=r(lE)(xA||(xA=L(["\n object-fit: cover;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 0;\n"],["\n object-fit: cover;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 0;\n"]))),tD=r(FC)(bA||(bA=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.white})),oD=r(FC)(vA||(vA=L(["\n color: ",";\n margin-top: 6px;\n"],["\n color: ",";\n margin-top: 6px;\n"])),(function(e){return e.theme.colors.white})),rD=oe.sizes.L,nD={top:{borderBottomLeftRadius:rD,borderBottomRightRadius:rD},bottom:{borderTopRightRadius:rD,borderTopLeftRadius:rD},left:{borderBottomRightRadius:rD,borderTopRightRadius:rD},right:{borderTopLeftRadius:rD,borderBottomLeftRadius:rD}},iD=r(Qm)(yA||(yA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme.sizes,o=e.anchor;return n(gA||(gA=L(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n padding: ","px;\n ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n padding: ","px;\n ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),t["2XL"],nD[o])})),aD=r.div(OA||(OA=L(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,o=t.sizes,r=t.colors;return n(wA||(wA=L(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n &:hover {\n svg path {\n stroke: ",";\n }\n }\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n &:hover {\n svg path {\n stroke: ",";\n }\n }\n "])),U(o.L),o["2XL"],o["2XL"],r.gray1)})),sD=function(r){var n=r.children,i=M(r,["children"]);return o(iD,R({},i,{children:e(t,{children:[n,o(aD,R({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:o(BC,{size:32,name:"Close"})}))]})}))},lD=function(r){var n=r.title,i=r.icon,a=r.description,s=r.linkButton;return e(cD,{children:[!!i&&e(t,{children:[o(BC,{name:i}),o(K,{width:"XL"})]}),e(pD,{children:[o(FC,R({variant:"XL"},{children:n})),!!a&&e(t,{children:[o(K,{height:14}),o(FC,R({variant:"M"},{children:a}))]}),!!s&&e(t,{children:[o(K,{height:14}),o(uD,R({},s))]})]})]})},cD=r.div(SA||(SA=L(["\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n"]))),pD=r.div(TA||(TA=L(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"]))),uD=r(pE)(CA||(CA=L(["\n text-decoration-line: underline;\n"],["\n text-decoration-line: underline;\n"]))),dD=function(r){var n=r.title,i=r.onItemPress,a=r.options;return e(fD,{children:[!!n&&e(t,{children:[o(OI,R({padding:"M"},{children:o(FC,R({variant:"XL"},{children:n}))})),o(TI,{marginVertical:"M"})]}),o(OI,R({padding:"M"},{children:o(mD,{children:null==a?void 0:a.map((function(e){var t=e.id,r=e.title,n=e.onClick;return o(te,R({activeOpacity:.3,onClick:function(){null==i||i(t),null==n||n(t)}},{children:o(FC,R({variant:"M",color:"gray2"},{children:r}))}),t)}))})}))]})},fD=r.div(kA||(kA=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.sizes,r=t.colors;return n(EA||(EA=L(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,o.XL,o.M,o.XL,o.S)})),mD=r.div(NA||(NA=L(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),hD={adjustX:1,adjustY:1},xD=[0,0],bD={topLeft:{points:["bl","tl"],overflow:hD,offset:[0,-4],targetOffset:xD},topCenter:{points:["bc","tc"],overflow:hD,offset:[0,-4],targetOffset:xD},topRight:{points:["br","tr"],overflow:hD,offset:[0,-4],targetOffset:xD},bottomLeft:{points:["tl","bl"],overflow:hD,offset:[0,4],targetOffset:xD},bottomCenter:{points:["tc","bc"],overflow:hD,offset:[0,4],targetOffset:xD},bottomRight:{points:["tr","br"],overflow:hD,offset:[0,4],targetOffset:xD}},vD={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=vD.F1&&t<=vD.F12)return!1;switch(t){case vD.ALT:case vD.CAPS_LOCK:case vD.CONTEXT_MENU:case vD.CTRL:case vD.DOWN:case vD.END:case vD.ESC:case vD.HOME:case vD.INSERT:case vD.LEFT:case vD.MAC_FF_META:case vD.META:case vD.NUMLOCK:case vD.NUM_CENTER:case vD.PAGE_DOWN:case vD.PAGE_UP:case vD.PAUSE:case vD.PRINT_SCREEN:case vD.RIGHT:case vD.SHIFT:case vD.UP:case vD.WIN_KEY:case vD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=vD.ZERO&&e<=vD.NINE)return!0;if(e>=vD.NUM_ZERO&&e<=vD.NUM_MULTIPLY)return!0;if(e>=vD.A&&e<=vD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case vD.SPACE:case vD.QUESTION_MARK:case vD.NUM_PLUS:case vD.NUM_MINUS:case vD.NUM_PERIOD:case vD.NUM_DIVISION:case vD.SEMICOLON:case vD.DASH:case vD.EQUALS:case vD.COMMA:case vD.PERIOD:case vD.SLASH:case vD.APOSTROPHE:case vD.SINGLE_QUOTE:case vD.OPEN_SQUARE_BRACKET:case vD.BACKSLASH:case vD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gD=function(e){return+setTimeout(e,16)},yD=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(gD=function(e){return window.requestAnimationFrame(e)},yD=function(e){return window.cancelAnimationFrame(e)});var wD=0,OD=new Map;function SD(e){OD.delete(e)}function TD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=wD+=1;function r(t){if(0===t)SD(o),e();else{var n=gD((function(){r(t-1)}));OD.set(o,n)}}return r(t),o}TD.cancel=function(e){var t=OD.get(e);return SD(t),yD(t)};var CD=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),o=t.width,r=t.height;if(o||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=n.width,a=n.height;if(i||a)return!0}return!1};function ED(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(CD(e)){var o=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(o)||e.isContentEditable||"a"===o&&!!e.getAttribute("href"),n=e.getAttribute("tabindex"),i=Number(n),a=null;return n&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var kD=vD.ESC,ND=vD.TAB;function RD(e){var t=e.visible,o=e.setTriggerVisible,r=e.triggerRef,n=e.onVisibleChange,i=e.autoFocus,a=p.useRef(!1),s=function(){var e,i,a,s;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),o(!1),"function"==typeof n&&n(!1))},l=function(){var e,t,o,n,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=AL(e.querySelectorAll("*")).filter((function(e){return ED(e,t)}));return ED(e,t)&&o.unshift(e),o}(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(o=t.current)||void 0===o||null===(n=o.getElement)||void 0===n?void 0:n.call(o)),s=i[0];return!!(null==s?void 0:s.focus)&&(s.focus(),a.current=!0,!0)},c=function(e){switch(e.keyCode){case kD:s();break;case ND:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};p.useEffect((function(){return t?(window.addEventListener("keydown",c),i&&TD(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}var MD=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function PD(e,t){var o=e.arrow,r=void 0!==o&&o,n=e.prefixCls,i=void 0===n?"rc-dropdown":n,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=void 0===c?"bottomLeft":c,d=e.placements,f=void 0===d?bD:d,m=e.getPopupContainer,h=e.showAction,x=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,g=e.visible,y=e.trigger,w=void 0===y?["hover"]:y,O=e.autoFocus,S=vE(e,MD),T=UE(p.useState(),2),C=T[0],E=T[1],k="visible"in e?g:C,N=p.useRef(null);p.useImperativeHandle(t,(function(){return N.current})),RD({visible:k,setTriggerVisible:E,triggerRef:N,onVisibleChange:e.onVisibleChange,autoFocus:O});var R,M,P,$,L=function(){var t,o="function"==typeof(t=e.overlay)?t():t;return p.createElement(p.Fragment,null,r&&p.createElement("div",{className:"".concat(i,"-arrow")}),o)},I=x;return I||-1===w.indexOf("contextMenu")||(I=["click"]),p.createElement(fL,bE(bE({builtinPlacements:f},S),{},{prefixCls:i,ref:N,popupClassName:BE(b,hE({},"".concat(i,"-show-arrow"),r)),popupStyle:v,action:w,showAction:h,hideAction:I||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:k,stretch:function(){var t=e.minOverlayWidthMatchTrigger,o=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!o}()?"minWidth":"",popup:"function"==typeof e.overlay?L:L(),onPopupVisibleChange:function(t){var o=e.onVisibleChange;E(t),"function"==typeof o&&o(t)},onPopupClick:function(t){var o=e.onOverlayClick;E(!1),o&&o(t)},getPopupContainer:m}),(M=e.children,P=M.props?M.props:{},$=BE(P.className,void 0!==(R=e.openClassName)?R:"".concat(i,"-open")),k&&M?p.cloneElement(M,{className:$}):M))}var $D,LD,ID,jD,AD,DD,zD,VD,_D,BD,FD,WD,HD,UD,qD,GD,XD,KD,YD,ZD,JD,QD,ez,tz,oz,rz,nz,iz,az,sz,lz,cz,pz=p.forwardRef(PD),uz=function(t){var r=t.avatarProps,n=t.menuConfig,i=b(!1),a=i[0],s=i[1],l=o(dD,R({},n,{onItemPress:function(){return s(!1)}}));return o(pz,R({overlay:l,onVisibleChange:s,visible:a,trigger:"click",animation:"slide-up"},{children:e(dz,{children:[o(xI,R({},r)),o(K,{width:12}),o(fz,R({isOpen:a},{children:o(BC,{size:16,name:"CaretDown"})}))]})}))},dz=r(te)($D||($D=L(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),fz=r.div(ID||(ID=L(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(e){var t=e.isOpen,o=e.theme,r=o.colors,i=o.sizes;return t&&n(LD||(LD=L(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),i.XS,r.gray4)})),mz=r(FC).attrs({variant:"L"})(AD||(AD=L(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(e){var t=e.theme.colors;return n(jD||(jD=L(["\n color: ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n &:hover {\n color: ",";\n }\n "])),t.gray2,t.gray1)})),hz=r.div(VD||(VD=L(["\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n ",";\n"],["\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n ",";\n"])),(function(e){var t=e.theme.colors,o=e.isActive;return e.disabled?n(DD||(DD=L(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),mz,t.gray3):o?n(zD||(zD=L(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),mz,t.gray1):""})),xz=r.div(BD||(BD=L(["\n transition: 0.25s;\n margin-left: 10px;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(e){var t=e.theme.colors,o=e.isActive,r=e.disabled;return n(_D||(_D=L(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),o?"rotate(180deg)":"rotate(0deg)",r?t.gray3:t.gray1)})),bz=u.forwardRef((function(t,r){var n=t.options,i=t.onClick,a=t.text,s=t.tabKey,l=t.onOptionClick,c=M(t,["options","onClick","text","tabKey","onOptionClick"]),p=b(!1),u=p[0],d=p[1],f=g(null);w(r,(function(){return f.current}));var m=!!(null==n?void 0:n.length),h=o(dD,{options:n,onItemPress:function(e){null==l||l(e),d(!1)}});return o(pz,R({overlay:h,onVisibleChange:m?d:void 0,visible:u,trigger:"click",animation:"slide-up"},{children:e(hz,R({ref:f},c,{onClick:function(){null==i||i(s),m&&d(!0)}},{children:[o(mz,{children:a}),m&&o(xz,R({disabled:c.disabled,isActive:u},{children:o(BC,{name:"CaretDown"})}))]}))}))})),vz=r.div(FD||(FD=L(["\n display: flex;\n column-gap: ","px;\n width: fit-content;\n"],["\n display: flex;\n column-gap: ","px;\n width: fit-content;\n"])),(function(e){var t=e.spacing;return e.theme.sizes[t]})),gz=r.div(WD||(WD=L(["\n display: flex;\n flex-direction: column;\n width: fit-content;\n position: relative;\n"],["\n display: flex;\n flex-direction: column;\n width: fit-content;\n position: relative;\n"]))),yz=r.div(UD||(UD=L(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme,o=t.colors,r=t.sizes,i=e.width,a=e.left;return n(HD||(HD=L(["\n position: absolute;\n bottom: 0;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: 0;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),a,i,r.XS,o.gray4,r.XS)})),wz=function(t){var r=t.tabs,n=t.spacing,i=void 0===n?"L":n,a=t.activeTabKey,s=t.onTabChange,l=b(a),c=l[0],p=l[1],u=function(e){var t=b(0),o=t[0],r=t[1],n=b(0),i=n[0],a=n[1],s=b(0),l=s[0],c=s[1],p=g([]);return v((function(){var e=function(){var e,t,r=p.current[o];c(null!==(e=null==r?void 0:r.offsetLeft)&&void 0!==e?e:0),a(null!==(t=null==r?void 0:r.clientWidth)&&void 0!==t?t:0)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{setActiveTabIndex:r,tabUnderlineLeft:l,tabUnderlineWidth:i,tabsRef:p}}(c),d=u.tabsRef,f=u.setActiveTabIndex,m=u.tabUnderlineLeft,h=u.tabUnderlineWidth;return e(gz,{children:[o(vz,R({spacing:i},{children:r.map((function(e,t){return o(bz,R({ref:function(e){return d.current[t]=e}},e,{isActive:e.tabKey===c,onClick:function(){var o;o=null==e?void 0:e.tabKey,null==s||s(o),p(o),f(t)}}),e.tabKey)}))})),o(K,{height:12}),!!c&&o(yz,{left:m,width:h})]})},Oz=function(e){var t={text:e.label,validate:function(){return!0}},o=e.rule,r=Sz(o);if(r||Tz(o)){var n=function(e,t){return function(o){return void 0===o&&(o=0),e?o<=t:o>=t}}(r,r?o.MAX:o.MIN);switch(o.type){case"COUNT":t.validate=function(e){return n(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return n(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return n(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return n(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)}}}return t},Sz=function(e){return!!(null==e?void 0:e.MAX)},Tz=function(e){return!!(null==e?void 0:e.MIN)},Cz=function(r){var n=r.logoUrl,i=r.fields,a=r.validations,s=r.onBack,l=r.onSubmit,p=r.isLoading,u=c().sizes,d=a.map(Oz),f=tA({defaultValues:$A(i),mode:"onChange"}),m=f.control,h=f.reset,x=f.handleSubmit,b=f.formState,v=f.getValues,g=(0,f.watch)("password"),y=T((function(){var e=d.every((function(e){return e.validate(g)}));return b.isSubmitted?e&&LA(b):LA(b)}),[a,b]);return e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(kz,{children:"Set your account password."}),o(K,{height:14}),o(Ez,{children:"Set the password for your account in the Zeal Design System."}),i.map((function(e){return o(DA,{control:m,field:e,spacer:u.L},e.name.toString())})),o(K,{height:30}),o(BA,{value:g,isSubmitted:b.isSubmitted,rules:d}),e(Nz,{children:[o(ee,{onClick:x((function(){if(LA(b)&&d.every((function(e){return e.validate(g)}))){var e=v();e.password===e.confirmPassword?l(e):hI({message:"Passwords are not match",duration:1,type:"error"})}})),text:"Create password",variant:"primary",disabled:!b.isValid||!y,loading:p}),o(K,{width:"M"}),o(ee,{onClick:function(){s(),h()},text:"Back",variant:"secondary"})]})]})},Ez=r(FC).attrs({variant:"M"})(qD||(qD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),kz=r(FC).attrs({variant:"2XL"})(GD||(GD=L(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.indigo})),Nz=r.div(XD||(XD=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 30px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 30px;\n"]))),Rz=function(r){var n=r.logoUrl,i=r.fields,a=r.onSubmit,s=r.onLinkButtonClick,l=r.isLoading,p=c(),u=p.colors,d=p.sizes,f=tA({defaultValues:$A(i),mode:"onChange"}),m=f.control,h=f.handleSubmit,x=f.formState,b=f.getValues;return e(t,{children:[o("img",{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:u.indigo},{children:"Sign up."})),o(K,{height:14}),e(Mz,R({variant:"M"},{children:["Already have an account?",o(Pz,R({onClick:s},{children:"Log in"}))]})),i.map((function(e){return o(DA,{control:m,field:e,spacer:d.L},e.name.toString())})),o(K,{height:d.XL+d.S}),o(ee,{onClick:h((function(){return a(b())})),text:"Sign up",variant:"primary",disabled:!LA(x),loading:l})]})},Mz=r(FC)(KD||(KD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Pz=r(pE)(YD||(YD=L(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),$z=function(e){var t=b(1),o=t[0],r=t[1],n=o+1<=e,i=o-1>=1,a=C((function(t){var n=t instanceof Function?t(o):t;if(!(n>=1&&n<=e))throw new Error("Step not valid");r(n)}),[e,o]);return[o,{goToNextStep:function(){return n&&r((function(e){return e+1}))},goToPrevStep:function(){return i&&r((function(e){return e-1}))},canGoToNextStep:n,canGoToPrevStep:i,setStep:a,reset:function(){return r(1)}}]},Lz=[{iconName:"Mobile",infoText:"Text Message",isActive:!1,value:"sms"},{iconName:"Mail",infoText:"Email",isActive:!1,value:"email"}],Iz={name:"code",label:"Code",type:"input",placeholder:"Enter Six Digit Code",required:!0,tooltip:"Enter the code that was sent to you in the box below.",inputType:"number",maxLength:6},jz=r.div(ZD||(ZD=L(["\n display: flex;\n column-gap: ","px;\n"],["\n display: flex;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.L})),Az=function(r){var n=r.logoUrl,i=r.onSubmit,a=r.onBack,s=r.onNext,l=c(),p=l.colors,u=l.sizes,d=b(),f=d[0],m=d[1],h=b(""),x=h[0],v=h[1],g=tA({defaultValues:{code:x},mode:"onChange"}),y=g.control,w=g.formState,O=g.getValues,S=$z(2),T=S[0],C=S[1],E=C.canGoToNextStep,k=C.canGoToPrevStep,N=C.goToNextStep,M=C.goToPrevStep,L=[o(YA,{handleChange:m,cards:Lz,initialValue:f}),o(DA,{control:y,field:Iz})],I=1===T?!f:!w.isDirty||!w.isValid;return e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:p.indigo},{children:"Two factor authentication."})),o(K,{height:14}),o(FC,R({variant:"M"},{children:"How would you like to receive your code that will be used to authenticate your account?"})),o(K,{height:u.XL}),L[T-1],o(K,{height:u.XL}),e(jz,{children:[o(ee,{disabled:I,onClick:function(){return P(void 0,void 0,void 0,(function(){var e;return $(this,(function(t){return E&&f?(null==s||s(f).then(N),[2]):(e=O(),v(e.code),null==i||i(e),[2])}))}))},text:"Next",variant:"primary"}),o(ee,{onClick:function(){k?M():null==a||a()},text:"Back",variant:"secondary"})]})]})},Dz=function(r){var n=r.logoUrl,i=r.fields,a=r.onSubmit,s=r.onSignUpButtonClick,l=r.isLoading,p=r.twoFactorAuthConfig,u=r.onForgotPasswordButtonClick,d=c(),f=d.colors,m=d.sizes,h=tA({defaultValues:$A(i),mode:"onChange"}),x=h.control,b=h.handleSubmit,v=h.formState,g=h.getValues;return(null==p?void 0:p.twoFactorShow)?o(Az,R({},p.twoFactorAuthProps)):e(t,{children:[o(lE,{src:n,alt:"App Logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:f.indigo},{children:"Log in."})),o(K,{height:14}),e(zz,R({variant:"M"},{children:["Don’t have an account?",o(Vz,R({onClick:s},{children:"Sign up"}))]})),i.map((function(e){return o(DA,{control:x,field:e,spacer:m.L},e.name.toString())})),o(K,{height:"L"}),o(pE,R({onClick:u},{children:"Forgot your password?"})),o(K,{height:m.L+m.XS}),o(ee,{onClick:b((function(){return a(g())})),text:"Log in",variant:"primary",disabled:!LA(v),loading:l})]})},zz=r(FC)(JD||(JD=L(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Vz=r(pE)(QD||(QD=L(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),_z=r.div(ez||(ez=L(["\n width: 100%;\n"],["\n width: 100%;\n"]))),Bz=r(FC).attrs({variant:"XS"})(oz||(oz=L(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),(function(e){var t=e.theme.colors;return n(tz||(tz=L(["\n color: ",";\n :hover {\n color: ",";\n }\n "],["\n color: ",";\n :hover {\n color: ",";\n }\n "])),t.gray2,t.gray1)})),Fz=r.div(nz||(nz=L(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"])),48,(function(e){var t=e.theme,o=t.colors,r=t.sizes;return n(rz||(rz=L(["\n background-color: ",";\n column-gap: ","px;\n "],["\n background-color: ",";\n column-gap: ","px;\n "])),o.gray5,r.M)})),Wz=r.div(iz||(iz=L(["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n"],["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n"])),48),Hz=r.div(az||(az=L(["\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 24px;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 24px;\n"]))),Uz=function(t){var r=t.logoUrl,n=t.links,i=t.onActionButtonClick,a=t.tabs,s=t.withAvatar;return e(_z,{children:[!!(null==n?void 0:n.length)&&o(Fz,{children:n.map((function(e,t){var r=e.text,n=e.href;return o(Bz,R({onClick:function(){return function(e){return window.open(e,"_blank")}(n)}},{children:r}),t)}))}),e(Wz,{children:[o("img",{height:32,src:r,alt:"Header Logo"}),e(Hz,{children:[o(wz,{activeTabKey:"1",spacing:"XL",tabs:a}),s?o(uz,R({},s.props)):o(ee,{onClick:i,fullWidth:!1,text:"Log In or Sign Up"})]})]})]})},qz={name:"email",type:"input",label:"Email Address",placeholder:"Enter Email Address",required:!0,inputType:"email"},Gz=function(r){var n=r.logoUrl,i=r.onBack,a=r.onSubmit,s=r.isLoading,l=tA({defaultValues:{email:""},mode:"onChange"}),c=l.control,p=l.reset,u=l.handleSubmit,d=l.formState;return e(t,{children:[o(lE,{src:n,alt:"App logo"}),o(K,{height:46}),o(FC,R({variant:"2XL",color:"indigo"},{children:"Forgot your password?"})),o(K,{height:14}),o(FC,R({variant:"M",color:"gray2"},{children:"Enter your email address below. If there is an account in our system associated with that email address, you’ll get an email with password reset instructions."})),o(K,{height:"XL"}),o(DA,{control:c,field:qz}),o(K,{height:30}),e(Xz,{children:[o(ee,{onClick:a?u(a):void 0,variant:"primary",text:"Submit",disabled:!d.isValid||!LA(d),loading:s}),o(K,{width:"M"}),o(ee,{onClick:function(){null==i||i(),p()},text:"Back",variant:"secondary"})]})]})},Xz=r.div(sz||(sz=L(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Kz=function(r){var n=r.banner,i=r.header,a=r.renderContent;return e(t,{children:[o(Uz,R({},i)),n&&o(ZA,R({},n)),o(Yz,{children:a()})]})},Yz=r.div(lz||(lz=L(["\n padding: 0 ","px;\n margin-top: ","px;\n"],["\n padding: 0 ","px;\n margin-top: ","px;\n"])),(function(e){var t=e.theme.sizes;return t.XL+t.M}),(function(e){return e.theme.sizes.L})),Zz=function(e){var r=e.type,n=e.loginFormConfig,i=e.acquisitionFormConfig,a=e.forgotPasswordConfig,s=e.setPasswordConfig;switch(r){case"sign-up":return o(Rz,R({},i));case"sign-in":return o(Dz,R({},n));case"forgot-password":return o(Gz,R({},a));case"set-password":return o(Cz,R({},s));default:return o(t,{})}},Jz=function(r){var n=r.templateConfig,i=r.drawerContentConfig,a=r.drawerConfig;return e(t,{children:[o(Kz,R({},n)),o(sD,R({anchor:"right"},a,{children:o(Qz,{children:o(Zz,R({},i))})}))]})},Qz=r.div(cz||(cz=L(["\n width: 40vw;\n"],["\n width: 40vw;\n"])));export{Rz as AcquisitionForm,Jz as AuthPage,xI as Avatar,uz as AvatarDropdown,ZA as Banner,ee as Button,WC as Checkbox,zA as CheckboxField,BA as CustomValidation,Kz as DefaultTemplate,TI as Divider,sD as Drawer,EI as FieldLabels,DA as FieldMapper,Gz as ForgotPasswordForm,Uz as Header,OI as HorizontalPadding,BC as Icon,lE as Image,lD as InfoBox,oE as Input,RA as InputField,pE as LinkButton,Dz as LoginForm,dD as MenuItems,eE as Select,VA as SelectField,YA as SelectableCardGroup,Cz as SetPasswordForm,K as Spacer,Z as Spinner,OL as StyleWrapper,wz as TabGroup,FC as TextWrapper,SL as Tooltip,te as TouchableOpacity,Az as TwoFactorAuth,dE as ValidationTag,SI as VerticalPadding,VC as ZealThemeProvider,IA as acquisitionFormMockFields,oe as defaultTheme,PA as getFieldPlaceholder,$A as getInitialValuesFromFields,LA as isFormValid,AA as loginMockFields,jA as setPasswordMockFields,hI as toast,AC as toastStyles,$z as useStep};
|
245
245
|
//# sourceMappingURL=index.js.map
|