Plugin Directory

Changeset 3274157


Ignore:
Timestamp:
04/16/2025 06:00:15 AM (9 months ago)
Author:
j__3rk
Message:

Update to version 3.4.11 from GitHub

Location:
inactive-logout
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • inactive-logout/tags/3.4.11/build/index.asset.php

    r3235374 r3274157  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element'), 'version' => '26145dbc2786945dd5ab');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element'), 'version' => 'e3c2813c85c5d6aa7bb5');
  • inactive-logout/tags/3.4.11/build/index.js

    r3235374 r3274157  
    1 (()=>{var e={792:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==i){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=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},o=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}}(),a=n(609),s=p(a),i=p(n(795)),u=p(n(556)),c=p(n(90)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(462)),d=n(834),f=p(d),h=n(345);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==i.default.createPortal,y=function(e){return document.createElement(e)},w=function(){return v?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var M=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.removePortal=function(){!v&&i.default.unmountComponentAtNode(o.node);var e=O(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,s.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,i=n.nextParent;i!==s&&(s.removeChild(this.node),i.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),w()(s.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(a.Component);M.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(f.default),u.default.instanceOf(d.SafeHTMLCollection),u.default.instanceOf(d.SafeNodeList),u.default.arrayOf(u.default.instanceOf(f.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},M.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(M),t.default=M},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=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}}(),s=n(609),i=g(n(556)),u=m(n(791)),c=g(n(67)),l=m(n(462)),d=m(n(838)),f=n(834),h=g(f),p=g(n(628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(727);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,i=s&&s().ownerDocument||document;a&&d.remove(i.body,a),o&&d.remove(i.getElementsByTagName("html")[0],o),r&&v>0&&0==(v-=1)&&l.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,l.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,s=e.children,i=n?{}:a.content,u=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=r({id:t,ref:this.setContentRef,style:r({},i,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(l,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(h.default),i.default.instanceOf(f.SafeHTMLCollection),i.default.instanceOf(f.SafeNodeList),i.default.arrayOf(i.default.instanceOf(h.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},t.default=y,e.exports=t.default},462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=(r=n(771))&&r.__esModule?r:{default:r},a=n(834),s=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(628))&&r.__esModule?r:{default:r},a=void 0,s=void 0,i=[];function u(){0!==i.length&&i[i.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(i=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var s in r)o(a,r[s]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,o=(r=n(411))&&r.__esModule?r:{default:r},a=[],s=null,i=!1;function u(){i=!0}function c(){if(i){if(i=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(792))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},67:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,s=t.shiftKey,i=n[0],u=n[n.length-1],c=a();if(e===c){if(!s)return;r=u}if(u!==c||s||(r=i),i===c&&s&&(r=u),r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=s?u:i).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(411))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(720))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},771:e=>{"use strict";e.exports=function(){}},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(609);const t=window.ReactJSXRuntime;var r,o,a=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,d=(r=(e,t)=>{var r,o;r=e,o=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,o=2*r,a=new WeakMap,s=function(e,t){return function(a){var s=t.get(a),i=void 0===s?a.size:s<o?s+1:0;if(!a.has(i))return e(a,i);if(a.size<r){for(;a.has(i);)i=Math.floor(Math.random()*o);return e(a,i)}if(a.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;a.has(i);)i=Math.floor(Math.random()*n);return e(a,i)}}((t=a,function(e,n){return t.set(e,n),n}),a),i=function(e){return function(t){var n=e(t);return t.add(n),n}}(s);e.addUniqueNumber=i,e.generateUniqueNumber=s},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})},()=>(o||r((o={exports:{}}).exports,o),o.exports));e.Component;((e,t,n)=>{n=null!=e?a(c(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))!l.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=i(t,n))||r.enumerable})})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(d());var f="object"==(typeof window>"u"?"undefined":typeof window),h={setTimeout:f?setTimeout.bind(window):setTimeout,clearTimeout:f?clearTimeout.bind(window):clearTimeout,setInterval:f?setInterval.bind(window):setInterval,clearInterval:f?clearInterval.bind(window):clearInterval},p={},m=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,p[e]=p[e]||[],p[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),h.setTimeout((()=>{window.localStorage.removeItem(n)}),500),p[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=p[this.name].indexOf(this);p[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function g(){return Math.random().toString(36).substring(2)}var b=class{options;channel;token=g();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>h.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((n=>{let r=()=>{if(e)return;e=!0;try{h.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",o),n()};t=h.setInterval((()=>{this.apply().then((()=>{this.isLeader&&r()}))}),this.options.fallbackInterval),this.intervals.push(t);let o=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&r()}))};this.channel.addEventListener("message",o)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>h.clearInterval(e)))}catch{}}}},v=class{channel;options;elector;token=g();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new m(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new b(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},y=f?document:null,w=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function O(e,t){let n=0;return function(...r){let o=(new Date).getTime();if(!(o-n<t))return n=o,e(...r)}}var M=()=>Date.now(),C=2147483647;(0,e.createContext)(null).Consumer;var S=n(312),E=n.n(S);const k={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",transform:"translate(-50%, -50%)",padding:"0",border:"1px solid #888",boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",width:"60%"},overlay:{zIndex:"99999",background:"rgb(29 29 29 / 75%)"}},T={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const x={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function A(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function N(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?function(e,t){for(let t=0;t<e.length;t++)if(e[t].test(s))return t}(i):function(e,t){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(i);let c;return c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}var D;const j={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=T[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:(e,t,n,r)=>_[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:A({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:A({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:A({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:A({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:A({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(D={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(D.matchPattern);if(!n)return null;const r=n[0],o=e.match(D.parsePattern);if(!o)return null;let a=D.valueCallback?D.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let L={};function R(){return L}Math.pow(10,8);const W=6048e5,F=864e5,I=Symbol.for("constructDateFrom");function H(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&I in e?e[I](t):e instanceof Date?new e.constructor(t):new Date(t)}function U(e,t){return H(t||e,e)}function q(e){const t=U(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function B(e,t){const n=U(e,t?.in);return n.setHours(0,0,0,0),n}function Y(e,t){const n=U(e,t?.in);return function(e,t,n){const[r,o]=function(e,...t){const n=H.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}(n?.in,e,t),a=B(r),s=B(o),i=+a-q(a),u=+s-q(s);return Math.round((i-u)/F)}(n,function(e,t){const n=U(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}function z(e,t){const n=R(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=U(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function X(e,t){return z(e,{...t,weekStartsOn:1})}function $(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=H(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=X(o),s=H(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=X(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function G(e,t){const n=U(e,t?.in),r=+X(n)-+function(e,t){const n=$(e,t),r=H(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),X(r)}(n);return Math.round(r/W)+1}function Q(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=R(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=H(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=z(s,t),u=H(t?.in||e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const c=z(u,t);return+n>=+i?r+1:+n>=+c?r:r-1}function J(e,t){const n=U(e,t?.in),r=+z(n,t)-+function(e,t){const n=R(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Q(e,t),a=H(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),z(a,t)}(n,t);return Math.round(r/W)+1}function V(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const K={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return V("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):V(n+1,2)},d:(e,t)=>V(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>V(e.getHours()%12||12,t.length),H:(e,t)=>V(e.getHours(),t.length),m:(e,t)=>V(e.getMinutes(),t.length),s:(e,t)=>V(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return V(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Z={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return K.y(e,t)},Y:function(e,t,n,r){const o=Q(e,r),a=o>0?o:1-o;return"YY"===t?V(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):V(a,t.length)},R:function(e,t){return V($(e),t.length)},u:function(e,t){return V(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return V(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return V(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return K.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return V(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=J(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,n){const r=G(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):V(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):K.d(e,t)},D:function(e,t,n){const r=Y(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):V(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return V(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return V(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return V(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return K.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):K.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):K.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):K.s(e,t)},S:function(e,t){return K.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return te(r);case"XXXX":case"XX":return ne(r);default:return ne(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return te(r);case"xxxx":case"xx":return ne(r);default:return ne(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},t:function(e,t,n){return V(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return V(+e,t.length)}};function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+V(a,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+V(Math.abs(e)/60,2):ne(e,t)}function ne(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+V(Math.trunc(r/60),2)+t+V(r%60,2)}const re=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ae={p:oe,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return re(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",re(r,t)).replace("{{time}}",oe(o,t))}},se=/^D+$/,ie=/^Y+$/,ue=["D","DD","YY","YYYY"];function ce(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+U(e)));var t}const le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/[a-zA-Z]/;function me(e,t,n){const r=R(),o=n?.locale??r.locale??j,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=U(e,n?.in);if(!ce(i))throw new RangeError("Invalid time value");let u=t.match(de).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ae[t])(e,o.formatLong):e})).join("").match(le).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ge(e)};if(Z[t])return{isToken:!0,value:e};if(t.match(pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return ie.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return se.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ue.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Z[a[0]])(i,a,o.localize,c)})).join("")}function ge(e){const t=e.match(fe);return t?t[1].replace(he,"'"):e}function be({timeout:e,remaining:n,lastActive:r,promptBeforeIdle:o}){const a=e=>e.toString().padStart(2,"0");let s=(e=>{const t={d:"dd",D:"EEE",j:"d",l:"EEEE",N:"i",S:"do",w:"e",z:"D",W:"II",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"Y",Y:"yyyy",y:"yy",a:"aaa",A:"a",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zzzz",I:"",O:"XXX",P:"XX",T:"z",Z:"",c:"yyyy-MM-dd'T'HH:mm:ssXXX",r:"EEE, dd MMM yyyy HH:mm:ss XX",U:"t"};return e.replace(/(d|D|j|l|N|S|w|z|W|F|m|M|n|t|L|o|Y|y|a|A|B|g|G|h|H|i|s|u|e|I|O|P|T|Z|c|r|U)/g,(e=>t[e]||e))})(inactiveLogout?.settings?.debug_msg?.date_time_format);void 0===s&&(s="HH:MM:ss");const i=n-o/1e3;return(0,t.jsx)("div",{className:"ina-debugger-section",children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{className:"ina-timeout-remaining-debugger",children:n&&inactiveLogout.settings.timeout!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.logout," "]})}),(0,t.jsx)("span",{children:(e=>{let t=Math.floor(e),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,r%=24,0!==r?`${a(r)}:${a(n)}:${a(t)}`:0!==t?`${a(n)}:${a(t)}`:`${a(n)} minutes`})(i)})]}):(0,t.jsx)("span",{children:inactiveLogout.settings.debug_msg.active})}),(0,t.jsxs)("li",{className:"ina-timeout-active-debugger",children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.last_active," "]})}),(0,t.jsx)("span",{children:me(r,s)})]})]})})}const ve=window.wp.element;function ye(){const{settings:n,modal:r,security:o,ajaxurl:a}=inactiveLogout,s=n.disable_countdown?50:1e3*n.countdown_timeout||1e3,i=1e3*n.timeout+s,u=s,[c,l]=(0,ve.useState)(!1),[d,p]=(0,ve.useState)(+new Date),[m,g]=(0,ve.useState)(0),[b,S]=(0,ve.useState)(!1),T=(0,ve.useCallback)((()=>{n.warn_message_enabled&&n.redirect&&!n.disable_automatic_redirect?window.location.href=n.redirect:(l(!0),g(u),S(!1))}),[n]),P=(0,ve.useCallback)((async()=>{if(A(),g(0),!n.warn_message_enabled){S(r.logout_message);const e=new FormData;e.append("action","ina_logout_session"),e.append("security",o);try{const t=await fetch(a,{method:"POST",body:e,headers:{pragma:"no-cache","cache-control":"no-cache"}});window.dispatchEvent(new CustomEvent("logoutSuccess")),t?.data?.open_id_redirection&&(window.location.href=t?.data?.open_id_redirection),n.redirect&&!n.disable_automatic_redirect&&(window.location.href=n.redirect)}catch(e){console.error("Error:",e)}}}),[n,o,a]),x=(0,ve.useCallback)((()=>{l(!1),g(0)}),[]),{getRemainingTime:_,pause:A,isPrompted:N,activate:D,getLastActiveTime:j}=function({timeout:t=12e5,promptTimeout:n=0,promptBeforeIdle:r=0,element:o=y,events:a=w,timers:s,immediateEvents:i=[],onPresenceChange:u=(()=>{}),onPrompt:c=(()=>{}),onIdle:l=(()=>{}),onActive:d=(()=>{}),onAction:p=(()=>{}),onMessage:m=(()=>{}),debounce:g=0,throttle:b=0,eventsThrottle:S=200,startOnMount:E=!0,startManually:k=!1,stopOnIdle:T=!1,crossTab:P=!1,name:x="idle-timer",syncTimers:_=0,leaderElection:A=!1,disabled:N=!1}={}){let D=(0,e.useRef)(M()),j=(0,e.useRef)(M()),L=(0,e.useRef)(null),R=(0,e.useRef)(null),W=(0,e.useRef)(0),F=(0,e.useRef)(0),I=(0,e.useRef)(0),H=(0,e.useRef)(0),U=(0,e.useRef)(!1),q=(0,e.useRef)(!1),B=(0,e.useRef)(!1),Y=(0,e.useRef)(!0),z=(0,e.useRef)(!1),X=(0,e.useRef)(null),$=(0,e.useRef)(null),G=(0,e.useRef)(t),Q=(0,e.useRef)(0);(0,e.useEffect)((()=>{if(n&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&n)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=C)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${C}.`);if(n>=C)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${C}.`);if(r>=C)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${C}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(G.current=t-r,Q.current=r):(G.current=t,Q.current=n),!Y.current){if(k||N)return;U.current&&(oe.current(null,Ie),$.current&&$.current.active()),ye()}}),[t,n,r,k,N]);let J=(0,e.useRef)(T);(0,e.useEffect)((()=>{J.current=T}),[T]);let V=(0,e.useRef)(i),K=(0,e.useRef)(o),Z=(0,e.useRef)([...new Set([...a,...i]).values()]),ee=(0,e.useRef)(N);(0,e.useEffect)((()=>{ee.current=N,!Y.current&&(N?Me():k||ye())}),[N]);let te=(0,e.useRef)(u);(0,e.useEffect)((()=>{te.current=u}),[u]);let ne=(0,e.useRef)(c);(0,e.useEffect)((()=>{ne.current=c}),[c]);let re=(0,e.useRef)(l);(0,e.useEffect)((()=>{re.current=l}),[l]);let oe=(0,e.useRef)(d);(0,e.useEffect)((()=>{oe.current=d}),[d]);let ae=(0,e.useRef)(p);(0,e.useEffect)((()=>{ae.current=p}),[p]);let se=(0,e.useRef)(m);(0,e.useEffect)((()=>{se.current=m}),[m]);let ie=(0,e.useMemo)((()=>{let e=(e,t)=>ae.current(e,t);return g>0?function(e,t){let n;function r(...r){n&&clearTimeout(n),n=setTimeout((()=>{e(...r),n=null}),t)}return r.cancel=function(){clearTimeout(n)},r}(e,g):b>0?O(e,b):e}),[b,g]),ue=(0,e.useRef)();(0,e.useEffect)((()=>{P&&_&&(ue.current=O((()=>{$.current.active()}),_))}),[P,_]);let ce=()=>{null!==X.current&&(h.clearTimeout(X.current),X.current=null)},le=(e,t=!0)=>{ce(),X.current=h.setTimeout(pe,e||G.current),t&&(R.current=M())},de=e=>{!q.current&&!U.current&&(ne.current(e,Ie),te.current({type:"active",prompted:!0},Ie)),H.current=0,I.current=M(),q.current=!0,le(Q.current,!1)},fe=()=>{ce(),U.current||(re.current(null,Ie),te.current({type:"idle"},Ie)),U.current=!0,L.current=M(),J.current?ve():q.current&&(I.current=0,q.current=!1)},he=e=>{ce(),(U.current||q.current)&&(oe.current(e,Ie),te.current({type:"active",prompted:!1},Ie)),q.current=!1,I.current=0,U.current=!1,W.current+=M()-L.current,F.current+=M()-L.current,be(),le()},pe=e=>{if(!U.current){ie.cancel&&ie.cancel();let t=M()-R.current;return G.current+Q.current<t||!(Q.current>0)||q.current?void($.current?$.current.idle():fe()):void($.current?$.current.prompt():de(e))}$.current?$.current.active():he(e)},me=e=>{if(!E&&!R.current&&(R.current=M(),oe.current(null,Ie)),ie(e,Ie),q.current)return;if(ce(),!U.current&&V.current.includes(e.type))return void pe(e);let t=M()-R.current;U.current&&!T||!U.current&&t>=G.current?pe(e):(B.current=!1,H.current=0,I.current=0,le(),P&&_&&ue.current())},ge=(0,e.useRef)(me);(0,e.useEffect)((()=>{let e=z.current;e&&ve(),ge.current=S>0?O(me,S):me,e&&be()}),[S,b,g,ae,P,_]);let be=()=>{f&&K.current&&(z.current||(Z.current.forEach((e=>{K.current.addEventListener(e,ge.current,{capture:!0,passive:!0})})),z.current=!0))},ve=(e=!1)=>{f&&K.current&&(z.current||e)&&(Z.current.forEach((e=>{K.current.removeEventListener(e,ge.current,{capture:!0})})),z.current=!1)},ye=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.start(),le(),!0)),[X,U,ee,G,$]),we=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),j.current=M(),W.current+=M()-L.current,F.current+=M()-L.current,W.current=0,U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.reset(),k||le(),!0)),[X,U,G,k,ee,$]),Oe=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),(U.current||q.current)&&he(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,j.current=M(),$.current&&!e&&$.current.activate(),le(),!0)),[X,U,q,ee,G,$]),Me=(0,e.useCallback)(((e=!1)=>!ee.current&&!B.current&&(H.current=_e(),B.current=!0,ve(),ce(),$.current&&!e&&$.current.pause(),!0)),[X,ee,$]),Ce=(0,e.useCallback)(((e=!1)=>!(ee.current||!B.current||(B.current=!1,q.current||be(),U.current||le(H.current),I.current&&(I.current=M()),$.current&&!e&&$.current.resume(),0))),[X,G,ee,H,$]),Se=(0,e.useCallback)(((e,t)=>($.current?(t&&se.current(e,Ie),$.current.message(e)):t&&se.current(e,Ie),!0)),[m]),Ee=(0,e.useCallback)((()=>U.current),[U]),ke=(0,e.useCallback)((()=>q.current),[q]),Te=(0,e.useCallback)((()=>$.current?$.current.isLeader:null),[$]),Pe=(0,e.useCallback)((()=>$.current?$.current.isLastActive:null),[$]),xe=(0,e.useCallback)((()=>$.current?$.current.token:null),[$]),_e=(0,e.useCallback)((()=>{if(B.current)return H.current;let e=H.current?H.current:Q.current+G.current,t=R.current?M()-R.current:0,n=Math.floor(e-t);return n<0?0:Math.abs(n)}),[G,Q,q,H,R]),Ae=(0,e.useCallback)((()=>Math.round(M()-j.current)),[j]),Ne=(0,e.useCallback)((()=>Math.round(M()-D.current)),[D]),De=(0,e.useCallback)((()=>L.current?new Date(L.current):null),[L]),je=(0,e.useCallback)((()=>R.current?new Date(R.current):null),[R]),Le=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+W.current):Math.round(W.current)),[L,W]),Re=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+F.current):Math.round(F.current)),[L,F]),We=(0,e.useCallback)((()=>{let e=Math.round(Ae()-Le());return e>=0?e:0}),[L,W]),Fe=(0,e.useCallback)((()=>{let e=Math.round(Ne()-Re());return e>=0?e:0}),[L,W]);(0,e.useEffect)((()=>{if(g>0&&b>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");s&&function(e){h.setTimeout=e.setTimeout,h.clearTimeout=e.clearTimeout,h.setInterval=e.setInterval,h.clearInterval=e.clearInterval}(s);let e=()=>{$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)};return f&&window.addEventListener("beforeunload",e),()=>{f&&window.removeEventListener("beforeunload",e),$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)}}),[]),(0,e.useEffect)((()=>{$.current&&$.current.close(),$.current=P?new v({channelName:x,leaderElection:A,onPrompt:()=>{de()},onIdle:()=>{fe()},onActive:()=>{he()},onMessage:e=>{se.current(e,Ie)},start:ye,reset:we,activate:Oe,pause:Me,resume:Ce}):null}),[P,x,A,ne,re,oe,se,ye,we,Me,Ce]),(0,e.useEffect)((()=>{Y.current||(ce(),ve(!0)),!k&&!N&&(E?ye():be())}),[k,E,N,Y]),(0,e.useEffect)((()=>{if(!Y.current){let e=[...new Set([...a,...i]).values()];if(ve(),Z.current=e,K.current=o,V.current=i,k||N)return;E?ye():be()}}),[o,JSON.stringify(a),JSON.stringify(i),Y,N,k,E]),(0,e.useEffect)((()=>{Y.current&&(Y.current=!1)}),[Y]);let Ie={message:Se,start:ye,reset:we,activate:Oe,pause:Me,resume:Ce,isIdle:Ee,isPrompted:ke,isLeader:Te,isLastActiveTab:Pe,getTabId:xe,getRemainingTime:_e,getElapsedTime:Ae,getTotalElapsedTime:Ne,getLastIdleTime:De,getLastActiveTime:je,getIdleTime:Le,getTotalIdleTime:Re,getActiveTime:We,getTotalActiveTime:Fe,setOnPresenceChange:e=>{u=e,te.current=e},setOnPrompt:e=>{c=e,ne.current=e},setOnIdle:e=>{l=e,re.current=e},setOnActive:e=>{d=e,oe.current=e},setOnAction:e=>{p=e,ae.current=e},setOnMessage:e=>{m=e,se.current=e}};return Ie}({timeout:i,promptBeforeIdle:u,onPrompt:T,onIdle:P,onActive:x,crossTab:!0,syncTimers:!0,name:"inactive-logout-timer",throttle:500}),L=(0,ve.useCallback)((()=>{l(!1),D()}),[D]),R=(0,ve.useCallback)((()=>{l(!1),n.redirect?window.location.href=n.redirect:window.location.reload()}),[n]);return(0,ve.useEffect)((()=>{const e=setInterval((()=>{n.debug_js&&(g(Math.ceil(_()/1e3)),p(j())),N()&&g(Math.ceil(_()/1e3))}),1e3);return()=>{clearInterval(e)}}),[_,N,j,n.debug_js]),E().setAppElement("#ina-logout-modal-container"),(0,t.jsxs)(t.Fragment,{children:[n.debug_js&&(0,t.jsx)(be,{timeout:i,remaining:m,lastActive:d,promptBeforeIdle:u}),(0,t.jsx)(E(),{isOpen:c,style:k,children:(0,t.jsxs)("div",{className:"ina-modal-inside",children:[(0,t.jsx)("h2",{children:r.headerText}),(0,t.jsx)("div",{className:"ina-modal-content",dangerouslySetInnerHTML:{__html:b||r.message}}),(0,t.jsx)("div",{className:"ina-modal-actions",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:R,className:"ina-button ina-stay-logged-in",children:r.ok}),!r.disableCloseWithoutReloadBtn&&(0,t.jsx)("button",{onClick:L,className:"ina-button ina-close-without-reloading",children:r.close})]}):(0,t.jsx)("button",{onClick:L,className:"ina-button ina-stay-logged-in",children:!n.warn_message_enabled&&m>0?`${r.continue} (${m})`:r.wakeup_continue})})]})})]})}const we=window.wp.domReady;n.n(we)()((()=>{(0,ve.createRoot)(document.getElementById("ina-logout-modal-container")).render((0,t.jsx)(ye,{}))}))})()})();
     1(()=>{var e={792:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==i){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=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},o=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}}(),a=n(609),s=p(a),i=p(n(795)),u=p(n(556)),c=p(n(90)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(462)),d=n(834),f=p(d),h=n(345);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==i.default.createPortal,y=function(e){return document.createElement(e)},w=function(){return v?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var M=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.removePortal=function(){!v&&i.default.unmountComponentAtNode(o.node);var e=O(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,s.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,i=n.nextParent;i!==s&&(s.removeChild(this.node),i.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),w()(s.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(a.Component);M.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(f.default),u.default.instanceOf(d.SafeHTMLCollection),u.default.instanceOf(d.SafeNodeList),u.default.arrayOf(u.default.instanceOf(f.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},M.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(M),t.default=M},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=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}}(),s=n(609),i=g(n(556)),u=m(n(791)),c=g(n(67)),l=m(n(462)),d=m(n(838)),f=n(834),h=g(f),p=g(n(628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(727);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,i=s&&s().ownerDocument||document;a&&d.remove(i.body,a),o&&d.remove(i.getElementsByTagName("html")[0],o),r&&v>0&&0==(v-=1)&&l.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,l.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,s=e.children,i=n?{}:a.content,u=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=r({id:t,ref:this.setContentRef,style:r({},i,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(l,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(h.default),i.default.instanceOf(f.SafeHTMLCollection),i.default.instanceOf(f.SafeNodeList),i.default.arrayOf(i.default.instanceOf(h.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},t.default=y,e.exports=t.default},462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=(r=n(771))&&r.__esModule?r:{default:r},a=n(834),s=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(628))&&r.__esModule?r:{default:r},a=void 0,s=void 0,i=[];function u(){0!==i.length&&i[i.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(i=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var s in r)o(a,r[s]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,o=(r=n(411))&&r.__esModule?r:{default:r},a=[],s=null,i=!1;function u(){i=!0}function c(){if(i){if(i=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(792))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},67:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,s=t.shiftKey,i=n[0],u=n[n.length-1],c=a();if(e===c){if(!s)return;r=u}if(u!==c||s||(r=i),i===c&&s&&(r=u),r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=s?u:i).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(411))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(720))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},771:e=>{"use strict";e.exports=function(){}},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(609);const t=window.ReactJSXRuntime;var r,o,a=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,d=(r=(e,t)=>{var r,o;r=e,o=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,o=2*r,a=new WeakMap,s=function(e,t){return function(a){var s=t.get(a),i=void 0===s?a.size:s<o?s+1:0;if(!a.has(i))return e(a,i);if(a.size<r){for(;a.has(i);)i=Math.floor(Math.random()*o);return e(a,i)}if(a.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;a.has(i);)i=Math.floor(Math.random()*n);return e(a,i)}}((t=a,function(e,n){return t.set(e,n),n}),a),i=function(e){return function(t){var n=e(t);return t.add(n),n}}(s);e.addUniqueNumber=i,e.generateUniqueNumber=s},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})},()=>(o||r((o={exports:{}}).exports,o),o.exports));e.Component;((e,t,n)=>{n=null!=e?a(c(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))!l.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=i(t,n))||r.enumerable})})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(d());var f="object"==(typeof window>"u"?"undefined":typeof window),h={setTimeout:f?setTimeout.bind(window):setTimeout,clearTimeout:f?clearTimeout.bind(window):clearTimeout,setInterval:f?setInterval.bind(window):setInterval,clearInterval:f?clearInterval.bind(window):clearInterval},p={},m=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,p[e]=p[e]||[],p[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),h.setTimeout((()=>{window.localStorage.removeItem(n)}),500),p[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=p[this.name].indexOf(this);p[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function g(){return Math.random().toString(36).substring(2)}var b=class{options;channel;token=g();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>h.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((n=>{let r=()=>{if(e)return;e=!0;try{h.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",o),n()};t=h.setInterval((()=>{this.apply().then((()=>{this.isLeader&&r()}))}),this.options.fallbackInterval),this.intervals.push(t);let o=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&r()}))};this.channel.addEventListener("message",o)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>h.clearInterval(e)))}catch{}}}},v=class{channel;options;elector;token=g();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new m(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new b(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},y=f?document:null,w=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function O(e,t){let n=0;return function(...r){let o=(new Date).getTime();if(!(o-n<t))return n=o,e(...r)}}var M=()=>Date.now(),C=2147483647;(0,e.createContext)(null).Consumer;var E=n(312),S=n.n(E);const k={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",transform:"translate(-50%, -50%)",padding:"0",border:"1px solid #888",boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",width:"60%"},overlay:{zIndex:"99999",background:"rgb(29 29 29 / 75%)"}},T={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const x={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function A(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function j(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?function(e,t){for(let t=0;t<e.length;t++)if(e[t].test(s))return t}(i):function(e,t){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(i);let c;return c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}var N;const D={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=T[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:(e,t,n,r)=>_[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:A({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:A({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:A({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:A({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:A({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(N={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(N.matchPattern);if(!n)return null;const r=n[0],o=e.match(N.parsePattern);if(!o)return null;let a=N.valueCallback?N.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:j({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:j({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let L={};function R(){return L}Math.pow(10,8);const W=6048e5,F=864e5,I=Symbol.for("constructDateFrom");function H(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&I in e?e[I](t):e instanceof Date?new e.constructor(t):new Date(t)}function U(e,t){return H(t||e,e)}function q(e){const t=U(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function B(e,t){const n=U(e,t?.in);return n.setHours(0,0,0,0),n}function Y(e,t){const n=U(e,t?.in);return function(e,t,n){const[r,o]=function(e,...t){const n=H.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}(n?.in,e,t),a=B(r),s=B(o),i=+a-q(a),u=+s-q(s);return Math.round((i-u)/F)}(n,function(e,t){const n=U(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}function z(e,t){const n=R(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=U(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function X(e,t){return z(e,{...t,weekStartsOn:1})}function $(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=H(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=X(o),s=H(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=X(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function G(e,t){const n=U(e,t?.in),r=+X(n)-+function(e,t){const n=$(e,t),r=H(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),X(r)}(n);return Math.round(r/W)+1}function Q(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=R(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=H(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=z(s,t),u=H(t?.in||e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const c=z(u,t);return+n>=+i?r+1:+n>=+c?r:r-1}function J(e,t){const n=U(e,t?.in),r=+z(n,t)-+function(e,t){const n=R(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Q(e,t),a=H(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),z(a,t)}(n,t);return Math.round(r/W)+1}function V(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const K={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return V("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):V(n+1,2)},d:(e,t)=>V(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>V(e.getHours()%12||12,t.length),H:(e,t)=>V(e.getHours(),t.length),m:(e,t)=>V(e.getMinutes(),t.length),s:(e,t)=>V(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return V(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Z={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return K.y(e,t)},Y:function(e,t,n,r){const o=Q(e,r),a=o>0?o:1-o;return"YY"===t?V(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):V(a,t.length)},R:function(e,t){return V($(e),t.length)},u:function(e,t){return V(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return V(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return V(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return K.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return V(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=J(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,n){const r=G(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):V(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):K.d(e,t)},D:function(e,t,n){const r=Y(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):V(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return V(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return V(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return V(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return K.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):K.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):K.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):K.s(e,t)},S:function(e,t){return K.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return te(r);case"XXXX":case"XX":return ne(r);default:return ne(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return te(r);case"xxxx":case"xx":return ne(r);default:return ne(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},t:function(e,t,n){return V(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return V(+e,t.length)}};function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+V(a,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+V(Math.abs(e)/60,2):ne(e,t)}function ne(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+V(Math.trunc(r/60),2)+t+V(r%60,2)}const re=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ae={p:oe,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return re(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",re(r,t)).replace("{{time}}",oe(o,t))}},se=/^D+$/,ie=/^Y+$/,ue=["D","DD","YY","YYYY"];function ce(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+U(e)));var t}const le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/[a-zA-Z]/;function me(e,t,n){const r=R(),o=n?.locale??r.locale??D,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=U(e,n?.in);if(!ce(i))throw new RangeError("Invalid time value");let u=t.match(de).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ae[t])(e,o.formatLong):e})).join("").match(le).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ge(e)};if(Z[t])return{isToken:!0,value:e};if(t.match(pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return ie.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return se.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ue.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Z[a[0]])(i,a,o.localize,c)})).join("")}function ge(e){const t=e.match(fe);return t?t[1].replace(he,"'"):e}function be({timeout:e,remaining:n,lastActive:r,promptBeforeIdle:o}){const a=e=>e.toString().padStart(2,"0");let s=(e=>{const t={jS:"do",d:"dd",D:"EEE",j:"d",l:"EEEE",N:"i",S:"do",w:"e",z:"D",W:"II",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"Y",Y:"yyyy",y:"yy",a:"aaa",A:"a",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zzzz",I:"",O:"XXX",P:"XX",T:"z",Z:"",c:"yyyy-MM-dd'T'HH:mm:ssXXX",r:"EEE, dd MMM yyyy HH:mm:ss XX",U:"t"},n=new RegExp(Object.keys(t).sort(((e,t)=>t.length-e.length)).join("|"),"g");return e.replace(n,(e=>t[e]||e))})(inactiveLogout?.settings?.debug_msg?.date_time_format);void 0===s&&(s="HH:MM:ss");const i=n-o/1e3;return(0,t.jsx)("div",{className:"ina-debugger-section",children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{className:"ina-timeout-remaining-debugger",children:n&&inactiveLogout.settings.timeout!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.logout," "]})}),(0,t.jsx)("span",{children:(e=>{let t=Math.floor(e),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,r%=24,0!==r?`${a(r)}:${a(n)}:${a(t)}`:0!==t?`${a(n)}:${a(t)}`:`${a(n)} minutes`})(i)})]}):(0,t.jsx)("span",{children:inactiveLogout.settings.debug_msg.active})}),(0,t.jsxs)("li",{className:"ina-timeout-active-debugger",children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.last_active," "]})}),(0,t.jsx)("span",{children:me(r,s)})]})]})})}const ve=window.wp.element;function ye(){const{settings:n,modal:r,security:o,ajaxurl:a}=inactiveLogout,s=n.disable_countdown?50:1e3*n.countdown_timeout||1e3,i=1e3*n.timeout+s,u=s,[c,l]=(0,ve.useState)(!1),[d,p]=(0,ve.useState)(+new Date),[m,g]=(0,ve.useState)(0),[b,E]=(0,ve.useState)(!1),T=(0,ve.useCallback)((()=>{n.warn_message_enabled&&n.redirect&&!n.disable_automatic_redirect?window.location.href=n.redirect:(l(!0),g(u),E(!1))}),[n]),P=(0,ve.useCallback)((async()=>{if(A(),g(0),!n.warn_message_enabled){E(r.logout_message);const e=new FormData;e.append("action","ina_logout_session"),e.append("security",o);try{const t=await fetch(a,{method:"POST",body:e,headers:{pragma:"no-cache","cache-control":"no-cache"}});window.dispatchEvent(new CustomEvent("logoutSuccess")),t?.data?.open_id_redirection&&(window.location.href=t?.data?.open_id_redirection),n.redirect&&!n.disable_automatic_redirect&&(window.location.href=n.redirect)}catch(e){console.error("Error:",e)}}}),[n,o,a]),x=(0,ve.useCallback)((()=>{l(!1),g(0)}),[]),{getRemainingTime:_,pause:A,isPrompted:j,activate:N,getLastActiveTime:D}=function({timeout:t=12e5,promptTimeout:n=0,promptBeforeIdle:r=0,element:o=y,events:a=w,timers:s,immediateEvents:i=[],onPresenceChange:u=(()=>{}),onPrompt:c=(()=>{}),onIdle:l=(()=>{}),onActive:d=(()=>{}),onAction:p=(()=>{}),onMessage:m=(()=>{}),debounce:g=0,throttle:b=0,eventsThrottle:E=200,startOnMount:S=!0,startManually:k=!1,stopOnIdle:T=!1,crossTab:P=!1,name:x="idle-timer",syncTimers:_=0,leaderElection:A=!1,disabled:j=!1}={}){let N=(0,e.useRef)(M()),D=(0,e.useRef)(M()),L=(0,e.useRef)(null),R=(0,e.useRef)(null),W=(0,e.useRef)(0),F=(0,e.useRef)(0),I=(0,e.useRef)(0),H=(0,e.useRef)(0),U=(0,e.useRef)(!1),q=(0,e.useRef)(!1),B=(0,e.useRef)(!1),Y=(0,e.useRef)(!0),z=(0,e.useRef)(!1),X=(0,e.useRef)(null),$=(0,e.useRef)(null),G=(0,e.useRef)(t),Q=(0,e.useRef)(0);(0,e.useEffect)((()=>{if(n&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&n)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=C)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${C}.`);if(n>=C)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${C}.`);if(r>=C)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${C}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(G.current=t-r,Q.current=r):(G.current=t,Q.current=n),!Y.current){if(k||j)return;U.current&&(oe.current(null,Ie),$.current&&$.current.active()),ye()}}),[t,n,r,k,j]);let J=(0,e.useRef)(T);(0,e.useEffect)((()=>{J.current=T}),[T]);let V=(0,e.useRef)(i),K=(0,e.useRef)(o),Z=(0,e.useRef)([...new Set([...a,...i]).values()]),ee=(0,e.useRef)(j);(0,e.useEffect)((()=>{ee.current=j,!Y.current&&(j?Me():k||ye())}),[j]);let te=(0,e.useRef)(u);(0,e.useEffect)((()=>{te.current=u}),[u]);let ne=(0,e.useRef)(c);(0,e.useEffect)((()=>{ne.current=c}),[c]);let re=(0,e.useRef)(l);(0,e.useEffect)((()=>{re.current=l}),[l]);let oe=(0,e.useRef)(d);(0,e.useEffect)((()=>{oe.current=d}),[d]);let ae=(0,e.useRef)(p);(0,e.useEffect)((()=>{ae.current=p}),[p]);let se=(0,e.useRef)(m);(0,e.useEffect)((()=>{se.current=m}),[m]);let ie=(0,e.useMemo)((()=>{let e=(e,t)=>ae.current(e,t);return g>0?function(e,t){let n;function r(...r){n&&clearTimeout(n),n=setTimeout((()=>{e(...r),n=null}),t)}return r.cancel=function(){clearTimeout(n)},r}(e,g):b>0?O(e,b):e}),[b,g]),ue=(0,e.useRef)();(0,e.useEffect)((()=>{P&&_&&(ue.current=O((()=>{$.current.active()}),_))}),[P,_]);let ce=()=>{null!==X.current&&(h.clearTimeout(X.current),X.current=null)},le=(e,t=!0)=>{ce(),X.current=h.setTimeout(pe,e||G.current),t&&(R.current=M())},de=e=>{!q.current&&!U.current&&(ne.current(e,Ie),te.current({type:"active",prompted:!0},Ie)),H.current=0,I.current=M(),q.current=!0,le(Q.current,!1)},fe=()=>{ce(),U.current||(re.current(null,Ie),te.current({type:"idle"},Ie)),U.current=!0,L.current=M(),J.current?ve():q.current&&(I.current=0,q.current=!1)},he=e=>{ce(),(U.current||q.current)&&(oe.current(e,Ie),te.current({type:"active",prompted:!1},Ie)),q.current=!1,I.current=0,U.current=!1,W.current+=M()-L.current,F.current+=M()-L.current,be(),le()},pe=e=>{if(!U.current){ie.cancel&&ie.cancel();let t=M()-R.current;return G.current+Q.current<t||!(Q.current>0)||q.current?void($.current?$.current.idle():fe()):void($.current?$.current.prompt():de(e))}$.current?$.current.active():he(e)},me=e=>{if(!S&&!R.current&&(R.current=M(),oe.current(null,Ie)),ie(e,Ie),q.current)return;if(ce(),!U.current&&V.current.includes(e.type))return void pe(e);let t=M()-R.current;U.current&&!T||!U.current&&t>=G.current?pe(e):(B.current=!1,H.current=0,I.current=0,le(),P&&_&&ue.current())},ge=(0,e.useRef)(me);(0,e.useEffect)((()=>{let e=z.current;e&&ve(),ge.current=E>0?O(me,E):me,e&&be()}),[E,b,g,ae,P,_]);let be=()=>{f&&K.current&&(z.current||(Z.current.forEach((e=>{K.current.addEventListener(e,ge.current,{capture:!0,passive:!0})})),z.current=!0))},ve=(e=!1)=>{f&&K.current&&(z.current||e)&&(Z.current.forEach((e=>{K.current.removeEventListener(e,ge.current,{capture:!0})})),z.current=!1)},ye=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.start(),le(),!0)),[X,U,ee,G,$]),we=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),D.current=M(),W.current+=M()-L.current,F.current+=M()-L.current,W.current=0,U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.reset(),k||le(),!0)),[X,U,G,k,ee,$]),Oe=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),(U.current||q.current)&&he(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,D.current=M(),$.current&&!e&&$.current.activate(),le(),!0)),[X,U,q,ee,G,$]),Me=(0,e.useCallback)(((e=!1)=>!ee.current&&!B.current&&(H.current=_e(),B.current=!0,ve(),ce(),$.current&&!e&&$.current.pause(),!0)),[X,ee,$]),Ce=(0,e.useCallback)(((e=!1)=>!(ee.current||!B.current||(B.current=!1,q.current||be(),U.current||le(H.current),I.current&&(I.current=M()),$.current&&!e&&$.current.resume(),0))),[X,G,ee,H,$]),Ee=(0,e.useCallback)(((e,t)=>($.current?(t&&se.current(e,Ie),$.current.message(e)):t&&se.current(e,Ie),!0)),[m]),Se=(0,e.useCallback)((()=>U.current),[U]),ke=(0,e.useCallback)((()=>q.current),[q]),Te=(0,e.useCallback)((()=>$.current?$.current.isLeader:null),[$]),Pe=(0,e.useCallback)((()=>$.current?$.current.isLastActive:null),[$]),xe=(0,e.useCallback)((()=>$.current?$.current.token:null),[$]),_e=(0,e.useCallback)((()=>{if(B.current)return H.current;let e=H.current?H.current:Q.current+G.current,t=R.current?M()-R.current:0,n=Math.floor(e-t);return n<0?0:Math.abs(n)}),[G,Q,q,H,R]),Ae=(0,e.useCallback)((()=>Math.round(M()-D.current)),[D]),je=(0,e.useCallback)((()=>Math.round(M()-N.current)),[N]),Ne=(0,e.useCallback)((()=>L.current?new Date(L.current):null),[L]),De=(0,e.useCallback)((()=>R.current?new Date(R.current):null),[R]),Le=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+W.current):Math.round(W.current)),[L,W]),Re=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+F.current):Math.round(F.current)),[L,F]),We=(0,e.useCallback)((()=>{let e=Math.round(Ae()-Le());return e>=0?e:0}),[L,W]),Fe=(0,e.useCallback)((()=>{let e=Math.round(je()-Re());return e>=0?e:0}),[L,W]);(0,e.useEffect)((()=>{if(g>0&&b>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");s&&function(e){h.setTimeout=e.setTimeout,h.clearTimeout=e.clearTimeout,h.setInterval=e.setInterval,h.clearInterval=e.clearInterval}(s);let e=()=>{$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)};return f&&window.addEventListener("beforeunload",e),()=>{f&&window.removeEventListener("beforeunload",e),$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)}}),[]),(0,e.useEffect)((()=>{$.current&&$.current.close(),$.current=P?new v({channelName:x,leaderElection:A,onPrompt:()=>{de()},onIdle:()=>{fe()},onActive:()=>{he()},onMessage:e=>{se.current(e,Ie)},start:ye,reset:we,activate:Oe,pause:Me,resume:Ce}):null}),[P,x,A,ne,re,oe,se,ye,we,Me,Ce]),(0,e.useEffect)((()=>{Y.current||(ce(),ve(!0)),!k&&!j&&(S?ye():be())}),[k,S,j,Y]),(0,e.useEffect)((()=>{if(!Y.current){let e=[...new Set([...a,...i]).values()];if(ve(),Z.current=e,K.current=o,V.current=i,k||j)return;S?ye():be()}}),[o,JSON.stringify(a),JSON.stringify(i),Y,j,k,S]),(0,e.useEffect)((()=>{Y.current&&(Y.current=!1)}),[Y]);let Ie={message:Ee,start:ye,reset:we,activate:Oe,pause:Me,resume:Ce,isIdle:Se,isPrompted:ke,isLeader:Te,isLastActiveTab:Pe,getTabId:xe,getRemainingTime:_e,getElapsedTime:Ae,getTotalElapsedTime:je,getLastIdleTime:Ne,getLastActiveTime:De,getIdleTime:Le,getTotalIdleTime:Re,getActiveTime:We,getTotalActiveTime:Fe,setOnPresenceChange:e=>{u=e,te.current=e},setOnPrompt:e=>{c=e,ne.current=e},setOnIdle:e=>{l=e,re.current=e},setOnActive:e=>{d=e,oe.current=e},setOnAction:e=>{p=e,ae.current=e},setOnMessage:e=>{m=e,se.current=e}};return Ie}({timeout:i,promptBeforeIdle:u,onPrompt:T,onIdle:P,onActive:x,crossTab:!0,syncTimers:!0,name:"inactive-logout-timer",throttle:500}),L=(0,ve.useCallback)((()=>{l(!1),N()}),[N]),R=(0,ve.useCallback)((()=>{l(!1),n.redirect?window.location.href=n.redirect:window.location.reload()}),[n]);return(0,ve.useEffect)((()=>{const e=setInterval((()=>{n.debug_js&&(g(Math.ceil(_()/1e3)),p(D())),j()&&g(Math.ceil(_()/1e3))}),1e3);return()=>{clearInterval(e)}}),[_,j,D,n.debug_js]),S().setAppElement("#ina-logout-modal-container"),(0,t.jsxs)(t.Fragment,{children:[n.debug_js&&(0,t.jsx)(be,{timeout:i,remaining:m,lastActive:d,promptBeforeIdle:u}),(0,t.jsx)(S(),{isOpen:c,style:k,children:(0,t.jsxs)("div",{className:"ina-modal-inside",children:[(0,t.jsx)("h2",{children:r.headerText}),(0,t.jsx)("div",{className:"ina-modal-content",dangerouslySetInnerHTML:{__html:b||r.message}}),(0,t.jsx)("div",{className:"ina-modal-actions",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:R,className:"ina-button ina-stay-logged-in",children:r.ok}),!r.disableCloseWithoutReloadBtn&&(0,t.jsx)("button",{onClick:L,className:"ina-button ina-close-without-reloading",children:r.close})]}):(0,t.jsx)("button",{onClick:L,className:"ina-button ina-stay-logged-in",children:!n.warn_message_enabled&&m>0?`${r.continue} (${m})`:r.wakeup_continue})})]})})]})}const we=window.wp.domReady;n.n(we)()((()=>{(0,ve.createRoot)(document.getElementById("ina-logout-modal-container")).render((0,t.jsx)(ye,{}))}))})()})();
  • inactive-logout/tags/3.4.11/inactive-logout.php

    r3235947 r3274157  
    88 * Plugin URI:        https://inactive-logout.com/
    99 * Description:       Automatically logout idle user sessions, even if they are on the front end! Fully configurable & easy to use.
    10  * Version:           3.4.10
     10 * Version:           3.4.11
    1111 * Author:            Inactive Logout
    1212 * Author URI:        https://inactive-logout.com/
     
    3131defined( 'INACTIVE_LOGOUT_BUILD_URI' ) || define( 'INACTIVE_LOGOUT_BUILD_URI', INACTIVE_LOGOUT_DIR_URI . 'build' );
    3232defined( 'INACTIVE_LOGOUT_VIEWS' ) || define( 'INACTIVE_LOGOUT_VIEWS', INACTIVE_LOGOUT_DIR_PATH . 'views' );
    33 defined( 'INACTIVE_LOGOUT_VERSION' ) || define( 'INACTIVE_LOGOUT_VERSION', '3.4.10' );
     33defined( 'INACTIVE_LOGOUT_VERSION' ) || define( 'INACTIVE_LOGOUT_VERSION', '3.4.11' );
    3434
    3535//Legacy support
  • inactive-logout/tags/3.4.11/readme.txt

    r3235947 r3274157  
    44Donate link: https://www.paypal.com/donate?hosted_button_id=2UCQKR868M9WE
    55Requires at least: 6.2
    6 Tested up to: 6.7
    7 Stable tag: 3.4.10
     6Tested up to: 6.8
     7Stable tag: 3.4.11
    88License: GPLv2 or later
    99Requires PHP: 7.4
     
    3434* Logout to custom page or existing page.
    3535* Clean UI
     36* WooCommerce Supported.
    3637* Multisite Support: Override all sites with one setting.
    3738
     
    100101
    101102== Changelog ==
     103
     104= 3.4.11 - April 16th, 2025 =
     105* Minor bug fix related to date format conversion.
     106* Bump version for WordPress 6.8 compatibility.
    102107
    103108= 3.4.10 - February 6th, 2025 =
  • inactive-logout/tags/3.4.11/vendor/composer/installed.php

    r3235947 r3274157  
    22    'root' => array(
    33        'name' => 'codemanas/inactive-logout',
    4         'pretty_version' => '3.4.10',
    5         'version' => '3.4.10.0',
    6         'reference' => 'c12a78e7a39a98c821ed87e024e5b0b8ba3b0d5b',
     4        'pretty_version' => '3.4.11',
     5        'version' => '3.4.11.0',
     6        'reference' => '91c92d411340f645d8a974dc17ef85196904e1b3',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'codemanas/inactive-logout' => array(
    14             'pretty_version' => '3.4.10',
    15             'version' => '3.4.10.0',
    16             'reference' => 'c12a78e7a39a98c821ed87e024e5b0b8ba3b0d5b',
     14            'pretty_version' => '3.4.11',
     15            'version' => '3.4.11.0',
     16            'reference' => '91c92d411340f645d8a974dc17ef85196904e1b3',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • inactive-logout/trunk/build/index.asset.php

    r3235374 r3274157  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element'), 'version' => '26145dbc2786945dd5ab');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element'), 'version' => 'e3c2813c85c5d6aa7bb5');
  • inactive-logout/trunk/build/index.js

    r3235374 r3274157  
    1 (()=>{var e={792:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==i){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=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},o=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}}(),a=n(609),s=p(a),i=p(n(795)),u=p(n(556)),c=p(n(90)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(462)),d=n(834),f=p(d),h=n(345);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==i.default.createPortal,y=function(e){return document.createElement(e)},w=function(){return v?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var M=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.removePortal=function(){!v&&i.default.unmountComponentAtNode(o.node);var e=O(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,s.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,i=n.nextParent;i!==s&&(s.removeChild(this.node),i.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),w()(s.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(a.Component);M.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(f.default),u.default.instanceOf(d.SafeHTMLCollection),u.default.instanceOf(d.SafeNodeList),u.default.arrayOf(u.default.instanceOf(f.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},M.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(M),t.default=M},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=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}}(),s=n(609),i=g(n(556)),u=m(n(791)),c=g(n(67)),l=m(n(462)),d=m(n(838)),f=n(834),h=g(f),p=g(n(628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(727);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,i=s&&s().ownerDocument||document;a&&d.remove(i.body,a),o&&d.remove(i.getElementsByTagName("html")[0],o),r&&v>0&&0==(v-=1)&&l.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,l.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,s=e.children,i=n?{}:a.content,u=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=r({id:t,ref:this.setContentRef,style:r({},i,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(l,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(h.default),i.default.instanceOf(f.SafeHTMLCollection),i.default.instanceOf(f.SafeNodeList),i.default.arrayOf(i.default.instanceOf(h.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},t.default=y,e.exports=t.default},462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=(r=n(771))&&r.__esModule?r:{default:r},a=n(834),s=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(628))&&r.__esModule?r:{default:r},a=void 0,s=void 0,i=[];function u(){0!==i.length&&i[i.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(i=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var s in r)o(a,r[s]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,o=(r=n(411))&&r.__esModule?r:{default:r},a=[],s=null,i=!1;function u(){i=!0}function c(){if(i){if(i=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(792))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},67:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,s=t.shiftKey,i=n[0],u=n[n.length-1],c=a();if(e===c){if(!s)return;r=u}if(u!==c||s||(r=i),i===c&&s&&(r=u),r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=s?u:i).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(411))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(720))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},771:e=>{"use strict";e.exports=function(){}},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(609);const t=window.ReactJSXRuntime;var r,o,a=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,d=(r=(e,t)=>{var r,o;r=e,o=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,o=2*r,a=new WeakMap,s=function(e,t){return function(a){var s=t.get(a),i=void 0===s?a.size:s<o?s+1:0;if(!a.has(i))return e(a,i);if(a.size<r){for(;a.has(i);)i=Math.floor(Math.random()*o);return e(a,i)}if(a.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;a.has(i);)i=Math.floor(Math.random()*n);return e(a,i)}}((t=a,function(e,n){return t.set(e,n),n}),a),i=function(e){return function(t){var n=e(t);return t.add(n),n}}(s);e.addUniqueNumber=i,e.generateUniqueNumber=s},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})},()=>(o||r((o={exports:{}}).exports,o),o.exports));e.Component;((e,t,n)=>{n=null!=e?a(c(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))!l.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=i(t,n))||r.enumerable})})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(d());var f="object"==(typeof window>"u"?"undefined":typeof window),h={setTimeout:f?setTimeout.bind(window):setTimeout,clearTimeout:f?clearTimeout.bind(window):clearTimeout,setInterval:f?setInterval.bind(window):setInterval,clearInterval:f?clearInterval.bind(window):clearInterval},p={},m=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,p[e]=p[e]||[],p[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),h.setTimeout((()=>{window.localStorage.removeItem(n)}),500),p[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=p[this.name].indexOf(this);p[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function g(){return Math.random().toString(36).substring(2)}var b=class{options;channel;token=g();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>h.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((n=>{let r=()=>{if(e)return;e=!0;try{h.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",o),n()};t=h.setInterval((()=>{this.apply().then((()=>{this.isLeader&&r()}))}),this.options.fallbackInterval),this.intervals.push(t);let o=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&r()}))};this.channel.addEventListener("message",o)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>h.clearInterval(e)))}catch{}}}},v=class{channel;options;elector;token=g();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new m(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new b(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},y=f?document:null,w=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function O(e,t){let n=0;return function(...r){let o=(new Date).getTime();if(!(o-n<t))return n=o,e(...r)}}var M=()=>Date.now(),C=2147483647;(0,e.createContext)(null).Consumer;var S=n(312),E=n.n(S);const k={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",transform:"translate(-50%, -50%)",padding:"0",border:"1px solid #888",boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",width:"60%"},overlay:{zIndex:"99999",background:"rgb(29 29 29 / 75%)"}},T={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const x={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function A(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function N(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?function(e,t){for(let t=0;t<e.length;t++)if(e[t].test(s))return t}(i):function(e,t){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(i);let c;return c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}var D;const j={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=T[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:(e,t,n,r)=>_[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:A({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:A({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:A({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:A({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:A({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(D={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(D.matchPattern);if(!n)return null;const r=n[0],o=e.match(D.parsePattern);if(!o)return null;let a=D.valueCallback?D.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let L={};function R(){return L}Math.pow(10,8);const W=6048e5,F=864e5,I=Symbol.for("constructDateFrom");function H(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&I in e?e[I](t):e instanceof Date?new e.constructor(t):new Date(t)}function U(e,t){return H(t||e,e)}function q(e){const t=U(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function B(e,t){const n=U(e,t?.in);return n.setHours(0,0,0,0),n}function Y(e,t){const n=U(e,t?.in);return function(e,t,n){const[r,o]=function(e,...t){const n=H.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}(n?.in,e,t),a=B(r),s=B(o),i=+a-q(a),u=+s-q(s);return Math.round((i-u)/F)}(n,function(e,t){const n=U(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}function z(e,t){const n=R(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=U(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function X(e,t){return z(e,{...t,weekStartsOn:1})}function $(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=H(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=X(o),s=H(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=X(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function G(e,t){const n=U(e,t?.in),r=+X(n)-+function(e,t){const n=$(e,t),r=H(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),X(r)}(n);return Math.round(r/W)+1}function Q(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=R(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=H(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=z(s,t),u=H(t?.in||e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const c=z(u,t);return+n>=+i?r+1:+n>=+c?r:r-1}function J(e,t){const n=U(e,t?.in),r=+z(n,t)-+function(e,t){const n=R(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Q(e,t),a=H(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),z(a,t)}(n,t);return Math.round(r/W)+1}function V(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const K={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return V("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):V(n+1,2)},d:(e,t)=>V(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>V(e.getHours()%12||12,t.length),H:(e,t)=>V(e.getHours(),t.length),m:(e,t)=>V(e.getMinutes(),t.length),s:(e,t)=>V(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return V(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Z={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return K.y(e,t)},Y:function(e,t,n,r){const o=Q(e,r),a=o>0?o:1-o;return"YY"===t?V(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):V(a,t.length)},R:function(e,t){return V($(e),t.length)},u:function(e,t){return V(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return V(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return V(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return K.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return V(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=J(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,n){const r=G(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):V(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):K.d(e,t)},D:function(e,t,n){const r=Y(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):V(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return V(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return V(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return V(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return K.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):K.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):K.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):K.s(e,t)},S:function(e,t){return K.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return te(r);case"XXXX":case"XX":return ne(r);default:return ne(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return te(r);case"xxxx":case"xx":return ne(r);default:return ne(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},t:function(e,t,n){return V(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return V(+e,t.length)}};function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+V(a,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+V(Math.abs(e)/60,2):ne(e,t)}function ne(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+V(Math.trunc(r/60),2)+t+V(r%60,2)}const re=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ae={p:oe,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return re(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",re(r,t)).replace("{{time}}",oe(o,t))}},se=/^D+$/,ie=/^Y+$/,ue=["D","DD","YY","YYYY"];function ce(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+U(e)));var t}const le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/[a-zA-Z]/;function me(e,t,n){const r=R(),o=n?.locale??r.locale??j,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=U(e,n?.in);if(!ce(i))throw new RangeError("Invalid time value");let u=t.match(de).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ae[t])(e,o.formatLong):e})).join("").match(le).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ge(e)};if(Z[t])return{isToken:!0,value:e};if(t.match(pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return ie.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return se.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ue.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Z[a[0]])(i,a,o.localize,c)})).join("")}function ge(e){const t=e.match(fe);return t?t[1].replace(he,"'"):e}function be({timeout:e,remaining:n,lastActive:r,promptBeforeIdle:o}){const a=e=>e.toString().padStart(2,"0");let s=(e=>{const t={d:"dd",D:"EEE",j:"d",l:"EEEE",N:"i",S:"do",w:"e",z:"D",W:"II",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"Y",Y:"yyyy",y:"yy",a:"aaa",A:"a",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zzzz",I:"",O:"XXX",P:"XX",T:"z",Z:"",c:"yyyy-MM-dd'T'HH:mm:ssXXX",r:"EEE, dd MMM yyyy HH:mm:ss XX",U:"t"};return e.replace(/(d|D|j|l|N|S|w|z|W|F|m|M|n|t|L|o|Y|y|a|A|B|g|G|h|H|i|s|u|e|I|O|P|T|Z|c|r|U)/g,(e=>t[e]||e))})(inactiveLogout?.settings?.debug_msg?.date_time_format);void 0===s&&(s="HH:MM:ss");const i=n-o/1e3;return(0,t.jsx)("div",{className:"ina-debugger-section",children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{className:"ina-timeout-remaining-debugger",children:n&&inactiveLogout.settings.timeout!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.logout," "]})}),(0,t.jsx)("span",{children:(e=>{let t=Math.floor(e),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,r%=24,0!==r?`${a(r)}:${a(n)}:${a(t)}`:0!==t?`${a(n)}:${a(t)}`:`${a(n)} minutes`})(i)})]}):(0,t.jsx)("span",{children:inactiveLogout.settings.debug_msg.active})}),(0,t.jsxs)("li",{className:"ina-timeout-active-debugger",children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.last_active," "]})}),(0,t.jsx)("span",{children:me(r,s)})]})]})})}const ve=window.wp.element;function ye(){const{settings:n,modal:r,security:o,ajaxurl:a}=inactiveLogout,s=n.disable_countdown?50:1e3*n.countdown_timeout||1e3,i=1e3*n.timeout+s,u=s,[c,l]=(0,ve.useState)(!1),[d,p]=(0,ve.useState)(+new Date),[m,g]=(0,ve.useState)(0),[b,S]=(0,ve.useState)(!1),T=(0,ve.useCallback)((()=>{n.warn_message_enabled&&n.redirect&&!n.disable_automatic_redirect?window.location.href=n.redirect:(l(!0),g(u),S(!1))}),[n]),P=(0,ve.useCallback)((async()=>{if(A(),g(0),!n.warn_message_enabled){S(r.logout_message);const e=new FormData;e.append("action","ina_logout_session"),e.append("security",o);try{const t=await fetch(a,{method:"POST",body:e,headers:{pragma:"no-cache","cache-control":"no-cache"}});window.dispatchEvent(new CustomEvent("logoutSuccess")),t?.data?.open_id_redirection&&(window.location.href=t?.data?.open_id_redirection),n.redirect&&!n.disable_automatic_redirect&&(window.location.href=n.redirect)}catch(e){console.error("Error:",e)}}}),[n,o,a]),x=(0,ve.useCallback)((()=>{l(!1),g(0)}),[]),{getRemainingTime:_,pause:A,isPrompted:N,activate:D,getLastActiveTime:j}=function({timeout:t=12e5,promptTimeout:n=0,promptBeforeIdle:r=0,element:o=y,events:a=w,timers:s,immediateEvents:i=[],onPresenceChange:u=(()=>{}),onPrompt:c=(()=>{}),onIdle:l=(()=>{}),onActive:d=(()=>{}),onAction:p=(()=>{}),onMessage:m=(()=>{}),debounce:g=0,throttle:b=0,eventsThrottle:S=200,startOnMount:E=!0,startManually:k=!1,stopOnIdle:T=!1,crossTab:P=!1,name:x="idle-timer",syncTimers:_=0,leaderElection:A=!1,disabled:N=!1}={}){let D=(0,e.useRef)(M()),j=(0,e.useRef)(M()),L=(0,e.useRef)(null),R=(0,e.useRef)(null),W=(0,e.useRef)(0),F=(0,e.useRef)(0),I=(0,e.useRef)(0),H=(0,e.useRef)(0),U=(0,e.useRef)(!1),q=(0,e.useRef)(!1),B=(0,e.useRef)(!1),Y=(0,e.useRef)(!0),z=(0,e.useRef)(!1),X=(0,e.useRef)(null),$=(0,e.useRef)(null),G=(0,e.useRef)(t),Q=(0,e.useRef)(0);(0,e.useEffect)((()=>{if(n&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&n)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=C)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${C}.`);if(n>=C)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${C}.`);if(r>=C)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${C}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(G.current=t-r,Q.current=r):(G.current=t,Q.current=n),!Y.current){if(k||N)return;U.current&&(oe.current(null,Ie),$.current&&$.current.active()),ye()}}),[t,n,r,k,N]);let J=(0,e.useRef)(T);(0,e.useEffect)((()=>{J.current=T}),[T]);let V=(0,e.useRef)(i),K=(0,e.useRef)(o),Z=(0,e.useRef)([...new Set([...a,...i]).values()]),ee=(0,e.useRef)(N);(0,e.useEffect)((()=>{ee.current=N,!Y.current&&(N?Me():k||ye())}),[N]);let te=(0,e.useRef)(u);(0,e.useEffect)((()=>{te.current=u}),[u]);let ne=(0,e.useRef)(c);(0,e.useEffect)((()=>{ne.current=c}),[c]);let re=(0,e.useRef)(l);(0,e.useEffect)((()=>{re.current=l}),[l]);let oe=(0,e.useRef)(d);(0,e.useEffect)((()=>{oe.current=d}),[d]);let ae=(0,e.useRef)(p);(0,e.useEffect)((()=>{ae.current=p}),[p]);let se=(0,e.useRef)(m);(0,e.useEffect)((()=>{se.current=m}),[m]);let ie=(0,e.useMemo)((()=>{let e=(e,t)=>ae.current(e,t);return g>0?function(e,t){let n;function r(...r){n&&clearTimeout(n),n=setTimeout((()=>{e(...r),n=null}),t)}return r.cancel=function(){clearTimeout(n)},r}(e,g):b>0?O(e,b):e}),[b,g]),ue=(0,e.useRef)();(0,e.useEffect)((()=>{P&&_&&(ue.current=O((()=>{$.current.active()}),_))}),[P,_]);let ce=()=>{null!==X.current&&(h.clearTimeout(X.current),X.current=null)},le=(e,t=!0)=>{ce(),X.current=h.setTimeout(pe,e||G.current),t&&(R.current=M())},de=e=>{!q.current&&!U.current&&(ne.current(e,Ie),te.current({type:"active",prompted:!0},Ie)),H.current=0,I.current=M(),q.current=!0,le(Q.current,!1)},fe=()=>{ce(),U.current||(re.current(null,Ie),te.current({type:"idle"},Ie)),U.current=!0,L.current=M(),J.current?ve():q.current&&(I.current=0,q.current=!1)},he=e=>{ce(),(U.current||q.current)&&(oe.current(e,Ie),te.current({type:"active",prompted:!1},Ie)),q.current=!1,I.current=0,U.current=!1,W.current+=M()-L.current,F.current+=M()-L.current,be(),le()},pe=e=>{if(!U.current){ie.cancel&&ie.cancel();let t=M()-R.current;return G.current+Q.current<t||!(Q.current>0)||q.current?void($.current?$.current.idle():fe()):void($.current?$.current.prompt():de(e))}$.current?$.current.active():he(e)},me=e=>{if(!E&&!R.current&&(R.current=M(),oe.current(null,Ie)),ie(e,Ie),q.current)return;if(ce(),!U.current&&V.current.includes(e.type))return void pe(e);let t=M()-R.current;U.current&&!T||!U.current&&t>=G.current?pe(e):(B.current=!1,H.current=0,I.current=0,le(),P&&_&&ue.current())},ge=(0,e.useRef)(me);(0,e.useEffect)((()=>{let e=z.current;e&&ve(),ge.current=S>0?O(me,S):me,e&&be()}),[S,b,g,ae,P,_]);let be=()=>{f&&K.current&&(z.current||(Z.current.forEach((e=>{K.current.addEventListener(e,ge.current,{capture:!0,passive:!0})})),z.current=!0))},ve=(e=!1)=>{f&&K.current&&(z.current||e)&&(Z.current.forEach((e=>{K.current.removeEventListener(e,ge.current,{capture:!0})})),z.current=!1)},ye=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.start(),le(),!0)),[X,U,ee,G,$]),we=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),j.current=M(),W.current+=M()-L.current,F.current+=M()-L.current,W.current=0,U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.reset(),k||le(),!0)),[X,U,G,k,ee,$]),Oe=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),(U.current||q.current)&&he(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,j.current=M(),$.current&&!e&&$.current.activate(),le(),!0)),[X,U,q,ee,G,$]),Me=(0,e.useCallback)(((e=!1)=>!ee.current&&!B.current&&(H.current=_e(),B.current=!0,ve(),ce(),$.current&&!e&&$.current.pause(),!0)),[X,ee,$]),Ce=(0,e.useCallback)(((e=!1)=>!(ee.current||!B.current||(B.current=!1,q.current||be(),U.current||le(H.current),I.current&&(I.current=M()),$.current&&!e&&$.current.resume(),0))),[X,G,ee,H,$]),Se=(0,e.useCallback)(((e,t)=>($.current?(t&&se.current(e,Ie),$.current.message(e)):t&&se.current(e,Ie),!0)),[m]),Ee=(0,e.useCallback)((()=>U.current),[U]),ke=(0,e.useCallback)((()=>q.current),[q]),Te=(0,e.useCallback)((()=>$.current?$.current.isLeader:null),[$]),Pe=(0,e.useCallback)((()=>$.current?$.current.isLastActive:null),[$]),xe=(0,e.useCallback)((()=>$.current?$.current.token:null),[$]),_e=(0,e.useCallback)((()=>{if(B.current)return H.current;let e=H.current?H.current:Q.current+G.current,t=R.current?M()-R.current:0,n=Math.floor(e-t);return n<0?0:Math.abs(n)}),[G,Q,q,H,R]),Ae=(0,e.useCallback)((()=>Math.round(M()-j.current)),[j]),Ne=(0,e.useCallback)((()=>Math.round(M()-D.current)),[D]),De=(0,e.useCallback)((()=>L.current?new Date(L.current):null),[L]),je=(0,e.useCallback)((()=>R.current?new Date(R.current):null),[R]),Le=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+W.current):Math.round(W.current)),[L,W]),Re=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+F.current):Math.round(F.current)),[L,F]),We=(0,e.useCallback)((()=>{let e=Math.round(Ae()-Le());return e>=0?e:0}),[L,W]),Fe=(0,e.useCallback)((()=>{let e=Math.round(Ne()-Re());return e>=0?e:0}),[L,W]);(0,e.useEffect)((()=>{if(g>0&&b>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");s&&function(e){h.setTimeout=e.setTimeout,h.clearTimeout=e.clearTimeout,h.setInterval=e.setInterval,h.clearInterval=e.clearInterval}(s);let e=()=>{$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)};return f&&window.addEventListener("beforeunload",e),()=>{f&&window.removeEventListener("beforeunload",e),$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)}}),[]),(0,e.useEffect)((()=>{$.current&&$.current.close(),$.current=P?new v({channelName:x,leaderElection:A,onPrompt:()=>{de()},onIdle:()=>{fe()},onActive:()=>{he()},onMessage:e=>{se.current(e,Ie)},start:ye,reset:we,activate:Oe,pause:Me,resume:Ce}):null}),[P,x,A,ne,re,oe,se,ye,we,Me,Ce]),(0,e.useEffect)((()=>{Y.current||(ce(),ve(!0)),!k&&!N&&(E?ye():be())}),[k,E,N,Y]),(0,e.useEffect)((()=>{if(!Y.current){let e=[...new Set([...a,...i]).values()];if(ve(),Z.current=e,K.current=o,V.current=i,k||N)return;E?ye():be()}}),[o,JSON.stringify(a),JSON.stringify(i),Y,N,k,E]),(0,e.useEffect)((()=>{Y.current&&(Y.current=!1)}),[Y]);let Ie={message:Se,start:ye,reset:we,activate:Oe,pause:Me,resume:Ce,isIdle:Ee,isPrompted:ke,isLeader:Te,isLastActiveTab:Pe,getTabId:xe,getRemainingTime:_e,getElapsedTime:Ae,getTotalElapsedTime:Ne,getLastIdleTime:De,getLastActiveTime:je,getIdleTime:Le,getTotalIdleTime:Re,getActiveTime:We,getTotalActiveTime:Fe,setOnPresenceChange:e=>{u=e,te.current=e},setOnPrompt:e=>{c=e,ne.current=e},setOnIdle:e=>{l=e,re.current=e},setOnActive:e=>{d=e,oe.current=e},setOnAction:e=>{p=e,ae.current=e},setOnMessage:e=>{m=e,se.current=e}};return Ie}({timeout:i,promptBeforeIdle:u,onPrompt:T,onIdle:P,onActive:x,crossTab:!0,syncTimers:!0,name:"inactive-logout-timer",throttle:500}),L=(0,ve.useCallback)((()=>{l(!1),D()}),[D]),R=(0,ve.useCallback)((()=>{l(!1),n.redirect?window.location.href=n.redirect:window.location.reload()}),[n]);return(0,ve.useEffect)((()=>{const e=setInterval((()=>{n.debug_js&&(g(Math.ceil(_()/1e3)),p(j())),N()&&g(Math.ceil(_()/1e3))}),1e3);return()=>{clearInterval(e)}}),[_,N,j,n.debug_js]),E().setAppElement("#ina-logout-modal-container"),(0,t.jsxs)(t.Fragment,{children:[n.debug_js&&(0,t.jsx)(be,{timeout:i,remaining:m,lastActive:d,promptBeforeIdle:u}),(0,t.jsx)(E(),{isOpen:c,style:k,children:(0,t.jsxs)("div",{className:"ina-modal-inside",children:[(0,t.jsx)("h2",{children:r.headerText}),(0,t.jsx)("div",{className:"ina-modal-content",dangerouslySetInnerHTML:{__html:b||r.message}}),(0,t.jsx)("div",{className:"ina-modal-actions",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:R,className:"ina-button ina-stay-logged-in",children:r.ok}),!r.disableCloseWithoutReloadBtn&&(0,t.jsx)("button",{onClick:L,className:"ina-button ina-close-without-reloading",children:r.close})]}):(0,t.jsx)("button",{onClick:L,className:"ina-button ina-stay-logged-in",children:!n.warn_message_enabled&&m>0?`${r.continue} (${m})`:r.wakeup_continue})})]})})]})}const we=window.wp.domReady;n.n(we)()((()=>{(0,ve.createRoot)(document.getElementById("ina-logout-modal-container")).render((0,t.jsx)(ye,{}))}))})()})();
     1(()=>{var e={792:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==i){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=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},o=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}}(),a=n(609),s=p(a),i=p(n(795)),u=p(n(556)),c=p(n(90)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(462)),d=n(834),f=p(d),h=n(345);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==i.default.createPortal,y=function(e){return document.createElement(e)},w=function(){return v?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var M=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.removePortal=function(){!v&&i.default.unmountComponentAtNode(o.node);var e=O(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,s.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,i=n.nextParent;i!==s&&(s.removeChild(this.node),i.appendChild(this.node)),(e.isOpen||o)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),w()(s.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}(a.Component);M.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(f.default),u.default.instanceOf(d.SafeHTMLCollection),u.default.instanceOf(d.SafeNodeList),u.default.arrayOf(u.default.instanceOf(f.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},M.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(M),t.default=M},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=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}}(),s=n(609),i=g(n(556)),u=m(n(791)),c=g(n(67)),l=m(n(462)),d=m(n(838)),f=n(834),h=g(f),p=g(n(628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(727);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,i=s&&s().ownerDocument||document;a&&d.remove(i.body,a),o&&d.remove(i.getElementsByTagName("html")[0],o),r&&v>0&&0==(v-=1)&&l.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,l.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,s=e.children,i=n?{}:a.content,u=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=r({id:t,ref:this.setContentRef,style:r({},i,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(l,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(h.default),i.default.instanceOf(f.SafeHTMLCollection),i.default.instanceOf(f.SafeNodeList),i.default.arrayOf(i.default.instanceOf(h.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},t.default=y,e.exports=t.default},462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=u(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=(r=n(771))&&r.__esModule?r:{default:r},a=n(834),s=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,i=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(628))&&r.__esModule?r:{default:r},a=void 0,s=void 0,i=[];function u(){0!==i.length&&i[i.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(i=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var s in r)o(a,r[s]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,o=(r=n(411))&&r.__esModule?r:{default:r},a=[],s=null,i=!1;function u(){i=!0}function c(){if(i){if(i=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(792))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},67:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,s=t.shiftKey,i=n[0],u=n[n.length-1],c=a();if(e===c){if(!s)return;r=u}if(u!==c||s||(r=i),i===c&&s&&(r=u),r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=s?u:i).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(411))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(720))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},771:e=>{"use strict";e.exports=function(){}},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(609);const t=window.ReactJSXRuntime;var r,o,a=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,d=(r=(e,t)=>{var r,o;r=e,o=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,o=2*r,a=new WeakMap,s=function(e,t){return function(a){var s=t.get(a),i=void 0===s?a.size:s<o?s+1:0;if(!a.has(i))return e(a,i);if(a.size<r){for(;a.has(i);)i=Math.floor(Math.random()*o);return e(a,i)}if(a.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;a.has(i);)i=Math.floor(Math.random()*n);return e(a,i)}}((t=a,function(e,n){return t.set(e,n),n}),a),i=function(e){return function(t){var n=e(t);return t.add(n),n}}(s);e.addUniqueNumber=i,e.generateUniqueNumber=s},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})},()=>(o||r((o={exports:{}}).exports,o),o.exports));e.Component;((e,t,n)=>{n=null!=e?a(c(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))!l.call(e,n)&&undefined!==n&&s(e,n,{get:()=>t[n],enumerable:!(r=i(t,n))||r.enumerable})})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(d());var f="object"==(typeof window>"u"?"undefined":typeof window),h={setTimeout:f?setTimeout.bind(window):setTimeout,clearTimeout:f?clearTimeout.bind(window):clearTimeout,setInterval:f?setInterval.bind(window):setInterval,clearInterval:f?clearInterval.bind(window):clearInterval},p={},m=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,p[e]=p[e]||[],p[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),h.setTimeout((()=>{window.localStorage.removeItem(n)}),500),p[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=p[this.name].indexOf(this);p[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function g(){return Math.random().toString(36).substring(2)}var b=class{options;channel;token=g();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>h.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((n=>{let r=()=>{if(e)return;e=!0;try{h.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",o),n()};t=h.setInterval((()=>{this.apply().then((()=>{this.isLeader&&r()}))}),this.options.fallbackInterval),this.intervals.push(t);let o=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&r()}))};this.channel.addEventListener("message",o)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>h.clearInterval(e)))}catch{}}}},v=class{channel;options;elector;token=g();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new m(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new b(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},y=f?document:null,w=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function O(e,t){let n=0;return function(...r){let o=(new Date).getTime();if(!(o-n<t))return n=o,e(...r)}}var M=()=>Date.now(),C=2147483647;(0,e.createContext)(null).Consumer;var E=n(312),S=n.n(E);const k={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",transform:"translate(-50%, -50%)",padding:"0",border:"1px solid #888",boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",width:"60%"},overlay:{zIndex:"99999",background:"rgb(29 29 29 / 75%)"}},T={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const x={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function A(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function j(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?function(e,t){for(let t=0;t<e.length;t++)if(e[t].test(s))return t}(i):function(e,t){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(i);let c;return c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}var N;const D={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=T[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:(e,t,n,r)=>_[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:A({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:A({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:A({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:A({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:A({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(N={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(N.matchPattern);if(!n)return null;const r=n[0],o=e.match(N.parsePattern);if(!o)return null;let a=N.valueCallback?N.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:j({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:j({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let L={};function R(){return L}Math.pow(10,8);const W=6048e5,F=864e5,I=Symbol.for("constructDateFrom");function H(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&I in e?e[I](t):e instanceof Date?new e.constructor(t):new Date(t)}function U(e,t){return H(t||e,e)}function q(e){const t=U(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function B(e,t){const n=U(e,t?.in);return n.setHours(0,0,0,0),n}function Y(e,t){const n=U(e,t?.in);return function(e,t,n){const[r,o]=function(e,...t){const n=H.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}(n?.in,e,t),a=B(r),s=B(o),i=+a-q(a),u=+s-q(s);return Math.round((i-u)/F)}(n,function(e,t){const n=U(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}function z(e,t){const n=R(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=U(e,t?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function X(e,t){return z(e,{...t,weekStartsOn:1})}function $(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=H(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=X(o),s=H(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=X(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function G(e,t){const n=U(e,t?.in),r=+X(n)-+function(e,t){const n=$(e,t),r=H(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),X(r)}(n);return Math.round(r/W)+1}function Q(e,t){const n=U(e,t?.in),r=n.getFullYear(),o=R(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=H(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=z(s,t),u=H(t?.in||e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const c=z(u,t);return+n>=+i?r+1:+n>=+c?r:r-1}function J(e,t){const n=U(e,t?.in),r=+z(n,t)-+function(e,t){const n=R(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Q(e,t),a=H(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),z(a,t)}(n,t);return Math.round(r/W)+1}function V(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const K={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return V("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):V(n+1,2)},d:(e,t)=>V(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>V(e.getHours()%12||12,t.length),H:(e,t)=>V(e.getHours(),t.length),m:(e,t)=>V(e.getMinutes(),t.length),s:(e,t)=>V(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return V(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Z={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return K.y(e,t)},Y:function(e,t,n,r){const o=Q(e,r),a=o>0?o:1-o;return"YY"===t?V(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):V(a,t.length)},R:function(e,t){return V($(e),t.length)},u:function(e,t){return V(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return V(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return V(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return K.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return V(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=J(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,n){const r=G(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):V(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):K.d(e,t)},D:function(e,t,n){const r=Y(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):V(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return V(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return V(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return V(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return K.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):K.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):V(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):K.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):K.s(e,t)},S:function(e,t){return K.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return te(r);case"XXXX":case"XX":return ne(r);default:return ne(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return te(r);case"xxxx":case"xx":return ne(r);default:return ne(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(r,":");default:return"GMT"+ne(r,":")}},t:function(e,t,n){return V(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return V(+e,t.length)}};function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+V(a,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+V(Math.abs(e)/60,2):ne(e,t)}function ne(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+V(Math.trunc(r/60),2)+t+V(r%60,2)}const re=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ae={p:oe,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return re(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",re(r,t)).replace("{{time}}",oe(o,t))}},se=/^D+$/,ie=/^Y+$/,ue=["D","DD","YY","YYYY"];function ce(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+U(e)));var t}const le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/[a-zA-Z]/;function me(e,t,n){const r=R(),o=n?.locale??r.locale??D,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=U(e,n?.in);if(!ce(i))throw new RangeError("Invalid time value");let u=t.match(de).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ae[t])(e,o.formatLong):e})).join("").match(le).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ge(e)};if(Z[t])return{isToken:!0,value:e};if(t.match(pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return ie.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return se.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ue.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Z[a[0]])(i,a,o.localize,c)})).join("")}function ge(e){const t=e.match(fe);return t?t[1].replace(he,"'"):e}function be({timeout:e,remaining:n,lastActive:r,promptBeforeIdle:o}){const a=e=>e.toString().padStart(2,"0");let s=(e=>{const t={jS:"do",d:"dd",D:"EEE",j:"d",l:"EEEE",N:"i",S:"do",w:"e",z:"D",W:"II",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"Y",Y:"yyyy",y:"yy",a:"aaa",A:"a",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zzzz",I:"",O:"XXX",P:"XX",T:"z",Z:"",c:"yyyy-MM-dd'T'HH:mm:ssXXX",r:"EEE, dd MMM yyyy HH:mm:ss XX",U:"t"},n=new RegExp(Object.keys(t).sort(((e,t)=>t.length-e.length)).join("|"),"g");return e.replace(n,(e=>t[e]||e))})(inactiveLogout?.settings?.debug_msg?.date_time_format);void 0===s&&(s="HH:MM:ss");const i=n-o/1e3;return(0,t.jsx)("div",{className:"ina-debugger-section",children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{className:"ina-timeout-remaining-debugger",children:n&&inactiveLogout.settings.timeout!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.logout," "]})}),(0,t.jsx)("span",{children:(e=>{let t=Math.floor(e),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,r%=24,0!==r?`${a(r)}:${a(n)}:${a(t)}`:0!==t?`${a(n)}:${a(t)}`:`${a(n)} minutes`})(i)})]}):(0,t.jsx)("span",{children:inactiveLogout.settings.debug_msg.active})}),(0,t.jsxs)("li",{className:"ina-timeout-active-debugger",children:[(0,t.jsx)("span",{children:(0,t.jsxs)("strong",{children:[inactiveLogout.settings.debug_msg.last_active," "]})}),(0,t.jsx)("span",{children:me(r,s)})]})]})})}const ve=window.wp.element;function ye(){const{settings:n,modal:r,security:o,ajaxurl:a}=inactiveLogout,s=n.disable_countdown?50:1e3*n.countdown_timeout||1e3,i=1e3*n.timeout+s,u=s,[c,l]=(0,ve.useState)(!1),[d,p]=(0,ve.useState)(+new Date),[m,g]=(0,ve.useState)(0),[b,E]=(0,ve.useState)(!1),T=(0,ve.useCallback)((()=>{n.warn_message_enabled&&n.redirect&&!n.disable_automatic_redirect?window.location.href=n.redirect:(l(!0),g(u),E(!1))}),[n]),P=(0,ve.useCallback)((async()=>{if(A(),g(0),!n.warn_message_enabled){E(r.logout_message);const e=new FormData;e.append("action","ina_logout_session"),e.append("security",o);try{const t=await fetch(a,{method:"POST",body:e,headers:{pragma:"no-cache","cache-control":"no-cache"}});window.dispatchEvent(new CustomEvent("logoutSuccess")),t?.data?.open_id_redirection&&(window.location.href=t?.data?.open_id_redirection),n.redirect&&!n.disable_automatic_redirect&&(window.location.href=n.redirect)}catch(e){console.error("Error:",e)}}}),[n,o,a]),x=(0,ve.useCallback)((()=>{l(!1),g(0)}),[]),{getRemainingTime:_,pause:A,isPrompted:j,activate:N,getLastActiveTime:D}=function({timeout:t=12e5,promptTimeout:n=0,promptBeforeIdle:r=0,element:o=y,events:a=w,timers:s,immediateEvents:i=[],onPresenceChange:u=(()=>{}),onPrompt:c=(()=>{}),onIdle:l=(()=>{}),onActive:d=(()=>{}),onAction:p=(()=>{}),onMessage:m=(()=>{}),debounce:g=0,throttle:b=0,eventsThrottle:E=200,startOnMount:S=!0,startManually:k=!1,stopOnIdle:T=!1,crossTab:P=!1,name:x="idle-timer",syncTimers:_=0,leaderElection:A=!1,disabled:j=!1}={}){let N=(0,e.useRef)(M()),D=(0,e.useRef)(M()),L=(0,e.useRef)(null),R=(0,e.useRef)(null),W=(0,e.useRef)(0),F=(0,e.useRef)(0),I=(0,e.useRef)(0),H=(0,e.useRef)(0),U=(0,e.useRef)(!1),q=(0,e.useRef)(!1),B=(0,e.useRef)(!1),Y=(0,e.useRef)(!0),z=(0,e.useRef)(!1),X=(0,e.useRef)(null),$=(0,e.useRef)(null),G=(0,e.useRef)(t),Q=(0,e.useRef)(0);(0,e.useEffect)((()=>{if(n&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&n)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=C)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${C}.`);if(n>=C)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${C}.`);if(r>=C)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${C}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(G.current=t-r,Q.current=r):(G.current=t,Q.current=n),!Y.current){if(k||j)return;U.current&&(oe.current(null,Ie),$.current&&$.current.active()),ye()}}),[t,n,r,k,j]);let J=(0,e.useRef)(T);(0,e.useEffect)((()=>{J.current=T}),[T]);let V=(0,e.useRef)(i),K=(0,e.useRef)(o),Z=(0,e.useRef)([...new Set([...a,...i]).values()]),ee=(0,e.useRef)(j);(0,e.useEffect)((()=>{ee.current=j,!Y.current&&(j?Me():k||ye())}),[j]);let te=(0,e.useRef)(u);(0,e.useEffect)((()=>{te.current=u}),[u]);let ne=(0,e.useRef)(c);(0,e.useEffect)((()=>{ne.current=c}),[c]);let re=(0,e.useRef)(l);(0,e.useEffect)((()=>{re.current=l}),[l]);let oe=(0,e.useRef)(d);(0,e.useEffect)((()=>{oe.current=d}),[d]);let ae=(0,e.useRef)(p);(0,e.useEffect)((()=>{ae.current=p}),[p]);let se=(0,e.useRef)(m);(0,e.useEffect)((()=>{se.current=m}),[m]);let ie=(0,e.useMemo)((()=>{let e=(e,t)=>ae.current(e,t);return g>0?function(e,t){let n;function r(...r){n&&clearTimeout(n),n=setTimeout((()=>{e(...r),n=null}),t)}return r.cancel=function(){clearTimeout(n)},r}(e,g):b>0?O(e,b):e}),[b,g]),ue=(0,e.useRef)();(0,e.useEffect)((()=>{P&&_&&(ue.current=O((()=>{$.current.active()}),_))}),[P,_]);let ce=()=>{null!==X.current&&(h.clearTimeout(X.current),X.current=null)},le=(e,t=!0)=>{ce(),X.current=h.setTimeout(pe,e||G.current),t&&(R.current=M())},de=e=>{!q.current&&!U.current&&(ne.current(e,Ie),te.current({type:"active",prompted:!0},Ie)),H.current=0,I.current=M(),q.current=!0,le(Q.current,!1)},fe=()=>{ce(),U.current||(re.current(null,Ie),te.current({type:"idle"},Ie)),U.current=!0,L.current=M(),J.current?ve():q.current&&(I.current=0,q.current=!1)},he=e=>{ce(),(U.current||q.current)&&(oe.current(e,Ie),te.current({type:"active",prompted:!1},Ie)),q.current=!1,I.current=0,U.current=!1,W.current+=M()-L.current,F.current+=M()-L.current,be(),le()},pe=e=>{if(!U.current){ie.cancel&&ie.cancel();let t=M()-R.current;return G.current+Q.current<t||!(Q.current>0)||q.current?void($.current?$.current.idle():fe()):void($.current?$.current.prompt():de(e))}$.current?$.current.active():he(e)},me=e=>{if(!S&&!R.current&&(R.current=M(),oe.current(null,Ie)),ie(e,Ie),q.current)return;if(ce(),!U.current&&V.current.includes(e.type))return void pe(e);let t=M()-R.current;U.current&&!T||!U.current&&t>=G.current?pe(e):(B.current=!1,H.current=0,I.current=0,le(),P&&_&&ue.current())},ge=(0,e.useRef)(me);(0,e.useEffect)((()=>{let e=z.current;e&&ve(),ge.current=E>0?O(me,E):me,e&&be()}),[E,b,g,ae,P,_]);let be=()=>{f&&K.current&&(z.current||(Z.current.forEach((e=>{K.current.addEventListener(e,ge.current,{capture:!0,passive:!0})})),z.current=!0))},ve=(e=!1)=>{f&&K.current&&(z.current||e)&&(Z.current.forEach((e=>{K.current.removeEventListener(e,ge.current,{capture:!0})})),z.current=!1)},ye=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.start(),le(),!0)),[X,U,ee,G,$]),we=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),D.current=M(),W.current+=M()-L.current,F.current+=M()-L.current,W.current=0,U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,$.current&&!e&&$.current.reset(),k||le(),!0)),[X,U,G,k,ee,$]),Oe=(0,e.useCallback)((e=>!ee.current&&(ce(),be(),(U.current||q.current)&&he(),U.current=!1,q.current=!1,B.current=!1,H.current=0,I.current=0,D.current=M(),$.current&&!e&&$.current.activate(),le(),!0)),[X,U,q,ee,G,$]),Me=(0,e.useCallback)(((e=!1)=>!ee.current&&!B.current&&(H.current=_e(),B.current=!0,ve(),ce(),$.current&&!e&&$.current.pause(),!0)),[X,ee,$]),Ce=(0,e.useCallback)(((e=!1)=>!(ee.current||!B.current||(B.current=!1,q.current||be(),U.current||le(H.current),I.current&&(I.current=M()),$.current&&!e&&$.current.resume(),0))),[X,G,ee,H,$]),Ee=(0,e.useCallback)(((e,t)=>($.current?(t&&se.current(e,Ie),$.current.message(e)):t&&se.current(e,Ie),!0)),[m]),Se=(0,e.useCallback)((()=>U.current),[U]),ke=(0,e.useCallback)((()=>q.current),[q]),Te=(0,e.useCallback)((()=>$.current?$.current.isLeader:null),[$]),Pe=(0,e.useCallback)((()=>$.current?$.current.isLastActive:null),[$]),xe=(0,e.useCallback)((()=>$.current?$.current.token:null),[$]),_e=(0,e.useCallback)((()=>{if(B.current)return H.current;let e=H.current?H.current:Q.current+G.current,t=R.current?M()-R.current:0,n=Math.floor(e-t);return n<0?0:Math.abs(n)}),[G,Q,q,H,R]),Ae=(0,e.useCallback)((()=>Math.round(M()-D.current)),[D]),je=(0,e.useCallback)((()=>Math.round(M()-N.current)),[N]),Ne=(0,e.useCallback)((()=>L.current?new Date(L.current):null),[L]),De=(0,e.useCallback)((()=>R.current?new Date(R.current):null),[R]),Le=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+W.current):Math.round(W.current)),[L,W]),Re=(0,e.useCallback)((()=>U.current?Math.round(M()-L.current+F.current):Math.round(F.current)),[L,F]),We=(0,e.useCallback)((()=>{let e=Math.round(Ae()-Le());return e>=0?e:0}),[L,W]),Fe=(0,e.useCallback)((()=>{let e=Math.round(je()-Re());return e>=0?e:0}),[L,W]);(0,e.useEffect)((()=>{if(g>0&&b>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");s&&function(e){h.setTimeout=e.setTimeout,h.clearTimeout=e.clearTimeout,h.setInterval=e.setInterval,h.clearInterval=e.clearInterval}(s);let e=()=>{$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)};return f&&window.addEventListener("beforeunload",e),()=>{f&&window.removeEventListener("beforeunload",e),$.current&&$.current.close(),ie.cancel&&ie.cancel(),ce(),ve(!0)}}),[]),(0,e.useEffect)((()=>{$.current&&$.current.close(),$.current=P?new v({channelName:x,leaderElection:A,onPrompt:()=>{de()},onIdle:()=>{fe()},onActive:()=>{he()},onMessage:e=>{se.current(e,Ie)},start:ye,reset:we,activate:Oe,pause:Me,resume:Ce}):null}),[P,x,A,ne,re,oe,se,ye,we,Me,Ce]),(0,e.useEffect)((()=>{Y.current||(ce(),ve(!0)),!k&&!j&&(S?ye():be())}),[k,S,j,Y]),(0,e.useEffect)((()=>{if(!Y.current){let e=[...new Set([...a,...i]).values()];if(ve(),Z.current=e,K.current=o,V.current=i,k||j)return;S?ye():be()}}),[o,JSON.stringify(a),JSON.stringify(i),Y,j,k,S]),(0,e.useEffect)((()=>{Y.current&&(Y.current=!1)}),[Y]);let Ie={message:Ee,start:ye,reset:we,activate:Oe,pause:Me,resume:Ce,isIdle:Se,isPrompted:ke,isLeader:Te,isLastActiveTab:Pe,getTabId:xe,getRemainingTime:_e,getElapsedTime:Ae,getTotalElapsedTime:je,getLastIdleTime:Ne,getLastActiveTime:De,getIdleTime:Le,getTotalIdleTime:Re,getActiveTime:We,getTotalActiveTime:Fe,setOnPresenceChange:e=>{u=e,te.current=e},setOnPrompt:e=>{c=e,ne.current=e},setOnIdle:e=>{l=e,re.current=e},setOnActive:e=>{d=e,oe.current=e},setOnAction:e=>{p=e,ae.current=e},setOnMessage:e=>{m=e,se.current=e}};return Ie}({timeout:i,promptBeforeIdle:u,onPrompt:T,onIdle:P,onActive:x,crossTab:!0,syncTimers:!0,name:"inactive-logout-timer",throttle:500}),L=(0,ve.useCallback)((()=>{l(!1),N()}),[N]),R=(0,ve.useCallback)((()=>{l(!1),n.redirect?window.location.href=n.redirect:window.location.reload()}),[n]);return(0,ve.useEffect)((()=>{const e=setInterval((()=>{n.debug_js&&(g(Math.ceil(_()/1e3)),p(D())),j()&&g(Math.ceil(_()/1e3))}),1e3);return()=>{clearInterval(e)}}),[_,j,D,n.debug_js]),S().setAppElement("#ina-logout-modal-container"),(0,t.jsxs)(t.Fragment,{children:[n.debug_js&&(0,t.jsx)(be,{timeout:i,remaining:m,lastActive:d,promptBeforeIdle:u}),(0,t.jsx)(S(),{isOpen:c,style:k,children:(0,t.jsxs)("div",{className:"ina-modal-inside",children:[(0,t.jsx)("h2",{children:r.headerText}),(0,t.jsx)("div",{className:"ina-modal-content",dangerouslySetInnerHTML:{__html:b||r.message}}),(0,t.jsx)("div",{className:"ina-modal-actions",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:R,className:"ina-button ina-stay-logged-in",children:r.ok}),!r.disableCloseWithoutReloadBtn&&(0,t.jsx)("button",{onClick:L,className:"ina-button ina-close-without-reloading",children:r.close})]}):(0,t.jsx)("button",{onClick:L,className:"ina-button ina-stay-logged-in",children:!n.warn_message_enabled&&m>0?`${r.continue} (${m})`:r.wakeup_continue})})]})})]})}const we=window.wp.domReady;n.n(we)()((()=>{(0,ve.createRoot)(document.getElementById("ina-logout-modal-container")).render((0,t.jsx)(ye,{}))}))})()})();
  • inactive-logout/trunk/inactive-logout.php

    r3235947 r3274157  
    88 * Plugin URI:        https://inactive-logout.com/
    99 * Description:       Automatically logout idle user sessions, even if they are on the front end! Fully configurable & easy to use.
    10  * Version:           3.4.10
     10 * Version:           3.4.11
    1111 * Author:            Inactive Logout
    1212 * Author URI:        https://inactive-logout.com/
     
    3131defined( 'INACTIVE_LOGOUT_BUILD_URI' ) || define( 'INACTIVE_LOGOUT_BUILD_URI', INACTIVE_LOGOUT_DIR_URI . 'build' );
    3232defined( 'INACTIVE_LOGOUT_VIEWS' ) || define( 'INACTIVE_LOGOUT_VIEWS', INACTIVE_LOGOUT_DIR_PATH . 'views' );
    33 defined( 'INACTIVE_LOGOUT_VERSION' ) || define( 'INACTIVE_LOGOUT_VERSION', '3.4.10' );
     33defined( 'INACTIVE_LOGOUT_VERSION' ) || define( 'INACTIVE_LOGOUT_VERSION', '3.4.11' );
    3434
    3535//Legacy support
  • inactive-logout/trunk/readme.txt

    r3235947 r3274157  
    44Donate link: https://www.paypal.com/donate?hosted_button_id=2UCQKR868M9WE
    55Requires at least: 6.2
    6 Tested up to: 6.7
    7 Stable tag: 3.4.10
     6Tested up to: 6.8
     7Stable tag: 3.4.11
    88License: GPLv2 or later
    99Requires PHP: 7.4
     
    3434* Logout to custom page or existing page.
    3535* Clean UI
     36* WooCommerce Supported.
    3637* Multisite Support: Override all sites with one setting.
    3738
     
    100101
    101102== Changelog ==
     103
     104= 3.4.11 - April 16th, 2025 =
     105* Minor bug fix related to date format conversion.
     106* Bump version for WordPress 6.8 compatibility.
    102107
    103108= 3.4.10 - February 6th, 2025 =
  • inactive-logout/trunk/vendor/composer/installed.php

    r3235947 r3274157  
    22    'root' => array(
    33        'name' => 'codemanas/inactive-logout',
    4         'pretty_version' => '3.4.10',
    5         'version' => '3.4.10.0',
    6         'reference' => 'c12a78e7a39a98c821ed87e024e5b0b8ba3b0d5b',
     4        'pretty_version' => '3.4.11',
     5        'version' => '3.4.11.0',
     6        'reference' => '91c92d411340f645d8a974dc17ef85196904e1b3',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'codemanas/inactive-logout' => array(
    14             'pretty_version' => '3.4.10',
    15             'version' => '3.4.10.0',
    16             'reference' => 'c12a78e7a39a98c821ed87e024e5b0b8ba3b0d5b',
     14            'pretty_version' => '3.4.11',
     15            'version' => '3.4.11.0',
     16            'reference' => '91c92d411340f645d8a974dc17ef85196904e1b3',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.