@docthub.frontend/app 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ interface OTPVerification {
13
13
  countDownTime?: any;
14
14
  variant?: string;
15
15
  phoneNumber?: any;
16
+ title?: string;
16
17
  }
17
18
  declare const OTPVerification: React.FC<OTPVerification>;
18
19
  export default OTPVerification;
@@ -292,7 +292,7 @@ function $o(e,t){const n=Ho(e,t);return"production"!==process.env.NODE_ENV?(...t
292
292
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
293
293
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
294
294
  * SOFTWARE.
295
- */var tV=JI&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},eV))}};function nV(e){return e&&"[object Function]"==={}.toString.call(e)}function rV(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function oV(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function aV(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=rV(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:aV(oV(e))}function iV(e){return e&&e.referenceNode?e.referenceNode:e}var sV=JI&&!(!window.MSInputMethodContext||!document.documentMode),lV=JI&&/MSIE 10/.test(navigator.userAgent);function cV(e){return 11===e?sV:10===e?lV:sV||lV}function uV(e){if(!e)return document.documentElement;for(var t=cV(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===rV(n,"position")?uV(n):n:e?e.ownerDocument.documentElement:document.documentElement}function dV(e){return null!==e.parentNode?dV(e.parentNode):e}function pV(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&uV(i.firstElementChild)!==i?uV(l):l;var c=dV(e);return c.host?pV(c.host,t):pV(e,dV(t).host)}function mV(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function fV(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function hV(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],cV(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function gV(e){var t=e.body,n=e.documentElement,r=cV(10)&&getComputedStyle(n);return{height:hV("Height",t,n,r),width:hV("Width",t,n,r)}}var bV=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),vV=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},yV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function xV(e){return yV({},e,{right:e.left+e.width,bottom:e.top+e.height})}function wV(e){var t={};try{if(cV(10)){t=e.getBoundingClientRect();var n=mV(e,"top"),r=mV(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?gV(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=rV(e);l-=fV(u,"x"),c-=fV(u,"y"),o.width-=l,o.height-=c}return xV(o)}function EV(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cV(10),o="HTML"===t.nodeName,a=wV(e),i=wV(t),s=aV(e),l=rV(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=xV({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=mV(t,"top"),o=mV(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(d,t)),d}function CV(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===rV(e,"position"))return!0;var n=oV(e);return!!n&&CV(n)}function kV(e){if(!e||!e.parentElement||cV())return document.documentElement;for(var t=e.parentElement;t&&"none"===rV(t,"transform");)t=t.parentElement;return t||document.documentElement}function SV(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?kV(e):pV(e,iV(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=EV(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:mV(n),s=t?0:mV(n,"left");return xV({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=aV(oV(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=EV(s,i,o);if("HTML"!==s.nodeName||CV(i))a=l;else{var c=gV(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function NV(e){return e.width*e.height}function MV(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=SV(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(e){return yV({key:e},s[e],{area:NV(s[e])})}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function OV(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return EV(n,r?kV(t):pV(t,iV(n)),r)}function TV(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function DV(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function PV(e,t,n){n=n.split("-")[0];var r=TV(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[DV(s)],o}function AV(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function FV(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=AV(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n));return r.forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&nV(n)&&(t.offsets.popper=xV(t.offsets.popper),t.offsets.reference=xV(t.offsets.reference),t=n(t,e))}),t}function RV(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=OV(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=MV(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=PV(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=FV(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function IV(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function VV(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function jV(){return this.state.isDestroyed=!0,IV(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[VV("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function LV(e){var t=e.ownerDocument;return t?t.defaultView:window}function HV(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||HV(aV(a.parentNode),t,n,r),r.push(a)}function _V(e,t,n,r){n.updateBound=r,LV(e).addEventListener("resize",n.updateBound,{passive:!0});var o=aV(e);return HV(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function BV(){this.state.eventsEnabled||(this.state=_V(this.reference,this.options,this.state,this.scheduleUpdate))}function UV(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return LV(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function $V(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function zV(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$V(t[n])&&(r="px"),e.style[n]=t[n]+r})}var WV=JI&&/Firefox/i.test(navigator.userAgent);function ZV(e,t,n){var r=AV(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var YV=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],qV=YV.slice(3);function GV(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=qV.indexOf(e),r=qV.slice(n+1).concat(qV.slice(0,n));return t?r.reverse():r}var KV="flip",XV="clockwise",QV="counterclockwise";function JV(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(AV(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return xV("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),c.forEach(function(e,t){e.forEach(function(n,r){$V(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var ej={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:vV({},l,a[l]),end:vV({},l,a[l]+a[c]-i[c])};e.offsets.popper=yV({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=$V(+n)?[+n,0]:JV(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||uV(e.instance.popper);e.instance.reference===n&&(n=uV(n));var r=VV("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=SV(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),vV({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),vV({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=yV({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ZV(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=TV(r)[c];s[m]-f<i[d]&&(e.offsets.popper[d]-=i[d]-(s[m]-f)),s[d]+f>i[m]&&(e.offsets.popper[d]+=s[d]+f-i[m]),e.offsets.popper=xV(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=rV(e.instance.popper),b=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),y=h-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(i[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(vV(n={},d,Math.round(y)),vV(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(IV(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=SV(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=DV(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case KV:i=[r,o];break;case XV:i=GV(r);break;case QV:i=GV(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=DV(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===a&&m||v&&"end"===a&&f||!v&&"start"===a&&h||!v&&"end"===a&&g),x=!!t.flipVariationsByContent&&(v&&"start"===a&&f||v&&"end"===a&&m||!v&&"start"===a&&g||!v&&"end"===a&&h),w=y||x;(p||b||w)&&(e.flipped=!0,(p||b)&&(r=i[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=yV({},e.offsets.popper,PV(e.instance.popper,e.offsets.reference,e.placement)),e=FV(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=DV(t),e.offsets.popper=xV(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ZV(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=AV(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=AV(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=uV(e.instance.popper),l=wV(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:i:s,m=t?a:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!WV),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=VV("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===p?-1:1;c[d]=h*g,c[p]=f*b,c.willChange=d+", "+p}var v={"x-placement":e.placement};return e.attributes=yV({},v,e.attributes),e.styles=yV({},c,e.styles),e.arrowStyles=yV({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return zV(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&zV(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=OV(o,t,e,n.positionFixed),i=MV(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),zV(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},tj={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ej},nj=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tV(this.update.bind(this)),this.options=yV({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(yV({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=yV({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return yV({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&nV(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return bV(e,[{key:"update",value:function(){return RV.call(this)}},{key:"destroy",value:function(){return jV.call(this)}},{key:"enableEventListeners",value:function(){return BV.call(this)}},{key:"disableEventListeners",value:function(){return UV.call(this)}}]),e}();nj.Utils=("undefined"!=typeof window?window:global).PopperUtils,nj.placements=YV,nj.Defaults=tj;var rj=nj;var oj="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,aj=e.forwardRef(function(t,n){var r=t.children,o=t.container,a=t.disablePortal,i=void 0!==a&&a,s=t.onRendered,l=e.useState(null),c=l[0],u=l[1],d=pI(e.isValidElement(r)?r.ref:null,n);return oj(function(){i||u(function(e){return e="function"==typeof e?e():e,k.findDOMNode(e)}(o)||document.body)},[o,i]),oj(function(){if(c&&!i)return lI(n,c),function(){lI(n,null)}},[n,c,i]),oj(function(){s&&(c||i)&&s()},[s,c,i]),i?e.isValidElement(r)?e.cloneElement(r,{ref:d}):r:c?k.createPortal(r,c):c});"production"!==process.env.NODE_ENV&&(aj.propTypes={children:ee.exports.node,container:ee.exports.oneOfType([_F,ee.exports.instanceOf(e.Component),ee.exports.func]),disablePortal:ee.exports.bool,onRendered:oI(ee.exports.func,"Use the ref instead.")}),"production"!==process.env.NODE_ENV&&(aj.propTypes=TF(aj.propTypes));var ij=aj;function sj(e){return"function"==typeof e?e():e}var lj="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,cj={},uj=e.forwardRef(function(t,n){var r=t.anchorEl,o=t.children,a=t.container,i=t.disablePortal,s=void 0!==i&&i,l=t.keepMounted,c=void 0!==l&&l,u=t.modifiers,d=t.open,p=t.placement,m=void 0===p?"bottom":p,f=t.popperOptions,h=void 0===f?cj:f,g=t.popperRef,b=t.style,v=t.transition,y=void 0!==v&&v,x=zF(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=e.useRef(null),E=pI(w,n),C=e.useRef(null),k=pI(C,g),S=e.useRef(k);lj(function(){S.current=k},[k]),e.useImperativeHandle(g,function(){return C.current},[]);var N=e.useState(!0),M=N[0],O=N[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,eR()),D=e.useState(T),P=D[0],A=D[1];e.useEffect(function(){C.current&&C.current.update()});var F=e.useCallback(function(){if(w.current&&r&&d){C.current&&(C.current.destroy(),S.current(null));var e=function(e){A(e.placement)},t=sj(r);if("production"!==process.env.NODE_ENV&&t&&1===t.nodeType){var n=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom&&console.warn(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}var o=new rj(sj(r),w.current,G({placement:T},h,{modifiers:G({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,h.modifiers),onCreate:$F(e,h.onCreate),onUpdate:$F(e,h.onUpdate)}));S.current(o)}},[r,s,u,d,T,h]),R=e.useCallback(function(e){lI(E,e),F()},[E,F]),I=function(){C.current&&(C.current.destroy(),S.current(null))};if(e.useEffect(function(){return function(){I()}},[]),e.useEffect(function(){d||y||I()},[d,y]),!c&&!d&&(!y||M))return null;var V={placement:P};return y&&(V.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),e.createElement(ij,{disablePortal:s,container:a},e.createElement("div",G({ref:R,role:"tooltip"},x,{style:G({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},b)}),"function"==typeof o?o(V):o))});"production"!==process.env.NODE_ENV&&(uj.propTypes={anchorEl:wF(ee.exports.oneOfType([_F,ee.exports.object,ee.exports.func]),function(e){if(e.open){var t=sj(e.anchorEl);if(t&&1===t.nodeType){var n=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"number"!=typeof t.clientWidth||"number"!=typeof t.clientHeight||"function"!=typeof t.getBoundingClientRect)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a referenceObject ","(https://popper.js.org/docs/v1/#referenceObject)."].join("\n"))}return null}),children:ee.exports.oneOfType([ee.exports.node,ee.exports.func]).isRequired,container:ee.exports.oneOfType([_F,ee.exports.instanceOf(e.Component),ee.exports.func]),disablePortal:ee.exports.bool,keepMounted:ee.exports.bool,modifiers:ee.exports.object,open:ee.exports.bool.isRequired,placement:ee.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:ee.exports.object,popperRef:BF,style:ee.exports.object,transition:ee.exports.bool});var dj=uj;function pj(e){return Math.round(1e5*e)/1e5}var mj=!1,fj=null,hj=e.forwardRef(function(t,n){var r=t.arrow,o=void 0!==r&&r,a=t.children,i=t.classes,s=t.disableFocusListener,l=void 0!==s&&s,c=t.disableHoverListener,u=void 0!==c&&c,d=t.disableTouchListener,p=void 0!==d&&d,m=t.enterDelay,f=void 0===m?100:m,h=t.enterNextDelay,g=void 0===h?0:h,b=t.enterTouchDelay,v=void 0===b?700:b,y=t.id,x=t.interactive,w=void 0!==x&&x,E=t.leaveDelay,C=void 0===E?0:E,S=t.leaveTouchDelay,N=void 0===S?1500:S,M=t.onClose,O=t.onOpen,T=t.open,D=t.placement,P=void 0===D?"bottom":D,A=t.PopperComponent,F=void 0===A?dj:A,R=t.PopperProps,I=t.title,V=t.TransitionComponent,j=void 0===V?QI:V,L=t.TransitionProps,H=zF(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),_=ZI(),B=e.useState(),U=B[0],$=B[1],z=e.useState(null),W=z[0],Z=z[1],Y=e.useRef(!1),q=e.useRef(),K=e.useRef(),X=e.useRef(),Q=e.useRef(),J=$R(cI({controlled:T,default:!1,name:"Tooltip",state:"open"}),2),ee=J[0],te=J[1],ne=ee;if("production"!==process.env.NODE_ENV){var re=e.useRef(void 0!==T).current;e.useEffect(function(){U&&U.disabled&&!re&&""!==I&&"button"===U.tagName.toLowerCase()&&console.error(["Material-UI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))},[I,U,re])}var oe=mI(y);e.useEffect(function(){return function(){clearTimeout(q.current),clearTimeout(K.current),clearTimeout(X.current),clearTimeout(Q.current)}},[]);var ae=function(e){clearTimeout(fj),mj=!0,te(!0),O&&O(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),Y.current&&"touchstart"!==t.type||(U&&U.removeAttribute("title"),clearTimeout(K.current),clearTimeout(X.current),f||mj&&g?(t.persist(),K.current=setTimeout(function(){ae(t)},mj?g:f)):ae(t))}},se=CI(),le=se.isFocusVisible,ce=se.onBlurVisible,ue=se.ref,de=e.useState(!1),pe=de[0],me=de[1],fe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){U||$(t.currentTarget),le(t)&&(me(!0),ie()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},he=function(e){clearTimeout(fj),fj=setTimeout(function(){mj=!1},800+C),te(!1),M&&M(e),clearTimeout(q.current),q.current=setTimeout(function(){Y.current=!1},_.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),pe&&(me(!1),ce())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===U&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(X.current),t.persist(),X.current=setTimeout(function(){he(t)},C)}},be=function(e){Y.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},ve=pI($,n),ye=pI(ue,ve),xe=e.useCallback(function(e){lI(ye,k.findDOMNode(e))},[ye]),we=pI(a.ref,xe);""===I&&(ne=!1);var Ee=G({"aria-describedby":ne?oe:null,title:!ne&&!u&&"string"==typeof I?I:null},H,a.props,{className:FA(H.className,a.props.className),onTouchStart:be,ref:we}),Ce={};p||(Ee.onTouchStart=function(e){be(e),clearTimeout(X.current),clearTimeout(q.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout(function(){ie()(e)},v)},Ee.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout(function(){he(e)},N)}),u||(Ee.onMouseOver=ie(),Ee.onMouseLeave=ge(),w&&(Ce.onMouseOver=ie(!1),Ce.onMouseLeave=ge(!1))),l||(Ee.onFocus=fe(),Ee.onBlur=ge(),w&&(Ce.onFocus=fe(!1),Ce.onBlur=ge(!1))),"production"!==process.env.NODE_ENV&&a.props.title&&console.error(["Material-UI: You have provided a `title` prop to the child of <Tooltip />.","Remove this title prop `".concat(a.props.title,"` or the Tooltip component.")].join("\n"));var ke=e.useMemo(function(){return CF({popperOptions:{modifiers:{arrow:{enabled:Boolean(W),element:W}}}},R)},[W,R]);return e.createElement(e.Fragment,null,e.cloneElement(a,Ee),e.createElement(F,G({className:FA(i.popper,w&&i.popperInteractive,o&&i.popperArrow),placement:P,anchorEl:U,open:!!U&&ne,id:Ee["aria-describedby"],transition:!0},Ce,ke),function(t){var n=t.placement,r=t.TransitionProps;return e.createElement(j,G({timeout:_.transitions.duration.shorter},r,L),e.createElement("div",{className:FA(i.tooltip,i["tooltipPlacement".concat(UF(n.split("-")[0]))],Y.current&&i.touch,o&&i.tooltipArrow)},I,o?e.createElement("span",{className:i.arrow,ref:Z}):null))}))});"production"!==process.env.NODE_ENV&&(hj.propTypes={arrow:ee.exports.bool,children:NF.isRequired,classes:ee.exports.object,className:ee.exports.string,disableFocusListener:ee.exports.bool,disableHoverListener:ee.exports.bool,disableTouchListener:ee.exports.bool,enterDelay:ee.exports.number,enterNextDelay:ee.exports.number,enterTouchDelay:ee.exports.number,id:ee.exports.string,interactive:ee.exports.bool,leaveDelay:ee.exports.number,leaveTouchDelay:ee.exports.number,onClose:ee.exports.func,onOpen:ee.exports.func,open:ee.exports.bool,placement:ee.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:ee.exports.elementType,PopperProps:ee.exports.object,title:ee.exports.node.isRequired,TransitionComponent:ee.exports.elementType,TransitionProps:ee.exports.object});var gj=JR(function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:TR(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(pj(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:TR(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(pj(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:OF({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:OF({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:OF({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:OF({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(hj);Bc(".social-share-list-wrapper-class {\n z-index: 1;\n}\n.social-share-list-wrapper-class .MuiIconButton-root {\n color: #afafaf !important;\n}\n.social-share-list-wrapper-class .social-share-list {\n top: 42px;\n left: 50%;\n transform: translateX(-50%);\n box-shadow: 0px 2px 13px -8px rgba(0, 0, 0, 0.5);\n transition: 0.3s all;\n height: 0;\n overflow: hidden;\n background: #ffffff;\n z-index: 999999999;\n}\n.social-share-list-wrapper-class .social-share-list li {\n padding: 4px 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:first-child {\n padding-top: 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:last-child {\n padding-bottom: 8px;\n}\n.social-share-list-wrapper-class .social-share-list button,\n.social-share-list-wrapper-class .social-share-list svg {\n width: 32px;\n height: 32px;\n}\n.social-share-list-wrapper-class .social-share-list svg {\n border-radius: 4px;\n}\n\n.social-share-list-bakcdrop {\n z-index: 0 !important;\n}");var bj=function(e){var n=e.redirectUrl,r=void 0===n?window.location.href:n,o=e.className,a=e.menuProps,i=l(0),s=i[0],u=i[1],d=t.useState(null),p=d[0],m=d[1];c(function(){var e=document.querySelector(".social-share-list").scrollHeight;u(e)},[]);var f=Boolean(p),h={height:"".concat(f?s:0,"px")};return t.createElement("div",{className:"position-relative social-share-list-wrapper-class"},t.createElement(gj,{title:"".concat(f?"Close Share":"Open Share"),placement:"top"},t.createElement(WI,{className:"".concat(f&&"active-btn"),"aria-label":"delete",size:"small",onClick:function(e){m(p?null:e.currentTarget)}},f?t.createElement(II,null):t.createElement(TI,null))),t.createElement("ul",{className:"social-share-list",style:h},t.createElement(zE,Zc({anchorEl:p,id:"account-menu",open:f,className:o?"".concat(o," social-share-list-bakcdrop"):"social-share-list-bakcdrop",PaperProps:{elevation:0,sx:{boxShadow:"none",border:"1px solid #00000014",mt:1.5,mb:0}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"}},a),t.createElement("li",null,t.createElement(uF,{url:r},t.createElement(aF,{size:34}))),t.createElement("li",null,t.createElement(fF,{url:r},t.createElement(mF,{size:34}))),t.createElement("li",null,t.createElement(gF,{url:r},t.createElement(hF,{size:34}))),t.createElement("li",null,t.createElement(pF,{url:r},t.createElement(dF,{size:34}))),t.createElement("li",null,t.createElement(oF,{url:r},t.createElement(WA,{size:34}))))))},vj=function(e){var n=e.error,r=e.verifiedMessage,o=e.onResendClick,a=e.setOtpValues,i=e.otpValues,s=e.isResendDisable,d=e.countDownTime,p=void 0===d?60:d,m=l(p),f=m[0],h=m[1],g=l(!1);g[0];var b=g[1],v=[u(),u(),u(),u(),u(),u()];return c(function(){if(0!==f){var e=setInterval(function(){h(function(e){return e-1})},1e3);return function(){return clearInterval(e)}}},[f]),c(function(){h(p)},[p]),c(function(){var e=i.findIndex(function(e){return""===e});-1!==e&&v[e].current.focus()},[i]),t.createElement(t.Fragment,null,t.createElement("div",{className:"d-flex justify-content-center align-items-center"},i.map(function(e,n){return t.createElement("input",{key:n,ref:v[n],value:e,onChange:function(e){return function(e,t){var n=e.target,r=n.value,o=n.keyCode;/^\d*$/.test(r)&&(a(function(e){return e.map(function(e,n){return n===t?r:e})}),8!==o&&""!==r||0===t||v[t-1].current.focus(),8!==o&&t!==i.length-1&&1===r.length&&v[t+1].current.focus())}(e,n)},onPaste:function(e){return function(e){var t=e.clipboardData.getData("text").trim();t.length===i.length&&/^\d*$/.test(t)&&(a(t.split("")),v[i.length-1].current.focus())}(e)},onKeyDown:function(t){8===t.keyCode&&""===e&&0!==n&&v[n-1].current.focus()},onKeyPress:function(e){var t=e.which?e.which:e.keyCode;(t<48||t>57)&&e.preventDefault()},onInput:function(e){var t=e.target.value;e.target.value=t.replace(/[^0-9]/g,"")},onCut:function(e){e.preventDefault()},onCopy:function(e){e.preventDefault()},onDrag:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},className:"otp-input text-center box-shadow",type:"text",inputMode:"numeric",maxLength:1})})),n&&t.createElement(z,{variant:"textLabel2",className:"text-danger font-italic text-center"},"Incorrect OTP, Please enter correct code."),r&&t.createElement(z,{variant:"textLabel2",className:"text-danger font-italic text-center"},r),t.createElement(z,{variant:"textLabel2",className:"text-center text-grey-600"},"If OTP doesn’t arrive, you can get a new one in ",f," seconds"),t.createElement("div",{className:"d-flex justify-content-center align-items-center"},t.createElement(W,{text:"Resend",variant:"text",type:"inverse",size:"medium",disabled:0!=f||s,onButtonClickHandler:function(){b(function(e){return e}),o()}})))};Bc(".otp-input {\n width: 46px !important;\n height: 46px !important;\n margin: 0 6px;\n border-radius: 3px;\n border: 1px;\n}\n\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header p {\n font-size: 14px !important;\n}\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header svg {\n display: none !important;\n}\n.otp-verification-modal .MuiBackdrop-root {\n pointer-events: none !important;\n}\n\ninput[type=number] {\n appearance: textfield;\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n}\ninput[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n margin: 0;\n}");var yj=function(e){var n=e.handleClose,r=e.error,o=e.verifiedMessage,a=e.open,i=e.onResendClick,s=e.onButtonSubmit,u=e.isOTPValue,d=e.isResendDisable,p=e.countDownTime,m=e.variant,f=e.phoneNumber,h=l(["","","","","",""]),g=h[0],b=h[1],v=l(""),y=v[0],x=v[1],w=l("OTP Verification for Change Number"),E=w[0],C=w[1];c(function(){b(["","","","","",""])},[u]),c(function(){"mobile"===m?(x("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone. If you do not receive in a 60 seconds, try to resend."),C("OTP Verification for change Number")):"password"===m?(x("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),C("OTP Verification for Change Password")):"email"===m?(x("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),C("OTP Verification for Change Email")):"newMobile"===m?(x('We have sent you an OTP to your<br/> new mobile number,<br/> <span class="font-weight-bold"> +91 '.concat(f,"<br/> </span> Please check your phone. If you do not receive in a 60 seconds, try to resend, or check your number.")),C("OTP Verification for New Mobile Number")):(x("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone, If do not receive in a 60 <br/> seconds, Try Resend."),C("OTP Verification of Mobile Number"))},[m]);return t.createElement(t.Fragment,null,t.createElement(NA,{open:a,title:E,width:360,iconName:"",primaryBtnText:"Submit",className:"otp-verification-modal",handleClose:n,handlePrimaryButtonClick:function(){var e=null==g?void 0:g.join("");s(e)},disableBackdropClick:!0},t.createElement("div",{className:"text-label-1 mb-3 text-center",dangerouslySetInnerHTML:{__html:y}}),t.createElement(vj,{error:r,verifiedMessage:o,onResendClick:i,setOtpValues:b,otpValues:g,isResendDisable:d,countDownTime:p})))},xj=e=>e instanceof HTMLElement;const wj="blur",Ej="change",Cj="input",kj="onBlur",Sj="onChange",Nj="onSubmit",Mj="onTouched",Oj="all",Tj="select",Dj="undefined",Pj="max",Aj="min",Fj="maxLength",Rj="minLength",Ij="pattern",Vj="required",jj="validate";var Lj=e=>null==e;const Hj=e=>"object"==typeof e;var _j=e=>!Lj(e)&&!Array.isArray(e)&&Hj(e)&&!(e instanceof Date),Bj=e=>/^\w*$/.test(e),Uj=e=>e.filter(Boolean),$j=e=>Uj(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function zj(e,t,n){let r=-1;const o=Bj(t)?[t]:$j(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=_j(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var Wj=(e,t={})=>{for(const n in e)Bj(n)?t[n]=e[n]:zj(t,n,e[n]);return t},Zj=e=>void 0===e,Yj=(e={},t,n)=>{const r=Uj(t.split(/[,[\].]+?/)).reduce((e,t)=>Lj(e)?e:e[t],e);return Zj(r)||r===e?Zj(e[t])?n:e[t]:r},qj=(e,t)=>{xj(e)&&e.removeEventListener&&(e.removeEventListener(Cj,t),e.removeEventListener(Ej,t),e.removeEventListener(wj,t))};const Gj={isValid:!1,value:null};var Kj=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,Gj):Gj,Xj=e=>"radio"===e.type,Qj=e=>"file"===e.type,Jj=e=>"checkbox"===e.type,eL=e=>e.type===`${Tj}-multiple`;const tL={value:!1,isValid:!1},nL={value:!0,isValid:!0};var rL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!Zj(r.value)?Zj(n)||""===n?nL:{value:n,isValid:!0}:nL:tL}return tL};function oL(e,t,n,r,o){const a=e.current[t];if(a){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:l,setValueAs:c}=a;if(t&&r)return;return Qj(n)?n.files:Xj(n)?Kj(a.options).value:eL(n)?(i=n.options,[...i].filter(({selected:e})=>e).map(({value:e})=>e)):Jj(n)?rL(a.options).value:o?e:s?""===e?NaN:+e:l?n.valueAsDate:c?c(e):e}var i;if(n)return Yj(n.current,t)}function aL(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&aL(e.parentNode)}var iL=e=>_j(e)&&!Object.keys(e).length,sL=e=>"boolean"==typeof e;function lL(e,t){const n=Bj(t)?[t]:$j(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Zj(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(_j(r)&&iL(r)||Array.isArray(r)&&!r.filter(e=>_j(e)&&!iL(e)||sL(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const cL=(e,t)=>e&&e.ref===t;var uL=e=>Lj(e)||!Hj(e);function dL(e,t){if(uL(e)||uL(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=_j(r)&&_j(o)||Array.isArray(r)&&Array.isArray(o)?dL(r,o):o}catch(e){}}return e}function pL(e,t,n){if(uL(e)||uL(t)||e instanceof Date||t instanceof Date)return e===t;if(!a(e)){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const o of r){const r=e[o];if(!n||"ref"!==o){const e=t[o];if((_j(r)||Array.isArray(r))&&(_j(e)||Array.isArray(e))?!pL(r,e,n):r!==e)return!1}}}return!0}function mL(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],mL(e[a][r],Yj(t[a]||{},r,[]),n[a][r],n[a],r)):pL(Yj(t[a]||{},r),e[a][r])?zj(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var fL=e=>"string"==typeof e,hL=(e,t,n,r,o)=>{const a={};for(const t in e.current)(Zj(o)||(fL(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=oL(e,t,void 0,r));return n?Wj(a):dL(t,Wj(a))},gL=e=>e instanceof RegExp,bL=e=>_j(e)&&!gL(e)?e:{value:e,message:""},vL=e=>"function"==typeof e,yL=e=>fL(e)||a(e);function xL(e,t,n="validate"){if(yL(e)||sL(e)&&!e)return{type:n,message:yL(e)?e:"",ref:t}}var wL=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},EL=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:l,max:c,pattern:u,validate:d},p)=>{const m=n.name,f={},h=Xj(n),g=Jj(n),b=h||g,v=""===r,y=wL.bind(null,m,t,f),x=(e,t,r,o=Fj,a=Rj)=>{const i=e?t:r;f[m]=Object.assign({type:e?o:a,message:i,ref:n},y(e?o:a,i))};if(a&&(!h&&!g&&(v||Lj(r))||sL(r)&&!r||g&&!rL(o).isValid||h&&!Kj(o).isValid)){const{value:r,message:o}=yL(a)?{value:!!a,message:a}:bL(a);if(r&&(f[m]=Object.assign({type:Vj,message:o,ref:b?((e.current[m].options||[])[0]||{}).ref:n},y(Vj,o)),!t))return f}if(!(Lj(l)&&Lj(c)||""===r)){let e,o;const a=bL(c),i=bL(l);if(isNaN(r)){const t=n.valueAsDate||new Date(r);fL(a.value)&&(e=t>new Date(a.value)),fL(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);Lj(a.value)||(e=t>a.value),Lj(i.value)||(o=t<i.value)}if((e||o)&&(x(!!e,a.message,i.message,Pj,Aj),!t))return f}if(fL(r)&&!v&&(i||s)){const e=bL(i),n=bL(s),o=!Lj(e.value)&&r.length>e.value,a=!Lj(n.value)&&r.length<n.value;if((o||a)&&(x(o,e.message,n.message),!t))return f}if(fL(r)&&u&&!v){const{value:e,message:o}=bL(u);if(gL(e)&&!e.test(r)&&(f[m]=Object.assign({type:Ij,message:o,ref:n},y(Ij,o)),!t))return f}if(d){const r=oL(e,m,p,!1,!0),a=b&&o?o[0].ref:n;if(vL(d)){const e=xL(await d(r),a);if(e&&(f[m]=Object.assign(Object.assign({},e),y(jj,e.message)),!t))return f}else if(_j(d)){let e={};for(const[n,o]of Object.entries(d)){if(!iL(e)&&!t)break;const i=xL(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),y(n,i.message)),t&&(f[m]=e))}if(!iL(e)&&(f[m]=Object.assign({ref:a},e),!t))return f}}return f};const CL=(e,t,n=[])=>{for(const r in t){const o=e+(_j(t)?`.${r}`:`[${r}]`);uL(t[r])?n.push(o):CL(o,t[r],n)}return n};var kL=(e,t,n,r,o)=>{let a;return n.add(t),iL(e)||(a=Yj(e,t),(_j(a)||Array.isArray(a))&&CL(t,a).forEach(e=>n.add(e))),Zj(a)?o?r:Yj(r,t):a},SL=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:l})=>!l&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),NL=e=>e.substring(0,e.indexOf("["));var ML=(e,t)=>[...e].some(e=>((e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e))(t,e));var OL=typeof window!==Dj&&typeof document!==Dj;function TL(e){var t;let n;if(uL(e)||OL&&(e instanceof File||xj(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,TL(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=TL(e[t]);return n}var DL=e=>({isOnSubmit:!e||e===Nj,isOnBlur:e===kj,isOnChange:e===Sj,isOnAll:e===Oj,isOnTouch:e===Mj}),PL=e=>Xj(e)||Jj(e);const AL=typeof window===Dj,FL=OL?"Proxy"in window:typeof Proxy!==Dj;function RL({mode:e=Nj,reValidateMode:t=Sj,resolver:n,context:r,defaultValues:o={},shouldFocusError:a=!0,shouldUnregister:i=!0,criteriaMode:s}={}){const d=u({}),p=u({}),h=u({}),g=u(new Set),b=u({}),v=u({}),y=u({}),x=u({}),w=u(o),E=u(!1),C=u(!1),k=u(),S=u({}),N=u({}),M=u(r),O=u(n),T=u(new Set),D=u(DL(e)),{isOnSubmit:P,isOnTouch:A}=D.current,F=s===Oj,[R,I]=l({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!P,errors:{}}),V=u({isDirty:!FL,dirtyFields:!FL,touched:!FL||A,isValidating:!FL,isSubmitting:!FL,isValid:!FL}),j=u(R),L=u(),{isOnBlur:H,isOnChange:_}=u(DL(t)).current;M.current=r,O.current=n,j.current=R,S.current=i?{}:iL(S.current)?TL(o):S.current;const B=m((e={})=>{E.current||(j.current=Object.assign(Object.assign({},j.current),e),I(j.current))},[]),U=()=>V.current.isValidating&&B({isValidating:!0}),$=m((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=Zj(n),i=Yj(e,t);return a&&!!i||!a&&!pL(i,n,!0)||a&&Yj(o,t)&&!Yj(r,t)})({errors:j.current.errors,error:t,name:e,validFields:x.current,fieldsWithValidation:y.current});const i=Yj(j.current.errors,e);t?(lL(x.current,e),a=a||!i||!pL(i,t,!0),zj(j.current.errors,e,t)):((Yj(y.current,e)||O.current)&&(zj(x.current,e,!0),a=a||i),lL(j.current.errors,e)),(a&&!Lj(n)||!iL(r)||V.current.isValidating)&&B(Object.assign(Object.assign(Object.assign({},r),O.current?{isValid:!!o}:{}),{isValidating:!1}))},[]),z=m((e,t)=>{const{ref:n,options:r}=d.current[e],o=OL&&xj(n)&&Lj(t)?"":t;Xj(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):Qj(n)&&!fL(o)?n.files=o:eL(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):Jj(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),W=m((e,t)=>{if(V.current.isDirty){const n=te();return e&&t&&zj(n,e,t),!pL(n,w.current)}return!1},[]),Z=m((e,t=!0)=>{if(V.current.isDirty||V.current.dirtyFields){const n=!pL(Yj(w.current,e),oL(d,e,S)),r=Yj(j.current.dirtyFields,e),o=j.current.isDirty;n?zj(j.current.dirtyFields,e,!0):lL(j.current.dirtyFields,e);const a={isDirty:W(),dirtyFields:j.current.dirtyFields},i=V.current.isDirty&&o!==a.isDirty||V.current.dirtyFields&&r!==Yj(j.current.dirtyFields,e);return i&&t&&B(a),i?a:{}}return{}},[]),Y=m(async(e,t)=>{if("production"!==process.env.NODE_ENV&&!d.current[e])return console.warn("📋 Field is missing with `name` attribute: ",e),!1;const n=(await EL(d,F,d.current[e],S))[e];return $(e,n,t),Zj(n)},[$,F]),q=m(async e=>{const{errors:t}=await O.current(te(),M.current,F),n=j.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=Yj(t,e);return n?zj(j.current.errors,e,n):lL(j.current.errors,e),!n}).every(Boolean);return B({isValid:iL(t),isValidating:!1}),n}{const r=Yj(t,e);return $(e,r,n!==iL(t),{},iL(t)),!r}},[$,F]),G=m(async e=>{const t=e||Object.keys(d.current);if(U(),O.current)return q(t);if(Array.isArray(t)){!e&&(j.current.errors={});const n=await Promise.all(t.map(async e=>await Y(e,null)));return B({isValidating:!1}),n.every(Boolean)}return await Y(t)},[q,Y]),K=m((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};zj(o,e,t);for(const a of CL(e,t))d.current[a]&&(z(a,Yj(o,a)),n&&Z(a),r&&G(a))},[G,z,Z]),X=m((e,t,n)=>{if(!i&&!uL(t)&&zj(S.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),d.current[e])z(e,t),n.shouldDirty&&Z(e),n.shouldValidate&&G(e);else if(!uL(t)&&(K(e,t,n),T.current.has(e))){const r=NL(e)||e;zj(p.current,e,t),N.current[r]({[r]:Yj(p.current,r)}),(V.current.isDirty||V.current.dirtyFields)&&n.shouldDirty&&(zj(j.current.dirtyFields,e,((e,t,n)=>dL(mL(e,t,n.slice(0,e.length)),mL(t,e,n.slice(0,e.length))))(t,Yj(w.current,e,[]),Yj(j.current.dirtyFields,e,[]))),B({isDirty:!pL(Object.assign(Object.assign({},te()),{[e]:t}),w.current)}))}!i&&zj(S.current,e,t)},[Z,z,K]),Q=e=>C.current||g.current.has(e)||g.current.has((e.match(/\w+/)||[])[0]),J=e=>{let t=!0;if(!iL(b.current))for(const n in b.current)e&&b.current[n].size&&!b.current[n].has(e)&&!b.current[n].has(NL(e))||(v.current[n](),t=!1);return t};function ee(e){if(!i){let t=TL(e);for(const e of T.current)Bj(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function te(e){if(fL(e))return oL(d,e,S);if(Array.isArray(e)){const t={};for(const n of e)zj(t,n,oL(d,n,S));return t}return ee(hL(d,TL(S.current),i))}k.current=k.current?k.current:async({type:e,target:t})=>{let n=t.name;const r=d.current[n];let o,a;if(r){const s=e===wj,l=SL(Object.assign({isBlurEvent:s,isReValidateOnChange:_,isReValidateOnBlur:H,isTouched:!!Yj(j.current.touched,n),isSubmitted:j.current.isSubmitted},D.current));let c=Z(n,!1),u=!iL(c)||!s&&Q(n);if(s&&!Yj(j.current.touched,n)&&V.current.touched&&(zj(j.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:j.current.touched})),!i&&Jj(t)&&zj(S.current,n,oL(d,n)),l)return!s&&J(n),(!iL(c)||u&&iL(c))&&B(c);if(U(),O.current){const{errors:e}=await O.current(te(),M.current,F),r=j.current.isValid;if(o=Yj(e,n),Jj(t)&&!o&&O.current){const t=NL(n),r=Yj(e,t,{});r.type&&r.message&&(o=r),t&&(r||Yj(j.current.errors,t))&&(n=t)}a=iL(e),r!==a&&(u=!0)}else o=(await EL(d,F,r,S))[n];!s&&J(n),$(n,o,u,c,a)}};const ne=m(async(e={})=>{const t=iL(d.current)?w.current:{},{errors:n}=await O.current(Object.assign(Object.assign(Object.assign({},t),te()),e),M.current,F)||{},r=iL(n);j.current.isValid!==r&&B({isValid:r})},[F]),re=m((e,t)=>{!function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,l=e.current[s];if(!o){const t=oL(e,s,r);!Zj(t)&&zj(r.current,s,t)}i.type&&l?Xj(i)||Jj(i)?Array.isArray(l.options)&&l.options.length?(Uj(l.options).forEach((e={},n)=>{(aL(e.ref)&&cL(e,e.ref)||a)&&(qj(e.ref,t),lL(l.options,`[${n}]`))}),l.options&&!Uj(l.options).length&&delete e.current[s]):delete e.current[s]:(aL(i)&&cL(l,i)||a)&&(qj(i,t),delete e.current[s]):delete e.current[s]}(d,k.current,e,S,i,t),i&&(lL(x.current,e.ref.name),lL(y.current,e.ref.name))},[i]),oe=m(e=>{if(C.current)B();else{for(const t of g.current)if(t.startsWith(e)){B();break}J(e)}},[]),ae=m((e,t)=>{e&&(re(e,t),i&&!Uj(e.options||[]).length&&(lL(j.current.errors,e.ref.name),zj(j.current.dirtyFields,e.ref.name,!0),B({isDirty:W()}),V.current.isValid&&O.current&&ne(),oe(e.ref.name)))},[ne,re]);const ie=m((e,t,n)=>{const r=n?b.current[n]:g.current;let o=hL(d,TL(S.current),i,!1,e);if(fL(e)){const n=NL(e)||e;return T.current.has(n)&&(o=Object.assign(Object.assign({},h.current),o)),kL(o,e,r,Zj(Yj(w.current,e))?t:Yj(w.current,e),!0)}const a=Zj(t)?w.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:kL(o,t,r,a)}),{}):(C.current=Zj(n),Wj(!iL(o)&&o||a))},[]);function se(e,t={}){if("production"!==process.env.NODE_ENV){if(!e.name)return console.warn("📋 Field is missing `name` attribute",e,"https://react-hook-form.com/api#useForm");if(T.current.has(e.name.split(/\[\d+\]$/)[0])&&!RegExp(`^${e.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e.name))return console.warn('📋 `name` prop should be in object shape: name="test[index].name"',e,"https://react-hook-form.com/api#useFieldArray")}const{name:n,type:r,value:o}=e,a=Object.assign({ref:e},t),s=d.current,l=PL(e),c=ML(T.current,n),u=t=>OL&&(!xj(e)||t===e);let p,m=s[n],f=!0;if(m&&(l?Array.isArray(m.options)&&Uj(m.options).find(e=>o===e.ref.value&&u(e.ref)):u(m.ref)))return void(s[n]=Object.assign(Object.assign({},m),t));m=r?l?Object.assign({options:[...Uj(m&&m.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},a):a,s[n]=m;const h=Zj(Yj(S.current,n));iL(w.current)&&h||(p=Yj(h?w.current:S.current,n),f=Zj(p),f||c||z(n,p)),iL(t)||(zj(y.current,n,!0),!P&&V.current.isValid&&EL(d,F,m,S).then(e=>{const t=j.current.isValid;iL(e)?zj(x.current,n,!0):lL(x.current,n),t!==iL(e)&&B()})),!i||c&&f||!c&&lL(j.current.dirtyFields,n),r&&function({ref:e},t,n){xj(e)&&n&&(e.addEventListener(t?Ej:Cj,n),e.addEventListener(wj,n))}(l&&m.options?m.options[m.options.length-1]:m,l||e.type===`${Tj}-one`,k.current)}const le=m((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=ee(hL(d,TL(S.current),i,!0));V.current.isSubmitting&&B({isSubmitting:!0});try{if(O.current){const{errors:e,values:t}=await O.current(o,M.current,F);j.current.errors=r=e,o=t}else for(const e of Object.values(d.current))if(e){const{name:t}=e.ref,n=await EL(d,F,e,S);n[t]?(zj(r,t,n[t]),lL(x.current,t)):Yj(y.current,t)&&(lL(j.current.errors,t),zj(x.current,t,!0))}iL(r)&&Object.keys(j.current.errors).every(e=>e in d.current)?(B({errors:{},isSubmitting:!0}),await e(o,n)):(j.current.errors=Object.assign(Object.assign({},j.current.errors),r),t&&await t(j.current.errors,n),a&&((e,t)=>{for(const n in e)if(Yj(t,n)){const t=e[n];if(t){if(t.ref.focus&&Zj(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(d.current,j.current.errors))}finally{j.current.isSubmitting=!1,B({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:iL(j.current.errors),submitCount:j.current.submitCount+1})}},[a,F]);c(()=>{n&&V.current.isValid&&ne(),L.current=L.current||!OL?L.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&aL(e.ref)&&t(n);else n&&aL(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(d,ae)},[ae,w.current]),c(()=>()=>{L.current&&L.current.disconnect(),E.current=!0,"production"===process.env.NODE_ENV&&Object.values(d.current).forEach(e=>ae(e,!0))},[]),!n&&V.current.isValid&&(R.isValid=pL(x.current,y.current)&&iL(j.current.errors));const ce={trigger:G,setValue:m(function(e,t,n){X(e,t,n||{}),Q(e)&&B(),J(e)},[X,G]),getValues:m(te,[]),register:m(function(e,t){if(!AL)if(fL(e))se({name:e},t);else{if(!_j(e)||!("name"in e))return t=>t&&se(t,e);se(e,t)}},[w.current]),unregister:m(function(e){for(const t of Array.isArray(e)?e:[e])ae(d.current[t],!0)},[]),formState:FL?new Proxy(R,{get:(e,t)=>{if("production"!==process.env.NODE_ENV&&"isValid"===t&&P&&console.warn("📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState"),t in e)return V.current[t]=!0,e[t]}}):R},ue=f(()=>Object.assign({isFormDirty:W,updateWatchedValue:oe,shouldUnregister:i,updateFormState:B,removeFieldEventListener:re,watchInternal:ie,mode:D.current,reValidateMode:{isReValidateOnBlur:H,isReValidateOnChange:_},validateResolver:n?ne:void 0,fieldsRef:d,resetFieldArrayFunctionRef:N,useWatchFieldsRef:b,useWatchRenderFunctionsRef:v,fieldArrayDefaultValuesRef:p,validFieldsRef:x,fieldsWithValidationRef:y,fieldArrayNamesRef:T,readFormStateRef:V,formStateRef:j,defaultValuesRef:w,shallowFieldsStateRef:S,fieldArrayValuesRef:h},ce),[w.current,oe,i,re,ie]);return Object.assign({watch:function(e,t){return ie(e,t)},control:ue,handleSubmit:le,reset:m((e,t={})=>{if(OL)for(const e of Object.values(d.current))if(e){const{ref:t,options:n}=e,r=PL(t)&&Array.isArray(n)?n[0].ref:t;if(xj(r))try{r.closest("form").reset();break}catch(e){}}d.current={},w.current=Object.assign({},e||w.current),e&&J(""),Object.values(N.current).forEach(e=>vL(e)&&e()),S.current=i?{}:TL(e||w.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(x.current={},y.current={}),p.current={},g.current=new Set,C.current=!1,B({submitCount:a?j.current.submitCount:0,isDirty:!!t&&j.current.isDirty,isSubmitted:!!n&&j.current.isSubmitted,isValid:!!o&&j.current.isValid,dirtyFields:i?j.current.dirtyFields:{},touched:r?j.current.touched:{},errors:e?j.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:m(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>d.current[e]&&Bj(e)?delete j.current.errors[e]:lL(j.current.errors,e)),B({errors:e?j.current.errors:{}})},[]),setError:m(function(e,t){const n=(d.current[e]||{}).ref;zj(j.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),B({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:R.errors},ce)}
295
+ */var tV=JI&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},eV))}};function nV(e){return e&&"[object Function]"==={}.toString.call(e)}function rV(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function oV(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function aV(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=rV(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:aV(oV(e))}function iV(e){return e&&e.referenceNode?e.referenceNode:e}var sV=JI&&!(!window.MSInputMethodContext||!document.documentMode),lV=JI&&/MSIE 10/.test(navigator.userAgent);function cV(e){return 11===e?sV:10===e?lV:sV||lV}function uV(e){if(!e)return document.documentElement;for(var t=cV(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===rV(n,"position")?uV(n):n:e?e.ownerDocument.documentElement:document.documentElement}function dV(e){return null!==e.parentNode?dV(e.parentNode):e}function pV(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&uV(i.firstElementChild)!==i?uV(l):l;var c=dV(e);return c.host?pV(c.host,t):pV(e,dV(t).host)}function mV(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function fV(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function hV(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],cV(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function gV(e){var t=e.body,n=e.documentElement,r=cV(10)&&getComputedStyle(n);return{height:hV("Height",t,n,r),width:hV("Width",t,n,r)}}var bV=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),vV=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},yV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function xV(e){return yV({},e,{right:e.left+e.width,bottom:e.top+e.height})}function wV(e){var t={};try{if(cV(10)){t=e.getBoundingClientRect();var n=mV(e,"top"),r=mV(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?gV(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=rV(e);l-=fV(u,"x"),c-=fV(u,"y"),o.width-=l,o.height-=c}return xV(o)}function EV(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cV(10),o="HTML"===t.nodeName,a=wV(e),i=wV(t),s=aV(e),l=rV(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=xV({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=mV(t,"top"),o=mV(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(d,t)),d}function CV(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===rV(e,"position"))return!0;var n=oV(e);return!!n&&CV(n)}function kV(e){if(!e||!e.parentElement||cV())return document.documentElement;for(var t=e.parentElement;t&&"none"===rV(t,"transform");)t=t.parentElement;return t||document.documentElement}function SV(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?kV(e):pV(e,iV(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=EV(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:mV(n),s=t?0:mV(n,"left");return xV({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=aV(oV(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=EV(s,i,o);if("HTML"!==s.nodeName||CV(i))a=l;else{var c=gV(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function NV(e){return e.width*e.height}function MV(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=SV(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map(function(e){return yV({key:e},s[e],{area:NV(s[e])})}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function OV(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return EV(n,r?kV(t):pV(t,iV(n)),r)}function TV(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function DV(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function PV(e,t,n){n=n.split("-")[0];var r=TV(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[DV(s)],o}function AV(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function FV(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=AV(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n));return r.forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&nV(n)&&(t.offsets.popper=xV(t.offsets.popper),t.offsets.reference=xV(t.offsets.reference),t=n(t,e))}),t}function RV(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=OV(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=MV(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=PV(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=FV(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function IV(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function VV(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function jV(){return this.state.isDestroyed=!0,IV(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[VV("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function LV(e){var t=e.ownerDocument;return t?t.defaultView:window}function HV(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||HV(aV(a.parentNode),t,n,r),r.push(a)}function _V(e,t,n,r){n.updateBound=r,LV(e).addEventListener("resize",n.updateBound,{passive:!0});var o=aV(e);return HV(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function BV(){this.state.eventsEnabled||(this.state=_V(this.reference,this.options,this.state,this.scheduleUpdate))}function UV(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return LV(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function $V(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function zV(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$V(t[n])&&(r="px"),e.style[n]=t[n]+r})}var WV=JI&&/Firefox/i.test(navigator.userAgent);function ZV(e,t,n){var r=AV(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var YV=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],qV=YV.slice(3);function GV(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=qV.indexOf(e),r=qV.slice(n+1).concat(qV.slice(0,n));return t?r.reverse():r}var KV="flip",XV="clockwise",QV="counterclockwise";function JV(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(AV(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return xV("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),c.forEach(function(e,t){e.forEach(function(n,r){$V(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var ej={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:vV({},l,a[l]),end:vV({},l,a[l]+a[c]-i[c])};e.offsets.popper=yV({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=$V(+n)?[+n,0]:JV(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||uV(e.instance.popper);e.instance.reference===n&&(n=uV(n));var r=VV("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=SV(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),vV({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),vV({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=yV({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ZV(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=TV(r)[c];s[m]-f<i[d]&&(e.offsets.popper[d]-=i[d]-(s[m]-f)),s[d]+f>i[m]&&(e.offsets.popper[d]+=s[d]+f-i[m]),e.offsets.popper=xV(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=rV(e.instance.popper),b=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),y=h-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(i[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(vV(n={},d,Math.round(y)),vV(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(IV(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=SV(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=DV(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case KV:i=[r,o];break;case XV:i=GV(r);break;case QV:i=GV(r,!0);break;default:i=t.behavior}return i.forEach(function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=DV(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===a&&m||v&&"end"===a&&f||!v&&"start"===a&&h||!v&&"end"===a&&g),x=!!t.flipVariationsByContent&&(v&&"start"===a&&f||v&&"end"===a&&m||!v&&"start"===a&&g||!v&&"end"===a&&h),w=y||x;(p||b||w)&&(e.flipped=!0,(p||b)&&(r=i[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=yV({},e.offsets.popper,PV(e.instance.popper,e.offsets.reference,e.placement)),e=FV(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=DV(t),e.offsets.popper=xV(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ZV(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=AV(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=AV(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=uV(e.instance.popper),l=wV(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:i:s,m=t?a:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!WV),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=VV("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===p?-1:1;c[d]=h*g,c[p]=f*b,c.willChange=d+", "+p}var v={"x-placement":e.placement};return e.attributes=yV({},v,e.attributes),e.styles=yV({},c,e.styles),e.arrowStyles=yV({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return zV(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&zV(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=OV(o,t,e,n.positionFixed),i=MV(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),zV(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},tj={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ej},nj=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tV(this.update.bind(this)),this.options=yV({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(yV({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=yV({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return yV({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&nV(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return bV(e,[{key:"update",value:function(){return RV.call(this)}},{key:"destroy",value:function(){return jV.call(this)}},{key:"enableEventListeners",value:function(){return BV.call(this)}},{key:"disableEventListeners",value:function(){return UV.call(this)}}]),e}();nj.Utils=("undefined"!=typeof window?window:global).PopperUtils,nj.placements=YV,nj.Defaults=tj;var rj=nj;var oj="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,aj=e.forwardRef(function(t,n){var r=t.children,o=t.container,a=t.disablePortal,i=void 0!==a&&a,s=t.onRendered,l=e.useState(null),c=l[0],u=l[1],d=pI(e.isValidElement(r)?r.ref:null,n);return oj(function(){i||u(function(e){return e="function"==typeof e?e():e,k.findDOMNode(e)}(o)||document.body)},[o,i]),oj(function(){if(c&&!i)return lI(n,c),function(){lI(n,null)}},[n,c,i]),oj(function(){s&&(c||i)&&s()},[s,c,i]),i?e.isValidElement(r)?e.cloneElement(r,{ref:d}):r:c?k.createPortal(r,c):c});"production"!==process.env.NODE_ENV&&(aj.propTypes={children:ee.exports.node,container:ee.exports.oneOfType([_F,ee.exports.instanceOf(e.Component),ee.exports.func]),disablePortal:ee.exports.bool,onRendered:oI(ee.exports.func,"Use the ref instead.")}),"production"!==process.env.NODE_ENV&&(aj.propTypes=TF(aj.propTypes));var ij=aj;function sj(e){return"function"==typeof e?e():e}var lj="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,cj={},uj=e.forwardRef(function(t,n){var r=t.anchorEl,o=t.children,a=t.container,i=t.disablePortal,s=void 0!==i&&i,l=t.keepMounted,c=void 0!==l&&l,u=t.modifiers,d=t.open,p=t.placement,m=void 0===p?"bottom":p,f=t.popperOptions,h=void 0===f?cj:f,g=t.popperRef,b=t.style,v=t.transition,y=void 0!==v&&v,x=zF(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=e.useRef(null),E=pI(w,n),C=e.useRef(null),k=pI(C,g),S=e.useRef(k);lj(function(){S.current=k},[k]),e.useImperativeHandle(g,function(){return C.current},[]);var N=e.useState(!0),M=N[0],O=N[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,eR()),D=e.useState(T),P=D[0],A=D[1];e.useEffect(function(){C.current&&C.current.update()});var F=e.useCallback(function(){if(w.current&&r&&d){C.current&&(C.current.destroy(),S.current(null));var e=function(e){A(e.placement)},t=sj(r);if("production"!==process.env.NODE_ENV&&t&&1===t.nodeType){var n=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom&&console.warn(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}var o=new rj(sj(r),w.current,G({placement:T},h,{modifiers:G({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,h.modifiers),onCreate:$F(e,h.onCreate),onUpdate:$F(e,h.onUpdate)}));S.current(o)}},[r,s,u,d,T,h]),R=e.useCallback(function(e){lI(E,e),F()},[E,F]),I=function(){C.current&&(C.current.destroy(),S.current(null))};if(e.useEffect(function(){return function(){I()}},[]),e.useEffect(function(){d||y||I()},[d,y]),!c&&!d&&(!y||M))return null;var V={placement:P};return y&&(V.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),e.createElement(ij,{disablePortal:s,container:a},e.createElement("div",G({ref:R,role:"tooltip"},x,{style:G({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},b)}),"function"==typeof o?o(V):o))});"production"!==process.env.NODE_ENV&&(uj.propTypes={anchorEl:wF(ee.exports.oneOfType([_F,ee.exports.object,ee.exports.func]),function(e){if(e.open){var t=sj(e.anchorEl);if(t&&1===t.nodeType){var n=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===n.top&&0===n.left&&0===n.right&&0===n.bottom)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"number"!=typeof t.clientWidth||"number"!=typeof t.clientHeight||"function"!=typeof t.getBoundingClientRect)return new Error(["Material-UI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a referenceObject ","(https://popper.js.org/docs/v1/#referenceObject)."].join("\n"))}return null}),children:ee.exports.oneOfType([ee.exports.node,ee.exports.func]).isRequired,container:ee.exports.oneOfType([_F,ee.exports.instanceOf(e.Component),ee.exports.func]),disablePortal:ee.exports.bool,keepMounted:ee.exports.bool,modifiers:ee.exports.object,open:ee.exports.bool.isRequired,placement:ee.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:ee.exports.object,popperRef:BF,style:ee.exports.object,transition:ee.exports.bool});var dj=uj;function pj(e){return Math.round(1e5*e)/1e5}var mj=!1,fj=null,hj=e.forwardRef(function(t,n){var r=t.arrow,o=void 0!==r&&r,a=t.children,i=t.classes,s=t.disableFocusListener,l=void 0!==s&&s,c=t.disableHoverListener,u=void 0!==c&&c,d=t.disableTouchListener,p=void 0!==d&&d,m=t.enterDelay,f=void 0===m?100:m,h=t.enterNextDelay,g=void 0===h?0:h,b=t.enterTouchDelay,v=void 0===b?700:b,y=t.id,x=t.interactive,w=void 0!==x&&x,E=t.leaveDelay,C=void 0===E?0:E,S=t.leaveTouchDelay,N=void 0===S?1500:S,M=t.onClose,O=t.onOpen,T=t.open,D=t.placement,P=void 0===D?"bottom":D,A=t.PopperComponent,F=void 0===A?dj:A,R=t.PopperProps,I=t.title,V=t.TransitionComponent,j=void 0===V?QI:V,L=t.TransitionProps,H=zF(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),_=ZI(),B=e.useState(),U=B[0],$=B[1],z=e.useState(null),W=z[0],Z=z[1],Y=e.useRef(!1),q=e.useRef(),K=e.useRef(),X=e.useRef(),Q=e.useRef(),J=$R(cI({controlled:T,default:!1,name:"Tooltip",state:"open"}),2),ee=J[0],te=J[1],ne=ee;if("production"!==process.env.NODE_ENV){var re=e.useRef(void 0!==T).current;e.useEffect(function(){U&&U.disabled&&!re&&""!==I&&"button"===U.tagName.toLowerCase()&&console.error(["Material-UI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))},[I,U,re])}var oe=mI(y);e.useEffect(function(){return function(){clearTimeout(q.current),clearTimeout(K.current),clearTimeout(X.current),clearTimeout(Q.current)}},[]);var ae=function(e){clearTimeout(fj),mj=!0,te(!0),O&&O(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),Y.current&&"touchstart"!==t.type||(U&&U.removeAttribute("title"),clearTimeout(K.current),clearTimeout(X.current),f||mj&&g?(t.persist(),K.current=setTimeout(function(){ae(t)},mj?g:f)):ae(t))}},se=CI(),le=se.isFocusVisible,ce=se.onBlurVisible,ue=se.ref,de=e.useState(!1),pe=de[0],me=de[1],fe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){U||$(t.currentTarget),le(t)&&(me(!0),ie()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},he=function(e){clearTimeout(fj),fj=setTimeout(function(){mj=!1},800+C),te(!1),M&&M(e),clearTimeout(q.current),q.current=setTimeout(function(){Y.current=!1},_.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),pe&&(me(!1),ce())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===U&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(X.current),t.persist(),X.current=setTimeout(function(){he(t)},C)}},be=function(e){Y.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},ve=pI($,n),ye=pI(ue,ve),xe=e.useCallback(function(e){lI(ye,k.findDOMNode(e))},[ye]),we=pI(a.ref,xe);""===I&&(ne=!1);var Ee=G({"aria-describedby":ne?oe:null,title:!ne&&!u&&"string"==typeof I?I:null},H,a.props,{className:FA(H.className,a.props.className),onTouchStart:be,ref:we}),Ce={};p||(Ee.onTouchStart=function(e){be(e),clearTimeout(X.current),clearTimeout(q.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout(function(){ie()(e)},v)},Ee.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout(function(){he(e)},N)}),u||(Ee.onMouseOver=ie(),Ee.onMouseLeave=ge(),w&&(Ce.onMouseOver=ie(!1),Ce.onMouseLeave=ge(!1))),l||(Ee.onFocus=fe(),Ee.onBlur=ge(),w&&(Ce.onFocus=fe(!1),Ce.onBlur=ge(!1))),"production"!==process.env.NODE_ENV&&a.props.title&&console.error(["Material-UI: You have provided a `title` prop to the child of <Tooltip />.","Remove this title prop `".concat(a.props.title,"` or the Tooltip component.")].join("\n"));var ke=e.useMemo(function(){return CF({popperOptions:{modifiers:{arrow:{enabled:Boolean(W),element:W}}}},R)},[W,R]);return e.createElement(e.Fragment,null,e.cloneElement(a,Ee),e.createElement(F,G({className:FA(i.popper,w&&i.popperInteractive,o&&i.popperArrow),placement:P,anchorEl:U,open:!!U&&ne,id:Ee["aria-describedby"],transition:!0},Ce,ke),function(t){var n=t.placement,r=t.TransitionProps;return e.createElement(j,G({timeout:_.transitions.duration.shorter},r,L),e.createElement("div",{className:FA(i.tooltip,i["tooltipPlacement".concat(UF(n.split("-")[0]))],Y.current&&i.touch,o&&i.tooltipArrow)},I,o?e.createElement("span",{className:i.arrow,ref:Z}):null))}))});"production"!==process.env.NODE_ENV&&(hj.propTypes={arrow:ee.exports.bool,children:NF.isRequired,classes:ee.exports.object,className:ee.exports.string,disableFocusListener:ee.exports.bool,disableHoverListener:ee.exports.bool,disableTouchListener:ee.exports.bool,enterDelay:ee.exports.number,enterNextDelay:ee.exports.number,enterTouchDelay:ee.exports.number,id:ee.exports.string,interactive:ee.exports.bool,leaveDelay:ee.exports.number,leaveTouchDelay:ee.exports.number,onClose:ee.exports.func,onOpen:ee.exports.func,open:ee.exports.bool,placement:ee.exports.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:ee.exports.elementType,PopperProps:ee.exports.object,title:ee.exports.node.isRequired,TransitionComponent:ee.exports.elementType,TransitionProps:ee.exports.object});var gj=JR(function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:TR(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(pj(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:TR(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(pj(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:OF({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:OF({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:OF({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:OF({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(hj);Bc(".social-share-list-wrapper-class {\n z-index: 1;\n}\n.social-share-list-wrapper-class .MuiIconButton-root {\n color: #afafaf !important;\n}\n.social-share-list-wrapper-class .social-share-list {\n top: 42px;\n left: 50%;\n transform: translateX(-50%);\n box-shadow: 0px 2px 13px -8px rgba(0, 0, 0, 0.5);\n transition: 0.3s all;\n height: 0;\n overflow: hidden;\n background: #ffffff;\n z-index: 999999999;\n}\n.social-share-list-wrapper-class .social-share-list li {\n padding: 4px 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:first-child {\n padding-top: 8px;\n}\n.social-share-list-wrapper-class .social-share-list li:last-child {\n padding-bottom: 8px;\n}\n.social-share-list-wrapper-class .social-share-list button,\n.social-share-list-wrapper-class .social-share-list svg {\n width: 32px;\n height: 32px;\n}\n.social-share-list-wrapper-class .social-share-list svg {\n border-radius: 4px;\n}\n\n.social-share-list-bakcdrop {\n z-index: 0 !important;\n}");var bj=function(e){var n=e.redirectUrl,r=void 0===n?window.location.href:n,o=e.className,a=e.menuProps,i=l(0),s=i[0],u=i[1],d=t.useState(null),p=d[0],m=d[1];c(function(){var e=document.querySelector(".social-share-list").scrollHeight;u(e)},[]);var f=Boolean(p),h={height:"".concat(f?s:0,"px")};return t.createElement("div",{className:"position-relative social-share-list-wrapper-class"},t.createElement(gj,{title:"".concat(f?"Close Share":"Open Share"),placement:"top"},t.createElement(WI,{className:"".concat(f&&"active-btn"),"aria-label":"delete",size:"small",onClick:function(e){m(p?null:e.currentTarget)}},f?t.createElement(II,null):t.createElement(TI,null))),t.createElement("ul",{className:"social-share-list",style:h},t.createElement(zE,Zc({anchorEl:p,id:"account-menu",open:f,className:o?"".concat(o," social-share-list-bakcdrop"):"social-share-list-bakcdrop",PaperProps:{elevation:0,sx:{boxShadow:"none",border:"1px solid #00000014",mt:1.5,mb:0}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"}},a),t.createElement("li",null,t.createElement(uF,{url:r},t.createElement(aF,{size:34}))),t.createElement("li",null,t.createElement(fF,{url:r},t.createElement(mF,{size:34}))),t.createElement("li",null,t.createElement(gF,{url:r},t.createElement(hF,{size:34}))),t.createElement("li",null,t.createElement(pF,{url:r},t.createElement(dF,{size:34}))),t.createElement("li",null,t.createElement(oF,{url:r},t.createElement(WA,{size:34}))))))},vj=function(e){var n=e.error,r=e.verifiedMessage,o=e.onResendClick,a=e.setOtpValues,i=e.otpValues,s=e.isResendDisable,d=e.countDownTime,p=void 0===d?60:d,m=l(p),f=m[0],h=m[1],g=l(!1);g[0];var b=g[1],v=[u(),u(),u(),u(),u(),u()];return c(function(){if(0!==f){var e=setInterval(function(){h(function(e){return e-1})},1e3);return function(){return clearInterval(e)}}},[f]),c(function(){h(p)},[p]),c(function(){var e=i.findIndex(function(e){return""===e});-1!==e&&v[e].current.focus()},[i]),t.createElement(t.Fragment,null,t.createElement("div",{className:"d-flex justify-content-center align-items-center"},i.map(function(e,n){return t.createElement("input",{key:n,ref:v[n],value:e,onChange:function(e){return function(e,t){var n=e.target,r=n.value,o=n.keyCode;/^\d*$/.test(r)&&(a(function(e){return e.map(function(e,n){return n===t?r:e})}),8!==o&&""!==r||0===t||v[t-1].current.focus(),8!==o&&t!==i.length-1&&1===r.length&&v[t+1].current.focus())}(e,n)},onPaste:function(e){return function(e){var t=e.clipboardData.getData("text").trim();t.length===i.length&&/^\d*$/.test(t)&&(a(t.split("")),v[i.length-1].current.focus())}(e)},onKeyDown:function(t){8===t.keyCode&&""===e&&0!==n&&v[n-1].current.focus()},onKeyPress:function(e){var t=e.which?e.which:e.keyCode;(t<48||t>57)&&e.preventDefault()},onInput:function(e){var t=e.target.value;e.target.value=t.replace(/[^0-9]/g,"")},onCut:function(e){e.preventDefault()},onCopy:function(e){e.preventDefault()},onDrag:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},className:"otp-input text-center box-shadow",type:"text",inputMode:"numeric",maxLength:1})})),n&&t.createElement(z,{variant:"textLabel2",className:"text-danger font-italic text-center"},"Incorrect OTP, Please enter correct code."),r&&t.createElement(z,{variant:"textLabel2",className:"text-danger font-italic text-center"},r),t.createElement(z,{variant:"textLabel2",className:"text-center text-grey-600"},f>0?"If OTP doesn't received, you can get a new one in ".concat(f," seconds."):"Didn’t receive the OTP? You can resend it now"),t.createElement("div",{className:"d-flex justify-content-center align-items-center"},t.createElement(W,{text:"Resend",variant:"text",type:"inverse",size:"medium",disabled:0!=f||s,onButtonClickHandler:function(){b(function(e){return e}),o()}})))};Bc(".otp-input {\n width: 46px !important;\n height: 46px !important;\n margin: 0 6px;\n border-radius: 3px;\n border: 1px;\n}\n\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header p {\n font-size: 14px !important;\n}\n.otp-verification-modal.doct-modal .doct-modal-content-wrapper .doct-modal-header svg {\n display: none !important;\n}\n.otp-verification-modal .MuiBackdrop-root {\n pointer-events: none !important;\n}\n\ninput[type=number] {\n appearance: textfield;\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n}\ninput[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n margin: 0;\n}");var yj=function(e){var n=e.handleClose,r=e.error,o=e.verifiedMessage,a=e.open,i=e.onResendClick,s=e.onButtonSubmit,u=e.isOTPValue,d=e.isResendDisable,p=e.countDownTime,m=e.variant,f=e.phoneNumber,h=e.title,g=void 0===h?"":h,b=l(["","","","","",""]),v=b[0],y=b[1],x=l(""),w=x[0],E=x[1],C=l("OTP Verification for Change Number"),k=C[0],S=C[1];c(function(){y(["","","","","",""])},[u]),c(function(){"mobile"===m?(E("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone. If you do not receive in a 60 seconds, try to resend."),S("OTP Verification for change Number")):"password"===m?(E("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),S("OTP Verification for Change Password")):"email"===m?(E("We have sent you an OTP to your registered<br/> email address, to verify that it’s you.<br/> Please check your email inbox. If you do not receive in a 60 seconds, Try Resend."),S("OTP Verification for Change Email")):"newMobile"===m?(E('We have sent you an OTP to your<br/> new mobile number,<br/> <span class="font-weight-bold"> +91 '.concat(f,"<br/> </span> Please check your phone. If you do not receive in a 60 seconds, try to resend, or check your number.")),S("OTP Verification for New Mobile Number")):(E("We have sent you an OTP to this mobile number,<br/> to verify that it’s you.<br/> Please check your phone, If do not receive in a 60 <br/> seconds, Try Resend."),S("OTP Verification of Mobile Number"))},[m]);return t.createElement(t.Fragment,null,t.createElement(NA,{open:a,title:g||k,width:360,iconName:"",primaryBtnText:"Submit",className:"otp-verification-modal",handleClose:n,handlePrimaryButtonClick:function(){var e=null==v?void 0:v.join("");s(e)},disableBackdropClick:!0},t.createElement("div",{className:"text-label-1 mb-3 text-center",dangerouslySetInnerHTML:{__html:w}}),t.createElement(vj,{error:r,verifiedMessage:o,onResendClick:i,setOtpValues:y,otpValues:v,isResendDisable:d,countDownTime:p})))},xj=e=>e instanceof HTMLElement;const wj="blur",Ej="change",Cj="input",kj="onBlur",Sj="onChange",Nj="onSubmit",Mj="onTouched",Oj="all",Tj="select",Dj="undefined",Pj="max",Aj="min",Fj="maxLength",Rj="minLength",Ij="pattern",Vj="required",jj="validate";var Lj=e=>null==e;const Hj=e=>"object"==typeof e;var _j=e=>!Lj(e)&&!Array.isArray(e)&&Hj(e)&&!(e instanceof Date),Bj=e=>/^\w*$/.test(e),Uj=e=>e.filter(Boolean),$j=e=>Uj(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function zj(e,t,n){let r=-1;const o=Bj(t)?[t]:$j(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=_j(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var Wj=(e,t={})=>{for(const n in e)Bj(n)?t[n]=e[n]:zj(t,n,e[n]);return t},Zj=e=>void 0===e,Yj=(e={},t,n)=>{const r=Uj(t.split(/[,[\].]+?/)).reduce((e,t)=>Lj(e)?e:e[t],e);return Zj(r)||r===e?Zj(e[t])?n:e[t]:r},qj=(e,t)=>{xj(e)&&e.removeEventListener&&(e.removeEventListener(Cj,t),e.removeEventListener(Ej,t),e.removeEventListener(wj,t))};const Gj={isValid:!1,value:null};var Kj=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,Gj):Gj,Xj=e=>"radio"===e.type,Qj=e=>"file"===e.type,Jj=e=>"checkbox"===e.type,eL=e=>e.type===`${Tj}-multiple`;const tL={value:!1,isValid:!1},nL={value:!0,isValid:!0};var rL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!Zj(r.value)?Zj(n)||""===n?nL:{value:n,isValid:!0}:nL:tL}return tL};function oL(e,t,n,r,o){const a=e.current[t];if(a){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:l,setValueAs:c}=a;if(t&&r)return;return Qj(n)?n.files:Xj(n)?Kj(a.options).value:eL(n)?(i=n.options,[...i].filter(({selected:e})=>e).map(({value:e})=>e)):Jj(n)?rL(a.options).value:o?e:s?""===e?NaN:+e:l?n.valueAsDate:c?c(e):e}var i;if(n)return Yj(n.current,t)}function aL(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&aL(e.parentNode)}var iL=e=>_j(e)&&!Object.keys(e).length,sL=e=>"boolean"==typeof e;function lL(e,t){const n=Bj(t)?[t]:$j(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Zj(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(_j(r)&&iL(r)||Array.isArray(r)&&!r.filter(e=>_j(e)&&!iL(e)||sL(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const cL=(e,t)=>e&&e.ref===t;var uL=e=>Lj(e)||!Hj(e);function dL(e,t){if(uL(e)||uL(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=_j(r)&&_j(o)||Array.isArray(r)&&Array.isArray(o)?dL(r,o):o}catch(e){}}return e}function pL(e,t,n){if(uL(e)||uL(t)||e instanceof Date||t instanceof Date)return e===t;if(!a(e)){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const o of r){const r=e[o];if(!n||"ref"!==o){const e=t[o];if((_j(r)||Array.isArray(r))&&(_j(e)||Array.isArray(e))?!pL(r,e,n):r!==e)return!1}}}return!0}function mL(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],mL(e[a][r],Yj(t[a]||{},r,[]),n[a][r],n[a],r)):pL(Yj(t[a]||{},r),e[a][r])?zj(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var fL=e=>"string"==typeof e,hL=(e,t,n,r,o)=>{const a={};for(const t in e.current)(Zj(o)||(fL(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=oL(e,t,void 0,r));return n?Wj(a):dL(t,Wj(a))},gL=e=>e instanceof RegExp,bL=e=>_j(e)&&!gL(e)?e:{value:e,message:""},vL=e=>"function"==typeof e,yL=e=>fL(e)||a(e);function xL(e,t,n="validate"){if(yL(e)||sL(e)&&!e)return{type:n,message:yL(e)?e:"",ref:t}}var wL=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},EL=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:l,max:c,pattern:u,validate:d},p)=>{const m=n.name,f={},h=Xj(n),g=Jj(n),b=h||g,v=""===r,y=wL.bind(null,m,t,f),x=(e,t,r,o=Fj,a=Rj)=>{const i=e?t:r;f[m]=Object.assign({type:e?o:a,message:i,ref:n},y(e?o:a,i))};if(a&&(!h&&!g&&(v||Lj(r))||sL(r)&&!r||g&&!rL(o).isValid||h&&!Kj(o).isValid)){const{value:r,message:o}=yL(a)?{value:!!a,message:a}:bL(a);if(r&&(f[m]=Object.assign({type:Vj,message:o,ref:b?((e.current[m].options||[])[0]||{}).ref:n},y(Vj,o)),!t))return f}if(!(Lj(l)&&Lj(c)||""===r)){let e,o;const a=bL(c),i=bL(l);if(isNaN(r)){const t=n.valueAsDate||new Date(r);fL(a.value)&&(e=t>new Date(a.value)),fL(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);Lj(a.value)||(e=t>a.value),Lj(i.value)||(o=t<i.value)}if((e||o)&&(x(!!e,a.message,i.message,Pj,Aj),!t))return f}if(fL(r)&&!v&&(i||s)){const e=bL(i),n=bL(s),o=!Lj(e.value)&&r.length>e.value,a=!Lj(n.value)&&r.length<n.value;if((o||a)&&(x(o,e.message,n.message),!t))return f}if(fL(r)&&u&&!v){const{value:e,message:o}=bL(u);if(gL(e)&&!e.test(r)&&(f[m]=Object.assign({type:Ij,message:o,ref:n},y(Ij,o)),!t))return f}if(d){const r=oL(e,m,p,!1,!0),a=b&&o?o[0].ref:n;if(vL(d)){const e=xL(await d(r),a);if(e&&(f[m]=Object.assign(Object.assign({},e),y(jj,e.message)),!t))return f}else if(_j(d)){let e={};for(const[n,o]of Object.entries(d)){if(!iL(e)&&!t)break;const i=xL(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),y(n,i.message)),t&&(f[m]=e))}if(!iL(e)&&(f[m]=Object.assign({ref:a},e),!t))return f}}return f};const CL=(e,t,n=[])=>{for(const r in t){const o=e+(_j(t)?`.${r}`:`[${r}]`);uL(t[r])?n.push(o):CL(o,t[r],n)}return n};var kL=(e,t,n,r,o)=>{let a;return n.add(t),iL(e)||(a=Yj(e,t),(_j(a)||Array.isArray(a))&&CL(t,a).forEach(e=>n.add(e))),Zj(a)?o?r:Yj(r,t):a},SL=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:l})=>!l&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),NL=e=>e.substring(0,e.indexOf("["));var ML=(e,t)=>[...e].some(e=>((e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e))(t,e));var OL=typeof window!==Dj&&typeof document!==Dj;function TL(e){var t;let n;if(uL(e)||OL&&(e instanceof File||xj(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,TL(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=TL(e[t]);return n}var DL=e=>({isOnSubmit:!e||e===Nj,isOnBlur:e===kj,isOnChange:e===Sj,isOnAll:e===Oj,isOnTouch:e===Mj}),PL=e=>Xj(e)||Jj(e);const AL=typeof window===Dj,FL=OL?"Proxy"in window:typeof Proxy!==Dj;function RL({mode:e=Nj,reValidateMode:t=Sj,resolver:n,context:r,defaultValues:o={},shouldFocusError:a=!0,shouldUnregister:i=!0,criteriaMode:s}={}){const d=u({}),p=u({}),h=u({}),g=u(new Set),b=u({}),v=u({}),y=u({}),x=u({}),w=u(o),E=u(!1),C=u(!1),k=u(),S=u({}),N=u({}),M=u(r),O=u(n),T=u(new Set),D=u(DL(e)),{isOnSubmit:P,isOnTouch:A}=D.current,F=s===Oj,[R,I]=l({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!P,errors:{}}),V=u({isDirty:!FL,dirtyFields:!FL,touched:!FL||A,isValidating:!FL,isSubmitting:!FL,isValid:!FL}),j=u(R),L=u(),{isOnBlur:H,isOnChange:_}=u(DL(t)).current;M.current=r,O.current=n,j.current=R,S.current=i?{}:iL(S.current)?TL(o):S.current;const B=m((e={})=>{E.current||(j.current=Object.assign(Object.assign({},j.current),e),I(j.current))},[]),U=()=>V.current.isValidating&&B({isValidating:!0}),$=m((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=Zj(n),i=Yj(e,t);return a&&!!i||!a&&!pL(i,n,!0)||a&&Yj(o,t)&&!Yj(r,t)})({errors:j.current.errors,error:t,name:e,validFields:x.current,fieldsWithValidation:y.current});const i=Yj(j.current.errors,e);t?(lL(x.current,e),a=a||!i||!pL(i,t,!0),zj(j.current.errors,e,t)):((Yj(y.current,e)||O.current)&&(zj(x.current,e,!0),a=a||i),lL(j.current.errors,e)),(a&&!Lj(n)||!iL(r)||V.current.isValidating)&&B(Object.assign(Object.assign(Object.assign({},r),O.current?{isValid:!!o}:{}),{isValidating:!1}))},[]),z=m((e,t)=>{const{ref:n,options:r}=d.current[e],o=OL&&xj(n)&&Lj(t)?"":t;Xj(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):Qj(n)&&!fL(o)?n.files=o:eL(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):Jj(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),W=m((e,t)=>{if(V.current.isDirty){const n=te();return e&&t&&zj(n,e,t),!pL(n,w.current)}return!1},[]),Z=m((e,t=!0)=>{if(V.current.isDirty||V.current.dirtyFields){const n=!pL(Yj(w.current,e),oL(d,e,S)),r=Yj(j.current.dirtyFields,e),o=j.current.isDirty;n?zj(j.current.dirtyFields,e,!0):lL(j.current.dirtyFields,e);const a={isDirty:W(),dirtyFields:j.current.dirtyFields},i=V.current.isDirty&&o!==a.isDirty||V.current.dirtyFields&&r!==Yj(j.current.dirtyFields,e);return i&&t&&B(a),i?a:{}}return{}},[]),Y=m(async(e,t)=>{if("production"!==process.env.NODE_ENV&&!d.current[e])return console.warn("📋 Field is missing with `name` attribute: ",e),!1;const n=(await EL(d,F,d.current[e],S))[e];return $(e,n,t),Zj(n)},[$,F]),q=m(async e=>{const{errors:t}=await O.current(te(),M.current,F),n=j.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=Yj(t,e);return n?zj(j.current.errors,e,n):lL(j.current.errors,e),!n}).every(Boolean);return B({isValid:iL(t),isValidating:!1}),n}{const r=Yj(t,e);return $(e,r,n!==iL(t),{},iL(t)),!r}},[$,F]),G=m(async e=>{const t=e||Object.keys(d.current);if(U(),O.current)return q(t);if(Array.isArray(t)){!e&&(j.current.errors={});const n=await Promise.all(t.map(async e=>await Y(e,null)));return B({isValidating:!1}),n.every(Boolean)}return await Y(t)},[q,Y]),K=m((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};zj(o,e,t);for(const a of CL(e,t))d.current[a]&&(z(a,Yj(o,a)),n&&Z(a),r&&G(a))},[G,z,Z]),X=m((e,t,n)=>{if(!i&&!uL(t)&&zj(S.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),d.current[e])z(e,t),n.shouldDirty&&Z(e),n.shouldValidate&&G(e);else if(!uL(t)&&(K(e,t,n),T.current.has(e))){const r=NL(e)||e;zj(p.current,e,t),N.current[r]({[r]:Yj(p.current,r)}),(V.current.isDirty||V.current.dirtyFields)&&n.shouldDirty&&(zj(j.current.dirtyFields,e,((e,t,n)=>dL(mL(e,t,n.slice(0,e.length)),mL(t,e,n.slice(0,e.length))))(t,Yj(w.current,e,[]),Yj(j.current.dirtyFields,e,[]))),B({isDirty:!pL(Object.assign(Object.assign({},te()),{[e]:t}),w.current)}))}!i&&zj(S.current,e,t)},[Z,z,K]),Q=e=>C.current||g.current.has(e)||g.current.has((e.match(/\w+/)||[])[0]),J=e=>{let t=!0;if(!iL(b.current))for(const n in b.current)e&&b.current[n].size&&!b.current[n].has(e)&&!b.current[n].has(NL(e))||(v.current[n](),t=!1);return t};function ee(e){if(!i){let t=TL(e);for(const e of T.current)Bj(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function te(e){if(fL(e))return oL(d,e,S);if(Array.isArray(e)){const t={};for(const n of e)zj(t,n,oL(d,n,S));return t}return ee(hL(d,TL(S.current),i))}k.current=k.current?k.current:async({type:e,target:t})=>{let n=t.name;const r=d.current[n];let o,a;if(r){const s=e===wj,l=SL(Object.assign({isBlurEvent:s,isReValidateOnChange:_,isReValidateOnBlur:H,isTouched:!!Yj(j.current.touched,n),isSubmitted:j.current.isSubmitted},D.current));let c=Z(n,!1),u=!iL(c)||!s&&Q(n);if(s&&!Yj(j.current.touched,n)&&V.current.touched&&(zj(j.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:j.current.touched})),!i&&Jj(t)&&zj(S.current,n,oL(d,n)),l)return!s&&J(n),(!iL(c)||u&&iL(c))&&B(c);if(U(),O.current){const{errors:e}=await O.current(te(),M.current,F),r=j.current.isValid;if(o=Yj(e,n),Jj(t)&&!o&&O.current){const t=NL(n),r=Yj(e,t,{});r.type&&r.message&&(o=r),t&&(r||Yj(j.current.errors,t))&&(n=t)}a=iL(e),r!==a&&(u=!0)}else o=(await EL(d,F,r,S))[n];!s&&J(n),$(n,o,u,c,a)}};const ne=m(async(e={})=>{const t=iL(d.current)?w.current:{},{errors:n}=await O.current(Object.assign(Object.assign(Object.assign({},t),te()),e),M.current,F)||{},r=iL(n);j.current.isValid!==r&&B({isValid:r})},[F]),re=m((e,t)=>{!function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,l=e.current[s];if(!o){const t=oL(e,s,r);!Zj(t)&&zj(r.current,s,t)}i.type&&l?Xj(i)||Jj(i)?Array.isArray(l.options)&&l.options.length?(Uj(l.options).forEach((e={},n)=>{(aL(e.ref)&&cL(e,e.ref)||a)&&(qj(e.ref,t),lL(l.options,`[${n}]`))}),l.options&&!Uj(l.options).length&&delete e.current[s]):delete e.current[s]:(aL(i)&&cL(l,i)||a)&&(qj(i,t),delete e.current[s]):delete e.current[s]}(d,k.current,e,S,i,t),i&&(lL(x.current,e.ref.name),lL(y.current,e.ref.name))},[i]),oe=m(e=>{if(C.current)B();else{for(const t of g.current)if(t.startsWith(e)){B();break}J(e)}},[]),ae=m((e,t)=>{e&&(re(e,t),i&&!Uj(e.options||[]).length&&(lL(j.current.errors,e.ref.name),zj(j.current.dirtyFields,e.ref.name,!0),B({isDirty:W()}),V.current.isValid&&O.current&&ne(),oe(e.ref.name)))},[ne,re]);const ie=m((e,t,n)=>{const r=n?b.current[n]:g.current;let o=hL(d,TL(S.current),i,!1,e);if(fL(e)){const n=NL(e)||e;return T.current.has(n)&&(o=Object.assign(Object.assign({},h.current),o)),kL(o,e,r,Zj(Yj(w.current,e))?t:Yj(w.current,e),!0)}const a=Zj(t)?w.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:kL(o,t,r,a)}),{}):(C.current=Zj(n),Wj(!iL(o)&&o||a))},[]);function se(e,t={}){if("production"!==process.env.NODE_ENV){if(!e.name)return console.warn("📋 Field is missing `name` attribute",e,"https://react-hook-form.com/api#useForm");if(T.current.has(e.name.split(/\[\d+\]$/)[0])&&!RegExp(`^${e.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e.name))return console.warn('📋 `name` prop should be in object shape: name="test[index].name"',e,"https://react-hook-form.com/api#useFieldArray")}const{name:n,type:r,value:o}=e,a=Object.assign({ref:e},t),s=d.current,l=PL(e),c=ML(T.current,n),u=t=>OL&&(!xj(e)||t===e);let p,m=s[n],f=!0;if(m&&(l?Array.isArray(m.options)&&Uj(m.options).find(e=>o===e.ref.value&&u(e.ref)):u(m.ref)))return void(s[n]=Object.assign(Object.assign({},m),t));m=r?l?Object.assign({options:[...Uj(m&&m.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},a):a,s[n]=m;const h=Zj(Yj(S.current,n));iL(w.current)&&h||(p=Yj(h?w.current:S.current,n),f=Zj(p),f||c||z(n,p)),iL(t)||(zj(y.current,n,!0),!P&&V.current.isValid&&EL(d,F,m,S).then(e=>{const t=j.current.isValid;iL(e)?zj(x.current,n,!0):lL(x.current,n),t!==iL(e)&&B()})),!i||c&&f||!c&&lL(j.current.dirtyFields,n),r&&function({ref:e},t,n){xj(e)&&n&&(e.addEventListener(t?Ej:Cj,n),e.addEventListener(wj,n))}(l&&m.options?m.options[m.options.length-1]:m,l||e.type===`${Tj}-one`,k.current)}const le=m((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=ee(hL(d,TL(S.current),i,!0));V.current.isSubmitting&&B({isSubmitting:!0});try{if(O.current){const{errors:e,values:t}=await O.current(o,M.current,F);j.current.errors=r=e,o=t}else for(const e of Object.values(d.current))if(e){const{name:t}=e.ref,n=await EL(d,F,e,S);n[t]?(zj(r,t,n[t]),lL(x.current,t)):Yj(y.current,t)&&(lL(j.current.errors,t),zj(x.current,t,!0))}iL(r)&&Object.keys(j.current.errors).every(e=>e in d.current)?(B({errors:{},isSubmitting:!0}),await e(o,n)):(j.current.errors=Object.assign(Object.assign({},j.current.errors),r),t&&await t(j.current.errors,n),a&&((e,t)=>{for(const n in e)if(Yj(t,n)){const t=e[n];if(t){if(t.ref.focus&&Zj(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(d.current,j.current.errors))}finally{j.current.isSubmitting=!1,B({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:iL(j.current.errors),submitCount:j.current.submitCount+1})}},[a,F]);c(()=>{n&&V.current.isValid&&ne(),L.current=L.current||!OL?L.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&aL(e.ref)&&t(n);else n&&aL(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(d,ae)},[ae,w.current]),c(()=>()=>{L.current&&L.current.disconnect(),E.current=!0,"production"===process.env.NODE_ENV&&Object.values(d.current).forEach(e=>ae(e,!0))},[]),!n&&V.current.isValid&&(R.isValid=pL(x.current,y.current)&&iL(j.current.errors));const ce={trigger:G,setValue:m(function(e,t,n){X(e,t,n||{}),Q(e)&&B(),J(e)},[X,G]),getValues:m(te,[]),register:m(function(e,t){if(!AL)if(fL(e))se({name:e},t);else{if(!_j(e)||!("name"in e))return t=>t&&se(t,e);se(e,t)}},[w.current]),unregister:m(function(e){for(const t of Array.isArray(e)?e:[e])ae(d.current[t],!0)},[]),formState:FL?new Proxy(R,{get:(e,t)=>{if("production"!==process.env.NODE_ENV&&"isValid"===t&&P&&console.warn("📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState"),t in e)return V.current[t]=!0,e[t]}}):R},ue=f(()=>Object.assign({isFormDirty:W,updateWatchedValue:oe,shouldUnregister:i,updateFormState:B,removeFieldEventListener:re,watchInternal:ie,mode:D.current,reValidateMode:{isReValidateOnBlur:H,isReValidateOnChange:_},validateResolver:n?ne:void 0,fieldsRef:d,resetFieldArrayFunctionRef:N,useWatchFieldsRef:b,useWatchRenderFunctionsRef:v,fieldArrayDefaultValuesRef:p,validFieldsRef:x,fieldsWithValidationRef:y,fieldArrayNamesRef:T,readFormStateRef:V,formStateRef:j,defaultValuesRef:w,shallowFieldsStateRef:S,fieldArrayValuesRef:h},ce),[w.current,oe,i,re,ie]);return Object.assign({watch:function(e,t){return ie(e,t)},control:ue,handleSubmit:le,reset:m((e,t={})=>{if(OL)for(const e of Object.values(d.current))if(e){const{ref:t,options:n}=e,r=PL(t)&&Array.isArray(n)?n[0].ref:t;if(xj(r))try{r.closest("form").reset();break}catch(e){}}d.current={},w.current=Object.assign({},e||w.current),e&&J(""),Object.values(N.current).forEach(e=>vL(e)&&e()),S.current=i?{}:TL(e||w.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(x.current={},y.current={}),p.current={},g.current=new Set,C.current=!1,B({submitCount:a?j.current.submitCount:0,isDirty:!!t&&j.current.isDirty,isSubmitted:!!n&&j.current.isSubmitted,isValid:!!o&&j.current.isValid,dirtyFields:i?j.current.dirtyFields:{},touched:r?j.current.touched:{},errors:e?j.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:m(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>d.current[e]&&Bj(e)?delete j.current.errors[e]:lL(j.current.errors,e)),B({errors:e?j.current.errors:{}})},[]),setError:m(function(e,t){const n=(d.current[e]||{}).ref;zj(j.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),B({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:R.errors},ce)}
296
296
  /*! *****************************************************************************
297
297
  Copyright (c) Microsoft Corporation.
298
298