tocco-widget-bundle 0.1.176 → 0.1.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +17 -0
- package/dist/address-update.js +8 -8
- package/dist/chunk-240.69ce886a2af9c1908597.js +1 -0
- package/dist/{chunk-690.8e7350e75adf0bbaf7a3.js → chunk-690.95f3e2d1df8802653171.js} +1 -1
- package/dist/{chunk-code-editor.90043e6c234758127b6c.js → chunk-code-editor.5f25929fbf6f0a034556.js} +2 -2
- package/dist/docs-browser.js +2 -2
- package/dist/education-portfolio.js +52 -0
- package/dist/entity-browser.js +2 -2
- package/dist/entity-dms.js +2 -2
- package/dist/evaluation-execution-participation.js +2 -2
- package/dist/event-registration.js +2 -2
- package/dist/job-application.js +2 -2
- package/dist/login.js +2 -2
- package/dist/mailing-list.js +2 -2
- package/dist/password-update.js +2 -2
- package/dist/personal-dms.js +2 -2
- package/dist/public-dms.js +2 -2
- package/dist/sso-login.js +1 -1
- package/dist/stint-auction.js +2 -2
- package/dist/user-availability.js +2 -2
- package/dist/user-grades.js +2 -2
- package/dist/user-menu.js +1 -1
- package/dist/wage-view.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-240.af5ef3d6cfa5170d76e4.js +0 -1
package/dist/login.js
CHANGED
|
@@ -49,9 +49,9 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
|
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(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}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"90043e6c234758127b6c",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"3186988649a5c8a6b487",614:"bba861a36d31d54c5c6b",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>qb});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(28002),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=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}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=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}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(6479),ae=i.n(oe),ie=i(41505),ce=i.n(ie),se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ue=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},le=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},fe={outline:"none"},pe=function(e){function t(){var n,r;se(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=le(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},le(r,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),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ue({ref:this.ref,style:fe},n),e)},t}(O().Component);pe.propTypes={children:ce().oneOfType([ce().node,ce().func]).isRequired,onBlur:ce().func,onFocus:ce().func},pe.defaultProps={onBlur:function(){},onFocus:function(){}};const de=pe;var he,me,ge,ve,ye=i(70696),be=i(10535),we=i(23427),Oe=i(319),xe=i.n(Oe),ke=i(37188),Se=i(24875),Pe=(he={},n()(he,we.Z.condition.BASE,"inherit"),n()(he,we.Z.condition.DANGER,Se.FS.color("signal.danger")),n()(he,we.Z.condition.SUCCESS,Se.FS.color("signal.success")),n()(he,we.Z.condition.WARNING,Se.FS.color("signal.warning")),n()(he,we.Z.condition.INFO,Se.FS.color("signal.info")),he),je=(0,x.ZP)(ke.hc).withConfig({displayName:"StyledSignalList"})(me||(me=b()(["\n && {\n list-style-type: none;\n }\n"]))),_e=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(ge||(ge=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Ee=(0,x.ZP)(ke.EF).withConfig({displayName:"StyledSignalListItem"})(ve||(ve=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return Pe[e.condition]||"inherit"}(e)})),Ce=i(85893);const Te=function(e){return(0,Ce.jsx)(je,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var De,Re,Me=i(88162),Ie=(De={},n()(De,we.Z.condition.BASE,!1),n()(De,we.Z.condition.DANGER,"times"),n()(De,we.Z.condition.SUCCESS,"check"),n()(De,we.Z.condition.WARNING,"exclamation-triangle"),n()(De,we.Z.condition.INFO,"info"),De),Ae=function(e){var t=Ie[e.condition];return t?(0,Ce.jsx)(Me.Z,{icon:t,position:we.Z.position.SOLE}):Re||(Re=(0,Ce.jsx)("i",{children:"•"}))},Ne=function(e){return(0,Ce.jsxs)(Ee,{condition:e.condition,children:[(0,Ce.jsx)(_e,{children:Ae(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ne.defaultProps={condition:we.Z.condition.BASE};const Ze={List:Te,Item:Ne};const Le=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,xe()(e.error[n]))})),(0,Ce.jsx)(Ze.List,{children:t.map((function(e,t){return(0,Ce.jsx)(Ze.Item,{condition:"danger",label:e},t)}))})};var Fe,Ue,He,Be,We,ze,Ye,Ve,qe,Ge,Ke,Xe,$e,Qe,Je,et=i(79686),tt=i(30759),nt=i(7281),rt=i(27361),ot=i.n(rt),at={base:function(e){var t=e.theme;return ot()(t,"colors.text")},shade1:function(e){var t=e.theme;return ot()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return ot()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return ot()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return ot()(t,"colors.signal.info")}},it={base:function(e){var t=e.theme;return ot()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return ot()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return ot()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},ct=i(76538),st="1.1px",ut=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},lt=x.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Ue||(Ue=b()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,tt.Z)({lineHeight:Se.FS.lineHeight("dense")}),Se.FS.color("paper"),(function(e){return ut(e)}),(function(e){return"outside"===e.labelPosition&&(0,x.iv)(He||(He=b()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),nt.Z.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Be||(Be=b()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),nt.Z.space(-2),(function(e){return e.immutable&&"0"}),nt.Z.space(-1.8))}),(function(e){return e.styles})),ft=x.ZP.div.withConfig({displayName:"StyledInputArea"})(We||(We=b()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,x.iv)(ze||(ze=b()(["\n width: auto;\n "])))})),pt=x.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Ye||(Ye=b()(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),st,(function(e){return it[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Se.FS.radii("form"),nt.Z.space(-2.5),nt.Z.space(-1.5),(function(e){return!e.immutable&&function(e){var t=ot()(e.theme,"colors.signal.info",we.Z.fallbackColors.INFO);return(0,x.iv)(Fe||(Fe=b()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,(0,ct.DZ)(.4,t))}(e)}),(function(e){return ut(e)}),et.j,(function(e){return e.isDisplay&&nt.Z.space(-1)}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Ve||(Ve=b()(["\n padding: "," "," "," ",";\n "])),nt.Z.space(-1),nt.Z.space(-1.7),nt.Z.space(-2),nt.Z.space(-1))}),(function(e){return e.styles})),dt=x.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(qe||(qe=b()(["\n &&& {\n ","\n }\n"])),(0,tt.Z)({fontSize:nt.Z.font(-1)})),ht=x.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Ge||(Ge=b()([""]))),mt=x.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Ke||(Ke=b()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),nt.Z.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Xe||(Xe=b()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),nt.Z.space(-1.5))})),gt=x.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})($e||($e=b()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n }\n"])),nt.Z.space(-1.5),pt,dt,ht,nt.Z.space(-2),dt,nt.Z.space(-1),st,(function(e){return"outside"===e.labelPosition&&(0,x.iv)(Qe||(Qe=b()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Je||(Je=b()(["\n padding-top: 0;\n "])))}));function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const bt=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,f=e.label,p=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&d?", ".concat(d):"",O="".concat(ye.Z.adjustedHTMLString(f)).concat(w),x=g||function(e,t,n,r){return t?we.Z.condition.DANGER:e?we.Z.condition.INFO:n&&!r?we.Z.condition.WARNING:void 0}(i,b,p,u),k={__html:"".concat(be.Z.sanitizeHtml(f)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,Ce.jsx)(de,{children:function(e){var l=e.getRef;return(0,Ce.jsx)(mt,{labelPosition:v,children:(0,Ce.jsxs)(gt,{labelPosition:v,ref:l,label:f,children:[f&&(0,Ce.jsx)(lt,yt(yt({},S),{},{hasValue:u,dirty:i,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ce.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ce.jsxs)(ft,{labelPosition:v,children:[(0,Ce.jsx)(pt,{hasValue:u,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ce.jsx)(ht,{children:(0,Ce.jsx)(Le,{error:s})}))),a&&(r||(r=(0,Ce.jsx)(dt,{children:a})))]})]})})}})};var wt,Ot,xt,kt=function(e){return(0,x.iv)(wt||(wt=b()(["\n color: ",";\n font-weight: ",";\n"])),at[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?Se.FS.fontWeight("bold"):Se.FS.fontWeight("regular")}))},St=function(){return(0,x.iv)(Ot||(Ot=b()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,x.iv)(xt||(xt=b()(["\n ","\n "])),nt.Z.space(-1))}),(function(e){return e.immutable&&0}))},Pt=["labelPosition"];function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _t=function(e){var t=e.labelPosition,r=ae()(e,Pt);return(0,Ce.jsx)(bt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({styles:{labelStyles:kt,valueStyles:St},labelPosition:t||"outside-responsive"},r))};var Et,Ct,Tt,Dt=function(e){return e.signal?"signal":"shade1"},Rt=function(e){return(0,x.iv)(Et||(Et=b()(["\n color: ",";\n font-weight: ",";\n"])),at[Dt(e)](e),Se.FS.fontWeight("bold"))},Mt=function(){return(0,x.iv)(Ct||(Ct=b()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;return n?0:t&&n?(0,x.iv)(Tt||(Tt=b()(["\n ","\n "])),nt.Z.space(-1)):void 0}),(function(e){return e.immutable&&0}))},It=["labelPosition"];function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Nt=function(e){var t=e.labelPosition,r=ae()(e,It);return(0,Ce.jsx)(bt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?At(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({styles:{labelStyles:Rt,valueStyles:Mt},labelPosition:t||"outside"},r))};var Zt,Lt=(Zt={},n()(Zt,u.Z.EmbedType.admin,_t),n()(Zt,u.Z.EmbedType.widget,Nt),Zt);const Ft=u.Z.embedStrategyFactory({mapping:Lt});var Ut=i(35997);const Ht=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var Bt,Wt=i(65035),zt=i(88601),Yt=(0,x.ZP)(Wt.Z).withConfig({displayName:"StyledLoginButton"})(Bt||(Bt=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),nt.Z.font(1.3),zt.Z.radii("buttonLarge")),Vt=["disabled","pending","label"];function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gt=function(e){var t=e.disabled,r=e.pending,o=e.label,a=ae()(e,Vt);return(0,Ce.jsx)(Yt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Kt=i(44012),Xt=i(34206);const $t=function(e){var t=e.title,n=e.subtitle;return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Xt.ZP.H5,{children:(0,Ce.jsx)(Kt.Z,{id:t})}),n&&(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:n})})]})};const Qt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var Jt,en,tn,nn,rn,on,an,cn=(0,x.iv)(Jt||(Jt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),sn=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(en||(en=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),cn),un=(0,x.iv)(tn||(tn=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,tt.Z)({color:Se.FS.color("text")})}),Se.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ln=(0,x.iv)(nn||(nn=b()(["\n display: flex;\n align-items: center;\n"]))),fn=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(rn||(rn=b()(["\n &&& {\n ","\n }\n"])),ln),pn=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(on||(on=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),Se.FS.color("signal.danger")),dn=i(58129);const hn=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(an||(an=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),dn.Z);var mn,gn,vn,yn,bn,wn=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(mn||(mn=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: ",";\n padding-bottom: ",";\n }\n"])),un,nt.Z.space(-.9),nt.Z.space(-.9)),On=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(gn||(gn=b()(["\n &&& {\n ","\n }\n"])),cn),xn=(0,x.ZP)(Wt.Z).withConfig({displayName:"StyledTransparentButton"})(vn||(vn=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n padding: "," 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),nt.Z.space(-.1)),kn=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(yn||(yn=b()(["\n "," {\n margin-top: ",";\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),hn,nt.Z.space(.47),dn.Z);function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const jn=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=Qt(l),m=H()(h,2),g=m[0],v=m[1],y=Qt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=Ut.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,Ce.jsxs)(kn,{children:[f&&(bn||(bn=(0,Ce.jsx)($t,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ce.jsxs)("form",{onSubmit:C,children:[(0,Ce.jsx)(Ft,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Pn({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,Ce.jsx)(Ft,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Pn({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,Ce.jsx)(Ht,{message:i}),t&&s&&(0,Ce.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Ce.jsx)(Gt,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Ce.jsx)(xn,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,Ce.jsx)(xn,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var _n={changePage:A,setUsername:N,setPassword:Z,login:v};const En=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),_n)((0,f.ZP)(jn));var Cn,Tn;const Dn=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,Ce.jsxs)(kn,{children:[a&&(Cn||(Cn=(0,Ce.jsx)($t,{title:"client.login.passwordRequest.title"}))),!p&&(Tn||(Tn=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,Ce.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,Ce.jsx)(Ft,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,Ce.jsx)(Gt,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,Ce.jsx)(xn,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Rn={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Mn=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Rn)((0,f.ZP)(Dn));var In="INITIALIZED",An="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Nn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Zn="PasswordUpdateDialog/SET_NEW_PASSWORD",Ln="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Fn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",Un="PasswordUpdateDialog/SAVE_PASSWORD",Hn="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Bn="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",Wn="PasswordUpdateDialog/VALIDATE",zn="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Yn=function(e){return{type:An,payload:{oldPassword:e}}},Vn=function(e){return{type:Ln,payload:{errors:e}}},qn=function(e,t){return{type:Bn,payload:{errorCode:e,validationMessages:t}}},Gn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Kn="PasswordUpdateDialog/SET_VALIDATION_RULES",Xn=i(35728),$n={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const Qn=function(e){return(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:we.Z.condition.DANGER,children:(0,Ce.jsx)(Kt.Z,{id:(t=e.errorCode,$n[t]||"client.login.passwordUpdate.failure")})})});var t};const Jn=function(e){return(0,Ce.jsx)(Ze.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=we.Z.condition.DANGER:"string"==typeof a?(r=we.Z.condition.DANGER,o=a):r=we.Z.condition.SUCCESS}return(0,Ce.jsx)(Ze.Item,{condition:r,label:o},n)}))})};var er,tr,nr=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(er||(er=b()(["\n &&&& {\n ","\n }\n"])),un),rr=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(tr||(tr=b()(["\n && {\n ","\n }\n"])),cn);const or=function(e){var t=u.Z.isInAdminEmbedded();return(0,Ce.jsx)(Ft,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?we.Z.condition.SUCCESS:we.Z.condition.DANGER:null,labelPosition:t?"inside":"outside",children:(0,Ce.jsx)(rr,{immutable:!0===e.readOnly,children:(0,Ce.jsx)(nr,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ar;const ir=x.ZP.div(ar||(ar=b()(["\n "," {\n width: 100%;\n }\n"])),dn.Z);var cr,sr,ur,lr,fr;function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hr=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(cr||(cr=b()(["\n margin: 1rem;\n"])));const mr=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return sr||(sr=(0,Ce.jsx)(Xn.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Ce.jsxs)(ir,{children:[u&&(ur||(ur=(0,Ce.jsx)($t,{title:"client.login.passwordUpdate.title"}))),r&&(lr||(lr=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Ce.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Ce.jsx)(or,dr({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Ce.jsx)(or,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Ce.jsx)(hr,{children:(0,Ce.jsx)(Jn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Ce.jsx)(or,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(fr||(fr=(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:"danger",label:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Ce.jsx)(Qn,{errorCode:i.passwordUpdateErrorCode}),(0,Ce.jsx)(Gt,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,Ce.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var gr={updateOldPassword:Yn,updateNewPassword:function(e){return{type:Nn,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Fn,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Gn}},savePassword:function(e){return{type:Un,payload:{captchaToken:e}}},initialized:function(){return{type:In}}};const vr=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),gr)((0,f.ZP)(mr));var yr,br,wr,Or,xr,kr,Sr=i(30604),Pr="two-factor-connector/INITIALIZE",jr="two-factor-connector/SET_TWO_STEP_ACTIVE",_r="two-factor-connector/SET_SECRET",Er="two-factor-connector/SET_USER_NAME",Cr="two-factor-connector/REQUEST_SECRET",Tr="two-factor-connector/GO_TO_SECRET_VERIFICATION",Dr="two-factor-connector/GO_TO_START",Rr="two-factor-connector/GO_TO_SECRET",Mr="two-factor-connector/VERIFY_CODE",Ir="root/SUCCESS",Ar="root/SET_SETUP_SUCCESSFUL",Nr="root/GO_TO_RESULT",Zr=function(){return{type:Pr}},Lr=function(e){return{type:jr,payload:{twoFactorActive:e}}},Fr=function(e){return{type:_r,payload:{secret:e}}},Ur=function(e){return{type:Er,payload:{username:e}}},Hr=function(){return{type:Dr}},Br=function(e){return{type:Ar,payload:{setupSuccessful:e}}},Wr=i(83324),zr=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(yr||(yr=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),nt.Z.space(.5),dn.Z),Yr=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(br||(br=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),nt.Z.space(-.5)),Vr=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(wr||(wr=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?Se.FS.color("signal.success"):Se.FS.color("signal.danger")}),nt.Z.font(10)),qr=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Or||(Or=b()(["\n display: flex;\n align-items: center;\n"])));const Gr=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Wr.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Ce.jsxs)(Ce.Fragment,{children:[xr||(xr=(0,Ce.jsxs)(Yr,{children:[(0,Ce.jsx)(Vr,{isSuccessful:!0,children:(0,Ce.jsx)(Me.Z,{icon:"check"})}),(0,Ce.jsx)(qr,{children:(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Ce.jsxs)(Ce.Fragment,{children:[kr||(kr=(0,Ce.jsxs)(Yr,{children:[(0,Ce.jsx)(Vr,{isSuccessful:!1,children:(0,Ce.jsx)(Me.Z,{icon:"times"})}),(0,Ce.jsx)(qr,{children:(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var Kr={success:function(){return{type:Ir}},goToStart:Hr};const Xr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),Kr)((0,f.ZP)(Gr));var $r,Qr=Object.defineProperty,Jr=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,no=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ro=(e,t)=>{for(var n in t||(t={}))eo.call(t,n)&&no(e,n,t[n]);if(Jr)for(var n of Jr(t))to.call(t,n)&&no(e,n,t[n]);return e},oo=(e,t)=>{var n={};for(var r in e)eo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Jr)for(var r of Jr(e))t.indexOf(r)<0&&to.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})($r||($r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})($r||($r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})($r||($r={}));var ao=$r,io={L:ao.QrCode.Ecc.LOW,M:ao.QrCode.Ecc.MEDIUM,Q:ao.QrCode.Ecc.QUARTILE,H:ao.QrCode.Ecc.HIGH},co=128,so="L",uo="#FFFFFF",lo="#000000",fo=!1;
|
|
52
|
+
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(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}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"5f25929fbf6f0a034556",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"3186988649a5c8a6b487",614:"bba861a36d31d54c5c6b",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Gb});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(28002),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=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}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=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}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(6479),ae=i.n(oe),ie=i(41505),ce=i.n(ie),se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ue=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},le=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},fe={outline:"none"},pe=function(e){function t(){var n,r;se(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=le(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},le(r,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),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ue({ref:this.ref,style:fe},n),e)},t}(O().Component);pe.propTypes={children:ce().oneOfType([ce().node,ce().func]).isRequired,onBlur:ce().func,onFocus:ce().func},pe.defaultProps={onBlur:function(){},onFocus:function(){}};const de=pe;var he,me,ge,ve,ye=i(70696),be=i(10535),we=i(23427),Oe=i(319),xe=i.n(Oe),ke=i(37188),Se=i(24875),Pe=(he={},n()(he,we.Z.condition.BASE,"inherit"),n()(he,we.Z.condition.DANGER,Se.FS.color("signal.danger")),n()(he,we.Z.condition.SUCCESS,Se.FS.color("signal.success")),n()(he,we.Z.condition.WARNING,Se.FS.color("signal.warning")),n()(he,we.Z.condition.INFO,Se.FS.color("signal.info")),he),je=(0,x.ZP)(ke.hc).withConfig({displayName:"StyledSignalList"})(me||(me=b()(["\n && {\n list-style-type: none;\n }\n"]))),_e=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(ge||(ge=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Ee=(0,x.ZP)(ke.EF).withConfig({displayName:"StyledSignalListItem"})(ve||(ve=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return Pe[e.condition]||"inherit"}(e)})),Ce=i(85893);const Te=function(e){return(0,Ce.jsx)(je,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var De,Re,Me=i(88162),Ie=(De={},n()(De,we.Z.condition.BASE,!1),n()(De,we.Z.condition.DANGER,"times"),n()(De,we.Z.condition.SUCCESS,"check"),n()(De,we.Z.condition.WARNING,"exclamation-triangle"),n()(De,we.Z.condition.INFO,"info"),De),Ae=function(e){var t=Ie[e.condition];return t?(0,Ce.jsx)(Me.Z,{icon:t,position:we.Z.position.SOLE}):Re||(Re=(0,Ce.jsx)("i",{children:"•"}))},Ne=function(e){return(0,Ce.jsxs)(Ee,{condition:e.condition,children:[(0,Ce.jsx)(_e,{children:Ae(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ne.defaultProps={condition:we.Z.condition.BASE};const Ze={List:Te,Item:Ne};const Le=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,xe()(e.error[n]))})),(0,Ce.jsx)(Ze.List,{children:t.map((function(e,t){return(0,Ce.jsx)(Ze.Item,{condition:"danger",label:e},t)}))})};var Fe,Ue,He,Be,We,ze,Ye,Ve,qe,Ge,Ke,Xe,$e,Qe,Je,et=i(79686),tt=i(30759),nt=i(7281),rt=i(27361),ot=i.n(rt),at={base:function(e){var t=e.theme;return ot()(t,"colors.text")},shade1:function(e){var t=e.theme;return ot()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return ot()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return ot()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return ot()(t,"colors.signal.info")}},it={base:function(e){var t=e.theme;return ot()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return ot()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return ot()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},ct=i(76538),st="1.1px",ut=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},lt=x.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Ue||(Ue=b()(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,tt.Z)({lineHeight:Se.FS.lineHeight("dense")}),Se.FS.color("paper"),(function(e){return ut(e)}),(function(e){return"outside"===e.labelPosition&&(0,x.iv)(He||(He=b()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),nt.Z.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Be||(Be=b()(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),nt.Z.space(-2),(function(e){return e.immutable&&"0"}),nt.Z.space(-1.8))}),(function(e){return e.styles})),ft=x.ZP.div.withConfig({displayName:"StyledInputArea"})(We||(We=b()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,x.iv)(ze||(ze=b()(["\n width: auto;\n "])))})),pt=x.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Ye||(Ye=b()(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),st,(function(e){return it[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Se.FS.radii("form"),nt.Z.space(-2.5),nt.Z.space(-1.5),(function(e){return!e.immutable&&function(e){var t=ot()(e.theme,"colors.signal.info",we.Z.fallbackColors.INFO);return(0,x.iv)(Fe||(Fe=b()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,(0,ct.DZ)(.4,t))}(e)}),(function(e){return ut(e)}),et.j,(function(e){return e.isDisplay&&nt.Z.space(-1)}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Ve||(Ve=b()(["\n padding: "," "," "," ",";\n "])),nt.Z.space(-1),nt.Z.space(-1.7),nt.Z.space(-2),nt.Z.space(-1))}),(function(e){return e.styles})),dt=x.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(qe||(qe=b()(["\n &&& {\n ","\n }\n"])),(0,tt.Z)({fontSize:nt.Z.font(-1)})),ht=x.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Ge||(Ge=b()([""]))),mt=x.ZP.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Ke||(Ke=b()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),nt.Z.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Xe||(Xe=b()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),nt.Z.space(-1.5))})),gt=x.ZP.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})($e||($e=b()(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n }\n"])),nt.Z.space(-1.5),pt,dt,ht,nt.Z.space(-2),dt,nt.Z.space(-1),st,(function(e){return"outside"===e.labelPosition&&(0,x.iv)(Qe||(Qe=b()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,x.iv)(Je||(Je=b()(["\n padding-top: 0;\n "])))}));function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const bt=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,f=e.label,p=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&d?", ".concat(d):"",O="".concat(ye.Z.adjustedHTMLString(f)).concat(w),x=g||function(e,t,n,r){return t?we.Z.condition.DANGER:e?we.Z.condition.INFO:n&&!r?we.Z.condition.WARNING:void 0}(i,b,p,u),k={__html:"".concat(be.Z.sanitizeHtml(f)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,Ce.jsx)(de,{children:function(e){var l=e.getRef;return(0,Ce.jsx)(mt,{labelPosition:v,children:(0,Ce.jsxs)(gt,{labelPosition:v,ref:l,label:f,children:[f&&(0,Ce.jsx)(lt,yt(yt({},S),{},{hasValue:u,dirty:i,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ce.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ce.jsxs)(ft,{labelPosition:v,children:[(0,Ce.jsx)(pt,{hasValue:u,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ce.jsx)(ht,{children:(0,Ce.jsx)(Le,{error:s})}))),a&&(r||(r=(0,Ce.jsx)(dt,{children:a})))]})]})})}})};var wt,Ot,xt,kt=function(e){return(0,x.iv)(wt||(wt=b()(["\n color: ",";\n font-weight: ",";\n"])),at[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?Se.FS.fontWeight("bold"):Se.FS.fontWeight("regular")}))},St=function(){return(0,x.iv)(Ot||(Ot=b()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;if(t&&n)return(0,x.iv)(xt||(xt=b()(["\n ","\n "])),nt.Z.space(-1))}),(function(e){return e.immutable&&0}))},Pt=["labelPosition"];function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _t=function(e){var t=e.labelPosition,r=ae()(e,Pt);return(0,Ce.jsx)(bt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({styles:{labelStyles:kt,valueStyles:St},labelPosition:t||"outside-responsive"},r))};var Et,Ct,Tt,Dt=function(e){return e.signal?"signal":"shade1"},Rt=function(e){return(0,x.iv)(Et||(Et=b()(["\n color: ",";\n font-weight: ",";\n"])),at[Dt(e)](e),Se.FS.fontWeight("bold"))},Mt=function(){return(0,x.iv)(Ct||(Ct=b()(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable;return n?0:t&&n?(0,x.iv)(Tt||(Tt=b()(["\n ","\n "])),nt.Z.space(-1)):void 0}),(function(e){return e.immutable&&0}))},It=["labelPosition"];function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Nt=function(e){var t=e.labelPosition,r=ae()(e,It);return(0,Ce.jsx)(bt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?At(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({styles:{labelStyles:Rt,valueStyles:Mt},labelPosition:t||"outside"},r))};var Zt,Lt=(Zt={},n()(Zt,u.Z.EmbedType.admin,_t),n()(Zt,u.Z.EmbedType.widget,Nt),Zt);const Ft=u.Z.embedStrategyFactory({mapping:Lt});var Ut=i(35997);const Ht=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var Bt,Wt=i(65035),zt=i(88601),Yt=(0,x.ZP)(Wt.Z).withConfig({displayName:"StyledLoginButton"})(Bt||(Bt=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),nt.Z.font(1.3),zt.Z.radii("buttonLarge")),Vt=["disabled","pending","label"];function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gt=function(e){var t=e.disabled,r=e.pending,o=e.label,a=ae()(e,Vt);return(0,Ce.jsx)(Yt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Kt=i(44012),Xt=i(34206);const $t=function(e){var t=e.title,n=e.subtitle;return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Xt.ZP.H5,{children:(0,Ce.jsx)(Kt.Z,{id:t})}),n&&(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:n})})]})};const Qt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var Jt,en,tn,nn,rn,on,an,cn=(0,x.iv)(Jt||(Jt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),sn=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(en||(en=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),cn),un=(0,x.iv)(tn||(tn=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,tt.Z)({color:Se.FS.color("text")})}),Se.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ln=(0,x.iv)(nn||(nn=b()(["\n display: flex;\n align-items: center;\n"]))),fn=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(rn||(rn=b()(["\n &&& {\n ","\n }\n"])),ln),pn=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(on||(on=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),Se.FS.color("signal.danger")),dn=i(58129);const hn=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(an||(an=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),dn.Z);var mn,gn,vn,yn,bn,wn=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(mn||(mn=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: ",";\n padding-bottom: ",";\n }\n"])),un,nt.Z.space(-.9),nt.Z.space(-.9)),On=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(gn||(gn=b()(["\n &&& {\n ","\n }\n"])),cn),xn=(0,x.ZP)(Wt.Z).withConfig({displayName:"StyledTransparentButton"})(vn||(vn=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n padding: "," 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),nt.Z.space(-.1)),kn=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(yn||(yn=b()(["\n "," {\n margin-top: ",";\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),hn,nt.Z.space(.47),dn.Z);function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const jn=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=Qt(l),m=H()(h,2),g=m[0],v=m[1],y=Qt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=Ut.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,Ce.jsxs)(kn,{children:[f&&(bn||(bn=(0,Ce.jsx)($t,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ce.jsxs)("form",{onSubmit:C,children:[(0,Ce.jsx)(Ft,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Pn({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,Ce.jsx)(Ft,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Pn({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,Ce.jsx)(Ht,{message:i}),t&&s&&(0,Ce.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Ce.jsx)(Gt,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Ce.jsx)(xn,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,Ce.jsx)(xn,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var _n={changePage:A,setUsername:N,setPassword:Z,login:v};const En=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),_n)((0,f.ZP)(jn));var Cn,Tn;const Dn=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,Ce.jsxs)(kn,{children:[a&&(Cn||(Cn=(0,Ce.jsx)($t,{title:"client.login.passwordRequest.title"}))),!p&&(Tn||(Tn=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,Ce.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,Ce.jsx)(Ft,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,Ce.jsx)(Gt,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,Ce.jsx)(xn,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Rn={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Mn=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Rn)((0,f.ZP)(Dn));var In="INITIALIZED",An="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Nn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Zn="PasswordUpdateDialog/SET_NEW_PASSWORD",Ln="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Fn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",Un="PasswordUpdateDialog/SAVE_PASSWORD",Hn="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Bn="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",Wn="PasswordUpdateDialog/VALIDATE",zn="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Yn=function(e){return{type:An,payload:{oldPassword:e}}},Vn=function(e){return{type:Ln,payload:{errors:e}}},qn=function(e,t){return{type:Bn,payload:{errorCode:e,validationMessages:t}}},Gn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Kn="PasswordUpdateDialog/SET_VALIDATION_RULES",Xn=i(35728),$n={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const Qn=function(e){return(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:we.Z.condition.DANGER,children:(0,Ce.jsx)(Kt.Z,{id:(t=e.errorCode,$n[t]||"client.login.passwordUpdate.failure")})})});var t};const Jn=function(e){return(0,Ce.jsx)(Ze.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=we.Z.condition.DANGER:"string"==typeof a?(r=we.Z.condition.DANGER,o=a):r=we.Z.condition.SUCCESS}return(0,Ce.jsx)(Ze.Item,{condition:r,label:o},n)}))})};var er,tr,nr=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(er||(er=b()(["\n &&&& {\n ","\n }\n"])),un),rr=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(tr||(tr=b()(["\n && {\n ","\n }\n"])),cn);const or=function(e){var t=u.Z.isInAdminEmbedded();return(0,Ce.jsx)(Ft,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?we.Z.condition.SUCCESS:we.Z.condition.DANGER:null,labelPosition:t?"inside":"outside",children:(0,Ce.jsx)(rr,{immutable:!0===e.readOnly,children:(0,Ce.jsx)(nr,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ar;const ir=x.ZP.div(ar||(ar=b()(["\n "," {\n width: 100%;\n }\n"])),dn.Z);var cr,sr,ur,lr,fr;function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hr=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(cr||(cr=b()(["\n margin: 1rem;\n"])));const mr=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return sr||(sr=(0,Ce.jsx)(Xn.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Ce.jsxs)(ir,{children:[u&&(ur||(ur=(0,Ce.jsx)($t,{title:"client.login.passwordUpdate.title"}))),r&&(lr||(lr=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Ce.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Ce.jsx)(or,dr({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Ce.jsx)(or,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Ce.jsx)(hr,{children:(0,Ce.jsx)(Jn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Ce.jsx)(or,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(fr||(fr=(0,Ce.jsx)(Ze.List,{children:(0,Ce.jsx)(Ze.Item,{condition:"danger",label:(0,Ce.jsx)(Kt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Ce.jsx)(Qn,{errorCode:i.passwordUpdateErrorCode}),(0,Ce.jsx)(Gt,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,Ce.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var gr={updateOldPassword:Yn,updateNewPassword:function(e){return{type:Nn,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Fn,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Gn}},savePassword:function(e){return{type:Un,payload:{captchaToken:e}}},initialized:function(){return{type:In}}};const vr=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),gr)((0,f.ZP)(mr));var yr,br,wr,Or,xr,kr,Sr=i(30604),Pr="two-factor-connector/INITIALIZE",jr="two-factor-connector/SET_TWO_STEP_ACTIVE",_r="two-factor-connector/SET_SECRET",Er="two-factor-connector/SET_USER_NAME",Cr="two-factor-connector/REQUEST_SECRET",Tr="two-factor-connector/GO_TO_SECRET_VERIFICATION",Dr="two-factor-connector/GO_TO_START",Rr="two-factor-connector/GO_TO_SECRET",Mr="two-factor-connector/VERIFY_CODE",Ir="root/SUCCESS",Ar="root/SET_SETUP_SUCCESSFUL",Nr="root/GO_TO_RESULT",Zr=function(){return{type:Pr}},Lr=function(e){return{type:jr,payload:{twoFactorActive:e}}},Fr=function(e){return{type:_r,payload:{secret:e}}},Ur=function(e){return{type:Er,payload:{username:e}}},Hr=function(){return{type:Dr}},Br=function(e){return{type:Ar,payload:{setupSuccessful:e}}},Wr=i(83324),zr=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(yr||(yr=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),nt.Z.space(.5),dn.Z),Yr=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(br||(br=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),nt.Z.space(-.5)),Vr=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(wr||(wr=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?Se.FS.color("signal.success"):Se.FS.color("signal.danger")}),nt.Z.font(10)),qr=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Or||(Or=b()(["\n display: flex;\n align-items: center;\n"])));const Gr=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Wr.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Ce.jsxs)(Ce.Fragment,{children:[xr||(xr=(0,Ce.jsxs)(Yr,{children:[(0,Ce.jsx)(Vr,{isSuccessful:!0,children:(0,Ce.jsx)(Me.Z,{icon:"check"})}),(0,Ce.jsx)(qr,{children:(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Ce.jsxs)(Ce.Fragment,{children:[kr||(kr=(0,Ce.jsxs)(Yr,{children:[(0,Ce.jsx)(Vr,{isSuccessful:!1,children:(0,Ce.jsx)(Me.Z,{icon:"times"})}),(0,Ce.jsx)(qr,{children:(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var Kr={success:function(){return{type:Ir}},goToStart:Hr};const Xr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),Kr)((0,f.ZP)(Gr));var $r,Qr=Object.defineProperty,Jr=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,no=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ro=(e,t)=>{for(var n in t||(t={}))eo.call(t,n)&&no(e,n,t[n]);if(Jr)for(var n of Jr(t))to.call(t,n)&&no(e,n,t[n]);return e},oo=(e,t)=>{var n={};for(var r in e)eo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Jr)for(var r of Jr(e))t.indexOf(r)<0&&to.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})($r||($r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})($r||($r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})($r||($r={}));var ao=$r,io={L:ao.QrCode.Ecc.LOW,M:ao.QrCode.Ecc.MEDIUM,Q:ao.QrCode.Ecc.QUARTILE,H:ao.QrCode.Ecc.HIGH},co=128,so="L",uo="#FFFFFF",lo="#000000",fo=!1;
|
|
53
53
|
/**
|
|
54
54
|
* @license qrcode.react
|
|
55
55
|
* Copyright (c) Paul O'Shannessy
|
|
56
56
|
* SPDX-License-Identifier: ISC
|
|
57
|
-
*/function po(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function ho(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function mo(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,s=(r.width||i)*c,u=(r.height||i)*c,l=null==r.x?e.length/2-s/2:r.x*c,f=null==r.y?e.length/2-u/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+f-t)}}return{x:l,y:f,h:u,w:s,excavation:p}}var go=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function vo(e){const t=e,{value:n,size:r=co,level:o=so,bgColor:a=uo,fgColor:i=lo,includeMargin:c=fo,style:s,imageSettings:u}=t,l=oo(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==u?void 0:u.src,p=(0,w.useRef)(null),d=(0,w.useRef)(null),[h,m]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let s=ao.QrCode.encodeText(n,io[o]).getModules();const l=c?4:0,f=s.length+2*l,h=mo(s,r,c,u),m=d.current,g=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=h.excavation&&(s=ho(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/f*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,go?t.fill(new Path2D(po(s,l))):s.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),g&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,w.useEffect)((()=>{m(!1)}),[f]);const g=ro({height:r,width:r},s);let v=null;return null!=f&&(v=O().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),O().createElement(O().Fragment,null,O().createElement("canvas",ro({style:g,height:r,width:r,ref:p},l)),v)}function yo(e){const t=e,{value:n,size:r=co,level:o=so,bgColor:a=uo,fgColor:i=lo,includeMargin:c=fo,imageSettings:s}=t,u=oo(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=ao.QrCode.encodeText(n,io[o]).getModules();const f=c?4:0,p=l.length+2*f,d=mo(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=ho(l,d.excavation)),h=O().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=po(l,f);return O().createElement("svg",ro({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),O().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),O().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var bo=e=>{const t=e,{renderAs:n}=t,r=oo(t,["renderAs"]);return"svg"===n?O().createElement(yo,ro({},r)):O().createElement(vo,ro({},r))};const wo=function(e){var t=e.value;return(0,Ce.jsx)(bo,{value:t,renderAs:"svg"})};var Oo,xo,ko,So,Po,jo,_o=x.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Oo||(Oo=b()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),nt.Z.space(1.2),nt.Z.space(1),nt.Z.space(1.5),nt.Z.space(1)),Eo=x.ZP.div.withConfig({displayName:"StyledParagraph"})(xo||(xo=b()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),nt.Z.space(-1),nt.Z.space(-.9));const Co=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,Wr.z)(n),(0,Ce.jsxs)(Ce.Fragment,{children:[ko||(ko=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,Ce.jsx)(_o,{children:(0,Ce.jsx)(wo,{value:t.uri})}),So||(So=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,Ce.jsx)(Eo,{children:(0,Ce.jsx)(Xt.ZP.B,{children:t.secret})}),Po||(Po=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{ink:"primary",look:"raised",onClick:n,children:jo||(jo=(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var To={goToSecretVerification:function(){return{type:Tr}}};const Do=(0,p.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),To)((0,f.ZP)(Co));var Ro;const Mo=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,Wr.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Xt.ZP.P,{children:function(){if(t)return Ro||(Ro=(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,Ce.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Io={initialize:Zr,requestSecret:function(){return{type:Cr}}};const Ao=(0,p.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Io)((0,f.ZP)(Mo));var No,Zo,Lo,Fo=i(57557),Uo=i.n(Fo),Ho=i(41609),Bo=i.n(Ho),Wo=i(50008),zo=i.n(Wo),Yo=i(58808),Vo=i.n(Yo),qo=i(41291),Go=i(93235),Ko=x.ZP.div.withConfig({displayName:"StyledLocationEdit"})(No||(No=b()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),cn,nt.Z.space(-2),nt.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?ot()(n,"colors.textDisabled"):ot()(n,"colors.text")}),un,Se.FS.color("paper"),Se.FS.color("signal.info"),Se.FS.color("secondaryLight"),Se.FS.color("backgroundItemHover")),Xo=(0,x.ZP)(Ko).withConfig({displayName:"StyledAddressEdit"})(Zo||(Zo=b()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Jo=function(e){var t,r=e.onChange,o=e.options,a=e.value,i=e.id,c=e.immutable,s=e.name,u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),c=n?"- ".concat(n):"",s=r?"/ ".concat(r.display):"";return(0,Ce.jsxs)(Xt.ZP.Span,{children:[i,", ",o," ",a," ",c," ",s]})},f=function(e,t){var n=t.suggestion;!0===n.validationRequired?o.validateLocation(n,r):r(n)},p=function(e){var t=e.value,n=o.locationValues,r=n.postcode,a=n.city,i=n.country,c={street:t,postcode:r,city:a};o.fetchSuggestions(c,i)},d={id:i,value:a&&a.street?u(a):"",onChange:(t="street",function(e,o){var i=o.newValue;r(Qo(Qo({},a),{},n()({},t,i)))}),disabled:c};return(0,Ce.jsx)(de,{children:function(e){var t,n,r,a,i,u,h,m=e.getRef;return(0,Ce.jsxs)(Xo,{immutable:c,name:s,ref:m,children:[(0,Ce.jsx)(Vo(),{suggestions:o.suggestions||[],onSuggestionsFetchRequested:p,getSuggestionValue:(h="street",function(e){return e[h]}),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!c}}),(0,Ce.jsxs)(fn,{children:[o.isLoading&&(Lo||(Lo=(0,Ce.jsx)(Go.Z,{size:"1.8rem"}))),(r=o.locationValues,a=r.street,i=r.city,u=r.postcode,Boolean(a&&(i||u))&&(0,Ce.jsx)(qo.Z,{href:(t=o.locationValues,n=t?Object.values(t).filter(Boolean).map((function(e){var t="object"===zo()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(n)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:o.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var ea=i(14293),ta=i.n(ea),na=i(23493),ra=i.n(na),oa=i(33417),aa=i(1972),ia=i(32924),ca=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var sa=i(2717);function ua(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)}}function la(e,t){return(la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fa(e){return(fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pa=i(62360);function da(e,t){if(t&&("object"===(0,pa.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fa(e);if(t){var o=fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return da(this,n)}}var ma=i(31599);var ga=i(78001);function va(e){return function(e){if(Array.isArray(e))return(0,ma.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ga.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ya=i(29382),ba=i(1537),wa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Oa(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||wa(r)&&wa(o)))return!1;var r,o;return!0}for(var xa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ka=function(e){return(0,ba.tZ)("span",(0,sa.Z)({css:xa},e))},Sa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Pa=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],O=c["aria-live"],x=(0,w.useMemo)((function(){return(0,oa.Z)((0,oa.Z)({},Sa),u||{})}),[u]),k=(0,w.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),f=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,oa.Z)({isDisabled:u&&d(u,i),label:f,labels:h},t);n=x.onChange(m)}return n}),[t,x,d,i,l]),S=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,d,x,o,i]),P=(0,w.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,x,g,v]),j=(0,w.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,x,i,y]),_="".concat(S," ").concat(P," ").concat(j),E=(0,ba.tZ)(w.Fragment,null,(0,ba.tZ)("span",{id:"aria-selection"},k),(0,ba.tZ)("span",{id:"aria-context"},_)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,ba.tZ)(w.Fragment,null,(0,ba.tZ)(ka,{id:s},C&&E),(0,ba.tZ)(ka,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},ja=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],_a=new RegExp("["+ja.map((function(e){return e.letters})).join("")+"]","g"),Ea={},Ca=0;Ca<ja.length;Ca++)for(var Ta=ja[Ca],Da=0;Da<Ta.letters.length;Da++)Ea[Ta.letters[Da]]=Ta.base;var Ra=function(e){return e.replace(_a,(function(e){return Ea[e]}))},Ma=function(e,t){void 0===t&&(t=Oa);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Ra),Ia=function(e){return e.replace(/^\s+|\s+$/g,"")},Aa=function(e){return"".concat(e.label," ").concat(e.value)},Na=["innerRef"];function Za(e){var t=e.innerRef,n=(0,ia.Z)(e,Na),r=(0,ya.r)(n,"onExited","in","enter","exit","appear");return(0,ba.tZ)("input",(0,sa.Z)({ref:t},r,{css:(0,ba.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var La=["boxSizing","height","overflow","paddingRight","position"],Fa={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ua(e){e.preventDefault()}function Ha(e){e.stopPropagation()}function Ba(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Wa(){return"ontouchstart"in window||navigator.maxTouchPoints}var za=!("undefined"==typeof window||!window.document||!window.document.createElement),Ya=0,Va={capture:!1,passive:!1};var qa=function(){return document.activeElement&&document.activeElement.blur()},Ga={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ka(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),c=(0,w.useRef)(!1),s=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=u.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,w.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,w.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!ya.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(za){var t=document.body,n=t&&t.style;if(r&&La.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ya<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(Fa).forEach((function(e){var t=Fa[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Wa()&&(t.addEventListener("touchmove",Ua,Va),e&&(e.addEventListener("touchstart",Ba,Va),e.addEventListener("touchmove",Ha,Va))),Ya+=1}}),[r]),c=(0,w.useCallback)((function(e){if(za){var t=document.body,n=t&&t.style;Ya=Math.max(Ya-1,0),r&&Ya<1&&La.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Wa()&&(t.removeEventListener("touchmove",Ua,Va),e&&(e.removeEventListener("touchstart",Ba,Va),e.removeEventListener("touchmove",Ha,Va)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,ba.tZ)(w.Fragment,null,n&&(0,ba.tZ)("div",{onClick:qa,css:Ga}),t((function(e){o(e),a(e)})))}var Xa={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$a=function(e){var t=e.name,n=e.onFocus;return(0,ba.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Xa,value:"",onChange:function(){}})},Qa={clearIndicator:ya.a,container:ya.b,control:ya.d,dropdownIndicator:ya.e,group:ya.g,groupHeading:ya.f,indicatorsContainer:ya.i,indicatorSeparator:ya.h,input:ya.j,loadingIndicator:ya.l,loadingMessage:ya.k,menu:ya.m,menuList:ya.n,menuPortal:ya.o,multiValue:ya.p,multiValueLabel:ya.q,multiValueRemove:ya.t,noOptionsMessage:ya.u,option:ya.v,placeholder:ya.w,singleValue:ya.x,valueContainer:ya.y};var Ja,ei={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,ya.z)(),captureMenuScroll:!(0,ya.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,oa.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:Aa,trim:!0,matchFrom:"any"},Ja),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Ia(t):t,u=i?Ia(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Ma(s),u=Ra(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,ya.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ni(e,t,n,r){return{type:"option",data:t,isDisabled:si(e,t,n),isSelected:ui(e,t,n),label:ii(e,t),value:ci(e,t),index:r}}function ri(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ni(e,n,t,r)})).filter((function(t){return ai(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=ni(e,n,t,r);return ai(e,a)?a:void 0})).filter(ya.K)}function oi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,va(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ai(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!fi(e)||!a)&&li(e,{label:i,value:c,data:o},r)}var ii=function(e,t){return e.getOptionLabel(t)},ci=function(e,t){return e.getOptionValue(t)};function si(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ui(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ci(e,t);return n.some((function(t){return ci(e,t)===r}))}function li(e,t,n){return!e.filterOption||e.filterOption(t,n)}var fi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},pi=1,di=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&la(e,t)}(a,e);var t,n,r,o=ha(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue((0,ya.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,ya.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,ya.B)([].concat(va(i),[e])),"select-option",e):t.setValue((0,ya.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,ya.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,ya.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,ya.D)(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ya.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ii(t.props,e)},t.getOptionValue=function(e){return ci(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Qa[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,ya.F)(t.props)},t.buildCategorizedOptions=function(){return ri(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return oi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,oa.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,ya.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return fi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++pi),t.state.selectValue=(0,ya.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,ya.H)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return oi(ri(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,ya.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,oa.Z)((0,oa.Z)((0,oa.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,ya.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,ya.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ei):(0,oa.Z)((0,oa.Z)({},ei),this.props.theme):ei}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return si(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ui(this.props,e,t)}},{key:"filterOption",value:function(e,t){return li(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,oa.Z)((0,oa.Z)((0,oa.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,(0,sa.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(Za,(0,sa.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ya.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:w.createElement(c,(0,sa.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,(0,sa.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=g[0];return w.createElement(i,(0,sa.Z)({},s,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,sa.Z)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,(0,sa.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,(0,sa.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,sa.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,j=p.noOptionsMessage,_=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,T=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return w.createElement(u,(0,sa.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return w.createElement(n,(0,sa.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;C=w.createElement(c,l,D)}else{var R=j({inputValue:h});if(null===R)return null;C=w.createElement(s,l,R)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=w.createElement(ya.M,(0,sa.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return w.createElement(o,(0,sa.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),w.createElement(Ka,{captureEnabled:d,onTopArrive:_,onBottomArrive:E,lockEnabled:S},(function(t){return w.createElement(a,(0,sa.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return k||"fixed"===x?w.createElement(i,(0,sa.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement($a,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return w.createElement(Pa,(0,sa.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return w.createElement(r,(0,sa.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),w.createElement(t,(0,sa.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),w.createElement(o,(0,sa.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,(0,sa.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&ua(t.prototype,n),r&&ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);di.defaultProps=ti;i(66751),i(30314),i(73469);var hi=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,ia.Z)(e,ca),m=(0,w.useState)(void 0!==c?c:n),g=(0,aa.Z)(m,2),v=g[0],y=g[1],b=(0,w.useState)(void 0!==s?s:o),O=(0,aa.Z)(b,2),x=O[0],k=O[1],S=(0,w.useState)(void 0!==d?d:i),P=(0,aa.Z)(S,2),j=P[0],_=P[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),_(e)}),[u]),C=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),T=(0,w.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),k(!1)}),[f]),R=void 0!==c?c:v,M=void 0!==s?s:x,I=void 0!==d?d:j;return(0,oa.Z)((0,oa.Z)({},h),{},{inputValue:R,menuIsOpen:M,onChange:E,onInputChange:C,onMenuClose:D,onMenuOpen:T,value:I})}(e);return w.createElement(di,(0,sa.Z)({ref:t},n))})),mi=i(80470);function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yi=(0,f.ZP)((function(e){var t;return(0,Ce.jsx)("span",vi(vi({},e.innerProps),{},{children:(0,Ce.jsx)(mi.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var bi=i(95497);function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const xi=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ce.jsx)(ya.c.DropdownIndicator,Oi(Oi({},e),{},{children:(0,Ce.jsx)(bi.M6,{children:(0,Ce.jsx)(mi.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var ki,Si,Pi;function ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ei=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ci=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ti=function(e,t){return function(n){n.stopPropagation(),e(t)}},Di=function(e){e.stopPropagation()};const Ri=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,Ce.jsx)(bi.HO,{isTopAligned:p,children:(0,Ce.jsxs)(ya.c.IndicatorsContainer,_i(_i({},e),{},{children:[e.children,n&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Di,onMouseDown:Ci(n,u),children:ki||(ki=(0,Ce.jsx)(mi.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Di,onMouseDown:Ei(r,f,u),children:Si||(Si=(0,Ce.jsx)(mi.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Di,onMouseDown:Ti(o,u),children:Pi||(Pi=(0,Ce.jsx)(mi.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Mi;const Ii=function(){return Mi||(Mi=(0,Ce.jsx)("span",{children:(0,Ce.jsx)(Go.Z,{size:"1.8rem"})}))};var Ai=i(15315);function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Li=function(e){var t=e.selectProps,n=e.children;return(0,Ce.jsx)(bi._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ce.jsx)("div",{ref:e})},renderElement:function(r){return(0,Ce.jsx)("div",{ref:r,className:Ai.c,children:(0,Ce.jsx)(bi.l2,Zi(Zi({},Uo()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Hi=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ce.jsxs)(ya.c.MenuList,Ui(Ui({},e),{},{className:"MenuList",children:[n,r&&(0,Ce.jsx)(bi.OA,{children:o})]}))};var Bi=i(76791);function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Yi=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=ot()(a,t.key,null),u=(0,Ce.jsx)("span",zi(zi({},n),{},{children:r})),l=c?(0,Ce.jsx)(bi.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ce.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,Ce.jsx)(Bi.Z,{content:s?(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:be.Z.sanitizeHtml(s)}}):null,children:(0,Ce.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,Ce.jsx)(bi.B1,{children:l})};var Vi=i(47037),qi=i.n(Vi),Gi=i(14176),Ki=i.n(Gi);function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qi=["linkComp"],Ji=function(e,t){var n=ye.Z.difference(e,t),r=Ki()(Uo()(n,Qi),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},ec=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&qi()(n)?(0,Ce.jsx)(bi.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ce.jsx)(t,{entityKey:n,children:r})}):r}),Ji);ec.propTypes={children:o().node,entityKey:o().any,linkComp:o().func};const tc=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=ot()(a,t.key,null);return(0,Ce.jsx)(ya.c.SingleValue,$i($i({},e),{},{children:(0,Ce.jsx)(bi.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,Ce.jsx)(Bi.Z,{content:s?(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:be.Z.sanitizeHtml(s)}}):null,children:(0,Ce.jsx)(ec,{linkComp:c,entityKey:t.key,children:o})})})}))};function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var rc=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const oc=function(e){var t=e.selectProps,r=e.hasValue,o=e.children,a=t.isMulti,i=t.hasAdvancedSearch,c=t.hasDocsTreeSearch,s=t.isDisabled;if(!(a&&(i||c)))return(0,Ce.jsx)(ya.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e));var u=w.Children.map(o,(function(e){return rc(e)?e:null})),l=w.Children.map(o,(function(e){return rc(e)?null:e})),f=s&&r;return(0,Ce.jsxs)(Ce.Fragment,{children:[!f&&(0,Ce.jsx)(Ce.Fragment,{children:u}),(0,Ce.jsx)(bi.eQ,{children:l})]})};function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const cc=(0,x.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),S=(0,w.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},j=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),E=H()(_,2),C=E[0],T=E[1],D=(0,w.useState)(j()),R=H()(D,2),M=R[0],I=R[1],A=(0,w.useState)(!1),N=H()(A,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},U=(0,w.useCallback)(m||function(){},[]),B=(0,w.useCallback)(ra()(U,800,{trailing:!0}),[]),W=Boolean(d),z=Boolean(p),Y=Boolean(O);return(0,Ce.jsx)(bi.sP,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(P()),I(j())}),0)},children:(0,Ce.jsx)(bi.RU,{ref:S,children:(0,Ce.jsx)(hi,ic(ic({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:yi,LoadingIndicator:Ii,DropdownIndicator:xi,IndicatorsContainer:Ri,IndicatorSeparator:null,Menu:Li,MenuList:Hi,MultiValueLabel:Yi,SingleValue:tc,ValueContainer:oc},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ce.jsx)(l,ic({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&F(y)},options:xe()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault()):"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,bi.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const sc=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,Ce.jsx)(cc,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:ta()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var uc,lc=x.ZP.div.withConfig({displayName:"StyledBoolEdit"})(uc||(uc=b()(["\n margin: 5px 0;\n"])));const fc=function(e){return(0,Ce.jsx)(lc,{children:(0,Ce.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var pc,dc;function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gc=x.ZP.div.withConfig({displayName:"StyledOption"})(pc||(pc=b()(["\n margin: "," 0;\n"])),nt.Z.space(-1.4)),vc=x.ZP.span.withConfig({displayName:"StyledLabel"})(dc||(dc=b()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,tt.Z)(),nt.Z.space(-1.5)),yc={single:"radio",multiple:"checkbox"},bc={single:{checked:!1},multiple:{}},wc=function(e,t){return t?(0,Ce.jsx)(et.Z,{value:e}):e},Oc=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,s=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ce.jsxs)(gc,{children:[!c&&(0,Ce.jsx)("input",{name:t,type:yc[s],checked:a||!1,onChange:l,id:n,disabled:i}),(0,Ce.jsx)(vc,{children:o||wc(r,u)})]})};const xc=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return mc(mc({},n),n.id===t.target.id?{checked:t.target.checked}:bc[e.options.selectionType])}));e.onChange({options:n})}};return(0,Ce.jsx)(Ce.Fragment,{children:e.value.options.map((function(n){return(0,Ce.jsx)(Oc,{groupName:e.id,id:n.id,label:n.label,labelComponent:n.labelComponent,checked:n.checked,immutable:e.immutable||n.immutable,hideCheckbox:n.hideCheckbox,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var kc=i(23279),Sc=i.n(kc);function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _c=(0,w.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Ec=function(e){return(0,Ce.jsx)(w.Suspense,{fallback:(t=e.value,(0,Ce.jsx)("div",{children:(0,Ce.jsx)("p",{children:t})})),children:(0,Ce.jsx)(_c,jc({},e))});var t};var Cc,Tc=x.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Cc||(Cc=b()(["\n margin-top: ",";\n"])),nt.Z.space(-1.5));const Dc=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,Ce.jsx)(Tc,{children:(0,Ce.jsx)(Ec,{value:t,onChange:Sc()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})};var Rc=i(86896),Mc=i(23842),Ic=i(93379),Ac=i.n(Ic),Nc=i(7795),Zc=i.n(Nc),Lc=i(90569),Fc=i.n(Lc),Uc=i(3565),Hc=i.n(Uc),Bc=i(19216),Wc=i.n(Bc),zc=i(44589),Yc=i.n(zc),Vc=i(16721),qc={};qc.styleTagTransform=Yc(),qc.setAttributes=Hc(),qc.insert=Fc().bind(null,"head"),qc.domAPI=Zc(),qc.insertStyleElement=Wc();Ac()(Vc.Z,qc);Vc.Z&&Vc.Z.locals&&Vc.Z.locals;var Gc=i(9198),Kc=i.n(Gc),Xc=(Math.pow(10,8),6e4),$c=36e5,Qc=i(13882),Jc=i(83946);var es={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ts=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ns=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rs=/^([+-])(\d{2})(?::?(\d{2}))?$/;function os(e){var t,n={},r=e.split(es.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],es.timeZoneDelimiter.test(n.date)&&(n.date=e.split(es.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=es.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function as(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function is(e,t){if(null===t)return new Date(NaN);var n=e.match(ts);if(!n)return new Date(NaN);var r=!!n[4],o=cs(n[1]),a=cs(n[2])-1,i=cs(n[3]),c=cs(n[4]),s=cs(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(fs[t]||(ps(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(ps(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function cs(e){return e?parseInt(e):1}function ss(e){var t=e.match(ns);if(!t)return NaN;var n=us(t[1]),r=us(t[2]),o=us(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*$c+r*Xc+1e3*o:NaN}function us(e){return e&&parseFloat(e.replace(",","."))||0}function ls(e){if("Z"===e)return 0;var t=e.match(rs);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*$c+o*Xc):NaN}var fs=[31,null,31,30,31,30,31,31,30,31,30,31];function ps(e){return e%400==0||e%4==0&&e%100!=0}var ds,hs,ms,gs=x.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ds||(ds=b()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),vs=x.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(hs||(hs=b()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),cn,un,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ys=x.ZP.input.withConfig({displayName:"StyledTimeInput"})(ms||(ms=b()(["\n &&&& {\n ","\n }\n"])),un),bs=i(37042),ws=i(4543),Os=i(39880),xs=i(85817),ks=i(39159),Ss=i(19013);function Ps(e){(0,Qc.Z)(1,arguments);var t=(0,Ss.Z)(e),n=t.getSeconds();return n}var js=i(86);function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var Cs=i(44941),Ts=i(29558);function Ds(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Rs=i(97621),Ms=i(24262),Is=i(5267);function As(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ns(e,t){return(Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Zs(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ns(e,t)}function Ls(e){return(Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fs(e,t){if(t&&("object"===(0,js.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return As(e)}function Us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ls(e);if(t){var o=Ls(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fs(this,n)}}function Hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bs(e){var t=function(e,t){if("object"!==(0,js.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,js.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,js.Z)(t)?t:String(t)}function Ws(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,Bs(r.key),r)}}function zs(e,t,n){return t&&Ws(e.prototype,t),n&&Ws(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ys(e,t,n){return(t=Bs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vs=function(){function e(){Hs(this,e),Ys(this,"priority",void 0),Ys(this,"subPriority",0)}return zs(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),qs=function(e){Zs(n,e);var t=Us(n);function n(e,r,o,a,i){var c;return Hs(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return zs(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Vs),Gs=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",10),Ys(As(e),"subPriority",-1),e}return zs(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Vs),Ks=function(){function e(){Hs(this,e),Ys(this,"incompatibleTokens",void 0),Ys(this,"priority",void 0),Ys(this,"subPriority",void 0)}return zs(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new qs(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Xs=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",140),Ys(As(e),"incompatibleTokens",["R","u","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),$s=/^(1[0-2]|0?\d)/,Qs=/^(3[0-1]|[0-2]?\d)/,Js=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,eu=/^(5[0-3]|[0-4]?\d)/,tu=/^(2[0-3]|[0-1]?\d)/,nu=/^(2[0-4]|[0-1]?\d)/,ru=/^(1[0-1]|0?\d)/,ou=/^(1[0-2]|0?\d)/,au=/^[0-5]?\d/,iu=/^[0-5]?\d/,cu=/^\d/,su=/^\d{1,2}/,uu=/^\d{1,3}/,lu=/^\d{1,4}/,fu=/^-?\d+/,pu=/^-?\d/,du=/^-?\d{1,2}/,hu=/^-?\d{1,3}/,mu=/^-?\d{1,4}/,gu=/^([+-])(\d{2})(\d{2})?|Z/,vu=/^([+-])(\d{2})(\d{2})|Z/,yu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,bu=/^([+-])(\d{2}):(\d{2})|Z/,wu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ou(e,t){return e?{value:t(e.value),rest:e.rest}:e}function xu(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ku(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*$c+a*Xc+1e3*i),rest:t.slice(n[0].length)}}function Su(e){return xu(fu,e)}function Pu(e,t){switch(e){case 1:return xu(cu,t);case 2:return xu(su,t);case 3:return xu(uu,t);case 4:return xu(lu,t);default:return xu(new RegExp("^\\d{1,"+e+"}"),t)}}function ju(e,t){switch(e){case 1:return xu(pu,t);case 2:return xu(du,t);case 3:return xu(hu,t);case 4:return xu(mu,t);default:return xu(new RegExp("^-?\\d{1,"+e+"}"),t)}}function _u(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Eu(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function Cu(e){return e%400==0||e%4==0&&e%100!=0}var Tu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",130),Ys(As(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Ou(Pu(4,e),r);case"yo":return Ou(n.ordinalNumber(e,{unit:"year"}),r);default:return Ou(Pu(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Eu(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Du=i(7651),Ru=i(59025),Mu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",130),Ys(As(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Ou(Pu(4,e),r);case"Yo":return Ou(n.ordinalNumber(e,{unit:"year"}),r);default:return Ou(Pu(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,Du.Z)(e,r);if(n.isTwoDigitYear){var a=Eu(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ru.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ru.Z)(e,r)}}]),n}(Ks),Iu=i(66979),Au=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",130),Ys(As(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t){return ju("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,Iu.Z)(r)}}]),n}(Ks),Nu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",130),Ys(As(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t){return ju("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Zu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",120),Ys(As(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Pu(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Lu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",120),Ys(As(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Pu(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Fu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ys(As(e),"priority",110),e}return zs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Ou(xu($s,e),r);case"MM":return Ou(Pu(2,e),r);case"Mo":return Ou(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Uu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",110),Ys(As(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Ou(xu($s,e),r);case"LL":return Ou(Pu(2,e),r);case"Lo":return Ou(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Hu=i(23324);var Bu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",100),Ys(As(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return xu(eu,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Ru.Z)(function(e,t,n){(0,Qc.Z)(2,arguments);var r=(0,Ss.Z)(e),o=(0,Jc.Z)(t),a=(0,Hu.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Ks),Wu=i(49702);var zu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",100),Ys(As(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return xu(eu,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Iu.Z)(function(e,t){(0,Qc.Z)(2,arguments);var n=(0,Ss.Z)(e),r=(0,Jc.Z)(t),o=(0,Wu.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Ks),Yu=[31,28,31,30,31,30,31,31,30,31,30,31],Vu=[31,29,31,30,31,30,31,31,30,31,30,31],qu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"subPriority",1),Ys(As(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return xu(Qs,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){var n=Cu(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Vu[r]:t>=1&&t<=Yu[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Gu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"subpriority",1),Ys(As(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return xu(Js,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return Cu(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Ks),Ku=i(84314);function Xu(e,t,n){var r,o,a,i,c,s,u,l;(0,Qc.Z)(2,arguments);var f=(0,Ku.j)(),p=(0,Jc.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,Ss.Z)(e),h=(0,Jc.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var $u=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Xu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Ks),Qu=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Ou(Pu(t.length,e),o);case"eo":return Ou(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Xu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Ks),Ju=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Ou(Pu(t.length,e),o);case"co":return Ou(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Xu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Ks);var el=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",90),Ys(As(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Pu(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ou(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Ou(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ou(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Ou(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,Qc.Z)(2,arguments);var n=(0,Jc.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,Ss.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(Ks),tl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",80),Ys(As(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(_u(n),0,0,0),e}}]),n}(Ks),nl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",80),Ys(As(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(_u(n),0,0,0),e}}]),n}(Ks),rl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",80),Ys(As(e),"incompatibleTokens",["a","b","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(_u(n),0,0,0),e}}]),n}(Ks),ol=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",70),Ys(As(e),"incompatibleTokens",["H","K","k","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return xu(ou,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Ks),al=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",70),Ys(As(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return xu(tu,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Ks),il=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",70),Ys(As(e),"incompatibleTokens",["h","H","k","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return xu(ru,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Ks),cl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",70),Ys(As(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return xu(nu,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Ks),sl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",60),Ys(As(e),"incompatibleTokens",["t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return xu(au,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Ks),ul=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",50),Ys(As(e),"incompatibleTokens",["t","T"]),e}return zs(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return xu(iu,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Pu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Ks),ll=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",30),Ys(As(e),"incompatibleTokens",["t","T"]),e}return zs(n,[{key:"parse",value:function(e,t){return Ou(Pu(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(Ks),fl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",10),Ys(As(e),"incompatibleTokens",["t","T","x"]),e}return zs(n,[{key:"parse",value:function(e,t){switch(t){case"X":return ku(gu,e);case"XX":return ku(vu,e);case"XXXX":return ku(yu,e);case"XXXXX":return ku(wu,e);case"XXX":default:return ku(bu,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Ks),pl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",10),Ys(As(e),"incompatibleTokens",["t","T","X"]),e}return zs(n,[{key:"parse",value:function(e,t){switch(t){case"x":return ku(gu,e);case"xx":return ku(vu,e);case"xxxx":return ku(yu,e);case"xxxxx":return ku(wu,e);case"xxx":default:return ku(bu,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Ks),dl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",40),Ys(As(e),"incompatibleTokens","*"),e}return zs(n,[{key:"parse",value:function(e){return Su(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Ks),hl=function(e){Zs(n,e);var t=Us(n);function n(){var e;Hs(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ys(As(e=t.call.apply(t,[this].concat(o))),"priority",20),Ys(As(e),"incompatibleTokens","*"),e}return zs(n,[{key:"parse",value:function(e){return Su(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Ks),ml={G:new Xs,y:new Tu,Y:new Mu,R:new Au,u:new Nu,Q:new Zu,q:new Lu,M:new Fu,L:new Uu,w:new Bu,I:new zu,d:new qu,D:new Gu,E:new $u,e:new Qu,c:new Ju,i:new el,a:new tl,b:new nl,B:new rl,h:new ol,H:new al,K:new il,k:new cl,m:new sl,s:new ul,S:new ll,X:new fl,x:new pl,t:new dl,T:new hl},gl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yl=/^'([^]*?)'?$/,bl=/''/g,wl=/\S/,Ol=/[a-zA-Z]/;function xl(e,t,n,r){var o,a,i,c,s,u,l,f,p,d,h,m,g,v,y,b,w,O;(0,Qc.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Ku.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:Cs.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,Jc.Z)(null!==(i=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,Jc.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,Ss.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},T=[new Gs],D=k.match(vl).map((function(e){var t=e[0];return t in Rs.Z?(0,Rs.Z[t])(e,P.formatLong):e})).join("").match(gl),R=[],M=Es(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,Is.Do)(t)||(0,Is.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,Is.Iu)(t)||(0,Is.qp)(t,k,e);var n=t[0],o=ml[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=R.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};T.push(c.setter),x=c.rest}else{if(n.match(Ol))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=kl(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(E=M.n()).done;){var A=I();if("object"===(0,js.Z)(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&wl.test(x))return new Date(NaN);var N=T.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,Ss.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,Ts.Z)(Z,(0,Ms.Z)(Z)),U={},H=Es(N);try{for(H.s();!(L=H.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,U,C);Array.isArray(W)?(F=W[0],Ds(U,W[1])):F=W}}catch(e){H.e(e)}finally{H.f()}return F}function kl(e){return e.match(yl)[1].replace(bl,"'")}var Sl=i(49599);function Pl(e,t,n){return(0,Qc.Z)(2,arguments),(0,Sl.Z)(xl(e,t,new Date,n))}var jl="react-datepicker-time__input",_l="react-datepicker__day",El="react-datepicker__input",Cl=function(e){return e.classList.contains(_l)},Tl=function(e){return e.classList.contains(jl)},Dl=function(e){return e.classList.contains(El)},Rl=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,bs.Z)((0,ws.Z)((0,Os.Z)(e,c),a),r)},Ml=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(_l,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Il=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Al=function(e){var t=function(e,t){var n;(0,Qc.Z)(1,arguments);var r=(0,Jc.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=os(e);if(a.date){var i=as(a.date,r);o=is(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(a.time&&(u=ss(a.time),isNaN(u)))return new Date(NaN);if(!a.timezone){var l=new Date(s+u),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=ls(a.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}(e);return isNaN(t)?null:t},Nl=function(e){return e?e.toISOString():null};const Zl=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Al:s,l=n.dateToValue,f=void 0===l?Nl:l,p=(0,w.useRef)(null),d=(0,w.useState)(!1),h=H()(d,2),m=h[0],g=h[1],v=(0,w.useState)(!1),y=H()(v,2),b=y[0],O=y[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,w.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),_(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=j(!1);if(n){var r=x||new Date,o=t?Rl(n,{hour:(0,xs.Z)(r),minute:(0,ks.Z)(r),second:Ps(r)}):n;T(o,e)}},T=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return Pl(s,e)})),l=function(e){(0,Qc.Z)(1,arguments);var t=(0,Ss.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,xs.Z)(n)!==(0,xs.Z)(l)||(0,ks.Z)(n)!==(0,ks.Z)(l);(i&&!d||u)&&c&&(n=Mc.Z.setCurrentTime(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Il(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(Dl(e.target))setTimeout((function(){return P()}),0);else if(Tl(e.target)){var t,n;_(x||j(!0)),Ml(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else Cl(e.target)&&P();else Dl(e.target)&&m?(C(e),setTimeout((function(){return P()}),0)):Tl(e.target)?P():Cl(e.target)&&(c?(C(e,!0),_(null),O(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(jl));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(C(e),P()));var r;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Il(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===j(!1)){var o,a;_(x||j(!0)),Ml(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},R=function(){var e;g((function(e){return!e})),_(null),Il(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return P(),!0},onClickOutside:P,onInputClick:R,onKeyDown:D,onChange:T,onCalendarOpen:function(){_(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:El},timeInputProps:{onKeyDown:D,className:jl,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:R,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Ll=i(49546),Fl="HH:mm:ss",Ul="HH:mm",Hl=function(e){return Pl(e,Ul)},Bl=function(e){var t=function(e){return Pl(e,Fl)?xl(e,Fl,new Date):Pl(e,Ul)?xl(e,Ul,new Date):Pl(e,"HH:")?xl(e,"HH:",new Date):Pl(e,"H")?xl(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Ll.Z)(e,Ul)}(t):""};const Wl=function(e,t){var n=Bl(e),r=(0,w.useState)(n),o=H()(r,2),a=o[0],i=o[1],c=(0,w.useRef)(a),s=Ut.Z.usePrevious(n);(0,w.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),f=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Hl(n)||t(n)}},onBlur:function(){if(a!==n){var e=Bl(a);e&&Hl(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var zl=["value","onChange","onKeyDown"];function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,Gc.registerLocale)("en",Mc.Z.getDateFnsLocale("en")),(0,Gc.registerLocale)("en-US",Mc.Z.getDateFnsLocale("en")),(0,Gc.registerLocale)("de-CH",Mc.Z.getDateFnsLocale("de-CH")),(0,Gc.registerLocale)("de",Mc.Z.getDateFnsLocale("de")),(0,Gc.registerLocale)("fr",Mc.Z.getDateFnsLocale("fr")),(0,Gc.registerLocale)("fr-CH",Mc.Z.getDateFnsLocale("fr")),(0,Gc.registerLocale)("it",Mc.Z.getDateFnsLocale("it")),(0,Gc.registerLocale)("it-CH",Mc.Z.getDateFnsLocale("it")),(0,Gc.setDefaultLocale)("de");var ql=function(e){var t=e.onChange,n=e.label;return(0,Ce.jsx)(Wt.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Gl=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=ae()(e,zl),a=Wl(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ce.jsx)(ys,Vl(Vl(Vl({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Kl={strategy:"fixed"};const Xl=(0,x.Zz)((0,f.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,s(e)},P=Zl(r,S,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),j=P.reactDatePickerProps,_=P.timeInputProps,E=P.clearButtonProps,C=P.calendarButtonProps;return(0,Ce.jsx)(gs,{immutable:t,id:n,tabIndex:"-1",children:(0,Ce.jsxs)(vs,{immutable:t,ref:O,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,Ce.jsx)(Kc(),Vl(Vl({},j),{},{disabled:t,dateFormat:[].concat(xe()(m),xe()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,Ce.jsx)(Gl,Vl({},_)),timeInputLabel:"",popperProps:Kl,todayButton:(0,Ce.jsx)(ql,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),k&&(0,Ce.jsx)(mi.Z,Vl({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,Ce.jsx)(mi.Z,Vl({icon:"calendar",tabIndex:-1},C))]})})})));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ql=function(e){var t=e.onChange,r=e.options,o=e.id,a=e.value,i=e.immutable,c=e.events,s=e.placeholder,u=(0,Rc.Z)(),l=(null==r?void 0:r.datePickerOptions)||{},f="".concat(Mc.Z.getLocalizedDateFormat(u.locale)),p=Mc.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,Mc.Z.useTwoDigitYear(f),Mc.Z.useTwoDigitYear(p)];return(0,Ce.jsx)(Xl,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:o,value:a,onChange:t,dateFormats:d,hasTime:!1,immutable:i,placeholder:s,events:c},l))};function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ef=(0,f.ZP)((function(e){var t=e.onChange,r=e.options,o=e.value,a=e.immutable,i=e.placeholder,c=(0,Rc.Z)(),s=(null==r?void 0:r.datePickerOptions)||{},u="".concat(Mc.Z.getLocalizedDateTimeFormat(c.locale)),l="".concat(Mc.Z.getLocalizedDateFormat(c.locale)),f=Mc.Z.getLocalizedDateTimeFormatWithoutPunctuation(c.locale),p=[u,f,Mc.Z.useTwoDigitYear(u),Mc.Z.useTwoDigitYear(f)],d=Mc.Z.getLocalizedDateFormatWithoutPunctuation(c.locale),h=[l,d,Mc.Z.useTwoDigitYear(l),Mc.Z.useTwoDigitYear(d)];return(0,Ce.jsx)(Xl,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({value:o,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:a,placeholder:i},s))}));var tf=i(18446),nf=i.n(tf);function rf(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function of(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function af(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function cf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var sf=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function uf(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=sf.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var lf=[".DS_Store","Thumbs.db"];function ff(e){return"object"==typeof e&&null!==e}function pf(e){return gf(e.target.files).map((function(e){return uf(e)}))}function df(e){return rf(this,void 0,void 0,(function(){return of(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return uf(e)}))]}}))}))}function hf(e,t){return rf(this,void 0,void 0,(function(){var n;return of(this,(function(r){switch(r.label){case 0:return e.items?(n=gf(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(vf))]):[3,2];case 1:return[2,mf(yf(r.sent()))];case 2:return[2,mf(gf(e.files).map((function(e){return uf(e)})))]}}))}))}function mf(e){return e.filter((function(e){return-1===lf.indexOf(e.name)}))}function gf(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function vf(e){if("function"!=typeof e.webkitGetAsEntry)return bf(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Of(t):bf(e)}function yf(e){return e.reduce((function(e,t){return cf(cf([],af(e),!1),af(Array.isArray(t)?yf(t):[t]),!1)}),[])}function bf(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=uf(t);return Promise.resolve(n)}function wf(e){return rf(this,void 0,void 0,(function(){return of(this,(function(t){return[2,e.isDirectory?Of(e):xf(e)]}))}))}function Of(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return rf(a,void 0,void 0,(function(){var a,i,c;return of(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(wf)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function xf(e){return rf(this,void 0,void 0,(function(){return of(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=uf(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var kf=i(58363);function Sf(e){return function(e){if(Array.isArray(e))return Tf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ef(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||Cf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cf(e,t){if(e){if("string"==typeof e)return Tf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tf(e,t):void 0}}function Tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Df="file-invalid-type",Rf="file-too-large",Mf="file-too-small",If="too-many-files",Af=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Df,message:"File type must be ".concat(t)}},Nf=function(e){return{code:Rf,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Zf=function(e){return{code:Mf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Lf={code:If,message:"Too many files"};function Ff(e,t){var n="application/x-moz-file"===e.type||(0,kf.Z)(e,t);return[n,n?null:Af(t)]}function Uf(e,t,n){if(Hf(e.size))if(Hf(t)&&Hf(n)){if(e.size>n)return[!1,Nf(n)];if(e.size<t)return[!1,Zf(t)]}else{if(Hf(t)&&e.size<t)return[!1,Zf(t)];if(Hf(n)&&e.size>n)return[!1,Nf(n)]}return[!0,null]}function Hf(e){return null!=e}function Bf(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=Ef(Ff(e,n),1)[0],a=Ef(Uf(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Wf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function zf(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Yf(e){e.preventDefault()}function Vf(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function qf(e){return-1!==e.indexOf("Edge/")}function Gf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Vf(e)||qf(e)}function Kf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Wf(e)&&t&&t.apply(void 0,[e].concat(r)),Wf(e)}))}}function Xf(){return"showOpenFilePicker"in window}function $f(e){return Hf(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=Ef(e,2),n=t[0],r=t[1],o=!0;return tp(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(np)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Ef(t,2),r=n[0],o=n[1];return jf(jf({},e),{},_f({},r,o))}),{})}]:e}function Qf(e){if(Hf(e))return Object.entries(e).reduce((function(e,t){var n=Ef(t,2),r=n[0],o=n[1];return[].concat(Sf(e),[r],Sf(o))}),[]).filter((function(e){return tp(e)||np(e)})).join(",")}function Jf(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function ep(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function tp(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function np(e){return/^.*\.[\w]+$/.test(e)}var rp=["children"],op=["open"],ap=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ip=["refKey","onChange","onClick"];function cp(e){return function(e){if(Array.isArray(e))return lp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||up(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||up(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function up(e,t){if(e){if("string"==typeof e)return lp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lp(e,t):void 0}}function lp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(n),!0).forEach((function(t){dp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mp=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pp(pp({},gp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,j=t.validator,_=(0,w.useMemo)((function(){return Qf(n)}),[n]),E=(0,w.useMemo)((function(){return $f(n)}),[n]),C=(0,w.useMemo)((function(){return"function"==typeof g?g:wp}),[g]),T=(0,w.useMemo)((function(){return"function"==typeof m?m:wp}),[m]),D=(0,w.useRef)(null),R=(0,w.useRef)(null),M=sp((0,w.useReducer)(bp,yp),2),I=M[0],A=M[1],N=I.isFocused,Z=I.isFileDialogActive,L=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Xf()),F=function(){!L.current&&Z&&setTimeout((function(){R.current&&(R.current.files.length||(A({type:"closeDialog"}),T()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[R,Z,T,L]);var U=(0,w.useRef)([]),H=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",Yf,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",Yf),document.removeEventListener("drop",H))}}),[D,b]),(0,w.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var B=(0,w.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(cp(U.current),[e.target]),zf(e)&&Promise.resolve(o(e)).then((function(t){if(!Wf(e)||S){var n=t.length,r=n>0&&Bf({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:j});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,_,i,a,c,s,j]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=zf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),Y=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zf(e)&&l&&l(e))}),[D,l,S]),V=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=sp(Ff(e,_),2),o=t[0],c=t[1],s=sp(Uf(e,i,a),2),u=s[0],l=s[1],f=j?j(e):null;if(o&&u&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Lf]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[A,c,_,i,a,s,p,d,h,j]),q=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],zf(e)&&Promise.resolve(o(e)).then((function(t){Wf(e)&&!S||V(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,V,B,S]),G=(0,w.useCallback)((function(){if(L.current){A({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),A({type:"closeDialog"})})).catch((function(e){Jf(e)?(T(e),A({type:"closeDialog"})):ep(e)?(L.current=!1,R.current?(R.current.value=null,R.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else R.current&&(A({type:"openDialog"}),C(),R.current.value=null,R.current.click())}),[A,C,T,v,V,B,E,c]),K=(0,w.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,w.useCallback)((function(){A({type:"focus"})}),[]),$=(0,w.useCallback)((function(){A({type:"blur"})}),[]),Q=(0,w.useCallback)((function(){O||(Gf()?setTimeout(G,0):G())}),[O,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=hp(e,ap);return pp(pp(dp({onKeyDown:ee(Kf(a,K)),onFocus:ee(Kf(i,X)),onBlur:ee(Kf(c,$)),onClick:J(Kf(s,Q)),onDragEnter:te(Kf(u,W)),onDragOver:te(Kf(l,z)),onDragLeave:te(Kf(f,Y)),onDrop:te(Kf(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||x?{}:{tabIndex:0}),d)}}),[D,K,X,$,Q,W,z,Y,q,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=hp(e,ip);return pp(pp({},dp({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J(Kf(r,q)),onClick:J(Kf(o,oe)),tabIndex:-1},n,R)),a)}}),[R,n,c,q,r]);return pp(pp({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:R,open:J(G)})}(hp(e,rp)),o=r.open,a=hp(r,op);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),O().createElement(w.Fragment,null,n(pp(pp({},a),{},{open:o})))}));mp.displayName="Dropzone";var gp={disabled:!1,getFilesFromEvent:function(e){return rf(this,void 0,void 0,(function(){return of(this,(function(t){return ff(e)&&ff(e.dataTransfer)?[2,hf(e.dataTransfer,e.type)]:function(e){return ff(e)&&ff(e.target)}(e)?[2,pf(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,df(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};mp.defaultProps=gp,mp.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};const vp=mp;var yp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bp(e,t){switch(t.type){case"focus":return pp(pp({},e),{},{isFocused:!0});case"blur":return pp(pp({},e),{},{isFocused:!1});case"openDialog":return pp(pp({},yp),{},{isFileDialogActive:!0});case"closeDialog":return pp(pp({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return pp(pp({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return pp(pp({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return pp({},yp);default:return e}}function wp(){}var Op,xp,kp,Sp,Pp,jp,_p,Ep,Cp,Tp=i(69829),Dp=x.ZP.section.withConfig({displayName:"StyledSection"})(Op||(Op=b()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Rp=x.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(xp||(xp=b()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),dn.Z,nt.Z.space(-2)),Mp=x.ZP.div.withConfig({displayName:"StyledDropzone"})(kp||(kp=b()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),dn.Z,Se.FS.color("backgroundItemHover")),Ip=x.ZP.div.withConfig({displayName:"StyledUploadInput"})(Sp||(Sp=b()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,tt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Se.FS.color("paper"),(function(e){return e.immutable?at.shade2(e):at.base(e)}),nt.Z.space(-2),dn.Z,nt.Z.space(-3.1),nt.Z.space(-1.5)),Ap=x.ZP.div.withConfig({displayName:"StyledUploadProgress"})(Pp||(Pp=b()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),nt.Z.space(-2)),Np=(0,x.ZP)(Tp.Fe).withConfig({displayName:"StyledUploadProgressText"})(jp||(jp=b()(["\n && {\n ","\n }\n"])),(0,tt.Z)({fontSize:nt.Z.font(-1)})),Zp=x.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(_p||(_p=b()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),nt.Z.space(-2)),Lp=x.ZP.div.withConfig({displayName:"StyledView"})(Ep||(Ep=b()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),nt.Z.space(-2));function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Up(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Hp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ce.jsxs)(Ip,{immutable:n,children:[(0,Ce.jsx)(vp,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,Ce.jsx)(Dp,{children:(0,Ce.jsxs)(Mp,Up(Up({},t()),{},{children:[(0,Ce.jsx)("input",Up({},n())),Cp||(Cp=(0,Ce.jsx)(Wt.Z,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ce.jsx)(Wt.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Bp=i(73906),Wp=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const zp=function(e){var t=e.file,n=e.text;return(0,Ce.jsxs)(Ap,{children:[(0,Ce.jsx)(Bp.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ce.jsxs)(Zp,{children:[(0,Ce.jsx)(Go.Z,{position:we.Z.position.PREPEND}),(0,Ce.jsxs)(Np,{children:[n||"uploading"," (",Wp(t.size),")"]})]})]})};var Yp=i(28247);function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Gp=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ce.jsxs)(Lp,{className:"StyledView",children:[(0,Ce.jsx)(Bp.Z,qp(qp({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ce.jsxs)(Rp,{children:[!o&&(0,Ce.jsx)(Wt.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,Ce.jsx)(Wt.Z,{children:(0,Ce.jsx)(qo.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Yp.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $p=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,w.useRef)(t),i=(0,w.useState)({isUploading:!1,previewFile:null}),c=H()(i,2),s=c[0],u=c[1];return(0,w.useEffect)((function(){nf()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ce.jsx)(Gp,Xp(Xp({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,Ce.jsx)(zp,Xp({file:s.previewFile,text:n.uploading},e)):(0,Ce.jsx)(Hp,Xp(Xp({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};$p.defaultProps={textResources:{}};const Qp=$p;var Jp=function(e){return(0,Ce.jsx)(Qp,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};Jp.defaultProps={options:{}};const ed=Jp;var td,nd,rd=function(e){return-1*Math.abs(e)},od=x.ZP.input.withConfig({displayName:"StyledDurationEdit"})(td||(td=b()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),un,(function(e){return e.width})),ad=x.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(nd||(nd=b()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),nt.Z.space(1),(function(e){return e.immutable?Se.FS.color("textDisabled"):Se.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),id=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Mc.Z.millisecondsToDuration(t),i=(0,w.useState)(!1),c=H()(i,2),s=c[0],u=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=rd(n),o=rd(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){u(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return s||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,Ce.jsxs)(sn,{onBlur:function(){u(!1)},immutable:n,children:[(0,Ce.jsxs)(ad,{immutable:n,children:[(0,Ce.jsx)(od,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.hoursLabel})]}),(0,Ce.jsxs)(ad,{immutable:n,children:[(0,Ce.jsx)(od,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.minutesLabel})]}),g&&(0,Ce.jsxs)(ad,{immutable:n,children:[(0,Ce.jsx)(od,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.secondsLabel})]})]})};id.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const cd=id;var sd;const ud=x.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(sd||(sd=b()(["\n &&&& {\n ","\n }\n"])),un);const ld=Ut.Z.Debouncer((function(e){return(0,Ce.jsxs)(sn,{immutable:e.immutable,children:[(0,Ce.jsx)(ud,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(qo.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var fd=i(2205),pd=i.n(fd),dd=i(99489),hd=i.n(dd),md=i(78718),gd=i.n(md);function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bd(){bd=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),hd()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return pd()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=zo()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},bd.apply(this,arguments)}var wd,Od=["key","display","postcode","city","country","latitude","longitude"],xd=function(e){return e*Math.PI/180},kd=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:xd(a),longitude:xd(i)}};function Sd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pd(){}function jd(e){return!!(e||"").match(/\d/)}function _d(e){return null==e}function Ed(e){return"number"==typeof e&&isNaN(e)}function Cd(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Td(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Dd(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Rd(e,t){return Array(t+1).join(e)}function Md(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Rd("0",Math.abs(i))+o:i>=c?o+=Rd("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Id(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Td(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Dd(u[1]||"",t,n)}function Ad(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function Nd(e){return Math.max(e.selectionStart,e.selectionEnd)}function Zd(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ld(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Fd(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(jd(e[n])||jd(e[n-1]));return t}function Ud(e,t,n,r,o,a){void 0===a&&(a=Pd);var i,c,s=(0,w.useRef)(),u=(i=function(e){var t,a;return _d(e)||Ed(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Md(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,w.useRef)(i)).current=i,(0,w.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,w.useState)((function(){return u(t)})),f=l[0],p=l[1];return(0,w.useMemo)((function(){_d(e)?s.current=void 0:(s.current=u(e),p(s.current))}),[e,u]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Hd(e){return e.replace(/[^0-9]/g,"")}function Bd(e){return e}function Wd(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Bd);var c=e.removeFormatting;void 0===c&&(c=Hd);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=Pd);var d=e.onKeyDown;void 0===d&&(d=Pd);var h=e.onMouseUp;void 0===h&&(h=Pd);var m=e.onFocus;void 0===m&&(m=Pd);var g=e.onBlur;void 0===g&&(g=Pd);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Fd);var b=e.isValidInputCharacter;void 0===b&&(b=jd);var x=Sd(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),k=Ud(v,s,Boolean(u),i,c,l),S=k[0],P=S.formattedValue,j=S.numAsString,_=k[1],E=(0,w.useRef)();(0,w.useEffect)((function(){var e=i(j);if(void 0===E.current||e!==E.current){var t=R.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:wd.props,event:void 0})}}));var C=(0,w.useState)(!1),T=C[0],D=C[1],R=(0,w.useRef)(null),M=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return D(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=i,A=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},N=function(e,t,n){Ad(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&Ad(e,t)}),0)},Z=function(e,t,n){return Ld(e,t,y(e),n)},L=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a){var i=o.findIndex((function(e){return e})),c=e.slice(0,i);t||n.startsWith(c)||(n=c+n,r+=c.length);for(var s=n.length,u=e.length,l={},f=new Array(s),p=0;p<s;p++){f[p]=-1;for(var d=0,h=u;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===f[m]||!a(n[m]));)m++;var g=m===s||-1===f[m]?u:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,P,e,n,r,b);return o=Ld(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Nd(n);n.value=t,c=L(s,t,u)}n.value=t,r&&void 0!==c&&N(n,c,t)}t!==P&&function(e,t){E.current=e.formattedValue,_(e,t)}(A(t,i),{event:a,source:o})},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},x,{type:t,value:P,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(P,e),o=Object.assign(Object.assign({},r),{lastValue:P}),a=c(e,o),i=I(a);if(a=c(i,void 0),f&&!f(A(i,a))){var s=t.target,u=Nd(s),l=L(e,P,u);return N(s,l,P),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,wd.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=Z(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&N(n,c,i),e.isUnitTestRun&&N(n,c,i),d(e)}else d(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&N(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;R.current=t,M.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||N(t,a,o),m(e)}),0)},onBlur:function(e){R.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?O().createElement(O().Fragment,null,o(P,x)||null):O().createElement("span",Object.assign({},x,{ref:a}),P);if(r){var B=r;return O().createElement(B,Object.assign({},H,{ref:a}))}return O().createElement("input",Object.assign({},H,{ref:a}))}function zd(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Yd(t),u=s.thousandSeparator,l=s.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Td(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Dd(h,n,!!r)),u&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,u,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Yd(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Vd(e,t,n){var r;void 0===t&&(t=Zd(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,f=u.end,p=Yd(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(jd(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+Cd(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Td(e=e.replace(new RegExp(Cd(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,R=C.addNegation;return u.end-u.start<s.end-s.start&&""===T&&m&&!parseFloat(D)&&(e=R?"-":""),e}function qd(e){var t=(e=function(e){var t=Yd(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Pd);var a=e.onBlur;void 0===a&&(a=Pd);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=Sd(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return zd(t,e)},g=function(t,n){return Vd(t,n,e)},v=p;_d(f)?_d(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return _d(e)||Ed(e)?e:("number"==typeof e&&(e=Md(e)),v&&"number"==typeof c?Id(e,c,Boolean(s)):e)},b=Ud(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||jd(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===u.length+1&&n&&Ad(r,1);var d=Yd(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&s&&(Ad(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Ad(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&Ad(r,l-1),"Delete"===a&&p[l]===g&&Ad(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),s&&c&&(n=Id(n,c,s)),n!==O){var o=zd(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:wd.event})}a(t)}})}function Gd(e){var t=qd(e);return O().createElement(Wd,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(wd||(wd={}));var Kd,Xd=["immutable"];function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qd=(0,x.ZP)((function(e){e.immutable;var t=ae()(e,Xd);return(0,Ce.jsx)(Gd,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$d(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Kd||(Kd=b()(["\n &&&& {\n ","\n }\n"])),un);function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var th=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},nh=function(e){return null!=e&&!isNaN(parseFloat(e))},rh=function(e,t,n){return!nh(n)||!(nh(t)&&n>t)&&!(nh(e)&&n<e)},oh=function(e,t){return function(n){var r=n.floatValue;return th(r)<th(e)||rh(e,t,r)}};const ah=(0,f.ZP)(Ut.Z.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=eh(eh({isAllowed:oh(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(Qd,eh(eh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&rh(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!rh(s,m,r)&&(t.target.value=null)}}))})}),800));const ih=Ut.Z.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,f=s.format,p=s.allowLeadingZeros,d=s.suffix;return(0,Ce.jsx)(sn,{immutable:o,children:(0,Ce.jsx)(Qd,{isAllowed:oh(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),rh(u,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var ch,sh,uh,lh=x.ZP.div.withConfig({displayName:"StyledWrapper"})(ch||(ch=b()(["\n display: flex;\n justify-content: stretch;\n"]))),fh=x.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(sh||(sh=b()(["\n flex-grow: 1;\n"]))),ph=x.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(uh||(uh=b()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Se.FS.color("border"),nt.Z.space(-.8),nt.Z.space(.5));function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const mh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,s=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?gd()(e,Od):void 0}(r),v=function(e){return e?e.map(kd):[]}(c);return(0,Ce.jsxs)(lh,{children:[(0,Ce.jsx)(fh,{children:(0,Ce.jsx)(cc,{id:t,immutable:n,onChange:function(e){o(hh(hh({},function(e,t){return t?yd(yd({},e),gd()(t,Od)):Uo()(e,Od)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=xe()(e.matchAll(bd(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return yd(yd({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,Ce.jsx)(ph,{children:(0,Ce.jsx)(ih,{value:m,onChange:function(e){o(hh(hh({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var gh,vh=(0,w.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),yh=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,Ce.jsx)(Xt.ZP.Span,{children:(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,Ce.jsx)(w.Suspense,{fallback:gh||(gh=(0,Ce.jsx)("i",{})),children:(0,Ce.jsx)(vh,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};yh.defaultProps={value:""};const bh=yh;var wh,Oh;function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Sh=function(e){var t=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,s=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,Ce.jsxs)(Xt.ZP.Span,{children:[r," ",o," ",a," ",i]})},l=function(e){return function(r,a){var i=a.newValue;t(kh(kh({},o),{},n()({},e,i)))}},f=function(e,n){var r=n.suggestion;t(r)},p=function(e){return function(t){var o=t.value;r.fetchSuggestions(n()({},e,o),r.locationValues.country)}},d={id:a,value:o.postcode||"",onChange:l("postcode"),disabled:i},h={value:o.city||"",onChange:l("city"),disabled:i};return(0,Ce.jsx)(de,{children:function(e){var t,n,a,l=e.focused,m=e.getRef;return(0,Ce.jsxs)(Ko,{immutable:i,name:c,ref:m,children:[(0,Ce.jsx)(Vo(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(l||o.city||o.postcode)&&(wh||(wh=(0,Ce.jsx)(Xt.ZP.Span,{children:"/"}))),(0,Ce.jsx)(Vo(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:s("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ce.jsxs)(fn,{children:[r.isLoading&&(Oh||(Oh=(0,Ce.jsx)(Go.Z,{size:"1.8rem"}))),(a=r.locationValues,Boolean(a.city||a.postcode)&&!a.street&&(0,Ce.jsx)(qo.Z,{href:(t=r.locationValues,n=t?Object.values(t).filter(Boolean).map((function(e){return"object"===zo()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(n)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const jh=function(e){return(0,Ce.jsx)(cc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ph(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Eh=function(e){return(0,Ce.jsx)(cc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Ch;const Th=x.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Ch||(Ch=b()(["\n &&&& {\n ","\n }\n"])),un);const Dh=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=ot()(e,"options.defaultCountry")||"CH",s=(0,w.useState)(null),u=H()(s,2),l=u[0],f=u[1],p=O().createRef();(0,w.useEffect)((function(){(function(){var e=F()(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,Ce.jsxs)(sn,{immutable:r,children:[(0,Ce.jsx)(Th,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Bo()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(qo.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ih=function(e){return e.map((function(e){return gd()(e,["key","display"])}))};const Ah=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,Ce.jsx)(cc,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Mh(Mh({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Ih(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Ih(a.options)})};function Nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Zh=function(e){return(0,Ce.jsx)(cc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Fh=function(e){return(0,Ce.jsx)(cc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hh=function(e){return(0,Ce.jsx)(cc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Bh=Ut.Z.Debouncer((function(e){return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(ud,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const Wh=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var zh,Yh,Vh,qh=(0,x.iv)(zh||(zh=b()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),un),Gh=x.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Yh||(Yh=b()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),qh),Kh=x.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Vh||(Vh=b()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),qh);function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Qh=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,w.useState)(t),s=H()(c,2),u=s[0],l=s[1],f=!Wh(),p=(0,w.useCallback)(ra()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,Ce.jsx)(Gh,$h($h({"data-testid":"replicated-test"},f?{"data-replicated-value":u}:{}),{},{children:(0,Ce.jsx)(Kh,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const Jh=Ut.Z.Debouncer((function(e){return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(Qh,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var em;const tm=x.ZP.input.withConfig({displayName:"StyledTimeEdit"})(em||(em=b()(["\n &&&& {\n ","\n }\n"])),un);function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const om=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Wl(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,Ce.jsxs)(sn,{immutable:r,children:[(0,Ce.jsx)(tm,rm({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(mi.Z,rm(rm({icon:"times"},s),{},{tabIndex:-1}))})]})};var am;const im=x.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(am||(am=b()(["\n &&&& {\n ","\n }\n"])),un);const cm=Ut.Z.Debouncer((function(e){return(0,Ce.jsxs)(sn,{immutable:e.immutable,children:[(0,Ce.jsx)(im,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(qo.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function um(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var lm={boolean:fc,"boolean-select":sc,choice:xc,code:Dc,date:Ql,datetime:ef,document:ed,duration:cd,email:ld,geosearch:mh,html:bh,integer:ih,address:Jo,location:Sh,"multi-remote":jh,"multi-select":Eh,number:ah,phone:Dh,"pseudo-select":Ah,remote:Zh,"search-filter":Fh,"single-select":Hh,string:Bh,text:Jh,url:cm,time:om};const fm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(lm[t]){var u=lm[t],l=um(um({},Uo()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,Ce.jsx)("div",um(um({},l),{},{"data-cy":"form-field",children:(0,Ce.jsx)(u,um(um({value:n,onChange:null==a?void 0:a.onChange},Bo()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const hm=function(e){return(0,Ce.jsx)(pn,{children:(0,Ce.jsx)(fm,dm({componentType:e.type},Uo()(e,"type")))})};var mm,gm,vm=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(mm||(mm=b()(["\n && {\n ","\n }\n"])),cn);const ym=function(e){var t=e.verifyCode,n=e.intl,r=(0,w.useState)(null),o=H()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},s=a&&a.toString().length>=6,l=function(e){e&&(e.preventDefault(),e.stopPropagation()),s&&t(a)};(0,Wr.z)(l);var f=u.Z.isInAdminEmbedded();return(0,Ce.jsxs)(Ce.Fragment,{children:[gm||(gm=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.verificationText"})})),(0,Ce.jsxs)("form",{onSubmit:l,children:[(0,Ce.jsx)(Ft,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),labelPosition:f?"inside":"outside",children:(0,Ce.jsx)(vm,{children:(0,Ce.jsx)(hm,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!s})})]})]})};var bm={verifyCode:function(e){return{type:Mr,payload:{userCode:e}}}};const wm=(0,p.connect)((function(e,t){return{}}),bm)((0,f.ZP)(ym));var Om,xm,km,Sm,Pm,jm,_m=0,Em=1,Cm=2,Tm=3;const Dm=function(e){var t=e.initialize,n=e.stage;(0,w.useEffect)((function(){t()}),[t]);return(0,Ce.jsxs)(Ce.Fragment,{children:[jm||(jm=(0,Ce.jsx)(Sr.Z.Notifications,{})),function(){switch(n){case _m:return Om||(Om=(0,Ce.jsx)(Ao,{}));case Em:return xm||(xm=(0,Ce.jsx)(Do,{}));case Cm:return km||(km=(0,Ce.jsx)(wm,{}));case Tm:return Sm||(Sm=(0,Ce.jsx)(Xr,{}));default:return Pm||(Pm=(0,Ce.jsx)(Xn.Z,{}))}}()]})};var Rm={initialize:Zr};const Mm=(0,p.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Rm)((0,f.ZP)(Dm));var Im,Am=i(81770);function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lm=function(e){return function(t){return Zm(Zm({},t),{},{stage:e})}},Fm=(Im={},n()(Im,jr,Am.Z.singleTransferReducer("twoFactorActive")),n()(Im,_r,Am.Z.singleTransferReducer("secret")),n()(Im,Er,Am.Z.singleTransferReducer("username")),n()(Im,Ar,Am.Z.singleTransferReducer("setupSuccessful")),n()(Im,Dr,Lm(0)),n()(Im,Rr,Lm(1)),n()(Im,Tr,Lm(2)),n()(Im,Nr,Lm(3)),Im),Um={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Hm=i(34857),Bm=i(81719),Wm=i(54159),zm=W().mark(rg),Ym=W().mark(ag),Vm=W().mark(ig),qm=W().mark(sg),Gm=W().mark(ug),Km=W().mark(lg),Xm=W().mark(fg),$m=W().mark(pg),Qm=W().mark(dg),Jm="relTwo_step_login_status",eg=function(e){return e.twoFactorConnector.username},tg=function(e){return e.twoFactorConnector.secret},ng=function(e){return e.input};function rg(){var e,t,n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Hm.Ys)(ng);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Hm.Ys)(eg);case 7:return t=i.sent,i.next=10,(0,Hm.RE)(Bm.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,Hm.gz)(Fr({secret:o,uri:a}));case 14:return i.next=16,(0,Hm.gz)({type:Rr});case 16:case"end":return i.stop()}}),zm)}function og(e,t){return Wm.Z.executeRequest(e,t).then(Wm.Z.extractBody)}function ag(e,t,n,r){var o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,Hm.RE)(og,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return a=i.sent,i.next=6,(0,Hm.gz)(Br(ot()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Ym)}function ig(e,t,n){var r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Hm.RE)(Bm.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,Hm.gz)(Br(204===r.status));case 5:case"end":return o.stop()}}),Vm)}function cg(e){var t=e.payload.userCode;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.Ys)(eg);case 2:return n=e.sent,e.next=5,(0,Hm.Ys)(tg);case 5:return r=e.sent,o=r.secret,e.next=9,(0,Hm.Ys)(ng);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,Hm.RE)(ag,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,Hm.RE)(ig,n,o,t);case 19:return e.next=21,(0,Hm.gz)({type:Nr});case 21:case"end":return e.stop()}}),e)}))()}function sg(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Hm.RE)(lg);case 2:return n.next=4,(0,Hm.Ys)(ng);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Hm.gz)(Fr(t));case 9:return n.next=11,(0,Hm.gz)(Hr());case 11:case"end":return n.stop()}}),qm)}function ug(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(s.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),Gm)}function lg(){var e,t,n,r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Hm.RE)(fg);case 2:return e=a.sent,a.next=5,(0,Hm.gz)(Ur(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Hm.RE)(Bm.Z.fetchEntitiesPage,"Principal",{where:t,paths:[Jm]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=ot()(n,"[0].paths.".concat(Jm,".value.key")),o="1"===r,a.next=15,(0,Hm.gz)(Lr(o));case 15:case"end":return a.stop()}}),Km)}function fg(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Hm.Ys)(ng);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,Hm.RE)(Bm.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),Xm)}function pg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(s.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),$m)}function dg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(Cr,rg),(0,Hm.Fm)(Mr,cg),(0,Hm.Fm)(Pr,sg),(0,Hm.Fm)(Ir,ug),(0,Hm.Fm)(Dr,pg),(0,Hm.Fm)(Rr,pg),(0,Hm.Fm)(Tr,pg),(0,Hm.Fm)(Nr,pg)]);case 2:case"end":return e.stop()}}),Qm)}const hg={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Um,t=arguments.length>1?arguments[1]:void 0,n=Fm[t.type];return n?n(e,t):e}};var mg,gg=[dg];function vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bg="two-factor-connector",wg=function(t,n,r,o){var i=mg||(mg=(0,Ce.jsx)(Mm,{})),c=e.Z.createStore(hg,gg,n,bg);return Sr.Z.addToStore(c,!0),a.Z.addToStore(c,!0,["console","remote","notification"]),s.Z.addToStore(c,(function(t){return e.Z.getEvents(Og,t.input)})),e.Z.createApp(bg,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",bg]})},Og=["onSuccess","onCancel","onResize"],xg=function(t){return e.Z.useApp({initApp:wg,props:t,packageName:bg,externalEvents:Og}).component};xg.propTypes=yg(yg({},Og.reduce((function(e,t){return yg(yg({},e),{},n()({},t,o().func))}),{})),{},{username:o().string,password:o().string,secret:o().shape({secret:o().string.isRequired,uri:o().string.isRequired}),forced:o().bool});const kg=xg;var Sg;e.Z.createBundleableApp(bg,wg,xg);const Pg=function(e){var t=e.locale,n=e.username,r=e.password,o=e.secret,a=e.showTitle,i=e.changePage;return(0,Ce.jsxs)("div",{children:[a&&(Sg||(Sg=(0,Ce.jsx)($t,{title:"client.login.form.title"}))),(0,Ce.jsx)(kg,{locale:t,username:n,password:r,secret:o,forced:!0,onSuccess:function(){i(S)}})]})};var jg={changePage:A};const _g=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,secret:e.twoStepLogin.secret,locale:e.intl.locale}}),jg)(Pg);var Eg,Cg,Tg,Dg=x.ZP.div.withConfig({displayName:"StyledTwoStepLogin"})(Eg||(Eg=b()(["\n "," {\n width: 100%;\n }\n\n "," {\n ","\n padding-top: .7rem;\n padding-bottom: 0.7rem;\n }\n"])),dn.Z,pn,un);const Rg=function(e){var t=e.username,n=e.password,r=e.showTitle,o=e.loginPending,a=e.login,i=e.intl,c=(0,w.useState)(null),s=H()(c,2),u=s[0],l=s[1],f=(0,w.useRef)();(0,w.useLayoutEffect)((function(){f.current.querySelector("input").focus()}),[]);var p=function(e){return i.formatMessage({id:e})};return(0,Ce.jsxs)(Dg,{children:[r&&(Cg||(Cg=(0,Ce.jsx)($t,{title:"client.login.form.title"}))),(0,Ce.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a(t,n,null,u)},ref:f,children:[Tg||(Tg=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.twoStepLogin.introduction"})})),(0,Ce.jsx)(Ft,{hasValue:!!u,id:"twoFactorCode-label",label:p("client.login.twoStepLogin.codePlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(hm,{type:"integer",value:u,events:{onChange:l},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,Ce.jsx)(Gt,{disabled:!u||u.toString().length<6||o,label:p("client.login.form.button"),pending:o})]})]})};var Mg={login:v};const Ig=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,loginPending:e.loginForm.loginPending}}),Mg)((0,f.ZP)(Rg));var Ag;function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Lg=function(e){var t=e.intl,n=e.checkUsername,r=e.loginPending,o=e.message,a=e.setUsername,i=e.showTitle,c=e.username,s=Qt(a),u=H()(s,2),l=u[0],f=u[1],p=function(e){return t.formatMessage({id:e})},d=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&t.preventDefault(),n(c);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,c]);return(0,Ce.jsxs)(kn,{children:[i&&(Ag||(Ag=(0,Ce.jsx)($t,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ce.jsxs)("form",{onSubmit:d,children:[(0,Ce.jsx)(Ft,{hasValue:!!c||l,id:"login-username",label:p("client.login.form.userEmailPlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Zg({autoFocus:!0,name:"user",required:!0,type:"text",value:c,onFocus:function(e){return e.target.select()}},f))})}),(0,Ce.jsx)(Ht,{message:o}),(0,Ce.jsx)(Gt,{disabled:!l&&(r||""===c),label:p("client.login.form.next"),pending:r})]})]})};var Fg={setUsername:N,checkUsername:function(e){return{type:g,payload:{username:e}}}};const Ug=(0,p.connect)((function(e){return{username:e.login.username,message:e.loginForm.message,loginPending:e.loginForm.loginPending}}),Fg)((0,f.ZP)(Lg));var Hg,Bg,Wg,zg=(0,x.vJ)(Hg||(Hg=b()(["\n .grecaptcha-badge {\n z-index: 9999999;\n opacity: .8;\n }\n"])));const Yg=function(e){var t,n,r,o,a,i=e.initialize,c=e.showTitle,s=e.currentPage;return(0,w.useEffect)((function(){i()}),[i]),(0,Ce.jsxs)(Ce.Fragment,{children:[Bg||(Bg=(0,Ce.jsx)(zg,{})),function(){switch(s){case _:return t||(t=(0,Ce.jsx)(vr,{showTitle:c}));case P:return n||(n=(0,Ce.jsx)(Mn,{showTitle:c}));case j:return r||(r=(0,Ce.jsx)(Ig,{showTitle:c}));case E:return Wg||(Wg=(0,Ce.jsx)(_g,{}));case k:return o||(o=(0,Ce.jsx)(Ug,{showTitle:c}));default:return a||(a=(0,Ce.jsx)(En,{showTitle:c}))}}()]})};var Vg={initialize:function(){return{type:d}}};const qg=(0,p.connect)((function(e,t){return{currentPage:t.currentPage||e.login.currentPage,showTitle:t.showTitle}}),Vg)((0,f.ZP)(Yg));var Gg,Kg="PasswordUpdateDialog/SET_SHOW_OLD_PASSWORD",Xg="PasswordUpdateDialog/SET_STANDALONE",$g="PasswordUpdateDialog/SET_FORCED_UPDATE",Qg="PasswordUpdateDialog/SET_USERNAME_OR_PK",Jg="PasswordUpdateDialog/SET_CURRENT_USERNAME",ev=function(e){return{type:Kg,payload:{showOldPasswordField:e}}},tv=function(e){return{type:$g,payload:{forcedUpdate:e}}},nv=function(e){return{type:Qg,payload:{usernameOrPk:e}}},rv=i(15857),ov=(Gg={},n()(Gg,T,Am.Z.singleTransferReducer("entryPage")),n()(Gg,C,Am.Z.singleTransferReducer("currentPage")),n()(Gg,D,Am.Z.singleTransferReducer("username")),n()(Gg,R,Am.Z.singleTransferReducer("password")),n()(Gg,M,Am.Z.singleTransferReducer("captchaKey")),Gg),av={entryPage:void 0,currentPage:void 0,username:"",password:"",captchaKey:null};const iv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:av,t=arguments.length>1?arguments[1]:void 0,n=ov[t.type];return n?n(e,t):e};var cv,sv="loginForm/SET_MESSAGE",uv="loginForm/CLEAR_MESSAGE",lv="loginForm/SET_PENDING",fv="loginForm/ACTIVATE_RECAPTCHA",pv=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:sv,payload:{text:e,negative:t}}},dv=function(){return{type:uv}},hv=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:lv,payload:{pending:e}}};function mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vv=(cv={},n()(cv,sv,(function(e,t){var n=t.payload,r=n.text,o=n.negative;return gv(gv({},e),{},{message:{text:r,negative:o}})})),n()(cv,uv,(function(e){return gv(gv({},e),{},{message:{}})})),n()(cv,lv,(function(e,t){var n=t.payload;return gv(gv({},e),{},{loginPending:n.pending})})),n()(cv,fv,(function(e){return gv(gv({},e),{},{recaptchaActivated:!0})})),cv),yv={message:{},loginPending:!1,recaptchaActivated:!1};const bv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yv,t=arguments.length>1?arguments[1]:void 0,n=vv[t.type];return n?n(e,t):e};var wv;function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ov(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var kv={showOldPasswordField:!0,forcedUpdate:!1,standalone:!0,usernameOrPk:""},Sv=function(e){return function(t,r){var o=r.payload[e];return xv(xv({},t),{},n()({},e,o))}},Pv=(wv={},n()(wv,Kg,Sv("showOldPasswordField")),n()(wv,$g,Sv("forcedUpdate")),n()(wv,Xg,Sv("standalone")),n()(wv,Qg,Sv("usernameOrPk")),wv);const jv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kv,t=arguments.length>1?arguments[1]:void 0,n=Pv[t.type];return n?n(e,t):e};var _v,Ev=i(44759),Cv=W().mark(Dv),Tv=W().mark(Rv);function Dv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(Jg,Rv)]);case 2:case"end":return e.stop()}}),Cv)}function Rv(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={acceptedStatusCodes:[403]},r.next=3,(0,Hm.RE)(Bm.Z.requestSaga,"principals",e);case 3:if(403!==(t=r.sent).status){r.next=8;break}Ev.Z.logError('input "username" on password-update is mandatory if no user is logged in'),r.next=11;break;case 8:return n=t.body.username,r.next=11,(0,Hm.gz)(nv(n));case 11:case"end":return r.stop()}}),Tv)}function Mv(e){return 0===Object.keys(e).length&&e.constructor===Object}function Iv(e){var t={};return e.forEach((function(e){t[e.ruleName]=e.message})),t}function Av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zv={oldPassword:"",newPassword:"",newPasswordRepeat:"",newPasswordValidationErrors:null,passwordUpdatePending:!1,passwordUpdateFailed:!1,passwordUpdateErrorCode:null},Lv=(_v={},n()(_v,An,(function(e,t){var n=t.payload;return Nv(Nv({},e),{},{oldPassword:n.oldPassword})})),n()(_v,Zn,(function(e,t){var n=t.payload;return Nv(Nv({},e),{},{newPassword:n.newPassword})})),n()(_v,Ln,(function(e,t){var n=t.payload;return Nv(Nv({},e),{},{newPasswordValidationErrors:n.errors})})),n()(_v,Fn,(function(e,t){var n=t.payload;return Nv(Nv({},e),{},{newPasswordRepeat:n.newPasswordRepeat})})),n()(_v,Un,(function(e){return Nv(Nv({},e),{},{passwordUpdatePending:!0,passwordUpdateFailed:!1})})),n()(_v,Hn,(function(e){return Zv})),n()(_v,Bn,(function(e,t){var n=t.payload;if(n.validationMessages){var r=Iv(n.validationMessages);return Nv(Nv({},e),{},{passwordUpdatePending:!1,newPasswordValidationErrors:r})}return Nv(Nv({},e),{},{passwordUpdatePending:!1,passwordUpdateFailed:!0,passwordUpdateErrorCode:n.errorCode})})),n()(_v,zn,(function(e,t){t.payload;return Nv(Nv({},e),{},{passwordUpdateFailed:!1})})),_v);const Fv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zv,t=arguments.length>1?arguments[1]:void 0,n=Lv[t.type];return n?n(e,t):e};var Uv="password_update_success",Hv="password_update_failed",Bv=(i(13218),i(66604)),Wv=i.n(Bv),zv=i(17563),Yv=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const Vv=function(e){var t=zv.parse(e);return Wv()(t,(function(e){return Yv(e)?JSON.parse(e):e}))};var qv="login/SET_SECRET";function Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xv,$v=W().mark(vy),Qv=W().mark(yy),Jv=W().mark(wy),ey=W().mark(Oy),ty=W().mark(xy),ny=W().mark(ky),ry=W().mark(Sy),oy=W().mark(Py),ay=W().mark(jy),iy=W().mark(_y),cy=W().mark(Ey),sy=W().mark(Dy),uy=W().mark(Ry),ly=W().mark(My),fy=W().mark(Iy),py=W().mark(Ay),dy=function(e){return e.login},hy=function(e){return e.input};function my(e){var t=e.payload;return W().mark((function e(){var n,r,o;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.Ys)(dy);case 2:return n=e.sent,r=n.entryPage,e.next=6,(0,Hm.gz)(hv(!0));case 6:return e.next=8,(0,Hm.RE)(Bm.Z.requestSaga,"principals/".concat(t.username,"/password-reset"),{method:"POST"});case 8:return e.next=10,(0,Hm.gz)(N(t.username));case 10:return e.next=12,(0,Hm.gz)(A(S));case 12:return o=r===k?"client.login.from.passwordRequestedWithValidUsername":"client.login.from.passwordRequested",e.next=16,(0,Hm.gz)(pv(o));case 16:return e.next=18,(0,Hm.gz)(hv(!1));case 18:case"end":return e.stop()}}),e)}))()}function gy(e,t){return new Promise((function(n){Wm.Z.executeRequest(e,t).then(Wm.Z.extractBody).then((function(e){return n(e)})).catch((function(e){Ev.Z.logError("Failed to execute request",e),n({success:!1})}))}))}function vy(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.RE)(gy,"login",by(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),$v)}function yy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.RE)(gy,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Qv)}function by(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(e).filter((function(t){return!!e[t]})).sort().map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}}function wy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(A(j));case 2:case"end":return e.stop()}}),Jv)}function Oy(e){var t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e[E],n.next=3,(0,Hm.gz)({type:qv,payload:{secret:t}});case 3:return n.next=5,(0,Hm.gz)(A(E));case 5:case"end":return n.stop()}}),ey)}function xy(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.Ys)(dy);case 2:return e=t.sent,t.next=5,(0,Hm.gz)(Yn(e.password));case 5:return t.next=7,(0,Hm.gz)(nv(e.username));case 7:return t.next=9,(0,Hm.gz)(tv(!0));case 9:return t.next=11,(0,Hm.gz)(A(_));case 11:case"end":return t.stop()}}),ty)}function ky(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(pv("client.login.form.blocked",!0));case 2:case"end":return e.stop()}}),ny)}function Sy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(pv("client.login.form.failed",!0));case 2:case"end":return e.stop()}}),ry)}function Py(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(pv("client.login.form.invalidUsernameEmail",!0));case 2:case"end":return e.stop()}}),oy)}function jy(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_y();case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),ay)}function _y(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e=Vv(window.location.search),!(t=e._redirect_url)){o.next=5;break}return o.abrupt("return",t);case 5:return o.next=7,(0,Hm.Ys)(hy);case 7:return n=o.sent,r=n.redirectUrl,o.abrupt("return",r);case 10:case"end":return o.stop()}}),iy)}function Ey(t){var n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Hm.RE)(e.Z.reinitialiseCache);case 2:return r.next=4,(0,Hm.gz)(Z(""));case 4:return n=t.timeout||30,r.next=7,(0,Hm.gz)(s.Z.fireExternalEvent("loginSuccess",{timeout:n}));case 7:case"end":return r.stop()}}),cy)}function Cy(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,e.next=3,(0,Hm.gz)(dv());case 3:return e.next=5,(0,Hm.gz)(hv(!0));case 5:return e.next=7,(0,Hm.RE)(Bm.Z.requestSaga,"client/username/check/".concat(n),{method:"GET"});case 7:if(r=e.sent,o=r.body,a=o.existingUser,i=o.validEmail,!a){e.next=14;break}return e.next=12,(0,Hm.gz)(A(S));case 12:e.next=21;break;case 14:if(!i){e.next=19;break}return e.next=17,(0,Hm.gz)(s.Z.fireExternalEvent("register",{username:n}));case 17:e.next=21;break;case 19:return e.next=21,(0,Hm.RE)(Py);case 21:return e.next=23,(0,Hm.gz)(hv(!1));case 23:case"end":return e.stop()}}),e)}))()}function Ty(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i,c;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,o=t.captchaToken,a=t.userCode,i=Kv(Kv({username:n,password:r},o&&{captchaToken:o}),a&&{userCode:a}),e.next=4,(0,Hm.gz)(hv(!0));case 4:return e.next=6,(0,Hm.RE)(vy,i);case 6:if(!(c=e.sent).success){e.next=14;break}return e.next=10,(0,Hm.RE)(Ey,c);case 10:return e.next=12,(0,Hm.RE)(jy);case 12:e.next=45;break;case 14:return e.next=16,(0,Hm.gz)(A(S));case 16:if(!c.CAPTCHA){e.next=21;break}return e.next=19,(0,Hm.gz)({type:fv});case 19:e.next=43;break;case 21:if(!c.TWOSTEPLOGIN){e.next=26;break}return e.next=24,(0,Hm.RE)(wy,c);case 24:e.next=43;break;case 26:if(!c.RESET_PASSWORD_REQUIRED){e.next=31;break}return e.next=29,(0,Hm.RE)(xy);case 29:e.next=43;break;case 31:if(!c.LOGIN_BLOCKED){e.next=36;break}return e.next=34,(0,Hm.RE)(ky);case 34:e.next=43;break;case 36:if(!c.TWOSTEPLOGIN_ACTIVATION){e.next=41;break}return e.next=39,(0,Hm.RE)(Oy,c);case 39:e.next=43;break;case 41:return e.next=43,(0,Hm.RE)(Sy);case 43:return e.next=45,(0,Hm.gz)(hv(!1));case 45:case"end":return e.stop()}}),e)}))()}function Dy(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.RE)(yy);case 2:if(!(e=t.sent).success){t.next=6;break}return t.next=6,(0,Hm.RE)(Ey,e);case 6:return t.abrupt("return",e.success);case 7:case"end":return t.stop()}}),sy)}function Ry(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.RE)(Bm.Z.fetchServerSettings);case 2:return e=t.sent,t.next=5,(0,Hm.gz)((n=e.captchaKey,{type:M,payload:{captchaKey:n}}));case 5:case"end":return t.stop()}var n}),uy)}function My(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.RE)(Dy);case 2:return e=t.sent,t.next=5,(0,Hm.RE)(Ry);case 5:if(!e){t.next=8;break}return t.next=8,(0,Hm.RE)(jy);case 8:case"end":return t.stop()}}),ly)}function Iy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(dv());case 2:case"end":return e.stop()}}),fy)}function Ay(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(C,Iy),(0,Hm.Fm)(h,Ty),(0,Hm.Fm)(g,Cy),(0,Hm.Fm)(m,my),(0,Hm.Fm)(d,My)]);case 2:case"end":return e.stop()}}),py)}var Ny="PASSWORD_NOT_CHANGED";function Zy(e,t,n,r){if("string"!=typeof e)return!1;var o=e.length-e.replace(t,"").length;return(null==n||o>=n)&&(null==r||o<=r)}var Ly=(Xv={},n()(Xv,Ny,(function(e,t){return"string"==typeof e&&"string"==typeof t&&e!==t})),n()(Xv,"LENGTH",(function(e,t,n){return"string"==typeof e&&(void 0===n.params.min||null===n.params.min||e.length>=n.params.min)&&(void 0===n.params.max||null===n.params.max||e.length<=n.params.max)})),n()(Xv,"CHARACTER_INSUFFICIENT_LOWERCASE",(function(e,t,n){return Zy(e,/[a-z]/g,n.params.min,n.params.max)})),n()(Xv,"CHARACTER_INSUFFICIENT_UPPERCASE",(function(e,t,n){return Zy(e,/[A-Z]/g,n.params.min,n.params.max)})),n()(Xv,"CHARACTER_INSUFFICIENT_DIGIT",(function(e,t,n){return Zy(e,/[0-9]/g,n.params.min,n.params.max)})),Xv);const Fy=function(e,t,n){var r={};return n&&n.forEach((function(n){var o=Ly[n.name];o&&(!0!==o(e,t,n)&&(r[n.name]=!0))})),r};var Uy=W().mark(nb),Hy=W().mark(rb),By=W().mark(ob),Wy=W().mark(ab),zy=W().mark(cb),Yy=W().mark(sb),Vy=W().mark(ub),qy=W().mark(lb);function Gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ky(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xy=function(e){return e.passwordUpdate.validationRules},$y=function(e){return e.input},Qy=function(e){return e.passwordUpdate.dialog.usernameOrPk},Jy=function(e){return e.passwordUpdate.password},eb=function(e){return e.passwordUpdate.dialog.standalone},tb=function(e){return e.intl};function nb(e,t,n){var r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={method:"POST",acceptedStatusCodes:[400],body:Ky(Ky({},t),{},{captchaToken:n})},a.prev=1,a.next=4,(0,Hm.RE)(Bm.Z.requestSaga,"principals/".concat(e,"/password-update"),r);case 4:return o=a.sent,a.abrupt("return",o.ok?{error:null}:{error:o.body});case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",{error:{errorCode:"UNEXPECTED_ERROR",exception:a.t0}});case 11:case"end":return a.stop()}}),Uy,null,[[1,8]])}function rb(e,t){var n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Hm.Ys)(tb);case 2:return n=i.sent,r=n.locale,o={method:"POST",body:t,queryParams:{locale:r}},i.prev=5,i.next=8,(0,Hm.RE)(Bm.Z.requestSaga,"principals/".concat(e,"/password-validation"),o);case 8:return a=i.sent,i.abrupt("return",a.body);case 12:return i.prev=12,i.t0=i.catch(5),i.abrupt("return",{valid:!0,exception:i.t0});case 15:case"end":return i.stop()}}),Hy,null,[[5,12]])}function ob(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Hm.gz)((n=e.payload.newPassword,{type:Zn,payload:{newPassword:n}}));case 2:return t.next=4,(0,Hm.gz)({type:Wn});case 4:case"end":return t.stop()}var n}),By)}function ab(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Hm.Ys)(Xy);case 2:return e=c.sent,c.next=5,(0,Hm.Ys)(Jy);case 5:if(t=c.sent,Mv(n=Fy(t.newPassword,t.oldPassword,e))){c.next=12;break}return c.next=10,(0,Hm.gz)(Vn(n));case 10:c.next=29;break;case 12:return c.next=14,(0,Hm.Ys)(Qy);case 14:return r=c.sent,c.next=17,(0,Hm.RE)(cb);case 17:return o=c.sent,c.next=20,(0,Hm.RE)(rb,r,o);case 20:if(!0!==(a=c.sent).valid){c.next=26;break}return c.next=24,(0,Hm.gz)(Vn({}));case 24:c.next=29;break;case 26:return i=Iv(a.validationMessages),c.next=29,(0,Hm.gz)(Vn(i));case 29:case"end":return c.stop()}}),Wy)}function ib(e){var t=e.payload.captchaToken;return W().mark((function e(){var n,r,o,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.Ys)(Qy);case 2:return n=e.sent,e.next=5,(0,Hm.RE)(cb);case 5:return r=e.sent,e.next=8,(0,Hm.RE)(nb,n,r,t);case 8:if(!(o=e.sent).error){e.next=21;break}if(!1!==o.error.valid){e.next=15;break}return e.next=13,(0,Hm.gz)(qn(null,o.error.validationMessages));case 13:e.next=17;break;case 15:return e.next=17,(0,Hm.gz)(qn(o.error.errorCode));case 17:return e.next=19,(0,Hm.gz)(s.Z.fireVisibilityStatusChangeEvent([Hv]));case 19:e.next=40;break;case 21:return e.next=23,(0,Hm.Ys)(eb);case 23:if(!e.sent){e.next=29;break}return e.next=27,(0,Hm.gz)(s.Z.fireExternalEvent("success",{newPassword:r.newPassword}));case 27:e.next=36;break;case 29:return e.next=31,(0,Hm.RE)(sb);case 31:return a=e.sent,e.next=34,(0,Hm.gz)(Z(a.payload.password));case 34:return e.next=36,(0,Hm.RE)(Ty,a);case 36:return e.next=38,(0,Hm.gz)({type:Hn});case 38:return e.next=40,(0,Hm.gz)(s.Z.fireVisibilityStatusChangeEvent([Uv]));case 40:case"end":return e.stop()}}),e)}))()}function cb(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Hm.Ys)($y);case 2:return e=n.sent,n.next=5,(0,Hm.Ys)(Jy);case 5:return t=n.sent,n.abrupt("return",{oldPassword:e.oldPassword?e.oldPassword:t.oldPassword,newPassword:t.newPassword});case 7:case"end":return n.stop()}}),zy)}function sb(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Hm.Ys)(Jy);case 2:return e=n.sent,n.next=5,(0,Hm.Ys)(Qy);case 5:return t=n.sent,n.abrupt("return",{payload:{username:t,password:e.newPasswordRepeat}});case 7:case"end":return n.stop()}}),Yy)}function ub(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)({type:zn});case 2:case"end":return e.stop()}}),Vy)}function lb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(Nn,ob),(0,Hm.Fm)(Wn,ab),(0,Hm.Fm)(Un,ib),(0,Hm.Fm)(Nn,ub),(0,Hm.Fm)(An,ub),(0,Hm.Fm)(Fn,ub)]);case 2:case"end":return e.stop()}}),qy)}var fb=W().mark(db),pb=W().mark(hb);function db(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.gz)(s.Z.fireExternalEvent("resize"));case 2:case"end":return e.stop()}}),fb)}function hb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(In,db)]);case 2:case"end":return e.stop()}}),pb)}var mb=n()({},Kn,(function(e,t){return t.payload.rules}));const gb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=mb[t.type];return n?n(e,t):e};var vb=W().mark(kb),yb=W().mark(Sb),bb=function(e){return e.passwordUpdate.dialog},wb=function(e){return e.intl};function Ob(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return W().mark((function n(){var r,o;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="principals/".concat(e,"/password-rules"),n.next=3,(0,Hm.RE)(Bm.Z.requestSaga,r,{queryParams:{locale:t}});case 3:return o=n.sent,n.abrupt("return",o.body);case 5:case"end":return n.stop()}}),n)}))()}var xb=function(e,t){return t||e.name!==Ny};function kb(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Hm.Ys)(bb);case 2:return e=c.sent,t=e.usernameOrPk,n=e.showOldPasswordField,c.next=7,(0,Hm.Ys)(wb);case 7:return r=c.sent,o=r.locale,c.next=11,(0,Hm.RE)(Ob,t,o);case 11:return a=c.sent,i=a.rules.filter((function(e){return xb(e,n)})),c.next=15,(0,Hm.gz)({type:Kn,payload:{rules:i}});case 15:case"end":return c.stop()}}),vb)}function Sb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(Gn,kb)]);case 2:case"end":return e.stop()}}),yb)}const Pb={dialog:jv,password:Fv,validationRules:gb};var jb=[Dv,hb,lb,Sb],_b=n()({},qv,Am.Z.singleTransferReducer("secret")),Eb={secret:null};const Cb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eb,t=arguments.length>1?arguments[1]:void 0,n=_b[t.type];return n?n(e,t):e},Tb={login:iv,loginForm:bv,passwordUpdate:(0,rv.UY)(Pb),twoStepLogin:Cb};var Db=[Ay].concat(xe()(jb));function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mb="login",Ib=["loginSuccess","register","resize"],Ab={username:k,"password-request":P,login:S},Nb=function(t,n,r,o,i){var c,l=Ab[n.entryPage]||S,f=[ev(!1),(c=!1,{type:Xg,payload:{standalone:c}}),N(n.username||""),I(l),A(l)],p=!!n.showTitle,d=(0,Ce.jsx)(qg,{showTitle:p}),h=e.Z.createStore(Tb,Db,n,Mb);return u.Z.setInputEnvs(n),s.Z.addToStore(h,(function(t){return e.Z.getEvents(Ib,t.input)})),a.Z.addToStore(h,!0,["console","remote"]),e.Z.createApp(Mb,d,h,{input:n,actions:f,publicPath:o,textResourceModules:["login"],customTheme:i})},Zb=function(t){return e.Z.useApp({initApp:Nb,props:t,packageName:Mb,externalEvents:Ib}).component};Zb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({showTitle:o().bool,locale:o().string,entryPage:o().oneOf(["username","login","password-request"]),username:o().string,setLocale:o().func,backendUrl:o().string,redirectUrl:o().string,appContext:l.Z.propTypes},Ib.reduce((function(e,t){return e[t]=o().func,e}),{}));const Lb=function(e){var t=e.usernameOrPk,n=e.showTitle;return(0,Ce.jsx)(Xn.Z,{required:[t],children:(0,Ce.jsx)(qg,{currentPage:"PASSWORD_UPDATE",showTitle:n})})};const Fb=(0,p.connect)((function(e,t){return{usernameOrPk:e.passwordUpdate.dialog.usernameOrPk}}),{})((0,f.ZP)(Lb));function Ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ub(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ub(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bb="password-update",Wb=["success","resize","onVisibilityStatusChange"],zb=function(t,n,r,o,i){var c=!!n.showTitle,l=!!n.forcedUpdate,f=(0,Ce.jsx)(Fb,{showTitle:c}),p=[tv(l)];"string"!=typeof n.username||0===n.username.length?p.push({type:Jg}):p.push(nv(n.username)),"boolean"==typeof n.showOldPasswordField&&p.push(ev(n.showOldPasswordField));var d=e.Z.createStore(Tb,Db,n,Bb);return u.Z.setInputEnvs(n),s.Z.addToStore(d,(function(t){return e.Z.getEvents(Wb,t.input)})),a.Z.addToStore(d,!0,["console","remote"]),e.Z.createApp(Bb,f,d,{input:n,actions:p,publicPath:o,textResourceModules:["login"],customTheme:i})},Yb=function(t){return e.Z.useApp({initApp:zb,props:t,packageName:Bb,externalEvents:Wb}).component};Yb.propTypes=Hb({username:o().string,showTitle:o().bool,showOldPasswordField:o().bool,oldPassword:o().string,backendUrl:o().string,appContext:l.Z.propTypes},Wb.reduce((function(e,t){return Hb(Hb({},e),{},n()({},t,o().func))}),{}));var Vb="login";var qb=e.Z.createBundleableApp(Vb,Nb,Zb);e.Z.createBundleableApp("password-update",zb,Yb);e.Z.registerAppInRegistry(qb.name,qb.init)})(),c})()));
|
|
57
|
+
*/function po(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function ho(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function mo(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,s=(r.width||i)*c,u=(r.height||i)*c,l=null==r.x?e.length/2-s/2:r.x*c,f=null==r.y?e.length/2-u/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+f-t)}}return{x:l,y:f,h:u,w:s,excavation:p}}var go=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function vo(e){const t=e,{value:n,size:r=co,level:o=so,bgColor:a=uo,fgColor:i=lo,includeMargin:c=fo,style:s,imageSettings:u}=t,l=oo(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==u?void 0:u.src,p=(0,w.useRef)(null),d=(0,w.useRef)(null),[h,m]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let s=ao.QrCode.encodeText(n,io[o]).getModules();const l=c?4:0,f=s.length+2*l,h=mo(s,r,c,u),m=d.current,g=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=h.excavation&&(s=ho(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/f*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,go?t.fill(new Path2D(po(s,l))):s.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),g&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,w.useEffect)((()=>{m(!1)}),[f]);const g=ro({height:r,width:r},s);let v=null;return null!=f&&(v=O().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),O().createElement(O().Fragment,null,O().createElement("canvas",ro({style:g,height:r,width:r,ref:p},l)),v)}function yo(e){const t=e,{value:n,size:r=co,level:o=so,bgColor:a=uo,fgColor:i=lo,includeMargin:c=fo,imageSettings:s}=t,u=oo(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=ao.QrCode.encodeText(n,io[o]).getModules();const f=c?4:0,p=l.length+2*f,d=mo(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=ho(l,d.excavation)),h=O().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=po(l,f);return O().createElement("svg",ro({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),O().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),O().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var bo=e=>{const t=e,{renderAs:n}=t,r=oo(t,["renderAs"]);return"svg"===n?O().createElement(yo,ro({},r)):O().createElement(vo,ro({},r))};const wo=function(e){var t=e.value;return(0,Ce.jsx)(bo,{value:t,renderAs:"svg"})};var Oo,xo,ko,So,Po,jo,_o=x.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Oo||(Oo=b()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),nt.Z.space(1.2),nt.Z.space(1),nt.Z.space(1.5),nt.Z.space(1)),Eo=x.ZP.div.withConfig({displayName:"StyledParagraph"})(xo||(xo=b()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),nt.Z.space(-1),nt.Z.space(-.9));const Co=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,Wr.z)(n),(0,Ce.jsxs)(Ce.Fragment,{children:[ko||(ko=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,Ce.jsx)(_o,{children:(0,Ce.jsx)(wo,{value:t.uri})}),So||(So=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,Ce.jsx)(Eo,{children:(0,Ce.jsx)(Xt.ZP.B,{children:t.secret})}),Po||(Po=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{ink:"primary",look:"raised",onClick:n,children:jo||(jo=(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var To={goToSecretVerification:function(){return{type:Tr}}};const Do=(0,p.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),To)((0,f.ZP)(Co));var Ro;const Mo=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,Wr.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Xt.ZP.P,{children:function(){if(t)return Ro||(Ro=(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,Ce.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Io={initialize:Zr,requestSecret:function(){return{type:Cr}}};const Ao=(0,p.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Io)((0,f.ZP)(Mo));var No,Zo,Lo,Fo=i(57557),Uo=i.n(Fo),Ho=i(41609),Bo=i.n(Ho),Wo=i(58808),zo=i.n(Wo),Yo=i(41291),Vo=i(93235),qo=i(50008),Go=i.n(qo),Ko=function(e){return-1*Math.abs(e)},Xo=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===Go()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},$o=x.ZP.div.withConfig({displayName:"StyledLocationEdit"})(No||(No=b()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),cn,nt.Z.space(-2),nt.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?ot()(n,"colors.textDisabled"):ot()(n,"colors.text")}),un,Se.FS.color("paper"),Se.FS.color("signal.info"),Se.FS.color("secondaryLight"),Se.FS.color("backgroundItemHover")),Qo=(0,x.ZP)($o).withConfig({displayName:"StyledAddressEdit"})(Zo||(Zo=b()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ta=function(e){var t,r=e.onChange,o=e.options,a=e.value,i=e.id,c=e.immutable,s=e.name,u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),c=n?"- ".concat(n):"",s=r?"/ ".concat(r.display):"";return(0,Ce.jsxs)(Xt.ZP.Span,{children:[i,", ",o," ",a," ",c," ",s]})},f=function(e,t){var n=t.suggestion;!0===n.validationRequired?o.validateLocation(n,r):r(n)},p=function(e){var t=e.value,n=o.locationValues,r=n.postcode,a=n.city,i=n.country,c={street:t,postcode:r,city:a};o.fetchSuggestions(c,i)},d={id:i,value:a&&a.street?u(a):"",onChange:(t="street",function(e,o){var i=o.newValue;r(ea(ea({},a),{},n()({},t,i)))}),disabled:c};return(0,Ce.jsx)(de,{children:function(e){var t,n,r,a,i,u=e.getRef;return(0,Ce.jsxs)(Qo,{immutable:c,name:s,ref:u,children:[(0,Ce.jsx)(zo(),{suggestions:o.suggestions||[],onSuggestionsFetchRequested:p,getSuggestionValue:(i="street",function(e){return e[i]}),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!c}}),(0,Ce.jsxs)(fn,{children:[o.isLoading&&(Lo||(Lo=(0,Ce.jsx)(Vo.Z,{size:"1.8rem"}))),(t=o.locationValues,n=t.street,r=t.city,a=t.postcode,Boolean(n&&(r||a))&&(0,Ce.jsx)(Yo.Z,{href:Xo(o.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:o.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var na=i(14293),ra=i.n(na),oa=i(23493),aa=i.n(oa),ia=i(33417),ca=i(1972),sa=i(32924),ua=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var la=i(2717);function fa(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)}}function pa(e,t){return(pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function da(e){return(da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ha=i(62360);function ma(e,t){if(t&&("object"===(0,ha.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=da(e);if(t){var o=da(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ma(this,n)}}var va=i(31599);var ya=i(78001);function ba(e){return function(e){if(Array.isArray(e))return(0,va.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ya.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wa=i(29382),Oa=i(1537),xa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ka(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||xa(r)&&xa(o)))return!1;var r,o;return!0}for(var Sa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Pa=function(e){return(0,Oa.tZ)("span",(0,la.Z)({css:Sa},e))},ja={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},_a=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],O=c["aria-live"],x=(0,w.useMemo)((function(){return(0,ia.Z)((0,ia.Z)({},ja),u||{})}),[u]),k=(0,w.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),f=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,ia.Z)({isDisabled:u&&d(u,i),label:f,labels:h},t);n=x.onChange(m)}return n}),[t,x,d,i,l]),S=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,d,x,o,i]),P=(0,w.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,x,g,v]),j=(0,w.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,x,i,y]),_="".concat(S," ").concat(P," ").concat(j),E=(0,Oa.tZ)(w.Fragment,null,(0,Oa.tZ)("span",{id:"aria-selection"},k),(0,Oa.tZ)("span",{id:"aria-context"},_)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,Oa.tZ)(w.Fragment,null,(0,Oa.tZ)(Pa,{id:s},C&&E),(0,Oa.tZ)(Pa,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},Ea=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ca=new RegExp("["+Ea.map((function(e){return e.letters})).join("")+"]","g"),Ta={},Da=0;Da<Ea.length;Da++)for(var Ra=Ea[Da],Ma=0;Ma<Ra.letters.length;Ma++)Ta[Ra.letters[Ma]]=Ra.base;var Ia=function(e){return e.replace(Ca,(function(e){return Ta[e]}))},Aa=function(e,t){void 0===t&&(t=ka);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Ia),Na=function(e){return e.replace(/^\s+|\s+$/g,"")},Za=function(e){return"".concat(e.label," ").concat(e.value)},La=["innerRef"];function Fa(e){var t=e.innerRef,n=(0,sa.Z)(e,La),r=(0,wa.r)(n,"onExited","in","enter","exit","appear");return(0,Oa.tZ)("input",(0,la.Z)({ref:t},r,{css:(0,Oa.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ua=["boxSizing","height","overflow","paddingRight","position"],Ha={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ba(e){e.preventDefault()}function Wa(e){e.stopPropagation()}function za(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ya(){return"ontouchstart"in window||navigator.maxTouchPoints}var Va=!("undefined"==typeof window||!window.document||!window.document.createElement),qa=0,Ga={capture:!1,passive:!1};var Ka=function(){return document.activeElement&&document.activeElement.blur()},Xa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function $a(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),c=(0,w.useRef)(!1),s=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=u.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,w.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,w.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!wa.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(Va){var t=document.body,n=t&&t.style;if(r&&Ua.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&qa<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(Ha).forEach((function(e){var t=Ha[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Ya()&&(t.addEventListener("touchmove",Ba,Ga),e&&(e.addEventListener("touchstart",za,Ga),e.addEventListener("touchmove",Wa,Ga))),qa+=1}}),[r]),c=(0,w.useCallback)((function(e){if(Va){var t=document.body,n=t&&t.style;qa=Math.max(qa-1,0),r&&qa<1&&Ua.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Ya()&&(t.removeEventListener("touchmove",Ba,Ga),e&&(e.removeEventListener("touchstart",za,Ga),e.removeEventListener("touchmove",Wa,Ga)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,Oa.tZ)(w.Fragment,null,n&&(0,Oa.tZ)("div",{onClick:Ka,css:Xa}),t((function(e){o(e),a(e)})))}var Qa={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ja=function(e){var t=e.name,n=e.onFocus;return(0,Oa.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Qa,value:"",onChange:function(){}})},ei={clearIndicator:wa.a,container:wa.b,control:wa.d,dropdownIndicator:wa.e,group:wa.g,groupHeading:wa.f,indicatorsContainer:wa.i,indicatorSeparator:wa.h,input:wa.j,loadingIndicator:wa.l,loadingMessage:wa.k,menu:wa.m,menuList:wa.n,menuPortal:wa.o,multiValue:wa.p,multiValueLabel:wa.q,multiValueRemove:wa.t,noOptionsMessage:wa.u,option:wa.v,placeholder:wa.w,singleValue:wa.x,valueContainer:wa.y};var ti,ni={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ri={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,wa.z)(),captureMenuScroll:!(0,wa.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,ia.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:Za,trim:!0,matchFrom:"any"},ti),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Na(t):t,u=i?Na(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Aa(s),u=Ia(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,wa.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oi(e,t,n,r){return{type:"option",data:t,isDisabled:li(e,t,n),isSelected:fi(e,t,n),label:si(e,t),value:ui(e,t),index:r}}function ai(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return oi(e,n,t,r)})).filter((function(t){return ci(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=oi(e,n,t,r);return ci(e,a)?a:void 0})).filter(wa.K)}function ii(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ba(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ci(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!di(e)||!a)&&pi(e,{label:i,value:c,data:o},r)}var si=function(e,t){return e.getOptionLabel(t)},ui=function(e,t){return e.getOptionValue(t)};function li(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function fi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ui(e,t);return n.some((function(t){return ui(e,t)===r}))}function pi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var di=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},hi=1,mi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pa(e,t)}(a,e);var t,n,r,o=ga(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue((0,wa.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,wa.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,wa.B)([].concat(ba(i),[e])),"select-option",e):t.setValue((0,wa.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,wa.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,wa.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,wa.D)(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return wa.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return si(t.props,e)},t.getOptionValue=function(e){return ui(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=ei[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,wa.F)(t.props)},t.buildCategorizedOptions=function(){return ai(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ii(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,ia.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,wa.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return di(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++hi),t.state.selectValue=(0,wa.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,wa.H)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return ii(ai(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,wa.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,ia.Z)((0,ia.Z)((0,ia.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,wa.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,wa.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ni):(0,ia.Z)((0,ia.Z)({},ni),this.props.theme):ni}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return li(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return fi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return pi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,ia.Z)((0,ia.Z)((0,ia.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,(0,la.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(Fa,(0,la.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:wa.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:w.createElement(c,(0,la.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,(0,la.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=g[0];return w.createElement(i,(0,la.Z)({},s,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,la.Z)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,(0,la.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,(0,la.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,la.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,j=p.noOptionsMessage,_=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,T=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return w.createElement(u,(0,la.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return w.createElement(n,(0,la.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;C=w.createElement(c,l,D)}else{var R=j({inputValue:h});if(null===R)return null;C=w.createElement(s,l,R)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=w.createElement(wa.M,(0,la.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return w.createElement(o,(0,la.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),w.createElement($a,{captureEnabled:d,onTopArrive:_,onBottomArrive:E,lockEnabled:S},(function(t){return w.createElement(a,(0,la.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return k||"fixed"===x?w.createElement(i,(0,la.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement(Ja,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return w.createElement(_a,(0,la.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return w.createElement(r,(0,la.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),w.createElement(t,(0,la.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),w.createElement(o,(0,la.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,(0,la.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&fa(t.prototype,n),r&&fa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);mi.defaultProps=ri;i(66751),i(30314),i(73469);var gi=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,sa.Z)(e,ua),m=(0,w.useState)(void 0!==c?c:n),g=(0,ca.Z)(m,2),v=g[0],y=g[1],b=(0,w.useState)(void 0!==s?s:o),O=(0,ca.Z)(b,2),x=O[0],k=O[1],S=(0,w.useState)(void 0!==d?d:i),P=(0,ca.Z)(S,2),j=P[0],_=P[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),_(e)}),[u]),C=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),T=(0,w.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),k(!1)}),[f]),R=void 0!==c?c:v,M=void 0!==s?s:x,I=void 0!==d?d:j;return(0,ia.Z)((0,ia.Z)({},h),{},{inputValue:R,menuIsOpen:M,onChange:E,onInputChange:C,onMenuClose:D,onMenuOpen:T,value:I})}(e);return w.createElement(mi,(0,la.Z)({ref:t},n))})),vi=i(80470);function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const wi=(0,f.ZP)((function(e){var t;return(0,Ce.jsx)("span",bi(bi({},e.innerProps),{},{children:(0,Ce.jsx)(vi.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var Oi=i(95497);function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Si=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ce.jsx)(wa.c.DropdownIndicator,ki(ki({},e),{},{children:(0,Ce.jsx)(Oi.M6,{children:(0,Ce.jsx)(vi.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var Pi,ji,_i;function Ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ei(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ti=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Di=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ri=function(e,t){return function(n){n.stopPropagation(),e(t)}},Mi=function(e){e.stopPropagation()};const Ii=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,Ce.jsx)(Oi.HO,{isTopAligned:p,children:(0,Ce.jsxs)(wa.c.IndicatorsContainer,Ci(Ci({},e),{},{children:[e.children,n&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Mi,onMouseDown:Di(n,u),children:Pi||(Pi=(0,Ce.jsx)(vi.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Mi,onMouseDown:Ti(r,f,u),children:ji||(ji=(0,Ce.jsx)(vi.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,Ce.jsx)("span",{onTouchEnd:Mi,onMouseDown:Ri(o,u),children:_i||(_i=(0,Ce.jsx)(vi.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Ai;const Ni=function(){return Ai||(Ai=(0,Ce.jsx)("span",{children:(0,Ce.jsx)(Vo.Z,{size:"1.8rem"})}))};var Zi=i(15315);function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ui=function(e){var t=e.selectProps,n=e.children;return(0,Ce.jsx)(Oi._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ce.jsx)("div",{ref:e})},renderElement:function(r){return(0,Ce.jsx)("div",{ref:r,className:Zi.c,children:(0,Ce.jsx)(Oi.l2,Fi(Fi({},Uo()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Wi=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ce.jsxs)(wa.c.MenuList,Bi(Bi({},e),{},{className:"MenuList",children:[n,r&&(0,Ce.jsx)(Oi.OA,{children:o})]}))};var zi=i(76791);function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const qi=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=ot()(a,t.key,null),u=(0,Ce.jsx)("span",Vi(Vi({},n),{},{children:r})),l=c?(0,Ce.jsx)(Oi.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ce.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,Ce.jsx)(zi.Z,{content:s?(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:be.Z.sanitizeHtml(s)}}):null,children:(0,Ce.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,Ce.jsx)(Oi.B1,{children:l})};var Gi=i(47037),Ki=i.n(Gi),Xi=i(14176),$i=i.n(Xi);function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ec=["linkComp"],tc=function(e,t){var n=ye.Z.difference(e,t),r=$i()(Uo()(n,ec),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},nc=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Ki()(n)?(0,Ce.jsx)(Oi.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ce.jsx)(t,{entityKey:n,children:r})}):r}),tc);nc.propTypes={children:o().node,entityKey:o().any,linkComp:o().func};const rc=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=ot()(a,t.key,null);return(0,Ce.jsx)(wa.c.SingleValue,Ji(Ji({},e),{},{children:(0,Ce.jsx)(Oi.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,Ce.jsx)(zi.Z,{content:s?(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:be.Z.sanitizeHtml(s)}}):null,children:(0,Ce.jsx)(nc,{linkComp:c,entityKey:t.key,children:o})})})}))};function oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ac=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const ic=function(e){var t=e.selectProps,r=e.hasValue,o=e.children,a=t.isMulti,i=t.hasAdvancedSearch,c=t.hasDocsTreeSearch,s=t.isDisabled;if(!(a&&(i||c)))return(0,Ce.jsx)(wa.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e));var u=w.Children.map(o,(function(e){return ac(e)?e:null})),l=w.Children.map(o,(function(e){return ac(e)?null:e})),f=s&&r;return(0,Ce.jsxs)(Ce.Fragment,{children:[!f&&(0,Ce.jsx)(Ce.Fragment,{children:u}),(0,Ce.jsx)(Oi.eQ,{children:l})]})};function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const uc=(0,x.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),S=(0,w.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},j=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),E=H()(_,2),C=E[0],T=E[1],D=(0,w.useState)(j()),R=H()(D,2),M=R[0],I=R[1],A=(0,w.useState)(!1),N=H()(A,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},U=(0,w.useCallback)(m||function(){},[]),B=(0,w.useCallback)(aa()(U,800,{trailing:!0}),[]),W=Boolean(d),z=Boolean(p),Y=Boolean(O);return(0,Ce.jsx)(Oi.sP,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(P()),I(j())}),0)},children:(0,Ce.jsx)(Oi.RU,{ref:S,children:(0,Ce.jsx)(gi,sc(sc({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:wi,LoadingIndicator:Ni,DropdownIndicator:Si,IndicatorsContainer:Ii,IndicatorSeparator:null,Menu:Ui,MenuList:Wi,MultiValueLabel:qi,SingleValue:rc,ValueContainer:ic},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ce.jsx)(l,sc({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&F(y)},options:xe()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault()):"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,Oi.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const lc=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,Ce.jsx)(uc,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:ra()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var fc,pc=x.ZP.div.withConfig({displayName:"StyledBoolEdit"})(fc||(fc=b()(["\n margin: 5px 0;\n"])));const dc=function(e){return(0,Ce.jsx)(pc,{children:(0,Ce.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var hc,mc;function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gc(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yc=x.ZP.div.withConfig({displayName:"StyledOption"})(hc||(hc=b()(["\n margin: "," 0;\n"])),nt.Z.space(-1.4)),bc=x.ZP.span.withConfig({displayName:"StyledLabel"})(mc||(mc=b()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,tt.Z)(),nt.Z.space(-1.5)),wc={single:"radio",multiple:"checkbox"},Oc={single:{checked:!1},multiple:{}},xc=function(e,t){return t?(0,Ce.jsx)(et.Z,{value:e}):e},kc=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,s=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ce.jsxs)(yc,{children:[!c&&(0,Ce.jsx)("input",{name:t,type:wc[s],checked:a||!1,onChange:l,id:n,disabled:i}),(0,Ce.jsx)(bc,{children:o||xc(r,u)})]})};const Sc=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return vc(vc({},n),n.id===t.target.id?{checked:t.target.checked}:Oc[e.options.selectionType])}));e.onChange({options:n})}};return(0,Ce.jsx)(Ce.Fragment,{children:e.value.options.map((function(n){return(0,Ce.jsx)(kc,{groupName:e.id,id:n.id,label:n.label,labelComponent:n.labelComponent,checked:n.checked,immutable:e.immutable||n.immutable,hideCheckbox:n.hideCheckbox,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var Pc=i(23279),jc=i.n(Pc);function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Cc=(0,w.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Tc=function(e){return(0,Ce.jsx)(w.Suspense,{fallback:(t=e.value,(0,Ce.jsx)("div",{children:(0,Ce.jsx)("p",{children:t})})),children:(0,Ce.jsx)(Cc,Ec({},e))});var t};var Dc,Rc=x.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Dc||(Dc=b()(["\n margin-top: ",";\n"])),nt.Z.space(-1.5));const Mc=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,Ce.jsx)(Rc,{children:(0,Ce.jsx)(Tc,{value:t,onChange:jc()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})};var Ic=i(86896),Ac=i(23842),Nc=i(93379),Zc=i.n(Nc),Lc=i(7795),Fc=i.n(Lc),Uc=i(90569),Hc=i.n(Uc),Bc=i(3565),Wc=i.n(Bc),zc=i(19216),Yc=i.n(zc),Vc=i(44589),qc=i.n(Vc),Gc=i(16721),Kc={};Kc.styleTagTransform=qc(),Kc.setAttributes=Wc(),Kc.insert=Hc().bind(null,"head"),Kc.domAPI=Fc(),Kc.insertStyleElement=Yc();Zc()(Gc.Z,Kc);Gc.Z&&Gc.Z.locals&&Gc.Z.locals;var Xc=i(9198),$c=i.n(Xc),Qc=(Math.pow(10,8),6e4),Jc=36e5,es=i(13882),ts=i(83946);var ns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rs=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,os=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,as=/^([+-])(\d{2})(?::?(\d{2}))?$/;function is(e){var t,n={},r=e.split(ns.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],ns.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ns.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=ns.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function cs(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function ss(e,t){if(null===t)return new Date(NaN);var n=e.match(rs);if(!n)return new Date(NaN);var r=!!n[4],o=us(n[1]),a=us(n[2])-1,i=us(n[3]),c=us(n[4]),s=us(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ds[t]||(hs(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(hs(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function us(e){return e?parseInt(e):1}function ls(e){var t=e.match(os);if(!t)return NaN;var n=fs(t[1]),r=fs(t[2]),o=fs(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*Jc+r*Qc+1e3*o:NaN}function fs(e){return e&&parseFloat(e.replace(",","."))||0}function ps(e){if("Z"===e)return 0;var t=e.match(as);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*Jc+o*Qc):NaN}var ds=[31,null,31,30,31,30,31,31,30,31,30,31];function hs(e){return e%400==0||e%4==0&&e%100!=0}var ms,gs,vs,ys=x.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ms||(ms=b()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),bs=x.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(gs||(gs=b()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),cn,un,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ws=x.ZP.input.withConfig({displayName:"StyledTimeInput"})(vs||(vs=b()(["\n &&&& {\n ","\n }\n"])),un),Os=i(37042),xs=i(4543),ks=i(39880),Ss=i(85817),Ps=i(39159),js=i(19013);function _s(e){(0,es.Z)(1,arguments);var t=(0,js.Z)(e),n=t.getSeconds();return n}var Es=i(86);function Cs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ts(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cs(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var Ds=i(44941),Rs=i(29558);function Ms(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Is=i(97621),As=i(24262),Ns=i(5267);function Zs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ls(e,t){return(Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fs(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ls(e,t)}function Us(e){return(Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hs(e,t){if(t&&("object"===(0,Es.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zs(e)}function Bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Us(e);if(t){var o=Us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hs(this,n)}}function Ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zs(e){var t=function(e,t){if("object"!==(0,Es.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,Es.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,Es.Z)(t)?t:String(t)}function Ys(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,zs(r.key),r)}}function Vs(e,t,n){return t&&Ys(e.prototype,t),n&&Ys(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qs(e,t,n){return(t=zs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gs=function(){function e(){Ws(this,e),qs(this,"priority",void 0),qs(this,"subPriority",0)}return Vs(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ks=function(e){Fs(n,e);var t=Bs(n);function n(e,r,o,a,i){var c;return Ws(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return Vs(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Gs),Xs=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",10),qs(Zs(e),"subPriority",-1),e}return Vs(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Gs),$s=function(){function e(){Ws(this,e),qs(this,"incompatibleTokens",void 0),qs(this,"priority",void 0),qs(this,"subPriority",void 0)}return Vs(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Ks(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Qs=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",140),qs(Zs(e),"incompatibleTokens",["R","u","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Js=/^(1[0-2]|0?\d)/,eu=/^(3[0-1]|[0-2]?\d)/,tu=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,nu=/^(5[0-3]|[0-4]?\d)/,ru=/^(2[0-3]|[0-1]?\d)/,ou=/^(2[0-4]|[0-1]?\d)/,au=/^(1[0-1]|0?\d)/,iu=/^(1[0-2]|0?\d)/,cu=/^[0-5]?\d/,su=/^[0-5]?\d/,uu=/^\d/,lu=/^\d{1,2}/,fu=/^\d{1,3}/,pu=/^\d{1,4}/,du=/^-?\d+/,hu=/^-?\d/,mu=/^-?\d{1,2}/,gu=/^-?\d{1,3}/,vu=/^-?\d{1,4}/,yu=/^([+-])(\d{2})(\d{2})?|Z/,bu=/^([+-])(\d{2})(\d{2})|Z/,wu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ou=/^([+-])(\d{2}):(\d{2})|Z/,xu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ku(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Su(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Pu(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Jc+a*Qc+1e3*i),rest:t.slice(n[0].length)}}function ju(e){return Su(du,e)}function _u(e,t){switch(e){case 1:return Su(uu,t);case 2:return Su(lu,t);case 3:return Su(fu,t);case 4:return Su(pu,t);default:return Su(new RegExp("^\\d{1,"+e+"}"),t)}}function Eu(e,t){switch(e){case 1:return Su(hu,t);case 2:return Su(mu,t);case 3:return Su(gu,t);case 4:return Su(vu,t);default:return Su(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Cu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tu(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function Du(e){return e%400==0||e%4==0&&e%100!=0}var Ru=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",130),qs(Zs(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ku(_u(4,e),r);case"yo":return ku(n.ordinalNumber(e,{unit:"year"}),r);default:return ku(_u(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Tu(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Mu=i(7651),Iu=i(59025),Au=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",130),qs(Zs(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ku(_u(4,e),r);case"Yo":return ku(n.ordinalNumber(e,{unit:"year"}),r);default:return ku(_u(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,Mu.Z)(e,r);if(n.isTwoDigitYear){var a=Tu(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Iu.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Iu.Z)(e,r)}}]),n}($s),Nu=i(66979),Zu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",130),qs(Zs(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t){return Eu("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,Nu.Z)(r)}}]),n}($s),Lu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",130),qs(Zs(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t){return Eu("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Fu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",120),qs(Zs(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return _u(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Uu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",120),qs(Zs(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return _u(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Hu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),qs(Zs(e),"priority",110),e}return Vs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return ku(Su(Js,e),r);case"MM":return ku(_u(2,e),r);case"Mo":return ku(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Bu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",110),qs(Zs(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return ku(Su(Js,e),r);case"LL":return ku(_u(2,e),r);case"Lo":return ku(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}($s),Wu=i(23324);var zu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",100),qs(Zs(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Su(nu,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Iu.Z)(function(e,t,n){(0,es.Z)(2,arguments);var r=(0,js.Z)(e),o=(0,ts.Z)(t),a=(0,Wu.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}($s),Yu=i(49702);var Vu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",100),qs(Zs(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Su(nu,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Nu.Z)(function(e,t){(0,es.Z)(2,arguments);var n=(0,js.Z)(e),r=(0,ts.Z)(t),o=(0,Yu.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}($s),qu=[31,28,31,30,31,30,31,31,30,31,30,31],Gu=[31,29,31,30,31,30,31,31,30,31,30,31],Ku=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"subPriority",1),qs(Zs(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Su(eu,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){var n=Du(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Gu[r]:t>=1&&t<=qu[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}($s),Xu=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"subpriority",1),qs(Zs(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Su(tu,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return Du(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}($s),$u=i(84314);function Qu(e,t,n){var r,o,a,i,c,s,u,l;(0,es.Z)(2,arguments);var f=(0,$u.j)(),p=(0,ts.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,js.Z)(e),h=(0,ts.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var Ju=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}($s),el=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ku(_u(t.length,e),o);case"eo":return ku(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}($s),tl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ku(_u(t.length,e),o);case"co":return ku(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Qu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}($s);var nl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",90),qs(Zs(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return _u(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ku(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ku(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ku(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ku(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,es.Z)(2,arguments);var n=(0,ts.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,js.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}($s),rl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",80),qs(Zs(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Cu(n),0,0,0),e}}]),n}($s),ol=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",80),qs(Zs(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Cu(n),0,0,0),e}}]),n}($s),al=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",80),qs(Zs(e),"incompatibleTokens",["a","b","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Cu(n),0,0,0),e}}]),n}($s),il=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",70),qs(Zs(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Su(iu,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}($s),cl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",70),qs(Zs(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Su(ru,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}($s),sl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",70),qs(Zs(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Su(au,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}($s),ul=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",70),qs(Zs(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Su(ou,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}($s),ll=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",60),qs(Zs(e),"incompatibleTokens",["t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Su(cu,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}($s),fl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",50),qs(Zs(e),"incompatibleTokens",["t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Su(su,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return _u(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}($s),pl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",30),qs(Zs(e),"incompatibleTokens",["t","T"]),e}return Vs(n,[{key:"parse",value:function(e,t){return ku(_u(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}($s),dl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",10),qs(Zs(e),"incompatibleTokens",["t","T","x"]),e}return Vs(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Pu(yu,e);case"XX":return Pu(bu,e);case"XXXX":return Pu(wu,e);case"XXXXX":return Pu(xu,e);case"XXX":default:return Pu(Ou,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}($s),hl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",10),qs(Zs(e),"incompatibleTokens",["t","T","X"]),e}return Vs(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Pu(yu,e);case"xx":return Pu(bu,e);case"xxxx":return Pu(wu,e);case"xxxxx":return Pu(xu,e);case"xxx":default:return Pu(Ou,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}($s),ml=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",40),qs(Zs(e),"incompatibleTokens","*"),e}return Vs(n,[{key:"parse",value:function(e){return ju(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}($s),gl=function(e){Fs(n,e);var t=Bs(n);function n(){var e;Ws(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return qs(Zs(e=t.call.apply(t,[this].concat(o))),"priority",20),qs(Zs(e),"incompatibleTokens","*"),e}return Vs(n,[{key:"parse",value:function(e){return ju(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}($s),vl={G:new Qs,y:new Ru,Y:new Au,R:new Zu,u:new Lu,Q:new Fu,q:new Uu,M:new Hu,L:new Bu,w:new zu,I:new Vu,d:new Ku,D:new Xu,E:new Ju,e:new el,c:new tl,i:new nl,a:new rl,b:new ol,B:new al,h:new il,H:new cl,K:new sl,k:new ul,m:new ll,s:new fl,S:new pl,X:new dl,x:new hl,t:new ml,T:new gl},yl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wl=/^'([^]*?)'?$/,Ol=/''/g,xl=/\S/,kl=/[a-zA-Z]/;function Sl(e,t,n,r){var o,a,i,c,s,u,l,f,p,d,h,m,g,v,y,b,w,O;(0,es.Z)(3,arguments);var x=String(e),k=String(t),S=(0,$u.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:Ds.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,ts.Z)(null!==(i=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,ts.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,js.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},T=[new Xs],D=k.match(bl).map((function(e){var t=e[0];return t in Is.Z?(0,Is.Z[t])(e,P.formatLong):e})).join("").match(yl),R=[],M=Ts(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,Ns.Do)(t)||(0,Ns.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,Ns.Iu)(t)||(0,Ns.qp)(t,k,e);var n=t[0],o=vl[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=R.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};T.push(c.setter),x=c.rest}else{if(n.match(kl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=Pl(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(E=M.n()).done;){var A=I();if("object"===(0,Es.Z)(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&xl.test(x))return new Date(NaN);var N=T.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,js.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,Rs.Z)(Z,(0,As.Z)(Z)),U={},H=Ts(N);try{for(H.s();!(L=H.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,U,C);Array.isArray(W)?(F=W[0],Ms(U,W[1])):F=W}}catch(e){H.e(e)}finally{H.f()}return F}function Pl(e){return e.match(wl)[1].replace(Ol,"'")}var jl=i(49599);function _l(e,t,n){return(0,es.Z)(2,arguments),(0,jl.Z)(Sl(e,t,new Date,n))}var El="react-datepicker-time__input",Cl="react-datepicker__day",Tl="react-datepicker__input",Dl=function(e){return e.classList.contains(Cl)},Rl=function(e){return e.classList.contains(El)},Ml=function(e){return e.classList.contains(Tl)},Il=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,Os.Z)((0,xs.Z)((0,ks.Z)(e,c),a),r)},Al=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Cl,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Nl=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Zl=function(e){var t=function(e,t){var n;(0,es.Z)(1,arguments);var r=(0,ts.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=is(e);if(a.date){var i=cs(a.date,r);o=ss(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(a.time&&(u=ls(a.time),isNaN(u)))return new Date(NaN);if(!a.timezone){var l=new Date(s+u),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=ps(a.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}(e);return isNaN(t)?null:t},Ll=function(e){return e?e.toISOString():null};const Fl=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Zl:s,l=n.dateToValue,f=void 0===l?Ll:l,p=(0,w.useRef)(null),d=(0,w.useState)(!1),h=H()(d,2),m=h[0],g=h[1],v=(0,w.useState)(!1),y=H()(v,2),b=y[0],O=y[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,w.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),_(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=j(!1);if(n){var r=x||new Date,o=t?Il(n,{hour:(0,Ss.Z)(r),minute:(0,Ps.Z)(r),second:_s(r)}):n;T(o,e)}},T=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return _l(s,e)})),l=function(e){(0,es.Z)(1,arguments);var t=(0,js.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,Ss.Z)(n)!==(0,Ss.Z)(l)||(0,Ps.Z)(n)!==(0,Ps.Z)(l);(i&&!d||u)&&c&&(n=Ac.Z.setCurrentTime(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Nl(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(Ml(e.target))setTimeout((function(){return P()}),0);else if(Rl(e.target)){var t,n;_(x||j(!0)),Al(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else Dl(e.target)&&P();else Ml(e.target)&&m?(C(e),setTimeout((function(){return P()}),0)):Rl(e.target)?P():Dl(e.target)&&(c?(C(e,!0),_(null),O(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(El));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(C(e),P()));var r;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Nl(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===j(!1)){var o,a;_(x||j(!0)),Al(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},R=function(){var e;g((function(e){return!e})),_(null),Nl(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return P(),!0},onClickOutside:P,onInputClick:R,onKeyDown:D,onChange:T,onCalendarOpen:function(){_(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:Tl},timeInputProps:{onKeyDown:D,className:El,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:R,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Ul=i(49546),Hl="HH:mm:ss",Bl="HH:mm",Wl=function(e){return _l(e,Bl)},zl=function(e){var t=function(e){return _l(e,Hl)?Sl(e,Hl,new Date):_l(e,Bl)?Sl(e,Bl,new Date):_l(e,"HH:")?Sl(e,"HH:",new Date):_l(e,"H")?Sl(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Ul.Z)(e,Bl)}(t):""};const Yl=function(e,t){var n=zl(e),r=(0,w.useState)(n),o=H()(r,2),a=o[0],i=o[1],c=(0,w.useRef)(a),s=Ut.Z.usePrevious(n);(0,w.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),f=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Wl(n)||t(n)}},onBlur:function(){if(a!==n){var e=zl(a);e&&Wl(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var Vl=["value","onChange","onKeyDown"];function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,Xc.registerLocale)("en",Ac.Z.getDateFnsLocale("en")),(0,Xc.registerLocale)("en-US",Ac.Z.getDateFnsLocale("en")),(0,Xc.registerLocale)("de-CH",Ac.Z.getDateFnsLocale("de-CH")),(0,Xc.registerLocale)("de",Ac.Z.getDateFnsLocale("de")),(0,Xc.registerLocale)("fr",Ac.Z.getDateFnsLocale("fr")),(0,Xc.registerLocale)("fr-CH",Ac.Z.getDateFnsLocale("fr")),(0,Xc.registerLocale)("it",Ac.Z.getDateFnsLocale("it")),(0,Xc.registerLocale)("it-CH",Ac.Z.getDateFnsLocale("it")),(0,Xc.setDefaultLocale)("de");var Kl=function(e){var t=e.onChange,n=e.label;return(0,Ce.jsx)(Wt.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Xl=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=ae()(e,Vl),a=Yl(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ce.jsx)(ws,Gl(Gl(Gl({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},$l={strategy:"fixed"};const Ql=(0,x.Zz)((0,f.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,s(e)},P=Fl(r,S,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),j=P.reactDatePickerProps,_=P.timeInputProps,E=P.clearButtonProps,C=P.calendarButtonProps;return(0,Ce.jsx)(ys,{immutable:t,id:n,tabIndex:"-1",children:(0,Ce.jsxs)(bs,{immutable:t,ref:O,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,Ce.jsx)($c(),Gl(Gl({},j),{},{disabled:t,dateFormat:[].concat(xe()(m),xe()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,Ce.jsx)(Xl,Gl({},_)),timeInputLabel:"",popperProps:$l,todayButton:(0,Ce.jsx)(Kl,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),k&&(0,Ce.jsx)(vi.Z,Gl({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,Ce.jsx)(vi.Z,Gl({icon:"calendar",tabIndex:-1},C))]})})})));function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ef=function(e){var t=e.onChange,r=e.options,o=e.id,a=e.value,i=e.immutable,c=e.events,s=e.placeholder,u=(0,Ic.Z)(),l=(null==r?void 0:r.datePickerOptions)||{},f="".concat(Ac.Z.getLocalizedDateFormat(u.locale)),p=Ac.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,Ac.Z.useTwoDigitYear(f),Ac.Z.useTwoDigitYear(p)];return(0,Ce.jsx)(Ql,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:o,value:a,onChange:t,dateFormats:d,hasTime:!1,immutable:i,placeholder:s,events:c},l))};function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const nf=(0,f.ZP)((function(e){var t=e.onChange,r=e.options,o=e.value,a=e.immutable,i=e.placeholder,c=(0,Ic.Z)(),s=(null==r?void 0:r.datePickerOptions)||{},u="".concat(Ac.Z.getLocalizedDateTimeFormat(c.locale)),l="".concat(Ac.Z.getLocalizedDateFormat(c.locale)),f=Ac.Z.getLocalizedDateTimeFormatWithoutPunctuation(c.locale),p=[u,f,Ac.Z.useTwoDigitYear(u),Ac.Z.useTwoDigitYear(f)],d=Ac.Z.getLocalizedDateFormatWithoutPunctuation(c.locale),h=[l,d,Ac.Z.useTwoDigitYear(l),Ac.Z.useTwoDigitYear(d)];return(0,Ce.jsx)(Ql,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({value:o,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:a,placeholder:i},s))}));var rf=i(18446),of=i.n(rf);function af(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function cf(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function sf(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function uf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var lf=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ff(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=lf.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pf=[".DS_Store","Thumbs.db"];function df(e){return"object"==typeof e&&null!==e}function hf(e){return yf(e.target.files).map((function(e){return ff(e)}))}function mf(e){return af(this,void 0,void 0,(function(){return cf(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return ff(e)}))]}}))}))}function gf(e,t){return af(this,void 0,void 0,(function(){var n;return cf(this,(function(r){switch(r.label){case 0:return e.items?(n=yf(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(bf))]):[3,2];case 1:return[2,vf(wf(r.sent()))];case 2:return[2,vf(yf(e.files).map((function(e){return ff(e)})))]}}))}))}function vf(e){return e.filter((function(e){return-1===pf.indexOf(e.name)}))}function yf(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function bf(e){if("function"!=typeof e.webkitGetAsEntry)return Of(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?kf(t):Of(e)}function wf(e){return e.reduce((function(e,t){return uf(uf([],sf(e),!1),sf(Array.isArray(t)?wf(t):[t]),!1)}),[])}function Of(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ff(t);return Promise.resolve(n)}function xf(e){return af(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,e.isDirectory?kf(e):Sf(e)]}))}))}function kf(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return af(a,void 0,void 0,(function(){var a,i,c;return cf(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(xf)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Sf(e){return af(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ff(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Pf=i(58363);function jf(e){return function(e){if(Array.isArray(e))return Rf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Df(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){Cf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||Df(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Df(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mf="file-invalid-type",If="file-too-large",Af="file-too-small",Nf="too-many-files",Zf=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Mf,message:"File type must be ".concat(t)}},Lf=function(e){return{code:If,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Ff=function(e){return{code:Af,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Uf={code:Nf,message:"Too many files"};function Hf(e,t){var n="application/x-moz-file"===e.type||(0,Pf.Z)(e,t);return[n,n?null:Zf(t)]}function Bf(e,t,n){if(Wf(e.size))if(Wf(t)&&Wf(n)){if(e.size>n)return[!1,Lf(n)];if(e.size<t)return[!1,Ff(t)]}else{if(Wf(t)&&e.size<t)return[!1,Ff(t)];if(Wf(n)&&e.size>n)return[!1,Lf(n)]}return[!0,null]}function Wf(e){return null!=e}function zf(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=Tf(Hf(e,n),1)[0],a=Tf(Bf(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Yf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Vf(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function qf(e){e.preventDefault()}function Gf(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Kf(e){return-1!==e.indexOf("Edge/")}function Xf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Gf(e)||Kf(e)}function $f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Yf(e)&&t&&t.apply(void 0,[e].concat(r)),Yf(e)}))}}function Qf(){return"showOpenFilePicker"in window}function Jf(e){return Wf(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=Tf(e,2),n=t[0],r=t[1],o=!0;return rp(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(op)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Tf(t,2),r=n[0],o=n[1];return Ef(Ef({},e),{},Cf({},r,o))}),{})}]:e}function ep(e){if(Wf(e))return Object.entries(e).reduce((function(e,t){var n=Tf(t,2),r=n[0],o=n[1];return[].concat(jf(e),[r],jf(o))}),[]).filter((function(e){return rp(e)||op(e)})).join(",")}function tp(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function np(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function rp(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function op(e){return/^.*\.[\w]+$/.test(e)}var ap=["children"],ip=["open"],cp=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],sp=["refKey","onChange","onClick"];function up(e){return function(e){if(Array.isArray(e))return pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||fp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fp(e,t){if(e){if("string"==typeof e)return pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(e,t):void 0}}function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach((function(t){mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vp=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=hp(hp({},yp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,j=t.validator,_=(0,w.useMemo)((function(){return ep(n)}),[n]),E=(0,w.useMemo)((function(){return Jf(n)}),[n]),C=(0,w.useMemo)((function(){return"function"==typeof g?g:xp}),[g]),T=(0,w.useMemo)((function(){return"function"==typeof m?m:xp}),[m]),D=(0,w.useRef)(null),R=(0,w.useRef)(null),M=lp((0,w.useReducer)(Op,wp),2),I=M[0],A=M[1],N=I.isFocused,Z=I.isFileDialogActive,L=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Qf()),F=function(){!L.current&&Z&&setTimeout((function(){R.current&&(R.current.files.length||(A({type:"closeDialog"}),T()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[R,Z,T,L]);var U=(0,w.useRef)([]),H=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",qf,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",qf),document.removeEventListener("drop",H))}}),[D,b]),(0,w.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var B=(0,w.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(up(U.current),[e.target]),Vf(e)&&Promise.resolve(o(e)).then((function(t){if(!Yf(e)||S){var n=t.length,r=n>0&&zf({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:j});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,_,i,a,c,s,j]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Vf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),Y=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vf(e)&&l&&l(e))}),[D,l,S]),V=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=lp(Hf(e,_),2),o=t[0],c=t[1],s=lp(Bf(e,i,a),2),u=s[0],l=s[1],f=j?j(e):null;if(o&&u&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Uf]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[A,c,_,i,a,s,p,d,h,j]),q=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Vf(e)&&Promise.resolve(o(e)).then((function(t){Yf(e)&&!S||V(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,V,B,S]),G=(0,w.useCallback)((function(){if(L.current){A({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),A({type:"closeDialog"})})).catch((function(e){tp(e)?(T(e),A({type:"closeDialog"})):np(e)?(L.current=!1,R.current?(R.current.value=null,R.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else R.current&&(A({type:"openDialog"}),C(),R.current.value=null,R.current.click())}),[A,C,T,v,V,B,E,c]),K=(0,w.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,w.useCallback)((function(){A({type:"focus"})}),[]),$=(0,w.useCallback)((function(){A({type:"blur"})}),[]),Q=(0,w.useCallback)((function(){O||(Xf()?setTimeout(G,0):G())}),[O,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=gp(e,cp);return hp(hp(mp({onKeyDown:ee($f(a,K)),onFocus:ee($f(i,X)),onBlur:ee($f(c,$)),onClick:J($f(s,Q)),onDragEnter:te($f(u,W)),onDragOver:te($f(l,z)),onDragLeave:te($f(f,Y)),onDrop:te($f(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||x?{}:{tabIndex:0}),d)}}),[D,K,X,$,Q,W,z,Y,q,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=gp(e,sp);return hp(hp({},mp({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J($f(r,q)),onClick:J($f(o,oe)),tabIndex:-1},n,R)),a)}}),[R,n,c,q,r]);return hp(hp({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:R,open:J(G)})}(gp(e,ap)),o=r.open,a=gp(r,ip);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),O().createElement(w.Fragment,null,n(hp(hp({},a),{},{open:o})))}));vp.displayName="Dropzone";var yp={disabled:!1,getFilesFromEvent:function(e){return af(this,void 0,void 0,(function(){return cf(this,(function(t){return df(e)&&df(e.dataTransfer)?[2,gf(e.dataTransfer,e.type)]:function(e){return df(e)&&df(e.target)}(e)?[2,hf(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,mf(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};vp.defaultProps=yp,vp.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};const bp=vp;var wp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Op(e,t){switch(t.type){case"focus":return hp(hp({},e),{},{isFocused:!0});case"blur":return hp(hp({},e),{},{isFocused:!1});case"openDialog":return hp(hp({},wp),{},{isFileDialogActive:!0});case"closeDialog":return hp(hp({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return hp(hp({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return hp(hp({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return hp({},wp);default:return e}}function xp(){}var kp,Sp,Pp,jp,_p,Ep,Cp,Tp,Dp,Rp=i(69829),Mp=x.ZP.section.withConfig({displayName:"StyledSection"})(kp||(kp=b()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ip=x.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(Sp||(Sp=b()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),dn.Z,nt.Z.space(-2)),Ap=x.ZP.div.withConfig({displayName:"StyledDropzone"})(Pp||(Pp=b()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),dn.Z,Se.FS.color("backgroundItemHover")),Np=x.ZP.div.withConfig({displayName:"StyledUploadInput"})(jp||(jp=b()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,tt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Se.FS.color("paper"),(function(e){return e.immutable?at.shade2(e):at.base(e)}),nt.Z.space(-2),dn.Z,nt.Z.space(-3.1),nt.Z.space(-1.5)),Zp=x.ZP.div.withConfig({displayName:"StyledUploadProgress"})(_p||(_p=b()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),nt.Z.space(-2)),Lp=(0,x.ZP)(Rp.Fe).withConfig({displayName:"StyledUploadProgressText"})(Ep||(Ep=b()(["\n && {\n ","\n }\n"])),(0,tt.Z)({fontSize:nt.Z.font(-1)})),Fp=x.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Cp||(Cp=b()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),nt.Z.space(-2)),Up=x.ZP.div.withConfig({displayName:"StyledView"})(Tp||(Tp=b()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),nt.Z.space(-2));function Hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Wp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ce.jsxs)(Np,{immutable:n,children:[(0,Ce.jsx)(bp,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,Ce.jsx)(Mp,{children:(0,Ce.jsxs)(Ap,Bp(Bp({},t()),{},{children:[(0,Ce.jsx)("input",Bp({},n())),Dp||(Dp=(0,Ce.jsx)(Wt.Z,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ce.jsx)(Wt.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var zp=i(73906),Yp=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const Vp=function(e){var t=e.file,n=e.text;return(0,Ce.jsxs)(Zp,{children:[(0,Ce.jsx)(zp.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ce.jsxs)(Fp,{children:[(0,Ce.jsx)(Vo.Z,{position:we.Z.position.PREPEND}),(0,Ce.jsxs)(Lp,{children:[n||"uploading"," (",Yp(t.size),")"]})]})]})};var qp=i(28247);function Gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Xp=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ce.jsxs)(Up,{className:"StyledView",children:[(0,Ce.jsx)(zp.Z,Kp(Kp({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ce.jsxs)(Ip,{children:[!o&&(0,Ce.jsx)(Wt.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,Ce.jsx)(Wt.Z,{children:(0,Ce.jsx)(Yo.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:qp.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Jp=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,w.useRef)(t),i=(0,w.useState)({isUploading:!1,previewFile:null}),c=H()(i,2),s=c[0],u=c[1];return(0,w.useEffect)((function(){of()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ce.jsx)(Xp,Qp(Qp({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,Ce.jsx)(Vp,Qp({file:s.previewFile,text:n.uploading},e)):(0,Ce.jsx)(Wp,Qp(Qp({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Jp.defaultProps={textResources:{}};const ed=Jp;var td=function(e){return(0,Ce.jsx)(ed,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};td.defaultProps={options:{}};const nd=td;var rd,od,ad=x.ZP.input.withConfig({displayName:"StyledDurationEdit"})(rd||(rd=b()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),un,(function(e){return e.width})),id=x.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(od||(od=b()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),nt.Z.space(1),(function(e){return e.immutable?Se.FS.color("textDisabled"):Se.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),cd=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Ac.Z.millisecondsToDuration(t),i=(0,w.useState)(!1),c=H()(i,2),s=c[0],u=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=Ko(n),o=Ko(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){u(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return s||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,Ce.jsxs)(sn,{onBlur:function(){u(!1)},immutable:n,children:[(0,Ce.jsxs)(id,{immutable:n,children:[(0,Ce.jsx)(ad,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.hoursLabel})]}),(0,Ce.jsxs)(id,{immutable:n,children:[(0,Ce.jsx)(ad,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.minutesLabel})]}),g&&(0,Ce.jsxs)(id,{immutable:n,children:[(0,Ce.jsx)(ad,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,Ce.jsx)(Xt.ZP.Span,{children:o.secondsLabel})]})]})};cd.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const sd=cd;var ud;const ld=x.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(ud||(ud=b()(["\n &&&& {\n ","\n }\n"])),un);const fd=Ut.Z.Debouncer((function(e){return(0,Ce.jsxs)(sn,{immutable:e.immutable,children:[(0,Ce.jsx)(ld,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(Yo.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var pd=i(2205),dd=i.n(pd),hd=i(99489),md=i.n(hd),gd=i(78718),vd=i.n(gd);function yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wd(){wd=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),md()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return dd()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Go()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},wd.apply(this,arguments)}var Od,xd=["key","display","postcode","city","country","latitude","longitude"],kd=function(e){return e*Math.PI/180},Sd=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:kd(a),longitude:kd(i)}};function Pd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function jd(){}function _d(e){return!!(e||"").match(/\d/)}function Ed(e){return null==e}function Cd(e){return"number"==typeof e&&isNaN(e)}function Td(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Dd(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Rd(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Md(e,t){return Array(t+1).join(e)}function Id(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Md("0",Math.abs(i))+o:i>=c?o+=Md("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Ad(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Dd(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Rd(u[1]||"",t,n)}function Nd(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function Zd(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ld(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Fd(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Ud(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(_d(e[n])||_d(e[n-1]));return t}function Hd(e,t,n,r,o,a){void 0===a&&(a=jd);var i,c,s=(0,w.useRef)(),u=(i=function(e){var t,a;return Ed(e)||Cd(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Id(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,w.useRef)(i)).current=i,(0,w.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,w.useState)((function(){return u(t)})),f=l[0],p=l[1];return(0,w.useMemo)((function(){Ed(e)?s.current=void 0:(s.current=u(e),p(s.current))}),[e,u]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Bd(e){return e.replace(/[^0-9]/g,"")}function Wd(e){return e}function zd(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Wd);var c=e.removeFormatting;void 0===c&&(c=Bd);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=jd);var d=e.onKeyDown;void 0===d&&(d=jd);var h=e.onMouseUp;void 0===h&&(h=jd);var m=e.onFocus;void 0===m&&(m=jd);var g=e.onBlur;void 0===g&&(g=jd);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Ud);var b=e.isValidInputCharacter;void 0===b&&(b=_d);var x=Pd(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),k=Hd(v,s,Boolean(u),i,c,l),S=k[0],P=S.formattedValue,j=S.numAsString,_=k[1],E=(0,w.useRef)();(0,w.useEffect)((function(){var e=i(j);if(void 0===E.current||e!==E.current){var t=R.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:Od.props,event:void 0})}}));var C=(0,w.useState)(!1),T=C[0],D=C[1],R=(0,w.useRef)(null),M=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return D(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=i,A=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},N=function(e,t,n){Nd(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&Nd(e,t)}),0)},Z=function(e,t,n){return Fd(e,t,y(e),n)},L=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a){var i=o.findIndex((function(e){return e})),c=e.slice(0,i);t||n.startsWith(c)||(n=c+n,r+=c.length);for(var s=n.length,u=e.length,l={},f=new Array(s),p=0;p<s;p++){f[p]=-1;for(var d=0,h=u;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===f[m]||!a(n[m]));)m++;var g=m===s||-1===f[m]?u:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,P,e,n,r,b);return o=Fd(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Zd(n);n.value=t,c=L(s,t,u)}n.value=t,r&&void 0!==c&&N(n,c,t)}t!==P&&function(e,t){E.current=e.formattedValue,_(e,t)}(A(t,i),{event:a,source:o})},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},x,{type:t,value:P,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(P,e),o=Object.assign(Object.assign({},r),{lastValue:P}),a=c(e,o),i=I(a);if(a=c(i,void 0),f&&!f(A(i,a))){var s=t.target,u=Zd(s),l=L(e,P,u);return N(s,l,P),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,Od.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=Z(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&N(n,c,i),e.isUnitTestRun&&N(n,c,i),d(e)}else d(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&N(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;R.current=t,M.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||N(t,a,o),m(e)}),0)},onBlur:function(e){R.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?O().createElement(O().Fragment,null,o(P,x)||null):O().createElement("span",Object.assign({},x,{ref:a}),P);if(r){var B=r;return O().createElement(B,Object.assign({},H,{ref:a}))}return O().createElement("input",Object.assign({},H,{ref:a}))}function Yd(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Vd(t),u=s.thousandSeparator,l=s.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Dd(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Rd(h,n,!!r)),u&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,u,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Vd(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function qd(e,t,n){var r;void 0===t&&(t=Ld(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,f=u.end,p=Vd(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(_d(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+Td(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Dd(e=e.replace(new RegExp(Td(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,R=C.addNegation;return u.end-u.start<s.end-s.start&&""===T&&m&&!parseFloat(D)&&(e=R?"-":""),e}function Gd(e){var t=(e=function(e){var t=Vd(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=jd);var a=e.onBlur;void 0===a&&(a=jd);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=Pd(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return Yd(t,e)},g=function(t,n){return qd(t,n,e)},v=p;Ed(f)?Ed(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return Ed(e)||Cd(e)?e:("number"==typeof e&&(e=Id(e)),v&&"number"==typeof c?Ad(e,c,Boolean(s)):e)},b=Hd(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||_d(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===u.length+1&&n&&Nd(r,1);var d=Vd(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&s&&(Nd(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Nd(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&Nd(r,l-1),"Delete"===a&&p[l]===g&&Nd(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),s&&c&&(n=Ad(n,c,s)),n!==O){var o=Yd(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Od.event})}a(t)}})}function Kd(e){var t=Gd(e);return O().createElement(zd,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(Od||(Od={}));var Xd,$d=["immutable"];function Qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Jd=(0,x.ZP)((function(e){e.immutable;var t=ae()(e,$d);return(0,Ce.jsx)(Kd,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Xd||(Xd=b()(["\n &&&& {\n ","\n }\n"])),un);function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},rh=function(e){return null!=e&&!isNaN(parseFloat(e))},oh=function(e,t,n){return!rh(n)||!(rh(t)&&n>t)&&!(rh(e)&&n<e)},ah=function(e,t){return function(n){var r=n.floatValue;return nh(r)<nh(e)||oh(e,t,r)}};const ih=(0,f.ZP)(Ut.Z.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=th(th({isAllowed:ah(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(Jd,th(th({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&oh(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!oh(s,m,r)&&(t.target.value=null)}}))})}),800));const ch=Ut.Z.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,f=s.format,p=s.allowLeadingZeros,d=s.suffix;return(0,Ce.jsx)(sn,{immutable:o,children:(0,Ce.jsx)(Jd,{isAllowed:ah(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),oh(u,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var sh,uh,lh,fh=x.ZP.div.withConfig({displayName:"StyledWrapper"})(sh||(sh=b()(["\n display: flex;\n justify-content: stretch;\n"]))),ph=x.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(uh||(uh=b()(["\n flex-grow: 1;\n"]))),dh=x.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(lh||(lh=b()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Se.FS.color("border"),nt.Z.space(-.8),nt.Z.space(.5));function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const gh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,s=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?vd()(e,xd):void 0}(r),v=function(e){return e?e.map(Sd):[]}(c);return(0,Ce.jsxs)(fh,{children:[(0,Ce.jsx)(ph,{children:(0,Ce.jsx)(uc,{id:t,immutable:n,onChange:function(e){o(mh(mh({},function(e,t){return t?bd(bd({},e),vd()(t,xd)):Uo()(e,xd)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=xe()(e.matchAll(wd(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return bd(bd({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,Ce.jsx)(dh,{children:(0,Ce.jsx)(ch,{value:m,onChange:function(e){o(mh(mh({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var vh,yh=(0,w.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),bh=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,Ce.jsx)(Xt.ZP.Span,{children:(0,Ce.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,Ce.jsx)(w.Suspense,{fallback:vh||(vh=(0,Ce.jsx)("i",{})),children:(0,Ce.jsx)(yh,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};bh.defaultProps={value:""};const wh=bh;var Oh,xh;function kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ph=function(e){var t=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,s=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,Ce.jsxs)(Xt.ZP.Span,{children:[r," ",o," ",a," ",i]})},l=function(e){return function(r,a){var i=a.newValue;t(Sh(Sh({},o),{},n()({},e,i)))}},f=function(e,n){var o=n.suggestion;!0===o.validationRequired?r.validateLocation(o,t):t(o)},p=function(e){return function(t){var o=t.value;r.fetchSuggestions(n()({},e,o),r.locationValues.country)}},d={id:a,value:o.postcode||"",onChange:l("postcode"),disabled:i},h={value:o.city||"",onChange:l("city"),disabled:i};return(0,Ce.jsx)(de,{children:function(e){var t,n=e.focused,a=e.getRef;return(0,Ce.jsxs)($o,{immutable:i,name:c,ref:a,children:[(0,Ce.jsx)(zo(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(n||o.city||o.postcode)&&(Oh||(Oh=(0,Ce.jsx)(Xt.ZP.Span,{children:"/"}))),(0,Ce.jsx)(zo(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:s("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ce.jsxs)(fn,{children:[r.isLoading&&(xh||(xh=(0,Ce.jsx)(Vo.Z,{size:"1.8rem"}))),(t=r.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ce.jsx)(Yo.Z,{href:Xo(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _h=function(e){return(0,Ce.jsx)(uc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ch=function(e){return(0,Ce.jsx)(uc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Eh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Th;const Dh=x.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Th||(Th=b()(["\n &&&& {\n ","\n }\n"])),un);const Rh=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=ot()(e,"options.defaultCountry")||"CH",s=(0,w.useState)(null),u=H()(s,2),l=u[0],f=u[1],p=O().createRef();(0,w.useEffect)((function(){(function(){var e=F()(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,Ce.jsxs)(sn,{immutable:r,children:[(0,Ce.jsx)(Dh,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Bo()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(Yo.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ah=function(e){return e.map((function(e){return vd()(e,["key","display"])}))};const Nh=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,Ce.jsx)(uc,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Ih(Ih({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Ah(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Ah(a.options)})};function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Lh=function(e){return(0,Ce.jsx)(uc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Uh=function(e){return(0,Ce.jsx)(uc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Bh=function(e){return(0,Ce.jsx)(uc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Wh=Ut.Z.Debouncer((function(e){return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(ld,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const zh=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Yh,Vh,qh,Gh=(0,x.iv)(Yh||(Yh=b()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),un),Kh=x.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Vh||(Vh=b()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Gh),Xh=x.ZP.textarea.withConfig({displayName:"StyledTextarea"})(qh||(qh=b()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),Gh);function $h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$h(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Jh=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,w.useState)(t),s=H()(c,2),u=s[0],l=s[1],f=!zh(),p=(0,w.useCallback)(aa()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,Ce.jsx)(Kh,Qh(Qh({"data-testid":"replicated-test"},f?{"data-replicated-value":u}:{}),{},{children:(0,Ce.jsx)(Xh,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const em=Ut.Z.Debouncer((function(e){return(0,Ce.jsx)(sn,{immutable:e.immutable,children:(0,Ce.jsx)(Jh,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var tm;const nm=x.ZP.input.withConfig({displayName:"StyledTimeEdit"})(tm||(tm=b()(["\n &&&& {\n ","\n }\n"])),un);function rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const am=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Yl(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,Ce.jsxs)(sn,{immutable:r,children:[(0,Ce.jsx)(nm,om({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(vi.Z,om(om({icon:"times"},s),{},{tabIndex:-1}))})]})};var im;const cm=x.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(im||(im=b()(["\n &&&& {\n ","\n }\n"])),un);const sm=Ut.Z.Debouncer((function(e){return(0,Ce.jsxs)(sn,{immutable:e.immutable,children:[(0,Ce.jsx)(cm,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,Ce.jsx)(fn,{children:(0,Ce.jsx)(Yo.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?um(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fm={boolean:dc,"boolean-select":lc,choice:Sc,code:Mc,date:ef,datetime:nf,document:nd,duration:sd,email:fd,geosearch:gh,html:wh,integer:ch,address:ta,location:Ph,"multi-remote":_h,"multi-select":Ch,number:ih,phone:Rh,"pseudo-select":Nh,remote:Lh,"search-filter":Uh,"single-select":Bh,string:Wh,text:em,url:sm,time:am};const pm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(fm[t]){var u=fm[t],l=lm(lm({},Uo()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,Ce.jsx)("div",lm(lm({},l),{},{"data-cy":"form-field",children:(0,Ce.jsx)(u,lm(lm({value:n,onChange:null==a?void 0:a.onChange},Bo()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const mm=function(e){return(0,Ce.jsx)(pn,{children:(0,Ce.jsx)(pm,hm({componentType:e.type},Uo()(e,"type")))})};var gm,vm,ym=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(gm||(gm=b()(["\n && {\n ","\n }\n"])),cn);const bm=function(e){var t=e.verifyCode,n=e.intl,r=(0,w.useState)(null),o=H()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},s=a&&a.toString().length>=6,l=function(e){e&&(e.preventDefault(),e.stopPropagation()),s&&t(a)};(0,Wr.z)(l);var f=u.Z.isInAdminEmbedded();return(0,Ce.jsxs)(Ce.Fragment,{children:[vm||(vm=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.two-factor-connector.verificationText"})})),(0,Ce.jsxs)("form",{onSubmit:l,children:[(0,Ce.jsx)(Ft,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),labelPosition:f?"inside":"outside",children:(0,Ce.jsx)(ym,{children:(0,Ce.jsx)(mm,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,Ce.jsx)(zr,{children:(0,Ce.jsx)(Wt.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!s})})]})]})};var wm={verifyCode:function(e){return{type:Mr,payload:{userCode:e}}}};const Om=(0,p.connect)((function(e,t){return{}}),wm)((0,f.ZP)(bm));var xm,km,Sm,Pm,jm,_m,Em=0,Cm=1,Tm=2,Dm=3;const Rm=function(e){var t=e.initialize,n=e.stage;(0,w.useEffect)((function(){t()}),[t]);return(0,Ce.jsxs)(Ce.Fragment,{children:[_m||(_m=(0,Ce.jsx)(Sr.Z.Notifications,{})),function(){switch(n){case Em:return xm||(xm=(0,Ce.jsx)(Ao,{}));case Cm:return km||(km=(0,Ce.jsx)(Do,{}));case Tm:return Sm||(Sm=(0,Ce.jsx)(Om,{}));case Dm:return Pm||(Pm=(0,Ce.jsx)(Xr,{}));default:return jm||(jm=(0,Ce.jsx)(Xn.Z,{}))}}()]})};var Mm={initialize:Zr};const Im=(0,p.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Mm)((0,f.ZP)(Rm));var Am,Nm=i(81770);function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fm=function(e){return function(t){return Lm(Lm({},t),{},{stage:e})}},Um=(Am={},n()(Am,jr,Nm.Z.singleTransferReducer("twoFactorActive")),n()(Am,_r,Nm.Z.singleTransferReducer("secret")),n()(Am,Er,Nm.Z.singleTransferReducer("username")),n()(Am,Ar,Nm.Z.singleTransferReducer("setupSuccessful")),n()(Am,Dr,Fm(0)),n()(Am,Rr,Fm(1)),n()(Am,Tr,Fm(2)),n()(Am,Nr,Fm(3)),Am),Hm={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Bm=i(34857),Wm=i(81719),zm=i(54159),Ym=W().mark(og),Vm=W().mark(ig),qm=W().mark(cg),Gm=W().mark(ug),Km=W().mark(lg),Xm=W().mark(fg),$m=W().mark(pg),Qm=W().mark(dg),Jm=W().mark(hg),eg="relTwo_step_login_status",tg=function(e){return e.twoFactorConnector.username},ng=function(e){return e.twoFactorConnector.secret},rg=function(e){return e.input};function og(){var e,t,n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Bm.Ys)(rg);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Bm.Ys)(tg);case 7:return t=i.sent,i.next=10,(0,Bm.RE)(Wm.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,Bm.gz)(Fr({secret:o,uri:a}));case 14:return i.next=16,(0,Bm.gz)({type:Rr});case 16:case"end":return i.stop()}}),Ym)}function ag(e,t){return zm.Z.executeRequest(e,t).then(zm.Z.extractBody)}function ig(e,t,n,r){var o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,Bm.RE)(ag,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return a=i.sent,i.next=6,(0,Bm.gz)(Br(ot()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Vm)}function cg(e,t,n){var r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Bm.RE)(Wm.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,Bm.gz)(Br(204===r.status));case 5:case"end":return o.stop()}}),qm)}function sg(e){var t=e.payload.userCode;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.Ys)(tg);case 2:return n=e.sent,e.next=5,(0,Bm.Ys)(ng);case 5:return r=e.sent,o=r.secret,e.next=9,(0,Bm.Ys)(rg);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,Bm.RE)(ig,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,Bm.RE)(cg,n,o,t);case 19:return e.next=21,(0,Bm.gz)({type:Nr});case 21:case"end":return e.stop()}}),e)}))()}function ug(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Bm.RE)(fg);case 2:return n.next=4,(0,Bm.Ys)(rg);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Bm.gz)(Fr(t));case 9:return n.next=11,(0,Bm.gz)(Hr());case 11:case"end":return n.stop()}}),Gm)}function lg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(s.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),Km)}function fg(){var e,t,n,r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Bm.RE)(pg);case 2:return e=a.sent,a.next=5,(0,Bm.gz)(Ur(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Bm.RE)(Wm.Z.fetchEntitiesPage,"Principal",{where:t,paths:[eg]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=ot()(n,"[0].paths.".concat(eg,".value.key")),o="1"===r,a.next=15,(0,Bm.gz)(Lr(o));case 15:case"end":return a.stop()}}),Xm)}function pg(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Bm.Ys)(rg);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,Bm.RE)(Wm.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),$m)}function dg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(s.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),Qm)}function hg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(Cr,og),(0,Bm.Fm)(Mr,sg),(0,Bm.Fm)(Pr,ug),(0,Bm.Fm)(Ir,lg),(0,Bm.Fm)(Dr,dg),(0,Bm.Fm)(Rr,dg),(0,Bm.Fm)(Tr,dg),(0,Bm.Fm)(Nr,dg)]);case 2:case"end":return e.stop()}}),Jm)}const mg={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hm,t=arguments.length>1?arguments[1]:void 0,n=Um[t.type];return n?n(e,t):e}};var gg,vg=[hg];function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wg="two-factor-connector",Og=function(t,n,r,o){var i=gg||(gg=(0,Ce.jsx)(Im,{})),c=e.Z.createStore(mg,vg,n,wg);return Sr.Z.addToStore(c,!0),a.Z.addToStore(c,!0,["console","remote","notification"]),s.Z.addToStore(c,(function(t){return e.Z.getEvents(xg,t.input)})),e.Z.createApp(wg,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",wg]})},xg=["onSuccess","onCancel","onResize"],kg=function(t){return e.Z.useApp({initApp:Og,props:t,packageName:wg,externalEvents:xg}).component};kg.propTypes=bg(bg({},xg.reduce((function(e,t){return bg(bg({},e),{},n()({},t,o().func))}),{})),{},{username:o().string,password:o().string,secret:o().shape({secret:o().string.isRequired,uri:o().string.isRequired}),forced:o().bool});const Sg=kg;var Pg;e.Z.createBundleableApp(wg,Og,kg);const jg=function(e){var t=e.locale,n=e.username,r=e.password,o=e.secret,a=e.showTitle,i=e.changePage;return(0,Ce.jsxs)("div",{children:[a&&(Pg||(Pg=(0,Ce.jsx)($t,{title:"client.login.form.title"}))),(0,Ce.jsx)(Sg,{locale:t,username:n,password:r,secret:o,forced:!0,onSuccess:function(){i(S)}})]})};var _g={changePage:A};const Eg=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,secret:e.twoStepLogin.secret,locale:e.intl.locale}}),_g)(jg);var Cg,Tg,Dg,Rg=x.ZP.div.withConfig({displayName:"StyledTwoStepLogin"})(Cg||(Cg=b()(["\n "," {\n width: 100%;\n }\n\n "," {\n ","\n padding-top: .7rem;\n padding-bottom: 0.7rem;\n }\n"])),dn.Z,pn,un);const Mg=function(e){var t=e.username,n=e.password,r=e.showTitle,o=e.loginPending,a=e.login,i=e.intl,c=(0,w.useState)(null),s=H()(c,2),u=s[0],l=s[1],f=(0,w.useRef)();(0,w.useLayoutEffect)((function(){f.current.querySelector("input").focus()}),[]);var p=function(e){return i.formatMessage({id:e})};return(0,Ce.jsxs)(Rg,{children:[r&&(Tg||(Tg=(0,Ce.jsx)($t,{title:"client.login.form.title"}))),(0,Ce.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a(t,n,null,u)},ref:f,children:[Dg||(Dg=(0,Ce.jsx)(Xt.ZP.P,{children:(0,Ce.jsx)(Kt.Z,{id:"client.login.twoStepLogin.introduction"})})),(0,Ce.jsx)(Ft,{hasValue:!!u,id:"twoFactorCode-label",label:p("client.login.twoStepLogin.codePlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(mm,{type:"integer",value:u,events:{onChange:l},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,Ce.jsx)(Gt,{disabled:!u||u.toString().length<6||o,label:p("client.login.form.button"),pending:o})]})]})};var Ig={login:v};const Ag=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,loginPending:e.loginForm.loginPending}}),Ig)((0,f.ZP)(Mg));var Ng;function Zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Fg=function(e){var t=e.intl,n=e.checkUsername,r=e.loginPending,o=e.message,a=e.setUsername,i=e.showTitle,c=e.username,s=Qt(a),u=H()(s,2),l=u[0],f=u[1],p=function(e){return t.formatMessage({id:e})},d=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&t.preventDefault(),n(c);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,c]);return(0,Ce.jsxs)(kn,{children:[i&&(Ng||(Ng=(0,Ce.jsx)($t,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ce.jsxs)("form",{onSubmit:d,children:[(0,Ce.jsx)(Ft,{hasValue:!!c||l,id:"login-username",label:p("client.login.form.userEmailPlaceholder"),labelPosition:"outside",children:(0,Ce.jsx)(On,{children:(0,Ce.jsx)(wn,Lg({autoFocus:!0,name:"user",required:!0,type:"text",value:c,onFocus:function(e){return e.target.select()}},f))})}),(0,Ce.jsx)(Ht,{message:o}),(0,Ce.jsx)(Gt,{disabled:!l&&(r||""===c),label:p("client.login.form.next"),pending:r})]})]})};var Ug={setUsername:N,checkUsername:function(e){return{type:g,payload:{username:e}}}};const Hg=(0,p.connect)((function(e){return{username:e.login.username,message:e.loginForm.message,loginPending:e.loginForm.loginPending}}),Ug)((0,f.ZP)(Fg));var Bg,Wg,zg,Yg=(0,x.vJ)(Bg||(Bg=b()(["\n .grecaptcha-badge {\n z-index: 9999999;\n opacity: .8;\n }\n"])));const Vg=function(e){var t,n,r,o,a,i=e.initialize,c=e.showTitle,s=e.currentPage;return(0,w.useEffect)((function(){i()}),[i]),(0,Ce.jsxs)(Ce.Fragment,{children:[Wg||(Wg=(0,Ce.jsx)(Yg,{})),function(){switch(s){case _:return t||(t=(0,Ce.jsx)(vr,{showTitle:c}));case P:return n||(n=(0,Ce.jsx)(Mn,{showTitle:c}));case j:return r||(r=(0,Ce.jsx)(Ag,{showTitle:c}));case E:return zg||(zg=(0,Ce.jsx)(Eg,{}));case k:return o||(o=(0,Ce.jsx)(Hg,{showTitle:c}));default:return a||(a=(0,Ce.jsx)(En,{showTitle:c}))}}()]})};var qg={initialize:function(){return{type:d}}};const Gg=(0,p.connect)((function(e,t){return{currentPage:t.currentPage||e.login.currentPage,showTitle:t.showTitle}}),qg)((0,f.ZP)(Vg));var Kg,Xg="PasswordUpdateDialog/SET_SHOW_OLD_PASSWORD",$g="PasswordUpdateDialog/SET_STANDALONE",Qg="PasswordUpdateDialog/SET_FORCED_UPDATE",Jg="PasswordUpdateDialog/SET_USERNAME_OR_PK",ev="PasswordUpdateDialog/SET_CURRENT_USERNAME",tv=function(e){return{type:Xg,payload:{showOldPasswordField:e}}},nv=function(e){return{type:Qg,payload:{forcedUpdate:e}}},rv=function(e){return{type:Jg,payload:{usernameOrPk:e}}},ov=i(15857),av=(Kg={},n()(Kg,T,Nm.Z.singleTransferReducer("entryPage")),n()(Kg,C,Nm.Z.singleTransferReducer("currentPage")),n()(Kg,D,Nm.Z.singleTransferReducer("username")),n()(Kg,R,Nm.Z.singleTransferReducer("password")),n()(Kg,M,Nm.Z.singleTransferReducer("captchaKey")),Kg),iv={entryPage:void 0,currentPage:void 0,username:"",password:"",captchaKey:null};const cv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iv,t=arguments.length>1?arguments[1]:void 0,n=av[t.type];return n?n(e,t):e};var sv,uv="loginForm/SET_MESSAGE",lv="loginForm/CLEAR_MESSAGE",fv="loginForm/SET_PENDING",pv="loginForm/ACTIVATE_RECAPTCHA",dv=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:uv,payload:{text:e,negative:t}}},hv=function(){return{type:lv}},mv=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:fv,payload:{pending:e}}};function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yv=(sv={},n()(sv,uv,(function(e,t){var n=t.payload,r=n.text,o=n.negative;return vv(vv({},e),{},{message:{text:r,negative:o}})})),n()(sv,lv,(function(e){return vv(vv({},e),{},{message:{}})})),n()(sv,fv,(function(e,t){var n=t.payload;return vv(vv({},e),{},{loginPending:n.pending})})),n()(sv,pv,(function(e){return vv(vv({},e),{},{recaptchaActivated:!0})})),sv),bv={message:{},loginPending:!1,recaptchaActivated:!1};const wv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bv,t=arguments.length>1?arguments[1]:void 0,n=yv[t.type];return n?n(e,t):e};var Ov;function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Sv={showOldPasswordField:!0,forcedUpdate:!1,standalone:!0,usernameOrPk:""},Pv=function(e){return function(t,r){var o=r.payload[e];return kv(kv({},t),{},n()({},e,o))}},jv=(Ov={},n()(Ov,Xg,Pv("showOldPasswordField")),n()(Ov,Qg,Pv("forcedUpdate")),n()(Ov,$g,Pv("standalone")),n()(Ov,Jg,Pv("usernameOrPk")),Ov);const _v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sv,t=arguments.length>1?arguments[1]:void 0,n=jv[t.type];return n?n(e,t):e};var Ev,Cv=i(44759),Tv=W().mark(Rv),Dv=W().mark(Mv);function Rv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(ev,Mv)]);case 2:case"end":return e.stop()}}),Tv)}function Mv(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={acceptedStatusCodes:[403]},r.next=3,(0,Bm.RE)(Wm.Z.requestSaga,"principals",e);case 3:if(403!==(t=r.sent).status){r.next=8;break}Cv.Z.logError('input "username" on password-update is mandatory if no user is logged in'),r.next=11;break;case 8:return n=t.body.username,r.next=11,(0,Bm.gz)(rv(n));case 11:case"end":return r.stop()}}),Dv)}function Iv(e){return 0===Object.keys(e).length&&e.constructor===Object}function Av(e){var t={};return e.forEach((function(e){t[e.ruleName]=e.message})),t}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lv={oldPassword:"",newPassword:"",newPasswordRepeat:"",newPasswordValidationErrors:null,passwordUpdatePending:!1,passwordUpdateFailed:!1,passwordUpdateErrorCode:null},Fv=(Ev={},n()(Ev,An,(function(e,t){var n=t.payload;return Zv(Zv({},e),{},{oldPassword:n.oldPassword})})),n()(Ev,Zn,(function(e,t){var n=t.payload;return Zv(Zv({},e),{},{newPassword:n.newPassword})})),n()(Ev,Ln,(function(e,t){var n=t.payload;return Zv(Zv({},e),{},{newPasswordValidationErrors:n.errors})})),n()(Ev,Fn,(function(e,t){var n=t.payload;return Zv(Zv({},e),{},{newPasswordRepeat:n.newPasswordRepeat})})),n()(Ev,Un,(function(e){return Zv(Zv({},e),{},{passwordUpdatePending:!0,passwordUpdateFailed:!1})})),n()(Ev,Hn,(function(e){return Lv})),n()(Ev,Bn,(function(e,t){var n=t.payload;if(n.validationMessages){var r=Av(n.validationMessages);return Zv(Zv({},e),{},{passwordUpdatePending:!1,newPasswordValidationErrors:r})}return Zv(Zv({},e),{},{passwordUpdatePending:!1,passwordUpdateFailed:!0,passwordUpdateErrorCode:n.errorCode})})),n()(Ev,zn,(function(e,t){t.payload;return Zv(Zv({},e),{},{passwordUpdateFailed:!1})})),Ev);const Uv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lv,t=arguments.length>1?arguments[1]:void 0,n=Fv[t.type];return n?n(e,t):e};var Hv="password_update_success",Bv="password_update_failed",Wv=(i(13218),i(66604)),zv=i.n(Wv),Yv=i(17563),Vv=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const qv=function(e){var t=Yv.parse(e);return zv()(t,(function(e){return Vv(e)?JSON.parse(e):e}))};var Gv="login/SET_SECRET";function Kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $v,Qv=W().mark(yy),Jv=W().mark(by),ey=W().mark(Oy),ty=W().mark(xy),ny=W().mark(ky),ry=W().mark(Sy),oy=W().mark(Py),ay=W().mark(jy),iy=W().mark(_y),cy=W().mark(Ey),sy=W().mark(Cy),uy=W().mark(Ry),ly=W().mark(My),fy=W().mark(Iy),py=W().mark(Ay),dy=W().mark(Ny),hy=function(e){return e.login},my=function(e){return e.input};function gy(e){var t=e.payload;return W().mark((function e(){var n,r,o;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.Ys)(hy);case 2:return n=e.sent,r=n.entryPage,e.next=6,(0,Bm.gz)(mv(!0));case 6:return e.next=8,(0,Bm.RE)(Wm.Z.requestSaga,"principals/".concat(t.username,"/password-reset"),{method:"POST"});case 8:return e.next=10,(0,Bm.gz)(N(t.username));case 10:return e.next=12,(0,Bm.gz)(A(S));case 12:return o=r===k?"client.login.from.passwordRequestedWithValidUsername":"client.login.from.passwordRequested",e.next=16,(0,Bm.gz)(dv(o));case 16:return e.next=18,(0,Bm.gz)(mv(!1));case 18:case"end":return e.stop()}}),e)}))()}function vy(e,t){return new Promise((function(n){zm.Z.executeRequest(e,t).then(zm.Z.extractBody).then((function(e){return n(e)})).catch((function(e){Cv.Z.logError("Failed to execute request",e),n({success:!1})}))}))}function yy(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.RE)(vy,"login",wy(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),Qv)}function by(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.RE)(vy,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Jv)}function wy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(e).filter((function(t){return!!e[t]})).sort().map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}}function Oy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(A(j));case 2:case"end":return e.stop()}}),ey)}function xy(e){var t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e[E],n.next=3,(0,Bm.gz)({type:Gv,payload:{secret:t}});case 3:return n.next=5,(0,Bm.gz)(A(E));case 5:case"end":return n.stop()}}),ty)}function ky(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.Ys)(hy);case 2:return e=t.sent,t.next=5,(0,Bm.gz)(Yn(e.password));case 5:return t.next=7,(0,Bm.gz)(rv(e.username));case 7:return t.next=9,(0,Bm.gz)(nv(!0));case 9:return t.next=11,(0,Bm.gz)(A(_));case 11:case"end":return t.stop()}}),ny)}function Sy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(dv("client.login.form.blocked",!0));case 2:case"end":return e.stop()}}),ry)}function Py(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(dv("client.login.form.failed",!0));case 2:case"end":return e.stop()}}),oy)}function jy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(dv("client.login.form.invalidUsernameEmail",!0));case 2:case"end":return e.stop()}}),ay)}function _y(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ey();case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),iy)}function Ey(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e=qv(window.location.search),!(t=e._redirect_url)){o.next=5;break}return o.abrupt("return",t);case 5:return o.next=7,(0,Bm.Ys)(my);case 7:return n=o.sent,r=n.redirectUrl,o.abrupt("return",r);case 10:case"end":return o.stop()}}),cy)}function Cy(t){var n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Bm.RE)(e.Z.reinitialiseCache);case 2:return r.next=4,(0,Bm.gz)(Z(""));case 4:return n=t.timeout||30,r.next=7,(0,Bm.gz)(s.Z.fireExternalEvent("loginSuccess",{timeout:n}));case 7:case"end":return r.stop()}}),sy)}function Ty(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,e.next=3,(0,Bm.gz)(hv());case 3:return e.next=5,(0,Bm.gz)(mv(!0));case 5:return e.next=7,(0,Bm.RE)(Wm.Z.requestSaga,"client/username/check/".concat(n),{method:"GET"});case 7:if(r=e.sent,o=r.body,a=o.existingUser,i=o.validEmail,!a){e.next=14;break}return e.next=12,(0,Bm.gz)(A(S));case 12:e.next=21;break;case 14:if(!i){e.next=19;break}return e.next=17,(0,Bm.gz)(s.Z.fireExternalEvent("register",{username:n}));case 17:e.next=21;break;case 19:return e.next=21,(0,Bm.RE)(jy);case 21:return e.next=23,(0,Bm.gz)(mv(!1));case 23:case"end":return e.stop()}}),e)}))()}function Dy(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i,c;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,o=t.captchaToken,a=t.userCode,i=Xv(Xv({username:n,password:r},o&&{captchaToken:o}),a&&{userCode:a}),e.next=4,(0,Bm.gz)(mv(!0));case 4:return e.next=6,(0,Bm.RE)(yy,i);case 6:if(!(c=e.sent).success){e.next=14;break}return e.next=10,(0,Bm.RE)(Cy,c);case 10:return e.next=12,(0,Bm.RE)(_y);case 12:e.next=45;break;case 14:return e.next=16,(0,Bm.gz)(A(S));case 16:if(!c.CAPTCHA){e.next=21;break}return e.next=19,(0,Bm.gz)({type:pv});case 19:e.next=43;break;case 21:if(!c.TWOSTEPLOGIN){e.next=26;break}return e.next=24,(0,Bm.RE)(Oy,c);case 24:e.next=43;break;case 26:if(!c.RESET_PASSWORD_REQUIRED){e.next=31;break}return e.next=29,(0,Bm.RE)(ky);case 29:e.next=43;break;case 31:if(!c.LOGIN_BLOCKED){e.next=36;break}return e.next=34,(0,Bm.RE)(Sy);case 34:e.next=43;break;case 36:if(!c.TWOSTEPLOGIN_ACTIVATION){e.next=41;break}return e.next=39,(0,Bm.RE)(xy,c);case 39:e.next=43;break;case 41:return e.next=43,(0,Bm.RE)(Py);case 43:return e.next=45,(0,Bm.gz)(mv(!1));case 45:case"end":return e.stop()}}),e)}))()}function Ry(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.RE)(by);case 2:if(!(e=t.sent).success){t.next=6;break}return t.next=6,(0,Bm.RE)(Cy,e);case 6:return t.abrupt("return",e.success);case 7:case"end":return t.stop()}}),uy)}function My(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.RE)(Wm.Z.fetchServerSettings);case 2:return e=t.sent,t.next=5,(0,Bm.gz)((n=e.captchaKey,{type:M,payload:{captchaKey:n}}));case 5:case"end":return t.stop()}var n}),ly)}function Iy(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.RE)(Ry);case 2:return e=t.sent,t.next=5,(0,Bm.RE)(My);case 5:if(!e){t.next=8;break}return t.next=8,(0,Bm.RE)(_y);case 8:case"end":return t.stop()}}),fy)}function Ay(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(hv());case 2:case"end":return e.stop()}}),py)}function Ny(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(C,Ay),(0,Bm.Fm)(h,Dy),(0,Bm.Fm)(g,Ty),(0,Bm.Fm)(m,gy),(0,Bm.Fm)(d,Iy)]);case 2:case"end":return e.stop()}}),dy)}var Zy="PASSWORD_NOT_CHANGED";function Ly(e,t,n,r){if("string"!=typeof e)return!1;var o=e.length-e.replace(t,"").length;return(null==n||o>=n)&&(null==r||o<=r)}var Fy=($v={},n()($v,Zy,(function(e,t){return"string"==typeof e&&"string"==typeof t&&e!==t})),n()($v,"LENGTH",(function(e,t,n){return"string"==typeof e&&(void 0===n.params.min||null===n.params.min||e.length>=n.params.min)&&(void 0===n.params.max||null===n.params.max||e.length<=n.params.max)})),n()($v,"CHARACTER_INSUFFICIENT_LOWERCASE",(function(e,t,n){return Ly(e,/[a-z]/g,n.params.min,n.params.max)})),n()($v,"CHARACTER_INSUFFICIENT_UPPERCASE",(function(e,t,n){return Ly(e,/[A-Z]/g,n.params.min,n.params.max)})),n()($v,"CHARACTER_INSUFFICIENT_DIGIT",(function(e,t,n){return Ly(e,/[0-9]/g,n.params.min,n.params.max)})),$v);const Uy=function(e,t,n){var r={};return n&&n.forEach((function(n){var o=Fy[n.name];o&&(!0!==o(e,t,n)&&(r[n.name]=!0))})),r};var Hy=W().mark(rb),By=W().mark(ob),Wy=W().mark(ab),zy=W().mark(ib),Yy=W().mark(sb),Vy=W().mark(ub),qy=W().mark(lb),Gy=W().mark(fb);function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ky(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $y=function(e){return e.passwordUpdate.validationRules},Qy=function(e){return e.input},Jy=function(e){return e.passwordUpdate.dialog.usernameOrPk},eb=function(e){return e.passwordUpdate.password},tb=function(e){return e.passwordUpdate.dialog.standalone},nb=function(e){return e.intl};function rb(e,t,n){var r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={method:"POST",acceptedStatusCodes:[400],body:Xy(Xy({},t),{},{captchaToken:n})},a.prev=1,a.next=4,(0,Bm.RE)(Wm.Z.requestSaga,"principals/".concat(e,"/password-update"),r);case 4:return o=a.sent,a.abrupt("return",o.ok?{error:null}:{error:o.body});case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",{error:{errorCode:"UNEXPECTED_ERROR",exception:a.t0}});case 11:case"end":return a.stop()}}),Hy,null,[[1,8]])}function ob(e,t){var n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Bm.Ys)(nb);case 2:return n=i.sent,r=n.locale,o={method:"POST",body:t,queryParams:{locale:r}},i.prev=5,i.next=8,(0,Bm.RE)(Wm.Z.requestSaga,"principals/".concat(e,"/password-validation"),o);case 8:return a=i.sent,i.abrupt("return",a.body);case 12:return i.prev=12,i.t0=i.catch(5),i.abrupt("return",{valid:!0,exception:i.t0});case 15:case"end":return i.stop()}}),By,null,[[5,12]])}function ab(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Bm.gz)((n=e.payload.newPassword,{type:Zn,payload:{newPassword:n}}));case 2:return t.next=4,(0,Bm.gz)({type:Wn});case 4:case"end":return t.stop()}var n}),Wy)}function ib(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Bm.Ys)($y);case 2:return e=c.sent,c.next=5,(0,Bm.Ys)(eb);case 5:if(t=c.sent,Iv(n=Uy(t.newPassword,t.oldPassword,e))){c.next=12;break}return c.next=10,(0,Bm.gz)(Vn(n));case 10:c.next=29;break;case 12:return c.next=14,(0,Bm.Ys)(Jy);case 14:return r=c.sent,c.next=17,(0,Bm.RE)(sb);case 17:return o=c.sent,c.next=20,(0,Bm.RE)(ob,r,o);case 20:if(!0!==(a=c.sent).valid){c.next=26;break}return c.next=24,(0,Bm.gz)(Vn({}));case 24:c.next=29;break;case 26:return i=Av(a.validationMessages),c.next=29,(0,Bm.gz)(Vn(i));case 29:case"end":return c.stop()}}),zy)}function cb(e){var t=e.payload.captchaToken;return W().mark((function e(){var n,r,o,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.Ys)(Jy);case 2:return n=e.sent,e.next=5,(0,Bm.RE)(sb);case 5:return r=e.sent,e.next=8,(0,Bm.RE)(rb,n,r,t);case 8:if(!(o=e.sent).error){e.next=21;break}if(!1!==o.error.valid){e.next=15;break}return e.next=13,(0,Bm.gz)(qn(null,o.error.validationMessages));case 13:e.next=17;break;case 15:return e.next=17,(0,Bm.gz)(qn(o.error.errorCode));case 17:return e.next=19,(0,Bm.gz)(s.Z.fireVisibilityStatusChangeEvent([Bv]));case 19:e.next=40;break;case 21:return e.next=23,(0,Bm.Ys)(tb);case 23:if(!e.sent){e.next=29;break}return e.next=27,(0,Bm.gz)(s.Z.fireExternalEvent("success",{newPassword:r.newPassword}));case 27:e.next=36;break;case 29:return e.next=31,(0,Bm.RE)(ub);case 31:return a=e.sent,e.next=34,(0,Bm.gz)(Z(a.payload.password));case 34:return e.next=36,(0,Bm.RE)(Dy,a);case 36:return e.next=38,(0,Bm.gz)({type:Hn});case 38:return e.next=40,(0,Bm.gz)(s.Z.fireVisibilityStatusChangeEvent([Hv]));case 40:case"end":return e.stop()}}),e)}))()}function sb(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Bm.Ys)(Qy);case 2:return e=n.sent,n.next=5,(0,Bm.Ys)(eb);case 5:return t=n.sent,n.abrupt("return",{oldPassword:e.oldPassword?e.oldPassword:t.oldPassword,newPassword:t.newPassword});case 7:case"end":return n.stop()}}),Yy)}function ub(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Bm.Ys)(eb);case 2:return e=n.sent,n.next=5,(0,Bm.Ys)(Jy);case 5:return t=n.sent,n.abrupt("return",{payload:{username:t,password:e.newPasswordRepeat}});case 7:case"end":return n.stop()}}),Vy)}function lb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)({type:zn});case 2:case"end":return e.stop()}}),qy)}function fb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(Nn,ab),(0,Bm.Fm)(Wn,ib),(0,Bm.Fm)(Un,cb),(0,Bm.Fm)(Nn,lb),(0,Bm.Fm)(An,lb),(0,Bm.Fm)(Fn,lb)]);case 2:case"end":return e.stop()}}),Gy)}var pb=W().mark(hb),db=W().mark(mb);function hb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.gz)(s.Z.fireExternalEvent("resize"));case 2:case"end":return e.stop()}}),pb)}function mb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(In,hb)]);case 2:case"end":return e.stop()}}),db)}var gb=n()({},Kn,(function(e,t){return t.payload.rules}));const vb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=gb[t.type];return n?n(e,t):e};var yb=W().mark(Sb),bb=W().mark(Pb),wb=function(e){return e.passwordUpdate.dialog},Ob=function(e){return e.intl};function xb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return W().mark((function n(){var r,o;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="principals/".concat(e,"/password-rules"),n.next=3,(0,Bm.RE)(Wm.Z.requestSaga,r,{queryParams:{locale:t}});case 3:return o=n.sent,n.abrupt("return",o.body);case 5:case"end":return n.stop()}}),n)}))()}var kb=function(e,t){return t||e.name!==Zy};function Sb(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Bm.Ys)(wb);case 2:return e=c.sent,t=e.usernameOrPk,n=e.showOldPasswordField,c.next=7,(0,Bm.Ys)(Ob);case 7:return r=c.sent,o=r.locale,c.next=11,(0,Bm.RE)(xb,t,o);case 11:return a=c.sent,i=a.rules.filter((function(e){return kb(e,n)})),c.next=15,(0,Bm.gz)({type:Kn,payload:{rules:i}});case 15:case"end":return c.stop()}}),yb)}function Pb(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Bm.$6)([(0,Bm.Fm)(Gn,Sb)]);case 2:case"end":return e.stop()}}),bb)}const jb={dialog:_v,password:Uv,validationRules:vb};var _b=[Rv,mb,fb,Pb],Eb=n()({},Gv,Nm.Z.singleTransferReducer("secret")),Cb={secret:null};const Tb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cb,t=arguments.length>1?arguments[1]:void 0,n=Eb[t.type];return n?n(e,t):e},Db={login:cv,loginForm:wv,passwordUpdate:(0,ov.UY)(jb),twoStepLogin:Tb};var Rb=[Ny].concat(xe()(_b));function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ib="login",Ab=["loginSuccess","register","resize"],Nb={username:k,"password-request":P,login:S},Zb=function(t,n,r,o,i){var c,l=Nb[n.entryPage]||S,f=[tv(!1),(c=!1,{type:$g,payload:{standalone:c}}),N(n.username||""),I(l),A(l)],p=!!n.showTitle,d=(0,Ce.jsx)(Gg,{showTitle:p}),h=e.Z.createStore(Db,Rb,n,Ib);return u.Z.setInputEnvs(n),s.Z.addToStore(h,(function(t){return e.Z.getEvents(Ab,t.input)})),a.Z.addToStore(h,!0,["console","remote"]),e.Z.createApp(Ib,d,h,{input:n,actions:f,publicPath:o,textResourceModules:["login"],customTheme:i})},Lb=function(t){return e.Z.useApp({initApp:Zb,props:t,packageName:Ib,externalEvents:Ab}).component};Lb.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({showTitle:o().bool,locale:o().string,entryPage:o().oneOf(["username","login","password-request"]),username:o().string,setLocale:o().func,backendUrl:o().string,redirectUrl:o().string,appContext:l.Z.propTypes},Ab.reduce((function(e,t){return e[t]=o().func,e}),{}));const Fb=function(e){var t=e.usernameOrPk,n=e.showTitle;return(0,Ce.jsx)(Xn.Z,{required:[t],children:(0,Ce.jsx)(Gg,{currentPage:"PASSWORD_UPDATE",showTitle:n})})};const Ub=(0,p.connect)((function(e,t){return{usernameOrPk:e.passwordUpdate.dialog.usernameOrPk}}),{})((0,f.ZP)(Fb));function Hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hb(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wb="password-update",zb=["success","resize","onVisibilityStatusChange"],Yb=function(t,n,r,o,i){var c=!!n.showTitle,l=!!n.forcedUpdate,f=(0,Ce.jsx)(Ub,{showTitle:c}),p=[nv(l)];"string"!=typeof n.username||0===n.username.length?p.push({type:ev}):p.push(rv(n.username)),"boolean"==typeof n.showOldPasswordField&&p.push(tv(n.showOldPasswordField));var d=e.Z.createStore(Db,Rb,n,Wb);return u.Z.setInputEnvs(n),s.Z.addToStore(d,(function(t){return e.Z.getEvents(zb,t.input)})),a.Z.addToStore(d,!0,["console","remote"]),e.Z.createApp(Wb,f,d,{input:n,actions:p,publicPath:o,textResourceModules:["login"],customTheme:i})},Vb=function(t){return e.Z.useApp({initApp:Yb,props:t,packageName:Wb,externalEvents:zb}).component};Vb.propTypes=Bb({username:o().string,showTitle:o().bool,showOldPasswordField:o().bool,oldPassword:o().string,backendUrl:o().string,appContext:l.Z.propTypes},zb.reduce((function(e,t){return Bb(Bb({},e),{},n()({},t,o().func))}),{}));var qb="login";var Gb=e.Z.createBundleableApp(qb,Zb,Lb);e.Z.createBundleableApp("password-update",Yb,Vb);e.Z.registerAppInRegistry(Gb.name,Gb.init)})(),c})()));
|