tocco-legacy-bundle 3.11.2 → 3.11.3
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 +3 -0
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/input-edit.js +1 -1
- package/dist/login.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/resource-scheduler.js +1 -1
- package/dist/sso-login.js +1 -1
- package/dist/two-factor-connector.js +1 -1
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ object-assign
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var r=n(69624);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},36728:(e,t,n)=>{"use strict";e.exports=n(57556)},2062:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)},c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(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]]}const l=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return u(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function f(e){return 14+(e+64>>>9<<4)+1}function p(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return p((a=p(p(t,e),p(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,c=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=p(n,a),r=p(r,s),o=p(o,c),i=p(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(f(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function x(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function O(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=O(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=O(o,5)+x(n,a,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=O(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},68976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(4003))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},86728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,s.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var v=e.split("@"),y=v.pop(),b=y.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var w=v.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var x=(w=w.toLowerCase()).split("+")[0];if(!(0,o.default)(x.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=x.split("."),S=0;S<O.length;S++)if(!f.test(O[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(w,{max:64})&&(0,o.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var E=y.slice(1,-1);if(0===E.length||!(0,a.default)(E))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?m.test(w):p.test(w);for(var k=t.allow_utf8_local_part?h:d,D=w.split("."),C=0;C<D.length;C++)if(!k.test(D[C]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(4003)),o=c(n(68976)),i=c(n(21432)),a=c(n(75008)),s=c(n(14684));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},21432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(4003)),o=i(n(14684));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},75008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(4003))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},42280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var y=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}(O=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(O,S)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(O,S)||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.")}()),w=b[0],x=b[1];if(""===w&&""===x)return!1}var O,S;p=g.join("@"),m=null,v=null;var E=p.match(l);E?(f="",v=E[1],m=E[2]||null):(f=(g=p.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(4003)),o=s(n(21432)),i=s(n(75008)),a=s(n(14684));function s(e){return e&&e.__esModule?e:{default:e}}function c(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 u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},4003:(e,t)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},14684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},69624:e=>{"use strict";e.exports=t},42416:t=>{"use strict";t.exports=e},6636:(e,t,n)=>{var r=n(59848).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new P(r||[]);return a(i,"_invoke",{value:E(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function m(){}function g(){}function v(){}var y={};d(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,c)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,s,c){var u=p(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function _(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return g.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},O(S.prototype),d(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(x),d(x,l,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},33248:(e,t,n)=>{var r=n(6636)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},3504:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},74412:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},82840: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},52376:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},31496:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>ve,ReactReduxContext:()=>y,batch:()=>Oe,connect:()=>ge,createDispatchHook:()=>we,createSelectorHook:()=>E,createStoreHook:()=>ye,shallowEqual:()=>J,useDispatch:()=>xe,useSelector:()=>k,useStore:()=>be}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(69624)),p=n(36728),h=l(n(69624)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var x=w(),O=b,S=(e,t)=>e===t;function E(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=S,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var k=E(),D=Symbol.for("react.element"),C=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),I=Symbol.for("react.server_context"),R=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),R),U=F;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case D:{let n=e.type;switch(n){case P:case j:case _:case M:case N:return n;default:{let e=n&&n.$$typeof;switch(e){case I:case A:case R:case L:case F:case T:return e;default:return t}}}}case C:return t}}}(e)===F}function B(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function z(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function V(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function Y(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=V(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=V(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function Q(e){e()}var K={notify(){},get:()=>[]};function X(e,t){let n,r=K,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Q((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=K)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var $=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function J(e,t){if(Z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Z(e[n[r]],t[n[r]]))return!1;return!0}var ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},re={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:ne};function oe(e){return W(e)?ne:re[e.$$typeof]||ee}var ie=Object.defineProperty,ae=Object.getOwnPropertyNames,se=Object.getOwnPropertySymbols,ce=Object.getOwnPropertyDescriptor,ue=Object.getPrototypeOf,le=Object.prototype;function de(e,t){if("string"!=typeof t){if(le){let n=ue(t);n&&n!==le&&de(e,n)}let n=ae(t);se&&(n=n.concat(se(t)));let r=oe(e),o=oe(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(te[a]||o&&o[a]||r&&r[a])){let n=ce(t,a);try{ie(e,a,n)}catch{}}}}return e}var fe=b,pe=[null,null];function he(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function me(e,t){return e===t}var ge=function(e,t,n,{pure:r,areStatesEqual:o=me,areOwnPropsEqual:i=J,areStatePropsEqual:a=J,areMergedPropsEqual:s=J,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?Y(e):q(e,"mapStateToProps"):z((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?z((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?Y(e):q(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return B(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return pe;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(),w=m.useRef(i),x=m.useRef(),O=m.useRef(!1),S=(m.useRef(!1),m.useRef(!1)),E=m.useRef();$((()=>(S.current=!0,()=>{S.current=!1})),[]);let k,D=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),C=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,O,S,x,v,e):()=>{}),[g]);!function(e,t,n){$((()=>e(...t)),n)}(he,[w,b,O,i,x,v]);try{k=fe(C,D,f?()=>p(f(),i):D)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}$((()=>{E.current=void 0,x.current=void 0,b.current=k}));let P=m.useMemo((()=>m.createElement(e,{...k,ref:o})),[o,e,k]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},P):P),[a,P,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,de(t,e)}return de(g,e)}};var ve=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return $((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function ye(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var be=ye();function we(e=y){let t=e===y?be:ye(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xe=we(),Oe=Q;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{fe=e})(f.useSyncExternalStore)},99988:(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,{c:()=>r})},80472:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{c:()=>r})},87088:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{c:()=>r})},92920:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(52028);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.c)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52536:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(52028);function o(e,t,n){return(t=(0,r.c)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},76184:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{c:()=>r})},62988:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(61936);function o(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&&(0,r.c)(e,t)}},5724:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{c:()=>r})},65500:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{c:()=>r})},52822:(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={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{c:()=>r})},19952:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e,t){if(t&&("object"===(0,r.c)(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)}},61936:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{c:()=>r})},32920:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(80472);var o=n(70309),i=n(65500);function a(e,t){return(0,r.c)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.c)(e,t)||(0,i.c)()}},86692:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{c:()=>r})},32612:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(99988);var o=n(5724),i=n(70309);function a(e){return function(e){if(Array.isArray(e))return(0,r.c)(e)}(e)||(0,o.c)(e)||(0,i.c)(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.")}()}},52028:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e){var t=function(e,t){if("object"!==(0,r.c)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.c)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.c)(t)?t:String(t)}},81568:(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},r(e)}n.d(t,{c:()=>r})},70309:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99988);function o(e,t){if(e){if("string"==typeof e)return(0,r.c)(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.c)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({8:"vendor-libphonenumber-js",216:"html-editor",448:"vendor-icons",570:"phone-formatter",784:"code-editor",952:"vendor-fontawesome"}[e]||e)+"."+{8:"4b1909c2f8a566e22e25",26:"f61522b137287927e635",216:"988831263d9c91732683",448:"a22123aba6eed26618fb",570:"c51becfaaf48f9c09e80",648:"8560541a14350540e119",784:"620aaccfd30a9bb96120",904:"573ca4107676b894ae8e",952:"d8c7377c8bfd33fb7a29"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.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),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={376:0};c.f.j=(t,n)=>{var r=c.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 i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.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))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>Wxe});var e={};c.r(e),c.d(e,{ACTION_INVOKE:()=>V8,ACTION_INVOKED:()=>q8,ACTION_IN_PROGRESS:()=>Y8,actionInvoke:()=>G8,actionInvoked:()=>Q8});var t={};c.r(t),c.d(t,{focusErrorField:()=>Jte,focusField:()=>$te,formInitialValueSelector:()=>Xte,getCurrentEntityState:()=>nne,getEntityForSubmit:()=>rne,getFormErrors:()=>Zte,handleInvalidForm:()=>tne,handleSubmitError:()=>one,touchAllFields:()=>ene});var n={};c.r(n),c.d(n,{asyncValidationStop:()=>fne,autoComplete:()=>cne,default:()=>sne,loadFormValues:()=>dne,onChange:()=>une,onRegister:()=>lne});var r={};c.r(r),c.d(r,{createAction:()=>joe,createCustomComponent:()=>Aoe,createFieldSet:()=>_oe,createLayoutComponent:()=>Toe});var o={};c.r(o),c.d(o,{createAction:()=>joe,createCustomComponent:()=>Aoe,createFieldSet:()=>_oe,createLayoutComponent:()=>Ioe});var i={};function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}c.r(i),c.d(i,{useAsyncValidation:()=>Hie,useFormEvents:()=>Uie,useSyncValidation:()=>Lie});var l=c(33248),d=c.n(l),f=c(66904),p=c.n(f),h=c(28352),m=c(8688),g="tocco-util/LOG_ERROR",v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:g,payload:{title:e,description:t,error:n,dateTime:r}}},y=c(98168),b=c(69624),w=c.n(b),x=c(36728),O=b,S=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function k(){if(!O.createContext)return{};const e=E[S]??(E[S]=new Map);let t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var D=k(),C=()=>{throw new Error("uSES not initialized!")};var P=Symbol.for("react.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),R=Symbol.for("react.context"),M=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),W=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),N),B=H;function z(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case P:{const n=e.type;switch(n){case j:case A:case T:case F:case L:return n;default:{const e=n&&n.$$typeof;switch(e){case M:case R:case N:case U:case H:case I:return e;default:return t}}}}case _:return t}}}function V(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function Y(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function q(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function G(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=q(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=q(o),o=r(t,n)),o},r}}function Q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function K(e,t,n){return{...n,...e,...t}}function X(e){e()}var $={notify(){},get:()=>[]};function Z(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){X((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?O.useLayoutEffect:O.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[W]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return function(e){return z(e)===H}(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){const n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));const r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){const n=le(t,a);try{se(e,a,n)}catch(e){}}}}return e}var he=C,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=D}={}){const l=u,d=function(e){return e?"function"==typeof e?G(e):Q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?G(e):Q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Q(e,"mergeProps"):()=>K}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=O.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=O.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),s=O.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=O.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return V(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=O.useMemo((()=>{if(!h)return me;const e=Z(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=O.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),y=O.useRef(),b=O.useRef(i),w=O.useRef(),x=O.useRef(!1),S=(O.useRef(!1),O.useRef(!1)),E=O.useRef();J((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=O.useMemo((()=>()=>w.current&&i===b.current?w.current:p(d.getState(),i)),[d,i]),D=O.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,b,y,x,S,w,g,e):()=>{}),[m]);var C,P,_;let j;C=ge,P=[b,y,x,i,w,g],J((()=>C(...P)),_);try{j=he(D,k,f?()=>p(f(),i):k)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}J((()=>{E.current=void 0,w.current=void 0,y.current=j}));const T=O.useMemo((()=>O.createElement(e,{...j,ref:o})),[o,e,j]);return O.useMemo((()=>h?O.createElement(a.Provider,{value:v},T):T),[a,T,v])}const m=O.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=O.forwardRef((function(e,t){return O.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(m,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=O.useMemo((()=>{const t=Z(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=O.useMemo((()=>e.getState()),[e]);J((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||D;return O.createElement(c.Provider,{value:a},n)};(e=>{e})(x.useSyncExternalStoreWithSelector),(e=>{he=e})(b.useSyncExternalStore);var we,xe,Oe=c(87088),Se=c(92920),Ee=c(19952),ke=c(76184),De=c(62988),Ce=c(3268),Pe=c.n(Ce),_e=c(86692),je=c(96684),Te=c(76548),Ae=c(67664),Ie=(0,Te.gV)(we||(we=(0,_e.c)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,Ae.Gj)(),Ae.gn.color("text"),Ae.gn.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,Te.cp)(je.Af)(xe||(xe=(0,_e.c)(["\n ",";\n"])),Ie);var Re;const Me=(0,Te.cp)(je.cH).withConfig({shouldForwardProp:function(e){return!["neutral"].includes(e)}})(Re||(Re=(0,_e.c)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),Ae.Il.color("text"),Ie);var Ne,Fe=c(52536),Le=c(52822),He=c(30392),Ue=c(17624);function We(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze=(0,b.lazy)((function(){return c.e(26).then(c.bind(c,42026))}));const Ve=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:Ne||(Ne=(0,Ue.jsx)(w().Fragment,{})),children:(0,Ue.jsx)(ze,Be({},e))})};var Ye=c(32920);function qe(e,t){var n=(0,b.useState)(e),r=(0,Ye.c)(n,2),o=r[0],i=r[1];return(0,b.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Ge(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 Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return w().forwardRef((function(r,o){var i=r.value,a=(0,b.useState)(i),s=(0,Ye.c)(a,2),c=s[0],u=s[1],l=qe(c,t),d=(0,Ye.c)(l,2),f=d[0],p=d[1],h=(0,b.useRef)(i),m=r[n];return(0,b.useEffect)((function(){c!==i&&c===f&&(u(i),h.current=i,p(i))}),[i]),(0,b.useEffect)((function(){m&&h.current!==f&&(m(f),h.current=f)}),[f,m]),(0,Ue.jsx)(e,Qe(Qe(Qe({},r),{},{value:c},(0,Fe.c)({},n,u)),{},{ref:o}))}))};const Xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,b.useEffect)((function(){if(e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const $e=function(){var e=(0,b.useState)(),t=(0,Ye.c)(e,2),n=t[0],r=t[1],o=(0,b.useRef)(),i=(0,b.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,b.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,b.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Ze=function(e){var t=(0,b.useRef)(null),n=(0,b.useState)(null),r=(0,Ye.c)(n,2),o=r[0],i=r[1],a=(0,b.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,b.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,b.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},Je={useAutofocus:Xe,useDebounce:qe,Debouncer:Ke,useUserActive:Ze,usePrevious:function(e){var t=(0,b.useRef)();return(0,b.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,b.useRef)(!1);(0,b.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:$e};var et="visible",tt="hidden",nt="responsive",rt={labelVisibility:nt},ot=w().createContext(rt);const it=function(e){var t=e.children,n=(0,b.useRef)(null),r=Je.useResizeObserver(),o=(0,Ye.c)(r,2),i=o[0],a=o[1],s=n.current?(null==a?void 0:a.width)<n.current:(null==a?void 0:a.height)>45;(0,b.useEffect)((function(){n.current=s?a.width+1:null}),[s]);var c=(0,b.useMemo)((function(){return{labelVisibility:s?tt:et}}),[s]);return(0,Ue.jsx)(ot.Provider,{value:c,children:t(i)})};var at,st,ct,ut,lt,dt,ft=(0,Te.gV)(ut||(ut=(0,_e.c)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),Ae.gn.radii("button"),Ae.aU.space(-1.38),Ae.aU.space(-2.1),Ae.aU.space(0),(0,Ae.Gj)(),(function(e){return e.withoutBackground?(0,Te.gV)(ct||(ct=(0,_e.c)(["\n background: transparent;\n"]))):(0,Ae.e4)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Te.gV)(at||(at=(0,_e.c)(["\n line-height: ",";\n padding: "," ",";\n "])),Ae.gn.lineHeight("dense")({theme:n}),Ae.aU.space(-3.5)({theme:n}),Ae.aU.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Te.gV)(st||(st=(0,_e.c)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===Ae.Wn.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(pt," {\n display: none;\n }\n ");return t&&n===tt?r:t&&n===nt&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),pt=Te.cp.span.withConfig({displayName:"StyledLabelWrapper"})(lt||(lt=(0,_e.c)([""])));const ht=Te.cp.button.withConfig({displayName:"StyledButton"})(dt||(dt=(0,_e.c)(["\n ","\n"])),ft);function mt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt=w().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,b.useContext)(ot).labelVisibility;return(0,Ue.jsxs)(ht,gt(gt(gt({ref:t},n),e),{},{ink:r||Ae.Wn.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[i&&!a&&(0,Ue.jsx)(He.c,{icon:i}),a&&(0,Ue.jsx)(Ve,{ink:r||Ae.Wn.ink.BASE,look:s,position:c,size:"1em"}),!u&&o?(0,Ue.jsx)(pt,{children:o}):l||""]}))}));vt.defaultProps={iconPosition:Ae.Wn.position.PREPEND,look:Ae.Wn.look.FLAT,type:"button"};const yt=vt;var bt;(0,Te.cp)(je.cH).withConfig({shouldForwardProp:function(e){return!["labelVisibility","ink","label","icon","withoutBackground"].includes(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(bt||(bt=(0,_e.c)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),Ae.Il.color("text"),ft);var wt,xt;const Ot=Te.cp.button.withConfig({displayName:"StyledButton"})(xt||(xt=(0,_e.c)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,Ae.Gj)(),Ae.e4,(function(){return(0,Te.gV)(wt||(wt=(0,_e.c)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),Ae.aU.space(-3),Ae.gn.fontSize("base"),Ae.gn.lineHeight("regular"),Ae.aU.space(-3))}));function St(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 Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt=w().forwardRef((function(e,t){return(0,Ue.jsx)(Ot,Et(Et({ref:t,type:"button"},e),{},{children:(0,Ue.jsx)(He.c,{icon:e.icon})}))}));kt.propTypes={disabled:Pe().bool,icon:Pe().string.isRequired,ink:Ae.Wn.inkPropTypes,look:Pe().oneOf([Ae.Wn.look.FLAT,Ae.Wn.look.RAISED]),onClick:Pe().func,title:Pe().string,tabIndex:Pe().number,"data-cy":Pe().string};const Dt=kt;var Ct,Pt,_t,jt,Tt=c(32612),At=c(83400),It=c.n(At),Rt=c(56584),Mt=c.n(Rt),Nt=c(20448),Ft=c.n(Nt),Lt=c(89456),Ht=c.n(Lt),Ut="bodyAttributes",Wt="htmlAttributes",Bt="titleAttributes",zt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Vt=(Object.keys(zt).map((function(e){return zt[e]})),"charset"),Yt="cssText",qt="href",Gt="http-equiv",Qt="innerHTML",Kt="itemprop",Xt="name",$t="property",Zt="rel",Jt="src",en="target",tn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},nn="defaultTitle",rn="defer",on="encodeSpecialCharacters",an="onChangeClientState",sn="titleTemplate",cn=Object.keys(tn).reduce((function(e,t){return e[tn[t]]=t,e}),{}),un=[zt.NOSCRIPT,zt.SCRIPT,zt.STYLE],ln="data-react-helmet",dn="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},fn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),pn=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},hn=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},mn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},gn=function(e){var t=xn(e,zt.TITLE),n=xn(e,sn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=xn(e,nn);return t||r||void 0},vn=function(e){return xn(e,an)||function(){}},yn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return pn({},e,t)}),{})},bn=function(e,t){return t.filter((function(e){return void 0!==e[zt.BASE]})).map((function(e){return e[zt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},wn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Dn("Helmet: "+e+' should be of type "Array". Instead found type "'+dn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===Zt&&"canonical"===e[n].toLowerCase()||c===Zt&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==Qt&&s!==Yt&&s!==Kt||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Ht()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},xn=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},On=(Ct=Date.now(),function(e){var t=Date.now();t-Ct>16?(Ct=t,e(t)):setTimeout((function(){On(e)}),0)}),Sn=function(e){return clearTimeout(e)},En="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||On:c.g.requestAnimationFrame||On,kn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Sn:c.g.cancelAnimationFrame||Sn,Dn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Cn=null,Pn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Tn(zt.BODY,r),Tn(zt.HTML,o),jn(d,f);var p={baseTag:An(zt.BASE,n),linkTags:An(zt.LINK,i),metaTags:An(zt.META,a),noscriptTags:An(zt.NOSCRIPT,s),scriptTags:An(zt.SCRIPT,u),styleTags:An(zt.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},_n=function(e){return Array.isArray(e)?e.join(""):e},jn=function(e,t){void 0!==e&&document.title!==e&&(document.title=_n(e)),Tn(zt.TITLE,t)},Tn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(ln),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(ln):n.getAttribute(ln)!==a.join(",")&&n.setAttribute(ln,a.join(","))}},An=function(e,t){var n=document.head||document.querySelector(zt.HEAD),r=n.querySelectorAll(e+"["+ln+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Qt)n.innerHTML=t.innerHTML;else if(r===Yt)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(ln,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},In=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[tn[n]||n]=e[n],t}),t)},Mn=function(e,t,n){switch(e){case zt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[ln]=!0,o=Rn(n,r),[w().createElement(zt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=In(n),i=_n(t);return o?"<"+e+" "+ln+'="true" '+o+">"+mn(i,r)+"</"+e+">":"<"+e+" "+ln+'="true">'+mn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Ut:case Wt:return{toComponent:function(){return Rn(t)},toString:function(){return In(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[ln]=!0,r);return Object.keys(t).forEach((function(e){var n=tn[e]||e;if(n===Qt||n===Yt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),w().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Qt||e===Yt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+mn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===un.indexOf(e);return t+"<"+e+" "+ln+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Nn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Mn(zt.BASE,t,r),bodyAttributes:Mn(Ut,n,r),htmlAttributes:Mn(Wt,o,r),link:Mn(zt.LINK,i,r),meta:Mn(zt.META,a,r),noscript:Mn(zt.NOSCRIPT,s,r),script:Mn(zt.SCRIPT,c,r),style:Mn(zt.STYLE,u,r),title:Mn(zt.TITLE,{title:d,titleAttributes:f},r)}},Fn=Mt()((function(e){return{baseTag:bn([qt,en],e),bodyAttributes:yn(Ut,e),defer:xn(e,rn),encode:xn(e,on),htmlAttributes:yn(Wt,e),linkTags:wn(zt.LINK,[Zt,qt],e),metaTags:wn(zt.META,[Xt,Vt,Gt,$t,Kt],e),noscriptTags:wn(zt.NOSCRIPT,[Qt],e),onChangeClientState:vn(e),scriptTags:wn(zt.SCRIPT,[Jt,Qt],e),styleTags:wn(zt.STYLE,[Yt],e),title:gn(e),titleAttributes:yn(Bt,e)}}),(function(e){Cn&&kn(Cn),e.defer?Cn=En((function(){Pn(e,(function(){Cn=null}))})):(Pn(e),Cn=null)}),Nn)((function(){return null})),Ln=(Pt=Fn,jt=_t=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}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.shouldComponentUpdate=function(e){return!Ft()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case zt.SCRIPT:case zt.NOSCRIPT:return{innerHTML:t};case zt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return pn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[pn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case zt.TITLE:return pn({},o,((t={})[r.type]=a,t.titleAttributes=pn({},i),t));case zt.BODY:return pn({},o,{bodyAttributes:pn({},i)});case zt.HTML:return pn({},o,{htmlAttributes:pn({},i)})}return pn({},o,((n={})[r.type]=pn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=pn({},t);return Object.keys(e).forEach((function(t){var r;n=pn({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return w().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[cn[n]||n]=e[n],t}),t)}(hn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case zt.LINK:case zt.META:case zt.NOSCRIPT:case zt.SCRIPT:case zt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=hn(e,["children"]),r=pn({},n);return t&&(r=this.mapChildrenToProps(t,r)),w().createElement(Pt,r)},fn(t,null,[{key:"canUseDOM",set:function(e){Pt.canUseDOM=e}}]),t}(w().Component),_t.propTypes={base:It().object,bodyAttributes:It().object,children:It().oneOfType([It().arrayOf(It().node),It().node]),defaultTitle:It().string,defer:It().bool,encodeSpecialCharacters:It().bool,htmlAttributes:It().object,link:It().arrayOf(It().object),meta:It().arrayOf(It().object),noscript:It().arrayOf(It().object),onChangeClientState:It().func,script:It().arrayOf(It().object),style:It().arrayOf(It().object),title:It().string,titleAttributes:It().object,titleTemplate:It().string},_t.defaultProps={defer:!0,encodeSpecialCharacters:!0},_t.peek=Pt.peek,_t.rewind=function(){var e=Pt.rewind();return e||(e=Nn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},jt);Ln.renderStatic=Ln.rewind;var Hn=c(24300),Un=c.n(Hn),Wn=["border","border-spacing","padding","margin","text-align","width"];Un().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Wn.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Bn=function(e){return e?Un().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},zn={sanitizeHtml:Bn};var Vn=c(13356),Yn={error:"exclamation-circle",home:"house-blank"},qn=function(e){return Yn[e]||e};const Gn=function(e){var t=e.type;return t&&"record"!==t?(0,Ue.jsx)(He.c,{icon:qn(t)}):null};var Qn,Kn,Xn,$n,Zn,Jn,er=["component"],tr=Te.cp.div.withConfig({displayName:"StyledBreadcrumbs"})(Qn||(Qn=(0,_e.c)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Ae.gn.color("backgroundBreadcrumbs")(e)}),Ae.aU.space(-.7),Ae.aU.space(.39)),nr=(0,Te.cp)((function(e){var t=e.component,n=(0,Le.c)(e,er);return w().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Kn||(Kn=(0,_e.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.color("secondaryLight"),Ae.gn.color("breadcrumbsActive")),rr=Te.cp.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Xn||(Xn=(0,_e.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.color("breadcrumbsActive")),or=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledBreadcrumbSeparator"})($n||($n=(0,_e.c)(["\n margin-left: ",";\n margin-right: ",";\n"])),Ae.aU.space(-2),Ae.aU.space(-2)),ir=Te.cp.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Zn||(Zn=(0,_e.c)(["\n "," {\n margin-right: ",";\n }\n"])),He._,Ae.aU.space(-1));const ar=function(){return Jn||(Jn=(0,Ue.jsx)(or,{breakWords:!0,children:(0,Ue.jsx)(He.c,{icon:"chevron-right"})}))};var sr;function cr(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 ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lr=function(e){return e.title||e.display},dr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(lr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(lr).join(" - ");break;default:r=lr(n)}return r},fr=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,a=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,Tt.c)(i),(0,Tt.c)(a?[a]:[]));if(0===d.length)return null;var f,p=d.map((function(e,n){var o,i=e.display||"",a=n===d.length-1?rr:nr,s=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},f=u?t||(t=(0,Ue.jsx)(u,{})):sr||(sr=(0,Ue.jsx)(Me,{}));return(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)(ir,{children:(0,Ue.jsxs)(a,ur(ur(ur({neutral:!0},s),l),{},{onClick:(o=e,function(){c&&!1!==o.clickable&&c(o)}),component:f,children:[(0,Ue.jsx)(Gn,{type:e.type}),(0,Ue.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ue.jsx)(ar,{},"icon".concat(n)),t]}));return(0,Ue.jsxs)(tr,{backgroundColor:s,children:[l?(0,Ue.jsx)(Ln,{defer:!1,children:(0,Ue.jsx)("title",{children:dr(d,(f="client.component.breadcrumbs.createTitle",n.formatMessage({id:f})))})}):null,(0,Ue.jsx)(Ue.Fragment,{children:p})]})};fr.defaultProps={pathPrefix:""};const pr=fr;(0,y.injectIntl)(pr);var hr,mr,gr=Te.cp.div.withConfig({displayName:"StyledWrapper"})(hr||(hr=(0,_e.c)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,Ae.Gj)(),(function(e){return e.theme.colors.signal.danger}),Ae.Il.color("paper"),Ae.aU.space(-.5));const vr=function(){return mr||(mr=(0,Ue.jsx)(gr,{children:(0,Ue.jsx)(y.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var yr;const br=Te.cp.div.withConfig({displayName:"StyledButtonGroup"})(yr||(yr=(0,_e.c)(["\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"])),ht);var wr=w().forwardRef((function(e,t){return(0,Ue.jsx)(br,{ref:t,children:e.children})}));wr.propTypes={children:Pe().node};const xr=wr;var Or=c(94240),Sr=c.n(Or),Er=c(18275),kr=c.n(Er),Dr=c(98872),Cr=c.n(Dr),Pr=c(40076),_r=c.n(Pr),jr=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},Tr=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},Ar={outline:"none"},Ir=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Tr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=w().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)},Tr(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?w().cloneElement(e({focused:t,getRef:this.ref}),n):w().createElement("div",jr({ref:this.ref,style:Ar},n),e)},t}(w().Component);Ir.propTypes={children:_r().oneOfType([_r().node,_r().func]).isRequired,onBlur:_r().func,onFocus:_r().func},Ir.defaultProps={onBlur:function(){},onFocus:function(){}};const Rr=Ir;var Mr,Nr,Fr,Lr,Hr,Ur,Wr,Br,zr,Vr=c(90624),Yr=(0,Te.gV)(Mr||(Mr=(0,_e.c)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),qr=Te.cp.label.withConfig({displayName:"StyledEditableWrapper"})(Nr||(Nr=(0,_e.c)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Yr),Gr=(0,Te.gV)(Fr||(Fr=(0,_e.c)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\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(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,Ae.Gj)({color:Ae.Il.color("text")})}),Ae.Il.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Qr=(0,Te.gV)(Lr||(Lr=(0,_e.c)(["\n display: flex;\n align-items: center;\n"]))),Kr=Te.cp.div.withConfig({displayName:"StyledEditableControl"})(Hr||(Hr=(0,_e.c)(["\n &&& {\n ","\n }\n"])),Qr),Xr=Te.cp.span.withConfig({displayName:"StyledEditableValue"})(Ur||(Ur=(0,_e.c)(["\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"])),Ae.Il.color("signal.danger")),$r=c(81568),Zr=function(e){return-1*Math.abs(e)},Jr=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,$r.c)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},eo=c(19448),to=c.n(eo),no=Te.cp.div.withConfig({displayName:"StyledLocationEdit"})(Wr||(Wr=(0,_e.c)(["\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"])),Yr,Ae.aU.space(-2),Ae.aU.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?to()(n,"colors.textDisabled"):to()(n,"colors.text")}),Gr,Ae.Il.color("paper"),Ae.Il.color("signal.info"),Ae.Il.color("secondaryLight"),Ae.Il.color("backgroundItemHover")),ro=(0,Te.cp)(no).withConfig({displayName:"StyledAddressEdit"})(Br||(Br=(0,_e.c)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ao=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},c=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=s(e),c=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,Ue.jsxs)(Vn.cp.Span,{children:[a,", ",o," ",i," ",c," ",u]})},u=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},l=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},d={id:o,value:r&&r.street?s(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(io(io({},r),{},(0,Fe.c)({},e,i)))}}("street"),disabled:i};return(0,Ue.jsx)(Rr,{children:function(e){var t,r,o,s,f,p=e.getRef;return(0,Ue.jsxs)(ro,{immutable:i,name:a,ref:p,children:[(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:l,getSuggestionValue:(f="street",function(e){return e[f]}),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:u,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ue.jsxs)(Kr,{children:[n.isLoading&&(zr||(zr=(0,Ue.jsx)(Ve,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,s=t.postcode,Boolean(r&&(o||s))&&(0,Ue.jsx)(Vr.cp,{href:Jr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var so=c(14764),co=c.n(so),uo=c(39212),lo=c.n(uo);function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(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 ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(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 go(e,t){if(e){if("string"==typeof e)return mo(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)?mo(e,t):void 0}}function vo(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||go(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 yo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wo(){return wo=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},wo.apply(this,arguments)}function xo(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 Oo(e,t){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oo(e,t)}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}function Eo(e){return Eo="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},Eo(e)}function ko(e,t){if(t&&("object"===Eo(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 Do(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=So(e);if(t){var o=So(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ko(this,n)}}function Co(e){return function(e){if(Array.isArray(e))return mo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||go(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 Po=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_o="-ms-",jo="-moz-",To="-webkit-",Ao="comm",Io="rule",Ro="decl",Mo="@keyframes",No=Math.abs,Fo=String.fromCharCode,Lo=Object.assign;function Ho(e){return e.trim()}function Uo(e,t,n){return e.replace(t,n)}function Wo(e,t){return e.indexOf(t)}function Bo(e,t){return 0|e.charCodeAt(t)}function zo(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function Yo(e){return e.length}function qo(e,t){return t.push(e),e}var Go=1,Qo=1,Ko=0,Xo=0,$o=0,Zo="";function Jo(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Go,column:Qo,length:a,return:""}}function ei(e,t){return Lo(Jo("",null,null,"",null,null,0),e,{length:-e.length},t)}function ti(){return $o=Xo>0?Bo(Zo,--Xo):0,Qo--,10===$o&&(Qo=1,Go--),$o}function ni(){return $o=Xo<Ko?Bo(Zo,Xo++):0,Qo++,10===$o&&(Qo=1,Go++),$o}function ri(){return Bo(Zo,Xo)}function oi(){return Xo}function ii(e,t){return zo(Zo,e,t)}function ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function si(e){return Go=Qo=1,Ko=Vo(Zo=e),Xo=0,[]}function ci(e){return Zo="",e}function ui(e){return Ho(ii(Xo-1,fi(91===e?e+2:40===e?e+1:e)))}function li(e){for(;($o=ri())&&$o<33;)ni();return ai(e)>2||ai($o)>3?"":" "}function di(e,t){for(;--t&&ni()&&!($o<48||$o>102||$o>57&&$o<65||$o>70&&$o<97););return ii(e,oi()+(t<6&&32==ri()&&32==ni()))}function fi(e){for(;ni();)switch($o){case e:return Xo;case 34:case 39:34!==e&&39!==e&&fi($o);break;case 40:41===e&&fi(e);break;case 92:ni()}return Xo}function pi(e,t){for(;ni()&&e+$o!==57&&(e+$o!==84||47!==ri()););return"/*"+ii(t,Xo-1)+"*"+Fo(47===e?e:ni())}function hi(e){for(;!ai(ri());)ni();return ii(e,Xo)}function mi(e){return ci(gi("",null,null,null,[""],e=si(e),0,[0],e))}function gi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,S=b;g;)switch(h=y,y=ni()){case 40:if(108!=h&&58==Bo(S,d-1)){-1!=Wo(S+=Uo(ui(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=ui(y);break;case 9:case 10:case 13:case 32:S+=li(h);break;case 92:S+=di(oi()-1,7);continue;case 47:switch(ri()){case 42:case 47:qo(yi(pi(ni(),oi()),t,n),c);break;default:S+="/"}break;case 123*m:s[u++]=Vo(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Vo(S)-d&&qo(p>32?bi(S+";",r,n,d-1):bi(Uo(S," ","")+";",r,n,d-2),c);break;case 59:S+=";";default:if(qo(O=vi(S,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)gi(S,t,O,O,w,i,d,s,x);else switch(99===f&&110===Bo(S,3)?100:f){case 100:case 109:case 115:gi(e,O,O,r&&qo(vi(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:gi(S,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+Vo(S),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ti())continue;switch(S+=Fo(y),y*m){case 38:v=l>0?1:(S+="\f",-1);break;case 44:s[u++]=(Vo(S)-1)*v,v=1;break;case 64:45===ri()&&(S+=ui(ni())),f=ri(),l=d=Vo(b=S+=hi(oi())),y++;break;case 45:45===h&&2==Vo(S)&&(m=0)}}return i}function vi(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Yo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=zo(e,d+1,d=No(m=a[h])),b=e;v<p;++v)(b=Ho(m>0?f[v]+" "+y:Uo(y,/&\f/g,f[v])))&&(c[g++]=b);return Jo(e,t,n,0===o?Io:s,c,u,l)}function yi(e,t,n){return Jo(e,t,n,Ao,Fo($o),zo(e,2,-2),0)}function bi(e,t,n,r){return Jo(e,t,n,Ro,zo(e,0,r),zo(e,r+1,-1),r)}function wi(e,t){for(var n="",r=Yo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xi(e,t,n,r){switch(e.type){case"@import":case Ro:return e.return=e.return||e.value;case Ao:return"";case Mo:return e.return=e.value+"{"+wi(e.children,r)+"}";case Io:e.value=e.props.join(",")}return Vo(n=wi(e.children,r))?e.return=e.value+"{"+n+"}":""}const Oi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Si=function(e,t,n){for(var r=0,o=0;r=o,o=ri(),38===r&&12===o&&(t[n]=1),!ai(o);)ni();return ii(e,Xo)},Ei=function(e,t){return ci(function(e,t){var n=-1,r=44;do{switch(ai(r)){case 0:38===r&&12===ri()&&(t[n]=1),e[n]+=Si(Xo-1,t,n);break;case 2:e[n]+=ui(r);break;case 4:if(44===r){e[++n]=58===ri()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fo(r)}}while(r=ni());return e}(si(e),t))},ki=new WeakMap,Di=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ki.get(n))&&!r){ki.set(e,!0);for(var o=[],i=Ei(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ci=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pi(e,t){switch(function(e,t){return 45^Bo(e,0)?(((t<<2^Bo(e,0))<<2^Bo(e,1))<<2^Bo(e,2))<<2^Bo(e,3):0}(e,t)){case 5103:return To+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return To+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return To+e+jo+e+_o+e+e;case 6828:case 4268:return To+e+_o+e+e;case 6165:return To+e+_o+"flex-"+e+e;case 5187:return To+e+Uo(e,/(\w+).+(:[^]+)/,To+"box-$1$2"+_o+"flex-$1$2")+e;case 5443:return To+e+_o+"flex-item-"+Uo(e,/flex-|-self/,"")+e;case 4675:return To+e+_o+"flex-line-pack"+Uo(e,/align-content|flex-|-self/,"")+e;case 5548:return To+e+_o+Uo(e,"shrink","negative")+e;case 5292:return To+e+_o+Uo(e,"basis","preferred-size")+e;case 6060:return To+"box-"+Uo(e,"-grow","")+To+e+_o+Uo(e,"grow","positive")+e;case 4554:return To+Uo(e,/([^-])(transform)/g,"$1"+To+"$2")+e;case 6187:return Uo(Uo(Uo(e,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),e,"")+e;case 5495:case 3959:return Uo(e,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return Uo(Uo(e,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+_o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+e+e;case 4095:case 3583:case 4068:case 2532:return Uo(e,/(.+)-inline(.+)/,To+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vo(e)-1-t>6)switch(Bo(e,t+1)){case 109:if(45!==Bo(e,t+4))break;case 102:return Uo(e,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+jo+(108==Bo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?Pi(Uo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Bo(e,t+1))break;case 6444:switch(Bo(e,Vo(e)-3-(~Wo(e,"!important")&&10))){case 107:return Uo(e,":",":"+To)+e;case 101:return Uo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(45===Bo(e,14)?"inline-":"")+"box$3$1"+To+"$2$3$1"+_o+"$2box$3")+e}break;case 5936:switch(Bo(e,t+11)){case 114:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return To+e+_o+e+e}return e}var _i=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ro:e.return=Pi(e.value,e.length);break;case Mo:return wi([ei(e,{value:Uo(e.value,"@","@"+To)})],r);case Io:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([ei(e,{props:[Uo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wi([ei(e,{props:[Uo(t,/:(plac\w+)/,":"+To+"input-$1")]}),ei(e,{props:[Uo(t,/:(plac\w+)/,":-moz-$1")]}),ei(e,{props:[Uo(t,/:(plac\w+)/,_o+"input-$1")]})],r)}return""}))}}];const ji=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||_i;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[xi,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Di,Ci].concat(r,f),l=Yo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){wi(mi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Po({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};var Ti=c(84792),Ai=c.n(Ti);var Ii=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Ri=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var Mi=c(66804),Ni=/[A-Z]|^ms/g,Fi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Li=function(e){return 45===e.charCodeAt(1)},Hi=function(e){return null!=e&&"boolean"!=typeof e},Ui=Oi((function(e){return Li(e)?e:e.replace(Ni,"-$&").toLowerCase()})),Wi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fi,(function(e,t,n){return zi={name:t,styles:n,next:zi},t}))}return 1===Mi.c[e]||Li(e)||"number"!=typeof t||0===t?t:t+"px"};function Bi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Hi(a)&&(r+=Ui(i)+":"+Wi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Bi(e,t,a);switch(i){case"animation":case"animationName":r+=Ui(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Hi(a[c])&&(r+=Ui(i)+":"+Wi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=zi,i=n(e);return zi=o,Bi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var zi,Vi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Yi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";zi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Bi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Bi(n,t,e[a]),r&&(o+=i[a]);Vi.lastIndex=0;for(var s,c="";null!==(s=Vi.exec(o));)c+="-"+s[1];return{name:Ri(o)+c,styles:o,next:zi}},qi=!!b.useInsertionEffect&&b.useInsertionEffect,Gi=qi||function(e){return e()},Qi={}.hasOwnProperty,Ki=(0,b.createContext)("undefined"!=typeof HTMLElement?ji({key:"css"}):null);Ki.Provider;var Xi=function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(Ki);return e(t,r,n)}))},$i=(0,b.createContext)({});var Zi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ji=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);Gi((function(){return function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},ea=Xi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Zi],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Yi(i,void 0,(0,b.useContext)($i));a+=t.key+"-"+s.name;var c={};for(var u in e)Qi.call(e,u)&&"css"!==u&&u!==Zi&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,b.createElement)(b.Fragment,null,(0,b.createElement)(Ji,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,b.createElement)(o,c))}));var ta=function(e,t){var n=arguments;if(null==t||!Qi.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ea,o[1]=function(e,t){var n={};for(var r in t)Qi.call(t,r)&&(n[r]=t[r]);return n[Zi]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)};function na(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}var ra=c(42416),oa=c.n(ra);Math.min,Math.max;const ia=["top","right","bottom","left"];ia.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function aa(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function sa(e){if(null==e)return window;if(!aa(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){return sa(e).getComputedStyle(e)}function ua(e){return aa(e)?"":e?(e.nodeName||"").toLowerCase():""}function la(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function da(e){return e instanceof sa(e).HTMLElement}function fa(e){return e instanceof sa(e).Element}function pa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof sa(e).ShadowRoot||e instanceof ShadowRoot)}function ha(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ca(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function ma(){return!/^((?!chrome|android).)*safari/i.test(la())}function ga(e){return["html","body","#document"].includes(ua(e))}Math.min,Math.max;const va=Math.round;function ya(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&da(e)&&(c=e.offsetWidth>0&&va(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&va(s.height)/e.offsetHeight||1);const l=fa(e)?sa(e):window,d=!ma()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function ba(e){return(t=e,(t instanceof sa(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function wa(e){if("html"===ua(e))return e;const t=e.assignedSlot||e.parentNode||(pa(e)?e.host:null)||ba(e);return pa(t)?t.host:t}function xa(e){const t=wa(e);return ga(t)?e.ownerDocument.body:da(t)&&ha(t)?t:xa(t)}function Oa(e,t){var n;void 0===t&&(t=[]);const r=xa(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=sa(r),a=o?[i].concat(i.visualViewport||[],ha(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Oa(a))}const Sa=b.useLayoutEffect;var Ea=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ka=function(){};function Da(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ca(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Da(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Eo(e)&&null!==e?[e]:[];var t},_a=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ho({},yo(e,Ea))},ja=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Aa(e){return Ta(e)?window.pageYOffset:e.scrollTop}function Ia(e,t){Ta(e)?window.scrollTo(0,t):e.scrollTop=t}function Ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ka,o=Aa(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Ia(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Ma(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ia(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ia(e,Math.max(t.offsetTop-o,0))}function Na(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Fa=!1,La={get passive(){return Fa=!0}},Ha="undefined"!=typeof window?window:{};Ha.addEventListener&&Ha.removeEventListener&&(Ha.addEventListener("p",ka,La),Ha.removeEventListener("p",ka,!1));var Ua=Fa;function Wa(e){return null!=e}function Ba(e,t,n){return e?t:n}var za=["children","innerProps"],Va=["children","innerProps"];function Ya(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:Ta(l=c)?window.innerHeight:l.clientHeight,y=Aa(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,S=x+y,E=d-y-m,k=p-v+y+b,D=y+m-w,C=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&Ra(c,k,C),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&O>=r)return i&&Ra(c,k,C),{placement:"bottom",maxHeight:a?O-b:E-b};if("auto"===o||a){var P=t,_=a?x:S;return _>=r&&(P=Math.min(_-b-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Ia(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&Ra(c,D,C),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var j=t;return(!a&&S>=r||a&&x>=r)&&(j=a?x-w:S-w),i&&Ra(c,D,C),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var qa,Ga=function(e){return"auto"===e?"bottom":e},Qa=(0,b.createContext)(null),Ka=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,b.useContext)(Qa)||{}).setPortalPlacement,u=(0,b.useRef)(null),l=vo((0,b.useState)(r),2),d=l[0],f=l[1],p=vo((0,b.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Sa((function(){var e=u.current;if(e){var t="fixed"===i,s=Ya({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,g]),t({ref:u,placerProps:ho(ho({},e),{},{placement:h||Ga(o),maxHeight:d})})},Xa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ta("div",wo({},ja(e,"menu",{menu:!0}),{ref:n},r),t)},$a=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ho({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Za=$a,Ja=$a,es=["size"],ts=["innerProps","isRtl","size"];var ns,rs,os={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},is=function(e){var t=e.size,n=yo(e,es);return ta("svg",wo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:os},n))},as=function(e){return ta(is,wo({size:20},e),ta("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ss=function(e){return ta(is,wo({size:20},e),ta("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},cs=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ho({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},us=cs,ls=cs,ds=function(){var e=na.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(qa||(ns=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],rs||(rs=ns.slice(0)),qa=Object.freeze(Object.defineProperties(ns,{raw:{value:Object.freeze(rs)}})))),fs=function(e){var t=e.delay,n=e.offset;return ta("span",{css:na({animation:"".concat(ds," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ps=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ta("div",wo({ref:o},ja(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},hs=["data"],ms=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ta("div",wo({},ja(e,"group",{group:!0}),s),ta(i,wo({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ta("div",null,t))},gs=["innerRef","isDisabled","isHidden","inputClassName"],vs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ys={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ho({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vs)},bs=function(e){return ho({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},vs)},ws=function(e){var t=e.children,n=e.innerProps;return ta("div",n,t)};var xs=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ta(c,{data:r,innerProps:ho(ho({},ja(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ta(u,{data:r,innerProps:ho({},ja(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ta(l,{data:r,innerProps:ho(ho({},ja(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Os={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ta(as,null))},Control:ps,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ta(ss,null))},DownChevron:ss,CrossIcon:as,Group:ms,GroupHeading:function(e){var t=_a(e);t.data;var n=yo(t,hs);return ta("div",wo({},ja(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ta("span",wo({},t,ja(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=_a(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=yo(r,gs);return ta("div",wo({},ja(e,"input",{"input-container":!0}),{"data-value":n||""}),ta("input",wo({className:t({input:!0},s),ref:o,style:bs(a),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=yo(e,ts);return ta("div",wo({},ja(ho(ho({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ta(fs,{delay:0,offset:n}),ta(fs,{delay:160,offset:!0}),ta(fs,{delay:320,offset:!n}))},Menu:Xa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ta("div",wo({},ja(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,b.useRef)(null),c=(0,b.useRef)(null),u=vo((0,b.useState)(Ga(i)),2),l=u[0],d=u[1],f=(0,b.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=vo((0,b.useState)(null),2),h=p[0],m=p[1],g=(0,b.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Sa((function(){g()}),[g]);var v=(0,b.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...fa(e)?Oa(e):e.contextElement?Oa(e.contextElement):[],...Oa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),fa(e)&&!s&&d.observe(e),fa(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ya(e):null;return s&&function t(){const r=ya(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Sa((function(){v()}),[v]);var y=(0,b.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=ta("div",wo({ref:y},ja(ho(ho({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ta(Qa.Provider,{value:f},t?(0,ra.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=yo(e,Va);return ta("div",wo({},ja(ho(ho({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=yo(e,za);return ta("div",wo({},ja(ho(ho({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:xs,MultiValueContainer:ws,MultiValueLabel:ws,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({role:"button"},n),t||ta(as,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ta("div",wo({},ja(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ta("div",wo({},ja(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ta("div",wo({},ja(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ta("div",wo({},ja(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ss=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Es(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||Ss(r)&&Ss(o)))return!1;var r,o;return!0}for(var ks={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"},Ds=function(e){return ta("span",wo({css:ks},e))},Cs={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".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,i=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ps=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],S=s["aria-live"],E=(0,b.useMemo)((function(){return ho(ho({},Cs),l||{})}),[l]),k=(0,b.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=ho({isDisabled:u&&h(u,a),label:l,labels:p},t);n=E.onChange(m)}return n}),[t,E,h,a,d]),D=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=E.onFocus(s)}return e}),[n,r,d,h,E,o,a,u]),C=(0,b.useMemo)((function(){var e="";if(g&&v.length&&!x&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,E,v,y,x]),P="initial-input-focus"===(null==t?void 0:t.action),_=(0,b.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:w,isInitialFocus:P})}return e}),[O,n,r,p,h,m,g,E,a,w,P]),j=ta(b.Fragment,null,ta("span",{id:"aria-selection"},k),ta("span",{id:"aria-focused"},D),ta("span",{id:"aria-results"},C),ta("span",{id:"aria-guidance"},_));return ta(b.Fragment,null,ta(Ds,{id:c},P&&j),ta(Ds,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!P&&j))},_s=[{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źẑżžẓẕƶȥɀⱬꝣ"}],js=new RegExp("["+_s.map((function(e){return e.letters})).join("")+"]","g"),Ts={},As=0;As<_s.length;As++)for(var Is=_s[As],Rs=0;Rs<Is.letters.length;Rs++)Ts[Is.letters[Rs]]=Is.base;var Ms=function(e){return e.replace(js,(function(e){return Ts[e]}))},Ns=function(e,t){void 0===t&&(t=Es);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 i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ms),Fs=function(e){return e.replace(/^\s+|\s+$/g,"")},Ls=function(e){return"".concat(e.label," ").concat(e.value)},Hs=["innerRef"];function Us(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=vo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=vo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(yo(e,Hs),"onExited","in","enter","exit","appear");return ta("input",wo({ref:t},n,{css:na({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 Ws=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Bs=["boxSizing","height","overflow","paddingRight","position"],zs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Vs(e){e.preventDefault()}function Ys(e){e.stopPropagation()}function qs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Qs=!("undefined"==typeof window||!window.document||!window.document.createElement),Ks=0,Xs={capture:!1,passive:!1};var $s=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Zs={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Js(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,i=e.onTopLeave,a=(0,b.useRef)(!1),s=(0,b.useRef)(!1),c=(0,b.useRef)(0),u=(0,b.useRef)(null),l=(0,b.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&Ws(e)}}),[n,r,o,i]),d=(0,b.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,b.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,b.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,b.useCallback)((function(e){if(e){var t=!!Ua&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,b.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}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Qs){var t=document.body,n=t&&t.style;if(r&&Bs.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ks<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(zs).forEach((function(e){var t=zs[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Gs()&&(t.addEventListener("touchmove",Vs,Xs),e&&(e.addEventListener("touchstart",qs,Xs),e.addEventListener("touchmove",Ys,Xs))),Ks+=1}}),[r]),s=(0,b.useCallback)((function(e){if(Qs){var t=document.body,n=t&&t.style;Ks=Math.max(Ks-1,0),r&&Ks<1&&Bs.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Gs()&&(t.removeEventListener("touchmove",Vs,Xs),e&&(e.removeEventListener("touchstart",qs,Xs),e.removeEventListener("touchmove",Ys,Xs)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ta(b.Fragment,null,n&&ta("div",{onClick:$s,css:Zs}),t((function(e){o(e),i(e)})))}var ec={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tc=function(e){var t=e.name,n=e.onFocus;return ta("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ec,value:"",onChange:function(){}})};function nc(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function rc(){return nc(/^Mac/i)}function oc(){return nc(/^iPhone/i)||nc(/^iPad/i)||rc()&&navigator.maxTouchPoints>1}var ic={clearIndicator:ls,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ho({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:us,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ho({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ho({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ho(ho({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ys),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ho({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ja,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return ho((fo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),fo(n,"position","absolute"),fo(n,"width","100%"),fo(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ho({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ho({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ho({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ho({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Za,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return ho({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ho({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ho({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ho({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var ac={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}},sc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Na(),captureMenuScroll:!Na(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=ho({ignoreCase:!0,ignoreAccents:!0,stringify:Ls,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,c=r.matchFrom,u=s?Fs(n):n,l=s?Fs(a(t)):a(t);return o&&(u=u.toLowerCase(),l=l.toLowerCase()),i&&(u=Ns(u),l=Ms(l)),"start"===c?l.substr(0,u.length)===u:l.indexOf(u)>-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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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 cc(e,t,n,r){return{type:"option",data:t,isDisabled:gc(e,t,n),isSelected:vc(e,t,n),label:hc(e,t),value:mc(e,t),index:r}}function uc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return cc(e,n,t,r)})).filter((function(t){return fc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=cc(e,n,t,r);return fc(e,i)?i:void 0})).filter(Wa)}function lc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Co(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function dc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Co(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function fc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!bc(e)||!i)&&yc(e,{label:a,value:s,data:o},r)}var pc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},hc=function(e,t){return e.getOptionLabel(t)},mc=function(e,t){return e.getOptionValue(t)};function gc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function vc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=mc(e,t);return n.some((function(t){return mc(e,t)===r}))}function yc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var bc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},wc=1,xc=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&&Oo(e,t)}(i,e);var t,n,r,o=Do(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=rc()||oc(),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,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),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,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Co(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ba(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ba(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),i=Ba(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return pc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return dc(uc(t.props,t.state.selectValue),t.getElementId("option"))},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 Ca.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return hc(t.props,e)},t.getOptionValue=function(e){return mc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=ic[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(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.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ho(ho({},Os),e.components);var e},t.buildCategorizedOptions=function(){return uc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return lc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ho({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&&Ta(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),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>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){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return bc(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,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&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:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)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.state.instancePrefix="react-select-"+(t.props.instanceId||++wc),t.state.selectValue=Pa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=pc(n,r[a])}return t}return t=i,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&&Ma(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&&(Ma(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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ac):ho(ho({},ac),this.props.theme):ac}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,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 gc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return vc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return yc(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,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=ho(ho(ho({"aria-autocomplete":"list","aria-expanded":s,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(u,wo({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(Us,wo({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ka,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return p?null:b.createElement(s,wo({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,wo({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,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(p)return null;var w=g[0];return b.createElement(a,wo({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,wo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,wo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):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,i=this.state.isFocused;return b.createElement(n,wo({},r,{isDisabled:o,isFocused:i}))}},{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 b.createElement(e,wo({},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,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,S=f.menuPortalTarget,E=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,D=f.noOptionsMessage,C=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var _,j=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(u,wo({},l,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return b.createElement(n,wo({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;_=b.createElement(s,l,T)}else{var A=D({inputValue:h});if(null===A)return null;_=b.createElement(c,l,A)}var I={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:k},R=b.createElement(Ka,wo({},l,I),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return b.createElement(o,wo({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Js,{captureEnabled:p,onTopArrive:C,onBottomArrive:P,lockEnabled:E},(function(t){return b.createElement(i,wo({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),_)})))}));return S||"fixed"===O?b.createElement(a,wo({},l,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(tc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return b.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return b.createElement(Ps,wo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return b.createElement(r,wo({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.createElement(t,wo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.createElement(o,wo({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,wo({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Pa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return lc(uc(e,t))}(e,h):[],v=d?dc(uc(e,h),"".concat(c,"-option")):[],y=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,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:pc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:Ba(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),ho(ho(ho({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(b.Component);xc.defaultProps=sc;var Oc=(0,b.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,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=yo(e,bo),m=vo((0,b.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],y=vo((0,b.useState)(void 0!==c?c:o),2),w=y[0],x=y[1],O=vo((0,b.useState)(void 0!==p?p:a),2),S=O[0],E=O[1],k=(0,b.useCallback)((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),D=(0,b.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),C=(0,b.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),P=(0,b.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),_=void 0!==s?s:g,j=void 0!==c?c:w,T=void 0!==p?p:S;return ho(ho({},h),{},{inputValue:_,menuIsOpen:j,onChange:k,onInputChange:D,onMenuClose:P,onMenuOpen:C,value:T})}(e);return b.createElement(xc,wo({ref:t},n))})),Sc=Oc;function Ec(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 kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dc=(0,y.injectIntl)((function(e){var t;return(0,Ue.jsx)("span",kc(kc({},e.innerProps),{},{children:(0,Ue.jsx)(Dt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Cc=c(49864);function Pc(){return Pc=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},Pc.apply(this,arguments)}const _c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class jc extends b.Component{constructor(...e){super(...e),this._targetNode=b.createRef(),this._elementNode=b.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,b.isValidElement)(e)||(e=null),(0,b.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Cc(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,_c),i=Pc({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?b.createElement(b.Fragment,null,e,t&&this._elementParentNode&&ra.createPortal(t,this._elementParentNode)):null}}var Tc,Ac,Ic,Rc,Mc,Nc,Fc,Lc,Hc,Uc,Wc,Bc,zc;function Vc(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 Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qc=Te.cp.span.withConfig({displayName:"StyledClickableWrapper"})(Tc||(Tc=(0,_e.c)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Gc=Te.cp.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ac||(Ac=(0,_e.c)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Qc=Te.cp.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Ic||(Ic=(0,_e.c)(["\n outline-style: none;\n"]))),Kc=Te.cp.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Rc||(Rc=(0,_e.c)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),Ae.Il.color("paper"),Ae.Il.radii("form"),(function(e){return e.isTopAligned&&(0,Te.gV)(Mc||(Mc=(0,_e.c)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Xc=(0,Te.cp)(jc).withConfig({displayName:"StyledTether"})(Nc||(Nc=(0,_e.c)(["\n && {\n z-index: 1;\n }\n"]))),$c=(Te.cp.div.withConfig({displayName:"StyledNonTether"})(Fc||(Fc=(0,_e.c)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),Ae.aU.space(1.5)),(0,Te.cp)(Os.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Lc||(Lc=(0,_e.c)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Zc=Te.cp.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Hc||(Hc=(0,_e.c)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,Ae.Gj)({color:Ae.Il.color("signal.info"),lineHeight:"normal"}),Ae.aU.space(-.5),Ae.aU.space(-.2)),Jc=Te.cp.div.withConfig({displayName:"StyledSingleValueWrapper"})(Uc||(Uc=(0,_e.c)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?Ae.Il.color("text"):"inherit"})),eu=Te.cp.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Wc||(Wc=(0,_e.c)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),tu=Te.cp.div.withConfig({displayName:"StyledMultiValueWrapper"})(Bc||(Bc=(0,_e.c)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),nu=Te.cp.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(zc||(zc=(0,_e.c)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),ru=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c=Ae.aU.space(-1)({theme:e}),u=Ae.aU.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return Yc(Yc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Yc(Yc(Yc({},e),l),{},{outline:0})},control:function(e,t){return Yc(Yc({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Yc(Yc({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Yc(Yc({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),Yc(Yc(Yc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Yc(Yc(Yc({},t),l),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Yc(Yc({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Yc(Yc({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Yc(Yc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Yc(Yc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Yc(Yc({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Yc(Yc({},e),{},{padding:0,margin:0})}}};function ou(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 iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const au=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ue.jsx)(Os.DropdownIndicator,iu(iu({},e),{},{children:(0,Ue.jsx)(eu,{children:(0,Ue.jsx)(Dt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Pe().shape({key:Pe().any.isRequired,display:Pe().string});var su,cu,uu;function lu(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 du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},pu=function(e,t){return function(n){n.stopPropagation(),e(t)}},hu=function(e,t){return function(n){n.stopPropagation(),e(t)}},mu=function(e){e.stopPropagation()};const gu=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ue.jsx)(Kc,{isTopAligned:f,children:(0,Ue.jsxs)(Os.IndicatorsContainer,du(du({},e),{},{children:[e.children,n&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:pu(n,u),children:su||(su=(0,Ue.jsx)(Dt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:fu(r,d,u),children:cu||(cu=(0,Ue.jsx)(Dt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:hu(o,u),children:uu||(uu=(0,Ue.jsx)(Dt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var vu;const yu=function(){return vu||(vu=(0,Ue.jsx)("span",{children:(0,Ue.jsx)(Ve,{size:"1.8rem"})}))};var bu="tocco-app",wu=c(14596),xu=c.n(wu),Ou=c(86520),Su=c.n(Ou),Eu=c(36176),ku=c.n(Eu),Du=c(65120),Cu=c.n(Du),Pu=c(66808),_u=c.n(Pu),ju=c(39556),Tu=c.n(ju),Au=c(16092),Iu={};Iu.styleTagTransform=Tu(),Iu.setAttributes=Cu(),Iu.insert=ku().bind(null,"head"),Iu.domAPI=Su(),Iu.insertStyleElement=_u();xu()(Au.c,Iu);Au.c&&Au.c.locals&&Au.c.locals;var Ru,Mu=c(45104),Nu=c.n(Mu),Fu=Te.cp.span.withConfig({displayName:"StyledChildrenWrapper"})(Ru||(Ru=(0,_e.c)(["\n cursor: pointer;\n user-select: none;\n"]))),Lu=w().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ue.jsx)(Fu,{onClick:r,ref:t,children:n})}));Lu.propTypes={children:Pe().any,onOpen:Pe().func};const Hu=Lu;function Uu(e){return Uu="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},Uu(e)}function Wu(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Bu(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function zu(e){Bu(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Uu(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Vu(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}var Yu={};function qu(){return Yu}function Gu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Qu(e){Bu(1,arguments);var t=zu(e);return t.setHours(0,0,0,0),t}function Ku(e,t){Bu(2,arguments);var n=zu(e),r=zu(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}Math.pow(10,8);var Xu=6e4,$u=36e5;function Zu(e){if(Bu(1,arguments),!function(e){return Bu(1,arguments),e instanceof Date||"object"===Uu(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=zu(e);return!isNaN(Number(t))}Math.ceil,Math.round,Math.floor;function Ju(e,t){Bu(2,arguments);var n=zu(e),r=zu(t),o=Ku(n,r),i=Math.abs(function(e,t){Bu(2,arguments);var n=zu(e),r=zu(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=Ku(n,r)===-o,s=o*(i-Number(a));return 0===s?0:s}function el(e,t){return Bu(2,arguments),function(e,t){Bu(2,arguments);var n=zu(e).getTime(),r=Wu(t);return new Date(n+r)}(e,-Wu(t))}function tl(e){Bu(1,arguments);var t=zu(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function nl(e){Bu(1,arguments);var t=zu(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=tl(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=tl(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var rl=6048e5;function ol(e){Bu(1,arguments);var t=zu(e),n=tl(t).getTime()-function(e){Bu(1,arguments);var t=nl(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),tl(n)}(t).getTime();return Math.round(n/rl)+1}function il(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=qu(),d=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=zu(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function al(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=zu(e),d=l.getUTCFullYear(),f=qu(),p=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var m=il(h,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=il(g,t);return l.getTime()>=m.getTime()?d+1:l.getTime()>=v.getTime()?d:d-1}var sl=6048e5;function cl(e,t){Bu(1,arguments);var n=zu(e),r=il(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=qu(),d=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=al(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),il(p,t)}(n,t).getTime();return Math.round(r/sl)+1}function ul(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ll={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ul("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ul(n+1,2)},d:function(e,t){return ul(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ul(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ul(e.getUTCHours(),t.length)},m:function(e,t){return ul(e.getUTCMinutes(),t.length)},s:function(e,t){return ul(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ul(Math.floor(r*Math.pow(10,n-3)),t.length)}};const dl=ll;var fl="midnight",pl="noon",hl="morning",ml="afternoon",gl="evening",vl="night",yl={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return dl.y(e,t)},Y:function(e,t,n,r){var o=al(e,r),i=o>0?o:1-o;return"YY"===t?ul(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ul(i,t.length)},R:function(e,t){return ul(nl(e),t.length)},u:function(e,t){return ul(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ul(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ul(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return dl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ul(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=cl(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ul(o,t.length)},I:function(e,t,n){var r=ol(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ul(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):dl.d(e,t)},D:function(e,t,n){var r=function(e){Bu(1,arguments);var t=zu(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ul(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ul(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ul(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ul(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?pl:0===o?fl:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?gl:o>=12?ml:o>=4?hl:vl,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return dl.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):dl.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):dl.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):dl.s(e,t)},S:function(e,t){return dl.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return wl(o);case"XXXX":case"XX":return xl(o);default:return xl(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return wl(o);case"xxxx":case"xx":return xl(o);default:return xl(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bl(o,":");default:return"GMT"+xl(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bl(o,":");default:return"GMT"+xl(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ul(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ul((r._originalDate||e).getTime(),t.length)}};function bl(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+ul(i,2)}function wl(e,t){return e%60==0?(e>0?"-":"+")+ul(Math.abs(e)/60,2):xl(e,t)}function xl(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ul(Math.floor(o/60),2)+n+ul(o%60,2)}const Ol=yl;var Sl=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},El=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},kl={p:El,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Sl(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Sl(o,t)).replace("{{time}}",El(i,t))}};const Dl=kl;var Cl=["D","DD"],Pl=["YY","YYYY"];function _l(e){return-1!==Cl.indexOf(e)}function jl(e){return-1!==Pl.indexOf(e)}function Tl(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Al={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Il=function(e,t,n){var r,o=Al[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Rl(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ml={date:Rl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Rl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Nl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const Fl=function(e,t,n,r){return Nl[e]};function Ll(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Hl={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ll({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const Ul=Hl;function Wl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}function Bl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}var zl={ordinalNumber:Bl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Wl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Vl={code:"en-US",formatDistance:Il,formatLong:Ml,formatRelative:Fl,localize:Ul,match:zl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Yl=Vl;var ql=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ql=/^'([^]*?)'?$/,Kl=/''/g,Xl=/[a-zA-Z]/;function $l(e,t,n){var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w;Bu(2,arguments);var x=String(t),O=qu(),S=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:O.locale)&&void 0!==r?r:Yl,E=Wu(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:O.firstWeekContainsDate)&&void 0!==a?a:null===(d=O.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Wu(null!==(p=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:O.weekStartsOn)&&void 0!==h?h:null===(b=O.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var D=zu(e);if(!Zu(D))throw new RangeError("Invalid time value");var C=el(D,Gu(D)),P={firstWeekContainsDate:E,weekStartsOn:k,locale:S,_originalDate:D};return x.match(Gl).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Dl[t])(e,S.formatLong):e})).join("").match(ql).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(Ql);if(!t)return e;return t[1].replace(Kl,"'")}(r);var i=Ol[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!jl(r)||Tl(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!_l(r)||Tl(r,t,String(e)),i(C,r,S.localize,P);if(o.match(Xl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function Zl(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}function Jl(e){return Bu(1,arguments),zu(e).getHours()}function ed(e){return Bu(1,arguments),zu(e).getMinutes()}function td(e){return Bu(1,arguments),zu(e).getSeconds()}function nd(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 rd(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 nd(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)?nd(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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function od(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}function ad(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&&id(e,t)}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function cd(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=sd(e);if(t){var o=sd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return od(e)}(this,n)}}function ud(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ld(e){var t=function(e,t){if("object"!==Uu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Uu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Uu(t)?t:String(t)}function dd(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,ld(r.key),r)}}function fd(e,t,n){return t&&dd(e.prototype,t),n&&dd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pd(e,t,n){return(t=ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hd=function(){function e(){ud(this,e),pd(this,"priority",void 0),pd(this,"subPriority",0)}return fd(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),md=function(e){ad(n,e);var t=cd(n);function n(e,r,o,i,a){var s;return ud(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return fd(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}(hd),gd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"subPriority",-1),e}return fd(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}(hd),vd=function(){function e(){ud(this,e),pd(this,"incompatibleTokens",void 0),pd(this,"priority",void 0),pd(this,"subPriority",void 0)}return fd(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new md(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),yd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",140),pd(od(e),"incompatibleTokens",["R","u","t","T"]),e}return fd(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"});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}(vd),bd=/^(1[0-2]|0?\d)/,wd=/^(3[0-1]|[0-2]?\d)/,xd=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Od=/^(5[0-3]|[0-4]?\d)/,Sd=/^(2[0-3]|[0-1]?\d)/,Ed=/^(2[0-4]|[0-1]?\d)/,kd=/^(1[0-1]|0?\d)/,Dd=/^(1[0-2]|0?\d)/,Cd=/^[0-5]?\d/,Pd=/^[0-5]?\d/,_d=/^\d/,jd=/^\d{1,2}/,Td=/^\d{1,3}/,Ad=/^\d{1,4}/,Id=/^-?\d+/,Rd=/^-?\d/,Md=/^-?\d{1,2}/,Nd=/^-?\d{1,3}/,Fd=/^-?\d{1,4}/,Ld=/^([+-])(\d{2})(\d{2})?|Z/,Hd=/^([+-])(\d{2})(\d{2})|Z/,Ud=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wd=/^([+-])(\d{2}):(\d{2})|Z/,Bd=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function zd(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Vd(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Yd(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,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*$u+i*Xu+1e3*a),rest:t.slice(n[0].length)}}function qd(e){return Vd(Id,e)}function Gd(e,t){switch(e){case 1:return Vd(_d,t);case 2:return Vd(jd,t);case 3:return Vd(Td,t);case 4:return Vd(Ad,t);default:return Vd(new RegExp("^\\d{1,"+e+"}"),t)}}function Qd(e,t){switch(e){case 1:return Vd(Rd,t);case 2:return Vd(Md,t);case 3:return Vd(Nd,t);case 4:return Vd(Fd,t);default:return Vd(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Xd(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function $d(e){return e%400==0||e%4==0&&e%100!=0}var Zd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return zd(Gd(4,e),r);case"yo":return zd(n.ordinalNumber(e,{unit:"year"}),r);default:return zd(Gd(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=Xd(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(vd),Jd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return zd(Gd(4,e),r);case"Yo":return zd(n.ordinalNumber(e,{unit:"year"}),r);default:return zd(Gd(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=al(e,r);if(n.isTwoDigitYear){var i=Xd(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),il(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),il(e,r)}}]),n}(vd),ef=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return Qd("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),tl(r)}}]),n}(vd),tf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return Qd("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}(vd),nf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",120),pd(od(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Gd(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"});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}(vd),rf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",120),pd(od(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Gd(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"});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}(vd),of=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),pd(od(e),"priority",110),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return zd(Vd(bd,e),r);case"MM":return zd(Gd(2,e),r);case"Mo":return zd(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"});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}(vd),af=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",110),pd(od(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return zd(Vd(bd,e),r);case"LL":return zd(Gd(2,e),r);case"Lo":return zd(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"});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}(vd);var sf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",100),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Vd(Od,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return il(function(e,t,n){Bu(2,arguments);var r=zu(e),o=Wu(t),i=cl(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(vd);var cf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",100),pd(od(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Vd(Od,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return tl(function(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t),o=ol(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(vd),uf=[31,28,31,30,31,30,31,31,30,31,30,31],lf=[31,29,31,30,31,30,31,31,30,31,30,31],df=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"subPriority",1),pd(od(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Vd(wd,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){var n=$d(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=lf[r]:t>=1&&t<=uf[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(vd),ff=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"subpriority",1),pd(od(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Vd(xd,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return $d(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}(vd);function pf(e,t,n){var r,o,i,a,s,c,u,l;Bu(2,arguments);var d=qu(),f=Wu(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=zu(e),h=Wu(t),m=((h%7+7)%7<f?7:0)+h-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+m),p}var hf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return fd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd),mf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return fd(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 zd(Gd(t.length,e),o);case"eo":return zd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd),gf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return fd(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 zd(Gd(t.length,e),o);case"co":return zd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd);var vf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Gd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return zd(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 zd(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zd(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return zd(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){Bu(2,arguments);var n=Wu(t);n%7==0&&(n-=7);var r=zu(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(vd),yf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),bf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),wf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["a","b","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),xf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["H","K","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Vd(Dd,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Of=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Vd(Sd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Sf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["h","H","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Vd(kd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Ef=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Vd(Ed,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),kf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",60),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Vd(Cd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Gd(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}(vd),Df=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",50),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Vd(Pd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Gd(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}(vd),Cf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",30),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return zd(Gd(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}(vd),Pf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"incompatibleTokens",["t","T","x"]),e}return fd(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Yd(Ld,e);case"XX":return Yd(Hd,e);case"XXXX":return Yd(Ud,e);case"XXXXX":return Yd(Bd,e);default:return Yd(Wd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(vd),_f=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"incompatibleTokens",["t","T","X"]),e}return fd(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Yd(Ld,e);case"xx":return Yd(Hd,e);case"xxxx":return Yd(Ud,e);case"xxxxx":return Yd(Bd,e);default:return Yd(Wd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(vd),jf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",40),pd(od(e),"incompatibleTokens","*"),e}return fd(n,[{key:"parse",value:function(e){return qd(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(vd),Tf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",20),pd(od(e),"incompatibleTokens","*"),e}return fd(n,[{key:"parse",value:function(e){return qd(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(vd),Af={G:new yd,y:new Zd,Y:new Jd,R:new ef,u:new tf,Q:new nf,q:new rf,M:new of,L:new af,w:new sf,I:new cf,d:new df,D:new ff,E:new hf,e:new mf,c:new gf,i:new vf,a:new yf,b:new bf,B:new wf,h:new xf,H:new Of,K:new Sf,k:new Ef,m:new kf,s:new Df,S:new Cf,X:new Pf,x:new _f,t:new jf,T:new Tf},If=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mf=/^'([^]*?)'?$/,Nf=/''/g,Ff=/\S/,Lf=/[a-zA-Z]/;function Hf(e,t,n,r){var o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w,x;Bu(3,arguments);var O=String(e),S=String(t),E=qu(),k=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:E.locale)&&void 0!==o?o:Yl;if(!k.match)throw new RangeError("locale must contain match property");var D=Wu(null!==(a=null!==(s=null!==(c=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:E.firstWeekContainsDate)&&void 0!==s?s:null===(f=E.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Wu(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:E.weekStartsOn)&&void 0!==m?m:null===(w=E.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==h?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===S)return""===O?zu(n):new Date(NaN);var P,_={firstWeekContainsDate:D,weekStartsOn:C,locale:k},j=[new gd],T=S.match(Rf).map((function(e){var t=e[0];return t in Dl?(0,Dl[t])(e,k.formatLong):e})).join("").match(If),A=[],I=rd(T);try{var R=function(){var t=P.value;null!=r&&r.useAdditionalWeekYearTokens||!jl(t)||Tl(t,S,e),null!=r&&r.useAdditionalDayOfYearTokens||!_l(t)||Tl(t,S,e);var n=t[0],o=Af[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=A.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));A.push({token:n,fullToken:t});var s=o.run(O,t,k.match,_);if(!s)return{v:new Date(NaN)};j.push(s.setter),O=s.rest}else{if(n.match(Lf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Mf)[1].replace(Nf,"'")),0!==O.indexOf(t))return{v:new Date(NaN)};O=O.slice(t.length)}};for(I.s();!(P=I.n()).done;){var M=R();if("object"===Uu(M))return M.v}}catch(e){I.e(e)}finally{I.f()}if(O.length>0&&Ff.test(O))return new Date(NaN);var N=j.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 j.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),F=zu(n);if(isNaN(F.getTime()))return new Date(NaN);var L,H=el(F,Gu(F)),U={},W=rd(N);try{for(W.s();!(L=W.n()).done;){var B=L.value;if(!B.validate(H,_))return new Date(NaN);var z=B.set(H,U,_);Array.isArray(z)?(H=z[0],Zl(U,z[1])):H=z}}catch(e){W.e(e)}finally{W.f()}return H}function Uf(e,t,n){return Bu(2,arguments),Zu(Hf(e,t,new Date,n))}function Wf(e,t){var n;Bu(1,arguments);var r=Wu(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,i=function(e){var t,n={},r=e.split(Bf.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Bf.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Bf.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=Bf.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(i.date){var a=function(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,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(zf);if(!n)return new Date(NaN);var r=!!n[4],o=qf(n[1]),i=qf(n[2])-1,a=qf(n[3]),s=qf(n[4]),c=qf(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Qf[t]||(Kf(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Kf(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,c=o.getTime(),u=0;if(i.time&&(u=function(e){var t=e.match(Vf);if(!t)return NaN;var n=Gf(t[1]),r=Gf(t[2]),o=Gf(t[3]);if(!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))return NaN;return n*$u+r*Xu+1e3*o}(i.time),isNaN(u)))return new Date(NaN);if(!i.timezone){var l=new Date(c+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(Yf);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*$u+o*Xu)}(i.timezone),isNaN(s)?new Date(NaN):new Date(c+u+s)}var Bf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Vf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qf(e){return e?parseInt(e):1}function Gf(e){return e&&parseFloat(e.replace(",","."))||0}var Qf=[31,null,31,30,31,30,31,31,30,31,30,31];function Kf(e){return e%400==0||e%4==0&&e%100!=0}function Xf(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setHours(r),n}function $f(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setMinutes(r),n}function Zf(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setSeconds(r),n}var Jf={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const ep=function(e,t,n){var r,o=null!=n&&n.addSuffix?Jf[e].withPreposition:Jf[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};const tp={date:Rl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var np={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const rp=function(e,t,n,r){return np[e]};var op={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},ip={narrow:op.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:op.wide};const ap={ordinalNumber:function(e){return Number(e)+"."},era:Ll({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:op,formattingValues:ip,defaultWidth:"wide"}),day:Ll({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var sp={ordinalNumber:Bl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Wl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const cp={code:"de",formatDistance:ep,formatLong:tp,formatRelative:rp,localize:ap,match:sp,options:{weekStartsOn:1,firstWeekContainsDate:4}};var up={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const lp=function(e,t,n){var r,o=up[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var dp={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:Ll({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const fp=dp;var pp={ordinalNumber:Bl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Wl({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const hp=pp;var mp={date:Rl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var gp={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const vp=function(e,t,n,r){return gp[e]};const yp={code:"fr-CH",formatDistance:lp,formatLong:mp,formatRelative:vp,localize:fp,match:hp,options:{weekStartsOn:1,firstWeekContainsDate:4}};var bp={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const wp=function(e,t,n){var r,o=bp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const xp={date:Rl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Op(e,t,n){Bu(2,arguments);var r=il(e,n),o=il(t,n);return r.getTime()===o.getTime()}var Sp=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Ep(e){return"'"+Sp[e]+" alle' p"}var kp={lastWeek:function(e,t,n){var r=e.getUTCDay();return Op(e,t,n)?Ep(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Sp[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return Op(e,t,n)?Ep(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Sp[e]+" prossimo alle' p"}(r)},other:"P"};const Dp=function(e,t,n,r){var o=kp[e];return"function"==typeof o?o(t,n,r):o};var Cp={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:Ll({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const Pp=Cp;var _p={ordinalNumber:Bl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Wl({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const jp={code:"it",formatDistance:wp,formatLong:xp,formatRelative:Dp,localize:Pp,match:_p,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Tp=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Ap=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=Tp(e/1e3%60,3);e-=Math.round(1e3*t);var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},Ip=function(e){switch(e){case"fr":return yp;case"en":return Vl;case"it":return jp;default:return cp}},Rp=function(e){return Ip(e).formatLong.date({width:"short"})},Mp=function(e){return Rp(e).replace(/[/.]/g,"")};const Np={millisecondsToDuration:Ap,formatDuration:function(e){var t=Ap(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},getDateFnsLocale:Ip,getLocalizedDateFormat:Rp,getLocalizedDateTimeFormat:function(e){return"".concat(Rp(e)," HH:mm")},getLocalizedDateFormatWithoutPunctuation:Mp,getLocalizedDateTimeFormatWithoutPunctuation:function(e){return"".concat(Mp(e)," HHmm")},useTwoDigitYear:function(e){return e.replace(/y+/,"yy")},setCurrentTime:function(e){var t=new Date,n=new Date(e);return n=function(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setMilliseconds(r),n}(n=Zf(n=$f(n=Xf(n,Jl(t)),ed(t)),0),0),n},selectUnit:function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}}};var Fp=function(){(0,Mu.registerLocale)("en",Np.getDateFnsLocale("en")),(0,Mu.registerLocale)("en-US",Np.getDateFnsLocale("en")),(0,Mu.registerLocale)("de-CH",Np.getDateFnsLocale("de-CH")),(0,Mu.registerLocale)("de-DE",Np.getDateFnsLocale("de-DE")),(0,Mu.registerLocale)("de",Np.getDateFnsLocale("de")),(0,Mu.registerLocale)("fr",Np.getDateFnsLocale("fr")),(0,Mu.registerLocale)("fr-CH",Np.getDateFnsLocale("fr")),(0,Mu.registerLocale)("it",Np.getDateFnsLocale("it")),(0,Mu.registerLocale)("it-CH",Np.getDateFnsLocale("it")),(0,Mu.setDefaultLocale)("de")};Fp();const Lp=(0,Te.QX)((0,y.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,b.useRef)(null),c=(0,b.useState)(!1),u=(0,Ye.c)(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Ue.jsx)(Nu(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ue.jsx)(Hu,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Hp,Up,Wp,Bp,zp,Vp,Yp=Ae.Il.color("secondaryLight"),qp=Ae.Il.color("paper"),Gp=Ae.Il.color("text"),Qp=Ae.Il.color("secondary"),Kp=Ae.Il.radii("form"),Xp=(0,Te.Ud)(Hp||(Hp=(0,_e.c)(["\n .react-datepicker-popper {\n && {\n // higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; // static in all themes\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),He._,Gp,Ae.Il.radii("form"),Kp,Yp,qp,(0,Ae.Gj)(),(0,Ae.Gj)(),Yp,Kp,Kp,Ae.aU.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",qp,Ae.aU.font(1),Ae.Il.fontWeight("bold"),(0,Ae.Gj)({fontWeight:Ae.Il.fontWeight("bold")}),qp,Ae.aU.font(-2),Ae.aU.space(-1.8),Qp,Qp,Qp,Yp,Yp,Yp,Qp,(0,Ae.Gj)(),qp,Ae.aU.space(-.5),Ae.Il.color("backgroundItemHover"),Kp,Ae.aU.space(-.5),qp,Ae.Il.color("border"),Ae.Il.radii("form"),Ae.aU.space(-1),Ae.aU.space(-1),Ae.aU.font(1),qp,Ae.Il.fontWeight("bold"),Ae.aU.space(-1),qp,Ae.aU.font(0),Gp,Yp,Yp,Ae.Il.radii("form"),qp,Yp,Qp,Gp,Gp,qp,Yp,Ae.Il.color("backgroundItemHover"),Ae.Il.color("textDisabled"),Ae.Il.color("border"),Ae.Il.radii("form")),$p=(0,Te.Ud)(Up||(Up=(0,_e.c)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),Ae.Il.color("signal.success"),Ae.Il.color("signal.info"),Ae.Il.color("signal.warning"),Ae.Il.color("signal.danger"),Ae.Il.color("textDisabled")),Zp=(0,Te.Ud)(Wp||(Wp=(0,_e.c)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),Ae.Il.color("backgroundScrollbar"),Ae.Il.color("backgroundScrollbarHover"),Ae.Il.color("backgroundScrollbar"));const Jp=function(){return(0,Ue.jsxs)(Ue.Fragment,{children:[Bp||(Bp=(0,Ue.jsx)($p,{})),zp||(zp=(0,Ue.jsx)(Xp,{})),Vp||(Vp=(0,Ue.jsx)(Zp,{}))]})};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 n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nh=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ue.jsx)(Xc,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ue.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ue.jsx)("div",{ref:o,className:bu,children:(0,Ue.jsx)($c,th(th({},Sr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};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 oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rh(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ih=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ue.jsxs)(Os.MenuList,oh(oh({},e),{},{className:"MenuList",children:[n,r&&(0,Ue.jsx)(Zc,{children:o})]}))};b.createContext(),b.createContext();var ah=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},sh="undefined"!=typeof window&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,ch="top",uh="bottom",lh="right",dh="left",fh="auto",ph=[ch,uh,lh,dh],hh="start",mh="end",gh="clippingParents",vh="viewport",yh="popper",bh="reference",wh=ph.reduce((function(e,t){return e.concat([t+"-"+hh,t+"-"+mh])}),[]),xh=[].concat(ph,[fh]).reduce((function(e,t){return e.concat([t,t+"-"+hh,t+"-"+mh])}),[]),Oh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sh(e){return e?(e.nodeName||"").toLowerCase():null}function Eh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kh(e){return e instanceof Eh(e).Element||e instanceof Element}function Dh(e){return e instanceof Eh(e).HTMLElement||e instanceof HTMLElement}function Ch(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eh(e).ShadowRoot||e instanceof ShadowRoot)}const Ph={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Dh(o)&&Sh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dh(r)&&Sh(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function _h(e){return e.split("-")[0]}var jh=Math.max,Th=Math.min,Ah=Math.round;function Ih(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Rh(){return!/^((?!chrome|android).)*safari/i.test(Ih())}function Mh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Dh(e)&&(o=e.offsetWidth>0&&Ah(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ah(r.height)/e.offsetHeight||1);var a=(kh(e)?Eh(e):window).visualViewport,s=!Rh()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,d=r.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function Nh(e){var t=Mh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ch(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lh(e){return Eh(e).getComputedStyle(e)}function Hh(e){return["table","td","th"].indexOf(Sh(e))>=0}function Uh(e){return((kh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wh(e){return"html"===Sh(e)?e:e.assignedSlot||e.parentNode||(Ch(e)?e.host:null)||Uh(e)}function Bh(e){return Dh(e)&&"fixed"!==Lh(e).position?e.offsetParent:null}function zh(e){for(var t=Eh(e),n=Bh(e);n&&Hh(n)&&"static"===Lh(n).position;)n=Bh(n);return n&&("html"===Sh(n)||"body"===Sh(n)&&"static"===Lh(n).position)?t:n||function(e){var t=/firefox/i.test(Ih());if(/Trident/i.test(Ih())&&Dh(e)&&"fixed"===Lh(e).position)return null;var n=Wh(e);for(Ch(n)&&(n=n.host);Dh(n)&&["html","body"].indexOf(Sh(n))<0;){var r=Lh(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yh(e,t,n){return jh(e,Th(t,n))}function qh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Qh={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_h(n.placement),c=Vh(s),u=[dh,lh].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return qh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gh(e,ph))}(o.padding,n),d=Nh(i),f="y"===c?ch:dh,p="y"===c?uh:lh,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=zh(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[f],w=v-d[u]-l[p],x=v/2-d[u]/2+y,O=Yh(b,x,w),S=c;n.modifiersData[r]=((t={})[S]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Fh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kh(e){return e.split("-")[1]}var Xh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $h(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof l?l({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=dh,w=ch,x=window;if(u){var O=zh(n),S="clientHeight",E="clientWidth";if(O===Eh(n)&&"static"!==Lh(O=Uh(n)).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth"),o===ch||(o===dh||o===lh)&&i===mh)w=uh,m-=(d&&O===x&&x.visualViewport?x.visualViewport.height:O[S])-r.height,m*=c?1:-1;if(o===dh||(o===ch||o===uh)&&i===mh)b=lh,p-=(d&&O===x&&x.visualViewport?x.visualViewport.width:O[E])-r.width,p*=c?1:-1}var k,D=Object.assign({position:s},u&&Xh),C=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ah(n*o)/o||0,y:Ah(r*o)/o||0}}({x:p,y:m},Eh(n)):{x:p,y:m};return p=C.x,m=C.y,c?Object.assign({},D,((k={})[w]=y?"0":"",k[b]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},D,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const Zh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:_h(t.placement),variation:Kh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,$h(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$h(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Jh={passive:!0};const em={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Eh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Jh)})),s&&c.addEventListener("resize",n.update,Jh),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Jh)})),s&&c.removeEventListener("resize",n.update,Jh)}},data:{}};var tm={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,(function(e){return tm[e]}))}var rm={start:"end",end:"start"};function om(e){return e.replace(/start|end/g,(function(e){return rm[e]}))}function im(e){var t=Eh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function am(e){return Mh(Uh(e)).left+im(e).scrollLeft}function sm(e){var t=Lh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cm(e){return["html","body","#document"].indexOf(Sh(e))>=0?e.ownerDocument.body:Dh(e)&&sm(e)?e:cm(Wh(e))}function um(e,t){var n;void 0===t&&(t=[]);var r=cm(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Eh(r),a=o?[i].concat(i.visualViewport||[],sm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(um(Wh(a)))}function lm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dm(e,t,n){return t===vh?lm(function(e,t){var n=Eh(e),r=Uh(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=Rh();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+am(e),y:c}}(e,n)):kh(t)?function(e,t){var n=Mh(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):lm(function(e){var t,n=Uh(e),r=im(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+am(e),c=-r.scrollTop;return"rtl"===Lh(o||n).direction&&(s+=jh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Uh(e)))}function fm(e,t,n,r){var o="clippingParents"===t?function(e){var t=um(Wh(e)),n=["absolute","fixed"].indexOf(Lh(e).position)>=0&&Dh(e)?zh(e):e;return kh(n)?t.filter((function(e){return kh(e)&&Fh(e,n)&&"body"!==Sh(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=dm(e,n,r);return t.top=jh(o.top,t.top),t.right=Th(o.right,t.right),t.bottom=Th(o.bottom,t.bottom),t.left=jh(o.left,t.left),t}),dm(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function pm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?_h(o):null,a=o?Kh(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case ch:t={x:s,y:n.y-r.height};break;case uh:t={x:s,y:n.y+n.height};break;case lh:t={x:n.x+n.width,y:c};break;case dh:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?Vh(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case hh:t[u]=t[u]-(n[l]/2-r[l]/2);break;case mh:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function hm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?gh:s,u=n.rootBoundary,l=void 0===u?vh:u,d=n.elementContext,f=void 0===d?yh:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=qh("number"!=typeof g?g:Gh(g,ph)),y=f===yh?bh:yh,b=e.rects.popper,w=e.elements[h?y:f],x=fm(kh(w)?w:w.contextElement||Uh(e.elements.popper),c,l,a),O=Mh(e.elements.reference),S=pm({reference:O,element:b,strategy:"absolute",placement:o}),E=lm(Object.assign({},b,S)),k=f===yh?E:O,D={top:x.top-k.top+v.top,bottom:k.bottom-x.bottom+v.bottom,left:x.left-k.left+v.left,right:k.right-x.right+v.right},C=e.modifiersData.offset;if(f===yh&&C){var P=C[o];Object.keys(D).forEach((function(e){var t=[lh,uh].indexOf(e)>=0?1:-1,n=[ch,uh].indexOf(e)>=0?"y":"x";D[e]+=P[n]*t}))}return D}const mm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=_h(g),y=c||(v===g||!h?[nm(g)]:function(e){if(_h(e)===fh)return[];var t=nm(e);return[om(e),t,om(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(_h(n)===fh?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?xh:c,l=Kh(r),d=l?s?wh:wh.filter((function(e){return Kh(e)===l})):ph,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=hm(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[_h(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,E=b[0],k=0;k<b.length;k++){var D=b[k],C=_h(D),P=Kh(D)===hh,_=[ch,uh].indexOf(C)>=0,j=_?"width":"height",T=hm(t,{placement:D,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),A=_?P?lh:dh:P?uh:ch;w[j]>x[j]&&(A=nm(A));var I=nm(A),R=[];if(i&&R.push(T[C]<=0),s&&R.push(T[A]<=0,T[I]<=0),R.every((function(e){return e}))){E=D,S=!1;break}O.set(D,R)}if(S)for(var M=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},N=h?3:1;N>0;N--){if("break"===M(N))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vm(e){return[ch,lh,uh,dh].some((function(t){return e[t]>=0}))}const ym={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=hm(t,{elementContext:"reference"}),s=hm(t,{altBoundary:!0}),c=gm(a,r),u=gm(s,o,i),l=vm(c),d=vm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};const bm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=xh.reduce((function(e,n){return e[n]=function(e,t,n){var r=_h(e),o=[dh,ch].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[dh,lh].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};const wm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const xm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=hm(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),v=_h(t.placement),y=Kh(t.placement),b=!y,w=Vh(v),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,D="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(i){var _,j="y"===w?ch:dh,T="y"===w?uh:lh,A="y"===w?"height":"width",I=O[w],R=I+g[j],M=I-g[T],N=p?-E[A]/2:0,F=y===hh?S[A]:E[A],L=y===hh?-E[A]:-S[A],H=t.elements.arrow,U=p&&H?Nh(H):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[j],z=W[T],V=Yh(0,S[A],U[A]),Y=b?S[A]/2-N-V-B-D.mainAxis:F-V-B-D.mainAxis,q=b?-S[A]/2+N+V+z+D.mainAxis:L+V+z+D.mainAxis,G=t.elements.arrow&&zh(t.elements.arrow),Q=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,K=null!=(_=null==C?void 0:C[w])?_:0,X=I+q-K,$=Yh(p?Th(R,I+Y-K-Q):R,I,p?jh(M,X):M);O[w]=$,P[w]=$-I}if(s){var Z,J="x"===w?ch:dh,ee="x"===w?uh:lh,te=O[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ch,dh].indexOf(v),ae=null!=(Z=null==C?void 0:C[x])?Z:0,se=ie?re:te-S[ne]-E[ne]-ae+D.altAxis,ce=ie?te+S[ne]+E[ne]-ae-D.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Yh(e,t,n);return r>n?n:r}(se,te,ce):Yh(p?se:re,te,p?ce:oe);O[x]=ue,P[x]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function Om(e,t,n){void 0===n&&(n=!1);var r=Dh(t),o=Dh(t)&&function(e){var t=e.getBoundingClientRect(),n=Ah(t.width)/e.offsetWidth||1,r=Ah(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Uh(t),a=Mh(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Sh(t)||sm(i))&&(s=function(e){return e!==Eh(e)&&Dh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:im(e);var t}(t)),Dh(t)?((c=Mh(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=am(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Sm(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Em(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var km={placement:"bottom",modifiers:[],strategy:"absolute"};function Dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Cm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?km:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},km,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:kh(e)?um(e):e.contextElement?um(e.contextElement):[],popper:um(t)};var l,d,f=function(e){var t=Sm(e);return Oh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(r,o.options.modifiers),d=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:c,options:r}),u=function(){};a.push(s||u)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Dm(t,n)){o.rects={reference:Om(t,zh(n),"fixed"===o.options.strategy),popper:Nh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,l=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:Em((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!Dm(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Pm=Cm({defaultModifiers:[em,wm,Zh,Ph,bm,mm,xm,Qh,ym]}),_m=[],jm=function(e,t,n){void 0===n&&(n={});var r=b.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||_m},i=b.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],s=i[1],c=b.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);ra.flushSync((function(){s({styles:ah(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ah(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=b.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Ft()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=b.useRef();return sh((function(){l.current&&l.current.setOptions(u)}),[u]),sh((function(){if(null!=e&&null!=t){var r=(n.createPopper||Pm)(e,t,u);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:a.styles,attributes:a.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var Tm,Am,Im;c(60388);var Rm,Mm,Nm,Fm=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(Tm||(Tm=(0,_e.c)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),Ae.Il.color("text"),Ae.aU.font(1),Ae.aU.space(-1)),Lm=(0,Te.gV)(Am||(Am=(0,_e.c)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),Ae.Il.color("textLabel"),Ae.Il.lineHeight("regular"),Ae.Il.fontWeight("regular"),Ae.aU.space(-3),Ae.aU.space(-1.5),Ae.Il.radii("statusLabel")),Hm=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledHtmlFormatter"})(Im||(Im=(0,_e.c)(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; // nice2 reset\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; // nice2 reset\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; // same color in all themes\n }\n }\n }\n"])),(function(e){return(0,Vn.my)(e,"html")}),Ae.aU.space(-1),Ae.aU.space(-1.5),Lm,Ae.Il.color("signal.dangerLight"),Ae.Il.color("signal.infoLight"),Ae.Il.color("signal.warningLight"),Ae.Il.color("signal.successLight"),Lm,Ae.Il.color("signal.dangerLight"),Ae.Il.radii("statusLabel"),Ae.aU.space(-2.1),Ae.aU.space(0),Ae.Il.color("paper"),Ae.Il.color("signal.info"),Ae.Il.color("signal.warningLight"),Ae.aU.space(-1.5),Ae.aU.space(.5)),Um=16,Wm=Te.cp.div.withConfig({displayName:"StyledBoxWrapper"})(Rm||(Rm=(0,_e.c)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n }\n"])),Ae.Il.color("backgroundPopover"),(function(e){return e.rimless?"0":Ae.aU.space(0)}),Ae.Il.color("textPopover")),Bm=Te.cp.div.withConfig({displayName:"StyledBox"})(Mm||(Mm=(0,_e.c)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Vn.my)(e,"html")}),Hm,Ae.Il.color("textPopover")),zm=Te.cp.i.withConfig({displayName:"StyledArrow"})(Nm||(Nm=(0,_e.c)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Um,8,-8,8,8,8,Ae.Il.color("backgroundPopover"),-6.4,8,8,8,Ae.Il.color("backgroundPopover"),Um,8,Ae.Il.color("backgroundPopover"));function Vm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qm=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,i=(0,b.useState)(null),a=(0,Ye.c)(i,2),s=a[0],c=a[1],u=(0,b.useState)(null),l=(0,Ye.c)(u,2),d=l[0],f=l[1],p=(0,b.useState)(null),h=(0,Ye.c)(p,2),m=h[0],g=h[1],v=(0,b.useState)(!1),y=(0,Ye.c)(v,2),w=y[0],x=y[1],O=(0,b.useState)(null),S=(0,Ye.c)(O,2),E=S[0],k=S[1],D=jm(s,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}]}),C=D.styles,P=D.attributes;return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("span",{ref:c,onMouseOut:function(){E&&clearTimeout(E),x(!1)},onMouseOver:function(){var e=setTimeout((function(){x(!0)}),500);k(e)},children:t}),w&&n&&oa().createPortal((0,Ue.jsxs)(Wm,Ym(Ym({ref:f,style:C.popper,rimless:o},P.popper),{},{className:bu,children:[(0,Ue.jsx)(Bm,{isPlainHtml:r,children:n}),(0,Ue.jsx)(zm,Ym({ref:g,style:C.arrow},P.popper))]})),document.body)]})};qm.defaultProps={isPlainHtml:!0,rimless:!1};const Gm=qm;const Qm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=to()(i,t.key,null),u=(0,Ue.jsx)("span",{style:n.css,children:r}),l=s?(0,Ue.jsx)(qc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ue.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ue.jsx)(Gm,{content:c?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(c)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ue.jsx)(nu,{children:l})};var Km=c(36384),Xm=c.n(Km),$m=c(43028),Zm=c.n($m),Jm=c(90948),eg=c.n(Jm),tg=c(94024),ng=c.n(tg),rg=function(e){return"object"===(0,$r.c)(e)&&null!==e};const og=function e(t,n){return ng()(t,(function(t,r,o){eg()(r,n[o])||(t[o]=rg(r)&&rg(n[o])?e(r,n[o]):r)}))},ig=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},ag=function(e){return e?e.replace(/­/g,""):e},sg=function(e){return null!=e};function cg(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 ug(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lg=["linkComp"],dg=function(e,t){var n=og(e,t),r=Zm()(Sr()(n,lg),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},fg=(0,b.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Xm()(n)?(0,Ue.jsx)(qc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ue.jsx)(t,{entityKey:n,children:r})}):r}),dg);fg.propTypes={children:Pe().node,entityKey:Pe().any,linkComp:Pe().func};const pg=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=to()(i,t.key,null);return(0,Ue.jsx)(Os.SingleValue,ug(ug({},e),{},{children:(0,Ue.jsx)(Jc,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ue.jsx)(Gm,{content:c?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(c)}}):null,children:(0,Ue.jsx)(fg,{linkComp:s,entityKey:t.key,children:o})})})}))};function hg(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 mg=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const gg=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ue.jsx)(Os.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=b.Children.map(r,(function(e){return mg(e)?e:null})),u=b.Children.map(r,(function(e){return mg(e)?null:e})),l=s&&n;return(0,Ue.jsxs)(Ue.Fragment,{children:[!l&&(0,Ue.jsx)(Ue.Fragment,{children:c}),(0,Ue.jsx)(tu,{children:u})]})};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 n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bg=(0,Te.QX)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,S=(0,b.useRef)(null),E=(0,b.useRef)(null),k=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},C=(0,b.useState)(k()),P=(0,Ye.c)(C,2),_=P[0],j=P[1],T=(0,b.useState)(D()),A=(0,Ye.c)(T,2),I=A[0],R=A[1],M=(0,b.useState)(!1),N=(0,Ye.c)(M,2),F=N[0],L=N[1],H=function(e){t&&t(e)},U=(0,b.useCallback)(m||function(){},[]),W=(0,b.useCallback)(lo()(U,800,{trailing:!0}),[]),B=Boolean(p),z=Boolean(f),V=Boolean(x);return(0,Ue.jsx)(Gc,{tabIndex:"-1",id:n,onFocus:function(){S.current.focus(),setTimeout((function(){j(k()),R(D())}),0)},children:(0,Ue.jsx)(Qc,{ref:E,children:(0,Ue.jsx)(Sc,yg(yg({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:_,wrapperHeight:I,components:{ClearIndicator:Dc,LoadingIndicator:yu,DropdownIndicator:au,IndicatorsContainer:gu,IndicatorSeparator:null,Menu:nh,MenuList:ih,MultiValueLabel:Qm,SingleValue:pg,ValueContainer:gg},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ue.jsx)(l,yg({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&H(y)},options:(0,Tt.c)(h||[]),onKeyDown:function(e){"Enter"===e.key&&F&&(e.stopPropagation(),S.current&&null===S.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:S,onMenuOpen:function(){H(y),L(!0)},onMenuClose:function(){L(!1)},styles:ru(g),loadTooltip:a,tooltips:v,DetailLink:w,hasDocsTreeSearch:z,openDocsTreeSearch:f,hasAdvancedSearch:B,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const wg=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,s=e.onChange;return(0,Ue.jsx)(bg,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:co()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var xg,Og=Te.cp.div.withConfig({displayName:"StyledBoolEdit"})(xg||(xg=(0,_e.c)(["\n margin: 5px 0;\n"])));const Sg=function(e){return(0,Ue.jsx)(Og,{children:(0,Ue.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 Eg,kg,Dg=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ue.jsx)(Hm,{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(t)},breakWords:n,className:r})},Cg=Te.cp.div.withConfig({displayName:"StyledOption"})(Eg||(Eg=(0,_e.c)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),Ae.aU.space(-1),Ae.aU.space(-1.5)),Pg=Te.cp.span.withConfig({displayName:"StyledLabel"})(kg||(kg=(0,_e.c)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,Ae.Gj)(),Ae.aU.space(-1.5));function _g(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 jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_g(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tg={single:"radio",multiple:"checkbox"},Ag={single:{checked:!1},multiple:{}},Ig=function(e,t){return t?(0,Ue.jsx)(Dg,{value:e}):e},Rg=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ue.jsxs)(Cg,{children:[!s&&(0,Ue.jsx)("input",{name:t,type:Tg[c],checked:i||!1,onChange:l,id:n,disabled:a}),(0,Ue.jsx)(Pg,{children:o||Ig(r,u)})]})};const Mg=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return jg(jg({},t),t.id===e.target.id?{checked:e.target.checked}:Ag[r.selectionType])}));t({options:o})}};return(0,Ue.jsx)(Ue.Fragment,{children:n.options.map((function(e){return(0,Ue.jsx)(Rg,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};c(79304);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 Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lg=(0,b.lazy)((function(){return Promise.all([c.e(904),c.e(784)]).then(c.bind(c,43976))}));const Hg=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:(t=e.value,(0,Ue.jsx)("div",{children:(0,Ue.jsx)("p",{children:t})})),children:(0,Ue.jsx)(Lg,Fg({},e))});var t};var Ug,Wg=Te.cp.div.withConfig({displayName:"StyledEditorWrapper"})(Ug||(Ug=(0,_e.c)(["\n margin-top: ",";\n"])),Ae.aU.space(-1.5));const Bg=(0,Te.QX)(Je.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ue.jsx)(Wg,{children:(0,Ue.jsx)(Hg,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var zg,Vg,Yg,qg=Te.cp.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(zg||(zg=(0,_e.c)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Gg=Te.cp.div.withConfig({displayName:"StyledDatePickerWrapper"})(Vg||(Vg=(0,_e.c)(["\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"])),Yr,Gr,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Qg=Te.cp.input.withConfig({displayName:"StyledTimeInput"})(Yg||(Yg=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr),Kg="react-datepicker-time__input",Xg="react-datepicker__day",$g="react-datepicker__input",Zg=function(e){return e.classList.contains(Xg)},Jg=function(e){return e.classList.contains(Kg)},ev=function(e){return e.classList.contains($g)},tv=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Xg,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},nv=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},rv=function(e){var t=Wf(e);return isNaN(t)?null:t},ov=function(e){return e?e.toISOString():null};const iv=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?rv:c,l=n.dateToValue,d=void 0===l?ov:l,f=(0,b.useRef)(null),p=(0,b.useState)(!1),h=(0,Ye.c)(p,2),m=h[0],g=h[1],v=(0,b.useState)(!1),y=(0,Ye.c)(v,2),w=y[0],x=y[1],O=u(e),S=i?u(i):void 0,E=a?u(a):void 0;(0,b.useEffect)((function(){(f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var k=function(){return g(!1)},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},C=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},P=function(){t(null),C(null)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=D(!1);if(n){var r=O||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return Xf($f(Zf(e,void 0===a?0:a),i),r)}(n,{hour:Jl(r),minute:ed(r),second:td(r)}):n;j(o,e)}},j=function(n,r){if(n){var i,a=!e&&Boolean(n),c=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!c&&o.some((function(e){return Uf(c,e)})),l=Qu(n),p=Jl(n)!==Jl(l)||ed(n)!==ed(l);(a&&!p||u)&&s&&(n=Np.setCurrentTime(n)),t(d(n))}else P();var h;s||"click"!==(null==r?void 0:r.type)||(k(),nv(null===(h=f.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(ev(e.target))setTimeout((function(){return k()}),0);else if(Jg(e.target)){var t;C(O||D(!0)),tv(null===(t=f.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else Zg(e.target)&&k();else ev(e.target)&&m?(_(e),setTimeout((function(){return k()}),0)):Jg(e.target)?k():Zg(e.target)&&(s?(_(e,!0),C(null),x(!0),setTimeout((function(){var e,t;t=null===(e=f.current)||void 0===e||null===(e=e.calendar)||void 0===e?void 0:e.componentNode,setTimeout((function(){if(t){var e=t.querySelector("input.".concat(Kg));e&&e.focus({preventScroll:!0})}}),0),x(!1)}),0)):(_(e),k()));var n;"Enter"===e.key&&(k(),e.preventDefault(),e.stopPropagation(),nv(null===(n=f.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===D(!1)){var r;C(O||D(!0)),tv(null===(r=f.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},A=function(){var e;g((function(e){return!e})),C(null),nv(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:k,onInputClick:A,onKeyDown:T,onChange:j,onCalendarOpen:function(){C(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:s,minDate:S,maxDate:E,ref:f,className:$g},timeInputProps:{onKeyDown:T,className:Kg,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),P()}},calendarButtonProps:{onClick:A,className:m?"react-datepicker-ignore-onclickoutside":""}}};var av="HH:mm:ss",sv="HH:mm",cv=function(e){return Uf(e,sv)},uv=function(e){var t=function(e){return Uf(e,av)?Hf(e,av,new Date):Uf(e,sv)?Hf(e,sv,new Date):Uf(e,"HH:")?Hf(e,"HH:",new Date):Uf(e,"H")?Hf(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return $l(e,sv)}(t):""};const lv=function(e,t){var n=uv(e),r=(0,b.useState)(n),o=(0,Ye.c)(r,2),i=o[0],a=o[1],s=(0,b.useRef)(i),c=Je.usePrevious(n);(0,b.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&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,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=uv(n);p&&!cv(p)||t(p)}},onBlur:function(){if(i!==n){var e=uv(i);e&&cv(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var dv=["value","onChange","onKeyDown"];function fv(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 pv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Fp();var hv=function(e){var t=e.onChange,n=e.label;return(0,Ue.jsx)(yt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},mv=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Le.c)(e,dv),i=lv(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ue.jsx)(Qg,pv(pv(pv({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},gv={strategy:"fixed"};const vv=(0,Te.QX)((0,y.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,b.useRef)(void 0),y=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,b.useRef)(null),O=Boolean(r),S=!t&&O,E=function(e){v.current=e,c(e)},k=iv(r,E,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),D=k.reactDatePickerProps,C=k.timeInputProps,P=k.clearButtonProps,_=k.calendarButtonProps;return(0,Ue.jsx)(qg,{immutable:t,id:n,tabIndex:"-1",children:(0,Ue.jsxs)(Gg,{immutable:t,ref:x,hasTime:d,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,Ue.jsx)(Nu(),pv(pv({id:n?"".concat(n,"-datepicker"):null,popperClassName:bu},D),{},{disabled:t,dateFormat:[].concat((0,Tt.c)(m),(0,Tt.c)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ue.jsx)(mv,pv({},C)),showTimeSelect:d,timeIntervals:15,popperProps:gv,portalId:"react-datepicker",todayButton:(0,Ue.jsx)(hv,{onChange:E,label:w("client.component.datePicker.todayLabel")})})),S&&(0,Ue.jsx)(Dt,pv({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},P)),!t&&(0,Ue.jsx)(Dt,pv({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},_))]})})})));function yv(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 bv=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,s=e.placeholder,c=(0,y.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(Np.getLocalizedDateFormat(c.locale)),d=Np.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,Np.useTwoDigitYear(l),Np.useTwoDigitYear(d)];return(0,Ue.jsx)(vv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:s,events:a},u))};function wv(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 xv=(0,y.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,y.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Np.getLocalizedDateTimeFormat(a.locale)),u="".concat(Np.getLocalizedDateFormat(a.locale)),l=Np.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Np.useTwoDigitYear(c),Np.useTwoDigitYear(l)],f=Np.getLocalizedDateFormatWithoutPunctuation(a.locale),p=[u,f,Np.useTwoDigitYear(u),Np.useTwoDigitYear(f)];return(0,Ue.jsx)(vv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:i},s))}));var Ov,Sv,Ev,kv,Dv,Cv,Pv,_v,jv=Te.cp.section.withConfig({displayName:"StyledSection"})(Ov||(Ov=(0,_e.c)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Tv=Te.cp.div.withConfig({displayName:"StyledButtonsWrapper"})(Sv||(Sv=(0,_e.c)(["\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"])),ht,Ae.aU.space(-2)),Av=Te.cp.div.withConfig({displayName:"StyledDropzone"})(Ev||(Ev=(0,_e.c)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ht,Ae.Il.color("backgroundItemHover")),Iv=Te.cp.div.withConfig({displayName:"StyledUploadInput"})(kv||(kv=(0,_e.c)(["\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,Ae.Gj)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Ae.Il.color("paper"),(function(e){return e.immutable?Ae.Ml.shade2(e):Ae.Ml.base(e)}),Ae.aU.space(-2),ht,Ae.aU.space(-3.1),Ae.aU.space(-1.5)),Rv=Te.cp.div.withConfig({displayName:"StyledUploadProgress"})(Dv||(Dv=(0,_e.c)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),Ae.aU.space(-2)),Mv=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledUploadProgressText"})(Cv||(Cv=(0,_e.c)(["\n && {\n ","\n }\n"])),(0,Ae.Gj)({fontSize:Ae.aU.font(-1)})),Nv=Te.cp.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Pv||(Pv=(0,_e.c)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),Ae.aU.space(-2)),Fv=Te.cp.div.withConfig({displayName:"StyledView"})(_v||(_v=(0,_e.c)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),Ae.aU.space(-2));function Lv(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Hv(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Uv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Wv(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;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 Bv=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 zv(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Bv.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 Vv=[".DS_Store","Thumbs.db"];function Yv(e){return"object"==typeof e&&null!==e}function qv(e){return Xv(e.target.files).map((function(e){return zv(e)}))}function Gv(e){return Lv(this,void 0,void 0,(function(){return Hv(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 zv(e)}))]}}))}))}function Qv(e,t){return Lv(this,void 0,void 0,(function(){var n;return Hv(this,(function(r){switch(r.label){case 0:return e.items?(n=Xv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map($v))]):[3,2];case 1:return[2,Kv(Zv(r.sent()))];case 2:return[2,Kv(Xv(e.files).map((function(e){return zv(e)})))]}}))}))}function Kv(e){return e.filter((function(e){return-1===Vv.indexOf(e.name)}))}function Xv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function $v(e){if("function"!=typeof e.webkitGetAsEntry)return Jv(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ty(t):Jv(e)}function Zv(e){return e.reduce((function(e,t){return Wv(Wv([],Uv(e),!1),Uv(Array.isArray(t)?Zv(t):[t]),!1)}),[])}function Jv(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=zv(t);return Promise.resolve(n)}function ey(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return[2,e.isDirectory?ty(e):ny(e)]}))}))}function ty(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Lv(i,void 0,void 0,(function(){var i,a,s;return Hv(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ey)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function ny(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=zv(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var ry=c(35264);function oy(e){return function(e){if(Array.isArray(e))return ly(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uy(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 iy(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 ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach((function(t){sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cy(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||uy(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 uy(e,t){if(e){if("string"==typeof e)return ly(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)?ly(e,t):void 0}}function ly(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 dy="file-invalid-type",fy="file-too-large",py="file-too-small",hy="too-many-files",my=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:dy,message:"File type must be ".concat(t)}},gy=function(e){return{code:fy,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},vy=function(e){return{code:py,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},yy={code:hy,message:"Too many files"};function by(e,t){var n="application/x-moz-file"===e.type||(0,ry.c)(e,t);return[n,n?null:my(t)]}function wy(e,t,n){if(xy(e.size))if(xy(t)&&xy(n)){if(e.size>n)return[!1,gy(n)];if(e.size<t)return[!1,vy(t)]}else{if(xy(t)&&e.size<t)return[!1,vy(t)];if(xy(n)&&e.size>n)return[!1,gy(n)]}return[!0,null]}function xy(e){return null!=e}function Oy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Sy(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 Ey(e){e.preventDefault()}function ky(){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!Oy(e)&&t&&t.apply(void 0,[e].concat(r)),Oy(e)}))}}function Dy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Cy(e){return/^.*\.[\w]+$/.test(e)}var Py=["children"],_y=["open"],jy=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ty=["refKey","onChange","onClick"];function Ay(e){return function(e){if(Array.isArray(e))return My(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ry(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 Iy(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Ry(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 Ry(e,t){if(e){if("string"==typeof e)return My(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)?My(e,t):void 0}}function My(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 Ny(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 Fy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(n),!0).forEach((function(t){Ly(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ly(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uy=(0,b.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fy(Fy({},Wy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,S=t.noDrag,E=t.noDragEventsBubbling,k=t.onError,D=t.validator,C=(0,b.useMemo)((function(){return function(e){if(xy(e))return Object.entries(e).reduce((function(e,t){var n=cy(t,2),r=n[0],o=n[1];return[].concat(oy(e),[r],oy(o))}),[]).filter((function(e){return Dy(e)||Cy(e)})).join(",")}(n)}),[n]),P=(0,b.useMemo)((function(){return function(e){if(xy(e)){var t=Object.entries(e).filter((function(e){var t=cy(e,2),n=t[0],r=t[1],o=!0;return Dy(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(Cy)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=cy(t,2),r=n[0],o=n[1];return ay(ay({},e),{},sy({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),_=(0,b.useMemo)((function(){return"function"==typeof g?g:qy}),[g]),j=(0,b.useMemo)((function(){return"function"==typeof m?m:qy}),[m]),T=(0,b.useRef)(null),A=(0,b.useRef)(null),I=Iy((0,b.useReducer)(Yy,Vy),2),R=I[0],M=I[1],N=R.isFocused,F=R.isFileDialogActive,L=(0,b.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!L.current&&F&&setTimeout((function(){A.current&&(A.current.files.length||(M({type:"closeDialog"}),j()))}),300)};(0,b.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,F,j,L]);var U=(0,b.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,b.useEffect)((function(){return w&&(document.addEventListener("dragover",Ey,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Ey),document.removeEventListener("drop",W))}}),[T,w]),(0,b.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,b.useCallback)((function(e){k?k(e):console.error(e)}),[k]),z=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(Ay(U.current),[e.target]),Sy(e)&&Promise.resolve(o(e)).then((function(t){if(!Oy(e)||E){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=cy(by(e,n),1)[0],i=cy(wy(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:C,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:D});M({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,E,C,a,i,s,c,D]),V=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Sy(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,E]),Y=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Sy(e)&&l&&l(e))}),[T,l,E]),q=(0,b.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Iy(by(e,C),2),o=t[0],s=t[1],c=Iy(wy(e,a,i),2),u=c[0],l=c[1],d=D?D(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[yy]})})),n.splice(0)),M({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[M,s,C,a,i,c,f,p,h,D]),G=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Sy(e)&&Promise.resolve(o(e)).then((function(t){Oy(e)&&!E||q(t,e)})).catch((function(e){return B(e)})),M({type:"reset"})}),[o,q,B,E]),Q=(0,b.useCallback)((function(){if(L.current){M({type:"openDialog"}),_();var e={multiple:s,types:P};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),M({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(L.current=!1,A.current?(A.current.value=null,A.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."))):(j(e),M({type:"closeDialog"}))}))}else A.current&&(M({type:"openDialog"}),_(),A.current.value=null,A.current.click())}),[M,_,j,v,q,B,P,s]),K=(0,b.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Q()))}),[T,Q]),X=(0,b.useCallback)((function(){M({type:"focus"})}),[]),$=(0,b.useCallback)((function(){M({type:"blur"})}),[]),Z=(0,b.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Q():setTimeout(Q,0))}),[x,Q]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return S?null:J(e)},ne=function(e){E&&e.stopPropagation()},re=(0,b.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,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hy(e,jy);return Fy(Fy(Ly({onKeyDown:ee(ky(i,K)),onFocus:ee(ky(a,X)),onBlur:ee(ky(s,$)),onClick:J(ky(c,Z)),onDragEnter:te(ky(u,z)),onDragOver:te(ky(l,V)),onDragLeave:te(ky(d,Y)),onDrop:te(ky(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),p)}}),[T,K,X,$,Z,z,V,Y,G,O,S,r]),oe=(0,b.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,b.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,i=Hy(e,Ty);return Fy(Fy({},Ly({accept:C,multiple:s,type:"file",style:{display:"none"},onChange:J(ky(r,G)),onClick:J(ky(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Fy(Fy({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ie,rootRef:T,inputRef:A,open:J(Q)})}(Hy(e,Py)),o=r.open,i=Hy(r,_y);return(0,b.useImperativeHandle)(t,(function(){return{open:o}}),[o]),w().createElement(b.Fragment,null,n(Fy(Fy({},i),{},{open:o})))}));Uy.displayName="Dropzone";var Wy={disabled:!1,getFilesFromEvent:function(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return Yv(e)&&Yv(e.dataTransfer)?[2,Qv(e.dataTransfer,e.type)]:function(e){return Yv(e)&&Yv(e.target)}(e)?[2,qv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Gv(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};Uy.defaultProps=Wy,Uy.propTypes={children:Pe().func,accept:Pe().objectOf(Pe().arrayOf(Pe().string)),multiple:Pe().bool,preventDropOnDocument:Pe().bool,noClick:Pe().bool,noKeyboard:Pe().bool,noDrag:Pe().bool,noDragEventsBubbling:Pe().bool,minSize:Pe().number,maxSize:Pe().number,maxFiles:Pe().number,disabled:Pe().bool,getFilesFromEvent:Pe().func,onFileDialogCancel:Pe().func,onFileDialogOpen:Pe().func,useFsAccessApi:Pe().bool,autoFocus:Pe().bool,onDragEnter:Pe().func,onDragLeave:Pe().func,onDragOver:Pe().func,onDrop:Pe().func,onDropAccepted:Pe().func,onDropRejected:Pe().func,onError:Pe().func,validator:Pe().func};const By=Uy;var zy,Vy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Yy(e,t){switch(t.type){case"focus":return Fy(Fy({},e),{},{isFocused:!0});case"blur":return Fy(Fy({},e),{},{isFocused:!1});case"openDialog":return Fy(Fy({},Vy),{},{isFileDialogActive:!0});case"closeDialog":return Fy(Fy({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Fy(Fy({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Fy(Fy({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Fy({},Vy);default:return e}}function qy(){}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 Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ky=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ue.jsxs)(Iv,{immutable:n,children:[(0,Ue.jsx)(By,{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,Ue.jsx)(jv,{children:(0,Ue.jsxs)(Av,Qy(Qy({},t()),{},{children:[(0,Ue.jsx)("input",Qy({},n())),zy||(zy=(0,Ue.jsx)(yt,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ue.jsx)(yt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Xy,$y=Te.cp.figure.withConfig({displayName:"StyledPreview"})(Xy||(Xy=(0,_e.c)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),Ae.aU.space(-2.2),Ae.Il.color("border"),Ae.Il.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Zy=$y;var Jy;const eb=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ue.jsx)("img",{alt:n,title:n,src:t}):(0,Ue.jsx)("div",{title:n,children:Jy||(Jy=(0,Ue.jsx)(He.c,{icon:"file-alt"}))});return(0,Ue.jsxs)(Zy,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ue.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ue.jsx)(Vn.cp.Figcaption,{children:o})]})};var tb=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 nb=function(e){var t=e.file,n=e.text;return(0,Ue.jsxs)(Rv,{children:[(0,Ue.jsx)(eb,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ue.jsxs)(Nv,{children:[(0,Ue.jsx)(Ve,{position:Ae.Wn.position.PREPEND}),(0,Ue.jsxs)(Mv,{children:[n||"uploading"," (",tb(t.size),")"]})]})]})};var rb=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const ob={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return rb(e,"download",!0)},addParameterToURL:rb};function ib(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 ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const sb=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ue.jsxs)(Fv,{className:"StyledView",children:[(0,Ue.jsx)(eb,ab(ab({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ue.jsxs)(Tv,{children:[!o&&(0,Ue.jsx)(yt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ue.jsx)(yt,{children:(0,Ue.jsx)(Vr.cp,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:ob.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function cb(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 ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lb=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,i=(0,b.useRef)(t),a=(0,b.useState)({isUploading:!1,previewFile:null}),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,b.useEffect)((function(){eg()(i.current,t)||u({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ue.jsx)(sb,ub(ub({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):c.isUploading?(0,Ue.jsx)(nb,ub({file:c.previewFile,text:n.uploading},e)):(0,Ue.jsx)(Ky,ub(ub({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};lb.defaultProps={textResources:{}};const db=lb;var fb=function(e){return(0,Ue.jsx)(db,{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})};fb.defaultProps={options:{}};const pb=fb;var hb,mb,gb=Te.cp.input.withConfig({displayName:"StyledDurationEdit"})(hb||(hb=(0,_e.c)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Gr,(function(e){return e.width})),vb=Te.cp.label.withConfig({displayName:"StyledDurationEditFocusable"})(mb||(mb=(0,_e.c)(["\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"])),Ae.aU.space(1),(function(e){return e.immutable?Ae.Il.color("textDisabled"):Ae.Il.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),yb=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=Np.millisecondsToDuration(n),s=(0,b.useState)(!1),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=function(e,t){var n,r,i=null!==t?t:a.minutes,s=null!==e?e:a.hours;""!==i||""!==s?(i>=60&&(s=0),o((r=i,(n=s)||r?((n<0||r<0)&&(n=Zr(n),r=Zr(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},f=function(){l(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},h=function(){return!0===i.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(a.seconds);return(0,Ue.jsxs)(qr,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:p,pattern:h(),step:1,width:g(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!r?"":a.hours+"","data-cy":"input-hours"}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.hoursLabel})]}),(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,min:!0!==i.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,"");d(null,t)},onKeyPress:p,pattern:h(),step:1,width:g(a.minutes),type:"number",value:a.minutes+"","data-cy":"input-minutes"}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.minutesLabel})]}),v&&(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,onChange:function(){},width:g(a.seconds),type:"number",value:a.seconds+""}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.secondsLabel})]})]})};yb.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const bb=yb;var wb;const xb=Te.cp.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(wb||(wb=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const Ob=Je.Debouncer((function(e){return(0,Ue.jsxs)(qr,{immutable:e.immutable,children:[(0,Ue.jsx)(xb,{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,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var Sb=c(61936),Eb=c(51068),kb=c.n(Eb);function Db(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 Cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Db(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pb(){Pb=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),(0,Sb.c)(i,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 i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,De.c)(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 i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,$r.c)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Pb.apply(this,arguments)}var _b,jb=["key","display","postcode","city","country","latitude","longitude"],Tb=function(e){return e*Math.PI/180},Ab=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:Tb(i),longitude:Tb(a)}};function Ib(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 Rb(){}function Mb(e){return!!(e||"").match(/\d/)}function Nb(e){return null==e}function Fb(e){return Nb(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Lb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Hb(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 Ub(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Wb(e,t){return Array(t+1).join(e)}function Bb(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Wb("0",Math.abs(a))+o:a>=s?o+=Wb("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function zb(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Hb(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i.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]);return""+(s?"-":"")+l+(r?".":"")+Ub(u[1]||"",t,n)}function Vb(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(e){e.event="event",e.props="prop"}(_b||(_b={}));var Yb,qb,Gb,Qb=(Yb=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Gb=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qb&&e.length===qb.length&&e.every((function(e,t){return e===qb[t]}))?Gb:(qb=e,Gb=Yb.apply(void 0,e))});function Kb(e){return Math.max(e.selectionStart,e.selectionEnd)}function Xb(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function $b(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Zb(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Jb(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(Mb(e[n])||Mb(e[n-1]));return t}function ew(e,t,n,r,o,i){void 0===i&&(i=Rb);var a=function(e){var t=(0,b.useRef)(e);t.current=e;var n=(0,b.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Fb(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Bb(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,b.useState)((function(){return a(Nb(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Nb(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,b.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function tw(e){return e.replace(/[^0-9]/g,"")}function nw(e){return e}function rw(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,i=e.getInputRef,a=e.format;void 0===a&&(a=nw);var s=e.removeFormatting;void 0===s&&(s=tw);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Rb);var p=e.onKeyDown;void 0===p&&(p=Rb);var h=e.onMouseUp;void 0===h&&(h=Rb);var m=e.onFocus;void 0===m&&(m=Rb);var g=e.onBlur;void 0===g&&(g=Rb);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Jb);var x=e.isValidInputCharacter;void 0===x&&(x=Mb);var O=e.isCharacterSame,S=Ib(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=ew(v,c,Boolean(u),a,s,l),k=E[0],D=k.formattedValue,C=k.numAsString,P=E[1],_=(0,b.useRef)({formattedValue:D,numAsString:C}),j=function(e,t){_.current={formattedValue:e.formattedValue,numAsString:e.value},P(e,t)},T=(0,b.useState)(!1),A=T[0],I=T[1],R=(0,b.useRef)(null),M=(0,b.useRef)({setCaretTimeout:null,focusTimeout:null});(0,b.useEffect)((function(){return I(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var N=a,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Vb(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Vb(e,t)}),0))},H=function(e,t,n){return Zb(e,t,y(e),n)},U=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=$b);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,D,e,n,r,x,O);return o=Zb(t,o,r)};(0,b.useEffect)((function(){var e=_.current,t=e.formattedValue,n=e.numAsString;D===t||D===C&&t===n||j(F(D,C),{event:void 0,source:_b.props})}),[D,C]);var W=R.current?Kb(R.current):void 0;("undefined"!=typeof window?b.useLayoutEffect:b.useEffect)((function(){var e=R.current;if(D!==_.current.formattedValue&&e){var t=U(_.current.formattedValue,D,W);e.value=D,L(e,t,D)}}),[D]);var B=function(e,t,n){var r=Qb(D,e),o=Object.assign(Object.assign({},r),{lastValue:D}),i=s(e,o),a=N(i);if(i=s(a,void 0),d&&!d(F(a,i))){var c=t.target,u=Kb(c),l=U(e,D,u);return c.value=D,L(c,l,D),!1}return 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,i=e.event,a=e.numAsString,s=e.caretPos;if(n){if(void 0===s&&r){var c=e.inputValue||n.value,u=Kb(n);n.value=t,s=U(c,t,u)}n.value=t,r&&void 0!==s&&L(n,s,t)}t!==D&&j(F(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},z=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:z},S,{type:t,value:D,onChange:function(e){var t=e.target.value;B(t,e,_b.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=H(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(s=H(a,t,"left")):s=H(a,t,"right");s!==t&&L(n,s,a),e.isUnitTestRun&&L(n,s,a),p(e)}else p(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 i=H(o,n);i!==n&&L(t,i,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 i=H(o,n);i===n||0===n&&r===o.length||L(t,i,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?w().createElement(w().Fragment,null,o(D,S)||null):w().createElement("span",Object.assign({},S,{ref:i}),D);if(r){var Y=r;return w().createElement(Y,Object.assign({},V,{ref:i}))}return w().createElement("input",Object.assign({},V,{ref:i}))}function ow(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=iw(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Hb(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Ub(h,n,!!r)),u&&(p=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;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)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function iw(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 aw(e,t,n){var r;void 0===t&&(t=Xb(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=iw(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Mb(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,S=w.value,E=e.substring(l,d);!(e.length&&S.length&&(x>S.length-a.length||O<i.length))||E&&a.startsWith(E)||(e=S);var k=0;e.startsWith(i)?k+=i.length:l<i.length&&(k=l),d-=k;var D=(e=e.substring(k)).length,C=e.length-a.length;e.endsWith(a)?D=C:(d>C||d>e.length-a.length)&&(D=d),e=e.substring(0,D),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Lb(e),t?"g":void 0)}(h,!0))||[]).join("");var P=e.indexOf(h);e=e.replace(new RegExp(Lb(h),"g"),(function(e,t){return t===P?".":""}));var _=Hb(e,o),j=_.beforeDecimal,T=_.afterDecimal,A=_.addNegation;return u.end-u.start<c.end-c.start&&""===j&&m&&!parseFloat(T)&&(e=A?"-":""),e}function sw(e){e=function(e){var t=iw(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!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("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Rb);var i=e.onBlur;void 0===i&&(i=Rb);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Ib(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=iw(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return ow(t,e)},b=function(t,n){return aw(t,n,e)},w=Nb(d)?l:d,x=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Nb(d)?Nb(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Fb(e)?e:("number"==typeof e&&(e=Bb(e)),x&&"number"==typeof s?zb(e,s,Boolean(c)):e)},S=ew(O(d),O(l),Boolean(x),y,b,p),E=S[0],k=E.numAsString,D=E.formattedValue,C=S[1];return Object.assign(Object.assign({},h),{value:D,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Mb(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Qb(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:C,format:y,removeFormatting:b,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})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Vb(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Vb(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Vb(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Vb(t,i-1),"Delete"===r&&d[i]===f&&Vb(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=k;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)),c&&s&&(n=zb(n,s,c)),n!==k){var o=ow(n,e);C({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:_b.event})}i(t)}})}function cw(e){var t=sw(e);return w().createElement(rw,Object.assign({},t))}var uw,lw=["immutable"];function dw(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 fw=(0,Te.cp)((function(e){e.immutable;var t=(0,Le.c)(e,lw);return(0,Ue.jsx)(cw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(uw||(uw=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const pw=fw;function hw(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 mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gw=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},vw=function(e){return null!=e&&!isNaN(parseFloat(e))},yw=function(e,t,n){return!vw(n)||!(vw(t)&&n>t)&&!(vw(e)&&n<e)},bw=function(e,t){return function(n){var r=n.floatValue;return gw(r)<gw(e)||yw(e,t,r)}};const ww=(0,y.injectIntl)(Je.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,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.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}(a,s,u),g=mw(mw({isAllowed:bw(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(pw,mw(mw({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&yw(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!yw(c,m,r)&&(t.target.value=null)}}))})}),800));const xw=Je.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ue.jsx)(qr,{immutable:o,children:(0,Ue.jsx)(pw,{isAllowed:bw(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),yw(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Ow,Sw,Ew,kw=Te.cp.div.withConfig({displayName:"StyledWrapper"})(Ow||(Ow=(0,_e.c)(["\n display: flex;\n justify-content: stretch;\n"]))),Dw=Te.cp.div.withConfig({displayName:"StyledLocationWrapper"})(Sw||(Sw=(0,_e.c)(["\n flex-grow: 1;\n"]))),Cw=Te.cp.div.withConfig({displayName:"StyledDistanceWrapper"})(Ew||(Ew=(0,_e.c)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Ae.Il.color("border"),Ae.aU.space(-.8),Ae.aU.space(.5));function Pw(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 _w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jw=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,s=a.suggestions,c=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,f=a.emptySearchText,p=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?kb()(e,jb):void 0}(r),v=function(e){return e?e.map(Ab):[]}(s);return(0,Ue.jsxs)(kw,{children:[(0,Ue.jsx)(Dw,{children:(0,Ue.jsx)(bg,{id:t,immutable:n,onChange:function(e){o(_w(_w({},function(e,t){return t?Cb(Cb({},e),kb()(t,jb)):Sr()(e,jb)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,Tt.c)(e.matchAll(Pb(/([\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 Cb(Cb({},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?p:f}})}),(0,Ue.jsx)(Cw,{children:(0,Ue.jsx)(xw,{value:m,onChange:function(e){o(_w(_w({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Tw,Aw=(0,b.lazy)((function(){return c.e(216).then(c.bind(c,6740))})),Iw=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=e.options;if(r)return(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var a=i||{},s=a.contentLang,c=a.defaultLinkTarget,u=a.ckEditorConfig;return(0,Ue.jsx)(b.Suspense,{fallback:Tw||(Tw=(0,Ue.jsx)("i",{})),children:(0,Ue.jsx)(Aw,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:s,defaultLinkTarget:c,ckEditorConfig:u})})};Iw.defaultProps={value:""};const Rw=Iw;var Mw,Nw;function Fw(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 Lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hw=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,Ue.jsxs)(Vn.cp.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Lw(Lw({},r),{},(0,Fe.c)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,Fe.c)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},p={value:r.city||"",onChange:u("city"),disabled:i};return(0,Ue.jsx)(Rr,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ue.jsxs)(no,{immutable:i,name:a,ref:u,children:[(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(Mw||(Mw=(0,Ue.jsx)(Vn.cp.Span,{children:"/"}))),(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ue.jsxs)(Kr,{children:[n.isLoading&&(Nw||(Nw=(0,Ue.jsx)(Ve,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ue.jsx)(Vr.cp,{href:Jr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Uw(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 Ww=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Bw(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 zw=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Vw;const Yw=Te.cp.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Vw||(Vw=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const qw=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.onLibLoaded,a=to()(e,"options.defaultCountry")||"CH",u=(0,b.useState)(null),l=(0,Ye.c)(u,2),f=l[0],p=l[1],h=w().createRef();(0,b.useEffect)((function(){var e=function(){var e=s(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(8).then(c.bind(c,40460));case 2:t=e.sent,p(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var m=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},g=n&&null!=f&&f.AsYouType?new f.AsYouType(a).input(n):n||"";return(0,Ue.jsxs)(qr,{immutable:r,children:[(0,Ue.jsx)(Yw,{disabled:r||!f,id:o,name,onChange:function(e){var r=e.target.value,o=f?f.parseNumber(r,a):r,i=kr()(o)?new f.AsYouType(a).input(r).replace(/\s/g,""):f.formatNumber(o,"E.164");t(i);var s=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new f.AsYouType(a).input(t),o=new f.AsYouType(a).input(e),i=m(r,n),s=m(o,n)-i;window.requestAnimationFrame(function(){var e=n+s;this.setSelectionRange(e,e)}.bind(h.current))}}(r,n,s)},immutable:r||!f,ref:h,value:g}),g&&(0,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Gw(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 Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kw=function(e){return e.map((function(e){return kb()(e,["key","display"])}))};const Xw=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,Ue.jsx)(bg,{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=i.options.map((function(e){return Qw(Qw({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Kw(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Kw(i.options)})};function $w(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 Zw=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Jw(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 ex=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function tx(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 nx=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const rx=Je.Debouncer((function(e){return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(xb,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var ox,ix,ax,sx,cx,ux=c(57292),lx=Te.cp.div.withConfig({displayName:"StyledTermsEdit"})(ox||(ox=(0,_e.c)(["\n margin: "," 0;\n display: flex;\n"])),Ae.aU.space(-1.4)),dx=Te.cp.input.withConfig({displayName:"StyledCheckbox"})(ix||(ix=(0,_e.c)(["\n margin-right: ",";\n"])),Ae.aU.space(-1.5)),fx=(0,Te.gV)(ax||(ax=(0,_e.c)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),Ae.Il.color("secondary"),Ae.Il.color("secondaryLight"),Ae.Il.color("secondary")),px=Te.cp.a.withConfig({displayName:"StyledTermsLink"})(sx||(sx=(0,_e.c)(["\n ","\n"])),fx),hx=(0,Te.cp)(Dg).withConfig({displayName:"StyledHtmlFormatter"})(cx||(cx=(0,_e.c)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),fx);const mx=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,s=e.id,c=e.immutable,u=(0,b.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:ux.c.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,b.useCallback)((function(){return o(null)}),[o]),d=(0,b.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,b.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,b.useEffect)((function(){n()}),[]),(0,b.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!c||d(!1)}),[r,i,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,Ue.jsx)(dx,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,Ue.jsx)(px,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ue.jsx)(hx,{value:r.label,breakWords:!0})});return!c&&(0,Ue.jsxs)(lx,{children:[p,h||(0,Ue.jsx)(hx,{value:null==r?void 0:r.label,breakWords:!0})]})};const gx=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var vx,yx,bx,wx=(0,Te.gV)(vx||(vx=(0,_e.c)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Gr),xx=Te.cp.div.withConfig({displayName:"StyledSizeWrapper"})(yx||(yx=(0,_e.c)(["\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"])),wx),Ox=Te.cp.textarea.withConfig({displayName:"StyledTextarea"})(bx||(bx=(0,_e.c)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),wx,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?Ae.aU.space(-1.2):"0"}));function Sx(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 Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kx=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,b.useState)(t),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=!gx(),f=gx(),p=(0,b.useCallback)(lo()(l,500,{trailing:!0}),[]);return(0,b.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,Ue.jsx)(xx,Ex(Ex({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ue.jsx)(Ox,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};const Dx=Je.Debouncer((function(e){return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(kx,{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 Cx;const Px=Te.cp.input.withConfig({displayName:"StyledTimeEdit"})(Cx||(Cx=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);function _x(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 jx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_x(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Tx=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=lv(n,t),s=a.inputProps,c=a.clearButtonProps,u=n&&!r;return(0,Ue.jsxs)(qr,{immutable:r,children:[(0,Ue.jsx)(Px,jx({type:"text",disabled:r,id:o,immutable:r,name:i},s)),u&&(0,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Dt,jx(jx({icon:"times"},c),{},{tabIndex:-1}))})]})};var Ax;const Ix=Te.cp.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ax||(Ax=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const Rx=Je.Debouncer((function(e){return(0,Ue.jsxs)(qr,{immutable:e.immutable,children:[(0,Ue.jsx)(Ix,{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,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Mx(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 Nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fx={boolean:Sg,"boolean-select":wg,choice:Mg,code:Bg,date:bv,datetime:xv,document:pb,duration:bb,email:Ob,geosearch:jw,html:Rw,integer:xw,address:ao,location:Hw,"multi-remote":Ww,"multi-select":zw,number:ww,phone:qw,"pseudo-select":Xw,remote:Zw,"search-filter":ex,"single-select":nx,string:rx,terms:mx,text:Dx,url:Rx,time:Tx};const Lx=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(Fx[t]){var u=Fx[t],l=Nx(Nx({},Sr()(i,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,Ue.jsx)("div",Nx(Nx({},l),{},{"data-cy":"form-field",children:(0,Ue.jsx)(u,Nx(Nx({value:n,onChange:null==i?void 0:i.onChange},kr()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function Hx(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 Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wx=function(e){return(0,Ue.jsx)(Xr,{children:(0,Ue.jsx)(Lx,Ux({componentType:e.type},Sr()(e,"type")))})};const Bx=(0,Te.QX)((function(e){return(0,Ue.jsx)(He.c,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const zx=function(e){var t=(0,y.useIntl)();return(0,Ue.jsx)(Vn.cp.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ue.jsx)(y.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var Vx;const Yx=(0,y.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),Vx||(Vx=(0,Ue.jsx)(Vn.cp.Span,{}));var o=$l(r,"HH:mm");return(0,Ue.jsxs)(Vn.cp.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ue.jsx)(y.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var qx;function Gx(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 Qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kx=function(e){var t=e.options||{},n=(0,Ue.jsxs)(Ue.Fragment,{children:[t.title&&(0,Ue.jsx)(Vn.cp.H5,{children:t.title}),(0,Ue.jsx)(Dg,Qx({},e))]});return"text"===t.mode?n:(0,Ue.jsx)(Gm,{content:n,isPlainHtml:!0,children:qx||(qx=(0,Ue.jsx)(Fm,{children:(0,Ue.jsx)(He.c,{icon:"question-circle"})}))})};const Xx=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=to()(r,t.resourceKey,null);return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(Gm,{content:i?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(i)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ue.jsx)(Vr.cp,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ue.jsx)(Vr.cp,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:ob.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const $x=function(e){return(0,Ue.jsx)(db,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Zx=function(e){var t=e.value,n=parseInt(t),r=Np.formatDuration(n);return(0,Ue.jsx)(Vn.cp.Time,{dateTime:r,title:r,children:r})};const Jx=function(e){return(0,Ue.jsx)(Vr.cp,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const eO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function tO(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 nO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rO=function(){return"; "};const oO=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ue.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ue.jsx)(a.DetailLink,nO(nO({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ue.jsx)(rO,{},"sep".concat(n)),t]})):null;return(0,Ue.jsx)(Vn.cp.Span,{breakWords:r,useTitle:o,children:c})};const iO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ue.jsx)(y.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const aO=function(e){var t;return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ue.jsx)(y.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function sO(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 cO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uO=(0,b.lazy)((function(){return Promise.all([c.e(8),c.e(570)]).then(c.bind(c,33992))}));const lO=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:"",children:(0,Ue.jsx)(uO,cO({},e))})};function dO(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 fO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pO=function(e){var t=e.value,n=e.options,r=e.breakWords,o=(e.useTitle,n||{}),i=o.tooltips,a=o.loadTooltip,s=o.navigationStrategy,c=o.linkProps,u=to()(i,t.key,null);t=ig(t);var l=(0,Ue.jsx)(Vn.cp.Span,{breakWords:r,useTitle:!u,children:t.display});return(null!=s&&s.DetailLink?(0,Ue.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ue.jsx)(s.DetailLink,fO(fO({},c),{},{entityKey:t.key,children:(0,Ue.jsx)(Gm,{content:u?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(u)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return a&&!u&&a(t.key)},children:l})})}))}):null)||l};const hO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const mO=function(e){return e.breakWords?(0,Ue.jsx)(Vn.cp.P,{breakWords:!0,useTitle:e.useTitle,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,Ue.jsx)("br",{},t)]:e})))}):(0,Ue.jsx)(Vn.cp.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")});var t};var gO=function(e,t){return parseInt(e.split(":")[t])||0};const vO=(0,y.injectIntl)((function(e){var t=e.value,n=(e.intl,gO(t,0)),r=gO(t,1),o=gO(t,2),i=gO(t,3),a=new Date(2e3,1,1,n,r,o,i),s=$l(a,"HH:mm:ss.SSS"),c=$l(a,"HH:mm");return(0,Ue.jsx)(Vn.cp.Time,{dateTime:s,title:c,children:c})}));const yO=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ue.jsx)(Vr.cp,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var bO,wO={boolean:Bx,date:zx,datetime:Yx,document:$x,"document-compact":Xx,duration:Zx,email:Jx,html:Dg,integer:eO,"multi-remote":oO,"multi-select":oO,number:iO,percent:aO,phone:lO,remote:pO,"single-select":pO,string:hO,text:mO,time:vO,url:yO,description:Kx};const xO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a;if(wO[t]){var c=wO[t];return(0,Ue.jsx)(c,{value:n,options:r,breakWords:i,useTitle:s})}return console.log("No FormattedValue mapper defined for component type",t,n),bO||(bO=(0,Ue.jsx)("div",{}))};var OO;const SO=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle;return null==n||""===n?OO||(OO=(0,Ue.jsx)("span",{})):(0,Ue.jsx)(xO,{componentType:t,value:n,options:r,breakWords:o,useTitle:i})},EO=SO;var kO="checked",DO="indeterminate",CO="unchecked";const PO=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,b.useRef)(null);return(0,b.useLayoutEffect)((function(){i.current.indeterminate=t===DO,i.current.checked=t===kO}),[t]),(0,Ue.jsx)("input",{ref:i,onChange:function(e){r(t===DO?CO:e.target.checked?kO:CO)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},_O=PO;var jO;const TO=Te.cp.div.withConfig({displayName:"StyledLayoutBox"})(jO||(jO=(0,_e.c)(["\n height: fit-content;\n margin-bottom: ",";\n"])),Ae.aU.space(.25));var AO=function(e){var t=e.children;return(0,Ue.jsx)(TO,{children:t})};const IO=(0,b.memo)(AO);var RO,MO=Te.cp.div.withConfig({displayName:"StyledLayoutContainer"})(RO||(RO=(0,_e.c)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),Ae.aU.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(Ae.aU.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const NO=MO;var FO=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,b.useRef)(null),i=(0,b.useState)(0),a=(0,Ye.c)(i,2),s=a[0],c=a[1],u=function(){c(o.current.offsetWidth)};return(0,b.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,Ue.jsx)(NO,{ref:o,containerWidth:s,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};FO.defaultProps={minBoxWidth:250};const LO={Box:IO,Container:FO};var HO,UO,WO,BO,zO=c(93896),VO=(0,Te.xZ)(HO||(HO=(0,_e.c)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),YO=(0,Te.gV)(UO||(UO=(0,_e.c)(["\n animation: "," 400ms ease-in-out both;\n"])),VO),qO=Te.cp.div.withConfig({displayName:"StyledLoadingIconAndTest"})(WO||(WO=(0,_e.c)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Ae.aU.space(-1),YO,zO.G0,Ae.aU.space(-1));const GO=Te.cp.div.withConfig({displayName:"StyledLoadMask"})(BO||(BO=(0,_e.c)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var QO;const KO=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,b.useState)(!1),s=(0,Ye.c)(a,2),c=s[0],u=s[1],l=(0,b.useState)(!0),d=(0,Ye.c)(l,2),f=d[0],p=d[1];(0,b.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ue.jsx)(GO,{className:i,children:h?r:(0,Ue.jsxs)(qO,{children:[QO||(QO=(0,Ue.jsx)(Ve,{size:"30px"},"loading-spinner")),o&&(0,Ue.jsx)(Vn.cp.Span,{children:o},"loadingText")]})})};var XO,$O=Te.cp.div.withConfig({displayName:"StyledPanel"})(XO||(XO=(0,_e.c)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),Ae.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Ae.Il.color("borderLight"),Ae.Il.radii("form"));const ZO=$O;const JO=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,b.useState)(a),d=(0,Ye.c)(l,2),f=d[0],p=d[1],h="boolean"==typeof o,m=function(){c&&(h?"function"==typeof u&&u(!o):p(!f))};return(0,Ue.jsx)(ZO,{isFramed:r,children:w().Children.map(t,(function(e){return w().cloneElement(e,{isFramed:r,isOpen:h?o:f,isToggleable:c,toggleOpenState:m})}))})};var eS,tS=Te.cp.div.withConfig({displayName:"StyledPanelBody"})(eS||(eS=(0,_e.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?Ae.aU.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const nS=tS;const rS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ue.jsx)(nS,{isFramed:n,isOpen:r,children:(0,Ue.jsx)("div",{children:t})})};const oS=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,b.useState)(t),o=(0,Ye.c)(r,2),i=o[0],a=o[1];return(0,Ue.jsx)(Ue.Fragment,{children:w().Children.map(n,(function(e,t){return w().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var iS;const aS=Te.cp.div.withConfig({displayName:"StyledPanelGroup"})(iS||(iS=(0,_e.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Ae.aU.space(0),ZO,Ae.aU.space(-1));function sS(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 cS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sS(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uS=function(e){return(0,Ue.jsx)(aS,{children:(0,Ue.jsx)(oS,cS({},e))})};var lS,dS,fS,pS,hS,mS,gS,vS="1px",yS=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(lS||(lS=(0,_e.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Ae.aU.font(1),Ae.Il.color("text"),!Ae.iY&&(0,Te.gV)(dS||(dS=(0,_e.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Ae.Il.color("secondaryLight"))),bS=Te.cp.div.withConfig({displayName:"StyledPanelHeader"})(fS||(fS=(0,_e.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),Ae.Il.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,Te.gV)(pS||(pS=(0,_e.c)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),Ae.Il.radii("form"),vS,Ae.Il.radii("form"),vS):(0,Te.gV)(hS||(hS=(0,_e.c)(["\n calc("," - ",")\n "])),Ae.Il.radii("form"),vS)}),(function(e){return e.isFramed?(0,Te.gV)(mS||(mS=(0,_e.c)(["\n "," ","\n "])),Ae.aU.space(-1.7),Ae.aU.space(-.375)):0}),!Ae.iY&&(0,Te.gV)(gS||(gS=(0,_e.c)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),yS),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(vS,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(vS,";\n }\n "):"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(vS,";\n }\n ")}(e)}));const wS=bS;var xS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,s=e.options;return(0,Ue.jsxs)(wS,{isFramed:n,isOpen:r,onClick:a,children:[(0,Ue.jsx)("div",{children:w().Children.map(t,(function(e){return w().cloneElement(e)}))}),o&&i&&(0,Ue.jsx)(yS,{children:(0,Ue.jsx)(He.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};xS.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const OS={Body:rS,Group:uS,Header:xS,Wrapper:JO};var SS,ES=Te.cp.div.withConfig({displayName:"StyledPanel"})(SS||(SS=(0,_e.c)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),Ae.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Ae.Il.color("borderLight"),Ae.Il.radii("form"));const kS=ES;const DS=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,b.useState)(i),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,Ue.jsx)(kS,{isFramed:r,children:w().Children.map(t,(function(e){return w().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var CS,PS,_S=Te.cp.div.withConfig({displayName:"StyledPanelBody"})(CS||(CS=(0,_e.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Te.gV)(PS||(PS=(0,_e.c)(["\n "," "," "," ","\n "])),Ae.aU.space(-1),Ae.aU.space(.2),Ae.aU.space(.2),Ae.aU.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const jS=_S;const TS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ue.jsx)(jS,{isFramed:n,isOpen:r,children:(0,Ue.jsx)("div",{children:t})})};var AS;const IS=Te.cp.div.withConfig({displayName:"StyledPanelGroup"})(AS||(AS=(0,_e.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Ae.aU.space(0),kS,Ae.aU.space(-1));function RS(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 MS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const NS=function(e){return(0,Ue.jsx)(IS,{children:(0,Ue.jsx)(oS,MS({},e))})};var FS,LS,HS,US="1px",WS=Te.cp.div.withConfig({displayName:"StyledPanelHeader"})(FS||(FS=(0,_e.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),Ae.Il.color("paper"),Ae.Il.radii("form"),US,Ae.Il.radii("form"),US,(function(e){return e.isFramed?Ae.aU.space(.2):0}),Ae.Il.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(US,";\n }\n ")}(e)})),BS=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(LS||(LS=(0,_e.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Ae.aU.font(1),Ae.Il.color("text"),!Ae.iY&&(0,Te.gV)(HS||(HS=(0,_e.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Ae.Il.color("secondaryLight")));const zS=WS;var VS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,s=e.options;return(0,Ue.jsxs)(zS,{isFramed:n,isOpen:r,onClick:o?a:function(){},children:[(0,Ue.jsx)("div",{children:w().Children.map(t,(function(e){return w().cloneElement(e)}))}),o&&i&&(0,Ue.jsx)(BS,{children:(0,Ue.jsx)(He.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};VS.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const YS={Body:TS,Group:NS,Header:VS,Wrapper:DS};var qS={Body:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Body),ux.c.EmbedType.widget,YS.Body),Group:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Group),ux.c.EmbedType.widget,YS.Group),Header:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Header),ux.c.EmbedType.widget,YS.Header),Wrapper:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Wrapper),ux.c.EmbedType.widget,YS.Wrapper)};const GS={Body:ux.c.embedStrategyFactory({mapping:qS.Body}),Group:ux.c.embedStrategyFactory({mapping:qS.Group}),Header:ux.c.embedStrategyFactory({mapping:qS.Header}),Wrapper:ux.c.embedStrategyFactory({mapping:qS.Wrapper})};var QS;Te.cp.div.withConfig({displayName:"StyledButtonWrapper"})(QS||(QS=(0,_e.c)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),Ae.aU.space(0),Ae.Il.color("paper"));c(18284);var KS=new AbortController,XS=!1;window.addEventListener("beforeunload",(function(e){XS?(e.preventDefault(),e.returnValue=""):KS.abort()})),window.addEventListener("pagehide",(function(){KS.signal.aborted||KS.abort()}));var $S=function(e){return"@@redux-saga/"+e},ZS=$S("CANCEL_PROMISE"),JS=$S("CHANNEL_END"),eE=$S("IO"),tE=$S("MATCH"),nE=$S("MULTICAST"),rE=$S("SAGA_ACTION"),oE=$S("SELF_CANCELLATION"),iE=$S("TASK"),aE=$S("TASK_CANCEL"),sE=$S("TERMINATE"),cE=$S("LOCATION");function uE(){return 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},uE.apply(this,arguments)}var lE=function(e){return null==e},dE=function(e){return null!=e},fE=function(e){return"function"==typeof e},pE=function(e){return"string"==typeof e},hE=Array.isArray,mE=function(e){return e&&fE(e.then)},gE=function(e){return e&&fE(e.next)&&fE(e.throw)},vE=function e(t){return t&&(pE(t)||wE(t)||fE(t)||hE(t)&&t.every(e))},yE=function(e){return e&&fE(e.take)&&fE(e.close)},bE=function(e){return fE(e)&&e.hasOwnProperty("toString")},wE=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},xE=function(e){return yE(e)&&e[nE]};const OE=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[ZS]=function(){clearTimeout(n)},r};var SE=function(e){return function(){return e}},EE=SE(!0),kE=function(){};var DE=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var CE=function(e,t){uE(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function PE(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function _E(e){var t=!1;return function(){t||(t=!0,e())}}var jE=function(e){throw e},TE=function(e){return{value:e,done:!0}};function AE(e,t,n){void 0===t&&(t=jE),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:TE,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function IE(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var RE=function(e){return Array.apply(null,new Array(e))},ME=function(e){return function(t){return e(Object.defineProperty(t,rE,{value:!0}))}},NE=function(e){return e===sE},FE=function(e){return e===aE},LE=function(e){return NE(e)||FE(e)};function HE(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=hE(e)?RE(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||LE(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=kE,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function UE(e){return{name:e.name||"anonymous",location:WE(e)}}function WE(e){return e[cE]}function BE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var zE={isEmpty:EE,put:kE,take:kE};function VE(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var YE=function(){return zE},qE=function(e){return VE(e,4)},GE="TAKE",QE="PUT",KE="ALL",XE="RACE",$E="CALL",ZE="CPS",JE="FORK",ek="JOIN",tk="CANCEL",nk="SELECT",rk="ACTION_CHANNEL",ok="CANCELLED",ik="FLUSH",ak="GET_CONTEXT",sk="SET_CONTEXT",ck=function(e,t){var n;return(n={})[eE]=!0,n.combinator=!1,n.type=e,n.payload=t,n},uk=function(e){return ck(JE,uE({},e.payload,{detached:!0}))};function lk(e,t){return void 0===e&&(e="*"),vE(e)?(dE(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),ck(GE,{pattern:e})):xE(e)&&dE(t)&&vE(t)?ck(GE,{channel:e,pattern:t}):yE(e)?(dE(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),ck(GE,{channel:e})):void 0}function dk(e,t){return lE(t)&&(t=e,e=void 0),ck(QE,{channel:e,action:t})}function fk(e){var t=ck(KE,e);return t.combinator=!0,t}function pk(e,t){var n,r=null;return fE(e)?n=e:(hE(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&pE(n)&&fE(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function hk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck($E,pk(e,n))}function mk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck(JE,pk(e,n))}function gk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return uk(mk.apply(void 0,[e].concat(n)))}function vk(e){void 0===e&&(e=DE);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck(nk,{selector:e,args:n})}var yk=hk.bind(null,OE),bk=function(e){return{done:!0,value:e}},wk={};function xk(e){return yE(e)?"channel":bE(e)?String(e):fE(e)?e.name:String(e)}function Ok(e,t,n){var r,o,i,a=t;function s(t,n){if(a===wk)return bk(t);if(n&&!o)throw a=wk,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===wk?bk(t):i}return AE(s,(function(e){return s(null,e)}),n)}function Sk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:lk(e)},s=function(e){return i=e};return Ok({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:mk.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+xk(e)+", "+t.name+")")}function Ek(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:lk(e)},c=function(e){return{done:!1,value:mk.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=oE),ck(tk,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return Ok({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+xk(e)+", "+t.name+")")}function kk(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a,s,c,u,l={done:!1,value:lk(t)},d={done:!1,value:(c={action:lk(t),debounce:yk(e)},u=ck(XE,c),u.combinator=!0,u)},f=function(e){return a=e},p=function(e){return s=e};return Ok({q1:function(){return{nextState:"q2",effect:l,stateUpdater:f}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:p}},q3:function(){return s.debounce?{nextState:"q1",effect:(t=a,{done:!1,value:mk.apply(void 0,[n].concat(o,[t]))})}:{nextState:"q2",effect:(e=s.action,{done:!1,value:e}),stateUpdater:f};var e,t}},"q1","debounce("+xk(t)+", "+n.name+")")}function Dk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return mk.apply(void 0,[Sk,e,t].concat(r))}function Ck(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return mk.apply(void 0,[Ek,e,t].concat(r))}function Pk(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return mk.apply(void 0,[kk,e,t,n].concat(o))}var _k=function(e,t,n){return d().mark((function r(){var o,i,a,s=arguments;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),a=0;a<o;a++)i[a]=s[a];case 1:return r.prev=2,r.next=5,hk.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==KS.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,dk(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:m.c.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const jk={autoRestartSaga:_k,createGenerator:function(e){return d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fk(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(_k(t,null,n)))},abortController:KS,deactivatePreventFromLeaving:function(){XS=!1},activatePreventFromLeaving:function(){XS=!0}};Pe().node,Pe().bool,Pe().string,Pe().bool,Pe().objectOf(Pe().arrayOf(Pe().oneOfType([Pe().node,Pe().string]))),Pe().bool,Pe().bool,Pe().string,Pe().string,Pe().oneOf(["inside","outside-responsive","outside"]),Pe().bool,Pe().string,Pe().bool,Pe().string,Pe().bool;var Tk,Ak,Ik,Rk=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.BASE,Ae.Il.color("text")),Ae.Wn.condition.DANGER,Ae.Il.color("signal.danger")),Ae.Wn.condition.SUCCESS,Ae.Il.color("signal.success")),Ae.Wn.condition.WARNING,Ae.Il.color("signal.warning")),Ae.Wn.condition.INFO,Ae.Il.color("signal.info")),Mk=(0,Te.cp)(Vn.KM).withConfig({displayName:"StyledSignalList"})(Tk||(Tk=(0,_e.c)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Nk=Te.cp.span.withConfig({displayName:"StyledSignalListIcon"})(Ak||(Ak=(0,_e.c)(["\n margin-left: -1px;\n margin-right: ",";\n"])),Ae.aU.space(-2)),Fk=(0,Te.cp)(Vn.cP).withConfig({displayName:"StyledSignalListItem"})(Ik||(Ik=(0,_e.c)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return Rk[t]}(e)}));const Lk=function(e){return(0,Ue.jsx)(Mk,{as:"ul",children:w().Children.map(e.children,(function(e){return w().cloneElement(e)}))})};var Hk,Uk=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.BASE,!1),Ae.Wn.condition.DANGER,"times"),Ae.Wn.condition.SUCCESS,"check"),Ae.Wn.condition.WARNING,"exclamation-triangle"),Ae.Wn.condition.INFO,"info"),Wk=function(e){var t=Uk[e.condition];return t?(0,Ue.jsx)(He.c,{icon:t,position:Ae.Wn.position.SOLE,hasFixedWidth:!1}):Hk||(Hk=(0,Ue.jsx)("i",{children:"•"}))},Bk=function(e){return(0,Ue.jsxs)(Fk,{condition:e.condition,children:[(0,Ue.jsx)(Nk,{children:Wk(e)}),e.label,w().Children.map(e.children,(function(e){return w().cloneElement(e)}))]})};Bk.defaultProps={condition:Ae.Wn.condition.BASE};const zk={List:Lk,Item:Bk};const Vk=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,Tt.c)(e.error[n]))})),(0,Ue.jsx)(zk.List,{children:t.map((function(e,t){return(0,Ue.jsx)(zk.Item,{condition:"danger",label:e},t)}))})};var Yk,qk,Gk,Qk,Kk,Xk,$k,Zk,Jk,eD,tD,nD,rD,oD,iD="1.1px",aD=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},sD=Te.cp.label.withConfig({displayName:"StyledStatedValueLabel"})(Yk||(Yk=(0,_e.c)(["\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,Ae.Gj)({lineHeight:Ae.Il.lineHeight("dense")}),Ae.Il.color("paper"),(function(e){return aD(e)}),(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(qk||(qk=(0,_e.c)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),Ae.aU.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(Gk||(Gk=(0,_e.c)(["\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 "])),Ae.aU.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":Ae.aU.space(-1.8)}))}),(function(e){return e.styles})),cD=Te.cp.div.withConfig({displayName:"StyledInputArea"})(Qk||(Qk=(0,_e.c)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(Kk||(Kk=(0,_e.c)(["\n width: auto;\n "])))})),uD=Te.cp.div.withConfig({displayName:"StyledStatedValueBox"})(Xk||(Xk=(0,_e.c)(["\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 > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),iD,(function(e){return Ae.mA[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Ae.Il.radii("form"),Ae.aU.space(-2.5),Ae.aU.space(-1.5),(function(e){return!e.immutable&&(0,Ae.i)(e)}),(function(e){return aD(e)}),(0,Ae.Gj)(),Hm,(function(e){return"inside"===e.labelPosition&&(0,Te.gV)($k||($k=(0,_e.c)(["\n padding: "," "," "," ",";\n "])),Ae.aU.space(-1),Ae.aU.space(-1.7),Ae.aU.space(-2),Ae.aU.space(-1))}),(function(e){return e.styles})),lD=Te.cp.p.withConfig({displayName:"StyledStatedValueDescription"})(Zk||(Zk=(0,_e.c)(["\n &&& {\n ","\n }\n"])),(0,Ae.Gj)({fontSize:Ae.aU.font(-1)})),dD=Te.cp.div.withConfig({displayName:"StyledStatedValueError"})(Jk||(Jk=(0,_e.c)([""]))),fD=Te.cp.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(eD||(eD=(0,_e.c)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),Ae.aU.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(tD||(tD=(0,_e.c)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),Ae.aU.space(-1.5))})),pD=Te.cp.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(nD||(nD=(0,_e.c)(["\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 }\n"])),Ae.aU.space(-1.5),uD,lD,dD,Ae.aU.space(-2),lD,Ae.aU.space(-1),iD,(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(rD||(rD=(0,_e.c)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(oD||(oD=(0,_e.c)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function hD(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 mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gD=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(ag(d)).concat(w),O=g||function(e,t,n,r){return t?Ae.Wn.condition.DANGER:e?Ae.Wn.condition.INFO:n&&!r?Ae.Wn.condition.WARNING:void 0}(a,b,f,u),S={__html:"".concat(zn.sanitizeHtml(d)).concat(f?" *":"")},E=!s&&!h&&{htmlFor:l};return(0,Ue.jsx)(Rr,{children:function(e){var l=e.getRef;return(0,Ue.jsx)(fD,{labelPosition:v,children:(0,Ue.jsxs)(pD,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ue.jsx)(sD,mD(mD({},E),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ue.jsx)("span",{dangerouslySetInnerHTML:S}))})),(0,Ue.jsxs)(cD,{labelPosition:v,children:[(0,Ue.jsx)(uD,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ue.jsx)(dD,{children:(0,Ue.jsx)(Vk,{error:c})}))),i&&(r||(r=(0,Ue.jsx)(lD,{children:i})))]})]})})}})};var vD,yD,bD=function(e){return(0,Te.gV)(vD||(vD=(0,_e.c)(["\n color: ",";\n font-weight: ",";\n"])),Ae.Ml[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?Ae.Il.fontWeight("bold"):Ae.Il.fontWeight("regular")}))},wD=function(){return(0,Te.gV)(yD||(yD=(0,_e.c)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},xD=["labelPosition"];function OD(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 SD=function(e){var t=e.labelPosition,n=(0,Le.c)(e,xD);return(0,Ue.jsx)(gD,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:bD,valueStyles:wD},labelPosition:t||"outside-responsive"},n))};var ED,kD,DD,CD,PD,_D,jD=function(e){return e.signal?"signal":"shade2"},TD=function(){return(0,Te.gV)(ED||(ED=(0,_e.c)(["\n align-items: flex-start;\n"])))},AD=function(e){return(0,Te.gV)(kD||(kD=(0,_e.c)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Te.gV)(DD||(DD=(0,_e.c)(["\n ","\n "])),Ae.aU.space(-1.8)):(0,Te.gV)(CD||(CD=(0,_e.c)(["\n ","\n "])),Ae.aU.space(.1))}),Ae.Ml[jD(e)](e))},ID=function(){return(0,Te.gV)(PD||(PD=(0,_e.c)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Te.gV)(_D||(_D=(0,_e.c)(["\n ","\n "])),Ae.aU.space(-1)):void 0}),(function(e){return e.immutable&&0}))},RD=["labelPosition"];function MD(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 ND=function(e){var t=e.labelPosition,n=(0,Le.c)(e,RD);return(0,Ue.jsx)(gD,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:TD,labelStyles:AD,valueStyles:ID},labelPosition:t||"outside-responsive"},n))};var FD=(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,SD),ux.c.EmbedType.widget,ND);const LD=ux.c.embedStrategyFactory({mapping:FD});var HD,UD,WD,BD,zD=Te.cp.span.withConfig({displayName:"StyledSearchIconWrapper"})(HD||(HD=(0,_e.c)(["\n margin-right: ",";\n color: ",";\n"])),Ae.aU.space(-.8),Ae.Il.color("text")),VD=Te.cp.div.withConfig({displayName:"StyledSearchBox"})(UD||(UD=(0,_e.c)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),YD=Te.cp.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(WD||(WD=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr),qD=w().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,i=e.placeholder,a=(0,b.useState)(n||""),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,Ue.jsx)(VD,{children:(0,Ue.jsx)(LD,{hasValue:Boolean(c),labelPosition:"inside",children:(0,Ue.jsxs)(qr,{children:[BD||(BD=(0,Ue.jsx)(zD,{children:(0,Ue.jsx)(He.c,{icon:"search"})})),(0,Ue.jsx)(YD,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;u(t),(0===t.length||t.length>=r)&&o(t)},value:c,"aria-label":i,placeholder:i}),(null==c?void 0:c.length)>0&&(0,Ue.jsx)(Dt,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));qD.defaultProps={debounce:200,minInputLength:3};const GD=Je.Debouncer(qD,100,"onSearch");var QD,KD=[Ae.Wn.condition.INFO,Ae.Wn.condition.DANGER,Ae.Wn.condition.SUCCESS,Ae.Wn.condition.WARNING],XD=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.DANGER,Ae.Il.color("signal.danger")),Ae.Wn.condition.SUCCESS,Ae.Il.color("signal.success")),Ae.Wn.condition.WARNING,Ae.Il.color("signal.warning")),Ae.Wn.condition.INFO,Ae.Il.color("signal.info")),$D=Te.cp.div.withConfig({displayName:"StyledSignalBox"})(QD||(QD=(0,_e.c)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: #fff;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return XD[e.condition]||XD[Ae.Wn.condition.INFO]}(e)}),Ae.aU.space(-1),Ae.aU.space(-1));$D.propTypes={condition:Ae.Wn.oneOfPropTypeAndCompletelyMapped(KD,XD)};var ZD=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,Ue.jsxs)($D,{condition:t,children:[n&&(0,Ue.jsx)(Vn.cp.H5,{children:n}),w().Children.map(r,(function(e){return w().cloneElement(e)})),o&&(0,Ue.jsx)(Vn.cp.Small,{children:o})]})};ZD.defaultProps={condition:Ae.Wn.condition.BASE};var JD=function(e){return(0,Ue.jsxs)(Vn.cp.Span,{children:[e.some," / ",e.of]})};JD.defaultProps={some:0};function eC(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 tC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nC={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},rC={Left:"Left",Right:"Right"},oC={Top:"Top",Bottom:"Bottom"},iC=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?rC.Right:rC.Left,vertical:o?oC.Bottom:oC.Top}};const aC=function(e){var t=(0,b.useState)(nC),n=(0,Ye.c)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,b.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return tC(tC({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(nC),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!eg()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=iC(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return tC(tC({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&eg()(a,t)){var n=iC(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return tC(tC({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(nC),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,b.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},sC=rC;var cC,uC,lC,dC,fC,pC,hC,mC=Te.cp.div.withConfig({displayName:"StyledColumnPickerWrapper"})(cC||(cC=(0,_e.c)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),gC=Te.cp.div.withConfig({displayName:"StyledControlsWrapper"})(uC||(uC=(0,_e.c)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),Ae.aU.space(.7)),vC=Te.cp.ul.withConfig({displayName:"StyledUl"})(lC||(lC=(0,_e.c)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\n margin-left: 3px; // make room for drop indicator when it appears on the left-most side\n padding-left: 0 !important; // Nice2 Reset\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; // Nice2 Reset\n }\n"])),Ae.aU.space(-.5),Vn.wn),yC=Te.cp.input.withConfig({displayName:"StyledCheckbox"})(dC||(dC=(0,_e.c)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),Ae.aU.space(-1)),bC=Te.cp.span.withConfig({displayName:"StyledId"})(fC||(fC=(0,_e.c)(["\n color: ",";\n font-style: italic;\n"])),Ae.Il.color("text")),wC=(0,Te.cp)(Vn.cP).withConfig({displayName:"StyledItem"})(pC||(pC=(0,_e.c)(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n // when border appears, the content moves over by the width of the border, so we move the content back the same width\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),Ae.aU.space(-2),Ae.aU.space(-2),Ae.aU.space(-2),(function(e){return e.dropPosition===sC.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===sC.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===sC.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),xC=Te.cp.span.withConfig({displayName:"StyledNumber"})(hC||(hC=(0,_e.c)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),Ae.aU.space(-1),Ae.Il.color("text"),Ae.aU.font(0));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}function SC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var EC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},kC=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const DC=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=EC(r),s=(0,b.useState)(null),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=(0,b.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===sC.Left)return[].concat((0,Tt.c)(e),[o,t]);if(a===sC.Right)return[].concat((0,Tt.c)(e),[t,o])}return[].concat((0,Tt.c)(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=aC(d),p=f.dndEvents,h=f.dndState,m=(0,b.useMemo)((function(){return kC(a,u)}),[a,u]),g=m.some((function(e){return e.hidden})),v=(0,b.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,Ue.jsxs)(wC,SC(SC({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&SC({},p(e.id))),{},{children:[(0,Ue.jsx)(yC,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return EC(n.map((function(n){return n.id===e.id?SC(SC({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ue.jsxs)(Vn.cp.Label,{for:e.id,children:[(0,Ue.jsxs)(xC,{children:[n+1,"."]}),e.label?(0,Ue.jsx)("span",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(e.label)}}):(0,Ue.jsx)(bC,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,Ue.jsxs)(mC,{children:[(0,Ue.jsx)(GD,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ue.jsxs)(gC,{children:[(0,Ue.jsx)(yC,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=kC(e,u);return EC((0,Tt.c)(e.map((function(e){return SC(SC({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,Ue.jsx)(Vn.cp.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ue.jsx)(vC,{children:v})]})},CC=(0,y.injectIntl)(DC);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 _C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jC="yyyy-MM-dd",TC=function(e){return Uf(e,jC)?Hf(e,jC,new Date):Uf(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||Uf(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?Qu(new Date(e)):null},AC={datetime:{type:"date",toRange:function(e){return{from:e?TC(e).toISOString():null,to:e?Vu(TC(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?$l(new Date(e.from),jC):null!=e&&e.to?$l(new Date(e.to),jC):null},getToOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const IC=AC;var RC,MC,NC,FC,LC,HC=Te.cp.div.withConfig({displayName:"StyledIconWrapper"})(RC||(RC=(0,_e.c)(["\n font-size: ",";\n color: ",";\n"])),Ae.aU.font(-2.7),Ae.Il.color("text")),UC=Te.cp.div.withConfig({displayName:"StyledRange"})(MC||(MC=(0,_e.c)(["\n display: flex;\n align-items: baseline;\n"]))),WC=Te.cp.div.withConfig({displayName:"StyledInput"})(NC||(NC=(0,_e.c)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),BC=(0,Te.cp)(Dt).withConfig({displayName:"StyledBall"})(FC||(FC=(0,_e.c)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function zC(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 n=null!=arguments[t]?arguments[t]:{};t%2?zC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const YC=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,s=e.toText,c=IC[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,b.useRef)(t);l.current=t;var d=(0,b.useMemo)((function(){return VC(VC({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(VC(VC({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(VC(VC({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,Ue.jsx)(Wx,VC(VC({type:h},Sr()(e,["type"])),{},{events:d})),g=(0,Ue.jsxs)(WC,{children:[(0,Ue.jsx)(Wx,VC(VC({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:a})),LC||(LC=(0,Ue.jsx)(HC,{children:(0,Ue.jsx)(He.c,{icon:"horizontal-rule"})})),(0,Ue.jsx)(Wx,VC(VC({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,Ue.jsxs)(UC,{children:[u?g:m,(0,Ue.jsx)(BC,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var qC,GC,QC,KC,XC,$C=Te.cp.div.withConfig({displayName:"StyledBurgerButton"})(qC||(qC=(0,_e.c)(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),Ae.Il.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Te.gV)(GC||(GC=(0,_e.c)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,y.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,Ue.jsxs)($C,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[QC||(QC=(0,Ue.jsx)("span",{})),KC||(KC=(0,Ue.jsx)("span",{})),XC||(XC=(0,Ue.jsx)("span",{}))]})}));var ZC,JC,eP=Te.cp.div.withConfig({displayName:"StyledPagination"})(ZC||(ZC=(0,_e.c)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),Ae.aU.space(-1),Ae.aU.space(-1.4)),tP=(0,Te.cp)(yt).withConfig({displayName:"StyledPaginationButton"})(JC||(JC=(0,_e.c)(["\n padding: "," ",";\n"])),Ae.aU.space(-2),Ae.aU.space(-.5));const nP=(0,y.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,Ue.jsxs)(eP,{children:[(0,Ue.jsxs)(xr,{children:[(0,Ue.jsx)(tP,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,Ue.jsx)(tP,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,Ue.jsx)(tP,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,Ue.jsx)(tP,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)(y.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),rP=nP;var oP;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(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 a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-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)}}i(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,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}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);i(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;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,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)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,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],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}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 i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(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,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*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 i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(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 i(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 i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(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 i(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 a=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 a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.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 a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.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*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.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 a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.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 s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(oP||(oP={})),(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={}))})(oP||(oP={})),(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={}))})(oP||(oP={}));var iP=oP;
|
|
44
|
+
*/var r=n(69624);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},36728:(e,t,n)=>{"use strict";e.exports=n(57556)},2062:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)},c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(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]]}const l=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return u(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function f(e){return 14+(e+64>>>9<<4)+1}function p(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return p((a=p(p(t,e),p(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,c=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=p(n,a),r=p(r,s),o=p(o,c),i=p(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(f(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function x(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function O(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=O(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=O(o,5)+x(n,a,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=O(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},68976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(4003))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},86728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,s.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var v=e.split("@"),y=v.pop(),b=y.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var w=v.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var x=(w=w.toLowerCase()).split("+")[0];if(!(0,o.default)(x.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=x.split("."),S=0;S<O.length;S++)if(!f.test(O[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(w,{max:64})&&(0,o.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var E=y.slice(1,-1);if(0===E.length||!(0,a.default)(E))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?m.test(w):p.test(w);for(var k=t.allow_utf8_local_part?h:d,D=w.split("."),C=0;C<D.length;C++)if(!k.test(D[C]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(4003)),o=c(n(68976)),i=c(n(21432)),a=c(n(75008)),s=c(n(14684));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},21432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(4003)),o=i(n(14684));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},75008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(4003))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},42280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var y=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}(O=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(O,S)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(O,S)||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.")}()),w=b[0],x=b[1];if(""===w&&""===x)return!1}var O,S;p=g.join("@"),m=null,v=null;var E=p.match(l);E?(f="",v=E[1],m=E[2]||null):(f=(g=p.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(4003)),o=s(n(21432)),i=s(n(75008)),a=s(n(14684));function s(e){return e&&e.__esModule?e:{default:e}}function c(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 u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},4003:(e,t)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},14684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},69624:e=>{"use strict";e.exports=t},42416:t=>{"use strict";t.exports=e},6636:(e,t,n)=>{var r=n(59848).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new P(r||[]);return a(i,"_invoke",{value:E(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function m(){}function g(){}function v(){}var y={};d(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,c)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,s,c){var u=p(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function _(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return g.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},O(S.prototype),d(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(x),d(x,l,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},33248:(e,t,n)=>{var r=n(6636)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},3504:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},74412:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},82840: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},52376:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},31496:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>ve,ReactReduxContext:()=>y,batch:()=>Oe,connect:()=>ge,createDispatchHook:()=>we,createSelectorHook:()=>E,createStoreHook:()=>ye,shallowEqual:()=>J,useDispatch:()=>xe,useSelector:()=>k,useStore:()=>be}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(69624)),p=n(36728),h=l(n(69624)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var x=w(),O=b,S=(e,t)=>e===t;function E(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=S,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var k=E(),D=Symbol.for("react.element"),C=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),I=Symbol.for("react.server_context"),R=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),R),U=F;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case D:{let n=e.type;switch(n){case P:case j:case _:case M:case N:return n;default:{let e=n&&n.$$typeof;switch(e){case I:case A:case R:case L:case F:case T:return e;default:return t}}}}case C:return t}}}(e)===F}function B(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function z(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function V(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function Y(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=V(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=V(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function Q(e){e()}var K={notify(){},get:()=>[]};function X(e,t){let n,r=K,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Q((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=K)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var $=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function J(e,t){if(Z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Z(e[n[r]],t[n[r]]))return!1;return!0}var ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},re={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:ne};function oe(e){return W(e)?ne:re[e.$$typeof]||ee}var ie=Object.defineProperty,ae=Object.getOwnPropertyNames,se=Object.getOwnPropertySymbols,ce=Object.getOwnPropertyDescriptor,ue=Object.getPrototypeOf,le=Object.prototype;function de(e,t){if("string"!=typeof t){if(le){let n=ue(t);n&&n!==le&&de(e,n)}let n=ae(t);se&&(n=n.concat(se(t)));let r=oe(e),o=oe(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(te[a]||o&&o[a]||r&&r[a])){let n=ce(t,a);try{ie(e,a,n)}catch{}}}}return e}var fe=b,pe=[null,null];function he(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function me(e,t){return e===t}var ge=function(e,t,n,{pure:r,areStatesEqual:o=me,areOwnPropsEqual:i=J,areStatePropsEqual:a=J,areMergedPropsEqual:s=J,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?Y(e):q(e,"mapStateToProps"):z((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?z((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?Y(e):q(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return B(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return pe;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(),w=m.useRef(i),x=m.useRef(),O=m.useRef(!1),S=(m.useRef(!1),m.useRef(!1)),E=m.useRef();$((()=>(S.current=!0,()=>{S.current=!1})),[]);let k,D=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),C=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,O,S,x,v,e):()=>{}),[g]);!function(e,t,n){$((()=>e(...t)),n)}(he,[w,b,O,i,x,v]);try{k=fe(C,D,f?()=>p(f(),i):D)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}$((()=>{E.current=void 0,x.current=void 0,b.current=k}));let P=m.useMemo((()=>m.createElement(e,{...k,ref:o})),[o,e,k]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},P):P),[a,P,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,de(t,e)}return de(g,e)}};var ve=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return $((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function ye(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var be=ye();function we(e=y){let t=e===y?be:ye(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xe=we(),Oe=Q;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{fe=e})(f.useSyncExternalStore)},99988:(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,{c:()=>r})},80472:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{c:()=>r})},87088:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{c:()=>r})},92920:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(52028);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.c)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52536:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(52028);function o(e,t,n){return(t=(0,r.c)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},76184:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{c:()=>r})},62988:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(61936);function o(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&&(0,r.c)(e,t)}},5724:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{c:()=>r})},65500:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{c:()=>r})},52822:(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={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{c:()=>r})},19952:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e,t){if(t&&("object"===(0,r.c)(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)}},61936:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{c:()=>r})},32920:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(80472);var o=n(70309),i=n(65500);function a(e,t){return(0,r.c)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.c)(e,t)||(0,i.c)()}},86692:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{c:()=>r})},32612:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(99988);var o=n(5724),i=n(70309);function a(e){return function(e){if(Array.isArray(e))return(0,r.c)(e)}(e)||(0,o.c)(e)||(0,i.c)(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.")}()}},52028:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e){var t=function(e,t){if("object"!==(0,r.c)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.c)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.c)(t)?t:String(t)}},81568:(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},r(e)}n.d(t,{c:()=>r})},70309:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99988);function o(e,t){if(e){if("string"==typeof e)return(0,r.c)(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.c)(e,t):void 0}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({8:"vendor-libphonenumber-js",216:"html-editor",448:"vendor-icons",570:"phone-formatter",784:"code-editor",952:"vendor-fontawesome"}[e]||e)+"."+{8:"4b1909c2f8a566e22e25",26:"f61522b137287927e635",216:"988831263d9c91732683",448:"a22123aba6eed26618fb",570:"c51becfaaf48f9c09e80",648:"8560541a14350540e119",784:"620aaccfd30a9bb96120",904:"573ca4107676b894ae8e",952:"d8c7377c8bfd33fb7a29"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.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),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={376:0};c.f.j=(t,n)=>{var r=c.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 i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.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))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>Wxe});var e={};c.r(e),c.d(e,{ACTION_INVOKE:()=>V8,ACTION_INVOKED:()=>q8,ACTION_IN_PROGRESS:()=>Y8,actionInvoke:()=>G8,actionInvoked:()=>Q8});var t={};c.r(t),c.d(t,{focusErrorField:()=>Jte,focusField:()=>$te,formInitialValueSelector:()=>Xte,getCurrentEntityState:()=>nne,getEntityForSubmit:()=>rne,getFormErrors:()=>Zte,handleInvalidForm:()=>tne,handleSubmitError:()=>one,touchAllFields:()=>ene});var n={};c.r(n),c.d(n,{asyncValidationStop:()=>fne,autoComplete:()=>cne,default:()=>sne,loadFormValues:()=>dne,onChange:()=>une,onRegister:()=>lne});var r={};c.r(r),c.d(r,{createAction:()=>joe,createCustomComponent:()=>Aoe,createFieldSet:()=>_oe,createLayoutComponent:()=>Toe});var o={};c.r(o),c.d(o,{createAction:()=>joe,createCustomComponent:()=>Aoe,createFieldSet:()=>_oe,createLayoutComponent:()=>Ioe});var i={};function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}c.r(i),c.d(i,{useAsyncValidation:()=>Hie,useFormEvents:()=>Uie,useSyncValidation:()=>Lie});var l=c(33248),d=c.n(l),f=c(66904),p=c.n(f),h=c(28352),m=c(8688),g="tocco-util/LOG_ERROR",v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:g,payload:{title:e,description:t,error:n,dateTime:r}}},y=c(98168),b=c(69624),w=c.n(b),x=c(36728),O=b,S=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function k(){if(!O.createContext)return{};const e=E[S]??(E[S]=new Map);let t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var D=k(),C=()=>{throw new Error("uSES not initialized!")};var P=Symbol.for("react.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),R=Symbol.for("react.context"),M=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),W=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),N),B=H;function z(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case P:{const n=e.type;switch(n){case j:case A:case T:case F:case L:return n;default:{const e=n&&n.$$typeof;switch(e){case M:case R:case N:case U:case H:case I:return e;default:return t}}}}case _:return t}}}function V(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function Y(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function q(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function G(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=q(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=q(o),o=r(t,n)),o},r}}function Q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function K(e,t,n){return{...n,...e,...t}}function X(e){e()}var $={notify(){},get:()=>[]};function Z(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){X((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?O.useLayoutEffect:O.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[W]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return function(e){return z(e)===H}(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){const n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));const r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){const n=le(t,a);try{se(e,a,n)}catch(e){}}}}return e}var he=C,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=D}={}){const l=u,d=function(e){return e?"function"==typeof e?G(e):Q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?G(e):Q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Q(e,"mergeProps"):()=>K}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=O.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=O.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),s=O.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=O.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return V(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=O.useMemo((()=>{if(!h)return me;const e=Z(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=O.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),y=O.useRef(),b=O.useRef(i),w=O.useRef(),x=O.useRef(!1),S=(O.useRef(!1),O.useRef(!1)),E=O.useRef();J((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=O.useMemo((()=>()=>w.current&&i===b.current?w.current:p(d.getState(),i)),[d,i]),D=O.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,b,y,x,S,w,g,e):()=>{}),[m]);var C,P,_;let j;C=ge,P=[b,y,x,i,w,g],J((()=>C(...P)),_);try{j=he(D,k,f?()=>p(f(),i):k)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}J((()=>{E.current=void 0,w.current=void 0,y.current=j}));const T=O.useMemo((()=>O.createElement(e,{...j,ref:o})),[o,e,j]);return O.useMemo((()=>h?O.createElement(a.Provider,{value:v},T):T),[a,T,v])}const m=O.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=O.forwardRef((function(e,t){return O.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(m,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=O.useMemo((()=>{const t=Z(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=O.useMemo((()=>e.getState()),[e]);J((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||D;return O.createElement(c.Provider,{value:a},n)};(e=>{e})(x.useSyncExternalStoreWithSelector),(e=>{he=e})(b.useSyncExternalStore);var we,xe,Oe=c(87088),Se=c(92920),Ee=c(19952),ke=c(76184),De=c(62988),Ce=c(3268),Pe=c.n(Ce),_e=c(86692),je=c(96684),Te=c(76548),Ae=c(67664),Ie=(0,Te.gV)(we||(we=(0,_e.c)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,Ae.Gj)(),Ae.gn.color("text"),Ae.gn.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,Te.cp)(je.Af)(xe||(xe=(0,_e.c)(["\n ",";\n"])),Ie);var Re;const Me=(0,Te.cp)(je.cH).withConfig({shouldForwardProp:function(e){return!["neutral"].includes(e)}})(Re||(Re=(0,_e.c)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),Ae.Il.color("text"),Ie);var Ne,Fe=c(52536),Le=c(52822),He=c(30392),Ue=c(17624);function We(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze=(0,b.lazy)((function(){return c.e(26).then(c.bind(c,42026))}));const Ve=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:Ne||(Ne=(0,Ue.jsx)(w().Fragment,{})),children:(0,Ue.jsx)(ze,Be({},e))})};var Ye=c(32920);function qe(e,t){var n=(0,b.useState)(e),r=(0,Ye.c)(n,2),o=r[0],i=r[1];return(0,b.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Ge(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 Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return w().forwardRef((function(r,o){var i=r.value,a=(0,b.useState)(i),s=(0,Ye.c)(a,2),c=s[0],u=s[1],l=qe(c,t),d=(0,Ye.c)(l,2),f=d[0],p=d[1],h=(0,b.useRef)(i),m=r[n];return(0,b.useEffect)((function(){c!==i&&c===f&&(u(i),h.current=i,p(i))}),[i]),(0,b.useEffect)((function(){m&&h.current!==f&&(m(f),h.current=f)}),[f,m]),(0,Ue.jsx)(e,Qe(Qe(Qe({},r),{},{value:c},(0,Fe.c)({},n,u)),{},{ref:o}))}))};const Xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,b.useEffect)((function(){if(e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const $e=function(){var e=(0,b.useState)(),t=(0,Ye.c)(e,2),n=t[0],r=t[1],o=(0,b.useRef)(),i=(0,b.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,b.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,b.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Ze=function(e){var t=(0,b.useRef)(null),n=(0,b.useState)(null),r=(0,Ye.c)(n,2),o=r[0],i=r[1],a=(0,b.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,b.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,b.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},Je={useAutofocus:Xe,useDebounce:qe,Debouncer:Ke,useUserActive:Ze,usePrevious:function(e){var t=(0,b.useRef)();return(0,b.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,b.useRef)(!1);(0,b.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:$e};var et="visible",tt="hidden",nt="responsive",rt={labelVisibility:nt},ot=w().createContext(rt);const it=function(e){var t=e.children,n=(0,b.useRef)(null),r=Je.useResizeObserver(),o=(0,Ye.c)(r,2),i=o[0],a=o[1],s=n.current?(null==a?void 0:a.width)<n.current:(null==a?void 0:a.height)>45;(0,b.useEffect)((function(){n.current=s?a.width+1:null}),[s]);var c=(0,b.useMemo)((function(){return{labelVisibility:s?tt:et}}),[s]);return(0,Ue.jsx)(ot.Provider,{value:c,children:t(i)})};var at,st,ct,ut,lt,dt,ft=(0,Te.gV)(ut||(ut=(0,_e.c)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),Ae.gn.radii("button"),Ae.aU.space(-1.38),Ae.aU.space(-2.1),Ae.aU.space(0),(0,Ae.Gj)(),(function(e){return e.withoutBackground?(0,Te.gV)(ct||(ct=(0,_e.c)(["\n background: transparent;\n"]))):(0,Ae.e4)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Te.gV)(at||(at=(0,_e.c)(["\n line-height: ",";\n padding: "," ",";\n "])),Ae.gn.lineHeight("dense")({theme:n}),Ae.aU.space(-3.5)({theme:n}),Ae.aU.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Te.gV)(st||(st=(0,_e.c)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===Ae.Wn.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(pt," {\n display: none;\n }\n ");return t&&n===tt?r:t&&n===nt&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),pt=Te.cp.span.withConfig({displayName:"StyledLabelWrapper"})(lt||(lt=(0,_e.c)([""])));const ht=Te.cp.button.withConfig({displayName:"StyledButton"})(dt||(dt=(0,_e.c)(["\n ","\n"])),ft);function mt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt=w().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,b.useContext)(ot).labelVisibility;return(0,Ue.jsxs)(ht,gt(gt(gt({ref:t},n),e),{},{ink:r||Ae.Wn.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[i&&!a&&(0,Ue.jsx)(He.c,{icon:i}),a&&(0,Ue.jsx)(Ve,{ink:r||Ae.Wn.ink.BASE,look:s,position:c,size:"1em"}),!u&&o?(0,Ue.jsx)(pt,{children:o}):l||""]}))}));vt.defaultProps={iconPosition:Ae.Wn.position.PREPEND,look:Ae.Wn.look.FLAT,type:"button"};const yt=vt;var bt;(0,Te.cp)(je.cH).withConfig({shouldForwardProp:function(e){return!["labelVisibility","ink","label","icon","withoutBackground"].includes(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(bt||(bt=(0,_e.c)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),Ae.Il.color("text"),ft);var wt,xt;const Ot=Te.cp.button.withConfig({displayName:"StyledButton"})(xt||(xt=(0,_e.c)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,Ae.Gj)(),Ae.e4,(function(){return(0,Te.gV)(wt||(wt=(0,_e.c)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),Ae.aU.space(-3),Ae.gn.fontSize("base"),Ae.gn.lineHeight("regular"),Ae.aU.space(-3))}));function St(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 Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt=w().forwardRef((function(e,t){return(0,Ue.jsx)(Ot,Et(Et({ref:t,type:"button"},e),{},{children:(0,Ue.jsx)(He.c,{icon:e.icon})}))}));kt.propTypes={disabled:Pe().bool,icon:Pe().string.isRequired,ink:Ae.Wn.inkPropTypes,look:Pe().oneOf([Ae.Wn.look.FLAT,Ae.Wn.look.RAISED]),onClick:Pe().func,title:Pe().string,tabIndex:Pe().number,"data-cy":Pe().string};const Dt=kt;var Ct,Pt,_t,jt,Tt=c(32612),At=c(83400),It=c.n(At),Rt=c(56584),Mt=c.n(Rt),Nt=c(20448),Ft=c.n(Nt),Lt=c(89456),Ht=c.n(Lt),Ut="bodyAttributes",Wt="htmlAttributes",Bt="titleAttributes",zt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Vt=(Object.keys(zt).map((function(e){return zt[e]})),"charset"),Yt="cssText",qt="href",Gt="http-equiv",Qt="innerHTML",Kt="itemprop",Xt="name",$t="property",Zt="rel",Jt="src",en="target",tn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},nn="defaultTitle",rn="defer",on="encodeSpecialCharacters",an="onChangeClientState",sn="titleTemplate",cn=Object.keys(tn).reduce((function(e,t){return e[tn[t]]=t,e}),{}),un=[zt.NOSCRIPT,zt.SCRIPT,zt.STYLE],ln="data-react-helmet",dn="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},fn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),pn=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},hn=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},mn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},gn=function(e){var t=xn(e,zt.TITLE),n=xn(e,sn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=xn(e,nn);return t||r||void 0},vn=function(e){return xn(e,an)||function(){}},yn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return pn({},e,t)}),{})},bn=function(e,t){return t.filter((function(e){return void 0!==e[zt.BASE]})).map((function(e){return e[zt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},wn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Dn("Helmet: "+e+' should be of type "Array". Instead found type "'+dn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===Zt&&"canonical"===e[n].toLowerCase()||c===Zt&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==Qt&&s!==Yt&&s!==Kt||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Ht()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},xn=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},On=(Ct=Date.now(),function(e){var t=Date.now();t-Ct>16?(Ct=t,e(t)):setTimeout((function(){On(e)}),0)}),Sn=function(e){return clearTimeout(e)},En="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||On:c.g.requestAnimationFrame||On,kn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Sn:c.g.cancelAnimationFrame||Sn,Dn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Cn=null,Pn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Tn(zt.BODY,r),Tn(zt.HTML,o),jn(d,f);var p={baseTag:An(zt.BASE,n),linkTags:An(zt.LINK,i),metaTags:An(zt.META,a),noscriptTags:An(zt.NOSCRIPT,s),scriptTags:An(zt.SCRIPT,u),styleTags:An(zt.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},_n=function(e){return Array.isArray(e)?e.join(""):e},jn=function(e,t){void 0!==e&&document.title!==e&&(document.title=_n(e)),Tn(zt.TITLE,t)},Tn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(ln),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(ln):n.getAttribute(ln)!==a.join(",")&&n.setAttribute(ln,a.join(","))}},An=function(e,t){var n=document.head||document.querySelector(zt.HEAD),r=n.querySelectorAll(e+"["+ln+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Qt)n.innerHTML=t.innerHTML;else if(r===Yt)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(ln,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},In=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[tn[n]||n]=e[n],t}),t)},Mn=function(e,t,n){switch(e){case zt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[ln]=!0,o=Rn(n,r),[w().createElement(zt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=In(n),i=_n(t);return o?"<"+e+" "+ln+'="true" '+o+">"+mn(i,r)+"</"+e+">":"<"+e+" "+ln+'="true">'+mn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Ut:case Wt:return{toComponent:function(){return Rn(t)},toString:function(){return In(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[ln]=!0,r);return Object.keys(t).forEach((function(e){var n=tn[e]||e;if(n===Qt||n===Yt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),w().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Qt||e===Yt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+mn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===un.indexOf(e);return t+"<"+e+" "+ln+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Nn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Mn(zt.BASE,t,r),bodyAttributes:Mn(Ut,n,r),htmlAttributes:Mn(Wt,o,r),link:Mn(zt.LINK,i,r),meta:Mn(zt.META,a,r),noscript:Mn(zt.NOSCRIPT,s,r),script:Mn(zt.SCRIPT,c,r),style:Mn(zt.STYLE,u,r),title:Mn(zt.TITLE,{title:d,titleAttributes:f},r)}},Fn=Mt()((function(e){return{baseTag:bn([qt,en],e),bodyAttributes:yn(Ut,e),defer:xn(e,rn),encode:xn(e,on),htmlAttributes:yn(Wt,e),linkTags:wn(zt.LINK,[Zt,qt],e),metaTags:wn(zt.META,[Xt,Vt,Gt,$t,Kt],e),noscriptTags:wn(zt.NOSCRIPT,[Qt],e),onChangeClientState:vn(e),scriptTags:wn(zt.SCRIPT,[Jt,Qt],e),styleTags:wn(zt.STYLE,[Yt],e),title:gn(e),titleAttributes:yn(Bt,e)}}),(function(e){Cn&&kn(Cn),e.defer?Cn=En((function(){Pn(e,(function(){Cn=null}))})):(Pn(e),Cn=null)}),Nn)((function(){return null})),Ln=(Pt=Fn,jt=_t=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}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.shouldComponentUpdate=function(e){return!Ft()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case zt.SCRIPT:case zt.NOSCRIPT:return{innerHTML:t};case zt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return pn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[pn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case zt.TITLE:return pn({},o,((t={})[r.type]=a,t.titleAttributes=pn({},i),t));case zt.BODY:return pn({},o,{bodyAttributes:pn({},i)});case zt.HTML:return pn({},o,{htmlAttributes:pn({},i)})}return pn({},o,((n={})[r.type]=pn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=pn({},t);return Object.keys(e).forEach((function(t){var r;n=pn({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return w().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[cn[n]||n]=e[n],t}),t)}(hn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case zt.LINK:case zt.META:case zt.NOSCRIPT:case zt.SCRIPT:case zt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=hn(e,["children"]),r=pn({},n);return t&&(r=this.mapChildrenToProps(t,r)),w().createElement(Pt,r)},fn(t,null,[{key:"canUseDOM",set:function(e){Pt.canUseDOM=e}}]),t}(w().Component),_t.propTypes={base:It().object,bodyAttributes:It().object,children:It().oneOfType([It().arrayOf(It().node),It().node]),defaultTitle:It().string,defer:It().bool,encodeSpecialCharacters:It().bool,htmlAttributes:It().object,link:It().arrayOf(It().object),meta:It().arrayOf(It().object),noscript:It().arrayOf(It().object),onChangeClientState:It().func,script:It().arrayOf(It().object),style:It().arrayOf(It().object),title:It().string,titleAttributes:It().object,titleTemplate:It().string},_t.defaultProps={defer:!0,encodeSpecialCharacters:!0},_t.peek=Pt.peek,_t.rewind=function(){var e=Pt.rewind();return e||(e=Nn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},jt);Ln.renderStatic=Ln.rewind;var Hn=c(24300),Un=c.n(Hn),Wn=["border","border-spacing","padding","margin","text-align","width"];Un().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Wn.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Bn=function(e){return e?Un().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},zn={sanitizeHtml:Bn};var Vn=c(13356),Yn={error:"exclamation-circle",home:"house-blank"},qn=function(e){return Yn[e]||e};const Gn=function(e){var t=e.type;return t&&"record"!==t?(0,Ue.jsx)(He.c,{icon:qn(t)}):null};var Qn,Kn,Xn,$n,Zn,Jn,er=["component"],tr=Te.cp.div.withConfig({displayName:"StyledBreadcrumbs"})(Qn||(Qn=(0,_e.c)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Ae.gn.color("backgroundBreadcrumbs")(e)}),Ae.aU.space(-.7),Ae.aU.space(.39)),nr=(0,Te.cp)((function(e){var t=e.component,n=(0,Le.c)(e,er);return w().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Kn||(Kn=(0,_e.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.color("secondaryLight"),Ae.gn.color("breadcrumbsActive")),rr=Te.cp.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Xn||(Xn=(0,_e.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.fontWeight("bold"),(function(e){return e.active&&Ae.gn.color("breadcrumbsActive")}),Ae.gn.color("breadcrumbsActive")),or=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledBreadcrumbSeparator"})($n||($n=(0,_e.c)(["\n margin-left: ",";\n margin-right: ",";\n"])),Ae.aU.space(-2),Ae.aU.space(-2)),ir=Te.cp.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Zn||(Zn=(0,_e.c)(["\n "," {\n margin-right: ",";\n }\n"])),He._,Ae.aU.space(-1));const ar=function(){return Jn||(Jn=(0,Ue.jsx)(or,{breakWords:!0,children:(0,Ue.jsx)(He.c,{icon:"chevron-right"})}))};var sr;function cr(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 ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lr=function(e){return e.title||e.display},dr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(lr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(lr).join(" - ");break;default:r=lr(n)}return r},fr=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,a=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,Tt.c)(i),(0,Tt.c)(a?[a]:[]));if(0===d.length)return null;var f,p=d.map((function(e,n){var o,i=e.display||"",a=n===d.length-1?rr:nr,s=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},f=u?t||(t=(0,Ue.jsx)(u,{})):sr||(sr=(0,Ue.jsx)(Me,{}));return(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)(ir,{children:(0,Ue.jsxs)(a,ur(ur(ur({neutral:!0},s),l),{},{onClick:(o=e,function(){c&&!1!==o.clickable&&c(o)}),component:f,children:[(0,Ue.jsx)(Gn,{type:e.type}),(0,Ue.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ue.jsx)(ar,{},"icon".concat(n)),t]}));return(0,Ue.jsxs)(tr,{backgroundColor:s,children:[l?(0,Ue.jsx)(Ln,{defer:!1,children:(0,Ue.jsx)("title",{children:dr(d,(f="client.component.breadcrumbs.createTitle",n.formatMessage({id:f})))})}):null,(0,Ue.jsx)(Ue.Fragment,{children:p})]})};fr.defaultProps={pathPrefix:""};const pr=fr;(0,y.injectIntl)(pr);var hr,mr,gr=Te.cp.div.withConfig({displayName:"StyledWrapper"})(hr||(hr=(0,_e.c)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,Ae.Gj)(),(function(e){return e.theme.colors.signal.danger}),Ae.Il.color("paper"),Ae.aU.space(-.5));const vr=function(){return mr||(mr=(0,Ue.jsx)(gr,{children:(0,Ue.jsx)(y.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var yr;const br=Te.cp.div.withConfig({displayName:"StyledButtonGroup"})(yr||(yr=(0,_e.c)(["\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"])),ht);var wr=w().forwardRef((function(e,t){return(0,Ue.jsx)(br,{ref:t,children:e.children})}));wr.propTypes={children:Pe().node};const xr=wr;var Or=c(94240),Sr=c.n(Or),Er=c(18275),kr=c.n(Er),Dr=c(98872),Cr=c.n(Dr),Pr=c(40076),_r=c.n(Pr),jr=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},Tr=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},Ar={outline:"none"},Ir=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Tr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=w().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)},Tr(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?w().cloneElement(e({focused:t,getRef:this.ref}),n):w().createElement("div",jr({ref:this.ref,style:Ar},n),e)},t}(w().Component);Ir.propTypes={children:_r().oneOfType([_r().node,_r().func]).isRequired,onBlur:_r().func,onFocus:_r().func},Ir.defaultProps={onBlur:function(){},onFocus:function(){}};const Rr=Ir;var Mr,Nr,Fr,Lr,Hr,Ur,Wr,Br,zr,Vr=c(90624),Yr=(0,Te.gV)(Mr||(Mr=(0,_e.c)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),qr=Te.cp.label.withConfig({displayName:"StyledEditableWrapper"})(Nr||(Nr=(0,_e.c)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Yr),Gr=(0,Te.gV)(Fr||(Fr=(0,_e.c)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\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(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,Ae.Gj)({color:Ae.Il.color("text")})}),Ae.Il.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Qr=(0,Te.gV)(Lr||(Lr=(0,_e.c)(["\n display: flex;\n align-items: center;\n"]))),Kr=Te.cp.div.withConfig({displayName:"StyledEditableControl"})(Hr||(Hr=(0,_e.c)(["\n &&& {\n ","\n }\n"])),Qr),Xr=Te.cp.span.withConfig({displayName:"StyledEditableValue"})(Ur||(Ur=(0,_e.c)(["\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"])),Ae.Il.color("signal.danger")),$r=c(81568),Zr=function(e){return-1*Math.abs(e)},Jr=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,$r.c)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},eo=c(19448),to=c.n(eo),no=Te.cp.div.withConfig({displayName:"StyledLocationEdit"})(Wr||(Wr=(0,_e.c)(["\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"])),Yr,Ae.aU.space(-2),Ae.aU.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?to()(n,"colors.textDisabled"):to()(n,"colors.text")}),Gr,Ae.Il.color("paper"),Ae.Il.color("signal.info"),Ae.Il.color("secondaryLight"),Ae.Il.color("backgroundItemHover")),ro=(0,Te.cp)(no).withConfig({displayName:"StyledAddressEdit"})(Br||(Br=(0,_e.c)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ao=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},c=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=s(e),c=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,Ue.jsxs)(Vn.cp.Span,{children:[a,", ",o," ",i," ",c," ",u]})},u=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},l=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},d={id:o,value:r&&r.street?s(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(io(io({},r),{},(0,Fe.c)({},e,i)))}}("street"),disabled:i};return(0,Ue.jsx)(Rr,{children:function(e){var t,r,o,s,f,p=e.getRef;return(0,Ue.jsxs)(ro,{immutable:i,name:a,ref:p,children:[(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:l,getSuggestionValue:(f="street",function(e){return e[f]}),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:u,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ue.jsxs)(Kr,{children:[n.isLoading&&(zr||(zr=(0,Ue.jsx)(Ve,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,s=t.postcode,Boolean(r&&(o||s))&&(0,Ue.jsx)(Vr.cp,{href:Jr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var so=c(14764),co=c.n(so),uo=c(39212),lo=c.n(uo);function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(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 ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(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 go(e,t){if(e){if("string"==typeof e)return mo(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)?mo(e,t):void 0}}function vo(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||go(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 yo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wo(){return wo=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},wo.apply(this,arguments)}function xo(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 Oo(e,t){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oo(e,t)}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}function Eo(e){return Eo="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},Eo(e)}function ko(e,t){if(t&&("object"===Eo(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 Do(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=So(e);if(t){var o=So(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ko(this,n)}}function Co(e){return function(e){if(Array.isArray(e))return mo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||go(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 Po=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_o="-ms-",jo="-moz-",To="-webkit-",Ao="comm",Io="rule",Ro="decl",Mo="@keyframes",No=Math.abs,Fo=String.fromCharCode,Lo=Object.assign;function Ho(e){return e.trim()}function Uo(e,t,n){return e.replace(t,n)}function Wo(e,t){return e.indexOf(t)}function Bo(e,t){return 0|e.charCodeAt(t)}function zo(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function Yo(e){return e.length}function qo(e,t){return t.push(e),e}var Go=1,Qo=1,Ko=0,Xo=0,$o=0,Zo="";function Jo(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Go,column:Qo,length:a,return:""}}function ei(e,t){return Lo(Jo("",null,null,"",null,null,0),e,{length:-e.length},t)}function ti(){return $o=Xo>0?Bo(Zo,--Xo):0,Qo--,10===$o&&(Qo=1,Go--),$o}function ni(){return $o=Xo<Ko?Bo(Zo,Xo++):0,Qo++,10===$o&&(Qo=1,Go++),$o}function ri(){return Bo(Zo,Xo)}function oi(){return Xo}function ii(e,t){return zo(Zo,e,t)}function ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function si(e){return Go=Qo=1,Ko=Vo(Zo=e),Xo=0,[]}function ci(e){return Zo="",e}function ui(e){return Ho(ii(Xo-1,fi(91===e?e+2:40===e?e+1:e)))}function li(e){for(;($o=ri())&&$o<33;)ni();return ai(e)>2||ai($o)>3?"":" "}function di(e,t){for(;--t&&ni()&&!($o<48||$o>102||$o>57&&$o<65||$o>70&&$o<97););return ii(e,oi()+(t<6&&32==ri()&&32==ni()))}function fi(e){for(;ni();)switch($o){case e:return Xo;case 34:case 39:34!==e&&39!==e&&fi($o);break;case 40:41===e&&fi(e);break;case 92:ni()}return Xo}function pi(e,t){for(;ni()&&e+$o!==57&&(e+$o!==84||47!==ri()););return"/*"+ii(t,Xo-1)+"*"+Fo(47===e?e:ni())}function hi(e){for(;!ai(ri());)ni();return ii(e,Xo)}function mi(e){return ci(gi("",null,null,null,[""],e=si(e),0,[0],e))}function gi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,S=b;g;)switch(h=y,y=ni()){case 40:if(108!=h&&58==Bo(S,d-1)){-1!=Wo(S+=Uo(ui(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=ui(y);break;case 9:case 10:case 13:case 32:S+=li(h);break;case 92:S+=di(oi()-1,7);continue;case 47:switch(ri()){case 42:case 47:qo(yi(pi(ni(),oi()),t,n),c);break;default:S+="/"}break;case 123*m:s[u++]=Vo(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Vo(S)-d&&qo(p>32?bi(S+";",r,n,d-1):bi(Uo(S," ","")+";",r,n,d-2),c);break;case 59:S+=";";default:if(qo(O=vi(S,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)gi(S,t,O,O,w,i,d,s,x);else switch(99===f&&110===Bo(S,3)?100:f){case 100:case 109:case 115:gi(e,O,O,r&&qo(vi(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:gi(S,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+Vo(S),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ti())continue;switch(S+=Fo(y),y*m){case 38:v=l>0?1:(S+="\f",-1);break;case 44:s[u++]=(Vo(S)-1)*v,v=1;break;case 64:45===ri()&&(S+=ui(ni())),f=ri(),l=d=Vo(b=S+=hi(oi())),y++;break;case 45:45===h&&2==Vo(S)&&(m=0)}}return i}function vi(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Yo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=zo(e,d+1,d=No(m=a[h])),b=e;v<p;++v)(b=Ho(m>0?f[v]+" "+y:Uo(y,/&\f/g,f[v])))&&(c[g++]=b);return Jo(e,t,n,0===o?Io:s,c,u,l)}function yi(e,t,n){return Jo(e,t,n,Ao,Fo($o),zo(e,2,-2),0)}function bi(e,t,n,r){return Jo(e,t,n,Ro,zo(e,0,r),zo(e,r+1,-1),r)}function wi(e,t){for(var n="",r=Yo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xi(e,t,n,r){switch(e.type){case"@import":case Ro:return e.return=e.return||e.value;case Ao:return"";case Mo:return e.return=e.value+"{"+wi(e.children,r)+"}";case Io:e.value=e.props.join(",")}return Vo(n=wi(e.children,r))?e.return=e.value+"{"+n+"}":""}const Oi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Si=function(e,t,n){for(var r=0,o=0;r=o,o=ri(),38===r&&12===o&&(t[n]=1),!ai(o);)ni();return ii(e,Xo)},Ei=function(e,t){return ci(function(e,t){var n=-1,r=44;do{switch(ai(r)){case 0:38===r&&12===ri()&&(t[n]=1),e[n]+=Si(Xo-1,t,n);break;case 2:e[n]+=ui(r);break;case 4:if(44===r){e[++n]=58===ri()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fo(r)}}while(r=ni());return e}(si(e),t))},ki=new WeakMap,Di=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ki.get(n))&&!r){ki.set(e,!0);for(var o=[],i=Ei(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ci=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pi(e,t){switch(function(e,t){return 45^Bo(e,0)?(((t<<2^Bo(e,0))<<2^Bo(e,1))<<2^Bo(e,2))<<2^Bo(e,3):0}(e,t)){case 5103:return To+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return To+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return To+e+jo+e+_o+e+e;case 6828:case 4268:return To+e+_o+e+e;case 6165:return To+e+_o+"flex-"+e+e;case 5187:return To+e+Uo(e,/(\w+).+(:[^]+)/,To+"box-$1$2"+_o+"flex-$1$2")+e;case 5443:return To+e+_o+"flex-item-"+Uo(e,/flex-|-self/,"")+e;case 4675:return To+e+_o+"flex-line-pack"+Uo(e,/align-content|flex-|-self/,"")+e;case 5548:return To+e+_o+Uo(e,"shrink","negative")+e;case 5292:return To+e+_o+Uo(e,"basis","preferred-size")+e;case 6060:return To+"box-"+Uo(e,"-grow","")+To+e+_o+Uo(e,"grow","positive")+e;case 4554:return To+Uo(e,/([^-])(transform)/g,"$1"+To+"$2")+e;case 6187:return Uo(Uo(Uo(e,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),e,"")+e;case 5495:case 3959:return Uo(e,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return Uo(Uo(e,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+_o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+e+e;case 4095:case 3583:case 4068:case 2532:return Uo(e,/(.+)-inline(.+)/,To+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vo(e)-1-t>6)switch(Bo(e,t+1)){case 109:if(45!==Bo(e,t+4))break;case 102:return Uo(e,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+jo+(108==Bo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?Pi(Uo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Bo(e,t+1))break;case 6444:switch(Bo(e,Vo(e)-3-(~Wo(e,"!important")&&10))){case 107:return Uo(e,":",":"+To)+e;case 101:return Uo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(45===Bo(e,14)?"inline-":"")+"box$3$1"+To+"$2$3$1"+_o+"$2box$3")+e}break;case 5936:switch(Bo(e,t+11)){case 114:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return To+e+_o+Uo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return To+e+_o+e+e}return e}var _i=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ro:e.return=Pi(e.value,e.length);break;case Mo:return wi([ei(e,{value:Uo(e.value,"@","@"+To)})],r);case Io:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([ei(e,{props:[Uo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wi([ei(e,{props:[Uo(t,/:(plac\w+)/,":"+To+"input-$1")]}),ei(e,{props:[Uo(t,/:(plac\w+)/,":-moz-$1")]}),ei(e,{props:[Uo(t,/:(plac\w+)/,_o+"input-$1")]})],r)}return""}))}}];const ji=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||_i;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[xi,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Di,Ci].concat(r,f),l=Yo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){wi(mi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Po({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};var Ti=c(84792),Ai=c.n(Ti);var Ii=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Ri=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var Mi=c(66804),Ni=/[A-Z]|^ms/g,Fi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Li=function(e){return 45===e.charCodeAt(1)},Hi=function(e){return null!=e&&"boolean"!=typeof e},Ui=Oi((function(e){return Li(e)?e:e.replace(Ni,"-$&").toLowerCase()})),Wi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fi,(function(e,t,n){return zi={name:t,styles:n,next:zi},t}))}return 1===Mi.c[e]||Li(e)||"number"!=typeof t||0===t?t:t+"px"};function Bi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Hi(a)&&(r+=Ui(i)+":"+Wi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Bi(e,t,a);switch(i){case"animation":case"animationName":r+=Ui(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Hi(a[c])&&(r+=Ui(i)+":"+Wi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=zi,i=n(e);return zi=o,Bi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var zi,Vi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Yi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";zi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Bi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Bi(n,t,e[a]),r&&(o+=i[a]);Vi.lastIndex=0;for(var s,c="";null!==(s=Vi.exec(o));)c+="-"+s[1];return{name:Ri(o)+c,styles:o,next:zi}},qi=!!b.useInsertionEffect&&b.useInsertionEffect,Gi=qi||function(e){return e()},Qi={}.hasOwnProperty,Ki=(0,b.createContext)("undefined"!=typeof HTMLElement?ji({key:"css"}):null);Ki.Provider;var Xi=function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(Ki);return e(t,r,n)}))},$i=(0,b.createContext)({});var Zi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ji=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);Gi((function(){return function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},ea=Xi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Zi],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Yi(i,void 0,(0,b.useContext)($i));a+=t.key+"-"+s.name;var c={};for(var u in e)Qi.call(e,u)&&"css"!==u&&u!==Zi&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,b.createElement)(b.Fragment,null,(0,b.createElement)(Ji,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,b.createElement)(o,c))}));var ta=function(e,t){var n=arguments;if(null==t||!Qi.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ea,o[1]=function(e,t){var n={};for(var r in t)Qi.call(t,r)&&(n[r]=t[r]);return n[Zi]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)};function na(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}var ra=c(42416),oa=c.n(ra);Math.min,Math.max;const ia=["top","right","bottom","left"];ia.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function aa(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function sa(e){if(null==e)return window;if(!aa(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){return sa(e).getComputedStyle(e)}function ua(e){return aa(e)?"":e?(e.nodeName||"").toLowerCase():""}function la(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function da(e){return e instanceof sa(e).HTMLElement}function fa(e){return e instanceof sa(e).Element}function pa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof sa(e).ShadowRoot||e instanceof ShadowRoot)}function ha(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ca(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function ma(){return!/^((?!chrome|android).)*safari/i.test(la())}function ga(e){return["html","body","#document"].includes(ua(e))}Math.min,Math.max;const va=Math.round;function ya(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&da(e)&&(c=e.offsetWidth>0&&va(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&va(s.height)/e.offsetHeight||1);const l=fa(e)?sa(e):window,d=!ma()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function ba(e){return(t=e,(t instanceof sa(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function wa(e){if("html"===ua(e))return e;const t=e.assignedSlot||e.parentNode||(pa(e)?e.host:null)||ba(e);return pa(t)?t.host:t}function xa(e){const t=wa(e);return ga(t)?e.ownerDocument.body:da(t)&&ha(t)?t:xa(t)}function Oa(e,t){var n;void 0===t&&(t=[]);const r=xa(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=sa(r),a=o?[i].concat(i.visualViewport||[],ha(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Oa(a))}const Sa=b.useLayoutEffect;var Ea=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ka=function(){};function Da(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ca(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Da(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Eo(e)&&null!==e?[e]:[];var t},_a=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ho({},yo(e,Ea))},ja=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Aa(e){return Ta(e)?window.pageYOffset:e.scrollTop}function Ia(e,t){Ta(e)?window.scrollTo(0,t):e.scrollTop=t}function Ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ka,o=Aa(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Ia(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Ma(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ia(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ia(e,Math.max(t.offsetTop-o,0))}function Na(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Fa=!1,La={get passive(){return Fa=!0}},Ha="undefined"!=typeof window?window:{};Ha.addEventListener&&Ha.removeEventListener&&(Ha.addEventListener("p",ka,La),Ha.removeEventListener("p",ka,!1));var Ua=Fa;function Wa(e){return null!=e}function Ba(e,t,n){return e?t:n}var za=["children","innerProps"],Va=["children","innerProps"];function Ya(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:Ta(l=c)?window.innerHeight:l.clientHeight,y=Aa(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,S=x+y,E=d-y-m,k=p-v+y+b,D=y+m-w,C=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&Ra(c,k,C),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&O>=r)return i&&Ra(c,k,C),{placement:"bottom",maxHeight:a?O-b:E-b};if("auto"===o||a){var P=t,_=a?x:S;return _>=r&&(P=Math.min(_-b-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Ia(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&Ra(c,D,C),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var j=t;return(!a&&S>=r||a&&x>=r)&&(j=a?x-w:S-w),i&&Ra(c,D,C),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var qa,Ga=function(e){return"auto"===e?"bottom":e},Qa=(0,b.createContext)(null),Ka=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,b.useContext)(Qa)||{}).setPortalPlacement,u=(0,b.useRef)(null),l=vo((0,b.useState)(r),2),d=l[0],f=l[1],p=vo((0,b.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Sa((function(){var e=u.current;if(e){var t="fixed"===i,s=Ya({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,g]),t({ref:u,placerProps:ho(ho({},e),{},{placement:h||Ga(o),maxHeight:d})})},Xa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ta("div",wo({},ja(e,"menu",{menu:!0}),{ref:n},r),t)},$a=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ho({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Za=$a,Ja=$a,es=["size"],ts=["innerProps","isRtl","size"];var ns,rs,os={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},is=function(e){var t=e.size,n=yo(e,es);return ta("svg",wo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:os},n))},as=function(e){return ta(is,wo({size:20},e),ta("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ss=function(e){return ta(is,wo({size:20},e),ta("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},cs=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ho({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},us=cs,ls=cs,ds=function(){var e=na.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(qa||(ns=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],rs||(rs=ns.slice(0)),qa=Object.freeze(Object.defineProperties(ns,{raw:{value:Object.freeze(rs)}})))),fs=function(e){var t=e.delay,n=e.offset;return ta("span",{css:na({animation:"".concat(ds," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ps=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ta("div",wo({ref:o},ja(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},hs=["data"],ms=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ta("div",wo({},ja(e,"group",{group:!0}),s),ta(i,wo({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ta("div",null,t))},gs=["innerRef","isDisabled","isHidden","inputClassName"],vs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ys={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ho({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vs)},bs=function(e){return ho({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},vs)},ws=function(e){var t=e.children,n=e.innerProps;return ta("div",n,t)};var xs=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ta(c,{data:r,innerProps:ho(ho({},ja(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ta(u,{data:r,innerProps:ho({},ja(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ta(l,{data:r,innerProps:ho(ho({},ja(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Os={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ta(as,null))},Control:ps,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ta(ss,null))},DownChevron:ss,CrossIcon:as,Group:ms,GroupHeading:function(e){var t=_a(e);t.data;var n=yo(t,hs);return ta("div",wo({},ja(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ta("span",wo({},t,ja(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=_a(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=yo(r,gs);return ta("div",wo({},ja(e,"input",{"input-container":!0}),{"data-value":n||""}),ta("input",wo({className:t({input:!0},s),ref:o,style:bs(a),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=yo(e,ts);return ta("div",wo({},ja(ho(ho({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ta(fs,{delay:0,offset:n}),ta(fs,{delay:160,offset:!0}),ta(fs,{delay:320,offset:!n}))},Menu:Xa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ta("div",wo({},ja(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,b.useRef)(null),c=(0,b.useRef)(null),u=vo((0,b.useState)(Ga(i)),2),l=u[0],d=u[1],f=(0,b.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=vo((0,b.useState)(null),2),h=p[0],m=p[1],g=(0,b.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Sa((function(){g()}),[g]);var v=(0,b.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...fa(e)?Oa(e):e.contextElement?Oa(e.contextElement):[],...Oa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),fa(e)&&!s&&d.observe(e),fa(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ya(e):null;return s&&function t(){const r=ya(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Sa((function(){v()}),[v]);var y=(0,b.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=ta("div",wo({ref:y},ja(ho(ho({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ta(Qa.Provider,{value:f},t?(0,ra.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=yo(e,Va);return ta("div",wo({},ja(ho(ho({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=yo(e,za);return ta("div",wo({},ja(ho(ho({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:xs,MultiValueContainer:ws,MultiValueLabel:ws,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({role:"button"},n),t||ta(as,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ta("div",wo({},ja(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ta("div",wo({},ja(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ta("div",wo({},ja(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ta("div",wo({},ja(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ta("div",wo({},ja(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ss=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Es(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||Ss(r)&&Ss(o)))return!1;var r,o;return!0}for(var ks={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"},Ds=function(e){return ta("span",wo({css:ks},e))},Cs={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".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,i=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ps=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],S=s["aria-live"],E=(0,b.useMemo)((function(){return ho(ho({},Cs),l||{})}),[l]),k=(0,b.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=ho({isDisabled:u&&h(u,a),label:l,labels:p},t);n=E.onChange(m)}return n}),[t,E,h,a,d]),D=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=E.onFocus(s)}return e}),[n,r,d,h,E,o,a,u]),C=(0,b.useMemo)((function(){var e="";if(g&&v.length&&!x&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,E,v,y,x]),P="initial-input-focus"===(null==t?void 0:t.action),_=(0,b.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:w,isInitialFocus:P})}return e}),[O,n,r,p,h,m,g,E,a,w,P]),j=ta(b.Fragment,null,ta("span",{id:"aria-selection"},k),ta("span",{id:"aria-focused"},D),ta("span",{id:"aria-results"},C),ta("span",{id:"aria-guidance"},_));return ta(b.Fragment,null,ta(Ds,{id:c},P&&j),ta(Ds,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!P&&j))},_s=[{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źẑżžẓẕƶȥɀⱬꝣ"}],js=new RegExp("["+_s.map((function(e){return e.letters})).join("")+"]","g"),Ts={},As=0;As<_s.length;As++)for(var Is=_s[As],Rs=0;Rs<Is.letters.length;Rs++)Ts[Is.letters[Rs]]=Is.base;var Ms=function(e){return e.replace(js,(function(e){return Ts[e]}))},Ns=function(e,t){void 0===t&&(t=Es);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 i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ms),Fs=function(e){return e.replace(/^\s+|\s+$/g,"")},Ls=function(e){return"".concat(e.label," ").concat(e.value)},Hs=["innerRef"];function Us(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=vo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=vo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(yo(e,Hs),"onExited","in","enter","exit","appear");return ta("input",wo({ref:t},n,{css:na({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 Ws=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Bs=["boxSizing","height","overflow","paddingRight","position"],zs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Vs(e){e.preventDefault()}function Ys(e){e.stopPropagation()}function qs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Qs=!("undefined"==typeof window||!window.document||!window.document.createElement),Ks=0,Xs={capture:!1,passive:!1};var $s=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Zs={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Js(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,i=e.onTopLeave,a=(0,b.useRef)(!1),s=(0,b.useRef)(!1),c=(0,b.useRef)(0),u=(0,b.useRef)(null),l=(0,b.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&Ws(e)}}),[n,r,o,i]),d=(0,b.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,b.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,b.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,b.useCallback)((function(e){if(e){var t=!!Ua&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,b.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}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Qs){var t=document.body,n=t&&t.style;if(r&&Bs.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ks<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(zs).forEach((function(e){var t=zs[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Gs()&&(t.addEventListener("touchmove",Vs,Xs),e&&(e.addEventListener("touchstart",qs,Xs),e.addEventListener("touchmove",Ys,Xs))),Ks+=1}}),[r]),s=(0,b.useCallback)((function(e){if(Qs){var t=document.body,n=t&&t.style;Ks=Math.max(Ks-1,0),r&&Ks<1&&Bs.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Gs()&&(t.removeEventListener("touchmove",Vs,Xs),e&&(e.removeEventListener("touchstart",qs,Xs),e.removeEventListener("touchmove",Ys,Xs)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ta(b.Fragment,null,n&&ta("div",{onClick:$s,css:Zs}),t((function(e){o(e),i(e)})))}var ec={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tc=function(e){var t=e.name,n=e.onFocus;return ta("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ec,value:"",onChange:function(){}})};function nc(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function rc(){return nc(/^Mac/i)}function oc(){return nc(/^iPhone/i)||nc(/^iPad/i)||rc()&&navigator.maxTouchPoints>1}var ic={clearIndicator:ls,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ho({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:us,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ho({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ho({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ho(ho({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ys),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ho({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ja,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return ho((fo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),fo(n,"position","absolute"),fo(n,"width","100%"),fo(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ho({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ho({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ho({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ho({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Za,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return ho({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ho({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ho({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ho({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var ac={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}},sc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Na(),captureMenuScroll:!Na(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=ho({ignoreCase:!0,ignoreAccents:!0,stringify:Ls,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,c=r.matchFrom,u=s?Fs(n):n,l=s?Fs(a(t)):a(t);return o&&(u=u.toLowerCase(),l=l.toLowerCase()),i&&(u=Ns(u),l=Ms(l)),"start"===c?l.substr(0,u.length)===u:l.indexOf(u)>-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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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 cc(e,t,n,r){return{type:"option",data:t,isDisabled:gc(e,t,n),isSelected:vc(e,t,n),label:hc(e,t),value:mc(e,t),index:r}}function uc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return cc(e,n,t,r)})).filter((function(t){return fc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=cc(e,n,t,r);return fc(e,i)?i:void 0})).filter(Wa)}function lc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Co(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function dc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Co(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function fc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!bc(e)||!i)&&yc(e,{label:a,value:s,data:o},r)}var pc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},hc=function(e,t){return e.getOptionLabel(t)},mc=function(e,t){return e.getOptionValue(t)};function gc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function vc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=mc(e,t);return n.some((function(t){return mc(e,t)===r}))}function yc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var bc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},wc=1,xc=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&&Oo(e,t)}(i,e);var t,n,r,o=Do(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=rc()||oc(),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,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),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,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Co(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ba(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ba(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),i=Ba(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return pc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return dc(uc(t.props,t.state.selectValue),t.getElementId("option"))},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 Ca.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return hc(t.props,e)},t.getOptionValue=function(e){return mc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=ic[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(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.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ho(ho({},Os),e.components);var e},t.buildCategorizedOptions=function(){return uc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return lc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ho({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&&Ta(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),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>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){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return bc(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,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&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:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)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.state.instancePrefix="react-select-"+(t.props.instanceId||++wc),t.state.selectValue=Pa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=pc(n,r[a])}return t}return t=i,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&&Ma(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&&(Ma(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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ac):ho(ho({},ac),this.props.theme):ac}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,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 gc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return vc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return yc(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,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=ho(ho(ho({"aria-autocomplete":"list","aria-expanded":s,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(u,wo({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(Us,wo({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ka,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return p?null:b.createElement(s,wo({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,wo({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,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(p)return null;var w=g[0];return b.createElement(a,wo({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,wo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,wo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):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,i=this.state.isFocused;return b.createElement(n,wo({},r,{isDisabled:o,isFocused:i}))}},{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 b.createElement(e,wo({},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,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,S=f.menuPortalTarget,E=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,D=f.noOptionsMessage,C=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var _,j=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(u,wo({},l,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return b.createElement(n,wo({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;_=b.createElement(s,l,T)}else{var A=D({inputValue:h});if(null===A)return null;_=b.createElement(c,l,A)}var I={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:k},R=b.createElement(Ka,wo({},l,I),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return b.createElement(o,wo({},l,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Js,{captureEnabled:p,onTopArrive:C,onBottomArrive:P,lockEnabled:E},(function(t){return b.createElement(i,wo({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),_)})))}));return S||"fixed"===O?b.createElement(a,wo({},l,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(tc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return b.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return b.createElement(Ps,wo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return b.createElement(r,wo({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),b.createElement(t,wo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),b.createElement(o,wo({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,wo({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Pa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return lc(uc(e,t))}(e,h):[],v=d?dc(uc(e,h),"".concat(c,"-option")):[],y=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,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:pc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:Ba(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),ho(ho(ho({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(b.Component);xc.defaultProps=sc;var Oc=(0,b.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,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=yo(e,bo),m=vo((0,b.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],y=vo((0,b.useState)(void 0!==c?c:o),2),w=y[0],x=y[1],O=vo((0,b.useState)(void 0!==p?p:a),2),S=O[0],E=O[1],k=(0,b.useCallback)((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),D=(0,b.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),C=(0,b.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),P=(0,b.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),_=void 0!==s?s:g,j=void 0!==c?c:w,T=void 0!==p?p:S;return ho(ho({},h),{},{inputValue:_,menuIsOpen:j,onChange:k,onInputChange:D,onMenuClose:P,onMenuOpen:C,value:T})}(e);return b.createElement(xc,wo({ref:t},n))})),Sc=Oc;function Ec(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 kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dc=(0,y.injectIntl)((function(e){var t;return(0,Ue.jsx)("span",kc(kc({},e.innerProps),{},{children:(0,Ue.jsx)(Dt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Cc=c(49864);function Pc(){return Pc=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},Pc.apply(this,arguments)}const _c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class jc extends b.Component{constructor(...e){super(...e),this._targetNode=b.createRef(),this._elementNode=b.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,b.isValidElement)(e)||(e=null),(0,b.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Cc(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,_c),i=Pc({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?b.createElement(b.Fragment,null,e,t&&this._elementParentNode&&ra.createPortal(t,this._elementParentNode)):null}}var Tc,Ac,Ic,Rc,Mc,Nc,Fc,Lc,Hc,Uc,Wc,Bc,zc;function Vc(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 Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qc=Te.cp.span.withConfig({displayName:"StyledClickableWrapper"})(Tc||(Tc=(0,_e.c)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Gc=Te.cp.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ac||(Ac=(0,_e.c)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Qc=Te.cp.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Ic||(Ic=(0,_e.c)(["\n outline-style: none;\n"]))),Kc=Te.cp.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Rc||(Rc=(0,_e.c)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),Ae.Il.color("paper"),Ae.Il.radii("form"),(function(e){return e.isTopAligned&&(0,Te.gV)(Mc||(Mc=(0,_e.c)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Xc=(0,Te.cp)(jc).withConfig({displayName:"StyledTether"})(Nc||(Nc=(0,_e.c)(["\n && {\n z-index: 1;\n }\n"]))),$c=(Te.cp.div.withConfig({displayName:"StyledNonTether"})(Fc||(Fc=(0,_e.c)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),Ae.aU.space(1.5)),(0,Te.cp)(Os.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Lc||(Lc=(0,_e.c)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Zc=Te.cp.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Hc||(Hc=(0,_e.c)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,Ae.Gj)({color:Ae.Il.color("signal.info"),lineHeight:"normal"}),Ae.aU.space(-.5),Ae.aU.space(-.2)),Jc=Te.cp.div.withConfig({displayName:"StyledSingleValueWrapper"})(Uc||(Uc=(0,_e.c)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?Ae.Il.color("text"):"inherit"})),eu=Te.cp.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Wc||(Wc=(0,_e.c)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),tu=Te.cp.div.withConfig({displayName:"StyledMultiValueWrapper"})(Bc||(Bc=(0,_e.c)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),nu=Te.cp.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(zc||(zc=(0,_e.c)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),ru=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c=Ae.aU.space(-1)({theme:e}),u=Ae.aU.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return Yc(Yc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Yc(Yc(Yc({},e),l),{},{outline:0})},control:function(e,t){return Yc(Yc({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Yc(Yc({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Yc(Yc({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),Yc(Yc(Yc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Yc(Yc(Yc({},t),l),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Yc(Yc({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Yc(Yc({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Yc(Yc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Yc(Yc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Yc(Yc({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Yc(Yc({},e),{},{padding:0,margin:0})}}};function ou(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 iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const au=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ue.jsx)(Os.DropdownIndicator,iu(iu({},e),{},{children:(0,Ue.jsx)(eu,{children:(0,Ue.jsx)(Dt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Pe().shape({key:Pe().any.isRequired,display:Pe().string});var su,cu,uu;function lu(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 du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},pu=function(e,t){return function(n){n.stopPropagation(),e(t)}},hu=function(e,t){return function(n){n.stopPropagation(),e(t)}},mu=function(e){e.stopPropagation()};const gu=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ue.jsx)(Kc,{isTopAligned:f,children:(0,Ue.jsxs)(Os.IndicatorsContainer,du(du({},e),{},{children:[e.children,n&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:pu(n,u),children:su||(su=(0,Ue.jsx)(Dt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:fu(r,d,u),children:cu||(cu=(0,Ue.jsx)(Dt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ue.jsx)("span",{onTouchEnd:mu,onMouseDown:hu(o,u),children:uu||(uu=(0,Ue.jsx)(Dt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var vu;const yu=function(){return vu||(vu=(0,Ue.jsx)("span",{children:(0,Ue.jsx)(Ve,{size:"1.8rem"})}))};var bu="tocco-app",wu=c(14596),xu=c.n(wu),Ou=c(86520),Su=c.n(Ou),Eu=c(36176),ku=c.n(Eu),Du=c(65120),Cu=c.n(Du),Pu=c(66808),_u=c.n(Pu),ju=c(39556),Tu=c.n(ju),Au=c(16092),Iu={};Iu.styleTagTransform=Tu(),Iu.setAttributes=Cu(),Iu.insert=ku().bind(null,"head"),Iu.domAPI=Su(),Iu.insertStyleElement=_u();xu()(Au.c,Iu);Au.c&&Au.c.locals&&Au.c.locals;var Ru,Mu=c(45104),Nu=c.n(Mu),Fu=Te.cp.span.withConfig({displayName:"StyledChildrenWrapper"})(Ru||(Ru=(0,_e.c)(["\n cursor: pointer;\n user-select: none;\n"]))),Lu=w().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ue.jsx)(Fu,{onClick:r,ref:t,children:n})}));Lu.propTypes={children:Pe().any,onOpen:Pe().func};const Hu=Lu;function Uu(e){return Uu="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},Uu(e)}function Wu(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Bu(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function zu(e){Bu(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Uu(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Vu(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}var Yu={};function qu(){return Yu}function Gu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Qu(e){Bu(1,arguments);var t=zu(e);return t.setHours(0,0,0,0),t}function Ku(e,t){Bu(2,arguments);var n=zu(e),r=zu(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}Math.pow(10,8);var Xu=6e4,$u=36e5;function Zu(e){if(Bu(1,arguments),!function(e){return Bu(1,arguments),e instanceof Date||"object"===Uu(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=zu(e);return!isNaN(Number(t))}Math.ceil,Math.round,Math.floor;function Ju(e,t){Bu(2,arguments);var n=zu(e),r=zu(t),o=Ku(n,r),i=Math.abs(function(e,t){Bu(2,arguments);var n=zu(e),r=zu(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=Ku(n,r)===-o,s=o*(i-Number(a));return 0===s?0:s}function el(e,t){return Bu(2,arguments),function(e,t){Bu(2,arguments);var n=zu(e).getTime(),r=Wu(t);return new Date(n+r)}(e,-Wu(t))}function tl(e){Bu(1,arguments);var t=zu(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function nl(e){Bu(1,arguments);var t=zu(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=tl(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=tl(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var rl=6048e5;function ol(e){Bu(1,arguments);var t=zu(e),n=tl(t).getTime()-function(e){Bu(1,arguments);var t=nl(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),tl(n)}(t).getTime();return Math.round(n/rl)+1}function il(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=qu(),d=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=zu(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function al(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=zu(e),d=l.getUTCFullYear(),f=qu(),p=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var m=il(h,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=il(g,t);return l.getTime()>=m.getTime()?d+1:l.getTime()>=v.getTime()?d:d-1}var sl=6048e5;function cl(e,t){Bu(1,arguments);var n=zu(e),r=il(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;Bu(1,arguments);var l=qu(),d=Wu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=al(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),il(p,t)}(n,t).getTime();return Math.round(r/sl)+1}function ul(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ll={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ul("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ul(n+1,2)},d:function(e,t){return ul(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ul(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ul(e.getUTCHours(),t.length)},m:function(e,t){return ul(e.getUTCMinutes(),t.length)},s:function(e,t){return ul(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ul(Math.floor(r*Math.pow(10,n-3)),t.length)}};const dl=ll;var fl="midnight",pl="noon",hl="morning",ml="afternoon",gl="evening",vl="night",yl={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return dl.y(e,t)},Y:function(e,t,n,r){var o=al(e,r),i=o>0?o:1-o;return"YY"===t?ul(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ul(i,t.length)},R:function(e,t){return ul(nl(e),t.length)},u:function(e,t){return ul(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ul(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ul(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return dl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ul(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=cl(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ul(o,t.length)},I:function(e,t,n){var r=ol(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ul(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):dl.d(e,t)},D:function(e,t,n){var r=function(e){Bu(1,arguments);var t=zu(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ul(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ul(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ul(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ul(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?pl:0===o?fl:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?gl:o>=12?ml:o>=4?hl:vl,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return dl.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):dl.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):dl.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):dl.s(e,t)},S:function(e,t){return dl.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return wl(o);case"XXXX":case"XX":return xl(o);default:return xl(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return wl(o);case"xxxx":case"xx":return xl(o);default:return xl(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bl(o,":");default:return"GMT"+xl(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bl(o,":");default:return"GMT"+xl(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ul(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ul((r._originalDate||e).getTime(),t.length)}};function bl(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+ul(i,2)}function wl(e,t){return e%60==0?(e>0?"-":"+")+ul(Math.abs(e)/60,2):xl(e,t)}function xl(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ul(Math.floor(o/60),2)+n+ul(o%60,2)}const Ol=yl;var Sl=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},El=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},kl={p:El,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Sl(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Sl(o,t)).replace("{{time}}",El(i,t))}};const Dl=kl;var Cl=["D","DD"],Pl=["YY","YYYY"];function _l(e){return-1!==Cl.indexOf(e)}function jl(e){return-1!==Pl.indexOf(e)}function Tl(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Al={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Il=function(e,t,n){var r,o=Al[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Rl(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ml={date:Rl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Rl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Nl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const Fl=function(e,t,n,r){return Nl[e]};function Ll(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Hl={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ll({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const Ul=Hl;function Wl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}function Bl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}var zl={ordinalNumber:Bl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Wl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Vl={code:"en-US",formatDistance:Il,formatLong:Ml,formatRelative:Fl,localize:Ul,match:zl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Yl=Vl;var ql=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ql=/^'([^]*?)'?$/,Kl=/''/g,Xl=/[a-zA-Z]/;function $l(e,t,n){var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w;Bu(2,arguments);var x=String(t),O=qu(),S=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:O.locale)&&void 0!==r?r:Yl,E=Wu(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:O.firstWeekContainsDate)&&void 0!==a?a:null===(d=O.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Wu(null!==(p=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:O.weekStartsOn)&&void 0!==h?h:null===(b=O.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var D=zu(e);if(!Zu(D))throw new RangeError("Invalid time value");var C=el(D,Gu(D)),P={firstWeekContainsDate:E,weekStartsOn:k,locale:S,_originalDate:D};return x.match(Gl).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Dl[t])(e,S.formatLong):e})).join("").match(ql).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(Ql);if(!t)return e;return t[1].replace(Kl,"'")}(r);var i=Ol[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!jl(r)||Tl(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!_l(r)||Tl(r,t,String(e)),i(C,r,S.localize,P);if(o.match(Xl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function Zl(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}function Jl(e){return Bu(1,arguments),zu(e).getHours()}function ed(e){return Bu(1,arguments),zu(e).getMinutes()}function td(e){return Bu(1,arguments),zu(e).getSeconds()}function nd(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 rd(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 nd(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)?nd(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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function od(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}function ad(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&&id(e,t)}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function cd(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=sd(e);if(t){var o=sd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return od(e)}(this,n)}}function ud(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ld(e){var t=function(e,t){if("object"!==Uu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Uu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Uu(t)?t:String(t)}function dd(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,ld(r.key),r)}}function fd(e,t,n){return t&&dd(e.prototype,t),n&&dd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pd(e,t,n){return(t=ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hd=function(){function e(){ud(this,e),pd(this,"priority",void 0),pd(this,"subPriority",0)}return fd(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),md=function(e){ad(n,e);var t=cd(n);function n(e,r,o,i,a){var s;return ud(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=o,s.priority=i,a&&(s.subPriority=a),s}return fd(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}(hd),gd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"subPriority",-1),e}return fd(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}(hd),vd=function(){function e(){ud(this,e),pd(this,"incompatibleTokens",void 0),pd(this,"priority",void 0),pd(this,"subPriority",void 0)}return fd(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new md(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),yd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",140),pd(od(e),"incompatibleTokens",["R","u","t","T"]),e}return fd(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"});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}(vd),bd=/^(1[0-2]|0?\d)/,wd=/^(3[0-1]|[0-2]?\d)/,xd=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Od=/^(5[0-3]|[0-4]?\d)/,Sd=/^(2[0-3]|[0-1]?\d)/,Ed=/^(2[0-4]|[0-1]?\d)/,kd=/^(1[0-1]|0?\d)/,Dd=/^(1[0-2]|0?\d)/,Cd=/^[0-5]?\d/,Pd=/^[0-5]?\d/,_d=/^\d/,jd=/^\d{1,2}/,Td=/^\d{1,3}/,Ad=/^\d{1,4}/,Id=/^-?\d+/,Rd=/^-?\d/,Md=/^-?\d{1,2}/,Nd=/^-?\d{1,3}/,Fd=/^-?\d{1,4}/,Ld=/^([+-])(\d{2})(\d{2})?|Z/,Hd=/^([+-])(\d{2})(\d{2})|Z/,Ud=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wd=/^([+-])(\d{2}):(\d{2})|Z/,Bd=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function zd(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Vd(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Yd(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,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*$u+i*Xu+1e3*a),rest:t.slice(n[0].length)}}function qd(e){return Vd(Id,e)}function Gd(e,t){switch(e){case 1:return Vd(_d,t);case 2:return Vd(jd,t);case 3:return Vd(Td,t);case 4:return Vd(Ad,t);default:return Vd(new RegExp("^\\d{1,"+e+"}"),t)}}function Qd(e,t){switch(e){case 1:return Vd(Rd,t);case 2:return Vd(Md,t);case 3:return Vd(Nd,t);case 4:return Vd(Fd,t);default:return Vd(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Xd(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function $d(e){return e%400==0||e%4==0&&e%100!=0}var Zd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return zd(Gd(4,e),r);case"yo":return zd(n.ordinalNumber(e,{unit:"year"}),r);default:return zd(Gd(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=Xd(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(vd),Jd=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return zd(Gd(4,e),r);case"Yo":return zd(n.ordinalNumber(e,{unit:"year"}),r);default:return zd(Gd(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=al(e,r);if(n.isTwoDigitYear){var i=Xd(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),il(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),il(e,r)}}]),n}(vd),ef=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return Qd("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),tl(r)}}]),n}(vd),tf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",130),pd(od(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return Qd("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}(vd),nf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",120),pd(od(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Gd(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"});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}(vd),rf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",120),pd(od(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Gd(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"});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}(vd),of=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),pd(od(e),"priority",110),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return zd(Vd(bd,e),r);case"MM":return zd(Gd(2,e),r);case"Mo":return zd(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"});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}(vd),af=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",110),pd(od(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return zd(Vd(bd,e),r);case"LL":return zd(Gd(2,e),r);case"Lo":return zd(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"});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}(vd);var sf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",100),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Vd(Od,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return il(function(e,t,n){Bu(2,arguments);var r=zu(e),o=Wu(t),i=cl(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(vd);var cf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",100),pd(od(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Vd(Od,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return tl(function(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t),o=ol(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(vd),uf=[31,28,31,30,31,30,31,31,30,31,30,31],lf=[31,29,31,30,31,30,31,31,30,31,30,31],df=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"subPriority",1),pd(od(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Vd(wd,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){var n=$d(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=lf[r]:t>=1&&t<=uf[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(vd),ff=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"subpriority",1),pd(od(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Vd(xd,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Gd(t.length,e)}}},{key:"validate",value:function(e,t){return $d(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}(vd);function pf(e,t,n){var r,o,i,a,s,c,u,l;Bu(2,arguments);var d=qu(),f=Wu(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=zu(e),h=Wu(t),m=((h%7+7)%7<f?7:0)+h-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+m),p}var hf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return fd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd),mf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return fd(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 zd(Gd(t.length,e),o);case"eo":return zd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd),gf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return fd(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 zd(Gd(t.length,e),o);case"co":return zd(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"});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=pf(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(vd);var vf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",90),pd(od(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Gd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return zd(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 zd(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zd(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return zd(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){Bu(2,arguments);var n=Wu(t);n%7==0&&(n-=7);var r=zu(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(vd),yf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),bf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),wf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",80),pd(od(e),"incompatibleTokens",["a","b","t","T"]),e}return fd(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"});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(Kd(n),0,0,0),e}}]),n}(vd),xf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["H","K","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Vd(Dd,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Of=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Vd(Sd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Sf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["h","H","k","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Vd(kd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),Ef=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",70),pd(od(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Vd(Ed,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gd(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}(vd),kf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",60),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Vd(Cd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Gd(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}(vd),Df=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",50),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Vd(Pd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Gd(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}(vd),Cf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",30),pd(od(e),"incompatibleTokens",["t","T"]),e}return fd(n,[{key:"parse",value:function(e,t){return zd(Gd(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}(vd),Pf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"incompatibleTokens",["t","T","x"]),e}return fd(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Yd(Ld,e);case"XX":return Yd(Hd,e);case"XXXX":return Yd(Ud,e);case"XXXXX":return Yd(Bd,e);default:return Yd(Wd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(vd),_f=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",10),pd(od(e),"incompatibleTokens",["t","T","X"]),e}return fd(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Yd(Ld,e);case"xx":return Yd(Hd,e);case"xxxx":return Yd(Ud,e);case"xxxxx":return Yd(Bd,e);default:return Yd(Wd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(vd),jf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",40),pd(od(e),"incompatibleTokens","*"),e}return fd(n,[{key:"parse",value:function(e){return qd(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(vd),Tf=function(e){ad(n,e);var t=cd(n);function n(){var e;ud(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return pd(od(e=t.call.apply(t,[this].concat(o))),"priority",20),pd(od(e),"incompatibleTokens","*"),e}return fd(n,[{key:"parse",value:function(e){return qd(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(vd),Af={G:new yd,y:new Zd,Y:new Jd,R:new ef,u:new tf,Q:new nf,q:new rf,M:new of,L:new af,w:new sf,I:new cf,d:new df,D:new ff,E:new hf,e:new mf,c:new gf,i:new vf,a:new yf,b:new bf,B:new wf,h:new xf,H:new Of,K:new Sf,k:new Ef,m:new kf,s:new Df,S:new Cf,X:new Pf,x:new _f,t:new jf,T:new Tf},If=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mf=/^'([^]*?)'?$/,Nf=/''/g,Ff=/\S/,Lf=/[a-zA-Z]/;function Hf(e,t,n,r){var o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w,x;Bu(3,arguments);var O=String(e),S=String(t),E=qu(),k=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:E.locale)&&void 0!==o?o:Yl;if(!k.match)throw new RangeError("locale must contain match property");var D=Wu(null!==(a=null!==(s=null!==(c=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:E.firstWeekContainsDate)&&void 0!==s?s:null===(f=E.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Wu(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:E.weekStartsOn)&&void 0!==m?m:null===(w=E.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==h?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===S)return""===O?zu(n):new Date(NaN);var P,_={firstWeekContainsDate:D,weekStartsOn:C,locale:k},j=[new gd],T=S.match(Rf).map((function(e){var t=e[0];return t in Dl?(0,Dl[t])(e,k.formatLong):e})).join("").match(If),A=[],I=rd(T);try{var R=function(){var t=P.value;null!=r&&r.useAdditionalWeekYearTokens||!jl(t)||Tl(t,S,e),null!=r&&r.useAdditionalDayOfYearTokens||!_l(t)||Tl(t,S,e);var n=t[0],o=Af[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=A.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));A.push({token:n,fullToken:t});var s=o.run(O,t,k.match,_);if(!s)return{v:new Date(NaN)};j.push(s.setter),O=s.rest}else{if(n.match(Lf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Mf)[1].replace(Nf,"'")),0!==O.indexOf(t))return{v:new Date(NaN)};O=O.slice(t.length)}};for(I.s();!(P=I.n()).done;){var M=R();if("object"===Uu(M))return M.v}}catch(e){I.e(e)}finally{I.f()}if(O.length>0&&Ff.test(O))return new Date(NaN);var N=j.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 j.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),F=zu(n);if(isNaN(F.getTime()))return new Date(NaN);var L,H=el(F,Gu(F)),U={},W=rd(N);try{for(W.s();!(L=W.n()).done;){var B=L.value;if(!B.validate(H,_))return new Date(NaN);var z=B.set(H,U,_);Array.isArray(z)?(H=z[0],Zl(U,z[1])):H=z}}catch(e){W.e(e)}finally{W.f()}return H}function Uf(e,t,n){return Bu(2,arguments),Zu(Hf(e,t,new Date,n))}function Wf(e,t){var n;Bu(1,arguments);var r=Wu(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,i=function(e){var t,n={},r=e.split(Bf.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Bf.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Bf.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=Bf.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(i.date){var a=function(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,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(zf);if(!n)return new Date(NaN);var r=!!n[4],o=qf(n[1]),i=qf(n[2])-1,a=qf(n[3]),s=qf(n[4]),c=qf(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Qf[t]||(Kf(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Kf(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,c=o.getTime(),u=0;if(i.time&&(u=function(e){var t=e.match(Vf);if(!t)return NaN;var n=Gf(t[1]),r=Gf(t[2]),o=Gf(t[3]);if(!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))return NaN;return n*$u+r*Xu+1e3*o}(i.time),isNaN(u)))return new Date(NaN);if(!i.timezone){var l=new Date(c+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(Yf);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*$u+o*Xu)}(i.timezone),isNaN(s)?new Date(NaN):new Date(c+u+s)}var Bf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Vf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qf(e){return e?parseInt(e):1}function Gf(e){return e&&parseFloat(e.replace(",","."))||0}var Qf=[31,null,31,30,31,30,31,31,30,31,30,31];function Kf(e){return e%400==0||e%4==0&&e%100!=0}function Xf(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setHours(r),n}function $f(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setMinutes(r),n}function Zf(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setSeconds(r),n}var Jf={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const ep=function(e,t,n){var r,o=null!=n&&n.addSuffix?Jf[e].withPreposition:Jf[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};const tp={date:Rl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var np={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const rp=function(e,t,n,r){return np[e]};var op={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},ip={narrow:op.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:op.wide};const ap={ordinalNumber:function(e){return Number(e)+"."},era:Ll({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:op,formattingValues:ip,defaultWidth:"wide"}),day:Ll({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var sp={ordinalNumber:Bl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Wl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const cp={code:"de",formatDistance:ep,formatLong:tp,formatRelative:rp,localize:ap,match:sp,options:{weekStartsOn:1,firstWeekContainsDate:4}};var up={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const lp=function(e,t,n){var r,o=up[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var dp={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:Ll({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const fp=dp;var pp={ordinalNumber:Bl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Wl({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const hp=pp;var mp={date:Rl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var gp={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const vp=function(e,t,n,r){return gp[e]};const yp={code:"fr-CH",formatDistance:lp,formatLong:mp,formatRelative:vp,localize:fp,match:hp,options:{weekStartsOn:1,firstWeekContainsDate:4}};var bp={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const wp=function(e,t,n){var r,o=bp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const xp={date:Rl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Rl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Rl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Op(e,t,n){Bu(2,arguments);var r=il(e,n),o=il(t,n);return r.getTime()===o.getTime()}var Sp=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Ep(e){return"'"+Sp[e]+" alle' p"}var kp={lastWeek:function(e,t,n){var r=e.getUTCDay();return Op(e,t,n)?Ep(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Sp[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return Op(e,t,n)?Ep(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Sp[e]+" prossimo alle' p"}(r)},other:"P"};const Dp=function(e,t,n,r){var o=kp[e];return"function"==typeof o?o(t,n,r):o};var Cp={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:Ll({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Ll({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ll({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Ll({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Ll({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const Pp=Cp;var _p={ordinalNumber:Bl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Wl({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Wl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wl({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wl({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const jp={code:"it",formatDistance:wp,formatLong:xp,formatRelative:Dp,localize:Pp,match:_p,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Tp=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Ap=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=Tp(e/1e3%60,3);e-=Math.round(1e3*t);var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},Ip=function(e){switch(e){case"fr":return yp;case"en":return Vl;case"it":return jp;default:return cp}},Rp=function(e){return Ip(e).formatLong.date({width:"short"})},Mp=function(e){return Rp(e).replace(/[/.]/g,"")};const Np={millisecondsToDuration:Ap,formatDuration:function(e){var t=Ap(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},getDateFnsLocale:Ip,getLocalizedDateFormat:Rp,getLocalizedDateTimeFormat:function(e){return"".concat(Rp(e)," HH:mm")},getLocalizedDateFormatWithoutPunctuation:Mp,getLocalizedDateTimeFormatWithoutPunctuation:function(e){return"".concat(Mp(e)," HHmm")},useTwoDigitYear:function(e){return e.replace(/y+/,"yy")},setCurrentTime:function(e){var t=new Date,n=new Date(e);return n=function(e,t){Bu(2,arguments);var n=zu(e),r=Wu(t);return n.setMilliseconds(r),n}(n=Zf(n=$f(n=Xf(n,Jl(t)),ed(t)),0),0),n},selectUnit:function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}}};var Fp=function(){(0,Mu.registerLocale)("en",Np.getDateFnsLocale("en")),(0,Mu.registerLocale)("en-US",Np.getDateFnsLocale("en")),(0,Mu.registerLocale)("de-CH",Np.getDateFnsLocale("de-CH")),(0,Mu.registerLocale)("de-DE",Np.getDateFnsLocale("de-DE")),(0,Mu.registerLocale)("de",Np.getDateFnsLocale("de")),(0,Mu.registerLocale)("fr",Np.getDateFnsLocale("fr")),(0,Mu.registerLocale)("fr-CH",Np.getDateFnsLocale("fr")),(0,Mu.registerLocale)("it",Np.getDateFnsLocale("it")),(0,Mu.registerLocale)("it-CH",Np.getDateFnsLocale("it")),(0,Mu.setDefaultLocale)("de")};Fp();const Lp=(0,Te.QX)((0,y.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,b.useRef)(null),c=(0,b.useState)(!1),u=(0,Ye.c)(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Ue.jsx)(Nu(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ue.jsx)(Hu,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Hp,Up,Wp,Bp,zp,Vp,Yp=Ae.Il.color("secondaryLight"),qp=Ae.Il.color("paper"),Gp=Ae.Il.color("text"),Qp=Ae.Il.color("secondary"),Kp=Ae.Il.radii("form"),Xp=(0,Te.Ud)(Hp||(Hp=(0,_e.c)(["\n .react-datepicker-popper {\n && {\n // higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; // static in all themes\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),He._,Gp,Ae.Il.radii("form"),Kp,Yp,qp,(0,Ae.Gj)(),(0,Ae.Gj)(),Yp,Kp,Kp,Ae.aU.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",qp,Ae.aU.font(1),Ae.Il.fontWeight("bold"),(0,Ae.Gj)({fontWeight:Ae.Il.fontWeight("bold")}),qp,Ae.aU.font(-2),Ae.aU.space(-1.8),Qp,Qp,Qp,Yp,Yp,Yp,Qp,(0,Ae.Gj)(),qp,Ae.aU.space(-.5),Ae.Il.color("backgroundItemHover"),Kp,Ae.aU.space(-.5),qp,Ae.Il.color("border"),Ae.Il.radii("form"),Ae.aU.space(-1),Ae.aU.space(-1),Ae.aU.font(1),qp,Ae.Il.fontWeight("bold"),Ae.aU.space(-1),qp,Ae.aU.font(0),Gp,Yp,Yp,Ae.Il.radii("form"),qp,Yp,Qp,Gp,Gp,qp,Yp,Ae.Il.color("backgroundItemHover"),Ae.Il.color("textDisabled"),Ae.Il.color("border"),Ae.Il.radii("form")),$p=(0,Te.Ud)(Up||(Up=(0,_e.c)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),Ae.Il.color("signal.success"),Ae.Il.color("signal.info"),Ae.Il.color("signal.warning"),Ae.Il.color("signal.danger"),Ae.Il.color("textDisabled")),Zp=(0,Te.Ud)(Wp||(Wp=(0,_e.c)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),Ae.Il.color("backgroundScrollbar"),Ae.Il.color("backgroundScrollbarHover"),Ae.Il.color("backgroundScrollbar"));const Jp=function(){return(0,Ue.jsxs)(Ue.Fragment,{children:[Bp||(Bp=(0,Ue.jsx)($p,{})),zp||(zp=(0,Ue.jsx)(Xp,{})),Vp||(Vp=(0,Ue.jsx)(Zp,{}))]})};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 n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nh=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ue.jsx)(Xc,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ue.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ue.jsx)("div",{ref:o,className:bu,children:(0,Ue.jsx)($c,th(th({},Sr()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};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 oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rh(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ih=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ue.jsxs)(Os.MenuList,oh(oh({},e),{},{className:"MenuList",children:[n,r&&(0,Ue.jsx)(Zc,{children:o})]}))};b.createContext(),b.createContext();var ah=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},sh="undefined"!=typeof window&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,ch="top",uh="bottom",lh="right",dh="left",fh="auto",ph=[ch,uh,lh,dh],hh="start",mh="end",gh="clippingParents",vh="viewport",yh="popper",bh="reference",wh=ph.reduce((function(e,t){return e.concat([t+"-"+hh,t+"-"+mh])}),[]),xh=[].concat(ph,[fh]).reduce((function(e,t){return e.concat([t,t+"-"+hh,t+"-"+mh])}),[]),Oh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sh(e){return e?(e.nodeName||"").toLowerCase():null}function Eh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kh(e){return e instanceof Eh(e).Element||e instanceof Element}function Dh(e){return e instanceof Eh(e).HTMLElement||e instanceof HTMLElement}function Ch(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eh(e).ShadowRoot||e instanceof ShadowRoot)}const Ph={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Dh(o)&&Sh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dh(r)&&Sh(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function _h(e){return e.split("-")[0]}var jh=Math.max,Th=Math.min,Ah=Math.round;function Ih(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Rh(){return!/^((?!chrome|android).)*safari/i.test(Ih())}function Mh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Dh(e)&&(o=e.offsetWidth>0&&Ah(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ah(r.height)/e.offsetHeight||1);var a=(kh(e)?Eh(e):window).visualViewport,s=!Rh()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,d=r.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function Nh(e){var t=Mh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ch(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lh(e){return Eh(e).getComputedStyle(e)}function Hh(e){return["table","td","th"].indexOf(Sh(e))>=0}function Uh(e){return((kh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wh(e){return"html"===Sh(e)?e:e.assignedSlot||e.parentNode||(Ch(e)?e.host:null)||Uh(e)}function Bh(e){return Dh(e)&&"fixed"!==Lh(e).position?e.offsetParent:null}function zh(e){for(var t=Eh(e),n=Bh(e);n&&Hh(n)&&"static"===Lh(n).position;)n=Bh(n);return n&&("html"===Sh(n)||"body"===Sh(n)&&"static"===Lh(n).position)?t:n||function(e){var t=/firefox/i.test(Ih());if(/Trident/i.test(Ih())&&Dh(e)&&"fixed"===Lh(e).position)return null;var n=Wh(e);for(Ch(n)&&(n=n.host);Dh(n)&&["html","body"].indexOf(Sh(n))<0;){var r=Lh(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yh(e,t,n){return jh(e,Th(t,n))}function qh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Qh={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_h(n.placement),c=Vh(s),u=[dh,lh].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return qh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gh(e,ph))}(o.padding,n),d=Nh(i),f="y"===c?ch:dh,p="y"===c?uh:lh,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=zh(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[f],w=v-d[u]-l[p],x=v/2-d[u]/2+y,O=Yh(b,x,w),S=c;n.modifiersData[r]=((t={})[S]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Fh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kh(e){return e.split("-")[1]}var Xh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $h(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof l?l({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=dh,w=ch,x=window;if(u){var O=zh(n),S="clientHeight",E="clientWidth";if(O===Eh(n)&&"static"!==Lh(O=Uh(n)).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth"),o===ch||(o===dh||o===lh)&&i===mh)w=uh,m-=(d&&O===x&&x.visualViewport?x.visualViewport.height:O[S])-r.height,m*=c?1:-1;if(o===dh||(o===ch||o===uh)&&i===mh)b=lh,p-=(d&&O===x&&x.visualViewport?x.visualViewport.width:O[E])-r.width,p*=c?1:-1}var k,D=Object.assign({position:s},u&&Xh),C=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ah(n*o)/o||0,y:Ah(r*o)/o||0}}({x:p,y:m},Eh(n)):{x:p,y:m};return p=C.x,m=C.y,c?Object.assign({},D,((k={})[w]=y?"0":"",k[b]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},D,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const Zh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:_h(t.placement),variation:Kh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,$h(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$h(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Jh={passive:!0};const em={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Eh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Jh)})),s&&c.addEventListener("resize",n.update,Jh),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Jh)})),s&&c.removeEventListener("resize",n.update,Jh)}},data:{}};var tm={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,(function(e){return tm[e]}))}var rm={start:"end",end:"start"};function om(e){return e.replace(/start|end/g,(function(e){return rm[e]}))}function im(e){var t=Eh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function am(e){return Mh(Uh(e)).left+im(e).scrollLeft}function sm(e){var t=Lh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cm(e){return["html","body","#document"].indexOf(Sh(e))>=0?e.ownerDocument.body:Dh(e)&&sm(e)?e:cm(Wh(e))}function um(e,t){var n;void 0===t&&(t=[]);var r=cm(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Eh(r),a=o?[i].concat(i.visualViewport||[],sm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(um(Wh(a)))}function lm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dm(e,t,n){return t===vh?lm(function(e,t){var n=Eh(e),r=Uh(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=Rh();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+am(e),y:c}}(e,n)):kh(t)?function(e,t){var n=Mh(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):lm(function(e){var t,n=Uh(e),r=im(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+am(e),c=-r.scrollTop;return"rtl"===Lh(o||n).direction&&(s+=jh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Uh(e)))}function fm(e,t,n,r){var o="clippingParents"===t?function(e){var t=um(Wh(e)),n=["absolute","fixed"].indexOf(Lh(e).position)>=0&&Dh(e)?zh(e):e;return kh(n)?t.filter((function(e){return kh(e)&&Fh(e,n)&&"body"!==Sh(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=dm(e,n,r);return t.top=jh(o.top,t.top),t.right=Th(o.right,t.right),t.bottom=Th(o.bottom,t.bottom),t.left=jh(o.left,t.left),t}),dm(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function pm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?_h(o):null,a=o?Kh(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case ch:t={x:s,y:n.y-r.height};break;case uh:t={x:s,y:n.y+n.height};break;case lh:t={x:n.x+n.width,y:c};break;case dh:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?Vh(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case hh:t[u]=t[u]-(n[l]/2-r[l]/2);break;case mh:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function hm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?gh:s,u=n.rootBoundary,l=void 0===u?vh:u,d=n.elementContext,f=void 0===d?yh:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=qh("number"!=typeof g?g:Gh(g,ph)),y=f===yh?bh:yh,b=e.rects.popper,w=e.elements[h?y:f],x=fm(kh(w)?w:w.contextElement||Uh(e.elements.popper),c,l,a),O=Mh(e.elements.reference),S=pm({reference:O,element:b,strategy:"absolute",placement:o}),E=lm(Object.assign({},b,S)),k=f===yh?E:O,D={top:x.top-k.top+v.top,bottom:k.bottom-x.bottom+v.bottom,left:x.left-k.left+v.left,right:k.right-x.right+v.right},C=e.modifiersData.offset;if(f===yh&&C){var P=C[o];Object.keys(D).forEach((function(e){var t=[lh,uh].indexOf(e)>=0?1:-1,n=[ch,uh].indexOf(e)>=0?"y":"x";D[e]+=P[n]*t}))}return D}const mm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=_h(g),y=c||(v===g||!h?[nm(g)]:function(e){if(_h(e)===fh)return[];var t=nm(e);return[om(e),t,om(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(_h(n)===fh?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?xh:c,l=Kh(r),d=l?s?wh:wh.filter((function(e){return Kh(e)===l})):ph,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=hm(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[_h(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,E=b[0],k=0;k<b.length;k++){var D=b[k],C=_h(D),P=Kh(D)===hh,_=[ch,uh].indexOf(C)>=0,j=_?"width":"height",T=hm(t,{placement:D,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),A=_?P?lh:dh:P?uh:ch;w[j]>x[j]&&(A=nm(A));var I=nm(A),R=[];if(i&&R.push(T[C]<=0),s&&R.push(T[A]<=0,T[I]<=0),R.every((function(e){return e}))){E=D,S=!1;break}O.set(D,R)}if(S)for(var M=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},N=h?3:1;N>0;N--){if("break"===M(N))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vm(e){return[ch,lh,uh,dh].some((function(t){return e[t]>=0}))}const ym={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=hm(t,{elementContext:"reference"}),s=hm(t,{altBoundary:!0}),c=gm(a,r),u=gm(s,o,i),l=vm(c),d=vm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};const bm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=xh.reduce((function(e,n){return e[n]=function(e,t,n){var r=_h(e),o=[dh,ch].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[dh,lh].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};const wm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const xm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=hm(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),v=_h(t.placement),y=Kh(t.placement),b=!y,w=Vh(v),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,D="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(i){var _,j="y"===w?ch:dh,T="y"===w?uh:lh,A="y"===w?"height":"width",I=O[w],R=I+g[j],M=I-g[T],N=p?-E[A]/2:0,F=y===hh?S[A]:E[A],L=y===hh?-E[A]:-S[A],H=t.elements.arrow,U=p&&H?Nh(H):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[j],z=W[T],V=Yh(0,S[A],U[A]),Y=b?S[A]/2-N-V-B-D.mainAxis:F-V-B-D.mainAxis,q=b?-S[A]/2+N+V+z+D.mainAxis:L+V+z+D.mainAxis,G=t.elements.arrow&&zh(t.elements.arrow),Q=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,K=null!=(_=null==C?void 0:C[w])?_:0,X=I+q-K,$=Yh(p?Th(R,I+Y-K-Q):R,I,p?jh(M,X):M);O[w]=$,P[w]=$-I}if(s){var Z,J="x"===w?ch:dh,ee="x"===w?uh:lh,te=O[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ch,dh].indexOf(v),ae=null!=(Z=null==C?void 0:C[x])?Z:0,se=ie?re:te-S[ne]-E[ne]-ae+D.altAxis,ce=ie?te+S[ne]+E[ne]-ae-D.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Yh(e,t,n);return r>n?n:r}(se,te,ce):Yh(p?se:re,te,p?ce:oe);O[x]=ue,P[x]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function Om(e,t,n){void 0===n&&(n=!1);var r=Dh(t),o=Dh(t)&&function(e){var t=e.getBoundingClientRect(),n=Ah(t.width)/e.offsetWidth||1,r=Ah(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Uh(t),a=Mh(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Sh(t)||sm(i))&&(s=function(e){return e!==Eh(e)&&Dh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:im(e);var t}(t)),Dh(t)?((c=Mh(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=am(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Sm(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Em(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var km={placement:"bottom",modifiers:[],strategy:"absolute"};function Dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Cm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?km:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},km,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:kh(e)?um(e):e.contextElement?um(e.contextElement):[],popper:um(t)};var l,d,f=function(e){var t=Sm(e);return Oh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(r,o.options.modifiers),d=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:c,options:r}),u=function(){};a.push(s||u)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Dm(t,n)){o.rects={reference:Om(t,zh(n),"fixed"===o.options.strategy),popper:Nh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,l=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:Em((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!Dm(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Pm=Cm({defaultModifiers:[em,wm,Zh,Ph,bm,mm,xm,Qh,ym]}),_m=[],jm=function(e,t,n){void 0===n&&(n={});var r=b.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||_m},i=b.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],s=i[1],c=b.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);ra.flushSync((function(){s({styles:ah(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ah(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=b.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Ft()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=b.useRef();return sh((function(){l.current&&l.current.setOptions(u)}),[u]),sh((function(){if(null!=e&&null!=t){var r=(n.createPopper||Pm)(e,t,u);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:a.styles,attributes:a.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var Tm,Am,Im;c(60388);var Rm,Mm,Nm,Fm=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(Tm||(Tm=(0,_e.c)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),Ae.Il.color("text"),Ae.aU.font(1),Ae.aU.space(-1)),Lm=(0,Te.gV)(Am||(Am=(0,_e.c)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),Ae.Il.color("textLabel"),Ae.Il.lineHeight("regular"),Ae.Il.fontWeight("regular"),Ae.aU.space(-3),Ae.aU.space(-1.5),Ae.Il.radii("statusLabel")),Hm=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledHtmlFormatter"})(Im||(Im=(0,_e.c)(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; // nice2 reset\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; // nice2 reset\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; // same color in all themes\n }\n }\n }\n"])),(function(e){return(0,Vn.my)(e,"html")}),Ae.aU.space(-1),Ae.aU.space(-1.5),Lm,Ae.Il.color("signal.dangerLight"),Ae.Il.color("signal.infoLight"),Ae.Il.color("signal.warningLight"),Ae.Il.color("signal.successLight"),Lm,Ae.Il.color("signal.dangerLight"),Ae.Il.radii("statusLabel"),Ae.aU.space(-2.1),Ae.aU.space(0),Ae.Il.color("paper"),Ae.Il.color("signal.info"),Ae.Il.color("signal.warningLight"),Ae.aU.space(-1.5),Ae.aU.space(.5)),Um=16,Wm=Te.cp.div.withConfig({displayName:"StyledBoxWrapper"})(Rm||(Rm=(0,_e.c)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n }\n"])),Ae.Il.color("backgroundPopover"),(function(e){return e.rimless?"0":Ae.aU.space(0)}),Ae.Il.color("textPopover")),Bm=Te.cp.div.withConfig({displayName:"StyledBox"})(Mm||(Mm=(0,_e.c)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Vn.my)(e,"html")}),Hm,Ae.Il.color("textPopover")),zm=Te.cp.i.withConfig({displayName:"StyledArrow"})(Nm||(Nm=(0,_e.c)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Um,8,-8,8,8,8,Ae.Il.color("backgroundPopover"),-6.4,8,8,8,Ae.Il.color("backgroundPopover"),Um,8,Ae.Il.color("backgroundPopover"));function Vm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qm=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,i=(0,b.useState)(null),a=(0,Ye.c)(i,2),s=a[0],c=a[1],u=(0,b.useState)(null),l=(0,Ye.c)(u,2),d=l[0],f=l[1],p=(0,b.useState)(null),h=(0,Ye.c)(p,2),m=h[0],g=h[1],v=(0,b.useState)(!1),y=(0,Ye.c)(v,2),w=y[0],x=y[1],O=(0,b.useState)(null),S=(0,Ye.c)(O,2),E=S[0],k=S[1],D=jm(s,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}]}),C=D.styles,P=D.attributes;return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("span",{ref:c,onMouseOut:function(){E&&clearTimeout(E),x(!1)},onMouseOver:function(){var e=setTimeout((function(){x(!0)}),500);k(e)},children:t}),w&&n&&oa().createPortal((0,Ue.jsxs)(Wm,Ym(Ym({ref:f,style:C.popper,rimless:o},P.popper),{},{className:bu,children:[(0,Ue.jsx)(Bm,{isPlainHtml:r,children:n}),(0,Ue.jsx)(zm,Ym({ref:g,style:C.arrow},P.popper))]})),document.body)]})};qm.defaultProps={isPlainHtml:!0,rimless:!1};const Gm=qm;const Qm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=to()(i,t.key,null),u=(0,Ue.jsx)("span",{style:n.css,children:r}),l=s?(0,Ue.jsx)(qc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ue.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ue.jsx)(Gm,{content:c?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(c)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ue.jsx)(nu,{children:l})};var Km=c(36384),Xm=c.n(Km),$m=c(43028),Zm=c.n($m),Jm=c(90948),eg=c.n(Jm),tg=c(94024),ng=c.n(tg),rg=function(e){return"object"===(0,$r.c)(e)&&null!==e};const og=function e(t,n){return ng()(t,(function(t,r,o){eg()(r,n[o])||(t[o]=rg(r)&&rg(n[o])?e(r,n[o]):r)}))},ig=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},ag=function(e){return e?e.replace(/­/g,""):e},sg=function(e){return null!=e};function cg(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 ug(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lg=["linkComp"],dg=function(e,t){var n=og(e,t),r=Zm()(Sr()(n,lg),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},fg=(0,b.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Xm()(n)?(0,Ue.jsx)(qc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ue.jsx)(t,{entityKey:n,children:r})}):r}),dg);fg.propTypes={children:Pe().node,entityKey:Pe().any,linkComp:Pe().func};const pg=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=to()(i,t.key,null);return(0,Ue.jsx)(Os.SingleValue,ug(ug({},e),{},{children:(0,Ue.jsx)(Jc,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ue.jsx)(Gm,{content:c?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(c)}}):null,children:(0,Ue.jsx)(fg,{linkComp:s,entityKey:t.key,children:o})})})}))};function hg(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 mg=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const gg=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ue.jsx)(Os.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=b.Children.map(r,(function(e){return mg(e)?e:null})),u=b.Children.map(r,(function(e){return mg(e)?null:e})),l=s&&n;return(0,Ue.jsxs)(Ue.Fragment,{children:[!l&&(0,Ue.jsx)(Ue.Fragment,{children:c}),(0,Ue.jsx)(tu,{children:u})]})};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 n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bg=(0,Te.QX)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,S=(0,b.useRef)(null),E=(0,b.useRef)(null),k=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},C=(0,b.useState)(k()),P=(0,Ye.c)(C,2),_=P[0],j=P[1],T=(0,b.useState)(D()),A=(0,Ye.c)(T,2),I=A[0],R=A[1],M=(0,b.useState)(!1),N=(0,Ye.c)(M,2),F=N[0],L=N[1],H=function(e){t&&t(e)},U=(0,b.useCallback)(m||function(){},[]),W=(0,b.useCallback)(lo()(U,800,{trailing:!0}),[]),B=Boolean(p),z=Boolean(f),V=Boolean(x);return(0,Ue.jsx)(Gc,{tabIndex:"-1",id:n,onFocus:function(){S.current.focus(),setTimeout((function(){j(k()),R(D())}),0)},children:(0,Ue.jsx)(Qc,{ref:E,children:(0,Ue.jsx)(Sc,yg(yg({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:_,wrapperHeight:I,components:{ClearIndicator:Dc,LoadingIndicator:yu,DropdownIndicator:au,IndicatorsContainer:gu,IndicatorSeparator:null,Menu:nh,MenuList:ih,MultiValueLabel:Qm,SingleValue:pg,ValueContainer:gg},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ue.jsx)(l,yg({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&H(y)},options:(0,Tt.c)(h||[]),onKeyDown:function(e){"Enter"===e.key&&F&&(e.stopPropagation(),S.current&&null===S.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:S,onMenuOpen:function(){H(y),L(!0)},onMenuClose:function(){L(!1)},styles:ru(g),loadTooltip:a,tooltips:v,DetailLink:w,hasDocsTreeSearch:z,openDocsTreeSearch:f,hasAdvancedSearch:B,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const wg=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,s=e.onChange;return(0,Ue.jsx)(bg,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:co()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var xg,Og=Te.cp.div.withConfig({displayName:"StyledBoolEdit"})(xg||(xg=(0,_e.c)(["\n margin: 5px 0;\n"])));const Sg=function(e){return(0,Ue.jsx)(Og,{children:(0,Ue.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 Eg,kg,Dg=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ue.jsx)(Hm,{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(t)},breakWords:n,className:r})},Cg=Te.cp.div.withConfig({displayName:"StyledOption"})(Eg||(Eg=(0,_e.c)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),Ae.aU.space(-1),Ae.aU.space(-1.5)),Pg=Te.cp.span.withConfig({displayName:"StyledLabel"})(kg||(kg=(0,_e.c)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,Ae.Gj)(),Ae.aU.space(-1.5));function _g(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 jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_g(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tg={single:"radio",multiple:"checkbox"},Ag={single:{checked:!1},multiple:{}},Ig=function(e,t){return t?(0,Ue.jsx)(Dg,{value:e}):e},Rg=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ue.jsxs)(Cg,{children:[!s&&(0,Ue.jsx)("input",{name:t,type:Tg[c],checked:i||!1,onChange:l,id:n,disabled:a}),(0,Ue.jsx)(Pg,{children:o||Ig(r,u)})]})};const Mg=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return jg(jg({},t),t.id===e.target.id?{checked:e.target.checked}:Ag[r.selectionType])}));t({options:o})}};return(0,Ue.jsx)(Ue.Fragment,{children:n.options.map((function(e){return(0,Ue.jsx)(Rg,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};c(79304);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 Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lg=(0,b.lazy)((function(){return Promise.all([c.e(904),c.e(784)]).then(c.bind(c,43976))}));const Hg=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:(t=e.value,(0,Ue.jsx)("div",{children:(0,Ue.jsx)("p",{children:t})})),children:(0,Ue.jsx)(Lg,Fg({},e))});var t};var Ug,Wg=Te.cp.div.withConfig({displayName:"StyledEditorWrapper"})(Ug||(Ug=(0,_e.c)(["\n margin-top: ",";\n"])),Ae.aU.space(-1.5));const Bg=(0,Te.QX)(Je.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ue.jsx)(Wg,{children:(0,Ue.jsx)(Hg,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var zg,Vg,Yg,qg=Te.cp.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(zg||(zg=(0,_e.c)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Gg=Te.cp.div.withConfig({displayName:"StyledDatePickerWrapper"})(Vg||(Vg=(0,_e.c)(["\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"])),Yr,Gr,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Qg=Te.cp.input.withConfig({displayName:"StyledTimeInput"})(Yg||(Yg=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr),Kg="react-datepicker-time__input",Xg="react-datepicker__day",$g="react-datepicker__input",Zg=function(e){return e.classList.contains(Xg)},Jg=function(e){return e.classList.contains(Kg)},ev=function(e){return e.classList.contains($g)},tv=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Xg,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},nv=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},rv=function(e){var t=Wf(e);return isNaN(t)?null:t},ov=function(e){return e?e.toISOString():null};const iv=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?rv:c,l=n.dateToValue,d=void 0===l?ov:l,f=(0,b.useRef)(null),p=(0,b.useState)(!1),h=(0,Ye.c)(p,2),m=h[0],g=h[1],v=(0,b.useState)(!1),y=(0,Ye.c)(v,2),w=y[0],x=y[1],O=u(e),S=i?u(i):void 0,E=a?u(a):void 0;(0,b.useEffect)((function(){(f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var k=function(){return g(!1)},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},C=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},P=function(){t(null),C(null)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=D(!1);if(n){var r=O||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return Xf($f(Zf(e,void 0===a?0:a),i),r)}(n,{hour:Jl(r),minute:ed(r),second:td(r)}):n;j(o,e)}},j=function(n,r){if(n){var i,a=!e&&Boolean(n),c=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!c&&o.some((function(e){return Uf(c,e)})),l=Qu(n),p=Jl(n)!==Jl(l)||ed(n)!==ed(l);(a&&!p||u)&&s&&(n=Np.setCurrentTime(n)),t(d(n))}else P();var h;s||"click"!==(null==r?void 0:r.type)||(k(),nv(null===(h=f.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(ev(e.target))setTimeout((function(){return k()}),0);else if(Jg(e.target)){var t;C(O||D(!0)),tv(null===(t=f.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else Zg(e.target)&&k();else ev(e.target)&&m?(_(e),setTimeout((function(){return k()}),0)):Jg(e.target)?k():Zg(e.target)&&(s?(_(e,!0),C(null),x(!0),setTimeout((function(){var e,t;t=null===(e=f.current)||void 0===e||null===(e=e.calendar)||void 0===e?void 0:e.componentNode,setTimeout((function(){if(t){var e=t.querySelector("input.".concat(Kg));e&&e.focus({preventScroll:!0})}}),0),x(!1)}),0)):(_(e),k()));var n;"Enter"===e.key&&(k(),e.preventDefault(),e.stopPropagation(),nv(null===(n=f.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===D(!1)){var r;C(O||D(!0)),tv(null===(r=f.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},A=function(){var e;g((function(e){return!e})),C(null),nv(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:k,onInputClick:A,onKeyDown:T,onChange:j,onCalendarOpen:function(){C(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:s,minDate:S,maxDate:E,ref:f,className:$g},timeInputProps:{onKeyDown:T,className:Kg,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),P()}},calendarButtonProps:{onClick:A,className:m?"react-datepicker-ignore-onclickoutside":""}}};var av="HH:mm:ss",sv="HH:mm",cv=function(e){return Uf(e,sv)},uv=function(e){var t=function(e){return Uf(e,av)?Hf(e,av,new Date):Uf(e,sv)?Hf(e,sv,new Date):Uf(e,"HH:")?Hf(e,"HH:",new Date):Uf(e,"H")?Hf(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return $l(e,sv)}(t):""};const lv=function(e,t){var n=uv(e),r=(0,b.useState)(n),o=(0,Ye.c)(r,2),i=o[0],a=o[1],s=(0,b.useRef)(i),c=Je.usePrevious(n);(0,b.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&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,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=uv(n);p&&!cv(p)||t(p)}},onBlur:function(){if(i!==n){var e=uv(i);e&&cv(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var dv=["value","onChange","onKeyDown"];function fv(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 pv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Fp();var hv=function(e){var t=e.onChange,n=e.label;return(0,Ue.jsx)(yt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},mv=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Le.c)(e,dv),i=lv(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ue.jsx)(Qg,pv(pv(pv({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},gv={strategy:"fixed"};const vv=(0,Te.QX)((0,y.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,b.useRef)(void 0),y=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,b.useRef)(null),O=Boolean(r),S=!t&&O,E=function(e){v.current=e,c(e)},k=iv(r,E,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),D=k.reactDatePickerProps,C=k.timeInputProps,P=k.clearButtonProps,_=k.calendarButtonProps;return(0,Ue.jsx)(qg,{immutable:t,id:n,tabIndex:"-1",children:(0,Ue.jsxs)(Gg,{immutable:t,ref:x,hasTime:d,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,Ue.jsx)(Nu(),pv(pv({id:n?"".concat(n,"-datepicker"):null,popperClassName:bu},D),{},{disabled:t,dateFormat:[].concat((0,Tt.c)(m),(0,Tt.c)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ue.jsx)(mv,pv({},C)),showTimeSelect:d,timeIntervals:15,popperProps:gv,portalId:"react-datepicker",todayButton:(0,Ue.jsx)(hv,{onChange:E,label:w("client.component.datePicker.todayLabel")})})),S&&(0,Ue.jsx)(Dt,pv({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},P)),!t&&(0,Ue.jsx)(Dt,pv({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},_))]})})})));function yv(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 bv=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,s=e.placeholder,c=(0,y.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(Np.getLocalizedDateFormat(c.locale)),d=Np.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,Np.useTwoDigitYear(l),Np.useTwoDigitYear(d)];return(0,Ue.jsx)(vv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:s,events:a},u))};function wv(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 xv=(0,y.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,y.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Np.getLocalizedDateTimeFormat(a.locale)),u="".concat(Np.getLocalizedDateFormat(a.locale)),l=Np.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Np.useTwoDigitYear(c),Np.useTwoDigitYear(l)],f=Np.getLocalizedDateFormatWithoutPunctuation(a.locale),p=[u,f,Np.useTwoDigitYear(u),Np.useTwoDigitYear(f)];return(0,Ue.jsx)(vv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:i},s))}));var Ov,Sv,Ev,kv,Dv,Cv,Pv,_v,jv=Te.cp.section.withConfig({displayName:"StyledSection"})(Ov||(Ov=(0,_e.c)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Tv=Te.cp.div.withConfig({displayName:"StyledButtonsWrapper"})(Sv||(Sv=(0,_e.c)(["\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"])),ht,Ae.aU.space(-2)),Av=Te.cp.div.withConfig({displayName:"StyledDropzone"})(Ev||(Ev=(0,_e.c)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ht,Ae.Il.color("backgroundItemHover")),Iv=Te.cp.div.withConfig({displayName:"StyledUploadInput"})(kv||(kv=(0,_e.c)(["\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,Ae.Gj)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Ae.Il.color("paper"),(function(e){return e.immutable?Ae.Ml.shade2(e):Ae.Ml.base(e)}),Ae.aU.space(-2),ht,Ae.aU.space(-3.1),Ae.aU.space(-1.5)),Rv=Te.cp.div.withConfig({displayName:"StyledUploadProgress"})(Dv||(Dv=(0,_e.c)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),Ae.aU.space(-2)),Mv=(0,Te.cp)(Vn.G0).withConfig({displayName:"StyledUploadProgressText"})(Cv||(Cv=(0,_e.c)(["\n && {\n ","\n }\n"])),(0,Ae.Gj)({fontSize:Ae.aU.font(-1)})),Nv=Te.cp.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Pv||(Pv=(0,_e.c)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),Ae.aU.space(-2)),Fv=Te.cp.div.withConfig({displayName:"StyledView"})(_v||(_v=(0,_e.c)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),Ae.aU.space(-2));function Lv(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Hv(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Uv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Wv(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;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 Bv=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 zv(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Bv.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 Vv=[".DS_Store","Thumbs.db"];function Yv(e){return"object"==typeof e&&null!==e}function qv(e){return Xv(e.target.files).map((function(e){return zv(e)}))}function Gv(e){return Lv(this,void 0,void 0,(function(){return Hv(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 zv(e)}))]}}))}))}function Qv(e,t){return Lv(this,void 0,void 0,(function(){var n;return Hv(this,(function(r){switch(r.label){case 0:return e.items?(n=Xv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map($v))]):[3,2];case 1:return[2,Kv(Zv(r.sent()))];case 2:return[2,Kv(Xv(e.files).map((function(e){return zv(e)})))]}}))}))}function Kv(e){return e.filter((function(e){return-1===Vv.indexOf(e.name)}))}function Xv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function $v(e){if("function"!=typeof e.webkitGetAsEntry)return Jv(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ty(t):Jv(e)}function Zv(e){return e.reduce((function(e,t){return Wv(Wv([],Uv(e),!1),Uv(Array.isArray(t)?Zv(t):[t]),!1)}),[])}function Jv(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=zv(t);return Promise.resolve(n)}function ey(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return[2,e.isDirectory?ty(e):ny(e)]}))}))}function ty(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Lv(i,void 0,void 0,(function(){var i,a,s;return Hv(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ey)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function ny(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=zv(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var ry=c(35264);function oy(e){return function(e){if(Array.isArray(e))return ly(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uy(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 iy(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 ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach((function(t){sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cy(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||uy(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 uy(e,t){if(e){if("string"==typeof e)return ly(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)?ly(e,t):void 0}}function ly(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 dy="file-invalid-type",fy="file-too-large",py="file-too-small",hy="too-many-files",my=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:dy,message:"File type must be ".concat(t)}},gy=function(e){return{code:fy,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},vy=function(e){return{code:py,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},yy={code:hy,message:"Too many files"};function by(e,t){var n="application/x-moz-file"===e.type||(0,ry.c)(e,t);return[n,n?null:my(t)]}function wy(e,t,n){if(xy(e.size))if(xy(t)&&xy(n)){if(e.size>n)return[!1,gy(n)];if(e.size<t)return[!1,vy(t)]}else{if(xy(t)&&e.size<t)return[!1,vy(t)];if(xy(n)&&e.size>n)return[!1,gy(n)]}return[!0,null]}function xy(e){return null!=e}function Oy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Sy(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 Ey(e){e.preventDefault()}function ky(){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!Oy(e)&&t&&t.apply(void 0,[e].concat(r)),Oy(e)}))}}function Dy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Cy(e){return/^.*\.[\w]+$/.test(e)}var Py=["children"],_y=["open"],jy=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ty=["refKey","onChange","onClick"];function Ay(e){return function(e){if(Array.isArray(e))return My(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ry(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 Iy(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,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Ry(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 Ry(e,t){if(e){if("string"==typeof e)return My(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)?My(e,t):void 0}}function My(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 Ny(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 Fy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(n),!0).forEach((function(t){Ly(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ly(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uy=(0,b.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fy(Fy({},Wy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,S=t.noDrag,E=t.noDragEventsBubbling,k=t.onError,D=t.validator,C=(0,b.useMemo)((function(){return function(e){if(xy(e))return Object.entries(e).reduce((function(e,t){var n=cy(t,2),r=n[0],o=n[1];return[].concat(oy(e),[r],oy(o))}),[]).filter((function(e){return Dy(e)||Cy(e)})).join(",")}(n)}),[n]),P=(0,b.useMemo)((function(){return function(e){if(xy(e)){var t=Object.entries(e).filter((function(e){var t=cy(e,2),n=t[0],r=t[1],o=!0;return Dy(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(Cy)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=cy(t,2),r=n[0],o=n[1];return ay(ay({},e),{},sy({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),_=(0,b.useMemo)((function(){return"function"==typeof g?g:qy}),[g]),j=(0,b.useMemo)((function(){return"function"==typeof m?m:qy}),[m]),T=(0,b.useRef)(null),A=(0,b.useRef)(null),I=Iy((0,b.useReducer)(Yy,Vy),2),R=I[0],M=I[1],N=R.isFocused,F=R.isFileDialogActive,L=(0,b.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!L.current&&F&&setTimeout((function(){A.current&&(A.current.files.length||(M({type:"closeDialog"}),j()))}),300)};(0,b.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,F,j,L]);var U=(0,b.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,b.useEffect)((function(){return w&&(document.addEventListener("dragover",Ey,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Ey),document.removeEventListener("drop",W))}}),[T,w]),(0,b.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var B=(0,b.useCallback)((function(e){k?k(e):console.error(e)}),[k]),z=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(Ay(U.current),[e.target]),Sy(e)&&Promise.resolve(o(e)).then((function(t){if(!Oy(e)||E){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=cy(by(e,n),1)[0],i=cy(wy(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:C,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:D});M({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,E,C,a,i,s,c,D]),V=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Sy(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,E]),Y=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Sy(e)&&l&&l(e))}),[T,l,E]),q=(0,b.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Iy(by(e,C),2),o=t[0],s=t[1],c=Iy(wy(e,a,i),2),u=c[0],l=c[1],d=D?D(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[yy]})})),n.splice(0)),M({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[M,s,C,a,i,c,f,p,h,D]),G=(0,b.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Sy(e)&&Promise.resolve(o(e)).then((function(t){Oy(e)&&!E||q(t,e)})).catch((function(e){return B(e)})),M({type:"reset"})}),[o,q,B,E]),Q=(0,b.useCallback)((function(){if(L.current){M({type:"openDialog"}),_();var e={multiple:s,types:P};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),M({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(L.current=!1,A.current?(A.current.value=null,A.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."))):(j(e),M({type:"closeDialog"}))}))}else A.current&&(M({type:"openDialog"}),_(),A.current.value=null,A.current.click())}),[M,_,j,v,q,B,P,s]),K=(0,b.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Q()))}),[T,Q]),X=(0,b.useCallback)((function(){M({type:"focus"})}),[]),$=(0,b.useCallback)((function(){M({type:"blur"})}),[]),Z=(0,b.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Q():setTimeout(Q,0))}),[x,Q]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return S?null:J(e)},ne=function(e){E&&e.stopPropagation()},re=(0,b.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,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hy(e,jy);return Fy(Fy(Ly({onKeyDown:ee(ky(i,K)),onFocus:ee(ky(a,X)),onBlur:ee(ky(s,$)),onClick:J(ky(c,Z)),onDragEnter:te(ky(u,z)),onDragOver:te(ky(l,V)),onDragLeave:te(ky(d,Y)),onDrop:te(ky(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||O?{}:{tabIndex:0}),p)}}),[T,K,X,$,Z,z,V,Y,G,O,S,r]),oe=(0,b.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,b.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,i=Hy(e,Ty);return Fy(Fy({},Ly({accept:C,multiple:s,type:"file",style:{display:"none"},onChange:J(ky(r,G)),onClick:J(ky(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Fy(Fy({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ie,rootRef:T,inputRef:A,open:J(Q)})}(Hy(e,Py)),o=r.open,i=Hy(r,_y);return(0,b.useImperativeHandle)(t,(function(){return{open:o}}),[o]),w().createElement(b.Fragment,null,n(Fy(Fy({},i),{},{open:o})))}));Uy.displayName="Dropzone";var Wy={disabled:!1,getFilesFromEvent:function(e){return Lv(this,void 0,void 0,(function(){return Hv(this,(function(t){return Yv(e)&&Yv(e.dataTransfer)?[2,Qv(e.dataTransfer,e.type)]:function(e){return Yv(e)&&Yv(e.target)}(e)?[2,qv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Gv(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};Uy.defaultProps=Wy,Uy.propTypes={children:Pe().func,accept:Pe().objectOf(Pe().arrayOf(Pe().string)),multiple:Pe().bool,preventDropOnDocument:Pe().bool,noClick:Pe().bool,noKeyboard:Pe().bool,noDrag:Pe().bool,noDragEventsBubbling:Pe().bool,minSize:Pe().number,maxSize:Pe().number,maxFiles:Pe().number,disabled:Pe().bool,getFilesFromEvent:Pe().func,onFileDialogCancel:Pe().func,onFileDialogOpen:Pe().func,useFsAccessApi:Pe().bool,autoFocus:Pe().bool,onDragEnter:Pe().func,onDragLeave:Pe().func,onDragOver:Pe().func,onDrop:Pe().func,onDropAccepted:Pe().func,onDropRejected:Pe().func,onError:Pe().func,validator:Pe().func};const By=Uy;var zy,Vy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Yy(e,t){switch(t.type){case"focus":return Fy(Fy({},e),{},{isFocused:!0});case"blur":return Fy(Fy({},e),{},{isFocused:!1});case"openDialog":return Fy(Fy({},Vy),{},{isFileDialogActive:!0});case"closeDialog":return Fy(Fy({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Fy(Fy({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Fy(Fy({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Fy({},Vy);default:return e}}function qy(){}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 Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ky=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ue.jsxs)(Iv,{immutable:n,children:[(0,Ue.jsx)(By,{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,Ue.jsx)(jv,{children:(0,Ue.jsxs)(Av,Qy(Qy({},t()),{},{children:[(0,Ue.jsx)("input",Qy({},n())),zy||(zy=(0,Ue.jsx)(yt,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ue.jsx)(yt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Xy,$y=Te.cp.figure.withConfig({displayName:"StyledPreview"})(Xy||(Xy=(0,_e.c)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),Ae.aU.space(-2.2),Ae.Il.color("border"),Ae.Il.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Zy=$y;var Jy;const eb=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ue.jsx)("img",{alt:n,title:n,src:t}):(0,Ue.jsx)("div",{title:n,children:Jy||(Jy=(0,Ue.jsx)(He.c,{icon:"file-alt"}))});return(0,Ue.jsxs)(Zy,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ue.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ue.jsx)(Vn.cp.Figcaption,{children:o})]})};var tb=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 nb=function(e){var t=e.file,n=e.text;return(0,Ue.jsxs)(Rv,{children:[(0,Ue.jsx)(eb,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ue.jsxs)(Nv,{children:[(0,Ue.jsx)(Ve,{position:Ae.Wn.position.PREPEND}),(0,Ue.jsxs)(Mv,{children:[n||"uploading"," (",tb(t.size),")"]})]})]})};var rb=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const ob={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return rb(e,"download",!0)},addParameterToURL:rb};function ib(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 ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const sb=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ue.jsxs)(Fv,{className:"StyledView",children:[(0,Ue.jsx)(eb,ab(ab({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ue.jsxs)(Tv,{children:[!o&&(0,Ue.jsx)(yt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ue.jsx)(yt,{children:(0,Ue.jsx)(Vr.cp,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:ob.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function cb(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 ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lb=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,i=(0,b.useRef)(t),a=(0,b.useState)({isUploading:!1,previewFile:null}),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,b.useEffect)((function(){eg()(i.current,t)||u({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ue.jsx)(sb,ub(ub({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):c.isUploading?(0,Ue.jsx)(nb,ub({file:c.previewFile,text:n.uploading},e)):(0,Ue.jsx)(Ky,ub(ub({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};lb.defaultProps={textResources:{}};const db=lb;var fb=function(e){return(0,Ue.jsx)(db,{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})};fb.defaultProps={options:{}};const pb=fb;var hb,mb,gb=Te.cp.input.withConfig({displayName:"StyledDurationEdit"})(hb||(hb=(0,_e.c)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Gr,(function(e){return e.width})),vb=Te.cp.label.withConfig({displayName:"StyledDurationEditFocusable"})(mb||(mb=(0,_e.c)(["\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"])),Ae.aU.space(1),(function(e){return e.immutable?Ae.Il.color("textDisabled"):Ae.Il.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),yb=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=Np.millisecondsToDuration(n),s=(0,b.useState)(!1),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=function(e,t){var n,r,i=null!==t?t:a.minutes,s=null!==e?e:a.hours;""!==i||""!==s?(i>=60&&(s=0),o((r=i,(n=s)||r?((n<0||r<0)&&(n=Zr(n),r=Zr(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},f=function(){l(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},h=function(){return!0===i.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(a.seconds);return(0,Ue.jsxs)(qr,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:p,pattern:h(),step:1,width:g(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!r?"":a.hours+"","data-cy":"input-hours"}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.hoursLabel})]}),(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,min:!0!==i.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,"");d(null,t)},onKeyPress:p,pattern:h(),step:1,width:g(a.minutes),type:"number",value:a.minutes+"","data-cy":"input-minutes"}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.minutesLabel})]}),v&&(0,Ue.jsxs)(vb,{immutable:r,children:[(0,Ue.jsx)(gb,{disabled:r,immutable:r,onChange:function(){},width:g(a.seconds),type:"number",value:a.seconds+""}),m()&&(0,Ue.jsx)(Vn.cp.Span,{children:i.secondsLabel})]})]})};yb.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const bb=yb;var wb;const xb=Te.cp.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(wb||(wb=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const Ob=Je.Debouncer((function(e){return(0,Ue.jsxs)(qr,{immutable:e.immutable,children:[(0,Ue.jsx)(xb,{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,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var Sb=c(61936),Eb=c(51068),kb=c.n(Eb);function Db(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 Cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Db(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pb(){Pb=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),(0,Sb.c)(i,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 i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,De.c)(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 i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,$r.c)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Pb.apply(this,arguments)}var _b,jb=["key","display","postcode","city","country","latitude","longitude"],Tb=function(e){return e*Math.PI/180},Ab=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:Tb(i),longitude:Tb(a)}};function Ib(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 Rb(){}function Mb(e){return!!(e||"").match(/\d/)}function Nb(e){return null==e}function Fb(e){return Nb(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Lb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Hb(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 Ub(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Wb(e,t){return Array(t+1).join(e)}function Bb(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Wb("0",Math.abs(a))+o:a>=s?o+=Wb("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function zb(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Hb(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i.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]);return""+(s?"-":"")+l+(r?".":"")+Ub(u[1]||"",t,n)}function Vb(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(e){e.event="event",e.props="prop"}(_b||(_b={}));var Yb,qb,Gb,Qb=(Yb=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Gb=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qb&&e.length===qb.length&&e.every((function(e,t){return e===qb[t]}))?Gb:(qb=e,Gb=Yb.apply(void 0,e))});function Kb(e){return Math.max(e.selectionStart,e.selectionEnd)}function Xb(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function $b(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Zb(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Jb(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(Mb(e[n])||Mb(e[n-1]));return t}function ew(e,t,n,r,o,i){void 0===i&&(i=Rb);var a=function(e){var t=(0,b.useRef)(e);t.current=e;var n=(0,b.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Fb(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Bb(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,b.useState)((function(){return a(Nb(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Nb(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,b.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function tw(e){return e.replace(/[^0-9]/g,"")}function nw(e){return e}function rw(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,i=e.getInputRef,a=e.format;void 0===a&&(a=nw);var s=e.removeFormatting;void 0===s&&(s=tw);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Rb);var p=e.onKeyDown;void 0===p&&(p=Rb);var h=e.onMouseUp;void 0===h&&(h=Rb);var m=e.onFocus;void 0===m&&(m=Rb);var g=e.onBlur;void 0===g&&(g=Rb);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Jb);var x=e.isValidInputCharacter;void 0===x&&(x=Mb);var O=e.isCharacterSame,S=Ib(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=ew(v,c,Boolean(u),a,s,l),k=E[0],D=k.formattedValue,C=k.numAsString,P=E[1],_=(0,b.useRef)({formattedValue:D,numAsString:C}),j=function(e,t){_.current={formattedValue:e.formattedValue,numAsString:e.value},P(e,t)},T=(0,b.useState)(!1),A=T[0],I=T[1],R=(0,b.useRef)(null),M=(0,b.useRef)({setCaretTimeout:null,focusTimeout:null});(0,b.useEffect)((function(){return I(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var N=a,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Vb(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Vb(e,t)}),0))},H=function(e,t,n){return Zb(e,t,y(e),n)},U=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=$b);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,D,e,n,r,x,O);return o=Zb(t,o,r)};(0,b.useEffect)((function(){var e=_.current,t=e.formattedValue,n=e.numAsString;D===t||D===C&&t===n||j(F(D,C),{event:void 0,source:_b.props})}),[D,C]);var W=R.current?Kb(R.current):void 0;("undefined"!=typeof window?b.useLayoutEffect:b.useEffect)((function(){var e=R.current;if(D!==_.current.formattedValue&&e){var t=U(_.current.formattedValue,D,W);e.value=D,L(e,t,D)}}),[D]);var B=function(e,t,n){var r=Qb(D,e),o=Object.assign(Object.assign({},r),{lastValue:D}),i=s(e,o),a=N(i);if(i=s(a,void 0),d&&!d(F(a,i))){var c=t.target,u=Kb(c),l=U(e,D,u);return c.value=D,L(c,l,D),!1}return 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,i=e.event,a=e.numAsString,s=e.caretPos;if(n){if(void 0===s&&r){var c=e.inputValue||n.value,u=Kb(n);n.value=t,s=U(c,t,u)}n.value=t,r&&void 0!==s&&L(n,s,t)}t!==D&&j(F(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},z=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:z},S,{type:t,value:D,onChange:function(e){var t=e.target.value;B(t,e,_b.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=H(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(s=H(a,t,"left")):s=H(a,t,"right");s!==t&&L(n,s,a),e.isUnitTestRun&&L(n,s,a),p(e)}else p(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 i=H(o,n);i!==n&&L(t,i,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 i=H(o,n);i===n||0===n&&r===o.length||L(t,i,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?w().createElement(w().Fragment,null,o(D,S)||null):w().createElement("span",Object.assign({},S,{ref:i}),D);if(r){var Y=r;return w().createElement(Y,Object.assign({},V,{ref:i}))}return w().createElement("input",Object.assign({},V,{ref:i}))}function ow(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=iw(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Hb(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Ub(h,n,!!r)),u&&(p=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;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)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function iw(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 aw(e,t,n){var r;void 0===t&&(t=Xb(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=iw(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Mb(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,S=w.value,E=e.substring(l,d);!(e.length&&S.length&&(x>S.length-a.length||O<i.length))||E&&a.startsWith(E)||(e=S);var k=0;e.startsWith(i)?k+=i.length:l<i.length&&(k=l),d-=k;var D=(e=e.substring(k)).length,C=e.length-a.length;e.endsWith(a)?D=C:(d>C||d>e.length-a.length)&&(D=d),e=e.substring(0,D),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Lb(e),t?"g":void 0)}(h,!0))||[]).join("");var P=e.indexOf(h);e=e.replace(new RegExp(Lb(h),"g"),(function(e,t){return t===P?".":""}));var _=Hb(e,o),j=_.beforeDecimal,T=_.afterDecimal,A=_.addNegation;return u.end-u.start<c.end-c.start&&""===j&&m&&!parseFloat(T)&&(e=A?"-":""),e}function sw(e){e=function(e){var t=iw(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!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("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Rb);var i=e.onBlur;void 0===i&&(i=Rb);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Ib(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=iw(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return ow(t,e)},b=function(t,n){return aw(t,n,e)},w=Nb(d)?l:d,x=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Nb(d)?Nb(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return Fb(e)?e:("number"==typeof e&&(e=Bb(e)),x&&"number"==typeof s?zb(e,s,Boolean(c)):e)},S=ew(O(d),O(l),Boolean(x),y,b,p),E=S[0],k=E.numAsString,D=E.formattedValue,C=S[1];return Object.assign(Object.assign({},h),{value:D,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Mb(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Qb(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:C,format:y,removeFormatting:b,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})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Vb(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Vb(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Vb(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Vb(t,i-1),"Delete"===r&&d[i]===f&&Vb(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=k;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)),c&&s&&(n=zb(n,s,c)),n!==k){var o=ow(n,e);C({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:_b.event})}i(t)}})}function cw(e){var t=sw(e);return w().createElement(rw,Object.assign({},t))}var uw,lw=["immutable"];function dw(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 fw=(0,Te.cp)((function(e){e.immutable;var t=(0,Le.c)(e,lw);return(0,Ue.jsx)(cw,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(uw||(uw=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const pw=fw;function hw(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 mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gw=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},vw=function(e){return null!=e&&!isNaN(parseFloat(e))},yw=function(e,t,n){return!vw(n)||!(vw(t)&&n>t)&&!(vw(e)&&n<e)},bw=function(e,t){return function(n){var r=n.floatValue;return gw(r)<gw(e)||yw(e,t,r)}};const ww=(0,y.injectIntl)(Je.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,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.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}(a,s,u),g=mw(mw({isAllowed:bw(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(pw,mw(mw({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&yw(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!yw(c,m,r)&&(t.target.value=null)}}))})}),800));const xw=Je.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ue.jsx)(qr,{immutable:o,children:(0,Ue.jsx)(pw,{isAllowed:bw(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),yw(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Ow,Sw,Ew,kw=Te.cp.div.withConfig({displayName:"StyledWrapper"})(Ow||(Ow=(0,_e.c)(["\n display: flex;\n justify-content: stretch;\n"]))),Dw=Te.cp.div.withConfig({displayName:"StyledLocationWrapper"})(Sw||(Sw=(0,_e.c)(["\n flex-grow: 1;\n"]))),Cw=Te.cp.div.withConfig({displayName:"StyledDistanceWrapper"})(Ew||(Ew=(0,_e.c)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),Ae.Il.color("border"),Ae.aU.space(-.8),Ae.aU.space(.5));function Pw(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 _w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jw=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,s=a.suggestions,c=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,f=a.emptySearchText,p=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?kb()(e,jb):void 0}(r),v=function(e){return e?e.map(Ab):[]}(s);return(0,Ue.jsxs)(kw,{children:[(0,Ue.jsx)(Dw,{children:(0,Ue.jsx)(bg,{id:t,immutable:n,onChange:function(e){o(_w(_w({},function(e,t){return t?Cb(Cb({},e),kb()(t,jb)):Sr()(e,jb)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,Tt.c)(e.matchAll(Pb(/([\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 Cb(Cb({},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?p:f}})}),(0,Ue.jsx)(Cw,{children:(0,Ue.jsx)(xw,{value:m,onChange:function(e){o(_w(_w({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Tw,Aw=(0,b.lazy)((function(){return c.e(216).then(c.bind(c,6740))})),Iw=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=e.options;if(r)return(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var a=i||{},s=a.contentLang,c=a.defaultLinkTarget,u=a.ckEditorConfig;return(0,Ue.jsx)(b.Suspense,{fallback:Tw||(Tw=(0,Ue.jsx)("i",{})),children:(0,Ue.jsx)(Aw,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:s,defaultLinkTarget:c,ckEditorConfig:u})})};Iw.defaultProps={value:""};const Rw=Iw;var Mw,Nw;function Fw(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 Lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hw=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,Ue.jsxs)(Vn.cp.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Lw(Lw({},r),{},(0,Fe.c)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,Fe.c)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},p={value:r.city||"",onChange:u("city"),disabled:i};return(0,Ue.jsx)(Rr,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ue.jsxs)(no,{immutable:i,name:a,ref:u,children:[(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(Mw||(Mw=(0,Ue.jsx)(Vn.cp.Span,{children:"/"}))),(0,Ue.jsx)(Cr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ue.jsxs)(Kr,{children:[n.isLoading&&(Nw||(Nw=(0,Ue.jsx)(Ve,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ue.jsx)(Vr.cp,{href:Jr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Uw(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 Ww=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Bw(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 zw=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Vw;const Yw=Te.cp.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Vw||(Vw=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const qw=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.onLibLoaded,a=to()(e,"options.defaultCountry")||"CH",u=(0,b.useState)(null),l=(0,Ye.c)(u,2),f=l[0],p=l[1],h=w().createRef();(0,b.useEffect)((function(){var e=function(){var e=s(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(8).then(c.bind(c,40460));case 2:t=e.sent,p(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var m=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},g=n&&null!=f&&f.AsYouType?new f.AsYouType(a).input(n):n||"";return(0,Ue.jsxs)(qr,{immutable:r,children:[(0,Ue.jsx)(Yw,{disabled:r||!f,id:o,name,onChange:function(e){var r=e.target.value,o=f?f.parseNumber(r,a):r,i=kr()(o)?new f.AsYouType(a).input(r).replace(/\s/g,""):f.formatNumber(o,"E.164");t(i);var s=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new f.AsYouType(a).input(t),o=new f.AsYouType(a).input(e),i=m(r,n),s=m(o,n)-i;window.requestAnimationFrame(function(){var e=n+s;this.setSelectionRange(e,e)}.bind(h.current))}}(r,n,s)},immutable:r||!f,ref:h,value:g}),g&&(0,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Gw(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 Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kw=function(e){return e.map((function(e){return kb()(e,["key","display"])}))};const Xw=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,Ue.jsx)(bg,{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=i.options.map((function(e){return Qw(Qw({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Kw(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Kw(i.options)})};function $w(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 Zw=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Jw(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 ex=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jw(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function tx(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 nx=function(e){return(0,Ue.jsx)(bg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const rx=Je.Debouncer((function(e){return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(xb,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var ox,ix,ax,sx,cx,ux=c(57292),lx=Te.cp.div.withConfig({displayName:"StyledTermsEdit"})(ox||(ox=(0,_e.c)(["\n margin: "," 0;\n display: flex;\n"])),Ae.aU.space(-1.4)),dx=Te.cp.input.withConfig({displayName:"StyledCheckbox"})(ix||(ix=(0,_e.c)(["\n margin-right: ",";\n"])),Ae.aU.space(-1.5)),fx=(0,Te.gV)(ax||(ax=(0,_e.c)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),Ae.Il.color("secondary"),Ae.Il.color("secondaryLight"),Ae.Il.color("secondary")),px=Te.cp.a.withConfig({displayName:"StyledTermsLink"})(sx||(sx=(0,_e.c)(["\n ","\n"])),fx),hx=(0,Te.cp)(Dg).withConfig({displayName:"StyledHtmlFormatter"})(cx||(cx=(0,_e.c)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),fx);const mx=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,s=e.id,c=e.immutable,u=(0,b.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:ux.c.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,b.useCallback)((function(){return o(null)}),[o]),d=(0,b.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,b.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,b.useEffect)((function(){n()}),[]),(0,b.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!c||d(!1)}),[r,i,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,Ue.jsx)(dx,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,Ue.jsx)(px,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ue.jsx)(hx,{value:r.label,breakWords:!0})});return!c&&(0,Ue.jsxs)(lx,{children:[p,h||(0,Ue.jsx)(hx,{value:null==r?void 0:r.label,breakWords:!0})]})};const gx=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var vx,yx,bx,wx=(0,Te.gV)(vx||(vx=(0,_e.c)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Gr),xx=Te.cp.div.withConfig({displayName:"StyledSizeWrapper"})(yx||(yx=(0,_e.c)(["\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"])),wx),Ox=Te.cp.textarea.withConfig({displayName:"StyledTextarea"})(bx||(bx=(0,_e.c)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),wx,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?Ae.aU.space(-1.2):"0"}));function Sx(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 Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kx=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,b.useState)(t),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=!gx(),f=gx(),p=(0,b.useCallback)(lo()(l,500,{trailing:!0}),[]);return(0,b.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,Ue.jsx)(xx,Ex(Ex({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ue.jsx)(Ox,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};const Dx=Je.Debouncer((function(e){return(0,Ue.jsx)(qr,{immutable:e.immutable,children:(0,Ue.jsx)(kx,{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 Cx;const Px=Te.cp.input.withConfig({displayName:"StyledTimeEdit"})(Cx||(Cx=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);function _x(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 jx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_x(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Tx=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=lv(n,t),s=a.inputProps,c=a.clearButtonProps,u=n&&!r;return(0,Ue.jsxs)(qr,{immutable:r,children:[(0,Ue.jsx)(Px,jx({type:"text",disabled:r,id:o,immutable:r,name:i},s)),u&&(0,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Dt,jx(jx({icon:"times"},c),{},{tabIndex:-1}))})]})};var Ax;const Ix=Te.cp.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Ax||(Ax=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr);const Rx=Je.Debouncer((function(e){return(0,Ue.jsxs)(qr,{immutable:e.immutable,children:[(0,Ue.jsx)(Ix,{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,Ue.jsx)(Kr,{children:(0,Ue.jsx)(Vr.cp,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Mx(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 Nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fx={boolean:Sg,"boolean-select":wg,choice:Mg,code:Bg,date:bv,datetime:xv,document:pb,duration:bb,email:Ob,geosearch:jw,html:Rw,integer:xw,address:ao,location:Hw,"multi-remote":Ww,"multi-select":zw,number:ww,phone:qw,"pseudo-select":Xw,remote:Zw,"search-filter":ex,"single-select":nx,string:rx,terms:mx,text:Dx,url:Rx,time:Tx};const Lx=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(Fx[t]){var u=Fx[t],l=Nx(Nx({},Sr()(i,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,Ue.jsx)("div",Nx(Nx({},l),{},{"data-cy":"form-field",children:(0,Ue.jsx)(u,Nx(Nx({value:n,onChange:null==i?void 0:i.onChange},kr()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function Hx(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 Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wx=function(e){return(0,Ue.jsx)(Xr,{children:(0,Ue.jsx)(Lx,Ux({componentType:e.type},Sr()(e,"type")))})};const Bx=(0,Te.QX)((function(e){return(0,Ue.jsx)(He.c,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const zx=function(e){var t=(0,y.useIntl)();return(0,Ue.jsx)(Vn.cp.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ue.jsx)(y.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var Vx;const Yx=(0,y.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),Vx||(Vx=(0,Ue.jsx)(Vn.cp.Span,{}));var o=$l(r,"HH:mm");return(0,Ue.jsxs)(Vn.cp.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ue.jsx)(y.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var qx;function Gx(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 Qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gx(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kx=function(e){var t=e.options||{},n=(0,Ue.jsxs)(Ue.Fragment,{children:[t.title&&(0,Ue.jsx)(Vn.cp.H5,{children:t.title}),(0,Ue.jsx)(Dg,Qx({},e))]});return"text"===t.mode?n:(0,Ue.jsx)(Gm,{content:n,isPlainHtml:!0,children:qx||(qx=(0,Ue.jsx)(Fm,{children:(0,Ue.jsx)(He.c,{icon:"question-circle"})}))})};const Xx=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=to()(r,t.resourceKey,null);return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(Gm,{content:i?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(i)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ue.jsx)(Vr.cp,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ue.jsx)(Vr.cp,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:ob.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const $x=function(e){return(0,Ue.jsx)(db,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Zx=function(e){var t=e.value,n=parseInt(t),r=Np.formatDuration(n);return(0,Ue.jsx)(Vn.cp.Time,{dateTime:r,title:r,children:r})};const Jx=function(e){return(0,Ue.jsx)(Vr.cp,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const eO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function tO(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 nO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rO=function(){return"; "};const oO=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ue.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ue.jsx)(a.DetailLink,nO(nO({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ue.jsx)(rO,{},"sep".concat(n)),t]})):null;return(0,Ue.jsx)(Vn.cp.Span,{breakWords:r,useTitle:o,children:c})};const iO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ue.jsx)(y.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const aO=function(e){var t;return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ue.jsx)(y.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function sO(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 cO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uO=(0,b.lazy)((function(){return Promise.all([c.e(8),c.e(570)]).then(c.bind(c,33992))}));const lO=function(e){return(0,Ue.jsx)(b.Suspense,{fallback:"",children:(0,Ue.jsx)(uO,cO({},e))})};function dO(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 fO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dO(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pO=function(e){var t=e.value,n=e.options,r=e.breakWords,o=(e.useTitle,n||{}),i=o.tooltips,a=o.loadTooltip,s=o.navigationStrategy,c=o.linkProps,u=to()(i,t.key,null);t=ig(t);var l=(0,Ue.jsx)(Vn.cp.Span,{breakWords:r,useTitle:!u,children:t.display});return(null!=s&&s.DetailLink?(0,Ue.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ue.jsx)(s.DetailLink,fO(fO({},c),{},{entityKey:t.key,children:(0,Ue.jsx)(Gm,{content:u?(0,Ue.jsx)("div",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(u)}}):null,children:(0,Ue.jsx)("span",{onMouseOver:function(){return a&&!u&&a(t.key)},children:l})})}))}):null)||l};const hO=function(e){return(0,Ue.jsx)(Vn.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const mO=function(e){return e.breakWords?(0,Ue.jsx)(Vn.cp.P,{breakWords:!0,useTitle:e.useTitle,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,Ue.jsx)("br",{},t)]:e})))}):(0,Ue.jsx)(Vn.cp.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")});var t};var gO=function(e,t){return parseInt(e.split(":")[t])||0};const vO=(0,y.injectIntl)((function(e){var t=e.value,n=(e.intl,gO(t,0)),r=gO(t,1),o=gO(t,2),i=gO(t,3),a=new Date(2e3,1,1,n,r,o,i),s=$l(a,"HH:mm:ss.SSS"),c=$l(a,"HH:mm");return(0,Ue.jsx)(Vn.cp.Time,{dateTime:s,title:c,children:c})}));const yO=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ue.jsx)(Vr.cp,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var bO,wO={boolean:Bx,date:zx,datetime:Yx,document:$x,"document-compact":Xx,duration:Zx,email:Jx,html:Dg,integer:eO,"multi-remote":oO,"multi-select":oO,number:iO,percent:aO,phone:lO,remote:pO,"single-select":pO,string:hO,text:mO,time:vO,url:yO,description:Kx};const xO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a;if(wO[t]){var c=wO[t];return(0,Ue.jsx)(c,{value:n,options:r,breakWords:i,useTitle:s})}return console.log("No FormattedValue mapper defined for component type",t,n),bO||(bO=(0,Ue.jsx)("div",{}))};var OO;const SO=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle;return null==n||""===n?OO||(OO=(0,Ue.jsx)("span",{})):(0,Ue.jsx)(xO,{componentType:t,value:n,options:r,breakWords:o,useTitle:i})},EO=SO;var kO="checked",DO="indeterminate",CO="unchecked";const PO=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,b.useRef)(null);return(0,b.useLayoutEffect)((function(){i.current.indeterminate=t===DO,i.current.checked=t===kO}),[t]),(0,Ue.jsx)("input",{ref:i,onChange:function(e){r(t===DO?CO:e.target.checked?kO:CO)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},_O=PO;var jO;const TO=Te.cp.div.withConfig({displayName:"StyledLayoutBox"})(jO||(jO=(0,_e.c)(["\n height: fit-content;\n margin-bottom: ",";\n"])),Ae.aU.space(.25));var AO=function(e){var t=e.children;return(0,Ue.jsx)(TO,{children:t})};const IO=(0,b.memo)(AO);var RO,MO=Te.cp.div.withConfig({displayName:"StyledLayoutContainer"})(RO||(RO=(0,_e.c)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),Ae.aU.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(Ae.aU.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const NO=MO;var FO=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,b.useRef)(null),i=(0,b.useState)(0),a=(0,Ye.c)(i,2),s=a[0],c=a[1],u=function(){c(o.current.offsetWidth)};return(0,b.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,Ue.jsx)(NO,{ref:o,containerWidth:s,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};FO.defaultProps={minBoxWidth:250};const LO={Box:IO,Container:FO};var HO,UO,WO,BO,zO=c(93896),VO=(0,Te.xZ)(HO||(HO=(0,_e.c)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),YO=(0,Te.gV)(UO||(UO=(0,_e.c)(["\n animation: "," 400ms ease-in-out both;\n"])),VO),qO=Te.cp.div.withConfig({displayName:"StyledLoadingIconAndTest"})(WO||(WO=(0,_e.c)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),Ae.aU.space(-1),YO,zO.G0,Ae.aU.space(-1));const GO=Te.cp.div.withConfig({displayName:"StyledLoadMask"})(BO||(BO=(0,_e.c)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var QO;const KO=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,b.useState)(!1),s=(0,Ye.c)(a,2),c=s[0],u=s[1],l=(0,b.useState)(!0),d=(0,Ye.c)(l,2),f=d[0],p=d[1];(0,b.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ue.jsx)(GO,{className:i,children:h?r:(0,Ue.jsxs)(qO,{children:[QO||(QO=(0,Ue.jsx)(Ve,{size:"30px"},"loading-spinner")),o&&(0,Ue.jsx)(Vn.cp.Span,{children:o},"loadingText")]})})};var XO,$O=Te.cp.div.withConfig({displayName:"StyledPanel"})(XO||(XO=(0,_e.c)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),Ae.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Ae.Il.color("borderLight"),Ae.Il.radii("form"));const ZO=$O;const JO=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,b.useState)(a),d=(0,Ye.c)(l,2),f=d[0],p=d[1],h="boolean"==typeof o,m=function(){c&&(h?"function"==typeof u&&u(!o):p(!f))};return(0,Ue.jsx)(ZO,{isFramed:r,children:w().Children.map(t,(function(e){return w().cloneElement(e,{isFramed:r,isOpen:h?o:f,isToggleable:c,toggleOpenState:m})}))})};var eS,tS=Te.cp.div.withConfig({displayName:"StyledPanelBody"})(eS||(eS=(0,_e.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?Ae.aU.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const nS=tS;const rS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ue.jsx)(nS,{isFramed:n,isOpen:r,children:(0,Ue.jsx)("div",{children:t})})};const oS=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,b.useState)(t),o=(0,Ye.c)(r,2),i=o[0],a=o[1];return(0,Ue.jsx)(Ue.Fragment,{children:w().Children.map(n,(function(e,t){return w().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var iS;const aS=Te.cp.div.withConfig({displayName:"StyledPanelGroup"})(iS||(iS=(0,_e.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Ae.aU.space(0),ZO,Ae.aU.space(-1));function sS(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 cS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sS(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uS=function(e){return(0,Ue.jsx)(aS,{children:(0,Ue.jsx)(oS,cS({},e))})};var lS,dS,fS,pS,hS,mS,gS,vS="1px",yS=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(lS||(lS=(0,_e.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Ae.aU.font(1),Ae.Il.color("text"),!Ae.iY&&(0,Te.gV)(dS||(dS=(0,_e.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Ae.Il.color("secondaryLight"))),bS=Te.cp.div.withConfig({displayName:"StyledPanelHeader"})(fS||(fS=(0,_e.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),Ae.Il.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,Te.gV)(pS||(pS=(0,_e.c)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),Ae.Il.radii("form"),vS,Ae.Il.radii("form"),vS):(0,Te.gV)(hS||(hS=(0,_e.c)(["\n calc("," - ",")\n "])),Ae.Il.radii("form"),vS)}),(function(e){return e.isFramed?(0,Te.gV)(mS||(mS=(0,_e.c)(["\n "," ","\n "])),Ae.aU.space(-1.7),Ae.aU.space(-.375)):0}),!Ae.iY&&(0,Te.gV)(gS||(gS=(0,_e.c)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),yS),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(vS,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(vS,";\n }\n "):"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(vS,";\n }\n ")}(e)}));const wS=bS;var xS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,s=e.options;return(0,Ue.jsxs)(wS,{isFramed:n,isOpen:r,onClick:a,children:[(0,Ue.jsx)("div",{children:w().Children.map(t,(function(e){return w().cloneElement(e)}))}),o&&i&&(0,Ue.jsx)(yS,{children:(0,Ue.jsx)(He.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};xS.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const OS={Body:rS,Group:uS,Header:xS,Wrapper:JO};var SS,ES=Te.cp.div.withConfig({displayName:"StyledPanel"})(SS||(SS=(0,_e.c)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),Ae.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),Ae.Il.color("borderLight"),Ae.Il.radii("form"));const kS=ES;const DS=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,b.useState)(i),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,Ue.jsx)(kS,{isFramed:r,children:w().Children.map(t,(function(e){return w().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var CS,PS,_S=Te.cp.div.withConfig({displayName:"StyledPanelBody"})(CS||(CS=(0,_e.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Te.gV)(PS||(PS=(0,_e.c)(["\n "," "," "," ","\n "])),Ae.aU.space(-1),Ae.aU.space(.2),Ae.aU.space(.2),Ae.aU.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const jS=_S;const TS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ue.jsx)(jS,{isFramed:n,isOpen:r,children:(0,Ue.jsx)("div",{children:t})})};var AS;const IS=Te.cp.div.withConfig({displayName:"StyledPanelGroup"})(AS||(AS=(0,_e.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),Ae.aU.space(0),kS,Ae.aU.space(-1));function RS(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 MS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const NS=function(e){return(0,Ue.jsx)(IS,{children:(0,Ue.jsx)(oS,MS({},e))})};var FS,LS,HS,US="1px",WS=Te.cp.div.withConfig({displayName:"StyledPanelHeader"})(FS||(FS=(0,_e.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),Ae.Il.color("paper"),Ae.Il.radii("form"),US,Ae.Il.radii("form"),US,(function(e){return e.isFramed?Ae.aU.space(.2):0}),Ae.Il.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(US,";\n }\n ")}(e)})),BS=Te.cp.span.withConfig({displayName:"StyledIconWrapper"})(LS||(LS=(0,_e.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),Ae.aU.font(1),Ae.Il.color("text"),!Ae.iY&&(0,Te.gV)(HS||(HS=(0,_e.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),Ae.Il.color("secondaryLight")));const zS=WS;var VS=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,s=e.options;return(0,Ue.jsxs)(zS,{isFramed:n,isOpen:r,onClick:o?a:function(){},children:[(0,Ue.jsx)("div",{children:w().Children.map(t,(function(e){return w().cloneElement(e)}))}),o&&i&&(0,Ue.jsx)(BS,{children:(0,Ue.jsx)(He.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};VS.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const YS={Body:TS,Group:NS,Header:VS,Wrapper:DS};var qS={Body:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Body),ux.c.EmbedType.widget,YS.Body),Group:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Group),ux.c.EmbedType.widget,YS.Group),Header:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Header),ux.c.EmbedType.widget,YS.Header),Wrapper:(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,OS.Wrapper),ux.c.EmbedType.widget,YS.Wrapper)};const GS={Body:ux.c.embedStrategyFactory({mapping:qS.Body}),Group:ux.c.embedStrategyFactory({mapping:qS.Group}),Header:ux.c.embedStrategyFactory({mapping:qS.Header}),Wrapper:ux.c.embedStrategyFactory({mapping:qS.Wrapper})};var QS;Te.cp.div.withConfig({displayName:"StyledButtonWrapper"})(QS||(QS=(0,_e.c)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),Ae.aU.space(0),Ae.Il.color("paper"));c(18284);var KS=new AbortController,XS=!1;window.addEventListener("beforeunload",(function(e){XS?(e.preventDefault(),e.returnValue=""):KS.abort()})),window.addEventListener("pagehide",(function(){KS.signal.aborted||KS.abort()}));var $S=function(e){return"@@redux-saga/"+e},ZS=$S("CANCEL_PROMISE"),JS=$S("CHANNEL_END"),eE=$S("IO"),tE=$S("MATCH"),nE=$S("MULTICAST"),rE=$S("SAGA_ACTION"),oE=$S("SELF_CANCELLATION"),iE=$S("TASK"),aE=$S("TASK_CANCEL"),sE=$S("TERMINATE"),cE=$S("LOCATION");function uE(){return 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},uE.apply(this,arguments)}var lE=function(e){return null==e},dE=function(e){return null!=e},fE=function(e){return"function"==typeof e},pE=function(e){return"string"==typeof e},hE=Array.isArray,mE=function(e){return e&&fE(e.then)},gE=function(e){return e&&fE(e.next)&&fE(e.throw)},vE=function e(t){return t&&(pE(t)||wE(t)||fE(t)||hE(t)&&t.every(e))},yE=function(e){return e&&fE(e.take)&&fE(e.close)},bE=function(e){return fE(e)&&e.hasOwnProperty("toString")},wE=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},xE=function(e){return yE(e)&&e[nE]};const OE=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[ZS]=function(){clearTimeout(n)},r};var SE=function(e){return function(){return e}},EE=SE(!0),kE=function(){};var DE=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var CE=function(e,t){uE(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function PE(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function _E(e){var t=!1;return function(){t||(t=!0,e())}}var jE=function(e){throw e},TE=function(e){return{value:e,done:!0}};function AE(e,t,n){void 0===t&&(t=jE),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:TE,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function IE(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var RE=function(e){return Array.apply(null,new Array(e))},ME=function(e){return function(t){return e(Object.defineProperty(t,rE,{value:!0}))}},NE=function(e){return e===sE},FE=function(e){return e===aE},LE=function(e){return NE(e)||FE(e)};function HE(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=hE(e)?RE(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||LE(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=kE,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function UE(e){return{name:e.name||"anonymous",location:WE(e)}}function WE(e){return e[cE]}function BE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var zE={isEmpty:EE,put:kE,take:kE};function VE(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var YE=function(){return zE},qE=function(e){return VE(e,4)},GE="TAKE",QE="PUT",KE="ALL",XE="RACE",$E="CALL",ZE="CPS",JE="FORK",ek="JOIN",tk="CANCEL",nk="SELECT",rk="ACTION_CHANNEL",ok="CANCELLED",ik="FLUSH",ak="GET_CONTEXT",sk="SET_CONTEXT",ck=function(e,t){var n;return(n={})[eE]=!0,n.combinator=!1,n.type=e,n.payload=t,n},uk=function(e){return ck(JE,uE({},e.payload,{detached:!0}))};function lk(e,t){return void 0===e&&(e="*"),vE(e)?(dE(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),ck(GE,{pattern:e})):xE(e)&&dE(t)&&vE(t)?ck(GE,{channel:e,pattern:t}):yE(e)?(dE(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),ck(GE,{channel:e})):void 0}function dk(e,t){return lE(t)&&(t=e,e=void 0),ck(QE,{channel:e,action:t})}function fk(e){var t=ck(KE,e);return t.combinator=!0,t}function pk(e,t){var n,r=null;return fE(e)?n=e:(hE(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&pE(n)&&fE(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function hk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck($E,pk(e,n))}function mk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck(JE,pk(e,n))}function gk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return uk(mk.apply(void 0,[e].concat(n)))}function vk(e){void 0===e&&(e=DE);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ck(nk,{selector:e,args:n})}var yk=hk.bind(null,OE),bk=function(e){return{done:!0,value:e}},wk={};function xk(e){return yE(e)?"channel":bE(e)?String(e):fE(e)?e.name:String(e)}function Ok(e,t,n){var r,o,i,a=t;function s(t,n){if(a===wk)return bk(t);if(n&&!o)throw a=wk,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===wk?bk(t):i}return AE(s,(function(e){return s(null,e)}),n)}function Sk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:lk(e)},s=function(e){return i=e};return Ok({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:mk.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+xk(e)+", "+t.name+")")}function Ek(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:lk(e)},c=function(e){return{done:!1,value:mk.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=oE),ck(tk,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return Ok({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+xk(e)+", "+t.name+")")}function kk(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a,s,c,u,l={done:!1,value:lk(t)},d={done:!1,value:(c={action:lk(t),debounce:yk(e)},u=ck(XE,c),u.combinator=!0,u)},f=function(e){return a=e},p=function(e){return s=e};return Ok({q1:function(){return{nextState:"q2",effect:l,stateUpdater:f}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:p}},q3:function(){return s.debounce?{nextState:"q1",effect:(t=a,{done:!1,value:mk.apply(void 0,[n].concat(o,[t]))})}:{nextState:"q2",effect:(e=s.action,{done:!1,value:e}),stateUpdater:f};var e,t}},"q1","debounce("+xk(t)+", "+n.name+")")}function Dk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return mk.apply(void 0,[Sk,e,t].concat(r))}function Ck(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return mk.apply(void 0,[Ek,e,t].concat(r))}function Pk(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return mk.apply(void 0,[kk,e,t,n].concat(o))}var _k=function(e,t,n){return d().mark((function r(){var o,i,a,s=arguments;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),a=0;a<o;a++)i[a]=s[a];case 1:return r.prev=2,r.next=5,hk.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==KS.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,dk(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:m.c.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const jk={autoRestartSaga:_k,createGenerator:function(e){return d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fk(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(_k(t,null,n)))},abortController:KS,deactivatePreventFromLeaving:function(){XS=!1},activatePreventFromLeaving:function(){XS=!0}};Pe().node,Pe().bool,Pe().string,Pe().bool,Pe().objectOf(Pe().arrayOf(Pe().oneOfType([Pe().node,Pe().string]))),Pe().bool,Pe().bool,Pe().string,Pe().string,Pe().oneOf(["inside","outside-responsive","outside"]),Pe().bool,Pe().string,Pe().bool,Pe().string,Pe().bool;var Tk,Ak,Ik,Rk=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.BASE,Ae.Il.color("text")),Ae.Wn.condition.DANGER,Ae.Il.color("signal.danger")),Ae.Wn.condition.SUCCESS,Ae.Il.color("signal.success")),Ae.Wn.condition.WARNING,Ae.Il.color("signal.warning")),Ae.Wn.condition.INFO,Ae.Il.color("signal.info")),Mk=(0,Te.cp)(Vn.KM).withConfig({displayName:"StyledSignalList"})(Tk||(Tk=(0,_e.c)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Nk=Te.cp.span.withConfig({displayName:"StyledSignalListIcon"})(Ak||(Ak=(0,_e.c)(["\n margin-left: -1px;\n margin-right: ",";\n"])),Ae.aU.space(-2)),Fk=(0,Te.cp)(Vn.cP).withConfig({displayName:"StyledSignalListItem"})(Ik||(Ik=(0,_e.c)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return Rk[t]}(e)}));const Lk=function(e){return(0,Ue.jsx)(Mk,{as:"ul",children:w().Children.map(e.children,(function(e){return w().cloneElement(e)}))})};var Hk,Uk=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.BASE,!1),Ae.Wn.condition.DANGER,"times"),Ae.Wn.condition.SUCCESS,"check"),Ae.Wn.condition.WARNING,"exclamation-triangle"),Ae.Wn.condition.INFO,"info"),Wk=function(e){var t=Uk[e.condition];return t?(0,Ue.jsx)(He.c,{icon:t,position:Ae.Wn.position.SOLE,hasFixedWidth:!1}):Hk||(Hk=(0,Ue.jsx)("i",{children:"•"}))},Bk=function(e){return(0,Ue.jsxs)(Fk,{condition:e.condition,children:[(0,Ue.jsx)(Nk,{children:Wk(e)}),e.label,w().Children.map(e.children,(function(e){return w().cloneElement(e)}))]})};Bk.defaultProps={condition:Ae.Wn.condition.BASE};const zk={List:Lk,Item:Bk};const Vk=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,Tt.c)(e.error[n]))})),(0,Ue.jsx)(zk.List,{children:t.map((function(e,t){return(0,Ue.jsx)(zk.Item,{condition:"danger",label:e},t)}))})};var Yk,qk,Gk,Qk,Kk,Xk,$k,Zk,Jk,eD,tD,nD,rD,oD,iD="1.1px",aD=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},sD=Te.cp.label.withConfig({displayName:"StyledStatedValueLabel"})(Yk||(Yk=(0,_e.c)(["\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,Ae.Gj)({lineHeight:Ae.Il.lineHeight("dense")}),Ae.Il.color("paper"),(function(e){return aD(e)}),(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(qk||(qk=(0,_e.c)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),Ae.aU.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(Gk||(Gk=(0,_e.c)(["\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 "])),Ae.aU.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":Ae.aU.space(-1.8)}))}),(function(e){return e.styles})),cD=Te.cp.div.withConfig({displayName:"StyledInputArea"})(Qk||(Qk=(0,_e.c)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(Kk||(Kk=(0,_e.c)(["\n width: auto;\n "])))})),uD=Te.cp.div.withConfig({displayName:"StyledStatedValueBox"})(Xk||(Xk=(0,_e.c)(["\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 > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),iD,(function(e){return Ae.mA[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Ae.Il.radii("form"),Ae.aU.space(-2.5),Ae.aU.space(-1.5),(function(e){return!e.immutable&&(0,Ae.i)(e)}),(function(e){return aD(e)}),(0,Ae.Gj)(),Hm,(function(e){return"inside"===e.labelPosition&&(0,Te.gV)($k||($k=(0,_e.c)(["\n padding: "," "," "," ",";\n "])),Ae.aU.space(-1),Ae.aU.space(-1.7),Ae.aU.space(-2),Ae.aU.space(-1))}),(function(e){return e.styles})),lD=Te.cp.p.withConfig({displayName:"StyledStatedValueDescription"})(Zk||(Zk=(0,_e.c)(["\n &&& {\n ","\n }\n"])),(0,Ae.Gj)({fontSize:Ae.aU.font(-1)})),dD=Te.cp.div.withConfig({displayName:"StyledStatedValueError"})(Jk||(Jk=(0,_e.c)([""]))),fD=Te.cp.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(eD||(eD=(0,_e.c)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),Ae.aU.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(tD||(tD=(0,_e.c)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),Ae.aU.space(-1.5))})),pD=Te.cp.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(nD||(nD=(0,_e.c)(["\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 }\n"])),Ae.aU.space(-1.5),uD,lD,dD,Ae.aU.space(-2),lD,Ae.aU.space(-1),iD,(function(e){return"outside"===e.labelPosition&&(0,Te.gV)(rD||(rD=(0,_e.c)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Te.gV)(oD||(oD=(0,_e.c)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function hD(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 mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gD=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(ag(d)).concat(w),O=g||function(e,t,n,r){return t?Ae.Wn.condition.DANGER:e?Ae.Wn.condition.INFO:n&&!r?Ae.Wn.condition.WARNING:void 0}(a,b,f,u),S={__html:"".concat(zn.sanitizeHtml(d)).concat(f?" *":"")},E=!s&&!h&&{htmlFor:l};return(0,Ue.jsx)(Rr,{children:function(e){var l=e.getRef;return(0,Ue.jsx)(fD,{labelPosition:v,children:(0,Ue.jsxs)(pD,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ue.jsx)(sD,mD(mD({},E),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ue.jsx)("span",{dangerouslySetInnerHTML:S}))})),(0,Ue.jsxs)(cD,{labelPosition:v,children:[(0,Ue.jsx)(uD,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ue.jsx)(dD,{children:(0,Ue.jsx)(Vk,{error:c})}))),i&&(r||(r=(0,Ue.jsx)(lD,{children:i})))]})]})})}})};var vD,yD,bD=function(e){return(0,Te.gV)(vD||(vD=(0,_e.c)(["\n color: ",";\n font-weight: ",";\n"])),Ae.Ml[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?Ae.Il.fontWeight("bold"):Ae.Il.fontWeight("regular")}))},wD=function(){return(0,Te.gV)(yD||(yD=(0,_e.c)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},xD=["labelPosition"];function OD(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 SD=function(e){var t=e.labelPosition,n=(0,Le.c)(e,xD);return(0,Ue.jsx)(gD,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:bD,valueStyles:wD},labelPosition:t||"outside-responsive"},n))};var ED,kD,DD,CD,PD,_D,jD=function(e){return e.signal?"signal":"shade2"},TD=function(){return(0,Te.gV)(ED||(ED=(0,_e.c)(["\n align-items: flex-start;\n"])))},AD=function(e){return(0,Te.gV)(kD||(kD=(0,_e.c)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Te.gV)(DD||(DD=(0,_e.c)(["\n ","\n "])),Ae.aU.space(-1.8)):(0,Te.gV)(CD||(CD=(0,_e.c)(["\n ","\n "])),Ae.aU.space(.1))}),Ae.Ml[jD(e)](e))},ID=function(){return(0,Te.gV)(PD||(PD=(0,_e.c)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Te.gV)(_D||(_D=(0,_e.c)(["\n ","\n "])),Ae.aU.space(-1)):void 0}),(function(e){return e.immutable&&0}))},RD=["labelPosition"];function MD(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 ND=function(e){var t=e.labelPosition,n=(0,Le.c)(e,RD);return(0,Ue.jsx)(gD,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MD(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:TD,labelStyles:AD,valueStyles:ID},labelPosition:t||"outside-responsive"},n))};var FD=(0,Fe.c)((0,Fe.c)({},ux.c.EmbedType.admin,SD),ux.c.EmbedType.widget,ND);const LD=ux.c.embedStrategyFactory({mapping:FD});var HD,UD,WD,BD,zD=Te.cp.span.withConfig({displayName:"StyledSearchIconWrapper"})(HD||(HD=(0,_e.c)(["\n margin-right: ",";\n color: ",";\n"])),Ae.aU.space(-.8),Ae.Il.color("text")),VD=Te.cp.div.withConfig({displayName:"StyledSearchBox"})(UD||(UD=(0,_e.c)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),YD=Te.cp.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(WD||(WD=(0,_e.c)(["\n &&&& {\n ","\n }\n"])),Gr),qD=w().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,i=e.placeholder,a=(0,b.useState)(n||""),s=(0,Ye.c)(a,2),c=s[0],u=s[1];return(0,Ue.jsx)(VD,{children:(0,Ue.jsx)(LD,{hasValue:Boolean(c),labelPosition:"inside",children:(0,Ue.jsxs)(qr,{children:[BD||(BD=(0,Ue.jsx)(zD,{children:(0,Ue.jsx)(He.c,{icon:"search"})})),(0,Ue.jsx)(YD,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;u(t),(0===t.length||t.length>=r)&&o(t)},value:c,"aria-label":i,placeholder:i}),(null==c?void 0:c.length)>0&&(0,Ue.jsx)(Dt,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));qD.defaultProps={debounce:200,minInputLength:3};const GD=Je.Debouncer(qD,100,"onSearch");var QD,KD=[Ae.Wn.condition.INFO,Ae.Wn.condition.DANGER,Ae.Wn.condition.SUCCESS,Ae.Wn.condition.WARNING],XD=(0,Fe.c)((0,Fe.c)((0,Fe.c)((0,Fe.c)({},Ae.Wn.condition.DANGER,Ae.Il.color("signal.danger")),Ae.Wn.condition.SUCCESS,Ae.Il.color("signal.success")),Ae.Wn.condition.WARNING,Ae.Il.color("signal.warning")),Ae.Wn.condition.INFO,Ae.Il.color("signal.info")),$D=Te.cp.div.withConfig({displayName:"StyledSignalBox"})(QD||(QD=(0,_e.c)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: #fff;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return XD[e.condition]||XD[Ae.Wn.condition.INFO]}(e)}),Ae.aU.space(-1),Ae.aU.space(-1));$D.propTypes={condition:Ae.Wn.oneOfPropTypeAndCompletelyMapped(KD,XD)};var ZD=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,Ue.jsxs)($D,{condition:t,children:[n&&(0,Ue.jsx)(Vn.cp.H5,{children:n}),w().Children.map(r,(function(e){return w().cloneElement(e)})),o&&(0,Ue.jsx)(Vn.cp.Small,{children:o})]})};ZD.defaultProps={condition:Ae.Wn.condition.BASE};var JD=function(e){return(0,Ue.jsxs)(Vn.cp.Span,{children:[e.some," / ",e.of]})};JD.defaultProps={some:0};function eC(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 tC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nC={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},rC={Left:"Left",Right:"Right"},oC={Top:"Top",Bottom:"Bottom"},iC=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?rC.Right:rC.Left,vertical:o?oC.Bottom:oC.Top}};const aC=function(e){var t=(0,b.useState)(nC),n=(0,Ye.c)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,b.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return tC(tC({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(nC),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!eg()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=iC(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return tC(tC({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&eg()(a,t)){var n=iC(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return tC(tC({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(nC),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,b.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},sC=rC;var cC,uC,lC,dC,fC,pC,hC,mC=Te.cp.div.withConfig({displayName:"StyledColumnPickerWrapper"})(cC||(cC=(0,_e.c)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),gC=Te.cp.div.withConfig({displayName:"StyledControlsWrapper"})(uC||(uC=(0,_e.c)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),Ae.aU.space(.7)),vC=Te.cp.ul.withConfig({displayName:"StyledUl"})(lC||(lC=(0,_e.c)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\n margin-left: 3px; // make room for drop indicator when it appears on the left-most side\n padding-left: 0 !important; // Nice2 Reset\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; // Nice2 Reset\n }\n"])),Ae.aU.space(-.5),Vn.wn),yC=Te.cp.input.withConfig({displayName:"StyledCheckbox"})(dC||(dC=(0,_e.c)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),Ae.aU.space(-1)),bC=Te.cp.span.withConfig({displayName:"StyledId"})(fC||(fC=(0,_e.c)(["\n color: ",";\n font-style: italic;\n"])),Ae.Il.color("text")),wC=(0,Te.cp)(Vn.cP).withConfig({displayName:"StyledItem"})(pC||(pC=(0,_e.c)(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n // when border appears, the content moves over by the width of the border, so we move the content back the same width\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),Ae.aU.space(-2),Ae.aU.space(-2),Ae.aU.space(-2),(function(e){return e.dropPosition===sC.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===sC.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===sC.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),xC=Te.cp.span.withConfig({displayName:"StyledNumber"})(hC||(hC=(0,_e.c)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),Ae.aU.space(-1),Ae.Il.color("text"),Ae.aU.font(0));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}function SC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var EC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},kC=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const DC=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=EC(r),s=(0,b.useState)(null),c=(0,Ye.c)(s,2),u=c[0],l=c[1],d=(0,b.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===sC.Left)return[].concat((0,Tt.c)(e),[o,t]);if(a===sC.Right)return[].concat((0,Tt.c)(e),[t,o])}return[].concat((0,Tt.c)(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=aC(d),p=f.dndEvents,h=f.dndState,m=(0,b.useMemo)((function(){return kC(a,u)}),[a,u]),g=m.some((function(e){return e.hidden})),v=(0,b.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,Ue.jsxs)(wC,SC(SC({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&SC({},p(e.id))),{},{children:[(0,Ue.jsx)(yC,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return EC(n.map((function(n){return n.id===e.id?SC(SC({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ue.jsxs)(Vn.cp.Label,{for:e.id,children:[(0,Ue.jsxs)(xC,{children:[n+1,"."]}),e.label?(0,Ue.jsx)("span",{dangerouslySetInnerHTML:{__html:zn.sanitizeHtml(e.label)}}):(0,Ue.jsx)(bC,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,Ue.jsxs)(mC,{children:[(0,Ue.jsx)(GD,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ue.jsxs)(gC,{children:[(0,Ue.jsx)(yC,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=kC(e,u);return EC((0,Tt.c)(e.map((function(e){return SC(SC({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,Ue.jsx)(Vn.cp.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ue.jsx)(vC,{children:v})]})},CC=(0,y.injectIntl)(DC);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 _C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jC="yyyy-MM-dd",TC=function(e){return Uf(e,jC)?Hf(e,jC,new Date):Uf(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||Uf(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?Qu(new Date(e)):null},AC={datetime:{type:"date",toRange:function(e){return{from:e?TC(e).toISOString():null,to:e?Vu(TC(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?$l(new Date(e.from),jC):null!=e&&e.to?$l(new Date(e.to),jC):null},getToOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return _C(_C({},e),{},{datePickerOptions:_C({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const IC=AC;var RC,MC,NC,FC,LC,HC=Te.cp.div.withConfig({displayName:"StyledIconWrapper"})(RC||(RC=(0,_e.c)(["\n font-size: ",";\n color: ",";\n"])),Ae.aU.font(-2.7),Ae.Il.color("text")),UC=Te.cp.div.withConfig({displayName:"StyledRange"})(MC||(MC=(0,_e.c)(["\n display: flex;\n align-items: baseline;\n"]))),WC=Te.cp.div.withConfig({displayName:"StyledInput"})(NC||(NC=(0,_e.c)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),BC=(0,Te.cp)(Dt).withConfig({displayName:"StyledBall"})(FC||(FC=(0,_e.c)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function zC(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 n=null!=arguments[t]?arguments[t]:{};t%2?zC(Object(n),!0).forEach((function(t){(0,Fe.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const YC=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,s=e.toText,c=IC[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,b.useRef)(t);l.current=t;var d=(0,b.useMemo)((function(){return VC(VC({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(VC(VC({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(VC(VC({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,Ue.jsx)(Wx,VC(VC({type:h},Sr()(e,["type"])),{},{events:d})),g=(0,Ue.jsxs)(WC,{children:[(0,Ue.jsx)(Wx,VC(VC({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:a})),LC||(LC=(0,Ue.jsx)(HC,{children:(0,Ue.jsx)(He.c,{icon:"horizontal-rule"})})),(0,Ue.jsx)(Wx,VC(VC({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,Ue.jsxs)(UC,{children:[u?g:m,(0,Ue.jsx)(BC,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var qC,GC,QC,KC,XC,$C=Te.cp.div.withConfig({displayName:"StyledBurgerButton"})(qC||(qC=(0,_e.c)(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),Ae.Il.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Te.gV)(GC||(GC=(0,_e.c)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,y.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,Ue.jsxs)($C,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[QC||(QC=(0,Ue.jsx)("span",{})),KC||(KC=(0,Ue.jsx)("span",{})),XC||(XC=(0,Ue.jsx)("span",{}))]})}));var ZC,JC,eP=Te.cp.div.withConfig({displayName:"StyledPagination"})(ZC||(ZC=(0,_e.c)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),Ae.aU.space(-1),Ae.aU.space(-1.4)),tP=(0,Te.cp)(yt).withConfig({displayName:"StyledPaginationButton"})(JC||(JC=(0,_e.c)(["\n padding: "," ",";\n"])),Ae.aU.space(-2),Ae.aU.space(-.5));const nP=(0,y.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,Ue.jsxs)(eP,{children:[(0,Ue.jsxs)(xr,{children:[(0,Ue.jsx)(tP,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,Ue.jsx)(tP,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,Ue.jsx)(tP,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,Ue.jsx)(tP,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,Ue.jsx)(Vn.cp.Span,{children:(0,Ue.jsx)(y.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),rP=nP;var oP;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(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 a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-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)}}i(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,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}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);i(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;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,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)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,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],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}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 i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(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,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*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 i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(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 i(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 i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(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 i(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 a=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 a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.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 a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.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*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.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 a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.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 s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(oP||(oP={})),(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={}))})(oP||(oP={})),(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={}))})(oP||(oP={}));var iP=oP;
|
|
45
45
|
/**
|
|
46
46
|
* @license qrcode.react
|
|
47
47
|
* Copyright (c) Paul O'Shannessy
|