tocco-devcon 3.11.4 → 3.11.5
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* tabbable 6.2.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
5
|
*/
|
|
6
|
-
var qe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ge=qe.join(","),Ke="undefined"==typeof Element,$e=Ke?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qe=!Ke&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Xe=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Ze=function(e,t,n){if(Xe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ge));return t&&$e.call(e,Ge)&&r.unshift(e),r=r.filter(n)},Je=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Xe(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),c=e(s.length?s:i.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{$e.call(i,Ge)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var u=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),l=!Xe(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(u&&l){var d=e(!0===u?i.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},et=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},tt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!et(e)?0:e.tabIndex},nt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rt=function(e){return"INPUT"===e.tagName},ot=function(e){return function(e){return rt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Qe(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},at=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},it=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=$e.call(e,"details>summary:first-of-type")?e.parentElement:e;if($e.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return at(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,s=Qe(e);if(i&&!i.shadowRoot&&!0===r(i))return at(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&Qe(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var c,u,l;s=!(null===(u=i=null===(c=a=Qe(i))||void 0===c?void 0:c.host)||void 0===u||null===(l=u.ownerDocument)||void 0===l||!l.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},st=function(e,t){return!(t.disabled||Xe(t)||function(e){return rt(e)&&"hidden"===e.type}(t)||it(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!$e.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ct=function(e,t){return!(ot(t)||tt(t)<0||!st(e,t))},ut=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},lt=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=function(e,t){var n=tt(e);return n<0&&t&&!et(e)?0:n}(i,a),c=a?e(t.candidates):i;0===s?a?n.push.apply(n,c):n.push(i):r.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:c})})),r.sort(nt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},dt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Je([e],t.includeContainer,{filter:ct.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ut}):Ze(e,t.includeContainer,ct.bind(null,t)),lt(n)};function ft(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const pt=r["useInsertionEffect".toString()]||(e=>e());function ht(e){const t=r.useRef((()=>{0}));return pt((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const mt="ArrowUp",gt="ArrowDown",yt="ArrowLeft",vt="ArrowRight";function bt(e,t,n){return Math.floor(e/t)!==n}function wt(e,t){return t<0||t>=e.current.length}function Ot(e,t){return kt(e,{disabledIndices:t})}function xt(e,t){return kt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function kt(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current,s=o?e=>o.includes(e):e=>{const t=i[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let c=n;do{c+=r?-a:a}while(c>=0&&c<=i.length-1&&s(c));return c}function St(e,t){let{event:n,orientation:r,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:c,prevIndex:u,stopEvent:l=!1}=t,d=u;if(n.key===mt){if(l&&L(n),-1===u)d=c;else if(d=kt(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),o&&(u-a<s||d<0)){const e=u%a,t=c%a,n=c-(t-e);d=t===e?c:t>e?n:n-a}wt(e,d)&&(d=u)}if(n.key===gt&&(l&&L(n),-1===u?d=s:(d=kt(e,{startingIndex:u,amount:a,disabledIndices:i}),o&&u+a>c&&(d=kt(e,{startingIndex:u%a-a,amount:a,disabledIndices:i}))),wt(e,d)&&(d=u)),"both"===r){const t=V(u/a);n.key===vt&&(l&&L(n),u%a!=a-1?(d=kt(e,{startingIndex:u,disabledIndices:i}),o&&bt(d,a,t)&&(d=kt(e,{startingIndex:u-u%a-1,disabledIndices:i}))):o&&(d=kt(e,{startingIndex:u-u%a-1,disabledIndices:i})),bt(d,a,t)&&(d=u)),n.key===yt&&(l&&L(n),u%a!=0?(d=kt(e,{startingIndex:u,disabledIndices:i,decrement:!0}),o&&bt(d,a,t)&&(d=kt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i}))):o&&(d=kt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i})),bt(d,a,t)&&(d=u));const r=V(c/a)===t;wt(e,d)&&(d=o&&r?n.key===yt?c:kt(e,{startingIndex:u-u%a-1,disabledIndices:i}):u)}return d}function Pt(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,c=!1;for(n&&(o=0);!c;){const e=[];for(let n=0;n<i;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+i<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=a})),c=!0):o++}})),[...r]}function Et(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e);switch(o){case"tl":return a;case"tr":return a+t[e].width-1;case"bl":return a+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}function Dt(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}let _t=0;function jt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(_t);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():_t=requestAnimationFrame(a)}var At="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Ct(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Tt=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Mt(e){let{children:t,elementsRef:n,labelsRef:o}=e;const[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),c=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return At((()=>{const e=new Map(a);Array.from(e.keys()).sort(Ct).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(Tt.Provider,{value:r.useMemo((()=>({register:s,unregister:c,map:a,elementsRef:n,labelsRef:o})),[s,c,a,n,o])},t)}function It(e){let{label:t}=void 0===e?{}:e;const[n,o]=r.useState(null),a=r.useRef(null),{register:i,unregister:s,map:c,elementsRef:u,labelsRef:l}=r.useContext(Tt),d=r.useCallback((e=>{if(a.current=e,null!==n&&(u.current[n]=e,l)){var r;const o=void 0!==t;l.current[n]=o?t:null!=(r=null==e?void 0:e.textContent)?r:null}}),[n,u,l,t]);return At((()=>{const e=a.current;if(e)return i(e),()=>{s(e)}}),[i,s]),At((()=>{const e=a.current?c.get(a.current):null;null!=e&&o(e)}),[c]),r.useMemo((()=>({ref:d,index:null==n?-1:n})),[n,d])}function Nt(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const Rt=r.createContext({activeIndex:0,onNavigate:()=>{}}),Lt=[yt,vt],Ft=[mt,gt],Ht=[...Lt,...Ft],Wt=r.forwardRef((function(e,t){let{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s=[],activeIndex:c,onNavigate:u,itemSizes:l,dense:d=!1,...f}=e;const[p,h]=r.useState(0),m=null!=c?c:p,g=ht(null!=u?u:h),y=r.useRef([]),v=n&&"function"!=typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=i>1;const O={...f,...v,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==v.onKeyDown||v.onKeyDown(e),function(e){if(!Ht.includes(e.key))return;let t=m;if(w){const n=l||Array.from({length:y.current.length},(()=>({width:1,height:1}))),r=Pt(n,i,d),c=r.findIndex((e=>null!=e&&!s.includes(e))),u=r.reduce(((e,t,n)=>null==t||null!=s&&s.includes(t)?e:n),-1);t=r[St({current:r.map((e=>e?y.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:Dt([...s,void 0],r),minIndex:c,maxIndex:u,prevIndex:Et(m,n,r,i,e.key===gt?"bl":e.key===vt?"tr":"tl")})]}const n=Ot(y,s),r=xt(y,s),c={horizontal:[vt],vertical:[gt],both:[vt,gt]}[o],u={horizontal:[yt],vertical:[mt],both:[yt,mt]}[o],f=w?Ht:{horizontal:Lt,vertical:Ft,both:Ht}[o];t===m&&[...c,...u].includes(e.key)&&(t=a&&t===r&&c.includes(e.key)?n:a&&t===n&&u.includes(e.key)?r:kt(y,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:s})),t===m||wt(y,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{jt(y.current[t])})))}(e)}};return r.createElement(Rt.Provider,{value:b},r.createElement(Mt,{elementsRef:y},Nt(n,O)))})),Bt=r.forwardRef((function(e,t){let{render:n,...o}=e;const a=n&&"function"!=typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext(Rt),{ref:c,index:u}=It(),l=ft([c,t,a.ref]),d=i===u;return Nt(n,{...o,...a,ref:l,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(u)}})}));function Yt(){return Yt=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},Yt.apply(this,arguments)}let Ut=!1,zt=0;const Vt=()=>"floating-ui-"+zt++;const qt=r["useId".toString()]||function(){const[e,t]=r.useState((()=>Ut?Vt():void 0));return At((()=>{null==e&&t(Vt())}),[]),r.useEffect((()=>{Ut||(Ut=!0)}),[]),e},Gt=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:f,style:{transform:p,...h}={},...m}=e;const g=qt();if(!o)return null;u*=2;const y=u/2,v=i/2*(c/-8+1),b=s/2*c/4,[w,O]=n.split("-"),x=_e.isRTL(o),k=!!f,S="top"===w||"bottom"===w,P=l&&"end"===O?"bottom":"top";let E=l&&"end"===O?"right":"left";l&&x&&(E="end"===O?"left":"right");const D=null!=(null==a?void 0:a.x)?l||a.x:"",_=null!=(null==a?void 0:a.y)?l||a.y:"",j=f||"M0,0 H"+i+" L"+(i-v)+","+(s-b)+" Q"+i/2+","+s+" "+v+","+(s-b)+" Z",A={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[w];return r.createElement("svg",Yt({},m,{"aria-hidden":!0,ref:t,width:k?i:i+u,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[E]:D,[P]:_,[w]:S||k?"100%":"calc(100% - "+u/2+"px)",transform:""+A+(null!=p?p:""),...h}}),u>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:u+(f?0:1),d:j}),r.createElement("path",{stroke:u&&!f?m.fill:"none",d:j}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-y,y:y*(k?-1:1),width:i+u,height:i})))}));function Kt(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const $t=r.createContext(null),Qt=r.createContext(null),Xt=()=>{var e;return(null==(e=r.useContext($t))?void 0:e.id)||null},Zt=()=>r.useContext(Qt);function Jt(e){const t=qt(),n=Zt(),r=Xt(),o=e||r;return At((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function en(e){let{children:t,id:n}=e;const o=Xt();return r.createElement($t.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function tn(e){let{children:t}=e;const n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>Kt()))[0];return r.createElement(Qt.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function nn(e){return"data-floating-ui-"+e}function rn(e){const t=(0,r.useRef)(e);return At((()=>{t.current=e})),t}const on=nn("safe-polygon");function an(e,t,n){return n&&!C(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function sn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:{domReference:s,floating:u},refs:l}=e,{enabled:d=!0,delay:f=0,handleClose:p=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,y=Zt(),v=Xt(),b=rn(p),w=rn(f),O=r.useRef(),x=r.useRef(),S=r.useRef(),P=r.useRef(),E=r.useRef(!0),D=r.useRef(!1),_=r.useRef((()=>{})),j=r.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);r.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(P.current),E.current=!0)}}),[d,i]),r.useEffect((()=>{if(!d||!b.current||!n)return;function e(e){j()&&o(!1,e,"hover")}const t=T(u).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u,n,o,d,b,j]);const A=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=an(w.current,"close",O.current);r&&!S.current?(clearTimeout(x.current),x.current=setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(x.current),o(!1,e,n))}),[w,o]),M=r.useCallback((()=>{_.current(),S.current=void 0}),[]),I=r.useCallback((()=>{if(D.current){const e=T(l.floating.current).body;e.style.pointerEvents="",e.removeAttribute(on),D.current=!1}}),[l]);return r.useEffect((()=>{if(d&&c(s)){const e=s;return n&&e.addEventListener("mouseleave",l),null==u||u.addEventListener("mouseleave",l),g&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",i),()=>{n&&e.removeEventListener("mouseleave",l),null==u||u.removeEventListener("mouseleave",l),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",i)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(x.current),E.current=!1,h&&!C(O.current)||m>0&&0===an(w.current,"open"))return;const t=an(w.current,"open",O.current);t?x.current=setTimeout((()=>{o(!0,e,"hover")}),t):o(!0,e,"hover")}function i(r){if(t())return;_.current();const o=T(u);if(clearTimeout(P.current),b.current){n||clearTimeout(x.current),S.current=b.current({...e,tree:y,x:r.clientX,y:r.clientY,onClose(){I(),M(),A(r,!0,"safe-polygon")}});const t=S.current;return o.addEventListener("mousemove",t),void(_.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==O.current||!k(u,r.relatedTarget))&&A(r)}function l(n){t()||null==b.current||b.current({...e,tree:y,x:n.clientX,y:n.clientY,onClose(){I(),M(),A(n)}})(n)}}),[s,u,d,e,h,m,g,A,M,I,o,n,y,w,b,a]),At((()=>{var e;if(d&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&j()){const e=T(u).body;if(e.setAttribute(on,""),e.style.pointerEvents="none",D.current=!0,c(s)&&u){var t;const e=s,n=null==y||null==(t=y.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",u.style.pointerEvents="auto",()=>{e.style.pointerEvents="",u.style.pointerEvents=""}}}}),[d,n,v,u,s,y,b,j]),At((()=>{n||(O.current=void 0,M(),I())}),[n,M,I]),r.useEffect((()=>()=>{M(),clearTimeout(x.current),clearTimeout(P.current),I()}),[d,s,M,I]),r.useMemo((()=>{if(!d)return{};function e(e){O.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===m||(clearTimeout(P.current),P.current=setTimeout((()=>{E.current||o(!0,e.nativeEvent,"hover")}),m))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}}}),[d,m,n,o,A])}const cn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),un=()=>r.useContext(cn),ln=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),c=r.useCallback((e=>{i({currentId:e})}),[]);return At((()=>{a.currentId?null===s.current?s.current=a.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),s.current=null)}),[a.currentId]),r.createElement(cn.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:c})),[a,c])},t)},dn=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:s,setState:c,timeoutMs:u}=un();At((()=>{a&&(c({delay:{open:1,close:an(s,"close")}}),a!==o&&r(!1))}),[o,r,c,a,s]),At((()=>{function e(){r(!1),c({delay:s,currentId:null})}if(!n&&a===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,c,a,o,r,s,u]),At((()=>{n&&i(o)}),[n,i,o])};function fn(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let pn=new WeakMap,hn=new WeakSet,mn={},gn=0;const yn=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,vn=e=>e&&(e.host||vn(e.parentNode)),bn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=vn(t);return e.contains(n)?n:null})).filter((e=>null!=e));function wn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=T(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,i=bn(t,e),s=new Set,c=new Set(i),u=[];mn[o]||(mn[o]=new WeakMap);const l=mn[o];return i.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(s.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(pn.get(t)||0)+1,i=(l.get(t)||0)+1;pn.set(t,r),l.set(t,i),u.push(t),1===r&&n&&hn.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),s.clear(),gn++,()=>{u.forEach((e=>{const t=(pn.get(e)||0)-1,n=(l.get(e)||0)-1;pn.set(e,t),l.set(e,n),t||(!hn.has(e)&&a&&e.removeAttribute(a),hn.delete(e)),n||e.removeAttribute(o)})),gn--,gn||(pn=new WeakMap,pn=new WeakMap,hn=new WeakSet,mn={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const On=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xn(e,t){const n=dt(e,On());"prev"===t&&n.reverse();const r=n.indexOf(x(T(e)));return n.slice(r+1)[0]}function kn(){return xn(document.body,"next")}function Sn(){return xn(document.body,"prev")}function Pn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!k(n,r)}function En(e){dt(e,On()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Dn(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const _n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function jn(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const An=r.forwardRef((function(e,t){const[n,o]=r.useState();At((()=>(_()&&o("button"),document.addEventListener("keydown",jn),()=>{document.removeEventListener("keydown",jn)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nn("focus-guard")]:"",style:_n};return r.createElement("span",Yt({},e,a))})),Cn=r.createContext(null),Tn=nn("portal");function Mn(e){let{id:t,root:n}=void 0===e?{}:e;const[o,a]=r.useState(null),i=qt(),s=Nn(),u=r.useRef(null);return At((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{u.current=null}))}),[o]),At((()=>{if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Tn,""),e.appendChild(n),u.current=n,a(n)}),[t,i]),At((()=>{if(u.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const o=document.createElement("div");o.id=i,o.setAttribute(Tn,""),e=r||e,e.appendChild(o),u.current=o,a(o)}),[t,n,i,s]),o}function In(e){let{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e;const i=Mn({id:n,root:o}),[s,c]=r.useState(null),u=r.useRef(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&(null==s||!s.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Pn(e)){("focusin"===e.type?Dn:En)(i)}}}),[i,a,null==s?void 0:s.modal]),r.createElement(Cn.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:c})),[a,i])},p&&i&&r.createElement(An,{"data-type":"outside",ref:u,onFocus:e=>{if(Pn(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=Sn()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&r.createElement("span",{"aria-owns":i.id,style:_n}),i&&(0,He.createPortal)(t,i),p&&i&&r.createElement(An,{"data-type":"outside",ref:l,onFocus:e=>{if(Pn(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=kn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const Nn=()=>r.useContext(Cn),Rn=20;let Ln=[];function Fn(e){Ln=Ln.filter((e=>e.isConnected)),e&&"body"!==o(e)&&(Ln.push(e),Ln.length>Rn&&(Ln=Ln.slice(-Rn)))}function Hn(){return Ln.slice().reverse().find((e=>e.isConnected))}const Wn=r.forwardRef((function(e,t){return r.createElement("button",Yt({},e,{type:"button",ref:t,tabIndex:-1,style:_n}))}));function Bn(e){const{context:t,children:n,disabled:o=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:c=!0,modal:l=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:p,refs:h,nodeId:m,onOpenChange:g,events:y,dataRef:v,elements:{domReference:b,floating:w}}=t,O="number"==typeof s&&s<0,S=F(b)&&O,P=!yn()||i,_=rn(a),j=rn(s),A=rn(c),C=Zt(),M=Nn(),N=r.useRef(null),R=r.useRef(null),H=r.useRef(!1),W=r.useRef(!1),B=null!=M,Y=r.useCallback((function(e){return void 0===e&&(e=w),e?dt(e,On()):[]}),[w]),U=r.useCallback((e=>{const t=Y(e);return _.current.map((e=>b&&"reference"===e?b:w&&"floating"===e?w:t)).filter(Boolean).flat()}),[b,w,_,Y]);function z(e){return!o&&d&&l?r.createElement(Wn,{ref:"start"===e?N:R,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}r.useEffect((()=>{if(o||!l)return;function e(e){if("Tab"===e.key){k(w,x(T(w)))&&0===Y().length&&!S&&L(e);const t=U(),n=I(e);"reference"===_.current[0]&&n===b&&(L(e),e.shiftKey?jt(t[t.length-1]):jt(t[1])),"floating"===_.current[1]&&n===w&&e.shiftKey&&(L(e),jt(t[0]))}}const t=T(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,b,w,l,_,S,Y,U]),r.useEffect((()=>{if(!o&&f)return w&&u(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),!l&&w.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),!l&&w.removeEventListener("focusout",t)}):void 0;function e(){W.current=!0,setTimeout((()=>{W.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(k(b,t)||k(w,t)||k(t,w)||k(null==M?void 0:M.portalNode,t)||null!=t&&t.hasAttribute(nn("focus-guard"))||C&&(fn(C.nodesRef.current,m).find((e=>{var n,r;return k(null==(n=e.context)?void 0:n.elements.floating,t)||k(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(C.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!W.current&&t!==Hn()&&(H.current=!0,g(!1,e))}))}}),[o,b,w,l,m,C,M,g,f]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==M||null==(e=M.portalNode)?void 0:e.querySelectorAll("["+nn("portal")+"]"))||[]);if(w){const e=[w,...t,N.current,R.current,_.current.includes("reference")||S?b:null].filter((e=>null!=e)),n=l||S?wn(e,P,!P):wn(e);return()=>{n()}}}),[o,b,w,l,_,M,S,P]),At((()=>{if(o||!w)return;const e=x(T(w));queueMicrotask((()=>{const t=U(w),n=j.current,r=("number"==typeof n?t[n]:n.current)||w,o=k(w,e);O||o||!p||jt(r,{preventScroll:r===w})}))}),[o,p,w,O,U,j]),At((()=>{if(o||!w)return;let e=!1;const t=T(w),n=x(t),r=v.current;function a(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&h.domReference.current&&Fn(h.domReference.current),"hover"===n&&"mouseleave"===r.type&&(H.current=!0),"outside-press"===n&&(o?(H.current=!1,e=!0):H.current=!(E(r)||D(r)))}return Fn(n),y.on("openchange",a),()=>{y.off("openchange",a);const n=x(t),o=k(w,n)||C&&fn(C.nodesRef.current,m).some((e=>{var t;return k(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&h.domReference.current&&Fn(h.domReference.current);const i=Hn();A.current&&!H.current&&u(i)&&(i===n||n===t.body||o)&&jt(i,{cancelPrevious:!1,preventScroll:e})}}),[o,w,A,v,h,y,C,m]),At((()=>{if(!o&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:f,open:p,onOpenChange:g,refs:h}),()=>{M.setFocusManagerState(null)}}),[o,M,l,p,g,h,f]),At((()=>{if(o||!w||"function"!=typeof MutationObserver||O)return;const e=()=>{const e=w.getAttribute("tabindex");_.current.includes("floating")||x(T(w))!==h.domReference.current&&0===Y().length?"0"!==e&&w.setAttribute("tabindex","0"):"-1"!==e&&w.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(w,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,w,h,_,Y,O]);const V=!o&&P&&(B||l);return r.createElement(r.Fragment,null,V&&r.createElement(An,{"data-type":"inside",ref:null==M?void 0:M.beforeInsideRef,onFocus:e=>{if(l){const e=U();jt("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(H.current=!1,Pn(e,M.portalNode)){const e=kn()||b;null==e||e.focus()}else{var t;null==(t=M.beforeOutsideRef.current)||t.focus()}}}),!S&&z("start"),n,z("end"),V&&r.createElement(An,{"data-type":"inside",ref:null==M?void 0:M.afterInsideRef,onFocus:e=>{if(l)jt(U()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(f&&(H.current=!0),Pn(e,M.portalNode)){const e=Sn()||b;null==e||e.focus()}else{var t;null==(t=M.afterOutsideRef.current)||t.focus()}}}))}const Yn=new Set,Un=r.forwardRef((function(e,t){let{lockScroll:n=!1,...o}=e;const a=qt();return At((()=>{if(!n)return;Yn.add(a);const e=/iP(hone|ad|od)|iOS/.test(S()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var c,u;const e=(null==(c=window.visualViewport)?void 0:c.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Yn.delete(a),0===Yn.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}}),[a,n]),r.createElement("div",Yt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function zn(e){return u(e.target)&&"BUTTON"===e.target.tagName}function Vn(e){return R(e)}function qn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0}=t,f=r.useRef(),p=r.useRef(!1);return r.useMemo((()=>s?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(C(f.current,!0)&&l||"click"!==c&&(!n||!u||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===c&&f.current?f.current=void 0:C(f.current,!0)&&l||(!n||!u||a.current.openEvent&&"click"!==a.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||zn(e)||(" "!==e.key||Vn(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||zn(e)||Vn(i)||" "===e.key&&p.current&&(p.current=!1,o(!n||!u,e.nativeEvent,"click"))}}}:{}),[s,a,c,l,d,i,u,n,o])}function Gn(e){return null!=e&&null!=e.clientX}function Kn(e,t){void 0===t&&(t={});const{open:n,refs:o,dataRef:i,elements:{floating:s}}=e,{enabled:c=!0,axis:u="both",x:l=null,y:d=null}=t,f=r.useRef(!1),p=r.useRef(null),[h,m]=r.useState(),[g,y]=r.useState([]),v=ht(((e,t)=>{f.current||i.current.openEvent&&!Gn(i.current.openEvent)||o.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var a,i;const s=(null==(a=e.current)?void 0:a.getBoundingClientRect())||{width:0,height:0,x:0,y:0},c="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,l=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let d=s.width,f=s.height,p=s.x,h=s.y;return null==n&&t.x&&c&&(n=s.x-t.x),null==r&&t.y&&u&&(r=s.y-t.y),p-=n||0,h-=r||0,d=0,f=0,!o||l?(d="y"===t.axis?s.width:0,f="x"===t.axis?s.height:0,p=c&&null!=t.x?t.x:p,h=u&&null!=t.y?t.y:h):o&&!l&&(f="x"===t.axis?s.height:f,d="y"===t.axis?s.width:d),o=!0,{width:d,height:f,x:p,y:h,top:h,right:p+d,bottom:h+f,left:p}}}}(o.domReference,{x:e,y:t,axis:u,dataRef:i,pointerType:h}))})),b=ht((e=>{null==l&&null==d&&(n?p.current||y([]):v(e.clientX,e.clientY))})),w=C(h)?s:n,O=r.useCallback((()=>{if(!w||!c||null!=l||null!=d)return;const e=a(o.floating.current);function t(n){const r=I(n);k(o.floating.current,r)?(e.removeEventListener("mousemove",t),p.current=null):v(n.clientX,n.clientY)}if(!i.current.openEvent||Gn(i.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),p.current=null};return p.current=n,n}o.setPositionReference(o.domReference.current)}),[i,c,w,o,v,l,d]);return r.useEffect((()=>O()),[O,g]),r.useEffect((()=>{c&&!s&&(f.current=!1)}),[c,s]),r.useEffect((()=>{!c&&n&&(f.current=!0)}),[c,n]),At((()=>{!c||null==l&&null==d||(f.current=!1,v(l,d))}),[c,l,d,v]),r.useMemo((()=>{if(!c)return{};function e(e){let{pointerType:t}=e;m(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:b,onMouseEnter:b}}}),[c,b])}const $n={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xn=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Zn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,nodeId:a,elements:{reference:i,domReference:s,floating:l},dataRef:d}=e,{enabled:f=!0,escapeKey:p=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:v=!1,referencePressEvent:w="pointerdown",ancestorScroll:x=!1,bubbles:S,capture:P}=t,E=Zt(),D=ht("function"==typeof h?h:()=>!1),_="function"==typeof h?D:h,j=r.useRef(!1),A=r.useRef(!1),{escapeKey:C,outsidePress:N}=Xn(S),{escapeKey:R,outsidePress:L}=Xn(P),F=ht((e=>{if(!n||!f||!p||"Escape"!==e.key)return;const t=E?fn(E.nodesRef.current,a):[];if(!C&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),H=ht((e=>{var t;const n=()=>{var t;F(e),null==(t=I(e))||t.removeEventListener("keydown",n)};null==(t=I(e))||t.addEventListener("keydown",n)})),W=ht((e=>{const t=j.current;j.current=!1;const n=A.current;if(A.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof _&&!_(e))return;const r=I(e),i="["+nn("inert")+"]",d=T(l).querySelectorAll(i);let f=c(r)?r:null;for(;f&&!g(f);){const e=b(f);if(g(e)||!c(e))break;f=e}if(d.length&&c(r)&&!r.matches("html,body")&&!k(r,l)&&Array.from(d).every((e=>!k(f,e))))return;if(u(r)&&l){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let o=n&&e.offsetX>r.clientWidth;if(n){"rtl"===y(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth)}if(o||t&&e.offsetY>r.clientHeight)return}const p=E&&fn(E.nodesRef.current,a).some((t=>{var n;return M(e,null==(n=t.context)?void 0:n.elements.floating)}));if(M(e,l)||M(e,s)||p)return;const h=E?fn(E.nodesRef.current,a):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),B=ht((e=>{var t;const n=()=>{var t;W(e),null==(t=I(e))||t.removeEventListener(m,n)};null==(t=I(e))||t.addEventListener(m,n)}));return r.useEffect((()=>{if(!n||!f)return;function e(e){o(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=C,d.current.__outsidePressBubbles=N;const t=T(l);p&&t.addEventListener("keydown",R?H:F,R),_&&t.addEventListener(m,L?B:W,L);let r=[];return x&&(c(s)&&(r=O(s)),c(l)&&(r=r.concat(O(l))),!c(i)&&i&&i.contextElement&&(r=r.concat(O(i.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{p&&t.removeEventListener("keydown",R?H:F,R),_&&t.removeEventListener(m,L?B:W,L),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,l,s,i,p,_,m,n,o,x,f,C,N,F,R,H,W,L,B]),r.useEffect((()=>{j.current=!1}),[_,m]),r.useMemo((()=>f?{reference:{onKeyDown:F,[$n[w]]:e=>{v&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[Qn[m]]:()=>{j.current=!0}}}:{}),[f,v,m,w,o,F])}function Jn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:a}=e;const[i,s]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||i,l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);Ye(p,o)||h(o);const[m,g]=r.useState(null),[y,v]=r.useState(null),b=r.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),O=i||m,x=s||y,k=r.useRef(null),S=r.useRef(null),P=r.useRef(d),E=null!=u,D=Ve(u),_=Ve(a),j=r.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),Fe(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Ye(P.current,t)&&(P.current=t,He.flushSync((()=>{f(t)})))}))}),[p,t,n,_]);Be((()=>{!1===l&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const A=r.useRef(!1);Be((()=>(A.current=!0,()=>{A.current=!1})),[]),Be((()=>{if(O&&(k.current=O),x&&(S.current=x),O&&x){if(D.current)return D.current(O,x,j);j()}}),[O,x,j,D,E]);const C=r.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),T=r.useMemo((()=>({reference:O,floating:x})),[O,x]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=ze(T.floating,d.x),r=ze(T.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ue(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,T.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:j,refs:C,elements:T,floatingStyles:M})),[d,j,C,T,M])}(e),d=Zt(),f=null!=Xt(),p=ht(((e,t,n)=>{e&&(m.current.openEvent=t),g.emit("openchange",{open:e,event:t,reason:n,nested:f}),null==o||o(e,t,n)})),h=r.useRef(null),m=r.useRef({}),g=r.useState((()=>Kt()))[0],y=qt(),v=r.useCallback((e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l.refs.setReference(t)}),[l.refs]),b=r.useCallback((e=>{(c(e)||null===e)&&(h.current=e,s(e)),(c(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!c(e))&&l.refs.setReference(e)}),[l.refs]),w=r.useMemo((()=>({...l.refs,setReference:b,setPositionReference:v,domReference:h})),[l.refs,b,v]),O=r.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=r.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:a,floatingId:y,events:g,open:n,onOpenChange:p})),[l,a,y,g,n,p,w,O]);return At((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===a));e&&(e.context=x)})),r.useMemo((()=>({...l,context:x,refs:w,elements:O})),[l,w,O,x])}function er(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:i,refs:s,elements:{domReference:l}}=e,{enabled:d=!0,visibleOnly:f=!0}=t,p=r.useRef(!1),h=r.useRef(),m=r.useRef(!0);return r.useEffect((()=>{if(!d)return;const e=a(l);function t(){!n&&u(l)&&l===x(T(l))&&(p.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[l,n,d]),r.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[i,d]),r.useEffect((()=>()=>{clearTimeout(h.current)}),[]),r.useMemo((()=>d?{reference:{onPointerDown(e){D(e.nativeEvent)||(m.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=I(e.nativeEvent);if(f&&c(t))try{if(_()&&A())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!R(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=c(t)&&t.hasAttribute(nn("focus-guard"))&&"outside"===t.getAttribute("data-type");h.current=window.setTimeout((()=>{const r=x(l?l.ownerDocument:document);(t||r!==l)&&(k(s.floating.current,r)||k(l,r)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[d,f,l,s,o])}const tr="active",nr="selected";function rr(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[tr]:t,[nr]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[tr,nr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function or(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>rr(t,e,"reference")),t),o=r.useCallback((t=>rr(t,e,"floating")),t),a=r.useCallback((t=>rr(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a})),[n,o,a])}let ar=!1;function ir(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function sr(e,t){return ir(t,e===mt||e===gt,e===yt||e===vt)}function cr(e,t,n){return ir(t,e===gt,n?e===yt:e===vt)||"Enter"===e||" "===e||""===e}function ur(e,t,n){return ir(t,n?e===vt:e===yt,e===mt)}function lr(e,t){const{open:n,onOpenChange:o,refs:a,elements:{domReference:i,floating:s}}=e,{listRef:c,activeIndex:l,onNavigate:d=(()=>{}),enabled:f=!0,selectedIndex:p=null,allowEscape:h=!1,loop:m=!1,nested:g=!1,rtl:y=!1,virtual:v=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:O=!0,disabledIndices:S,orientation:P="vertical",cols:j=1,scrollItemIntoView:C=!0,virtualItemRef:M,itemSizes:I,dense:N=!1}=t;const R=Xt(),H=Zt(),W=ht(d),B=r.useRef(b),Y=r.useRef(null!=p?p:-1),U=r.useRef(null),z=r.useRef(!0),V=r.useRef(W),q=r.useRef(!!s),G=r.useRef(!1),K=r.useRef(!1),$=rn(S),Q=rn(n),X=rn(C),[Z,J]=r.useState(),[ee,te]=r.useState(),ne=ht((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(v?(J(r.id),null==H||H.events.emit("virtualfocus",r),M&&(M.current=r)):jt(r,{preventScroll:!0,sync:!(!A()||!_())&&(ar||G.current)}),requestAnimationFrame((()=>{const e=X.current;e&&r&&(n||!z.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));At((()=>{document.createElement("div").focus({get preventScroll(){return ar=!0,!1}})}),[]),At((()=>{f&&(n&&s?B.current&&null!=p&&(K.current=!0,Y.current=p,W(p)):q.current&&(Y.current=-1,V.current(null)))}),[f,n,s,p,W]),At((()=>{if(f&&n&&s)if(null==l){if(G.current=!1,null!=p)return;if(q.current&&(Y.current=-1,ne(c,Y)),!q.current&&B.current&&(null!=U.current||!0===B.current&&null==U.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else Y.current=null==U.current||cr(U.current,P,y)||g?Ot(c,$.current):xt(c,$.current),U.current=null,W(Y.current)};t()}}else wt(c,l)||(Y.current=l,ne(c,Y,K.current),K.current=!1)}),[f,n,s,l,p,g,c,P,y,W,ne,$]),At((()=>{var e;if(!f||s||!H||v||!q.current)return;const t=H.nodesRef.current,n=null==(e=t.find((e=>e.id===R)))||null==(e=e.context)?void 0:e.elements.floating,r=x(T(s)),o=t.some((e=>e.context&&k(e.context.elements.floating,r)));n&&!o&&z.current&&n.focus({preventScroll:!0})}),[f,s,H,R,v]),At((()=>{if(f&&H&&v&&!R)return H.events.on("virtualfocus",e),()=>{H.events.off("virtualfocus",e)};function e(e){te(e.id),M&&(M.current=e)}}),[f,H,v,R,M]),At((()=>{V.current=W,q.current=!!s})),At((()=>{n||(U.current=null)}),[n]);const re=null!=l,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&W(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...w&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;z.current&&"touch"!==t&&(Y.current=-1,ne(c,Y),W(null),v||jt(a.floating.current,{preventScroll:!0}))}}}}),[n,a,ne,w,c,W,v]);return r.useMemo((()=>{if(!f)return{};const e=$.current;function t(t){if(z.current=!1,G.current=!0,!Q.current&&t.currentTarget===a.floating.current)return;if(g&&ur(t.key,P,y))return L(t),o(!1,t.nativeEvent,"list-navigation"),void(u(i)&&!v&&i.focus());const r=Y.current,s=Ot(c,e),l=xt(c,e);if("Home"===t.key&&(L(t),Y.current=s,W(Y.current)),"End"===t.key&&(L(t),Y.current=l,W(Y.current)),j>1){const n=I||Array.from({length:c.current.length},(()=>({width:1,height:1}))),r=Pt(n,j,N),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),a=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if(Y.current=r[St({current:r.map((e=>null!=e?c.current[e]:null))},{event:t,orientation:P,loop:m,cols:j,disabledIndices:Dt([...e||[],void 0],r),minIndex:o,maxIndex:a,prevIndex:Et(Y.current,n,r,j,t.key===gt?"bl":t.key===vt?"tr":"tl"),stopEvent:!0})],W(Y.current),"both"===P)return}if(sr(t.key,P)){if(L(t),n&&!v&&x(t.currentTarget.ownerDocument)===t.currentTarget)return Y.current=cr(t.key,P,y)?s:l,void W(Y.current);cr(t.key,P,y)?Y.current=m?r>=l?h&&r!==c.current.length?-1:s:kt(c,{startingIndex:r,disabledIndices:e}):Math.min(l,kt(c,{startingIndex:r,disabledIndices:e})):Y.current=m?r<=s?h&&-1!==r?c.current.length:l:kt(c,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(s,kt(c,{startingIndex:r,decrement:!0,disabledIndices:e})),wt(c,Y.current)?W(null):W(Y.current)}}function r(e){"auto"===b&&E(e.nativeEvent)&&(B.current=!0)}const s=v&&n&&re&&{"aria-activedescendant":ee||Z},l=c.current.find((e=>(null==e?void 0:e.id)===Z));return{reference:{...s,onKeyDown(r){z.current=!1;const a=0===r.key.indexOf("Arrow"),i=function(e,t,n){return ir(t,n?e===yt:e===vt,e===gt)}(r.key,P,y),s=ur(r.key,P,y),u=sr(r.key,P),d=(g?i:u)||"Enter"===r.key||""===r.key.trim();if(v&&n){const e=null==H?void 0:H.nodesRef.current.find((e=>null==e.parentId)),n=H&&e?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),fn(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(H.nodesRef.current,e.id):null;if(a&&n&&M){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(i||s){var f,h;const t=(null==(f=n.context)?void 0:f.elements.domReference)===r.currentTarget,o=s&&!t?null==(h=n.context)?void 0:h.elements.domReference:i?l:null;o&&(L(r),o.dispatchEvent(e),te(void 0))}var m;if(u&&n.context)if(n.context.open&&n.parentId&&r.currentTarget!==n.context.elements.domReference)return L(r),void(null==(m=n.context.elements.domReference)||m.dispatchEvent(e))}return t(r)}(n||O||!a)&&(d&&(U.current=g&&u?null:r.key),g?i&&(L(r),n?(Y.current=Ot(c,e),W(Y.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=p&&(Y.current=p),L(r),!n&&O?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&W(Y.current)))},onFocus(){n&&W(null)},onPointerDown:function(e){B.current=b,"auto"===b&&D(e.nativeEvent)&&(B.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===P?void 0:P,...!F(i)&&s,onKeyDown:t,onPointerMove(){z.current=!0}},item:oe}}),[i,a,Z,ee,$,Q,c,f,P,y,v,n,re,g,p,O,h,j,m,b,W,o,oe,H,M,I,N])}const dr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function fr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,c=null!=(n=dr.get(s))?n:s,u=qt(),l=null!=Xt();return r.useMemo((()=>{if(!i)return{};const e={id:a,...c&&{role:c}};return"tooltip"===c||"label"===s?{reference:{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":o?a:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:u},..."menu"===c&&l&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===c&&{"aria-labelledby":u}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[i,s,c,o,a,u,l])}const pr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function hr(e,t){return"function"==typeof e?e(t):e}function mr(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"==typeof a?a:a.close)||0,[s,c]=r.useState(!1),[u,l]=r.useState("unmounted"),d=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,i);return At((()=>{s&&!d&&l("unmounted")}),[s,d]),At((()=>{if(o){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}c(!0),l("close")}}),[n,o]),{isMounted:d,status:u}}function gr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,c=e.placement,u=c.split("-")[0],l=r.useMemo((()=>({side:u,placement:c})),[u,c]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=r.useState((()=>({...hr(i,l),...hr(n,l)}))),{isMounted:g,status:y}=mr(e,{duration:s}),v=rn(n),b=rn(o),w=rn(a),O=rn(i);return At((()=>{const e=hr(v.current,l),t=hr(w.current,l),n=hr(O.current,l),r=hr(b.current,l)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:f+"ms",...n,...r}),"close"===y){const r=t||e;m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,v,b,O,f,y,l]),{isMounted:g,styles:h}}function yr(e,t){var n;const{open:o,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=r.useRef(),g=r.useRef(""),y=r.useRef(null!=(n=null!=h?h:s)?n:-1),v=r.useRef(null),b=ht(c),w=ht(u),O=rn(d),x=rn(p);return At((()=>{o&&(clearTimeout(m.current),v.current=null,g.current="")}),[o]),At((()=>{var e;o&&""===g.current&&(y.current=null!=(e=null!=h?h:s)?e:-1)}),[o,h,s]),r.useMemo((()=>{if(!l)return{};function e(e){e?a.current.typing||(a.current.typing=e,w(e)):a.current.typing&&(a.current.typing=e,w(e))}function t(e,t,n){const r=O.current?O.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}function n(n){const r=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(r,r,g.current)?e(!1):" "===n.key&&L(n)),null==r||x.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;o&&" "!==n.key&&(L(n),e(!0));r.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===n.key&&(g.current="",y.current=v.current),g.current+=n.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",y.current=v.current,e(!1)}),f);const a=y.current,s=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],g.current);-1!==s?(b(s),v.current=s):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[l,o,a,i,f,x,O,b,w])}function vr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const br=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:c=0,scrollRef:u,...l}=e,{rects:d,elements:{floating:f}}=t,p=n.current[i];if(!p)return{};const h={...t,...await pe(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-a).fn(t)},m=(null==u?void 0:u.current)||f,g=await ue(vr(h,m.scrollHeight),l),y=await ue(h,{...l,elementContext:"reference"}),v=Math.max(0,g.top),b=h.y+v,w=Math.max(0,m.scrollHeight-v-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=v,o&&(m.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||y.top>=-c||y.bottom>=-c?(0,He.flushSync)((()=>o(!0))):(0,He.flushSync)((()=>o(!1)))),r&&(r.current=await ue(vr({...h,y:b},m.offsetHeight),l)),{y:b}}});function wr(e,t){const{open:n,elements:o}=e,{enabled:a=!0,overflowRef:i,scrollRef:s,onChange:c}=t,u=ht(c),l=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);return r.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,He.flushSync)((()=>{u((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(P())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=i.current&&(f.current={...i.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,o.floating,i,s,u]),r.useMemo((()=>a?{floating:{onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(i.current&&e&&l.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,He.flushSync)((()=>u((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[a,i,o.floating,s,u])}function Or(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[c,u]=t[i]||[0,0];s>=r!=u>=r&&n<=(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}function xr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,u=performance.now();const l=e=>{let{x:n,y:l,placement:d,elements:f,onClose:p,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),p()}if(clearTimeout(o),!f.domReference||!f.floating||null==d||null==n||null==l)return;const{clientX:y,clientY:v}=e,b=[y,v],w=I(e),O="mouseleave"===e.type,x=k(f.floating,w),S=k(f.domReference,w),P=f.domReference.getBoundingClientRect(),E=f.floating.getBoundingClientRect(),D=d.split("-")[0],_=n>E.right-E.width/2,j=l>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,P),C=E.width>P.width,T=E.height>P.height,M=(C?P:E).left,N=(C?P:E).right,R=(T?P:E).top,L=(T?P:E).bottom;if(x&&(a=!0,!O))return;if(S&&(a=!1),S&&!O)return void(a=!0);if(O&&c(e.relatedTarget)&&k(f.floating,e.relatedTarget))return;if(m&&fn(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===D&&l>=P.bottom-1||"bottom"===D&&l<=P.top+1||"left"===D&&n>=P.right-1||"right"===D&&n<=P.left+1)return g();let F=[];switch(D){case"top":F=[[M,P.top+1],[M,E.bottom-1],[N,E.bottom-1],[N,P.top+1]];break;case"bottom":F=[[M,E.top+1],[M,P.bottom-1],[N,P.bottom-1],[N,E.top+1]];break;case"left":F=[[E.right-1,L],[E.right-1,R],[P.left+1,R],[P.left+1,L]];break;case"right":F=[[P.right-1,L],[P.right-1,R],[E.left+1,R],[E.left+1,L]]}if(!Or([y,v],F)){if(a&&!A)return g();if(!O&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===i||null===s||0===r)return i=e,s=t,u=n,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,u=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Or([y,v],function(e){let[n,r]=e;switch(D){case"top":return[[C?n+t/2:_?n+4*t:n-4*t,r+t+1],[C?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[E.left,_||C?E.bottom-t:E.top],[E.right,_?C?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[C?n+t/2:_?n+4*t:n-4*t,r-t],[C?n-t/2:_?n+4*t:n-4*t,r-t],...[[E.left,_||C?E.top+t:E.bottom],[E.right,_?C?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,T?r+t/2:j?r+4*t:r-4*t],o=[n+t+1,T?r-t/2:j?r+4*t:r-4*t];return[...[[j||T?E.right-t:E.left,E.top],[j?T?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,T?r+t/2:j?r+4*t:r-4*t],[n-t,T?r-t/2:j?r+4*t:r-4*t],...[[j||T?E.left+t:E.right,E.top],[j?T?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,l]))?!a&&r&&(o=window.setTimeout(g,40)):g()}}};return l.__options={blockPointerEvents:n},l}},28424:(e,t,n)=>{"use strict";n.d(t,{$:()=>X,A:()=>I,B:()=>D,C:()=>R,D:()=>y,E:()=>w,F:()=>F,G:()=>V,H:()=>u,J:()=>H,L:()=>$,M:()=>ee,N:()=>ne,O:()=>J,P:()=>M,Q:()=>oe,R:()=>N,S:()=>B,T:()=>T,Z:()=>Q,a:()=>L,a2:()=>te,a4:()=>re,b:()=>W,d:()=>Y,e:()=>C,f:()=>U,g:()=>z,h:()=>q,i:()=>v,j:()=>P,k:()=>s,l:()=>S,m:()=>b,n:()=>A,o:()=>p,p:()=>l,q:()=>g,r:()=>f,s:()=>k,t:()=>c,u:()=>d,v:()=>E,y:()=>x,z:()=>O});var r=n(63821),o=n(86005),a=n(21225),i=n(37089),s=function(e){return function(){return e}}(!0),c=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function y(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var v=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},w=function(e){return function(t){return e(Object.defineProperty(t,r.q8,{value:!0}))}},O=function(e){return e===r.a6},x=function(e){return e===r.nm},k=function(e){return O(e)||x(e)};function S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,s=(0,a.YO)(e)?b(r):{},u={};return n.forEach((function(e){var n=function(n,a){o||(a||k(n)?(t.cancel(),t(n,a)):(s[e]=n,++i===r&&(o=!0,t(s))))};n.cancel=c,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function P(e){return{name:e.name||"anonymous",location:E(e)}}function E(e){return e[r.x2]}function D(){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 _={isEmpty:s,put:c,take:c};function j(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+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)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var A=function(){return _},C=function(e){return j(e,4)},T="TAKE",M="PUT",I="ALL",N="RACE",R="CALL",L="CPS",F="FORK",H="JOIN",W="CANCEL",B="SELECT",Y="ACTION_CHANNEL",U="CANCELLED",z="FLUSH",V="GET_CONTEXT",q="SET_CONTEXT",G=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},K=function(e){return G(F,(0,o.A)({},e.payload,{detached:!0}))};function $(e,t){return void 0===e&&(e="*"),(0,a.T1)(e)?((0,a.uQ)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),G(T,{pattern:e})):(0,a.fD)(e)&&(0,a.uQ)(t)&&(0,a.T1)(t)?G(T,{channel:e,pattern:t}):(0,a.Ix)(e)?((0,a.uQ)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),G(T,{channel:e})):void 0}function Q(e,t){return(0,a.vD)(t)&&(t=e,e=void 0),G(M,{channel:e,action:t})}function X(e){var t=G(I,e);return t.combinator=!0,t}function Z(e,t){var n,r=null;return(0,a.Pc)(e)?n=e:((0,a.YO)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,a.Yj)(n)&&(0,a.Pc)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function J(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 G(R,Z(e,n))}function ee(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 G(F,Z(e,n))}function te(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 K(ee.apply(void 0,[e].concat(n)))}function ne(e){return void 0===e&&(e=r.Pe),G(W,e)}function re(e){void 0===e&&(e=u);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(B,{selector:e,args:n})}var oe=J.bind(null,i.A)},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},21225:(e,t,n)=>{"use strict";n.d(t,{HR:()=>h,Ix:()=>f,Pc:()=>i,T1:()=>d,YO:()=>c,Yj:()=>s,fD:()=>m,iv:()=>u,lJ:()=>l,mr:()=>p,uQ:()=>a,vD:()=>o});var r=n(63821),o=function(e){return null==e},a=function(e){return null!=e},i=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},c=Array.isArray,u=function(e){return e&&i(e.then)},l=function(e){return e&&i(e.next)&&i(e.throw)},d=function e(t){return t&&(s(t)||h(t)||i(t)||c(t)&&t.every(e))},f=function(e){return e&&i(e.take)&&i(e.close)},p=function(e){return i(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return f(e)&&e[r.Xl]}},63821:(e,t,n)=>{"use strict";n.d(t,{E_:()=>s,IO:()=>i,Pe:()=>l,Xl:()=>c,a6:()=>p,bO:()=>o,nm:()=>f,q8:()=>u,wn:()=>d,x2:()=>h,x7:()=>a});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),a=r("CHANNEL_END"),i=r("IO"),s=r("MATCH"),c=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),d=r("TASK"),f=r("TASK_CANCEL"),p=r("TERMINATE"),h=r("LOCATION")},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0}},82558:(e,t,n)=>{"use strict";n.d(t,{$y:()=>r,AM:()=>d,Dh:()=>s,EG:()=>P,EY:()=>h,ID:()=>u,JK:()=>E,KM:()=>a,M2:()=>f,XC:()=>c,Yn:()=>l,Yv:()=>v,Zc:()=>i,a9:()=>x,cM:()=>O,cV:()=>b,iN:()=>g,ln:()=>o,o_:()=>m,q0:()=>k,rw:()=>w,sT:()=>p,vJ:()=>y,xC:()=>S});var r="dbrefactoring/LOAD_MODULES",o="dbrefactoring/LOAD_FRAGMENTS",a="dbrefactoring/SET_VERSION",i="dbrefactoring/SET_FRAGMENTS",s="dbrefactoring/SET_MODULES",c="dbrefactoring/SET_SELECTED_MODULES",u="dbrefactoring/SET_FRAGMENT_SELECTED",l="dbrefactoring/SET_IGNORE_ERRORS",d="dbrefactoring/EXECUTE_DB_REFACTORING",f="dbrefactoring/SET_LANGUAGE",p="dbrefactoring/EXECUTE_LANGUAGE_UPGRADE",h="dbrefactoring/UNSET_RUNNING",m=function(){return{type:r}},g=function(){return{type:o}},y=function(e){return{type:a,payload:{version:e}}},v=function(e){return{type:i,payload:{fragments:e}}},b=function(e){return{type:s,payload:{modules:e}}},w=function(e){return{type:c,payload:{selectedModules:e}}},O=function(e,t){return{type:u,payload:{fragment:e,selected:t}}},x=function(e){return{type:l,payload:{ignoreErrors:e}}},k=function(){return{type:d}},S=function(e){return{type:f,payload:{language:e}}},P=function(){return{type:p}},E=function(e){return{type:h,payload:{path:e}}}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,E9:()=>S,Fr:()=>E,HA:()=>f,Jg:()=>k,Ki:()=>P,QQ:()=>O,TA:()=>v,UT:()=>w,Ur:()=>s,V8:()=>u,VI:()=>g,Wt:()=>h,XS:()=>p,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>c,tW:()=>l,uN:()=>y,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",s="modelvalidation/ADD_CHECK_EVENT",c="modelvalidation/SET_RESULT",u="modelvalidation/SET_SELECTED",l="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",f="modelvalidation/EXECUTE_SQL",p="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){return{type:o,payload:{message:e}}},y=function(e){return{type:c,payload:{result:e}}},v=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:s,payload:{id:e,type:t,label:n}}},O=function(e,t){return{type:u,payload:{ids:e,selected:t}}},x=function(){return{type:l}},k=function(e){return{type:d,payload:{sql:e}}},S=function(e){return{type:f,payload:{close:e}}},P=function(){return{type:p}},E=function(e){return{type:h,payload:{changelog:e}}}},42938:(e,t,n)=>{"use strict";n.d(t,{A0:()=>o,AB:()=>a,Fm:()=>s,bJ:()=>r,dy:()=>c,oG:()=>i});var r="sqllog/RECEIVE_ENTRY",o="sqllog/SET_ACTIVE",a="sqllog/SET_ELAPSED",i=function(e){return{type:r,payload:{data:e}}},s=function(e){return{type:o,payload:{active:e}}},c=function(e){return{type:a,payload:{elapsed:e}}}},6730:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(54756),o=n.n(r),a=n(43786),i="EMIT_ACTION",s="DISPATCH_EMITTED_ACTION",c=o().mark(u);function u(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.Q7)([(0,a.jP)(i,l,e),(0,a.jP)(s,d)]);case 2:case"end":return t.stop()}}),c)}function l(e,t){var n=t.payload;return o().mark((function t(){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,(0,a.Lt)(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,(0,a.T1)(i,r);case 7:case"end":return t.stop()}}),t)}))()}function d(e){var t=e.payload;return o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,(0,a.yJ)(n);case 3:case"end":return e.stop()}}),e)}))()}const f={emitAction:function(e){return{type:i,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:s,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(u,t)}}},86962:(e,t,n)=>{"use strict";n.d(t,{A:()=>Xo});var r=n(5556),o=n.n(r),a=n(71468),i="notification/MODAL",s="notification/REMOVE_MODAL",c=function(e,t,n,r){return{type:i,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){}}}},u=function(e){return{type:s,payload:{id:e}}},l=n(81845),d=n.n(l),f=n(7248);const p={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};o().shape({id:o().string.isRequired,title:o().string,body:o().oneOfType([o().string,o().element]),type:o().oneOf(Object.values(p))}),o().shape({id:o().oneOfType([o().string,o().number]).isRequired,title:o().oneOfType([o().string,o().node]),message:o().oneOfType([o().string,o().node]),component:o().func,cancelable:o().bool,cancelCallback:o().func,type:o().oneOf(Object.values(p))});var h,m,g=n(57528),y=n(43759),v=y.Ay.div.withConfig({displayName:"StyledPageOverlay"})(h||(h=(0,g.A)(["\n background-color: rgba(50, 50, 50, 0.7);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),b=y.Ay.div.withConfig({displayName:"StyledHolder"})(m||(m=(0,g.A)(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n // higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n // lower than ext-js legacy actions\n z-index: 9000;\n"]))),w=n(23228),O=n(85015),x=n.n(O),k=n(11843),S=n(74848);const P=function(e){var t,n=e.children;return x()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,S.jsx)(f.Ar,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,S.jsx)(k.FormattedMessage,{id:n}):(0,S.jsx)("span",{children:n}):n};var E,D,_=n(64467);const j={blockingDiplayStyles:(0,y.AH)(E||(E=(0,g.A)(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),f.t7.color("signal.info"),f.t7.color("paper")),titleWrapperStyles:(0,y.AH)(D||(D=(0,g.A)(["\n color: ",";\n"])),f.t7.color("paper"))};var A,C;const T={blockingDiplayStyles:(0,y.AH)(A||(A=(0,g.A)(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),f.t7.color("paper"),f.t7.color("border"),f.t7.radii("toaster"),f.t7.color("text")),titleWrapperStyles:(0,y.AH)(C||(C=(0,g.A)(["\n color: ",";\n"])),f.t7.color("signal.info"))};var M,I,N=(0,_.A)((0,_.A)({},w.A.EmbedType.admin,j),w.A.EmbedType.widget,T),R=y.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(M||(M=(0,g.A)(["\n // only latest modal should be above mask\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),f.hs.space(-.5),(function(e){return e.styles})),L=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(I||(I=(0,g.A)(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),f.hs.font(1.5),f.t7.fontWeight("regular"),(function(e){return e.styles}));const F=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=w.A.embedStrategy({mapping:N});return(0,S.jsxs)(R,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(L,{styles:a.titleWrapperStyles,children:(0,S.jsx)(P,{children:n})})}),r&&(0,S.jsx)(f.o5.Span,{children:(0,S.jsx)(P,{children:r})})]})};const H=function(e){var t=e.blocker,n=e.isLatest;return(0,S.jsx)(F,{blocker:t,isLatest:n})};var W,B,Y,U,z,V,q,G,K,$,Q,X=n(4883),Z=f.hs.space(.5),J=y.Ay.div.withConfig({displayName:"StyledModalContent"})(W||(W=(0,g.A)(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);\n max-height: 80%;\n min-width: 350px;\n max-width: 700px;\n margin: auto;\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),f.t7.color("paper"),f.t7.radii("modal"),Z,f.gQ),ee=y.Ay.button.withConfig({displayName:"StyledCloseButton"})(B||(B=(0,g.A)(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),f.t7.color("text")),te=y.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Y||(Y=(0,g.A)(["\n width: 100%;\n height: 100%;\n position: absolute;\n // only latest modal should be above mask\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),ne=y.Ay.div.withConfig({displayName:"StyledModalHeader"})(U||(U=(0,g.A)(["\n grid-row-start: header;\n display: flex;\n"]))),re=y.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(z||(z=(0,g.A)(["\n padding-bottom: ",";\n"])),f.hs.space(.5)),oe=y.Ay.div.withConfig({displayName:"StyledModalBody"})(V||(V=(0,g.A)(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),ae=y.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(q||(q=(0,g.A)(["\n padding-bottom: ",";\n"])),f.hs.space(0)),ie=(0,y.Ay)(f.$n).withConfig({displayName:"StyledModalButton"})(G||(G=(0,g.A)(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),f.hs.space(0)),se=y.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(K||(K=(0,g.A)(["\n display: flex;\n justify-content: flex-end;\n"]))),ce=(0,y.DU)($||($=(0,g.A)(["\n "," {\n && {\n z-index: 9999999; // higher than StyledModalHolder\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),f.Ec);const ue=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,X.useRef)(null),p=(0,X.useCallback)((function(){c(i)}),[c,i]),h=(0,X.useCallback)((function(){u(i)}),[u,i]);(0,X.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&h()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[h,r]),(0,X.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var m=(0,X.useMemo)((function(){return t||(t=(0,S.jsx)(s,{close:p}))}),[s,p]);return(0,S.jsxs)(S.Fragment,{children:[Q||(Q=(0,S.jsx)(ce,{})),(0,S.jsx)(te,{isLatest:l,children:(0,S.jsxs)(J,{ref:d,"data-cy":"modal-content",children:[(0,S.jsxs)(ne,{children:[a&&(0,S.jsx)(re,{children:(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(P,{children:a})})}),r&&(0,S.jsx)(ee,{onClick:h,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,S.jsxs)(oe,{children:[o&&(0,S.jsx)(ae,{children:(0,S.jsx)(f.o5.Span,{children:(0,S.jsx)(P,{children:o})})}),m]})]})})]})};const le=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,S.jsx)(ue,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var de={closeModal:u};const fe=(0,a.Ng)((function(){return{}}),de)(le);var pe;const he=function(e){var t=e.overlays;return t.length>0&&d().createPortal((0,S.jsxs)(b,{className:f.eG,children:[t.map((function(e,n){return function(e,t,n){return e.type===p.MODAL?(0,S.jsx)(fe,{idx:t,modal:e,isLatest:n},t):e.type===p.BLOCKER?(0,S.jsx)(H,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),pe||(pe=(0,S.jsx)(v,{}))]}),document.body)};var me={closeModal:u};const ge=(0,a.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),me)(he);var ye="notification/SET_UNREAD_NOTIFICATION_KEYS",ve="notification/UPDATE_UNREAD_NOTIFICATION",be="notification/LOAD_NOTIFICATIONS",we="notification/SET_NOTIFICATION",Oe="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",xe="notification/UPDATE_NOTIFICATION",ke="notification/IS_LOADING_MORE_NOTIFICATIONS",Se="notification/MARK_AS_READ",Pe="notification/CANCEL_TASK",Ee=function(e){return{type:ye,payload:{unreadNotificationKeys:e}}},De=function(e,t){return{type:ve,payload:{notificationKey:e,read:t}}},_e=function(e){return{type:we,payload:{notifications:e}}},je=function(e){return{type:Oe,payload:{moreNotificationsAvailable:e}}},Ae=function(e){return{type:xe,payload:{notification:e}}},Ce=function(){return{type:ke,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Te=function(e){return{type:Se,payload:{notificationKey:e}}},Me=function(e){return{type:Pe,payload:{taskExecutionKey:e}}},Ie="notification/TOASTER",Ne="notification/REMOVE_TOASTER",Re="notification/REMOVE_TOASTER_FROM_STORE",Le=function(e){return{type:Ie,payload:{toaster:e}}},Fe=function(e,t){return{type:Ne,payload:{key:e,manually:t}}},He=function(e){return{type:Re,payload:{key:e}}},We=n(79308),Be={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},Ye={outputjob:"OUTPUTJOB",entities:"ENTITIES"},Ue=(0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)({},Be.neutral,null),Be.error,"times-circle"),Be.warning,"exclamation-circle"),Be.success,"check-circle"),Be.info,"info-circle");o().shape({key:o().string.isRequired,message:o().string,read:o().bool,timestamp:o().string,originId:o().string,type:o().string,taskProgress:o().shape({taskExecutionKey:o().string.isRequired,status:o().string,message:o().string,percentage:o().number,done:o().number,total:o().number,supportsCancellation:o().bool,isRunning:o().bool})});function ze(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe=function(e,t){return Number.isInteger(e)?e:function(e){return e===Be.error||e===Be.warning}(t)?-1:5e3};function Ge(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Ke(){return Ke=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},Ke.apply(this,arguments)}o().shape({type:o().oneOf(Object.values(Be)).isRequired,title:o().oneOfType([o().string,o().func]),message:o().oneOfType([o().string,o().func]),body:o().oneOfType([o().string,o().func]),onClose:o().func,icons:o().string,duration:o().number,time:o().instanceOf(Date)}),o().func.isRequired,o().func.isRequired,o().object;var $e,Qe,Xe,Ze,Je,et,tt,nt,rt=n(5544),ot=n(96424),at=(0,y.i7)($e||($e=(0,g.A)(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),it=y.Ay.div.withConfig({displayName:"StyledToaster"})(Qe||(Qe=(0,g.A)(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgba(0, 0, 0, 0.7);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),f.hs.space(-.5),f.hs.space(0),at),st=(0,y.Ay)(f.cx).withConfig({displayName:"StyledCloseButton"})(Xe||(Xe=(0,g.A)(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &:hover {\n background-color: transparent;\n cursor: pointer;\n }\n ","\n"])),f.hs.font(3),f.t7.color("backgroundBody"),(function(e){return e.styles})),ct=y.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(Ze||(Ze=(0,g.A)(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),f.hs.space(0),f.hs.space(0),f.rd,(function(e){return e.styles})),ut=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Je||(Je=(0,g.A)(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),f.hs.font(1.5),f.t7.fontWeight("regular")),lt=y.Ay.div.withConfig({displayName:"StyledIconWrapper"})(et||(et=(0,g.A)(["\n font-size: ",";\n"])),f.hs.font(7)),dt=y.Ay.div.withConfig({displayName:"StyledContentWrapper"})(tt||(tt=(0,g.A)(["\n padding-top: ",";\n color: ",";\n"])),f.hs.space(-1),f.t7.color("textToaster")),ft=y.Ay.div.withConfig({displayName:"StyledToasterBox"})(nt||(nt=(0,g.A)(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); // subtract height of header plus some additional padding\n min-width: 310px;\n max-width: 400px;\n top: 40px; // height of Header to prevent coverage\n right: 55px;\n // lower than StyledModalHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); // subtract height of header\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,f.Ed)());const pt=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,X.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=ot.A.useUserActive(i),c=(0,rt.A)(s,3),u=c[0],l=c[1],d=c[2];(0,X.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,S.jsxs)(it,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==a?void 0:a.toasterStyles,children:[(0,S.jsx)(st,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,S.jsxs)(ct,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,S.jsx)(lt,{children:(0,S.jsx)(f.In,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(ut,{children:(0,S.jsx)(P,{children:t.title})})})]}),t.body&&(0,S.jsx)(dt,{children:(0,S.jsx)(P,{children:"function"==typeof t.body?(0,S.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var ht,mt,gt={info:"info",success:"success",error:"danger",warning:"warning"},yt=function(){return(0,y.AH)(ht||(ht=(0,g.A)(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return gt[e]?t.colors.signal[gt[e]]:"#ccc"}(e.type,e.theme)}),f.t7.color("textToaster"))},vt=function(){return(0,y.AH)(mt||(mt=(0,g.A)(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),f.t7.color("textToaster"))};function bt(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 wt=function(e){var t=Ke({},(Ge(e),e));return(0,S.jsx)(pt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:yt,closeButtonStyles:vt}},t))};var Ot,xt,kt={info:"info",success:"success",error:"danger",warning:"warning"},St=function(){return(0,y.AH)(Ot||(Ot=(0,g.A)(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),f.t7.color("paper"),f.t7.radii("statusLabel"),f.t7.color("border"),f.t7.color("text"))},Pt=function(){return(0,y.AH)(xt||(xt=(0,g.A)(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return kt[e]?t.colors.signal[kt[e]]:"#ccc"}(e.type,e.theme)}))};function Et(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 Dt=function(e){var t=Ke({},(Ge(e),e));return(0,S.jsx)(pt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:St,iconTitleWrapperStyles:Pt}},t))};var _t=(0,_.A)((0,_.A)({},w.A.EmbedType.admin,wt),w.A.EmbedType.widget,Dt);const jt=w.A.embedStrategyFactory({mapping:_t});const At=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,S.jsx)(jt,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,S.jsx)(S.Fragment,{children:t&&d().createPortal((0,S.jsx)(ft,{className:f.eG,children:a}),document.body)})};var Ct={removeToaster:Fe,cancelTask:Me};const Tt=(0,a.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Ct)(At);var Mt;const It=function(e){var t=e.navigationStrategy;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Tt,{navigationStrategy:t}),Mt||(Mt=(0,S.jsx)(ge,{}))]})};var Nt,Rt,Lt,Ft,Ht,Wt,Bt,Yt,Ut,zt,Vt="notification/BLOCKING_INFO",qt="notification/REMOVE_BLOCKING_INFO",Gt=n(51732),Kt=y.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(Nt||(Nt=(0,g.A)(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),f.hs.space(-1.5)),$t=y.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(Rt||(Rt=(0,g.A)(["\n margin-right: ",";\n"])),f.hs.space(-1.5)),Qt=y.Ay.div.withConfig({displayName:"StyledProgressOuter"})(Lt||(Lt=(0,g.A)(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),f.t7.color("paper")),Xt=y.Ay.div.withConfig({displayName:"StyledProgressInner"})(Ft||(Ft=(0,g.A)(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),f.t7.color("paper"),(function(e){return e.percentage})),Zt=y.Ay.span.withConfig({displayName:"StyledMessage"})(Ht||(Ht=(0,g.A)(["\n margin-right: ",";\n"])),f.hs.space(-2)),Jt=y.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(Wt||(Wt=(0,g.A)(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),f.hs.space(-2),f.hs.space(-2),f.hs.font(-1)),en=y.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(Bt||(Bt=(0,g.A)(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; // nice2 reset\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),f.t7.color("text"),f.t7.color("text")),tn=y.Ay.div.withConfig({displayName:"StyledFileDescription"})(Yt||(Yt=(0,g.A)(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),f.hs.space(0)),nn=y.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Ut||(Ut=(0,g.A)(["\n padding-right: ",";\n"])),f.hs.space(-1.5)),rn=y.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(zt||(zt=(0,g.A)(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),f.t7.color("text"));const on=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,S.jsx)(Zt,{children:(0,S.jsx)(P,{children:t})}):null};var an,sn=n(94394),cn=n.n(sn),un=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,S.jsx)(f.AM,{content:(0,S.jsx)(f.o5.P,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const ln=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,S.jsx)(S.Fragment,{children:Object.entries(cn()(r,(function(e){return e.model}))).map((function(e){var t=(0,rt.A)(e,2),r=t[0],o=t[1];return(0,S.jsx)(Jt,{children:n&&n.ListOrDetailLink&&(0,S.jsx)(un,{hasTooManyEntities:o.length>100,children:(0,S.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[an||(an=(0,S.jsx)(f.In,{icon:"arrow-right"}))," ",(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var dn,fn,pn,hn,mn,gn,yn=n(31558);const vn=(0,k.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},s=i("client.common.notification.outputJobFileLink"),c=i("client.common.notification.outputJobFileDownload");return o?(0,S.jsxs)(en,{children:[(0,S.jsx)(tn,{children:(0,S.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,S.jsx)("div",{children:(0,S.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[dn||(dn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"eye"})})),fn||(fn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),yn.A.downloadSupportedByBrowser()&&(0,S.jsxs)("a",{href:yn.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[pn||(pn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"arrow-to-bottom"})})),hn||(hn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,S.jsx)(Jt,{children:n&&n.DetailLink&&(0,S.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[mn||(mn=(0,S.jsx)(f.In,{icon:"arrow-right"}))," ",gn||(gn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var bn=(0,_.A)((0,_.A)({},Ye.outputjob,vn),Ye.entities,ln);const wn=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(bn[r]){var o=bn[r];return(0,S.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var On,xn,kn,Sn,Pn;const En=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===Be.info&&o.isRunning&&o.supportsCancellation;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(Kt,{children:[(0,S.jsx)($t,{children:o.isRunning&&(On||(On=(0,S.jsx)(f.kt,{})))}),(0,S.jsx)(on,{notification:t})]}),"running_absolute"===o.status&&(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(Qt,{children:(0,S.jsx)(Xt,{percentage:o.percentage})})}),(0,S.jsx)(Jt,{children:a&&(0,S.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[xn||(xn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"arrow-right"})})),kn||(kn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,S.jsxs)(rn,{onClick:function(){return n(o.taskExecutionKey)},children:[Sn||(Sn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"times"})})),Pn||(Pn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const Dn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress;return o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(on,{notification:t}),(0,S.jsx)(wn,{notification:t,navigationStrategy:r})]}):a?(0,S.jsx)(En,{notification:t,navigationStrategy:r,cancelTask:n}):(0,S.jsx)(on,{notification:t})},_n=Dn;var jn,An,Cn,Tn,Mn,In,Nn,Rn,Ln={warning:f.t7.color("signal.warning"),error:f.t7.color("signal.danger"),success:f.t7.color("signal.success"),info:f.t7.color("signal.info")},Fn=y.Ay.article.withConfig({displayName:"StyledNotification"})(jn||(jn=(0,g.A)(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),f.hs.space(0),f.hs.space(-1),(function(e){return!e.read&&(0,y.AH)(An||(An=(0,g.A)(["\n background-color: ",";\n "])),f.t7.color("backgroundBody"))})),Hn=y.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Cn||(Cn=(0,g.A)(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),f.hs.space(-1),(function(e){var t=e.notificationType;return Ln[t]})),Wn=y.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Tn||(Tn=(0,g.A)(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),f.hs.space(-1.5),f.hs.font(5)),Bn=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Mn||(Mn=(0,g.A)(["\n * {\n font-weight: "," !important;\n }\n"])),f.t7.fontWeight("regular")),Yn=y.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(In||(In=(0,g.A)(["\n ","\n margin-bottom: ",";\n"])),(0,f.Ed)({fontSize:f.hs.font(2.9),fontWeight:f.t7.fontWeight("bold"),color:f.t7.color("secondary")}),f.hs.space(-.5)),Un=y.Ay.div.withConfig({displayName:"StyledTimeStamp"})(Nn||(Nn=(0,g.A)(["\n font-size: ",";\n"])),f.hs.font(-2)),zn=y.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(Rn||(Rn=(0,g.A)(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),f.hs.space(-.5),f.t7.color("paper"),f.t7.color("secondaryLight"),f.t7.radii("menu"),Qt,f.t7.color("text"),Xt,f.t7.color("textLighter"),(0,f.Ed)());var Vn={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const qn=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,X.useRef)(null),u=Gt.A.selectUnit(new Date(o.timestamp)),l=(0,X.useState)((function(){return o.read})),d=(0,rt.A)(l,1)[0];return t=c,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){(0,rt.A)(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,X.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,S.jsxs)(Fn,{ref:c,read:d,"data-cy":"notification-item",children:[(0,S.jsxs)(Hn,{notificationType:o.type,children:[(0,S.jsx)(Wn,{children:(0,S.jsx)(f.In,{icon:Vn[o.type]})}),(0,S.jsx)(Bn,{children:(0,S.jsx)(f.o5.H5,{children:o.title})})]}),(0,S.jsx)(_n,{notification:o,navigationStrategy:s,cancelTask:i}),(0,S.jsx)(Un,{children:(0,S.jsx)(k.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var Gn,Kn,$n,Qn;const Xn=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,X.useRef)(null);(0,X.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==Ye.outputjob||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,S.jsx)(qn,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,S.jsxs)(zn,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[Gn||(Gn=(0,S.jsx)(Yn,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(Kn||(Kn=(0,S.jsx)(f.kt,{}))),u.length>0&&!r&&($n||($n=(0,S.jsx)(f.o5.I,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(Qn||(Qn=(0,S.jsx)(f.o5.I,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};var Zn={loadNotifications:function(){return{type:be,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Te,cancelTask:Me};const Jn=(0,a.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),Zn)(Xn);var er="notification/CONFIRM",tr="notification/YES_NO_QUESTION",nr="notification/INFO",rr="notification/CONNECT_SOCKET",or="notification/CLOSE_SOCKET",ar="notification/SOCKET_MESSAGE_RECEIVED",ir="notification/ADD_IGNORE_TOASTER",sr=function(e){return{type:ar,payload:{data:e}}},cr=function(e){return{type:ir,payload:{key:e}}},ur=n(14644),lr=n(37954),dr=n(54756),fr=n.n(dr),pr=n(43786),hr=n(6730),mr=fr().mark(yr),gr=fr().mark(vr);function yr(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(Vt,vr),(0,pr.jP)(qt,vr)]);case 3:case"end":return t.stop()}}),mr)}function vr(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),gr)}var br=n(80299),wr=n.n(br);function Or(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 xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kr=(0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)({},we,(function(e,t){var n=t.payload.notifications;return xr(xr({},e),{},{notifications:xr(xr({},e.notifications),n),isLoadingMoreNotifications:!1})})),Oe,lr.A.singleTransferReducer("moreNotificationsAvailable")),xe,(function(e,t){var n=t.payload.notification;return xr(xr({},e),{},{notifications:xr(xr({},e.notifications),{},(0,_.A)({},n.key,n))})})),ye,lr.A.singleTransferReducer("unreadNotificationKeys")),ve,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):wr()(e.unreadNotificationKeys,[o]),xr(xr({},e),{},{unreadNotificationKeys:n})})),ke,lr.A.singleTransferReducer("isLoadingMoreNotifications")),Sr={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sr,t=arguments.length>1?arguments[1]:void 0,n=kr[t.type];return n?n(e,t):e}var Er=n(63205),Dr=fr().mark(Nr);function _r(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 jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ar={failed:"error",info:"info",warning:"warning",success:"success"},Cr="running_infinite",Tr="running_absolute",Mr="pending",Ir=function(e){return e.status&&(e.status===Mr||e.status===Tr||e.status===Cr)};function Nr(e){var t,n,r,o,a,i,s;return fr().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!(t=jr(jr({},e),{},{type:Ar[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?jr(jr({},e.taskProgress),{},{isRunning:Ir(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null})).result||t.result.type!==Ye.outputjob){c.next=15;break}return n=null,c.prev=3,r=t.result.content[0].key,c.next=7,(0,pr.T1)(Er.A.fetchEntity,"Output_job",r,{paths:["document"]});case 7:o=c.sent,a=o.paths.document.value,i=a.fileName,s=a.binaryLink,n={name:i,link:s,description:t.result.content[0].display},c.next=14;break;case 12:c.prev=12,c.t0=c.catch(3);case 14:t.result=jr(jr({},t.result),{},{file:n});case 15:return c.abrupt("return",t);case 16:case"end":return c.stop()}}),Dr,null,[[3,12]])}function Rr(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 Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fr=fr().mark(Br),Hr=fr().mark(Yr),Wr=10;function Br(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.T1)(Yr),(0,pr.jP)(be,Ur),(0,pr.jP)(Se,zr),(0,pr.jP)(Pe,Vr)]);case 3:case"end":return t.stop()}}),Fr)}function Yr(){var e,t,n;return fr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,pr.T1)(Er.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,pr.yJ)(Ee(n));case 7:case"end":return r.stop()}}),Hr)}function Ur(e){var t=e.payload.offset;return fr().mark((function e(){var n,r,o,a;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.yJ)(Ce());case 2:return n={_limit:Wr,_offset:t},e.next=5,(0,pr.T1)(Er.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,pr.Q7)(r.body.data.map((function(e){return(0,pr.T1)(Nr,e)})));case 8:if(o=e.sent,a=o.reduce((function(e,t){return Lr(Lr({},e),{},(0,_.A)({},t.key,t))}),{}),!(Object.keys(a).length<Wr)){e.next=13;break}return e.next=13,(0,pr.yJ)(je(!1));case 13:return e.next=15,(0,pr.yJ)(_e(a));case 15:case"end":return e.stop()}}),e)}))()}function zr(e){var t=e.payload.notificationKey;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,pr.T1)(Er.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Vr(e){var t=e.payload.taskExecutionKey;return fr().mark((function e(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Er.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var qr=n(53986),Gr=["primary","callback","label"];function Kr(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 $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qr=function(e){var t=e.buttons;return(0,S.jsx)(se,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=(0,qr.A)(e,Gr);return(0,X.createElement)(ie,$r($r({},n?{ink:f.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function Xr(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,s=e.defaultAction,u=void 0===s?"submit":s,l=(0,We.v4)();return c(l,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===u?a():"cancel"===u&&i(),t()):"Escape"===e.key&&(i(),t())};(0,X.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var s=[{label:r,primary:"submit"===u,look:"submit"===u?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===u,look:"cancel"===u?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,S.jsx)(Qr,{buttons:s})}),!0,i)}function Zr(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,s=e.onCancel,u=(0,We.v4)();return c(u,t,n,(function(e){var t=e.close,n=function(){i(),t()};(0,f.c2)(n);var s=[{label:r,callback:function(){a(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,S.jsx)(Qr,{buttons:s})}),!0,s)}function Jr(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,We.v4)();return c(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,X.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,S.jsx)(Qr,{buttons:a})}),!1)}var eo=fr().mark(no),to=fr().mark(io);function no(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(er,ro),(0,pr.jP)(tr,oo),(0,pr.jP)(nr,ao)]);case 3:t.next=7;break;case 5:return t.next=7,(0,pr.Q7)([(0,pr.jP)(er,io),(0,pr.jP)(tr,io),(0,pr.jP)(nr,io)]);case 7:case"end":return t.stop()}}),eo)}function ro(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Xr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function oo(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Zr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function ao(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Jr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function io(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),to)}var so=fr().mark(uo),co=fr().mark(lo);function uo(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(i,lo),(0,pr.jP)(s,lo)]);case 3:case"end":return t.stop()}}),so)}function lo(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),co)}var fo=n(60436);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){(0,_.A)(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}var mo={overlays:[]},go=function(e){return function(t,n){var r=n.payload.id;return ho(ho({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},yo=(0,_.A)((0,_.A)((0,_.A)((0,_.A)({},i,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,s=n.cancelable,c=n.cancelCallback;return ho(ho({},e),{},{overlays:[].concat((0,fo.A)(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:s,cancelCallback:c,type:p.MODAL}])})})),s,go(p.MODAL)),Vt,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return ho(ho({},e),{},{overlays:[].concat((0,fo.A)(e.overlays),[{id:r,title:o,body:a,type:p.BLOCKER}])})})),qt,go(p.BLOCKER));function vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0,n=yo[t.type];return n?n(e,t):e}function bo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oo=(0,_.A)({},ir,(function(e,t){var n=t.payload.key;return wo(wo({},e),{},{ignoredToasters:(0,fo.A)(new Set([].concat((0,fo.A)(e.ignoredToasters),[n])))})})),xo={ignoredToasters:[]};function ko(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xo,t=arguments.length>1?arguments[1]:void 0,n=Oo[t.type];return n?n(e,t):e}var So=n(19383),Po=n(61502);function Eo(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 Do="socket-msg-",_o=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Do).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,S.jsx)(_n,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return w.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===Ye.outputjob}(e)?{duration:-1}:{})},jo=fr().mark(Io),Ao=fr().mark(No),Co=fr().mark(Ro),To=function(e){return e.notification.socket},Mo=function(e){return e.notification.toaster.toasters};function Io(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(ar,Lo),(0,pr.jP)(Ne,Fo),(0,pr.jP)(rr,No),(0,pr.jP)(or,Ro)]);case 3:case"end":return t.stop()}}),jo)}function No(){var e;return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.T1)(So.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,pr.T1)(Po.A.connectSocket,{name:"notification",messageReceivedAction:sr,originId:e});case 5:case"end":return t.stop()}}),Ao)}function Ro(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Po.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Co)}function Lo(e){var t=e.payload.data;return fr().mark((function e(){var n,r,o,a,i;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Nr,t);case 2:return n=e.sent,e.next=5,(0,pr.Lt)(To);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==So.A.getOriginId()){e.next=16;break}return e.next=11,(0,pr.T1)(_o,n);case 11:if(i=e.sent,o.includes(i.key)||n.read){e.next=16;break}return e.next=15,(0,pr.yJ)(Le(i));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,pr.yJ)(De(n.key,n.read));case 19:return e.next=21,(0,pr.yJ)(Ae(n));case 21:case"end":return e.stop()}}),e)}))()}function Fo(e){var t=e.payload,n=t.key,r=t.manually;return fr().mark((function e(){var t;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Do)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,pr.yJ)(cr(n));case 4:return e.next=6,(0,pr.Lt)(Mo);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Do,""),e.next=11,(0,pr.yJ)(Te(t));case 11:case"end":return e.stop()}}),e)}))()}var Ho=n(82284);function Wo(e){var t=function(e,t){if("object"!=(0,Ho.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,Ho.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,Ho.A)(t)?t:t+""}function Bo(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uo=(0,_.A)((0,_.A)({},Ie,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(Be).includes(e.type)?e.type:Be.neutral;return Ve(Ve(Ve(Ve(Ve({type:t,key:e.key||(0,We.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||Ue[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:qe(e.duration,t),time:e.time instanceof Date?e.time:new Date})}(t.payload.toaster);return Yo(Yo({},e),{},{toasters:Yo(Yo({},e.toasters),{},(0,_.A)({},n.key,n))})})),Re,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],(0,qr.A)(r,[n].map(Wo)));return Yo(Yo({},e),{},{toasters:Yo({},o)})})),zo={toasters:{}};function Vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo,t=arguments.length>1?arguments[1]:void 0,n=Uo[t.type];return n?n(e,t):e}var qo=fr().mark(Ko),Go=fr().mark($o);function Ko(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(Ne,Qo)]);case 3:t.next=7;break;case 5:return t.next=7,(0,pr.Q7)([(0,pr.jP)(Ie,$o),(0,pr.jP)(Ne,$o)]);case 7:case"end":return t.stop()}}),qo)}function $o(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),Go)}function Qo(e){var t=e.payload,n=t.key;t.manually;return fr().mark((function e(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.yJ)(He(n));case 2:case"end":return e.stop()}}),e)}))()}const Xo={addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&lr.A.injectReducers(e,{notification:(0,ur.HY)({socket:ko,toaster:Vo,center:Pr,overlay:vo})}),e.sagaMiddleware.run(yr,t),e.sagaMiddleware.run(no,t),e.sagaMiddleware.run(uo,t),e.sagaMiddleware.run(Io,t),e.sagaMiddleware.run(Ko,t),t&&r&&e.sagaMiddleware.run(Br)},Notifications:It,NotificationCenter:Jn,confirm:function(e,t,n,r,o,a,i){return{type:er,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:tr,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:nr,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:Vt,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:qt,payload:{id:e}}},modal:c,removeModal:u,toaster:Le,removeToaster:Fe,connectSocket:function(){return{type:rr}},closeSocket:function(){return{type:or}}}},63205:(e,t,n)=>{"use strict";n.d(t,{A:()=>dt});var r=n(92901),o=n(23029),a=n(50388),i=n(53954),s=n(85501);function c(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}const u=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),c(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),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}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));function l(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}const f=function(e){function t(){return(0,o.A)(this,t),l(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(u);function p(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}const m=function(e){function t(){return(0,o.A)(this,t),p(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(u);var g=n(60436),y=n(5544),v=n(64467),b=n(54756),w=n.n(b),O=n(58156),x=n.n(O),k=n(23805),S=n.n(k),P=n(23181),E=n.n(P),D=n(40860),_=n.n(D),j=n(43786),A=n(43806),C=n(90179),T=n.n(C),M=n(23228),I=n(88691),N=n(99208),R=n(79308),L=n(86962),F=n(6986),H=n(8271);function W(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,B()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}const Y=function(e){function t(e){var n;return(0,o.A)(this,t),(n=W(this,t)).message=e,n}return(0,s.A)(t,e),(0,r.A)(t)}(u);function U(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=412,q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new Y(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?z(z({},a),{},{body:null}):t(e).then((function(e){return z(z({},a),{},{body:e})})).catch((function(e){return z(z({},a),{},{body:null})}))},K=function(e){return G(e,(function(e){return e.blob()}))},$=function(e){return z(z({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:H.A.abortController.signal})};function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(V),fetch(e,$(t)).then((function(e){return G(e)})).then((function(e){return q(e,n,r)}))}function X(e,t,n,r){return fetch(e,$(t)).then((function(e){return K(e)})).then((function(e){return q(e,n,r)}))}var Z=w().mark(re),J=w().mark(ae),ee=w().mark(ie),te={ConfirmQuestionHandler:ae,YesNoQuestionHandler:ie};function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.addBlockingInfoAction,a=r.removeBlockingInfoAction;return w().mark((function r(){var i,s;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("GET"!==t.options.method&&"HEAD"!==t.options.method){r.next=2;break}return r.abrupt("return",e);case 2:i={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,(0,j.T1)(re,e.body.clientQuestion);case 6:if(null!=(s=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new f("Client question cancelled by user");case 13:if(i[e.body.clientQuestion.id]=s.answer,t.options.body=JSON.stringify({clientAnswers:i,payload:n.body}),!o){r.next=18;break}return r.next=18,(0,j.yJ)(o);case 18:return r.next=20,(0,j.T1)(Q,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,(0,j.yJ)(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),r)}))()}function re(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=te[e.handler])){n.next=5;break}return n.next=4,(0,j.T1)(t,e);case 4:return n.abrupt("return",n.sent);case 5:throw new Error("No question handler found for client question",e);case 6:case"end":return n.stop()}}),Z)}var oe=function(e){return{answer:e}};function ae(e){var t,n,r,o,a,i,s;return w().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,j.T1)(F.Ix);case 2:return t=c.sent,n=function(){return t.put(oe(!0))},r=function(){return t.put(oe(null))},o=e.header,a=e.message,i=e.okText,s=e.cancelText,c.next=8,(0,j.yJ)(L.A.confirm(o,a,i,s,n,r));case 8:return c.next=10,(0,j.s)(t);case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}}),J)}function ie(e){var t,n,r,o,a,i,s,c;return w().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,j.T1)(F.Ix);case 2:return t=u.sent,n=function(){return t.put(oe(!0))},r=function(){return t.put(oe(!1))},o=function(){return t.put(oe(null))},a=e.header,i=e.message,s=e.yesText,c=e.noText,u.next=9,(0,j.yJ)(L.A.yesNoQuestion(a,i,s,c,n,r,o));case 9:return u.next=11,(0,j.s)(t);case 11:return u.abrupt("return",u.sent);case 12:case"end":return u.stop()}}),ee)}function se(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=w().mark(fe),le=w().mark(he),de=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function fe(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Y)){t.next=5;break}return t.next=3,(0,j.yJ)(L.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 3:t.next=6;break;case 5:throw e;case 6:case"end":return t.stop()}}),ue)}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w().mark((function n(){var r,o,a,i,s;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(he,t);case 2:return n.next=4,(0,j.T1)(me,e,t);case 4:return r=n.sent,n.next=7,(0,j.T1)(ge,t);case 7:if(o=n.sent,a=o.addBlockingInfoAction,i=o.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,(0,j.yJ)(a);case 13:return n.next=15,(0,j.T1)(Q,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(s=n.sent,!i){n.next=19;break}return n.next=19,(0,j.yJ)(i);case 19:return n.next=21,(0,j.T1)(ne,s,r,t,o);case 21:return s=n.sent,n.abrupt("return",s);case 25:if(n.prev=25,n.t0=n.catch(9),!i){n.next=30;break}return n.next=30,(0,j.yJ)(i);case 30:return n.next=32,fe(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function he(e){var t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=5;break}return r.next=3,(0,j.Lt)(I.A.localeSelector);case 3:n=r.sent,e.queryParams=ce(ce({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),le)}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,s=void 0===i?M.A.getBackendUrl():i,c=N.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=ce({method:a,headers:c,credentials:"include"},u?{body:u}:{}),d=de(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?N.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function ge(e){var t=e.blockingInfoTitle;return w().mark((function e(){var n,r,o,a;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,(0,j.T1)(R.v4);case 3:return n=e.sent,r=t,o=L.A.blockingInfo(n,r),a=L.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var ye=w().mark(we),ve=w().mark(Oe),be=w().mark(xe);function we(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/settings");case 2:return e=n.sent,t=T()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),ye)}function Oe(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/settings");case 2:return e=n.sent,t=T()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),ve)}function xe(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,j.T1)(we);case 7:return t=r.sent,n=t.maxLimit,A.A.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),be)}var ke=w().mark(Re),Se=w().mark(Le),Pe=w().mark(Fe),Ee=w().mark(Ve),De=w().mark(Je),_e=w().mark(et),je=w().mark(tt),Ae=w().mark(nt),Ce=w().mark(rt),Te=w().mark(ot);function Me(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne="nice2.web.core.useSelectorsByDefault";function Re(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,j.T1)(pe,"client/property",{method:"POST",body:{propertyNames:[Ne]}});case 7:return t=r.sent,n=t.body.loadedProperties[Ne],A.A.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),ke)}function Le(e,t){var n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,(0,j.T1)(pe,"entities/2.0/".concat(e,"/").concat(t),n);case 4:return r.abrupt("return",!0);case 7:return r.prev=7,r.t0=r.catch(1),r.abrupt("return",!1);case 10:case"end":return r.stop()}}),Se,null,[[1,7]])}function Fe(e,t,n,r,o){var a,i;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},s.next=3,(0,j.T1)(pe,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return i=s.sent,s.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return Ie(Ie({},e),{},(0,v.A)({},t.key,t.displayExpressions))}),{}));case 5:case"end":return s.stop()}}),Pe)}var He=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w().mark((function r(){var o,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=(0,y.A)(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===A.A.getObjectCache("display",He(r,e,t))})),displays:o.map((function(e){return{key:e,display:A.A.getObjectCache("display",He(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,Ye(o,t,n);case 3:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return Ie(Ie({},e),{},(0,v.A)({},n,Ie(Ie({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return Ie(Ie({},e),{},(0,v.A)({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),r)}))()}function Be(e,t){Object.entries(e).forEach((function(e){var n=(0,y.A)(e,2),r=n[0];n[1].forEach((function(e){return A.A.removeObjectCache("display",He(r,e,t))}))}))}function Ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w().mark((function r(){var o,a,i,s,c;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=12;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},i=t?"/".concat(t):"",r.next=6,(0,j.T1)(pe,"entities/2.0/displays".concat(i),a);case 6:return s=r.sent,c=s.body.data.reduce((function(e,t){var n=t.model,r=t.values;return Ie(Ie({},e),{},(0,v.A)({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return Ie(Ie({},e),{},(0,v.A)({},n,r))}),{})))}),{}),Object.entries(c).forEach((function(e){var n=(0,y.A)(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=(0,y.A)(e,2),o=n[0],a=n[1];A.A.addObjectCache("display",He(r,o,t),a)}))})),r.abrupt("return",c);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),r)}))()}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return w().mark((function r(){var o,a,i,s,c,u,l;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=3,(0,j.T1)($e,t);case 3:return s=r.sent,c=(i||"entities/2.0/".concat(e))+"/count",u=Ie({method:a},"GET"===a?{queryParams:Xe(s)}:{body:s}),r.next=8,(0,j.T1)(pe,c,u);case 8:return l=r.sent,r.abrupt("return",l.body.count);case 10:case"end":return r.stop()}}),r)}))()}function ze(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ke;return w().mark((function a(){var i,s;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=Ie({method:e,queryParams:Ie({_omitLinks:!0,_allKeys:t},"GET"===e&&Xe(n))},"POST"===e&&{body:n}),a.next=3,(0,j.T1)(pe,r,i);case 3:return s=a.sent,a.next=6,(0,j.T1)(o,s.body);case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)}))()}function Ve(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),Ee)}var qe=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=Ie({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=Ie({type:"relation"},e)})),t},Ge=function(e){return e.form},Ke=function(e){return e.data},$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:Qe(i)}:{}),s&&o?{offset:(s-1)*o}:{}),c?{paths:c}:{}),u?{where:u}:{}),Array.isArray(l)?{relations:0===l.length?"!":l}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},Qe=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},Xe=function(e){return _()(e,(function(e,t,n){var r={};return"conditions"===n?r=Ze(t):r["_"+n]=Array.isArray(t)?t.join(","):t,Ie(Ie({},e),r)}),{})},Ze=function(e){return _()(e,(function(e,t,n){return Ie(Ie({},e),{},(0,v.A)({},n,S()(t)&&t.value?t.value:t))}),{})};function Je(){var e,t,n,r,o;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,j.T1)(pe,"principals");case 2:return e=a.sent,t=e.body,n=t.username,r=t.businessUnit,o={username:n,currentBusinessUnit:r},a.abrupt("return",o);case 6:case"end":return a.stop()}}),De)}function et(e){var t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,(0,j.T1)(pe,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),_e)}function tt(e,t){var n,r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=3,(0,j.T1)(pe,"client/markings/".concat(e,"/").concat(t),n);case 3:return r=o.sent,o.abrupt("return",r.body.marked);case 5:case"end":return o.stop()}}),je)}function nt(e,t,n){var r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=3,(0,j.T1)(pe,"client/markings/".concat(e,"/").concat(t),r);case 3:case"end":return o.stop()}}),Ae)}function rt(e,t){var n,r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},o.next=3,(0,j.T1)(pe,"client/markings",n);case 3:return r=o.sent,o.abrupt("return",r.body.markings);case 5:case"end":return o.stop()}}),Ce)}function ot(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,j.T1)(pe,"locales");case 5:return t=r.sent,n=t.body.locales,A.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),Te)}var at=w().mark(ct),it=w().mark(ut),st=w().mark(lt);function ct(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),at)}function ut(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,j.T1)(pe,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),it)}function lt(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.T1)(pe,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),st)}const dt={requestSaga:pe,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w().mark((function n(){var r;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(he,t);case 2:return n.next=4,(0,j.T1)(me,e,t);case 4:return r=n.sent,n.prev=5,n.next=8,(0,j.T1)(X,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 8:return n.abrupt("return",n.sent);case 11:return n.prev=11,n.t0=n.catch(5),n.next=15,fe(n.t0);case 15:return n.abrupt("return",{});case 16:case"end":return n.stop()}}),n,null,[[5,11]])}))()},simpleRequest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=me(e,t);return Q(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:f,ForbiddenException:m,InformationError:Y,fetchEntity:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return w().mark((function a(){var i,s,c,u,l,d,f,p;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,j.T1)(Re);case 2:return i=a.sent,s=r.method,c=void 0===s?"POST":s,u=r.useSelectors,l=void 0===u?i:u,a.next=6,(0,j.T1)($e,n);case 6:return d=a.sent,f=Ie({method:c,queryParams:Ie({_omitLinks:!0,_useSelectors:l},"GET"===c&&Ie(Ie({},Xe(d)),{},{_permissions:!0}))},"POST"===c&&{body:Ie(Ie({},d),{},{permissions:!0})}),a.next=10,(0,j.T1)(pe,"entities/2.0/".concat(e,"/").concat(t),f);case 10:return p=a.sent,a.next=13,(0,j.T1)(o,p.body);case 13:return a.abrupt("return",a.sent);case 14:case"end":return a.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke;return w().mark((function o(){var a,i,s,c,u,l,d,f,p,h;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,j.T1)(xe);case 2:return a=o.sent,i=n.method,s=void 0===i?"POST":i,c=n.endpoint,u=n.allKeys,o.next=6,(0,j.T1)(Ue,e,t,n);case 6:return l=o.sent,d=u?1:Math.ceil(l/a),f=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),p=E()(d).map((function(e){return e+1})).map((function(e){return Ie(Ie({},t),{},{page:e,limit:a})})).map($e).map((function(e){return(0,j.T1)(ze,s,u,e,f,r)})),o.next=12,(0,j.Q7)(p);case 12:return h=o.sent,o.abrupt("return",h.reduce((function(e,t){return[].concat((0,g.A)(e),(0,g.A)(t))}),[]));case 14:case"end":return o.stop()}}),o)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke;return w().mark((function o(){var a,i,s,c,u,l;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,s=n.endpoint,c=n.allKeys,o.next=3,(0,j.T1)($e,t);case 3:return u=o.sent,l=s||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=7,(0,j.T1)(ze,i,c,u,l,r);case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),o)}))()},fetchDisplay:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w().mark((function o(){return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=x(),o.next=3,We((0,v.A)({},e,[t]),n,r);case 3:return o.t1=o.sent,o.t2="".concat(e,".").concat(t),o.abrupt("return",(0,o.t0)(o.t1,o.t2,null));case 6:case"end":return o.stop()}}),o)}))()},invalidateDisplay:function(e,t,n){Be((0,v.A)({},e,[t]),n)},fetchDisplays:We,invalidateDisplays:Be,fetchDisplayExpressions:Fe,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return w().mark((function o(){var a,i,s,c;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===A.A.getObjectCache("forms",a)||r){o.next=4;break}return o.abrupt("return",A.A.getObjectCache("forms",a));case 4:return i=Ie(Ie({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=7,(0,j.T1)(pe,"forms/".concat(a),i);case 7:if(s=o.sent,!n||404!==s.status){o.next=11;break}return A.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 11:return o.next=13,(0,j.T1)(Ge,s.body);case 13:return c=o.sent,A.A.addObjectCache("forms",a,c),o.abrupt("return",c);case 16:case"end":return o.stop()}}),o)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;return w().mark((function n(){var r,o,a;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=A.A.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",r);case 3:return n.next=5,(0,j.T1)(pe,"entities/".concat(e,"/model"));case 5:return o=n.sent,n.next=8,(0,j.T1)(t,o.body);case 8:return a=n.sent,A.A.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:qe,fetchEntityCount:Ue,fetchSearchFilters:Ve,buildRequestQuery:$e,requestQueryToUrlParams:Xe,fetchPrincipal:Je,fetchUserPreferences:ct,deleteUserPreferences:ut,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:lt,fetchServerSettings:we,fetchServerRevision:Oe,fetchServerMaxLimit:xe,createSortingString:Qe,fetchMarkings:et,fetchMarked:tt,setMarked:nt,setSelectionMarked:rt,entityExists:Le,fetchLocales:ot}},61502:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(64467),o=n(54756),a=n.n(o),i=n(6986),s=n(43786),c=n(73082),u=n(23228),l=a().mark(h);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={};function h(e){var t,n,r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,s.T1)(g,e.name,e.originId);case 2:return t=o.sent,o.next=5,(0,s.T1)(m,f(f({},e),{},{url:t}));case 5:n=o.sent;case 6:return o.next=9,(0,s.s)(n);case 9:return r=o.sent,o.next=12,(0,s.yJ)(r);case 12:o.next=6;break;case 14:case"end":return o.stop()}}),l)}var m=function(e){return(0,i.Od)((function(t){return function n(){var r=e.url,o=e.messageReceivedAction,a=e.name;p[a]=new WebSocket(r),p[a].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},p[a].onclose=function(e){1e3!==e.code&&n()},p[a].onerror=function(e){c.A.log("socket error",e)}}(),function(){}}))},g=function(e,t){var n=(u.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const y={connectSocket:h,closeSocket:function(e){p[e].close(1e3)}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate"},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#000",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula"}}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(57528),a=n(43759).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,o.A)([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>f.i,A:()=>d});var r,o=n(64467),a=n(4883),i=n.n(a),s=n(74848);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,a.lazy)((function(){return Promise.all([n.e(310),n.e(103),n.e(916)]).then(n.bind(n,8264))}));const d=function(e){return(0,s.jsx)(a.Suspense,{fallback:r||(r=(0,s.jsx)(i().Fragment,{})),children:(0,s.jsx)(l,u({},e))})};var f=n(93564)},88357:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>h,Ay:()=>d});n(5556);var r,o=n(47850),a=n(33181),i=n(57528),s=n(43759);const c=s.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=(0,i.A)(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,a.Ed)(),(function(e){return e.breakWords?(0,a.KV)():(0,a.sb)()}),a.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var u=n(74848),l=function(e){var t=e.alt,n=e.breakWords,r=e.download,i=e.href,s=e.neutral,l=e.onClick,d=e.rel,f=e.tabIndex,p=e.target,h=e.title,m=e.label,g=e.icon,y=e.children,v=e.useTitle,b=h||(n?void 0:m);return(0,u.jsxs)(c,{alt:t,breakWords:n,download:r,href:i,neutral:s,onClick:l,rel:d,tabIndex:f,target:p,title:v?b:void 0,children:[g&&(0,u.jsx)(o.A,{icon:g,position:a.xX.position.PREPEND}),m||y]})};l.defaultProps={breakWords:!0,useTitle:!0,href:"#",target:"_self"};const d=l;var f,p=n(1504);const h=(0,s.Ay)(p.N_)(f||(f=(0,i.A)(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,a.Ed)(),a.t7.color("secondary"),a.t7.color("text"),a.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?a.t7.color("text"):a.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}))},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>B,AE:()=>Y,C$:()=>R,F1:()=>z,Gw:()=>I,Js:()=>G,Li:()=>N,MM:()=>M,Ng:()=>U,QF:()=>A,aB:()=>C,fN:()=>H,oY:()=>W,or:()=>D,pR:()=>_,rY:()=>j,rs:()=>L,v8:()=>F,vB:()=>T,vr:()=>V,zG:()=>q});var r,o,a,i,s,c,u,l,d,f,p,h,m,g,y,v,b,w,O,x,k,S=n(57528),P=n(43759),E=n(33181),D=P.Ay.b.withConfig({displayName:"StyledB"})(r||(r=(0,S.A)(["\n && {\n ","\n }\n ","\n"])),(0,E.Ed)({fontWeight:E.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),_=P.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=(0,S.A)(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),E.t7.color("backgroundTypographyCode"),E.t7.radii("form"),E.hs.space(-4),E.hs.space(-2)),j=P.Ay.del.withConfig({displayName:"StyledDel"})(a||(a=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),A=P.Ay.em.withConfig({displayName:"StyledEm"})(i||(i=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),C=P.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(s||(s=(0,S.A)(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-2),E.hs.space(-1)),T=P.Ay.i.withConfig({displayName:"StyledI"})(c||(c=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),M=P.Ay.ins.withConfig({displayName:"StyledIns"})(u||(u=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),I=P.Ay.label.withConfig({displayName:"StyledLabel"})(l||(l=(0,S.A)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-1)),N=P.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=(0,S.A)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),color:E.t7.color("paper")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.t7.color("signal.info"),E.t7.radii("form"),E.hs.space(-4),E.hs.space(-2)),R=P.Ay.p.withConfig({displayName:"StyledP"})(f||(f=(0,S.A)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-1)),L=P.Ay.pre.withConfig({displayName:"StyledPre"})(p||(p=(0,S.A)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n display: block;\n margin: 0 0 ",";\n padding: "," ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.t7.color("backgroundTypographyCode"),E.t7.radii("form"),E.t7.color("border"),E.hs.space(-1),E.hs.space(-3),E.hs.space(-2)),F=P.Ay.s.withConfig({displayName:"StyledS"})(h||(h=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),H=P.Ay.small.withConfig({displayName:"StyledSmall"})(m||(m=(0,S.A)(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,E.Ed)(),E.t7.fontSize("factor"),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),W=P.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),B=P.Ay.sub.withConfig({displayName:"StyledSub"})(y||(y=(0,S.A)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),Y=P.Ay.sup.withConfig({displayName:"StyledSup"})(v||(v=(0,S.A)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),U=P.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontWeight:E.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),z=P.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),V=P.Ay.u.withConfig({displayName:"StyledU"})(O||(O=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),q=P.Ay.var.withConfig({displayName:"StyledVar"})(x||(x=(0,S.A)(["\n && {\n ","\n ","\n\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),G=P.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=(0,S.A)(["\n && {\n ","\n ","\n\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}))},60284:(e,t,n)=>{"use strict";n.d(t,{pR:()=>z.pR,rd:()=>m,Gw:()=>z.Gw,vx:()=>F,oY:()=>z.oY,dV:()=>B,gv:()=>he,Ay:()=>me});n(5556);var r,o,a,i,s,c,u,l=n(33181),d=n(57528),f=n(43759),p=function(e){var t;switch(e.styledLike){case"H1":t=l.hs.font(5)(e);break;case"H2":t=l.hs.font(4)(e);break;case"H3":t=l.hs.font(3)(e);break;case"H4":t=l.hs.font(2)(e);break;case"H5":t=l.hs.font(1)(e);break;default:t=l.hs.font(0)(e)}return(0,l.Ed)({fontWeight:l.w4.fontWeight("bold"),fontSize:t})},h=function(e){return(0,f.AH)(r||(r=(0,d.A)(["\n margin-top: ",";\n margin-bottom: ",";\n\n h1 + &,\n h2 + &,\n h3 + &,\n h4 + &,\n h5 + &,\n h6 + & {\n margin-top: 0;\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])),l.hs.space(0),l.hs.space(-1))},m=f.Ay.h1.withConfig({displayName:"StyledH1"})(o||(o=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),g=f.Ay.h2.withConfig({displayName:"StyledH2"})(a||(a=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),y=f.Ay.h3.withConfig({displayName:"StyledH3"})(i||(i=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),v=f.Ay.h4.withConfig({displayName:"StyledH4"})(s||(s=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),b=f.Ay.h5.withConfig({displayName:"StyledH5"})(c||(c=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),w=f.Ay.h6.withConfig({displayName:"StyledH6"})(u||(u=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),O=n(74848),x=function(e){return(0,O.jsx)(m,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};x.defaultProps={breakWords:!0,styledLike:"H1"};var k=function(e){return(0,O.jsx)(g,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};k.defaultProps={breakWords:!0,styledLike:"H2"};var S=function(e){return(0,O.jsx)(y,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};S.defaultProps={breakWords:!0,styledLike:"H3"};var P=function(e){return(0,O.jsx)(v,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};P.defaultProps={breakWords:!0,styledLike:"H4"};var E=function(e){return(0,O.jsx)(b,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};E.defaultProps={breakWords:!0,styledLike:"H5"};var D,_,j,A,C,T,M,I=function(e){return(0,O.jsx)(w,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};I.defaultProps={breakWords:!0,styledLike:"H6"};var N=f.Ay.dd.withConfig({displayName:"StyledDd"})(D||(D=(0,d.A)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Ed)(),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),R=f.Ay.dl.withConfig({displayName:"StyledDl"})(_||(_=(0,d.A)(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.hs.space(-1)),L=f.Ay.dt.withConfig({displayName:"StyledDt"})(j||(j=(0,d.A)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Ed)({fontWeight:l.w4.fontWeight("bold")}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),F=f.Ay.li.withConfig({displayName:"StyledLi"})(A||(A=(0,d.A)(["\n && {\n ","\n ","\n }\n"])),(0,l.Ed)(),(0,l.KV)()),H=f.Ay.ol.withConfig({displayName:"StyledList"})(C||(C=(0,d.A)(["\n && {\n display: block;\n list-style-position: outside;\n margin: 0 0 "," ",";\n padding: 0;\n\n &&,\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.hs.space(-1),l.hs.space(-.1)),W=(0,f.Ay)(H).withConfig({displayName:"StyledOl"})(T||(T=(0,d.A)(["\n list-style-type: decimal;\n"]))),B=(0,f.Ay)(H).withConfig({displayName:"StyledUl"})(M||(M=(0,d.A)(["\n && {\n list-style-type: disc;\n }\n"]))),Y=function(e){return(0,O.jsx)(N,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})},U=function(e){return(0,O.jsx)(L,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};Y.defaultProps=U.defaultProps={breakWords:!0};var z=n(5016),V=function(e){return(0,O.jsx)(z.or,{breakWords:e.breakWords,title:de(e),children:e.children})},q=function(e){return(0,O.jsx)(z.pR,{title:de(e),children:e.children})},G=function(e){return(0,O.jsx)(z.rY,{breakWords:e.breakWords,title:de(e),children:e.children})},K=function(e){return(0,O.jsx)(z.QF,{breakWords:e.breakWords,title:de(e),children:e.children})},$=function(e){return(0,O.jsx)(z.aB,{breakWords:e.breakWords,title:de(e),children:e.children})},Q=function(e){return(0,O.jsx)(z.vB,{breakWords:e.breakWords,title:de(e),children:e.children})},X=function(e){return(0,O.jsx)(z.MM,{breakWords:e.breakWords,title:de(e),children:e.children})},Z=function(e){return(0,O.jsx)(z.Li,{breakWords:e.breakWords,title:de(e),children:e.children})},J=function(e){return(0,O.jsx)(z.C$,{breakWords:e.breakWords,title:de(e),children:e.children})},ee=function(e){return(0,O.jsx)(z.rs,{breakWords:e.breakWords,title:de(e),children:e.children})},te=function(e){return(0,O.jsx)(z.v8,{breakWords:e.breakWords,title:de(e),children:e.children})},ne=function(e){return(0,O.jsx)(z.fN,{breakWords:e.breakWords,title:de(e),children:e.children})},re=function(e){return(0,O.jsx)(z.oY,{breakWords:e.breakWords,title:de(e),children:e.children})},oe=function(e){return(0,O.jsx)(z.AB,{breakWords:e.breakWords,title:de(e),children:e.children})},ae=function(e){return(0,O.jsx)(z.AE,{breakWords:e.breakWords,title:de(e),children:e.children})},ie=function(e){return(0,O.jsx)(z.Ng,{breakWords:e.breakWords,title:de(e),children:e.children})},se=function(e){return(0,O.jsx)(z.F1,{breakWords:e.breakWords,title:e.title,dateTime:e.dateTime,children:e.children})},ce=function(e){return(0,O.jsx)(z.vr,{breakWords:e.breakWords,title:de(e),children:e.children})},ue=function(e){return(0,O.jsx)(z.zG,{breakWords:e.breakWords,title:de(e),children:e.children})},le=function(e){return(0,O.jsx)(z.Js,{breakWords:e.breakWords,title:de(e),children:e.children})},de=function(e){return!e.useTitle||e.breakWords?void 0:(0,l.GV)(e.children)};V.defaultProps=q.defaultProps=G.defaultProps=K.defaultProps=$.defaultProps=Q.defaultProps=X.defaultProps=Z.defaultProps=J.defaultProps=ee.defaultProps=le.defaultProps=te.defaultProps=ne.defaultProps=re.defaultProps=ie.defaultProps=oe.defaultProps=ae.defaultProps=ce.defaultProps=ue.defaultProps={breakWords:!0,useTitle:!0},se.defaultProps={breakWords:!1};var fe=n(58156),pe=n.n(fe),he=function(e,t){var n="\n color: ".concat(l.w4.color("text")(e),";\n font-family: ").concat(l.w4.fontFamily("regular")(e),";\n font-size: ").concat(l.hs.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(l.w4.fontWeight("regular")(e),";\n line-height: ").concat(l.w4.lineHeight("regular")(e),";\n\n a {\n color: ").concat(l.w4.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(pe()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(pe()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(l.w4.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(l.hs.font(5)(e),";}\n h2 {font-size: ").concat(l.hs.font(4)(e),";}\n h3 {font-size: ").concat(l.hs.font(3)(e),";}\n h4 {font-size: ").concat(l.hs.font(2)(e),";}\n h5 {font-size: ").concat(l.hs.font(1)(e),";}\n h6 {font-size: ").concat(l.hs.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(l.w4.fontWeight("bold")(e),";\n margin-top: ").concat(l.hs.space(0)(e),";\n margin-bottom: ").concat(l.hs.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(l.hs.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n a {\n text-decoration: none; \n }\n\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(l.hs.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n};const me={H1:x,H2:k,H3:S,H4:P,H5:E,H6:I,Dd:Y,Dt:U,Dl:function(e){return(0,O.jsx)(R,{children:e.children})},Li:function(e){return(0,O.jsx)(F,{children:e.children})},Ol:function(e){return(0,O.jsx)(W,{children:e.children})},Ul:function(e){return(0,O.jsx)(B,{as:"ul",children:e.children})},B:V,Code:q,Del:G,Em:K,Figcaption:$,I:Q,Ins:X,Label:function(e){return(0,O.jsx)(z.Gw,{breakWords:e.breakWords,title:de(e),htmlFor:e.for,children:e.children})},Mark:Z,P:J,Pre:ee,Q:le,S:te,Small:ne,Span:re,Strong:ie,Sub:oe,Sup:ae,Time:se,U:ce,Var:ue}},7248:(e,t,n)=>{"use strict";n.d(t,{cx:()=>X,$n:()=>U,se:()=>pg,jt:()=>Yt,Ar:()=>Qg,eG:()=>zs,kH:()=>_c,In:()=>b.A,tQ:()=>fy,kt:()=>S,dK:()=>Rw,AM:()=>Ol,Q6:()=>Sw,Wk:()=>gn.Wk,l6:()=>Hl,$O:()=>vb,N1:()=>G,OV:()=>H,pR:()=>mt.pR,oX:()=>yn,iY:()=>b.i,rd:()=>mt.rd,jx:()=>bn,gQ:()=>ly,oY:()=>mt.oY,Ec:()=>Os,o5:()=>mt.Ay,Hr:()=>Mp,Ed:()=>c.Ed,xX:()=>c.xX,hs:()=>c.hs,w4:()=>c.w4,t7:()=>c.t7,c2:()=>c.LE});var r,o,a=n(57528),i=n(1504),s=n(43759),c=n(33181),u=(0,s.AH)(r||(r=(0,a.A)(["\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,c.Ed)(),c.w4.color("text"),c.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,s.Ay)(i.k2)(o||(o=(0,a.A)(["\n ",";\n"])),u);var l;const d=(0,s.Ay)(i.N_).withConfig({shouldForwardProp:function(e){return!["neutral"].includes(e)}})(l||(l=(0,a.A)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),c.t7.color("text"),u);var f,p=n(64467),h=n(53986),m=n(5556),g=n.n(m),y=n(4883),v=n.n(y),b=n(47850),w=n(74848);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=(0,y.lazy)((function(){return n.e(389).then(n.bind(n,68389))}));const S=function(e){return(0,w.jsx)(y.Suspense,{fallback:f||(f=(0,w.jsx)(v().Fragment,{})),children:(0,w.jsx)(k,x({},e))})};var P=n(5544),E=n(96424),D="hidden",_="responsive",j={labelVisibility:_},A=v().createContext(j);var C,T,M,I,N,R,L=(0,s.AH)(I||(I=(0,a.A)(["\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"])),c.w4.radii("button"),c.hs.space(-1.38),c.hs.space(-2.1),c.hs.space(0),(0,c.Ed)(),(function(e){return e.withoutBackground?(0,s.AH)(M||(M=(0,a.A)(["\n background: transparent;\n"]))):(0,c.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,s.AH)(C||(C=(0,a.A)(["\n line-height: ",";\n padding: "," ",";\n "])),c.w4.lineHeight("dense")({theme:n}),c.hs.space(-3.5)({theme:n}),c.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,s.AH)(T||(T=(0,a.A)(["\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===c.xX.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(F," {\n display: none;\n }\n ");return t&&n===D?r:t&&n===_&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),F=s.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(N||(N=(0,a.A)([""])));const H=s.Ay.button.withConfig({displayName:"StyledButton"})(R||(R=(0,a.A)(["\n ","\n"])),L);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}function B(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,p.A)(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}var Y=v().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,u=e.iconPosition,l=e.iconOnly,d=e.children,f=(0,y.useContext)(A).labelVisibility;return(0,w.jsxs)(H,B(B(B({ref:t},n),e),{},{ink:r||c.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:f,children:[a&&!i&&(0,w.jsx)(b.A,{icon:a}),i&&(0,w.jsx)(S,{ink:r||c.xX.ink.BASE,look:s,position:u,size:"1em"}),!l&&o?(0,w.jsx)(F,{children:o}):d||""]}))}));Y.defaultProps={iconPosition:c.xX.position.PREPEND,look:c.xX.look.FLAT,type:"button"};const U=Y;var z;(0,s.Ay)(i.N_).withConfig({shouldForwardProp:function(e){return!["labelVisibility","ink","label","icon","withoutBackground"].includes(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(z||(z=(0,a.A)(["\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"])),c.t7.color("text"),L);var V,q;const G=s.Ay.button.withConfig({displayName:"StyledButton"})(q||(q=(0,a.A)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,c.Ed)(),c.x5,(function(){return(0,s.AH)(V||(V=(0,a.A)(["\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"])),c.hs.space(-3),c.w4.fontSize("base"),c.w4.lineHeight("regular"),c.hs.space(-3))}));function K(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=v().forwardRef((function(e,t){return(0,w.jsx)(G,$($({ref:t,type:"button"},e),{},{children:(0,w.jsx)(b.A,{icon:e.icon})}))}));Q.propTypes={disabled:g().bool,icon:g().string.isRequired,ink:c.xX.inkPropTypes,look:g().oneOf([c.xX.look.FLAT,c.xX.look.RAISED]),onClick:g().func,title:g().string,tabIndex:g().number,"data-cy":g().string};const X=Q;var Z,J,ee,te,ne=n(11843),re=n(60436),oe=n(49859),ae=n.n(oe),ie=n(52098),se=n.n(ie),ce=n(30115),ue=n.n(ce),le=n(45228),de=n.n(le),fe="bodyAttributes",pe="htmlAttributes",he="titleAttributes",me={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ge=(Object.keys(me).map((function(e){return me[e]})),"charset"),ye="cssText",ve="href",be="http-equiv",we="innerHTML",Oe="itemprop",xe="name",ke="property",Se="rel",Pe="src",Ee="target",De={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_e="defaultTitle",je="defer",Ae="encodeSpecialCharacters",Ce="onChangeClientState",Te="titleTemplate",Me=Object.keys(De).reduce((function(e,t){return e[De[t]]=t,e}),{}),Ie=[me.NOSCRIPT,me.SCRIPT,me.STYLE],Ne="data-react-helmet",Re="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},Le=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}}(),Fe=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},He=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},We=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,"'")},Be=function(e){var t=qe(e,me.TITLE),n=qe(e,Te);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=qe(e,_e);return t||r||void 0},Ye=function(e){return qe(e,Ce)||function(){}},Ue=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Fe({},e,t)}),{})},ze=function(e,t){return t.filter((function(e){return void 0!==e[me.BASE]})).map((function(e){return e[me.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Ve=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Xe("Helmet: "+e+' should be of type "Array". Instead found type "'+Re(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,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===Se&&"canonical"===e[n].toLowerCase()||c===Se&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==we&&s!==ye&&s!==Oe||(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 a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=de()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},qe=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},Ge=(Z=Date.now(),function(e){var t=Date.now();t-Z>16?(Z=t,e(t)):setTimeout((function(){Ge(e)}),0)}),Ke=function(e){return clearTimeout(e)},$e="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ge:n.g.requestAnimationFrame||Ge,Qe="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ke:n.g.cancelAnimationFrame||Ke,Xe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ze=null,Je=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;nt(me.BODY,r),nt(me.HTML,o),tt(d,f);var p={baseTag:rt(me.BASE,n),linkTags:rt(me.LINK,a),metaTags:rt(me.META,i),noscriptTags:rt(me.NOSCRIPT,s),scriptTags:rt(me.SCRIPT,u),styleTags:rt(me.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)},et=function(e){return Array.isArray(e)?e.join(""):e},tt=function(e,t){void 0!==e&&document.title!==e&&(document.title=et(e)),nt(me.TITLE,t)},nt=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ne),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ne):n.getAttribute(Ne)!==i.join(",")&&n.setAttribute(Ne,i.join(","))}},rt=function(e,t){var n=document.head||document.querySelector(me.HEAD),r=n.querySelectorAll(e+"["+Ne+"]"),o=Array.prototype.slice.call(r),a=[],i=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===we)n.innerHTML=t.innerHTML;else if(r===ye)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(Ne,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},ot=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}),"")},at=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[De[n]||n]=e[n],t}),t)},it=function(e,t,n){switch(e){case me.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ne]=!0,o=at(n,r),[v().createElement(me.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=ot(n),a=et(t);return o?"<"+e+" "+Ne+'="true" '+o+">"+We(a,r)+"</"+e+">":"<"+e+" "+Ne+'="true">'+We(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case fe:case pe:return{toComponent:function(){return at(t)},toString:function(){return ot(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ne]=!0,r);return Object.keys(t).forEach((function(e){var n=De[e]||e;if(n===we||n===ye){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),v().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===we||e===ye)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+We(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===Ie.indexOf(e);return t+"<"+e+" "+Ne+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},st=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:it(me.BASE,t,r),bodyAttributes:it(fe,n,r),htmlAttributes:it(pe,o,r),link:it(me.LINK,a,r),meta:it(me.META,i,r),noscript:it(me.NOSCRIPT,s,r),script:it(me.SCRIPT,c,r),style:it(me.STYLE,u,r),title:it(me.TITLE,{title:d,titleAttributes:f},r)}},ct=se()((function(e){return{baseTag:ze([ve,Ee],e),bodyAttributes:Ue(fe,e),defer:qe(e,je),encode:qe(e,Ae),htmlAttributes:Ue(pe,e),linkTags:Ve(me.LINK,[Se,ve],e),metaTags:Ve(me.META,[xe,ge,be,ke,Oe],e),noscriptTags:Ve(me.NOSCRIPT,[we],e),onChangeClientState:Ye(e),scriptTags:Ve(me.SCRIPT,[Pe,we],e),styleTags:Ve(me.STYLE,[ye],e),title:Be(e),titleAttributes:Ue(he,e)}}),(function(e){Ze&&Qe(Ze),e.defer?Ze=$e((function(){Je(e,(function(){Ze=null}))})):(Je(e),Ze=null)}),st)((function(){return null})),ut=(J=ct,te=ee=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!ue()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case me.SCRIPT:case me.NOSCRIPT:return{innerHTML:t};case me.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,a=e.nestedChildren;return Fe({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Fe({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case me.TITLE:return Fe({},o,((t={})[r.type]=i,t.titleAttributes=Fe({},a),t));case me.BODY:return Fe({},o,{bodyAttributes:Fe({},a)});case me.HTML:return Fe({},o,{htmlAttributes:Fe({},a)})}return Fe({},o,((n={})[r.type]=Fe({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Fe({},t);return Object.keys(e).forEach((function(t){var r;n=Fe({},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 v().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Me[n]||n]=e[n],t}),t)}(He(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case me.LINK:case me.META:case me.NOSCRIPT:case me.SCRIPT:case me.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=He(e,["children"]),r=Fe({},n);return t&&(r=this.mapChildrenToProps(t,r)),v().createElement(J,r)},Le(t,null,[{key:"canUseDOM",set:function(e){J.canUseDOM=e}}]),t}(v().Component),ee.propTypes={base:ae().object,bodyAttributes:ae().object,children:ae().oneOfType([ae().arrayOf(ae().node),ae().node]),defaultTitle:ae().string,defer:ae().bool,encodeSpecialCharacters:ae().bool,htmlAttributes:ae().object,link:ae().arrayOf(ae().object),meta:ae().arrayOf(ae().object),noscript:ae().arrayOf(ae().object),onChangeClientState:ae().func,script:ae().arrayOf(ae().object),style:ae().arrayOf(ae().object),title:ae().string,titleAttributes:ae().object,titleTemplate:ae().string},ee.defaultProps={defer:!0,encodeSpecialCharacters:!0},ee.peek=J.peek,ee.rewind=function(){var e=J.rewind();return e||(e=st({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},te);ut.renderStatic=ut.rewind;var lt=n(42838),dt=n.n(lt),ft=["border","border-spacing","padding","margin","text-align","width"];dt().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=(n=e.style,ft.map((function(e){var t=n[e];return t&&"string"==typeof t&&!function(e){return/\w\(/.test(e)}(t)?"".concat(e,":").concat(t,";"):null})).filter(Boolean).join(""));t?e.setAttribute("style",t):e.removeAttribute("style")}var n;return e}));const pt=function(e){return e?dt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},ht={sanitizeHtml:pt};var mt=n(60284),gt={error:"exclamation-circle",home:"house-blank"},yt=function(e){return gt[e]||e};const vt=function(e){var t=e.type;return t&&"record"!==t?(0,w.jsx)(b.A,{icon:yt(t)}):null};var bt,wt,Ot,xt,kt,St,Pt=["component"],Et=s.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(bt||(bt=(0,a.A)(["\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||c.w4.color("backgroundBreadcrumbs")(e)}),c.hs.space(-.7),c.hs.space(.39)),Dt=(0,s.Ay)((function(e){var t=e.component,n=(0,h.A)(e,Pt);return v().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(wt||(wt=(0,a.A)(["\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"])),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.color("secondaryLight"),c.w4.color("breadcrumbsActive")),_t=s.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Ot||(Ot=(0,a.A)(["\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"])),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.color("breadcrumbsActive")),jt=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(xt||(xt=(0,a.A)(["\n margin-left: ",";\n margin-right: ",";\n"])),c.hs.space(-2),c.hs.space(-2)),At=s.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(kt||(kt=(0,a.A)(["\n "," {\n margin-right: ",";\n }\n"])),b.i,c.hs.space(-1));const Ct=function(){return St||(St=(0,w.jsx)(jt,{breakWords:!0,children:(0,w.jsx)(b.A,{icon:"chevron-right"})}))};var Tt;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 It(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,p.A)(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 Nt=function(e){return e.title||e.display},Rt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Nt(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Nt).join(" - ");break;default:r=Nt(n)}return r},Lt=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,f=[].concat((0,re.A)(a),(0,re.A)(i?[i]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var o,a=e.display||"",i=n===f.length-1?_t:Dt,s=n===f.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,w.jsx)(u,{})):Tt||(Tt=(0,w.jsx)(d,{}));return(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)(At,{children:(0,w.jsxs)(i,It(It(It({neutral:!0},s),l),{},{onClick:(o=e,function(){c&&!1!==o.clickable&&c(o)}),component:p,children:[(0,w.jsx)(vt,{type:e.type}),(0,w.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,w.jsx)(Ct,{},"icon".concat(n)),t]}));return(0,w.jsxs)(Et,{backgroundColor:s,children:[l?(0,w.jsx)(ut,{defer:!1,children:(0,w.jsx)("title",{children:Rt(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,w.jsx)(w.Fragment,{children:h})]})};Lt.defaultProps={pathPrefix:""};const Ft=Lt;(0,ne.injectIntl)(Ft);var Ht,Wt,Bt=s.Ay.div.withConfig({displayName:"StyledWrapper"})(Ht||(Ht=(0,a.A)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,c.Ed)(),(function(e){return e.theme.colors.signal.danger}),c.t7.color("paper"),c.hs.space(-.5));const Yt=function(){return Wt||(Wt=(0,w.jsx)(Bt,{children:(0,w.jsx)(ne.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Ut;const zt=s.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Ut||(Ut=(0,a.A)(["\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"])),H);var Vt=v().forwardRef((function(e,t){return(0,w.jsx)(zt,{ref:t,children:e.children})}));Vt.propTypes={children:g().node};const qt=Vt;var Gt=n(90179),Kt=n.n(Gt),$t=n(62193),Qt=n.n($t),Xt=n(62243),Zt=n.n(Xt),Jt=n(36193),en=n.n(Jt),tn=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},nn=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},rn={outline:"none"},on=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,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=nn(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=v().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)},nn(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?v().cloneElement(e({focused:t,getRef:this.ref}),n):v().createElement("div",tn({ref:this.ref,style:rn},n),e)},t}(v().Component);on.propTypes={children:en().oneOfType([en().node,en().func]).isRequired,onBlur:en().func,onFocus:en().func},on.defaultProps={onBlur:function(){},onFocus:function(){}};const an=on;var sn,cn,un,ln,dn,fn,pn,hn,mn,gn=n(88357),yn=(0,s.AH)(sn||(sn=(0,a.A)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),vn=s.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(cn||(cn=(0,a.A)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),yn),bn=(0,s.AH)(un||(un=(0,a.A)(["\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,c.Ed)({color:c.t7.color("text")})}),c.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),wn=(0,s.AH)(ln||(ln=(0,a.A)(["\n display: flex;\n align-items: center;\n"]))),On=s.Ay.div.withConfig({displayName:"StyledEditableControl"})(dn||(dn=(0,a.A)(["\n &&& {\n ","\n }\n"])),wn),xn=s.Ay.span.withConfig({displayName:"StyledEditableValue"})(fn||(fn=(0,a.A)(["\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"])),c.t7.color("signal.danger")),kn=n(82284),Sn=function(e){return-1*Math.abs(e)},Pn=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,kn.A)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},En=n(58156),Dn=n.n(En),_n=s.Ay.div.withConfig({displayName:"StyledLocationEdit"})(pn||(pn=(0,a.A)(["\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"])),yn,c.hs.space(-2),c.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Dn()(n,"colors.textDisabled"):Dn()(n,"colors.text")}),bn,c.t7.color("paper"),c.t7.color("signal.info"),c.t7.color("secondaryLight"),c.t7.color("backgroundItemHover")),jn=(0,s.Ay)(_n).withConfig({displayName:"StyledAddressEdit"})(hn||(hn=(0,a.A)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function An(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 Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Tn=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},u=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,w.jsxs)(mt.Ay.Span,{children:[i,", ",o," ",a," ",s," ",u]})},l=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},d=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},f={id:a,value:o&&o.street?c(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Cn(Cn({},o),{},(0,p.A)({},t,a)))}),disabled:i};return(0,w.jsx)(an,{children:function(e){var t,n,o,a,c,p=e.getRef;return(0,w.jsxs)(jn,{immutable:i,name:s,ref:p,children:[(0,w.jsx)(Zt(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:d,getSuggestionValue:(c="street",function(e){return e[c]}),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,w.jsxs)(On,{children:[r.isLoading&&(mn||(mn=(0,w.jsx)(S,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,w.jsx)(gn.Ay,{href:Pn(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Mn=n(69843),In=n.n(Mn),Nn=n(7350),Rn=n.n(Nn);function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(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 Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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 Bn(e,t){if(e){if("string"==typeof e)return Wn(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)?Wn(e,t):void 0}}function Yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||Bn(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 Un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var zn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vn(){return Vn=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},Vn.apply(this,arguments)}function qn(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 Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gn(e,t)}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kn(e)}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)}function Qn(e,t){if(t&&("object"===$n(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 Xn(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=Kn(e);if(t){var o=Kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qn(this,n)}}function Zn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bn(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 Jn=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}(),er="-ms-",tr="-moz-",nr="-webkit-",rr="comm",or="rule",ar="decl",ir="@keyframes",sr=Math.abs,cr=String.fromCharCode,ur=Object.assign;function lr(e){return e.trim()}function dr(e,t,n){return e.replace(t,n)}function fr(e,t){return e.indexOf(t)}function pr(e,t){return 0|e.charCodeAt(t)}function hr(e,t,n){return e.slice(t,n)}function mr(e){return e.length}function gr(e){return e.length}function yr(e,t){return t.push(e),e}var vr=1,br=1,wr=0,Or=0,xr=0,kr="";function Sr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:vr,column:br,length:i,return:""}}function Pr(e,t){return ur(Sr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Er(){return xr=Or>0?pr(kr,--Or):0,br--,10===xr&&(br=1,vr--),xr}function Dr(){return xr=Or<wr?pr(kr,Or++):0,br++,10===xr&&(br=1,vr++),xr}function _r(){return pr(kr,Or)}function jr(){return Or}function Ar(e,t){return hr(kr,e,t)}function Cr(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 Tr(e){return vr=br=1,wr=mr(kr=e),Or=0,[]}function Mr(e){return kr="",e}function Ir(e){return lr(Ar(Or-1,Lr(91===e?e+2:40===e?e+1:e)))}function Nr(e){for(;(xr=_r())&&xr<33;)Dr();return Cr(e)>2||Cr(xr)>3?"":" "}function Rr(e,t){for(;--t&&Dr()&&!(xr<48||xr>102||xr>57&&xr<65||xr>70&&xr<97););return Ar(e,jr()+(t<6&&32==_r()&&32==Dr()))}function Lr(e){for(;Dr();)switch(xr){case e:return Or;case 34:case 39:34!==e&&39!==e&&Lr(xr);break;case 40:41===e&&Lr(e);break;case 92:Dr()}return Or}function Fr(e,t){for(;Dr()&&e+xr!==57&&(e+xr!==84||47!==_r()););return"/*"+Ar(t,Or-1)+"*"+cr(47===e?e:Dr())}function Hr(e){for(;!Cr(_r());)Dr();return Ar(e,Or)}function Wr(e){return Mr(Br("",null,null,null,[""],e=Tr(e),0,[0],e))}function Br(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=v,v=Dr()){case 40:if(108!=h&&58==pr(k,d-1)){-1!=fr(k+=dr(Ir(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ir(v);break;case 9:case 10:case 13:case 32:k+=Nr(h);break;case 92:k+=Rr(jr()-1,7);continue;case 47:switch(_r()){case 42:case 47:yr(Ur(Fr(Dr(),jr()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=mr(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&mr(k)-d&&yr(p>32?zr(k+";",r,n,d-1):zr(dr(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(yr(x=Yr(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===v)if(0===l)Br(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===pr(k,3)?100:f){case 100:case 109:case 115:Br(e,x,x,r&&yr(Yr(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:Br(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=i;break;case 58:d=1+mr(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Er())continue;switch(k+=cr(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(mr(k)-1)*y,y=1;break;case 64:45===_r()&&(k+=Ir(Dr())),f=_r(),l=d=mr(b=k+=Hr(jr())),v++;break;case 45:45===h&&2==mr(k)&&(m=0)}}return a}function Yr(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=gr(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=hr(e,d+1,d=sr(m=i[h])),b=e;y<p;++y)(b=lr(m>0?f[y]+" "+v:dr(v,/&\f/g,f[y])))&&(c[g++]=b);return Sr(e,t,n,0===o?or:s,c,u,l)}function Ur(e,t,n){return Sr(e,t,n,rr,cr(xr),hr(e,2,-2),0)}function zr(e,t,n,r){return Sr(e,t,n,ar,hr(e,0,r),hr(e,r+1,-1),r)}function Vr(e,t){for(var n="",r=gr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function qr(e,t,n,r){switch(e.type){case"@import":case ar:return e.return=e.return||e.value;case rr:return"";case ir:return e.return=e.value+"{"+Vr(e.children,r)+"}";case or:e.value=e.props.join(",")}return mr(n=Vr(e.children,r))?e.return=e.value+"{"+n+"}":""}const Gr=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Kr=function(e,t,n){for(var r=0,o=0;r=o,o=_r(),38===r&&12===o&&(t[n]=1),!Cr(o);)Dr();return Ar(e,Or)},$r=function(e,t){return Mr(function(e,t){var n=-1,r=44;do{switch(Cr(r)){case 0:38===r&&12===_r()&&(t[n]=1),e[n]+=Kr(Or-1,t,n);break;case 2:e[n]+=Ir(r);break;case 4:if(44===r){e[++n]=58===_r()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cr(r)}}while(r=Dr());return e}(Tr(e),t))},Qr=new WeakMap,Xr=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)||Qr.get(n))&&!r){Qr.set(e,!0);for(var o=[],a=$r(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Zr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Jr(e,t){switch(function(e,t){return 45^pr(e,0)?(((t<<2^pr(e,0))<<2^pr(e,1))<<2^pr(e,2))<<2^pr(e,3):0}(e,t)){case 5103:return nr+"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 nr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nr+e+tr+e+er+e+e;case 6828:case 4268:return nr+e+er+e+e;case 6165:return nr+e+er+"flex-"+e+e;case 5187:return nr+e+dr(e,/(\w+).+(:[^]+)/,nr+"box-$1$2"+er+"flex-$1$2")+e;case 5443:return nr+e+er+"flex-item-"+dr(e,/flex-|-self/,"")+e;case 4675:return nr+e+er+"flex-line-pack"+dr(e,/align-content|flex-|-self/,"")+e;case 5548:return nr+e+er+dr(e,"shrink","negative")+e;case 5292:return nr+e+er+dr(e,"basis","preferred-size")+e;case 6060:return nr+"box-"+dr(e,"-grow","")+nr+e+er+dr(e,"grow","positive")+e;case 4554:return nr+dr(e,/([^-])(transform)/g,"$1"+nr+"$2")+e;case 6187:return dr(dr(dr(e,/(zoom-|grab)/,nr+"$1"),/(image-set)/,nr+"$1"),e,"")+e;case 5495:case 3959:return dr(e,/(image-set\([^]*)/,nr+"$1$`$1");case 4968:return dr(dr(e,/(.+:)(flex-)?(.*)/,nr+"box-pack:$3"+er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nr+e+e;case 4095:case 3583:case 4068:case 2532:return dr(e,/(.+)-inline(.+)/,nr+"$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(mr(e)-1-t>6)switch(pr(e,t+1)){case 109:if(45!==pr(e,t+4))break;case 102:return dr(e,/(.+:)(.+)-([^]+)/,"$1"+nr+"$2-$3$1"+tr+(108==pr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fr(e,"stretch")?Jr(dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pr(e,t+1))break;case 6444:switch(pr(e,mr(e)-3-(~fr(e,"!important")&&10))){case 107:return dr(e,":",":"+nr)+e;case 101:return dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nr+(45===pr(e,14)?"inline-":"")+"box$3$1"+nr+"$2$3$1"+er+"$2box$3")+e}break;case 5936:switch(pr(e,t+11)){case 114:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nr+e+er+e+e}return e}var eo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=Jr(e.value,e.length);break;case ir:return Vr([Pr(e,{value:dr(e.value,"@","@"+nr)})],r);case or: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 Vr([Pr(e,{props:[dr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Vr([Pr(e,{props:[dr(t,/:(plac\w+)/,":"+nr+"input-$1")]}),Pr(e,{props:[dr(t,/:(plac\w+)/,":-moz-$1")]}),Pr(e,{props:[dr(t,/:(plac\w+)/,er+"input-$1")]})],r)}return""}))}}];const to=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||eo;var o,a,i={},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++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[qr,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Xr,Zr].concat(r,f),l=gr(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,Vr(Wr(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Jn({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};n(4146);var no=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const ro=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 oo=n(83969),ao=/[A-Z]|^ms/g,io=/_EMO_([^_]+?)_([^]*?)_EMO_/g,so=function(e){return 45===e.charCodeAt(1)},co=function(e){return null!=e&&"boolean"!=typeof e},uo=Gr((function(e){return so(e)?e:e.replace(ao,"-$&").toLowerCase()})),lo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(io,(function(e,t,n){return po={name:t,styles:n,next:po},t}))}return 1===oo.A[e]||so(e)||"number"!=typeof t||0===t?t:t+"px"};function fo(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 po={name:n.name,styles:n.styles,next:po},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)po={name:r.name,styles:r.styles,next:po},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+=fo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":co(i)&&(r+=uo(a)+":"+lo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=fo(e,t,i);switch(a){case"animation":case"animationName":r+=uo(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)co(i[c])&&(r+=uo(a)+":"+lo(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=po,a=n(e);return po=o,fo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var po,ho=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var mo=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="";po=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=fo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=fo(n,t,e[i]),r&&(o+=a[i]);ho.lastIndex=0;for(var s,c="";null!==(s=ho.exec(o));)c+="-"+s[1];return{name:ro(o)+c,styles:o,next:po}},go=!!y.useInsertionEffect&&y.useInsertionEffect,yo=go||function(e){return e()},vo={}.hasOwnProperty,bo=(0,y.createContext)("undefined"!=typeof HTMLElement?to({key:"css"}):null);bo.Provider;var wo=function(e){return(0,y.forwardRef)((function(t,n){var r=(0,y.useContext)(bo);return e(t,r,n)}))},Oo=(0,y.createContext)({});var xo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ko=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;no(t,n,r);yo((function(){return function(e,t,n){no(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},So=wo((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[xo],a=[r],i="";"string"==typeof e.className?i=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,a,e.className):null!=e.className&&(i=e.className+" ");var s=mo(a,void 0,(0,y.useContext)(Oo));i+=t.key+"-"+s.name;var c={};for(var u in e)vo.call(e,u)&&"css"!==u&&u!==xo&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,y.createElement)(y.Fragment,null,(0,y.createElement)(ko,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,y.createElement)(o,c))}));var Po=function(e,t){var n=arguments;if(null==t||!vo.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=So,o[1]=function(e,t){var n={};for(var r in t)vo.call(t,r)&&(n[r]=t[r]);return n[xo]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return y.createElement.apply(null,o)};function Eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mo(t)}var Do=n(81845),_o=n.n(Do);Math.min,Math.max;const jo=["top","right","bottom","left"];jo.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ao(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Co(e){if(null==e)return window;if(!Ao(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function To(e){return Co(e).getComputedStyle(e)}function Mo(e){return Ao(e)?"":e?(e.nodeName||"").toLowerCase():""}function Io(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function No(e){return e instanceof Co(e).HTMLElement}function Ro(e){return e instanceof Co(e).Element}function Lo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Co(e).ShadowRoot||e instanceof ShadowRoot)}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=To(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ho(){return!/^((?!chrome|android).)*safari/i.test(Io())}function Wo(e){return["html","body","#document"].includes(Mo(e))}Math.min,Math.max;const Bo=Math.round;function Yo(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&No(e)&&(c=e.offsetWidth>0&&Bo(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Bo(s.height)/e.offsetHeight||1);const l=Ro(e)?Co(e):window,d=!Ho()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a: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 Uo(e){return(t=e,(t instanceof Co(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function zo(e){if("html"===Mo(e))return e;const t=e.assignedSlot||e.parentNode||(Lo(e)?e.host:null)||Uo(e);return Lo(t)?t.host:t}function Vo(e){const t=zo(e);return Wo(t)?e.ownerDocument.body:No(t)&&Fo(t)?t:Vo(t)}function qo(e,t){var n;void 0===t&&(t=[]);const r=Vo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Co(r),i=o?[a].concat(a.visualViewport||[],Fo(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qo(i))}const Go=y.useLayoutEffect;var Ko=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$o=function(){};function Qo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Xo(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 a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Qo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Zo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$n(e)&&null!==e?[e]:[];var t},Jo=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,Hn({},Un(e,Ko))},ea=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function na(e){return ta(e)?window.pageYOffset:e.scrollTop}function ra(e,t){ta(e)?window.scrollTo(0,t):e.scrollTop=t}function oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$o,o=na(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ra(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function aa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ra(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ra(e,Math.max(t.offsetTop-o,0))}function ia(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var sa=!1,ca={get passive(){return sa=!0}},ua="undefined"!=typeof window?window:{};ua.addEventListener&&ua.removeEventListener&&(ua.addEventListener("p",$o,ca),ua.removeEventListener("p",$o,!1));var la=sa;function da(e){return null!=e}function fa(e,t,n){return e?t:n}var pa=["children","innerProps"],ha=["children","innerProps"];function ma(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=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,y=i?window.innerHeight:ta(l=c)?window.innerHeight:l.clientHeight,v=na(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,P=p-y+v+b,E=v+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&oa(c,P,D),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&oa(c,P,D),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,j=i?O:k;return j>=r&&(_=Math.min(j-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&ra(c,P),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&oa(c,E,D),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var A=t;return(!i&&k>=r||i&&O>=r)&&(A=i?O-w:k-w),a&&oa(c,E,D),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ga,ya=function(e){return"auto"===e?"bottom":e},va=(0,y.createContext)(null),ba=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,y.useContext)(va)||{}).setPortalPlacement,u=(0,y.useRef)(null),l=Yn((0,y.useState)(r),2),d=l[0],f=l[1],p=Yn((0,y.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Go((function(){var e=u.current;if(e){var t="fixed"===a,s=ma({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,g]),t({ref:u,placerProps:Hn(Hn({},e),{},{placement:h||ya(o),maxHeight:d})})},wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Po("div",Vn({},ea(e,"menu",{menu:!0}),{ref:n},r),t)},Oa=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Hn({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},xa=Oa,ka=Oa,Sa=["size"],Pa=["innerProps","isRtl","size"];var Ea,Da,_a={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ja=function(e){var t=e.size,n=Un(e,Sa);return Po("svg",Vn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_a},n))},Aa=function(e){return Po(ja,Vn({size:20},e),Po("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"}))},Ca=function(e){return Po(ja,Vn({size:20},e),Po("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"}))},Ta=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Hn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ma=Ta,Ia=Ta,Na=function(){var e=Eo.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_"}}}(ga||(Ea=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Da||(Da=Ea.slice(0)),ga=Object.freeze(Object.defineProperties(Ea,{raw:{value:Object.freeze(Da)}})))),Ra=function(e){var t=e.delay,n=e.offset;return Po("span",{css:Eo({animation:"".concat(Na," 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"},"","")})},La=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Po("div",Vn({ref:o},ea(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Fa=["data"],Ha=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Po("div",Vn({},ea(e,"group",{group:!0}),s),Po(a,Vn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Po("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],Ba={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ya={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Hn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ba)},Ua=function(e){return Hn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ba)},za=function(e){var t=e.children,n=e.innerProps;return Po("div",n,t)};var Va=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Po(c,{data:r,innerProps:Hn(Hn({},ea(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},Po(u,{data:r,innerProps:Hn({},ea(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Po(l,{data:r,innerProps:Hn(Hn({},ea(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},qa={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Po(Aa,null))},Control:La,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Po(Ca,null))},DownChevron:Ca,CrossIcon:Aa,Group:Ha,GroupHeading:function(e){var t=Jo(e);t.data;var n=Un(t,Fa);return Po("div",Vn({},ea(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Po("span",Vn({},t,ea(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Jo(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Un(r,Wa);return Po("div",Vn({},ea(e,"input",{"input-container":!0}),{"data-value":n||""}),Po("input",Vn({className:t({input:!0},s),ref:o,style:Ua(i),disabled:a},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Un(e,Pa);return Po("div",Vn({},ea(Hn(Hn({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Po(Ra,{delay:0,offset:n}),Po(Ra,{delay:160,offset:!0}),Po(Ra,{delay:320,offset:!n}))},Menu:wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Po("div",Vn({},ea(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,a=e.menuPlacement,i=e.menuPosition,s=(0,y.useRef)(null),c=(0,y.useRef)(null),u=Yn((0,y.useState)(ya(a)),2),l=u[0],d=u[1],f=(0,y.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=Yn((0,y.useState)(null),2),h=p[0],m=p[1],g=(0,y.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"===i?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,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Go((function(){g()}),[g]);var v=(0,y.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:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...Ro(e)?qo(e):e.contextElement?qo(e.contextElement):[],...qo(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Ro(e)&&!s&&d.observe(e),Ro(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Yo(e):null;return s&&function t(){const r=Yo(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),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Go((function(){v()}),[v]);var b=(0,y.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var w=Po("div",Vn({ref:b},ea(Hn(Hn({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Po(va.Provider,{value:f},t?(0,Do.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Un(e,ha);return Po("div",Vn({},ea(Hn(Hn({},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=Un(e,pa);return Po("div",Vn({},ea(Hn(Hn({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Va,MultiValueContainer:za,MultiValueLabel:za,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({role:"button"},n),t||Po(Aa,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Po("div",Vn({},ea(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Po("div",Vn({},ea(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Po("div",Vn({},ea(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 Po("div",Vn({},ea(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ga=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ka(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Ga(r)&&Ga(o)))return!1;var r,o;return!0}for(var $a={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"},Qa=function(e){return Po("span",Vn({css:$a},e))},Xa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=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 a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,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&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).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:"",".")}},Za=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=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,b=s.screenReaderStatus,w=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,y.useMemo)((function(){return Hn(Hn({},Xa),l||{})}),[l]),P=(0,y.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=Hn({isDisabled:u&&h(u,i),label:l,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),E=(0,y.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,h,S,o,i,u]),D=(0,y.useMemo)((function(){var e="";if(g&&v.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,S,v,b,O]),_="initial-input-focus"===(null==t?void 0:t.action),j=(0,y.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:p,isSearchable:m,tabSelectsValue:w,isInitialFocus:_})}return e}),[x,n,r,p,h,m,g,S,i,w,_]),A=Po(y.Fragment,null,Po("span",{id:"aria-selection"},P),Po("span",{id:"aria-focused"},E),Po("span",{id:"aria-results"},D),Po("span",{id:"aria-guidance"},j));return Po(y.Fragment,null,Po(Qa,{id:c},_&&A),Po(Qa,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&A))},Ja=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ei=new RegExp("["+Ja.map((function(e){return e.letters})).join("")+"]","g"),ti={},ni=0;ni<Ja.length;ni++)for(var ri=Ja[ni],oi=0;oi<ri.letters.length;oi++)ti[ri.letters[oi]]=ri.base;var ai=function(e){return e.replace(ei,(function(e){return ti[e]}))},ii=function(e,t){void 0===t&&(t=Ka);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ai),si=function(e){return e.replace(/^\s+|\s+$/g,"")},ci=function(e){return"".concat(e.label," ").concat(e.value)},ui=["innerRef"];function li(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=Yn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Yn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Un(e,ui),"onExited","in","enter","exit","appear");return Po("input",Vn({ref:t},n,{css:Eo({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 di=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var fi=["boxSizing","height","overflow","paddingRight","position"],pi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hi(e){e.preventDefault()}function mi(e){e.stopPropagation()}function gi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yi(){return"ontouchstart"in window||navigator.maxTouchPoints}var vi=!("undefined"==typeof window||!window.document||!window.document.createElement),bi=0,wi={capture:!1,passive:!1};var Oi=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},xi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ki(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,y.useRef)(!1),s=(0,y.useRef)(!1),c=(0,y.useRef)(0),u=(0,y.useRef)(null),l=(0,y.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&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&di(e)}}),[n,r,o,a]),d=(0,y.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,y.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,y.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,y.useCallback)((function(e){if(e){var t=!!la&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,y.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,y.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,y.useRef)({}),a=(0,y.useRef)(null),i=(0,y.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;if(r&&fi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&bi<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(pi).forEach((function(e){var t=pi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&yi()&&(t.addEventListener("touchmove",hi,wi),e&&(e.addEventListener("touchstart",gi,wi),e.addEventListener("touchmove",mi,wi))),bi+=1}}),[r]),s=(0,y.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;bi=Math.max(bi-1,0),r&&bi<1&&fi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&yi()&&(t.removeEventListener("touchmove",hi,wi),e&&(e.removeEventListener("touchstart",gi,wi),e.removeEventListener("touchmove",mi,wi)))}}),[r]);return(0,y.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return Po(y.Fragment,null,n&&Po("div",{onClick:Oi,css:xi}),t((function(e){o(e),a(e)})))}var Si={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Pi=function(e){var t=e.name,n=e.onFocus;return Po("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Si,value:"",onChange:function(){}})};function Ei(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 Di(){return Ei(/^Mac/i)}function _i(){return Ei(/^iPhone/i)||Ei(/^iPad/i)||Di()&&navigator.maxTouchPoints>1}var ji={clearIndicator:Ia,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,a=o.colors,i=o.borderRadius;return Hn({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?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ma,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 Hn({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,a=r.colors;return Hn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Hn(Hn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ya),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Hn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:ka,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Hn((Ln(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ln(n,"position","absolute"),Ln(n,"width","100%"),Ln(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Hn({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,a=n.colors;return Hn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Hn({overflow:"hidden",textOverflow:a||void 0===a?"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,a=n.colors,i=e.isFocused;return Hn({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:xa,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Hn({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*i.baseUnit,"px ").concat(3*i.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 Hn({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,a=r.colors;return Hn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Hn({alignItems:"center",display:r&&o&&a?"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 Ai,Ci={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ia(),captureMenuScroll:!ia(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Hn({ignoreCase:!0,ignoreAccents:!0,stringify:ci,trim:!0,matchFrom:"any"},Ai),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?si(t):t,u=i?si(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=ii(c),u=ai(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-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 Mi(e,t,n,r){return{type:"option",data:t,isDisabled:Bi(e,t,n),isSelected:Yi(e,t,n),label:Hi(e,t),value:Wi(e,t),index:r}}function Ii(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Mi(e,n,t,r)})).filter((function(t){return Li(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Mi(e,n,t,r);return Li(e,a)?a:void 0})).filter(da)}function Ni(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ri(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Zn(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 Li(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!zi(e)||!a)&&Ui(e,{label:i,value:s,data:o},r)}var Fi=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Hi=function(e,t){return e.getOptionLabel(t)},Wi=function(e,t){return e.getOptionValue(t)};function Bi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Yi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wi(e,t);return n.some((function(t){return Wi(e,t)===r}))}function Ui(e,t,n){return!e.filterOption||e.filterOption(t,n)}var zi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vi=1,qi=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&&Gn(e,t)}(a,e);var t,n,r,o=Xn(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,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=Di()||_i(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.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:a});o?t.setValue([].concat(Zn(i),[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),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=fa(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(fa(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=fa(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Fi(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Ri(Ii(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 Xo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Hi(t.props,e)},t.getOptionValue=function(e){return Wi(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=ji[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Hn(Hn({},qa),e.components);var e},t.buildCategorizedOptions=function(){return Ii(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ni(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Hn({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),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){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 zi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,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||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():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:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Vi),t.state.selectValue=Zo(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=Fi(n,r[i])}return t}return t=a,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&&aa(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&&(aa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ci):Hn(Hn({},Ci),this.props.theme):Ci}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,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:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Bi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Yi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ui(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,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=Hn(Hn(Hn({"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?y.createElement(u,Vn({},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:a,form:i,type:"text",value:o},m)):y.createElement(li,Vn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$o,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,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,b=m.isFocused;if(!this.hasValue()||!l)return p?null:y.createElement(s,Vn({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return y.createElement(n,Vn({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var w=g[0];return y.createElement(i,Vn({},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,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,Vn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?y.createElement(e,Vn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return y.createElement(n,Vn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,Vn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,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,b=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,P=f.menuShouldScrollIntoView,E=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var j,A=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,f=d===o,p=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return y.createElement(u,Vn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return y.createElement(n,Vn({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(m){var C=g({inputValue:h});if(null===C)return null;j=y.createElement(s,l,C)}else{var T=E({inputValue:h});if(null===T)return null;j=y.createElement(c,l,T)}var M={minMenuHeight:v,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=y.createElement(ba,Vn({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return y.createElement(o,Vn({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),y.createElement(ki,{captureEnabled:p,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return y.createElement(a,Vn({},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}),j)})))}));return k||"fixed"===x?y.createElement(i,Vn({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return y.createElement(Pi,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return y.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return y.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):y.createElement("input",{name:a,type:"hidden",value:""});return y.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return y.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return y.createElement(Za,Vn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,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,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return y.createElement(r,Vn({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),y.createElement(t,Vn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),y.createElement(o,Vn({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(n,Vn({},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,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Zo(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ni(Ii(e,t))}(e,h):[],y=d?Ri(Ii(e,h),"".concat(c,"-option")):[],v=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:Fi(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:fa(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Hn(Hn(Hn({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Component);qi.defaultProps=Ti;var Gi=(0,y.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=Un(e,zn),m=Yn((0,y.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],b=Yn((0,y.useState)(void 0!==c?c:o),2),w=b[0],O=b[1],x=Yn((0,y.useState)(void 0!==p?p:i),2),k=x[0],S=x[1],P=(0,y.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),E=(0,y.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),D=(0,y.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),_=(0,y.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),j=void 0!==s?s:g,A=void 0!==c?c:w,C=void 0!==p?p:k;return Hn(Hn({},h),{},{inputValue:j,menuIsOpen:A,onChange:P,onInputChange:E,onMenuClose:_,onMenuOpen:D,value:C})}(e);return y.createElement(qi,Vn({ref:t},n))})),Ki=Gi;function $i(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xi=(0,ne.injectIntl)((function(e){var t;return(0,w.jsx)("span",Qi(Qi({},e.innerProps),{},{children:(0,w.jsx)(X,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Zi=n(2418);function Ji(){return Ji=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},Ji.apply(this,arguments)}const es=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class ts extends y.Component{constructor(...e){super(...e),this._targetNode=y.createRef(),this._elementNode=y.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,y.isValidElement)(e)||(e=null),(0,y.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Zi(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={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,es),a=Ji({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),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(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?y.createElement(y.Fragment,null,e,t&&this._elementParentNode&&Do.createPortal(t,this._elementParentNode)):null}}var ns,rs,os,as,is,ss,cs,us,ls,ds,fs,ps,hs;function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ys=s.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(ns||(ns=(0,a.A)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),vs=s.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(rs||(rs=(0,a.A)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),bs=s.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(os||(os=(0,a.A)(["\n outline-style: none;\n"]))),ws=s.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(as||(as=(0,a.A)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),c.t7.color("paper"),c.t7.radii("form"),(function(e){return e.isTopAligned&&(0,s.AH)(is||(is=(0,a.A)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Os=(0,s.Ay)(ts).withConfig({displayName:"StyledTether"})(ss||(ss=(0,a.A)(["\n && {\n z-index: 1;\n }\n"]))),xs=(s.Ay.div.withConfig({displayName:"StyledNonTether"})(cs||(cs=(0,a.A)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),c.hs.space(1.5)),(0,s.Ay)(qa.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(us||(us=(0,a.A)(["\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}))),ks=s.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(ls||(ls=(0,a.A)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,c.Ed)({color:c.t7.color("signal.info"),lineHeight:"normal"}),c.hs.space(-.5),c.hs.space(-.2)),Ss=s.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(ds||(ds=(0,a.A)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?c.t7.color("text"):"inherit"})),Ps=s.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(fs||(fs=(0,a.A)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Es=s.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(ps||(ps=(0,a.A)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Ds=s.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(hs||(hs=(0,a.A)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),_s=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,u=c.hs.space(-1)({theme:e}),l=c.hs.space(-2)({theme:e}),d={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},f=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return gs(gs({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return gs(gs(gs({},e),d),{},{outline:0})},control:function(e,t){return gs(gs({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:f(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),gs(gs({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return gs(gs({},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),gs(gs(gs({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},f(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(a),borderRadius:s}},menuList:function(t,n){return gs(gs(gs({},t),d),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return gs(gs({},t),{},{borderRadius:s,margin:"".concat(u," ").concat(l," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},f(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return gs(gs({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return gs(gs({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":gs(gs({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return gs(gs({},e),{},{color:t.isDisabled?i:o,margin:0})},valueContainer:function(e,t){return gs(gs({},e),{},{padding:0,margin:0})}}};function js(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 As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Cs=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,w.jsx)(qa.DropdownIndicator,As(As({},e),{},{children:(0,w.jsx)(Ps,{children:(0,w.jsx)(X,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};g().shape({key:g().any.isRequired,display:g().string});var Ts,Ms,Is;function Ns(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 Rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ls=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Fs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Hs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ws=function(e){e.stopPropagation()};const Bs=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,w.jsx)(ws,{isTopAligned:f,children:(0,w.jsxs)(qa.IndicatorsContainer,Rs(Rs({},e),{},{children:[e.children,n&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Fs(n,u),children:Ts||(Ts=(0,w.jsx)(X,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Ls(r,d,u),children:Ms||(Ms=(0,w.jsx)(X,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Hs(o,u),children:Is||(Is=(0,w.jsx)(X,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Ys;const Us=function(){return Ys||(Ys=(0,w.jsx)("span",{children:(0,w.jsx)(S,{size:"1.8rem"})}))};var zs="tocco-app",Vs=n(85072),qs=n.n(Vs),Gs=n(97825),Ks=n.n(Gs),$s=n(77659),Qs=n.n($s),Xs=n(55056),Zs=n.n(Xs),Js=n(10540),ec=n.n(Js),tc=n(41113),nc=n.n(tc),rc=n(2063),oc={};oc.styleTagTransform=nc(),oc.setAttributes=Zs(),oc.insert=Qs().bind(null,"head"),oc.domAPI=Ks(),oc.insertStyleElement=ec();qs()(rc.A,oc);rc.A&&rc.A.locals&&rc.A.locals;var ac,ic=n(59386),sc=n.n(ic),cc=s.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(ac||(ac=(0,a.A)(["\n cursor: pointer;\n user-select: none;\n"]))),uc=v().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,w.jsx)(cc,{onClick:r,ref:t,children:n})}));uc.propTypes={children:g().any,onOpen:g().func};const lc=uc;var dc=n(88365),fc=n(51732),pc=function(){(0,ic.registerLocale)("en",fc.A.getDateFnsLocale("en")),(0,ic.registerLocale)("en-US",fc.A.getDateFnsLocale("en")),(0,ic.registerLocale)("de-CH",fc.A.getDateFnsLocale("de-CH")),(0,ic.registerLocale)("de-DE",fc.A.getDateFnsLocale("de-DE")),(0,ic.registerLocale)("de",fc.A.getDateFnsLocale("de")),(0,ic.registerLocale)("fr",fc.A.getDateFnsLocale("fr")),(0,ic.registerLocale)("fr-CH",fc.A.getDateFnsLocale("fr")),(0,ic.registerLocale)("it",fc.A.getDateFnsLocale("it")),(0,ic.registerLocale)("it-CH",fc.A.getDateFnsLocale("it")),(0,ic.setDefaultLocale)("de")};pc();(0,s.SL)((0,ne.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,y.useRef)(null),c=(0,y.useState)(!1),u=(0,P.A)(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,w.jsx)(sc(),{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:i,enableTabLoop:!1,customInput:(0,w.jsx)(lc,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var hc,mc,gc,yc,vc,bc,wc=c.t7.color("secondaryLight"),Oc=c.t7.color("paper"),xc=c.t7.color("text"),kc=c.t7.color("secondary"),Sc=c.t7.radii("form"),Pc=(0,s.DU)(hc||(hc=(0,a.A)(["\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"])),b.i,xc,c.t7.radii("form"),Sc,wc,Oc,(0,c.Ed)(),(0,c.Ed)(),wc,Sc,Sc,c.hs.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",Oc,c.hs.font(1),c.t7.fontWeight("bold"),(0,c.Ed)({fontWeight:c.t7.fontWeight("bold")}),Oc,c.hs.font(-2),c.hs.space(-1.8),kc,kc,kc,wc,wc,wc,kc,(0,c.Ed)(),Oc,c.hs.space(-.5),c.t7.color("backgroundItemHover"),Sc,c.hs.space(-.5),Oc,c.t7.color("border"),c.t7.radii("form"),c.hs.space(-1),c.hs.space(-1),c.hs.font(1),Oc,c.t7.fontWeight("bold"),c.hs.space(-1),Oc,c.hs.font(0),xc,wc,wc,c.t7.radii("form"),Oc,wc,kc,xc,xc,Oc,wc,c.t7.color("backgroundItemHover"),c.t7.color("textDisabled"),c.t7.color("border"),c.t7.radii("form")),Ec=(0,s.DU)(mc||(mc=(0,a.A)(["\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"])),c.t7.color("signal.success"),c.t7.color("signal.info"),c.t7.color("signal.warning"),c.t7.color("signal.danger"),c.t7.color("textDisabled")),Dc=(0,s.DU)(gc||(gc=(0,a.A)(["\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"])),c.t7.color("backgroundScrollbar"),c.t7.color("backgroundScrollbarHover"),c.t7.color("backgroundScrollbar"));const _c=function(){return(0,w.jsxs)(w.Fragment,{children:[yc||(yc=(0,w.jsx)(Ec,{})),vc||(vc=(0,w.jsx)(Pc,{})),bc||(bc=(0,w.jsx)(Dc,{}))]})};function jc(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 Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Cc=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,w.jsx)(Os,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,w.jsx)("div",{ref:e})},renderElement:function(o){return(0,w.jsx)("div",{ref:o,className:zs,children:(0,w.jsx)(xs,Ac(Ac({},Kt()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ic=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,w.jsxs)(qa.MenuList,Mc(Mc({},e),{},{className:"MenuList",children:[n,r&&(0,w.jsx)(ks,{children:o})]}))};y.createContext(),y.createContext();var Nc=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Rc="undefined"!=typeof window&&window.document&&window.document.createElement?y.useLayoutEffect:y.useEffect,Lc="top",Fc="bottom",Hc="right",Wc="left",Bc="auto",Yc=[Lc,Fc,Hc,Wc],Uc="start",zc="end",Vc="clippingParents",qc="viewport",Gc="popper",Kc="reference",$c=Yc.reduce((function(e,t){return e.concat([t+"-"+Uc,t+"-"+zc])}),[]),Qc=[].concat(Yc,[Bc]).reduce((function(e,t){return e.concat([t,t+"-"+Uc,t+"-"+zc])}),[]),Xc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Zc(e){return e?(e.nodeName||"").toLowerCase():null}function Jc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eu(e){return e instanceof Jc(e).Element||e instanceof Element}function tu(e){return e instanceof Jc(e).HTMLElement||e instanceof HTMLElement}function nu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Jc(e).ShadowRoot||e instanceof ShadowRoot)}const ru={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];tu(o)&&Zc(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});tu(r)&&Zc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ou(e){return e.split("-")[0]}var au=Math.max,iu=Math.min,su=Math.round;function cu(){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 uu(){return!/^((?!chrome|android).)*safari/i.test(cu())}function lu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&tu(e)&&(o=e.offsetWidth>0&&su(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&su(r.height)/e.offsetHeight||1);var i=(eu(e)?Jc(e):window).visualViewport,s=!uu()&&n,c=(r.left+(s&&i?i.offsetLeft:0))/o,u=(r.top+(s&&i?i.offsetTop:0))/a,l=r.width/o,d=r.height/a;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function du(e){var t=lu(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 fu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pu(e){return Jc(e).getComputedStyle(e)}function hu(e){return["table","td","th"].indexOf(Zc(e))>=0}function mu(e){return((eu(e)?e.ownerDocument:e.document)||window.document).documentElement}function gu(e){return"html"===Zc(e)?e:e.assignedSlot||e.parentNode||(nu(e)?e.host:null)||mu(e)}function yu(e){return tu(e)&&"fixed"!==pu(e).position?e.offsetParent:null}function vu(e){for(var t=Jc(e),n=yu(e);n&&hu(n)&&"static"===pu(n).position;)n=yu(n);return n&&("html"===Zc(n)||"body"===Zc(n)&&"static"===pu(n).position)?t:n||function(e){var t=/firefox/i.test(cu());if(/Trident/i.test(cu())&&tu(e)&&"fixed"===pu(e).position)return null;var n=gu(e);for(nu(n)&&(n=n.host);tu(n)&&["html","body"].indexOf(Zc(n))<0;){var r=pu(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 bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wu(e,t,n){return au(e,iu(t,n))}function Ou(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const ku={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=ou(n.placement),c=bu(s),u=[Wc,Hc].indexOf(s)>=0?"height":"width";if(a&&i){var l=function(e,t){return Ou("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xu(e,Yc))}(o.padding,n),d=du(a),f="y"===c?Lc:Wc,p="y"===c?Fc:Hc,h=n.rects.reference[u]+n.rects.reference[c]-i[c]-n.rects.popper[u],m=i[c]-n.rects.reference[c],g=vu(a),y=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=l[f],w=y-d[u]-l[p],O=y/2-d[u]/2+v,x=wu(b,O,w),k=c;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-O,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)))&&fu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var Pu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Eu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.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 y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=Wc,w=Lc,O=window;if(u){var x=vu(n),k="clientHeight",S="clientWidth";if(x===Jc(n)&&"static"!==pu(x=mu(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===Lc||(o===Wc||o===Hc)&&a===zc)w=Fc,m-=(d&&x===O&&O.visualViewport?O.visualViewport.height:x[k])-r.height,m*=c?1:-1;if(o===Wc||(o===Lc||o===Fc)&&a===zc)b=Hc,p-=(d&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-r.width,p*=c?1:-1}var P,E=Object.assign({position:s},u&&Pu),D=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:su(n*o)/o||0,y:su(r*o)/o||0}}({x:p,y:m},Jc(n)):{x:p,y:m};return p=D.x,m=D.y,c?Object.assign({},E,((P={})[w]=v?"0":"",P[b]=y?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P)):Object.assign({},E,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const Du={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,u={placement:ou(t.placement),variation:Su(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,Eu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eu(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 _u={passive:!0};const ju={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=Jc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,_u)})),s&&c.addEventListener("resize",n.update,_u),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,_u)})),s&&c.removeEventListener("resize",n.update,_u)}},data:{}};var Au={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e){return e.replace(/left|right|bottom|top/g,(function(e){return Au[e]}))}var Tu={start:"end",end:"start"};function Mu(e){return e.replace(/start|end/g,(function(e){return Tu[e]}))}function Iu(e){var t=Jc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nu(e){return lu(mu(e)).left+Iu(e).scrollLeft}function Ru(e){var t=pu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Lu(e){return["html","body","#document"].indexOf(Zc(e))>=0?e.ownerDocument.body:tu(e)&&Ru(e)?e:Lu(gu(e))}function Fu(e,t){var n;void 0===t&&(t=[]);var r=Lu(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Jc(r),i=o?[a].concat(a.visualViewport||[],Ru(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Fu(gu(i)))}function Hu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wu(e,t,n){return t===qc?Hu(function(e,t){var n=Jc(e),r=mu(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var u=uu();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+Nu(e),y:c}}(e,n)):eu(t)?function(e,t){var n=lu(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):Hu(function(e){var t,n=mu(e),r=Iu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=au(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=au(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Nu(e),c=-r.scrollTop;return"rtl"===pu(o||n).direction&&(s+=au(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}(mu(e)))}function Bu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Fu(gu(e)),n=["absolute","fixed"].indexOf(pu(e).position)>=0&&tu(e)?vu(e):e;return eu(n)?t.filter((function(e){return eu(e)&&fu(e,n)&&"body"!==Zc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Wu(e,n,r);return t.top=au(o.top,t.top),t.right=iu(o.right,t.right),t.bottom=iu(o.bottom,t.bottom),t.left=au(o.left,t.left),t}),Wu(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Yu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ou(o):null,i=o?Su(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case Lc:t={x:s,y:n.y-r.height};break;case Fc:t={x:s,y:n.y+n.height};break;case Hc:t={x:n.x+n.width,y:c};break;case Wc:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=a?bu(a):null;if(null!=u){var l="y"===u?"height":"width";switch(i){case Uc:t[u]=t[u]-(n[l]/2-r[l]/2);break;case zc:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function Uu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,c=void 0===s?Vc:s,u=n.rootBoundary,l=void 0===u?qc:u,d=n.elementContext,f=void 0===d?Gc:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=Ou("number"!=typeof g?g:xu(g,Yc)),v=f===Gc?Kc:Gc,b=e.rects.popper,w=e.elements[h?v:f],O=Bu(eu(w)?w:w.contextElement||mu(e.elements.popper),c,l,i),x=lu(e.elements.reference),k=Yu({reference:x,element:b,strategy:"absolute",placement:o}),S=Hu(Object.assign({},b,k)),P=f===Gc?S:x,E={top:O.top-P.top+y.top,bottom:P.bottom-O.bottom+y.bottom,left:O.left-P.left+y.left,right:P.right-O.right+y.right},D=e.modifiersData.offset;if(f===Gc&&D){var _=D[o];Object.keys(E).forEach((function(e){var t=[Hc,Fc].indexOf(e)>=0?1:-1,n=[Lc,Fc].indexOf(e)>=0?"y":"x";E[e]+=_[n]*t}))}return E}const zu={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,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,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,y=ou(g),v=c||(y===g||!h?[Cu(g)]:function(e){if(ou(e)===Bc)return[];var t=Cu(e);return[Mu(e),t,Mu(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(ou(n)===Bc?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qc:c,l=Su(r),d=l?s?$c:$c.filter((function(e){return Su(e)===l})):Yc,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]=Uu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ou(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,O=t.rects.popper,x=new Map,k=!0,S=b[0],P=0;P<b.length;P++){var E=b[P],D=ou(E),_=Su(E)===Uc,j=[Lc,Fc].indexOf(D)>=0,A=j?"width":"height",C=Uu(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),T=j?_?Hc:Wc:_?Fc:Lc;w[A]>O[A]&&(T=Cu(T));var M=Cu(T),I=[];if(a&&I.push(C[D]<=0),s&&I.push(C[T]<=0,C[M]<=0),I.every((function(e){return e}))){S=E,k=!1;break}x.set(E,I)}if(k)for(var N=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},R=h?3:1;R>0;R--){if("break"===N(R))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vu(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 qu(e){return[Lc,Hc,Fc,Wc].some((function(t){return e[t]>=0}))}const Gu={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,a=t.modifiersData.preventOverflow,i=Uu(t,{elementContext:"reference"}),s=Uu(t,{altBoundary:!0}),c=Vu(i,r),u=Vu(s,o,a),l=qu(c),d=qu(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 Ku={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Qc.reduce((function(e,n){return e[n]=function(e,t,n){var r=ou(e),o=[Wc,Lc].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Wc,Hc].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[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]=i}};const $u={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Qu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,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=Uu(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),y=ou(t.placement),v=Su(t.placement),b=!v,w=bu(y),O="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(a){var j,A="y"===w?Lc:Wc,C="y"===w?Fc:Hc,T="y"===w?"height":"width",M=x[w],I=M+g[A],N=M-g[C],R=p?-S[T]/2:0,L=v===Uc?k[T]:S[T],F=v===Uc?-S[T]:-k[T],H=t.elements.arrow,W=p&&H?du(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=B[A],U=B[C],z=wu(0,k[T],W[T]),V=b?k[T]/2-R-z-Y-E.mainAxis:L-z-Y-E.mainAxis,q=b?-k[T]/2+R+z+U+E.mainAxis:F+z+U+E.mainAxis,G=t.elements.arrow&&vu(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,$=null!=(j=null==D?void 0:D[w])?j:0,Q=M+q-$,X=wu(p?iu(I,M+V-$-K):I,M,p?au(N,Q):N);x[w]=X,_[w]=X-M}if(s){var Z,J="x"===w?Lc:Wc,ee="x"===w?Fc:Hc,te=x[O],ne="y"===O?"height":"width",re=te+g[J],oe=te-g[ee],ae=-1!==[Lc,Wc].indexOf(y),ie=null!=(Z=null==D?void 0:D[O])?Z:0,se=ae?re:te-k[ne]-S[ne]-ie+E.altAxis,ce=ae?te+k[ne]+S[ne]-ie-E.altAxis:oe,ue=p&&ae?function(e,t,n){var r=wu(e,t,n);return r>n?n:r}(se,te,ce):wu(p?se:re,te,p?ce:oe);x[O]=ue,_[O]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Xu(e,t,n){void 0===n&&(n=!1);var r=tu(t),o=tu(t)&&function(e){var t=e.getBoundingClientRect(),n=su(t.width)/e.offsetWidth||1,r=su(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=mu(t),i=lu(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Zc(t)||Ru(a))&&(s=function(e){return e!==Jc(e)&&tu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Iu(e);var t}(t)),tu(t)?((c=lu(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Nu(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function Zu(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}var Ju={placement:"bottom",modifiers:[],strategy:"absolute"};function el(){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 tl(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ju:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ju,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:eu(e)?Fu(e):e.contextElement?Fu(e.contextElement):[],popper:Fu(t)};var i,u,f=function(e){var t=Zu(e);return Xc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),u=i.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(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:l,options:r}),i=function(){};c.push(a||i)}})),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(el(t,n)){s.rects={reference:Xu(t,vu(n),"fixed"===s.options.strategy),popper:du(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,c=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),u=!0}};if(!el(e,t))return l;function d(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var nl=tl({defaultModifiers:[ju,$u,Du,ru,Ku,zu,Qu,ku,Gu]}),rl=[],ol=function(e,t,n){void 0===n&&(n={});var r=y.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||rl},a=y.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],s=a[1],c=y.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);Do.flushSync((function(){s({styles:Nc(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Nc(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=y.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return ue()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=y.useRef();return Rc((function(){l.current&&l.current.setOptions(u)}),[u]),Rc((function(){if(null!=e&&null!=t){var r=(n.createPopper||nl)(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:i.styles,attributes:i.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var al,il,sl;n(86171);var cl,ul,ll,dl=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(al||(al=(0,a.A)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),c.t7.color("text"),c.hs.font(1),c.hs.space(-1)),fl=(0,s.AH)(il||(il=(0,a.A)(["\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"])),c.t7.color("textLabel"),c.t7.lineHeight("regular"),c.t7.fontWeight("regular"),c.hs.space(-3),c.hs.space(-1.5),c.t7.radii("statusLabel")),pl=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledHtmlFormatter"})(sl||(sl=(0,a.A)(["\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,mt.gv)(e,"html")}),c.hs.space(-1),c.hs.space(-1.5),fl,c.t7.color("signal.dangerLight"),c.t7.color("signal.infoLight"),c.t7.color("signal.warningLight"),c.t7.color("signal.successLight"),fl,c.t7.color("signal.dangerLight"),c.t7.radii("statusLabel"),c.hs.space(-2.1),c.hs.space(0),c.t7.color("paper"),c.t7.color("signal.info"),c.t7.color("signal.warningLight"),c.hs.space(-1.5),c.hs.space(.5)),hl=16,ml=s.Ay.div.withConfig({displayName:"StyledBoxWrapper"})(cl||(cl=(0,a.A)(["\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"])),c.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":c.hs.space(0)}),c.t7.color("textPopover")),gl=s.Ay.div.withConfig({displayName:"StyledBox"})(ul||(ul=(0,a.A)(["\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,mt.gv)(e,"html")}),pl,c.t7.color("textPopover")),yl=s.Ay.i.withConfig({displayName:"StyledArrow"})(ll||(ll=(0,a.A)(["\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"])),hl,8,-8,8,8,8,c.t7.color("backgroundPopover"),-6.4,8,8,8,c.t7.color("backgroundPopover"),hl,8,c.t7.color("backgroundPopover"));function vl(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wl=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,a=(0,y.useState)(null),i=(0,P.A)(a,2),s=i[0],c=i[1],u=(0,y.useState)(null),l=(0,P.A)(u,2),d=l[0],f=l[1],p=(0,y.useState)(null),h=(0,P.A)(p,2),m=h[0],g=h[1],v=(0,y.useState)(!1),b=(0,P.A)(v,2),O=b[0],x=b[1],k=(0,y.useState)(null),S=(0,P.A)(k,2),E=S[0],D=S[1],_=ol(s,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}]}),j=_.styles,A=_.attributes;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{ref:c,onMouseOut:function(){E&&clearTimeout(E),x(!1)},onMouseOver:function(){var e=setTimeout((function(){x(!0)}),500);D(e)},children:t}),O&&n&&_o().createPortal((0,w.jsxs)(ml,bl(bl({ref:f,style:j.popper,rimless:o},A.popper),{},{className:zs,children:[(0,w.jsx)(gl,{isPlainHtml:r,children:n}),(0,w.jsx)(yl,bl({ref:g,style:j.arrow},A.popper))]})),document.body)]})};wl.defaultProps={isPlainHtml:!0,rimless:!1};const Ol=wl;const xl=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=Dn()(a,t.key,null),u=(0,w.jsx)("span",{style:n.css,children:r}),l=s?(0,w.jsx)(ys,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,w.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,w.jsx)(Ol,{content:c?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(c)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,w.jsx)(Ds,{children:l})};var kl=n(85015),Sl=n.n(kl),Pl=n(42194),El=n.n(Pl),Dl=n(23076);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=["linkComp"],Cl=function(e,t){var n=Dl.A.difference(e,t),r=El()(Kt()(n,Al),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Tl=(0,y.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Sl()(n)?(0,w.jsx)(ys,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,w.jsx)(t,{entityKey:n,children:r})}):r}),Cl);Tl.propTypes={children:g().node,entityKey:g().any,linkComp:g().func};const Ml=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=Dn()(a,t.key,null);return(0,w.jsx)(qa.SingleValue,jl(jl({},e),{},{children:(0,w.jsx)(Ss,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,w.jsx)(Ol,{content:c?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(c)}}):null,children:(0,w.jsx)(Tl,{linkComp:s,entityKey:t.key,children:o})})})}))};function Il(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 Nl=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Rl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,w.jsx)(qa.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=y.Children.map(r,(function(e){return Nl(e)?e:null})),u=y.Children.map(r,(function(e){return Nl(e)?null:e})),l=s&&n;return(0,w.jsxs)(w.Fragment,{children:[!l&&(0,w.jsx)(w.Fragment,{children:c}),(0,w.jsx)(Es,{children:u})]})};function Ll(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hl=(0,s.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=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,b=e.value,O=e.DetailLink,x=e.createPermission,k=e.openRemoteCreate,S=(0,y.useRef)(null),E=(0,y.useRef)(null),D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,y.useState)(D()),A=(0,P.A)(j,2),C=A[0],T=A[1],M=(0,y.useState)(_()),I=(0,P.A)(M,2),N=I[0],R=I[1],L=(0,y.useState)(!1),F=(0,P.A)(L,2),H=F[0],W=F[1],B=function(e){t&&t(e)},Y=(0,y.useCallback)(m||function(){},[]),U=(0,y.useCallback)(Rn()(Y,800,{trailing:!0}),[]),z=Boolean(p),V=Boolean(f),q=Boolean(x);return(0,w.jsx)(vs,{tabIndex:"-1",id:n,onFocus:function(){S.current.focus(),setTimeout((function(){T(D()),R(_())}),0)},children:(0,w.jsx)(bs,{ref:E,children:(0,w.jsx)(Ki,Fl(Fl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:N,components:{ClearIndicator:Xi,LoadingIndicator:Us,DropdownIndicator:Cs,IndicatorsContainer:Bs,IndicatorSeparator:null,Menu:Cc,MenuList:Ic,MultiValueLabel:xl,SingleValue:Ml,ValueContainer:Rl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,w.jsx)(l,Fl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),B(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,b),""===e&&"input-change"===n&&B(b)},options:(0,re.A)(h||[]),onKeyDown:function(e){"Enter"===e.key&&H&&(e.stopPropagation(),S.current&&null===S.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:S,onMenuOpen:function(){B(b),W(!0)},onMenuClose:function(){W(!1)},styles:_s(g),loadTooltip:i,tooltips:v,DetailLink:O,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:z,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:q,createPermission:x,openRemoteCreate:k,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const Wl=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,w.jsx)(Hl,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:In()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Bl,Yl=s.Ay.div.withConfig({displayName:"StyledBoolEdit"})(Bl||(Bl=(0,a.A)(["\n margin: 5px 0;\n"])));const Ul=function(e){return(0,w.jsx)(Yl,{children:(0,w.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 zl,Vl,ql=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,w.jsx)(pl,{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(t)},breakWords:n,className:r})},Gl=s.Ay.div.withConfig({displayName:"StyledOption"})(zl||(zl=(0,a.A)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),c.hs.space(-1),c.hs.space(-1.5)),Kl=s.Ay.span.withConfig({displayName:"StyledLabel"})(Vl||(Vl=(0,a.A)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,c.Ed)(),c.hs.space(-1.5));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xl={single:"radio",multiple:"checkbox"},Zl={single:{checked:!1},multiple:{}},Jl=function(e,t){return t?(0,w.jsx)(ql,{value:e}):e},ed=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,w.jsxs)(Gl,{children:[!s&&(0,w.jsx)("input",{name:t,type:Xl[c],checked:a||!1,onChange:l,id:n,disabled:i}),(0,w.jsx)(Kl,{children:o||Jl(r,u)})]})};const td=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return Ql(Ql({},t),t.id===e.target.id?{checked:e.target.checked}:Zl[r.selectionType])}));t({options:o})}};return(0,w.jsx)(w.Fragment,{children:n.options.map((function(e){return(0,w.jsx)(ed,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};n(98639);function nd(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 rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var od=(0,y.lazy)((function(){return Promise.all([n.e(95),n.e(722)]).then(n.bind(n,65066))}));const ad=function(e){return(0,w.jsx)(y.Suspense,{fallback:(t=e.value,(0,w.jsx)("div",{children:(0,w.jsx)("p",{children:t})})),children:(0,w.jsx)(od,rd({},e))});var t};var id,sd=s.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(id||(id=(0,a.A)(["\n margin-top: ",";\n"])),c.hs.space(-1.5));const cd=(0,s.SL)(E.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,w.jsx)(sd,{children:(0,w.jsx)(ad,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var ud,ld,dd,fd=s.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ud||(ud=(0,a.A)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),pd=s.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(ld||(ld=(0,a.A)(["\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"])),yn,bn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),hd=s.Ay.input.withConfig({displayName:"StyledTimeInput"})(dd||(dd=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn),md="react-datepicker-time__input",gd="react-datepicker__day",yd="react-datepicker__input",vd=function(e){return e.classList.contains(gd)},bd=function(e){return e.classList.contains(md)},wd=function(e){return e.classList.contains(yd)},Od=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(gd,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},xd=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},kd=function(e){if(!e)return null;var t=(0,dc.Hle)(e.toString());return isNaN(t)?null:t},Sd=function(e){return e?e.toISOString():null};const Pd=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?kd:c,l=n.dateToValue,d=void 0===l?Sd:l,f=(0,y.useRef)(null),p=(0,y.useState)(!1),h=(0,P.A)(p,2),m=h[0],g=h[1],v=(0,y.useState)(!1),b=(0,P.A)(v,2),w=b[0],O=b[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,y.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 E=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},_=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},j=function(){t(null),_(null)},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=D(!1);if(n){var r=x||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,dc.avh)((0,dc.glI)((0,dc.gtt)(e,s),a),r)}(n,{hour:(0,dc.qZx)(r),minute:(0,dc.Osm)(r),second:(0,dc.SyE)(r)}):n;C(o,e)}},C=function(n,r){if(n){var a,i=!e&&Boolean(n),c=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!c&&o.some((function(e){return(0,dc.uv4)(c,e)})),l=(0,dc.ol1)(n),p=(0,dc.qZx)(n)!==(0,dc.qZx)(l)||(0,dc.Osm)(n)!==(0,dc.Osm)(l);(i&&!p||u)&&s&&(n=fc.A.setCurrentTime(n)),t(d(n))}else j();var h;s||"click"!==(null==r?void 0:r.type)||(E(),xd(null===(h=f.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(wd(e.target))setTimeout((function(){return E()}),0);else if(bd(e.target)){var t;_(x||D(!0)),Od(null===(t=f.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else vd(e.target)&&E();else wd(e.target)&&m?(A(e),setTimeout((function(){return E()}),0)):bd(e.target)?E():vd(e.target)&&(s?(A(e,!0),_(null),O(!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(md));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(A(e),E()));var n;"Enter"===e.key&&(E(),e.preventDefault(),e.stopPropagation(),xd(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;_(x||D(!0)),Od(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)},M=function(){var e;g((function(e){return!e})),_(null),xd(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:E,onInputClick:M,onKeyDown:T,onChange:C,onCalendarOpen:function(){_(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:s,minDate:k,maxDate:S,ref:f,className:yd},timeInputProps:{onKeyDown:T,className:md,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:M,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Ed="HH:mm:ss",Dd="HH:mm",_d=function(e){return(0,dc.uv4)(e,Dd)},jd=function(e){var t=function(e){return e?(0,dc.uv4)(e,Ed)?(0,dc.qgA)(e,Ed,new Date):(0,dc.uv4)(e,Dd)?(0,dc.qgA)(e,Dd,new Date):(0,dc.uv4)(e,"HH:")?(0,dc.qgA)(e,"HH:",new Date):(0,dc.uv4)(e,"H")?(0,dc.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,dc.GPZ)(e,Dd)}(t):""};const Ad=function(e,t){var n=jd(e),r=(0,y.useState)(n),o=(0,P.A)(r,2),a=o[0],i=o[1],s=(0,y.useRef)(a),c=E.A.usePrevious(n);(0,y.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,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,i(n);var p=jd(n);p&&!_d(p)||t(p)}},onBlur:function(){if(a!==n){var e=jd(a);e&&_d(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var Cd=["value","onChange","onKeyDown"];function Td(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?Td(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}pc();var Id=function(e){var t=e.onChange,n=e.label;return(0,w.jsx)(U,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Nd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,h.A)(e,Cd),a=Ad(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,w.jsx)(hd,Md(Md(Md({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Rd={strategy:"fixed"};const Ld=(0,s.SL)((0,ne.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=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,y.useRef)(void 0),b=u.locale,O=function(e){return u.formatMessage({id:e})},x=(0,y.useRef)(null),k=Boolean(r),S=!t&&k,P=function(e){v.current=e,c(e)},E=Pd(r,P,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),D=E.reactDatePickerProps,_=E.timeInputProps,j=E.clearButtonProps,A=E.calendarButtonProps;return(0,w.jsx)(fd,{immutable:t,id:n,tabIndex:"-1",children:(0,w.jsxs)(pd,{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,w.jsx)(sc(),Md(Md({id:n?"".concat(n,"-datepicker"):null,popperClassName:zs},D),{},{disabled:t,dateFormat:[].concat((0,re.A)(m),(0,re.A)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:O("client.component.datePicker.timeLabel"),customTimeInput:(0,w.jsx)(Nd,Md({},_)),showTimeSelect:d,timeIntervals:15,popperProps:Rd,portalId:"react-datepicker",todayButton:(0,w.jsx)(Id,{onChange:P,label:O("client.component.datePicker.todayLabel")})})),S&&(0,w.jsx)(X,Md({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":O("client.component.datePicker.clearDateLabel")},j)),!t&&(0,w.jsx)(X,Md({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},A))]})})})));function Fd(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 Hd=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,ne.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(fc.A.getLocalizedDateFormat(c.locale)),d=fc.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,fc.A.useTwoDigitYear(l),fc.A.useTwoDigitYear(d)];return(0,w.jsx)(Ld,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(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:a,placeholder:s,events:i},u))};function Wd(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 Bd=(0,ne.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,ne.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(fc.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(fc.A.getLocalizedDateFormat(i.locale)),l=fc.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),d=[c,l,fc.A.useTwoDigitYear(c),fc.A.useTwoDigitYear(l)],f=fc.A.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[u,f,fc.A.useTwoDigitYear(u),fc.A.useTwoDigitYear(f)];return(0,w.jsx)(Ld,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},s))}));var Yd,Ud,zd,Vd,qd,Gd,Kd,$d,Qd=s.Ay.section.withConfig({displayName:"StyledSection"})(Yd||(Yd=(0,a.A)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Xd=s.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(Ud||(Ud=(0,a.A)(["\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"])),H,c.hs.space(-2)),Zd=s.Ay.div.withConfig({displayName:"StyledDropzone"})(zd||(zd=(0,a.A)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),H,c.t7.color("backgroundItemHover")),Jd=s.Ay.div.withConfig({displayName:"StyledUploadInput"})(Vd||(Vd=(0,a.A)(["\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,c.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),c.t7.color("paper"),(function(e){return e.immutable?c.Db.shade2(e):c.Db.base(e)}),c.hs.space(-2),H,c.hs.space(-3.1),c.hs.space(-1.5)),ef=s.Ay.div.withConfig({displayName:"StyledUploadProgress"})(qd||(qd=(0,a.A)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),c.hs.space(-2)),tf=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledUploadProgressText"})(Gd||(Gd=(0,a.A)(["\n && {\n ","\n }\n"])),(0,c.Ed)({fontSize:c.hs.font(-1)})),nf=s.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Kd||(Kd=(0,a.A)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),c.hs.space(-2)),rf=s.Ay.div.withConfig({displayName:"StyledView"})($d||($d=(0,a.A)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),c.hs.space(-2)),of=n(2404),af=n.n(of);function sf(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(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(i,s)}c((r=r.apply(e,t||[])).next())}))}function cf(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)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 i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}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 uf(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function lf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var df=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ff(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=df.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pf=[".DS_Store","Thumbs.db"];function hf(e){return"object"==typeof e&&null!==e}function mf(e){return bf(e.target.files).map((function(e){return ff(e)}))}function gf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return ff(e)}))]}}))}))}function yf(e,t){return sf(this,void 0,void 0,(function(){var n;return cf(this,(function(r){switch(r.label){case 0:return e.items?(n=bf(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(wf))]):[3,2];case 1:return[2,vf(Of(r.sent()))];case 2:return[2,vf(bf(e.files).map((function(e){return ff(e)})))]}}))}))}function vf(e){return e.filter((function(e){return-1===pf.indexOf(e.name)}))}function bf(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function wf(e){if("function"!=typeof e.webkitGetAsEntry)return xf(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Sf(t):xf(e)}function Of(e){return e.reduce((function(e,t){return lf(lf([],uf(e),!1),uf(Array.isArray(t)?Of(t):[t]),!1)}),[])}function xf(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ff(t);return Promise.resolve(n)}function kf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,e.isDirectory?Sf(e):Pf(e)]}))}))}function Sf(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return sf(a,void 0,void 0,(function(){var a,i,s;return cf(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 a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(kf)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Pf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ff(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Ef=n(9455);function Df(e){return function(e){if(Array.isArray(e))return Mf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){Af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||Tf(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 Tf(e,t){if(e){if("string"==typeof e)return Mf(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)?Mf(e,t):void 0}}function Mf(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 If="file-invalid-type",Nf="file-too-large",Rf="file-too-small",Lf="too-many-files",Ff=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:If,message:"File type must be ".concat(t)}},Hf=function(e){return{code:Nf,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Wf=function(e){return{code:Rf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Bf={code:Lf,message:"Too many files"};function Yf(e,t){var n="application/x-moz-file"===e.type||(0,Ef.A)(e,t);return[n,n?null:Ff(t)]}function Uf(e,t,n){if(zf(e.size))if(zf(t)&&zf(n)){if(e.size>n)return[!1,Hf(n)];if(e.size<t)return[!1,Wf(t)]}else{if(zf(t)&&e.size<t)return[!1,Wf(t)];if(zf(n)&&e.size>n)return[!1,Hf(n)]}return[!0,null]}function zf(e){return null!=e}function Vf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function qf(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 Gf(e){e.preventDefault()}function Kf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Vf(e)&&t&&t.apply(void 0,[e].concat(r)),Vf(e)}))}}function $f(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Qf(e){return/^.*\.[\w]+$/.test(e)}var Xf=["children"],Zf=["open"],Jf=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ep=["refKey","onChange","onClick"];function tp(e){return function(e){if(Array.isArray(e))return op(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rp(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 np(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||rp(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 rp(e,t){if(e){if("string"==typeof e)return op(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)?op(e,t):void 0}}function op(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 ap(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 ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ap(Object(n),!0).forEach((function(t){sp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var up=(0,y.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ip(ip({},lp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=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,b=t.autoFocus,w=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,E=t.validator,D=(0,y.useMemo)((function(){return function(e){if(zf(e))return Object.entries(e).reduce((function(e,t){var n=Cf(t,2),r=n[0],o=n[1];return[].concat(Df(e),[r],Df(o))}),[]).filter((function(e){return $f(e)||Qf(e)})).join(",")}(n)}),[n]),_=(0,y.useMemo)((function(){return function(e){if(zf(e)){var t=Object.entries(e).filter((function(e){var t=Cf(e,2),n=t[0],r=t[1],o=!0;return $f(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(Qf)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Cf(t,2),r=n[0],o=n[1];return jf(jf({},e),{},Af({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),j=(0,y.useMemo)((function(){return"function"==typeof g?g:mp}),[g]),A=(0,y.useMemo)((function(){return"function"==typeof m?m:mp}),[m]),C=(0,y.useRef)(null),T=(0,y.useRef)(null),M=np((0,y.useReducer)(hp,pp),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,y.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){T.current&&(T.current.files.length||(N({type:"closeDialog"}),A()))}),300)};(0,y.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[T,L,A,F]);var W=(0,y.useRef)([]),B=function(e){C.current&&C.current.contains(e.target)||(e.preventDefault(),W.current=[])};(0,y.useEffect)((function(){return w&&(document.addEventListener("dragover",Gf,!1),document.addEventListener("drop",B,!1)),function(){w&&(document.removeEventListener("dragover",Gf),document.removeEventListener("drop",B))}}),[C,w]),(0,y.useEffect)((function(){return!r&&b&&C.current&&C.current.focus(),function(){}}),[C,b,r]);var Y=(0,y.useCallback)((function(e){P?P(e):console.error(e)}),[P]),U=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(tp(W.current),[e.target]),qf(e)&&Promise.resolve(o(e)).then((function(t){if(!Vf(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=Cf(Yf(e,n),1)[0],a=Cf(Uf(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:D,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:E});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,i,a,s,c,E]),z=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=qf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return C.current&&C.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),qf(e)&&l&&l(e))}),[C,l,S]),q=(0,y.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=np(Yf(e,D),2),o=t[0],s=t[1],c=np(Uf(e,i,a),2),u=c[0],l=c[1],d=E?E(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:[Bf]})})),n.splice(0)),N({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)}),[N,s,D,i,a,c,f,p,h,E]),G=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],qf(e)&&Promise.resolve(o(e)).then((function(t){Vf(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),N({type:"reset"})}),[o,q,Y,S]),K=(0,y.useCallback)((function(){if(F.current){N({type:"openDialog"}),j();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({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)?Y(e):(F.current=!1,T.current?(T.current.value=null,T.current.click()):Y(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."))):(A(e),N({type:"closeDialog"}))}))}else T.current&&(N({type:"openDialog"}),j(),T.current.value=null,T.current.click())}),[N,j,A,v,q,Y,_,s]),$=(0,y.useCallback)((function(e){C.current&&C.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[C,K]),Q=(0,y.useCallback)((function(){N({type:"focus"})}),[]),X=(0,y.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,y.useCallback)((function(){O||(!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)}()?K():setTimeout(K,0))}),[O,K]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,y.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=cp(e,Jf);return ip(ip(sp({onKeyDown:ee(Kf(a,$)),onFocus:ee(Kf(i,Q)),onBlur:ee(Kf(s,X)),onClick:J(Kf(c,Z)),onDragEnter:te(Kf(u,U)),onDragOver:te(Kf(l,z)),onDragLeave:te(Kf(d,V)),onDrop:te(Kf(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,C),r||x?{}:{tabIndex:0}),p)}}),[C,$,Q,X,Z,U,z,V,G,x,k,r]),oe=(0,y.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,y.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=cp(e,ep);return ip(ip({},sp({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Kf(r,G)),onClick:J(Kf(o,oe)),tabIndex:-1},n,T)),a)}}),[T,n,s,G,r]);return ip(ip({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:C,inputRef:T,open:J(K)})}(cp(e,Xf)),o=r.open,a=cp(r,Zf);return(0,y.useImperativeHandle)(t,(function(){return{open:o}}),[o]),v().createElement(y.Fragment,null,n(ip(ip({},a),{},{open:o})))}));up.displayName="Dropzone";var lp={disabled:!1,getFilesFromEvent:function(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return hf(e)&&hf(e.dataTransfer)?[2,yf(e.dataTransfer,e.type)]:function(e){return hf(e)&&hf(e.target)}(e)?[2,mf(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,gf(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};up.defaultProps=lp,up.propTypes={children:g().func,accept:g().objectOf(g().arrayOf(g().string)),multiple:g().bool,preventDropOnDocument:g().bool,noClick:g().bool,noKeyboard:g().bool,noDrag:g().bool,noDragEventsBubbling:g().bool,minSize:g().number,maxSize:g().number,maxFiles:g().number,disabled:g().bool,getFilesFromEvent:g().func,onFileDialogCancel:g().func,onFileDialogOpen:g().func,useFsAccessApi:g().bool,autoFocus:g().bool,onDragEnter:g().func,onDragLeave:g().func,onDragOver:g().func,onDrop:g().func,onDropAccepted:g().func,onDropRejected:g().func,onError:g().func,validator:g().func};const dp=up;var fp,pp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hp(e,t){switch(t.type){case"focus":return ip(ip({},e),{},{isFocused:!0});case"blur":return ip(ip({},e),{},{isFocused:!1});case"openDialog":return ip(ip({},pp),{},{isFileDialogActive:!0});case"closeDialog":return ip(ip({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ip(ip({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ip(ip({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ip({},pp);default:return e}}function mp(){}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,w.jsxs)(Jd,{immutable:n,children:[(0,w.jsx)(dp,{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,w.jsx)(Qd,{children:(0,w.jsxs)(Zd,yp(yp({},t()),{},{children:[(0,w.jsx)("input",yp({},n())),fp||(fp=(0,w.jsx)(U,{icon:"arrow-to-top"}))]}))})}}),o&&(0,w.jsx)(U,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var bp,wp=s.Ay.figure.withConfig({displayName:"StyledPreview"})(bp||(bp=(0,a.A)(["\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"])),c.hs.space(-2.2),c.t7.color("border"),c.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Op=wp;var xp;const kp=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,w.jsx)("img",{alt:n,title:n,src:t}):(0,w.jsx)("div",{title:n,children:xp||(xp=(0,w.jsx)(b.A,{icon:"file-alt"}))});return(0,w.jsxs)(Op,{maxDimensionX:a,maxDimensionY:i,children:[(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,w.jsx)(mt.Ay.Figcaption,{children:o})]})};var Sp=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 Pp=function(e){var t=e.file,n=e.text;return(0,w.jsxs)(ef,{children:[(0,w.jsx)(kp,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,w.jsxs)(nf,{children:[(0,w.jsx)(S,{position:c.xX.position.PREPEND}),(0,w.jsxs)(tf,{children:[n||"uploading"," (",Sp(t.size),")"]})]})]})};var Ep=n(31558);function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jp=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,w.jsxs)(rf,{className:"StyledView",children:[(0,w.jsx)(kp,_p(_p({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,w.jsxs)(Xd,{children:[!o&&(0,w.jsx)(U,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,w.jsx)(U,{children:(0,w.jsx)(gn.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Ep.A.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Ap(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tp=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,y.useRef)(t),i=(0,y.useState)({isUploading:!1,previewFile:null}),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,y.useEffect)((function(){af()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,w.jsx)(jp,Cp(Cp({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):c.isUploading?(0,w.jsx)(Pp,Cp({file:c.previewFile,text:n.uploading},e)):(0,w.jsx)(vp,Cp(Cp({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Tp.defaultProps={textResources:{}};const Mp=Tp;var Ip=function(e){return(0,w.jsx)(Mp,{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})};Ip.defaultProps={options:{}};const Np=Ip;var Rp,Lp,Fp=s.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Rp||(Rp=(0,a.A)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),bn,(function(e){return e.width})),Hp=s.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(Lp||(Lp=(0,a.A)(["\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"])),c.hs.space(1),(function(e){return e.immutable?c.t7.color("textDisabled"):c.t7.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),Wp=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=fc.A.millisecondsToDuration(n),s=(0,y.useState)(!1),c=(0,P.A)(s,2),u=c[0],l=c[1],d=function(e,t){var n,r,a=null!==t?t:i.minutes,s=null!==e?e:i.hours;""!==a||""!==s?(a>=60&&(s=0),o((r=a,(n=s)||r?((n<0||r<0)&&(n=Sn(n),r=Sn(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===a.allowNegative||e.preventDefault()},h=function(){return!0===a.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(i.seconds);return(0,w.jsxs)(vn,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,min:!0===a.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(i.hours),type:"number",value:"number"!=typeof i.hours||0===i.hours&&!r?"":i.hours+"","data-cy":"input-hours"}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.hoursLabel})]}),(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==i.hours&&0!==i.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(i.minutes),type:"number",value:i.minutes+"","data-cy":"input-minutes"}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.minutesLabel})]}),v&&(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,onChange:function(){},width:g(i.seconds),type:"number",value:i.seconds+""}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.secondsLabel})]})]})};Wp.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const Bp=Wp;var Yp;const Up=s.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Yp||(Yp=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const zp=E.A.Debouncer((function(e){return(0,w.jsxs)(vn,{immutable:e.immutable,children:[(0,w.jsx)(Up,{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,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var Vp=n(85501),qp=n(63662),Gp=n(44383),Kp=n.n(Gp);function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(){Xp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),(0,qp.A)(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return(0,Vp.A)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,kn.A)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Xp.apply(this,arguments)}var Zp,Jp=["key","display","postcode","city","country","latitude","longitude"],eh=function(e){return e*Math.PI/180},th=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=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:eh(a),longitude:eh(i)}};function nh(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 rh(){}function oh(e){return!!(e||"").match(/\d/)}function ah(e){return null==e}function ih(e){return ah(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function sh(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ch(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 uh(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function lh(e,t){return Array(t+1).join(e)}function dh(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+lh("0",Math.abs(i))+o:i>=s?o+=lh("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function fh(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=ch(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+uh(u[1]||"",t,n)}function ph(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"}(Zp||(Zp={}));var hh,mh,gh,yh=(hh=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},gh=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mh&&e.length===mh.length&&e.every((function(e,t){return e===mh[t]}))?gh:(mh=e,gh=hh.apply(void 0,e))});function vh(e){return Math.max(e.selectionStart,e.selectionEnd)}function bh(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function wh(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Oh(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 xh(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(oh(e[n])||oh(e[n-1]));return t}function kh(e,t,n,r,o,a){void 0===a&&(a=rh);var i=function(e){var t=(0,y.useRef)(e);t.current=e;var n=(0,y.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,a;return ih(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?dh(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,y.useState)((function(){return i(ah(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;ah(e)&&(l=c.numAsString,d=!0);var f=i(l,d);return(0,y.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Sh(e){return e.replace(/[^0-9]/g,"")}function Ph(e){return e}function Eh(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Ph);var s=e.removeFormatting;void 0===s&&(s=Sh);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=rh);var p=e.onKeyDown;void 0===p&&(p=rh);var h=e.onMouseUp;void 0===h&&(h=rh);var m=e.onFocus;void 0===m&&(m=rh);var g=e.onBlur;void 0===g&&(g=rh);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=xh);var O=e.isValidInputCharacter;void 0===O&&(O=oh);var x=e.isCharacterSame,k=nh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=kh(b,c,Boolean(u),i,s,l),P=S[0],E=P.formattedValue,D=P.numAsString,_=S[1],j=(0,y.useRef)({formattedValue:E,numAsString:D}),A=function(e,t){j.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},C=(0,y.useState)(!1),T=C[0],M=C[1],I=(0,y.useRef)(null),N=(0,y.useRef)({setCaretTimeout:null,focusTimeout:null});(0,y.useEffect)((function(){return M(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var R=i,L=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},F=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(ph(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&ph(e,t)}),0))},H=function(e,t,n){return Oh(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=wh);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(i({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]||!a(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,E,e,n,r,O,x);return o=Oh(t,o,r)};(0,y.useEffect)((function(){var e=j.current,t=e.formattedValue,n=e.numAsString;E===t||E===D&&t===n||A(L(E,D),{event:void 0,source:Zp.props})}),[E,D]);var B=I.current?vh(I.current):void 0;("undefined"!=typeof window?y.useLayoutEffect:y.useEffect)((function(){var e=I.current;if(E!==j.current.formattedValue&&e){var t=W(j.current.formattedValue,E,B);e.value=E,F(e,t,E)}}),[E]);var Y=function(e,t,n){var r=yh(E,e),o=Object.assign(Object.assign({},r),{lastValue:E}),a=s(e,o),i=R(a);if(a=s(i,void 0),d&&!d(L(i,a))){var c=t.target,u=vh(c),l=W(e,E,u);return c.value=E,F(c,l,E),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=vh(r);r.value=t,void 0!==(n=W(s,t,c))&&F(r,n,t)}t!==E&&A(L(t,i),{event:a,source:o})}({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",z=Object.assign({inputMode:U},k,{type:t,value:E,onChange:function(e){var t=e.target.value;Y(t,e,Zp.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=H(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||O(i[t])?"Backspace"!==r||O(i[t])||(s=H(i,t,"left")):s=H(i,t,"right");s!==t&&F(n,s,i),e.isUnitTestRun&&F(n,s,i),p(e)}else p(e)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=H(r,e);o!==e&&F(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;I.current=t,N.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=H(a,r);i===r||0===r&&o===a.length||F(t,i,a),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){I.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?v().createElement(v().Fragment,null,o(E,k)||null):v().createElement("span",Object.assign({},k,{ref:a}),E);if(r){var V=r;return v().createElement(V,Object.assign({},z,{ref:a}))}return v().createElement("input",Object.assign({},z,{ref:a}))}function Dh(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=_h(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=ch(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=uh(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),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function _h(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 jh(e,t,n){var r;void 0===t&&(t=bh(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=_h(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(oh(e)&&(e===a||e===i)&&""===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 y=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var 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}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),d-=P;var E=(e=e.substring(P)).length,D=e.length-i.length;e.endsWith(i)?E=D:(d>D||d>e.length-i.length)&&(E=d),e=e.substring(0,E),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+sh(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(sh(h),"g"),(function(e,t){return t===_?".":""}));var j=ch(e,o),A=j.beforeDecimal,C=j.afterDecimal,T=j.addNegation;return u.end-u.start<c.end-c.start&&""===A&&m&&!parseFloat(C)&&(e=T?"-":""),e}function Ah(e){e=function(e){var t=_h(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=rh);var a=e.onBlur;void 0===a&&(a=rh);var i=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=nh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=_h(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return Dh(t,e)},b=function(t,n){return jh(t,n,e)},w=ah(d)?l:d,O=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);ah(d)?ah(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return ih(e)?e:("number"==typeof e&&(e=dh(e)),O&&"number"==typeof s?fh(e,s,Boolean(c)):e)},k=kh(x(d),x(l),Boolean(O),v,b,p),S=k[0],P=S.numAsString,E=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||oh(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],s=r[a],c=yh(n,t).to;return!!(o>=c.start&&o<c.end&&y&&y.includes(i)&&s===g)||i===s},onValueChange:D,format:v,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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&ph(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(ph(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[a]===g&&ph(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&ph(t,a-1),"Delete"===r&&d[a]===f&&ph(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=P;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=fh(n,s,c)),n!==P){var o=Dh(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Zp.event})}a(t)}})}function Ch(e){var t=Ah(e);return v().createElement(Eh,Object.assign({},t))}var Th,Mh=["immutable"];function Ih(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 Nh=(0,s.Ay)((function(e){e.immutable;var t=(0,h.A)(e,Mh);return(0,w.jsx)(Ch,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Th||(Th=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const Rh=Nh;function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},Wh=function(e){return null!=e&&!isNaN(parseFloat(e))},Bh=function(e,t,n){return!Wh(n)||!(Wh(t)&&n>t)&&!(Wh(e)&&n<e)},Yh=function(e,t){return function(n){var r=n.floatValue;return Hh(r)<Hh(e)||Bh(e,t,r)}};const Uh=(0,ne.injectIntl)(E.A.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=Fh(Fh({isAllowed:Yh(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Rh,Fh(Fh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&Bh(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,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&&!Bh(c,m,r)&&(t.target.value=null)}}))})}),800));const zh=E.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=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,w.jsx)(vn,{immutable:o,children:(0,w.jsx)(Rh,{isAllowed:Yh(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),Bh(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Vh,qh,Gh,Kh=s.Ay.div.withConfig({displayName:"StyledWrapper"})(Vh||(Vh=(0,a.A)(["\n display: flex;\n justify-content: stretch;\n"]))),$h=s.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(qh||(qh=(0,a.A)(["\n flex-grow: 1;\n"]))),Qh=s.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(Gh||(Gh=(0,a.A)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),c.t7.color("border"),c.hs.space(-.8),c.hs.space(.5));function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?Kp()(e,Jp):void 0}(r),y=function(e){return e?e.map(th):[]}(s);return(0,w.jsxs)(Kh,{children:[(0,w.jsx)($h,{children:(0,w.jsx)(Hl,{id:t,immutable:n,onChange:function(e){o(Zh(Zh({},function(e,t){return t?Qp(Qp({},e),Kp()(t,Jp)):Kt()(e,Jp)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,re.A)(e.matchAll(Xp(/([\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 Qp(Qp({},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,w.jsx)(Qh,{children:(0,w.jsx)(zh,{value:m,onChange:function(e){o(Zh(Zh({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var em,tm=(0,y.lazy)((function(){return n.e(262).then(n.bind(n,56652))})),nm=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=e.options;if(r)return(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var i=a||{},s=i.contentLang,c=i.defaultLinkTarget,u=i.ckEditorConfig;return(0,w.jsx)(y.Suspense,{fallback:em||(em=(0,w.jsx)("i",{})),children:(0,w.jsx)(tm,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:s,defaultLinkTarget:c,ckEditorConfig:u})})};nm.defaultProps={value:""};const rm=nm;var om,am;function im(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 sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?im(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cm=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=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,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,w.jsxs)(mt.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(sm(sm({},r),{},(0,p.A)({},e,a)))}},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,p.A)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},h={value:r.city||"",onChange:u("city"),disabled:a};return(0,w.jsx)(an,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,w.jsxs)(_n,{immutable:a,name:i,ref:u,children:[(0,w.jsx)(Zt(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(om||(om=(0,w.jsx)(mt.Ay.Span,{children:"/"}))),(0,w.jsx)(Zt(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,w.jsxs)(On,{children:[n.isLoading&&(am||(am=(0,w.jsx)(S,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,w.jsx)(gn.Ay,{href:Pn(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const lm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(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 dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const fm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(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 pm,hm=n(10467),mm=n(54756),gm=n.n(mm);const ym=s.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(pm||(pm=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const vm=function(e){var t=e.onChange,r=e.value,o=e.immutable,a=e.id,i=e.onLibLoaded,s=Dn()(e,"options.defaultCountry")||"CH",c=(0,y.useState)(null),u=(0,P.A)(c,2),l=u[0],d=u[1],f=v().createRef();(0,y.useEffect)((function(){var e=function(){var e=(0,hm.A)(gm().mark((function e(){var t;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(222).then(n.bind(n,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var p=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=r&&null!=l&&l.AsYouType?new l.AsYouType(s).input(r):r||"";return(0,w.jsxs)(vn,{immutable:o,children:[(0,w.jsx)(ym,{disabled:o||!l,id:a,name,onChange:function(e){var n=e.target.value,o=l?l.parseNumber(n,s):n,a=Qt()(o)?new l.AsYouType(s).input(n).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(s).input(t),o=new l.AsYouType(s).input(e),a=p(r,n),i=p(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(f.current))}}(n,r,i)},immutable:o||!l,ref:f,value:h}),h&&(0,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:"tel:".concat(r),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function bm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Om=function(e){return e.map((function(e){return Kp()(e,["key","display"])}))};const xm=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,w.jsx)(Hl,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return wm(wm({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Om(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Om(a.options)})};function km(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 Sm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(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 Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Em=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(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 Dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _m=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dm(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 jm=E.A.Debouncer((function(e){return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Up,{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 Am,Cm,Tm,Mm,Im,Nm=n(23228),Rm=s.Ay.div.withConfig({displayName:"StyledTermsEdit"})(Am||(Am=(0,a.A)(["\n margin: "," 0;\n display: flex;\n"])),c.hs.space(-1.4)),Lm=s.Ay.input.withConfig({displayName:"StyledCheckbox"})(Cm||(Cm=(0,a.A)(["\n margin-right: ",";\n"])),c.hs.space(-1.5)),Fm=(0,s.AH)(Tm||(Tm=(0,a.A)(["\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"])),c.t7.color("secondary"),c.t7.color("secondaryLight"),c.t7.color("secondary")),Hm=s.Ay.a.withConfig({displayName:"StyledTermsLink"})(Mm||(Mm=(0,a.A)(["\n ","\n"])),Fm),Wm=(0,s.Ay)(ql).withConfig({displayName:"StyledHtmlFormatter"})(Im||(Im=(0,a.A)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Fm);const Bm=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,y.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:Nm.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,y.useCallback)((function(){return o(null)}),[o]),d=(0,y.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,y.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,y.useEffect)((function(){n()}),[]),(0,y.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,w.jsx)(Lm,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,w.jsx)(Hm,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,w.jsx)(Wm,{value:r.label,breakWords:!0})});return!c&&(0,w.jsxs)(Rm,{children:[p,h||(0,w.jsx)(Wm,{value:null==r?void 0:r.label,breakWords:!0})]})};const Ym=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Um,zm,Vm,qm=(0,s.AH)(Um||(Um=(0,a.A)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),bn),Gm=s.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(zm||(zm=(0,a.A)(["\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"])),qm),Km=s.Ay.textarea.withConfig({displayName:"StyledTextarea"})(Vm||(Vm=(0,a.A)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),qm,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?c.hs.space(-1.2):"0"}));function $m(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 Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$m(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xm=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,y.useState)(t),c=(0,P.A)(s,2),u=c[0],l=c[1],d=!Ym(),f=Ym(),p=(0,y.useCallback)(Rn()(l,500,{trailing:!0}),[]);return(0,y.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,w.jsx)(Gm,Qm(Qm({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,w.jsx)(Km,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:f})}))};const Zm=E.A.Debouncer((function(e){return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Xm,{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 Jm;const eg=s.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Jm||(Jm=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rg=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Ad(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,w.jsxs)(vn,{immutable:r,children:[(0,w.jsx)(eg,ng({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,w.jsx)(On,{children:(0,w.jsx)(X,ng(ng({icon:"times"},c),{},{tabIndex:-1}))})]})};var og;const ag=s.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(og||(og=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const ig=E.A.Debouncer((function(e){return(0,w.jsxs)(vn,{immutable:e.immutable,children:[(0,w.jsx)(ag,{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,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ug={boolean:Ul,"boolean-select":Wl,choice:td,code:cd,date:Hd,datetime:Bd,document:Np,duration:Bp,email:zp,geosearch:Jh,html:rm,integer:zh,address:Tn,location:cm,"multi-remote":lm,"multi-select":fm,number:Uh,phone:vm,"pseudo-select":xm,remote:Sm,"search-filter":Em,"single-select":_m,string:jm,terms:Bm,text:Zm,url:ig,time:rg};const lg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(ug[t]){var u=ug[t],l=cg(cg({},Kt()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,w.jsx)("div",cg(cg({},l),{},{"data-cy":"form-field",children:(0,w.jsx)(u,cg(cg({value:n,onChange:null==a?void 0:a.onChange},Qt()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function dg(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?dg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pg=function(e){return(0,w.jsx)(xn,{children:(0,w.jsx)(lg,fg({componentType:e.type},Kt()(e,"type")))})};const hg=(0,s.SL)((function(e){return(0,w.jsx)(b.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const mg=function(e){var t=(0,ne.useIntl)();return(0,w.jsx)(mt.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,w.jsx)(ne.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var gg;const yg=(0,ne.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),gg||(gg=(0,w.jsx)(mt.Ay.Span,{}));var o=(0,dc.GPZ)(r,"HH:mm");return(0,w.jsxs)(mt.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,w.jsx)(ne.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var vg;function bg(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 wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Og=function(e){var t=e.options||{},n=(0,w.jsxs)(w.Fragment,{children:[t.title&&(0,w.jsx)(mt.Ay.H5,{children:t.title}),(0,w.jsx)(ql,wg({},e))]});return"text"===t.mode?n:(0,w.jsx)(Ol,{content:n,isPlainHtml:!0,children:vg||(vg=(0,w.jsx)(dl,{children:(0,w.jsx)(b.A,{icon:"question-circle"})}))})};const xg=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Dn()(r,t.resourceKey,null);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ol,{content:a?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(a)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,w.jsx)(gn.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,w.jsx)(gn.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:Ep.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const kg=function(e){return(0,w.jsx)(Mp,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Sg=function(e){var t=e.value,n=parseInt(t),r=fc.A.formatDuration(n);return(0,w.jsx)(mt.Ay.Time,{dateTime:r,title:r,children:r})};const Pg=function(e){return(0,w.jsx)(gn.Ay,{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 Eg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Dg(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 _g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jg=function(){return"; "};const Ag=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,w.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,w.jsx)(i.DetailLink,_g(_g({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,w.jsx)(jg,{},"sep".concat(n)),t]})):null;return(0,w.jsx)(mt.Ay.Span,{breakWords:r,useTitle:o,children:c})};const Cg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,w.jsx)(ne.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Tg=function(e){var t;return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,w.jsx)(ne.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function Mg(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 Ig(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ng=(0,y.lazy)((function(){return Promise.all([n.e(222),n.e(672)]).then(n.bind(n,74302))}));const Rg=function(e){return(0,w.jsx)(y.Suspense,{fallback:"",children:(0,w.jsx)(Ng,Ig({},e))})};function Lg(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?Lg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=(e.useTitle,n||{}),a=o.tooltips,i=o.loadTooltip,s=o.navigationStrategy,c=o.linkProps,u=Dn()(a,t.key,null);t=Dl.A.getOrFirst(t);var l=(0,w.jsx)(mt.Ay.Span,{breakWords:r,useTitle:!u,children:t.display});return(null!=s&&s.DetailLink?(0,w.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,w.jsx)(s.DetailLink,Fg(Fg({},c),{},{entityKey:t.key,children:(0,w.jsx)(Ol,{content:u?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(u)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:l})})}))}):null)||l};const Wg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const Bg=function(e){return e.breakWords?(0,w.jsx)(mt.Ay.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,w.jsx)("br",{},t)]:e})))}):(0,w.jsx)(mt.Ay.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")});var t};var Yg=function(e,t){return parseInt(e.split(":")[t])||0};const Ug=(0,ne.injectIntl)((function(e){var t=e.value,n=(e.intl,Yg(t,0)),r=Yg(t,1),o=Yg(t,2),a=Yg(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,dc.GPZ)(i,"HH:mm:ss.SSS"),c=(0,dc.GPZ)(i,"HH:mm");return(0,w.jsx)(mt.Ay.Time,{dateTime:s,title:c,children:c})}));const zg=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,w.jsx)(gn.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Vg,qg={boolean:hg,date:mg,datetime:yg,document:kg,"document-compact":xg,duration:Sg,email:Pg,html:ql,integer:Eg,"multi-remote":Ag,"multi-select":Ag,number:Cg,percent:Tg,phone:Rg,remote:Hg,"single-select":Hg,string:Wg,text:Bg,time:Ug,url:zg,description:Og};const Gg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i;if(qg[t]){var c=qg[t];return(0,w.jsx)(c,{value:n,options:r,breakWords:a,useTitle:s})}return console.log("No FormattedValue mapper defined for component type",t,n),Vg||(Vg=(0,w.jsx)("div",{}))};var Kg;const $g=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle;return null==n||""===n?Kg||(Kg=(0,w.jsx)("span",{})):(0,w.jsx)(Gg,{componentType:t,value:n,options:r,breakWords:o,useTitle:a})},Qg=$g;var Xg;s.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Xg||(Xg=(0,a.A)(["\n height: fit-content;\n margin-bottom: ",";\n"])),c.hs.space(.25));var Zg,Jg=s.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Zg||(Zg=(0,a.A)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),c.hs.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(c.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const ey=Jg;var ty=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,y.useRef)(null),a=(0,y.useState)(0),i=(0,P.A)(a,2),s=i[0],c=i[1],u=function(){c(o.current.offsetWidth)};return(0,y.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,w.jsx)(ey,{ref:o,containerWidth:s,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};ty.defaultProps={minBoxWidth:250};var ny,ry,oy,ay,iy=n(5016),sy=(0,s.i7)(ny||(ny=(0,a.A)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),cy=(0,s.AH)(ry||(ry=(0,a.A)(["\n animation: "," 400ms ease-in-out both;\n"])),sy),uy=s.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(oy||(oy=(0,a.A)(["\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"])),c.hs.space(-1),cy,iy.oY,c.hs.space(-1));const ly=s.Ay.div.withConfig({displayName:"StyledLoadMask"})(ay||(ay=(0,a.A)(["\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 dy;const fy=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,y.useState)(!1),s=(0,P.A)(i,2),c=s[0],u=s[1],l=(0,y.useState)(!0),d=(0,P.A)(l,2),f=d[0],p=d[1];(0,y.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,w.jsx)(ly,{className:a,children:h?r:(0,w.jsxs)(uy,{children:[dy||(dy=(0,w.jsx)(S,{size:"30px"},"loading-spinner")),o&&(0,w.jsx)(mt.Ay.Span,{children:o},"loadingText")]})})};var py,hy=s.Ay.div.withConfig({displayName:"StyledPanel"})(py||(py=(0,a.A)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),c.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),c.t7.color("borderLight"),c.t7.radii("form"));const my=hy;const gy=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,y.useState)(i),d=(0,P.A)(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,w.jsx)(my,{isFramed:r,children:v().Children.map(t,(function(e){return v().cloneElement(e,{isFramed:r,isOpen:h?o:f,isToggleable:c,toggleOpenState:m})}))})};var yy,vy=s.Ay.div.withConfig({displayName:"StyledPanelBody"})(yy||(yy=(0,a.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?c.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const by=vy;const wy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,w.jsx)(by,{isFramed:n,isOpen:r,children:(0,w.jsx)("div",{children:t})})};const Oy=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,y.useState)(t),o=(0,P.A)(r,2),a=o[0],i=o[1];return(0,w.jsx)(w.Fragment,{children:v().Children.map(n,(function(e,t){return v().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var xy;const ky=s.Ay.div.withConfig({displayName:"StyledPanelGroup"})(xy||(xy=(0,a.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),c.hs.space(0),my,c.hs.space(-1));function Sy(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 Py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sy(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ey=function(e){return(0,w.jsx)(ky,{children:(0,w.jsx)(Oy,Py({},e))})};var Dy,_y,jy,Ay,Cy,Ty,My,Iy="1px",Ny=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Dy||(Dy=(0,a.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),c.hs.font(1),c.t7.color("text"),!c.CN&&(0,s.AH)(_y||(_y=(0,a.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),c.t7.color("secondaryLight"))),Ry=s.Ay.div.withConfig({displayName:"StyledPanelHeader"})(jy||(jy=(0,a.A)(["\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"])),c.t7.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,s.AH)(Ay||(Ay=(0,a.A)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),c.t7.radii("form"),Iy,c.t7.radii("form"),Iy):(0,s.AH)(Cy||(Cy=(0,a.A)(["\n calc("," - ",")\n "])),c.t7.radii("form"),Iy)}),(function(e){return e.isFramed?(0,s.AH)(Ty||(Ty=(0,a.A)(["\n "," ","\n "])),c.hs.space(-1.7),c.hs.space(-.375)):0}),!c.CN&&(0,s.AH)(My||(My=(0,a.A)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),Ny),(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(Iy,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(Iy,";\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(Iy,";\n }\n ")}(e)}));const Ly=Ry;var Fy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,s=e.options;return(0,w.jsxs)(Ly,{isFramed:n,isOpen:r,onClick:i,children:[(0,w.jsx)("div",{children:v().Children.map(t,(function(e){return v().cloneElement(e)}))}),o&&a&&(0,w.jsx)(Ny,{children:(0,w.jsx)(b.A,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};Fy.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const Hy={Body:wy,Group:Ey,Header:Fy,Wrapper:gy};var Wy,By=s.Ay.div.withConfig({displayName:"StyledPanel"})(Wy||(Wy=(0,a.A)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),c.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),c.t7.color("borderLight"),c.t7.radii("form"));const Yy=By;const Uy=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,y.useState)(a),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,w.jsx)(Yy,{isFramed:r,children:v().Children.map(t,(function(e){return v().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var zy,Vy,qy=s.Ay.div.withConfig({displayName:"StyledPanelBody"})(zy||(zy=(0,a.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,s.AH)(Vy||(Vy=(0,a.A)(["\n "," "," "," ","\n "])),c.hs.space(-1),c.hs.space(.2),c.hs.space(.2),c.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const Gy=qy;const Ky=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,w.jsx)(Gy,{isFramed:n,isOpen:r,children:(0,w.jsx)("div",{children:t})})};var $y;const Qy=s.Ay.div.withConfig({displayName:"StyledPanelGroup"})($y||($y=(0,a.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),c.hs.space(0),Yy,c.hs.space(-1));function Xy(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 Zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xy(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jy=function(e){return(0,w.jsx)(Qy,{children:(0,w.jsx)(Oy,Zy({},e))})};var ev,tv,nv,rv="1px",ov=s.Ay.div.withConfig({displayName:"StyledPanelHeader"})(ev||(ev=(0,a.A)(["\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"])),c.t7.color("paper"),c.t7.radii("form"),rv,c.t7.radii("form"),rv,(function(e){return e.isFramed?c.hs.space(.2):0}),c.t7.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(rv,";\n }\n ")}(e)})),av=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(tv||(tv=(0,a.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),c.hs.font(1),c.t7.color("text"),!c.CN&&(0,s.AH)(nv||(nv=(0,a.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),c.t7.color("secondaryLight")));const iv=ov;var sv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,s=e.options;return(0,w.jsxs)(iv,{isFramed:n,isOpen:r,onClick:o?i:function(){},children:[(0,w.jsx)("div",{children:v().Children.map(t,(function(e){return v().cloneElement(e)}))}),o&&a&&(0,w.jsx)(av,{children:(0,w.jsx)(b.A,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};sv.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const cv={Body:Ky,Group:Jy,Header:sv,Wrapper:Uy};var uv={Body:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Body),Nm.A.EmbedType.widget,cv.Body),Group:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Group),Nm.A.EmbedType.widget,cv.Group),Header:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Header),Nm.A.EmbedType.widget,cv.Header),Wrapper:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Wrapper),Nm.A.EmbedType.widget,cv.Wrapper)};Nm.A.embedStrategyFactory({mapping:uv.Body}),Nm.A.embedStrategyFactory({mapping:uv.Group}),Nm.A.embedStrategyFactory({mapping:uv.Header}),Nm.A.embedStrategyFactory({mapping:uv.Wrapper});var lv;s.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(lv||(lv=(0,a.A)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),c.hs.space(0),c.t7.color("paper"));n(51217),n(8271);g().node,g().bool,g().string,g().bool,g().objectOf(g().arrayOf(g().oneOfType([g().node,g().string]))),g().bool,g().bool,g().string,g().string,g().oneOf(["inside","outside-responsive","outside"]),g().bool,g().string,g().bool,g().string,g().bool;var dv,fv,pv,hv=(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.BASE,c.t7.color("text")),c.xX.condition.DANGER,c.t7.color("signal.danger")),c.xX.condition.SUCCESS,c.t7.color("signal.success")),c.xX.condition.WARNING,c.t7.color("signal.warning")),c.xX.condition.INFO,c.t7.color("signal.info")),mv=(0,s.Ay)(mt.dV).withConfig({displayName:"StyledSignalList"})(dv||(dv=(0,a.A)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),gv=s.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(fv||(fv=(0,a.A)(["\n margin-left: -1px;\n margin-right: ",";\n"])),c.hs.space(-2)),yv=(0,s.Ay)(mt.vx).withConfig({displayName:"StyledSignalListItem"})(pv||(pv=(0,a.A)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return hv[t]}(e)}));const vv=function(e){return(0,w.jsx)(mv,{as:"ul",children:v().Children.map(e.children,(function(e){return v().cloneElement(e)}))})};var bv,wv=(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.BASE,!1),c.xX.condition.DANGER,"times"),c.xX.condition.SUCCESS,"check"),c.xX.condition.WARNING,"exclamation-triangle"),c.xX.condition.INFO,"info"),Ov=function(e){var t=wv[e.condition];return t?(0,w.jsx)(b.A,{icon:t,position:c.xX.position.SOLE,hasFixedWidth:!1}):bv||(bv=(0,w.jsx)("i",{children:"•"}))},xv=function(e){return(0,w.jsxs)(yv,{condition:e.condition,children:[(0,w.jsx)(gv,{children:Ov(e)}),e.label,v().Children.map(e.children,(function(e){return v().cloneElement(e)}))]})};xv.defaultProps={condition:c.xX.condition.BASE};const kv={List:vv,Item:xv};const Sv=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,re.A)(e.error[n]))})),(0,w.jsx)(kv.List,{children:t.map((function(e,t){return(0,w.jsx)(kv.Item,{condition:"danger",label:e},t)}))})};var Pv,Ev,Dv,_v,jv,Av,Cv,Tv,Mv,Iv,Nv,Rv,Lv,Fv,Hv="1.1px",Wv=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Bv=s.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(Pv||(Pv=(0,a.A)(["\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,c.Ed)({lineHeight:c.t7.lineHeight("dense")}),c.t7.color("paper"),(function(e){return Wv(e)}),(function(e){return"outside"===e.labelPosition&&(0,s.AH)(Ev||(Ev=(0,a.A)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),c.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Dv||(Dv=(0,a.A)(["\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 "])),c.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":c.hs.space(-1.8)}))}),(function(e){return e.styles})),Yv=s.Ay.div.withConfig({displayName:"StyledInputArea"})(_v||(_v=(0,a.A)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,s.AH)(jv||(jv=(0,a.A)(["\n width: auto;\n "])))})),Uv=s.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Av||(Av=(0,a.A)(["\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"])),Hv,(function(e){return c.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),c.t7.radii("form"),c.hs.space(-2.5),c.hs.space(-1.5),(function(e){return!e.immutable&&(0,c.h7)(e)}),(function(e){return Wv(e)}),(0,c.Ed)(),pl,(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Cv||(Cv=(0,a.A)(["\n padding: "," "," "," ",";\n "])),c.hs.space(-1),c.hs.space(-1.7),c.hs.space(-2),c.hs.space(-1))}),(function(e){return e.styles})),zv=s.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Tv||(Tv=(0,a.A)(["\n &&& {\n ","\n }\n"])),(0,c.Ed)({fontSize:c.hs.font(-1)})),Vv=s.Ay.div.withConfig({displayName:"StyledStatedValueError"})(Mv||(Mv=(0,a.A)([""]))),qv=s.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Iv||(Iv=(0,a.A)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),c.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Nv||(Nv=(0,a.A)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),c.hs.space(-1.5))})),Gv=s.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Rv||(Rv=(0,a.A)(["\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"])),c.hs.space(-1.5),Uv,zv,Vv,c.hs.space(-2),zv,c.hs.space(-1),Hv,(function(e){return"outside"===e.labelPosition&&(0,s.AH)(Lv||(Lv=(0,a.A)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Fv||(Fv=(0,a.A)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kv(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qv=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,u=e.error,l=e.hasValue,d=e.id,f=e.label,p=e.mandatory,h=e.mandatoryTitle,m=e.immutable,g=e.touched,y=e.signal,v=e.labelPosition,b=e.styles,O=!m&&g&&u&&Object.keys(u).length>0,x=p&&h?", ".concat(h):"",k="".concat(Dl.A.adjustedHTMLString(f)).concat(x),S=y||function(e,t,n,r){return t?c.xX.condition.DANGER:e?c.xX.condition.INFO:n&&!r?c.xX.condition.WARNING:void 0}(i,O,p,l),P={__html:"".concat(ht.sanitizeHtml(f)).concat(p?" *":"")},E=!s&&!m&&{htmlFor:d};return(0,w.jsx)(an,{children:function(e){var c=e.getRef;return(0,w.jsx)(qv,{labelPosition:v,children:(0,w.jsxs)(Gv,{labelPosition:v,ref:c,label:f,styles:null==b?void 0:b.innerWrapperStyles,children:[f&&(0,w.jsx)(Bv,$v($v({},E),{},{hasValue:l,dirty:i,title:k,immutable:m,isDisplay:s,signal:S,labelPosition:v,styles:null==b?void 0:b.labelStyles,children:t||(t=(0,w.jsx)("span",{dangerouslySetInnerHTML:P}))})),(0,w.jsxs)(Yv,{labelPosition:v,children:[(0,w.jsx)(Uv,{hasValue:l,immutable:m,isDisplay:s,signal:S,labelPosition:v,styles:null==b?void 0:b.valueStyles,children:o}),O&&(n||(n=(0,w.jsx)(Vv,{children:(0,w.jsx)(Sv,{error:u})}))),a&&(r||(r=(0,w.jsx)(zv,{children:a})))]})]})})}})};var Xv,Zv,Jv=function(e){return(0,s.AH)(Xv||(Xv=(0,a.A)(["\n color: ",";\n font-weight: ",";\n"])),c.Db[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?c.t7.fontWeight("bold"):c.t7.fontWeight("regular")}))},eb=function(){return(0,s.AH)(Zv||(Zv=(0,a.A)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},tb=["labelPosition"];function nb(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 rb=function(e){var t=e.labelPosition,n=(0,h.A)(e,tb);return(0,w.jsx)(Qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Jv,valueStyles:eb},labelPosition:t||"outside-responsive"},n))};var ob,ab,ib,sb,cb,ub,lb=function(e){return e.signal?"signal":"shade2"},db=function(){return(0,s.AH)(ob||(ob=(0,a.A)(["\n align-items: flex-start;\n"])))},fb=function(e){return(0,s.AH)(ab||(ab=(0,a.A)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,s.AH)(ib||(ib=(0,a.A)(["\n ","\n "])),c.hs.space(-1.8)):(0,s.AH)(sb||(sb=(0,a.A)(["\n ","\n "])),c.hs.space(.1))}),c.Db[lb(e)](e))},pb=function(){return(0,s.AH)(cb||(cb=(0,a.A)(["\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,s.AH)(ub||(ub=(0,a.A)(["\n ","\n "])),c.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},hb=["labelPosition"];function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const gb=function(e){var t=e.labelPosition,n=(0,h.A)(e,hb);return(0,w.jsx)(Qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:db,labelStyles:fb,valueStyles:pb},labelPosition:t||"outside-responsive"},n))};var yb=(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,rb),Nm.A.EmbedType.widget,gb);const vb=Nm.A.embedStrategyFactory({mapping:yb});var bb,wb,Ob,xb,kb=s.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(bb||(bb=(0,a.A)(["\n margin-right: ",";\n color: ",";\n"])),c.hs.space(-.8),c.t7.color("text")),Sb=s.Ay.div.withConfig({displayName:"StyledSearchBox"})(wb||(wb=(0,a.A)(["\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"]))),Pb=s.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(Ob||(Ob=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn),Eb=v().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,a=e.placeholder,i=(0,y.useState)(n||""),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,w.jsx)(Sb,{children:(0,w.jsx)(vb,{hasValue:Boolean(c),labelPosition:"inside",children:(0,w.jsxs)(vn,{children:[xb||(xb=(0,w.jsx)(kb,{children:(0,w.jsx)(b.A,{icon:"search"})})),(0,w.jsx)(Pb,{"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":a,placeholder:a}),(null==c?void 0:c.length)>0&&(0,w.jsx)(X,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));Eb.defaultProps={debounce:200,minInputLength:3};const Db=E.A.Debouncer(Eb,100,"onSearch");var _b,jb=[c.xX.condition.INFO,c.xX.condition.DANGER,c.xX.condition.SUCCESS,c.xX.condition.WARNING],Ab=(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.DANGER,c.t7.color("signal.danger")),c.xX.condition.SUCCESS,c.t7.color("signal.success")),c.xX.condition.WARNING,c.t7.color("signal.warning")),c.xX.condition.INFO,c.t7.color("signal.info")),Cb=s.Ay.div.withConfig({displayName:"StyledSignalBox"})(_b||(_b=(0,a.A)(["\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 Ab[e.condition]||Ab[c.xX.condition.INFO]}(e)}),c.hs.space(-1),c.hs.space(-1));Cb.propTypes={condition:c.xX.oneOfPropTypeAndCompletelyMapped(jb,Ab)};var Tb=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,w.jsxs)(Cb,{condition:t,children:[n&&(0,w.jsx)(mt.Ay.H5,{children:n}),v().Children.map(r,(function(e){return v().cloneElement(e)})),o&&(0,w.jsx)(mt.Ay.Small,{children:o})]})};Tb.defaultProps={condition:c.xX.condition.BASE};var Mb=function(e){return(0,w.jsxs)(mt.Ay.Span,{children:[e.some," / ",e.of]})};Mb.defaultProps={some:0};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 Nb(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,p.A)(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}var Rb={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Lb={Left:"Left",Right:"Right"},Fb={Top:"Top",Bottom:"Bottom"},Hb=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Lb.Right:Lb.Left,vertical:o?Fb.Bottom:Fb.Top}};const Wb=function(e){var t=(0,y.useState)(Rb),n=(0,P.A)(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,y.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nb(Nb({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(Rb),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!af()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Hb(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return Nb(Nb({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(a&&af()(i,t)){var n=Hb(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Nb(Nb({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,s,c),o(Rb),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),dndState:(0,y.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l])}},Bb=Lb;var Yb,Ub,zb,Vb,qb,Gb,Kb,$b=s.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Yb||(Yb=(0,a.A)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),Qb=s.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Ub||(Ub=(0,a.A)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),c.hs.space(.7)),Xb=s.Ay.ul.withConfig({displayName:"StyledUl"})(zb||(zb=(0,a.A)(["\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"])),c.hs.space(-.5),mt.Gw),Zb=s.Ay.input.withConfig({displayName:"StyledCheckbox"})(Vb||(Vb=(0,a.A)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),c.hs.space(-1)),Jb=s.Ay.span.withConfig({displayName:"StyledId"})(qb||(qb=(0,a.A)(["\n color: ",";\n font-style: italic;\n"])),c.t7.color("text")),ew=(0,s.Ay)(mt.vx).withConfig({displayName:"StyledItem"})(Gb||(Gb=(0,a.A)(["\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"])),c.hs.space(-2),c.hs.space(-2),c.hs.space(-2),(function(e){return e.dropPosition===Bb.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Bb.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Bb.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 ")})),tw=s.Ay.span.withConfig({displayName:"StyledNumber"})(Kb||(Kb=(0,a.A)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),c.hs.space(-1),c.t7.color("text"),c.hs.font(0));function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ow=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]}))},aw=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const iw=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,a=e.intl,i=ow(r),s=(0,y.useState)(null),c=(0,P.A)(s,2),u=c[0],l=c[1],d=(0,y.useCallback)((function(e,t,n){if(e!==t){var r=i.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===Bb.Left)return[].concat((0,re.A)(e),[o,t]);if(i===Bb.Right)return[].concat((0,re.A)(e),[t,o])}return[].concat((0,re.A)(e),[t])}),[]);var o,a,i}))}}),[i,o]),f=Wb(d),p=f.dndEvents,h=f.dndState,m=(0,y.useMemo)((function(){return aw(i,u)}),[i,u]),g=m.some((function(e){return e.hidden})),v=(0,y.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,w.jsxs)(ew,rw(rw({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&rw({},p(e.id))),{},{children:[(0,w.jsx)(Zb,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return ow(n.map((function(n){return n.id===e.id?rw(rw({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,w.jsxs)(mt.Ay.Label,{for:e.id,children:[(0,w.jsxs)(tw,{children:[n+1,"."]}),e.label?(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(e.label)}}):(0,w.jsx)(Jb,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,w.jsxs)($b,{children:[(0,w.jsx)(Db,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,w.jsxs)(Qb,{children:[(0,w.jsx)(Zb,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=aw(e,u);return ow((0,re.A)(e.map((function(e){return rw(rw({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,w.jsx)(mt.Ay.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,w.jsx)(Xb,{children:v})]})};(0,ne.injectIntl)(iw);function sw(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 cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uw="yyyy-MM-dd",lw=function(e){return(0,dc.uv4)(e,uw)?(0,dc.qgA)(e,uw,new Date):(0,dc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,dc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,dc.ol1)(new Date(e)):null},dw={datetime:{type:"date",toRange:function(e){return{from:e?lw(e).toISOString():null,to:e?(0,dc.fij)(lw(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,dc.GPZ)(new Date(e.from),uw):null!=e&&e.to?(0,dc.GPZ)(new Date(e.to),uw):null},getToOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const fw=dw;var pw,hw,mw,gw,yw,vw=s.Ay.div.withConfig({displayName:"StyledIconWrapper"})(pw||(pw=(0,a.A)(["\n font-size: ",";\n color: ",";\n"])),c.hs.font(-2.7),c.t7.color("text")),bw=s.Ay.div.withConfig({displayName:"StyledRange"})(hw||(hw=(0,a.A)(["\n display: flex;\n align-items: baseline;\n"]))),ww=s.Ay.div.withConfig({displayName:"StyledInput"})(mw||(mw=(0,a.A)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Ow=(0,s.Ay)(X).withConfig({displayName:"StyledBall"})(gw||(gw=(0,a.A)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function xw(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 kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sw=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,s=e.toText,c=fw[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,y.useRef)(t);l.current=t;var d=(0,y.useMemo)((function(){return kw(kw({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(kw(kw({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(kw(kw({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,w.jsx)(pg,kw(kw({type:h},Kt()(e,["type"])),{},{events:d})),g=(0,w.jsxs)(ww,{children:[(0,w.jsx)(pg,kw(kw({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:i})),yw||(yw=(0,w.jsx)(vw,{children:(0,w.jsx)(b.A,{icon:"horizontal-rule"})})),(0,w.jsx)(pg,kw(kw({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,w.jsxs)(bw,{children:[u?g:m,(0,w.jsx)(Ow,{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 Pw,Ew,Dw,_w,jw,Aw=s.Ay.div.withConfig({displayName:"StyledBurgerButton"})(Pw||(Pw=(0,a.A)(["\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"])),c.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,s.AH)(Ew||(Ew=(0,a.A)(["\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,ne.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,w.jsxs)(Aw,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[Dw||(Dw=(0,w.jsx)("span",{})),_w||(_w=(0,w.jsx)("span",{})),jw||(jw=(0,w.jsx)("span",{}))]})}));var Cw,Tw,Mw=s.Ay.div.withConfig({displayName:"StyledPagination"})(Cw||(Cw=(0,a.A)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),c.hs.space(-1),c.hs.space(-1.4)),Iw=(0,s.Ay)(U).withConfig({displayName:"StyledPaginationButton"})(Tw||(Tw=(0,a.A)(["\n padding: "," ",";\n"])),c.hs.space(-2),c.hs.space(-.5));const Nw=(0,ne.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=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 a.formatMessage({id:e})},f=function(e){o(e),i.current.scrollTop=0};return(0,w.jsxs)(Mw,{children:[(0,w.jsxs)(qt,{children:[(0,w.jsx)(Iw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,w.jsx)(Iw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,w.jsx)(Iw,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,w.jsx)(Iw,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)(ne.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),Rw=Nw;var Lw;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 i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const 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)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=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>=i)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)}a(f.length==d);const p=8*t.getNumDataCodewords(l,n);a(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),a(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);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return a(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 a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(Lw||(Lw={})),(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={}))})(Lw||(Lw={})),(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={}))})(Lw||(Lw={}));var Fw=Lw;
|
|
6
|
+
var qe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ge=qe.join(","),Ke="undefined"==typeof Element,$e=Ke?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qe=!Ke&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Xe=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Ze=function(e,t,n){if(Xe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ge));return t&&$e.call(e,Ge)&&r.unshift(e),r=r.filter(n)},Je=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Xe(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),c=e(s.length?s:i.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{$e.call(i,Ge)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var u=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),l=!Xe(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(u&&l){var d=e(!0===u?i.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},et=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},tt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!et(e)?0:e.tabIndex},nt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rt=function(e){return"INPUT"===e.tagName},ot=function(e){return function(e){return rt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Qe(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},at=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},it=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=$e.call(e,"details>summary:first-of-type")?e.parentElement:e;if($e.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return at(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,s=Qe(e);if(i&&!i.shadowRoot&&!0===r(i))return at(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&Qe(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var c,u,l;s=!(null===(u=i=null===(c=a=Qe(i))||void 0===c?void 0:c.host)||void 0===u||null===(l=u.ownerDocument)||void 0===l||!l.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},st=function(e,t){return!(t.disabled||Xe(t)||function(e){return rt(e)&&"hidden"===e.type}(t)||it(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!$e.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ct=function(e,t){return!(ot(t)||tt(t)<0||!st(e,t))},ut=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},lt=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=function(e,t){var n=tt(e);return n<0&&t&&!et(e)?0:n}(i,a),c=a?e(t.candidates):i;0===s?a?n.push.apply(n,c):n.push(i):r.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:c})})),r.sort(nt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},dt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Je([e],t.includeContainer,{filter:ct.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ut}):Ze(e,t.includeContainer,ct.bind(null,t)),lt(n)};function ft(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const pt=r["useInsertionEffect".toString()]||(e=>e());function ht(e){const t=r.useRef((()=>{0}));return pt((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const mt="ArrowUp",gt="ArrowDown",yt="ArrowLeft",vt="ArrowRight";function bt(e,t,n){return Math.floor(e/t)!==n}function wt(e,t){return t<0||t>=e.current.length}function Ot(e,t){return kt(e,{disabledIndices:t})}function xt(e,t){return kt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function kt(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current,s=o?e=>o.includes(e):e=>{const t=i[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let c=n;do{c+=r?-a:a}while(c>=0&&c<=i.length-1&&s(c));return c}function St(e,t){let{event:n,orientation:r,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:c,prevIndex:u,stopEvent:l=!1}=t,d=u;if(n.key===mt){if(l&&L(n),-1===u)d=c;else if(d=kt(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),o&&(u-a<s||d<0)){const e=u%a,t=c%a,n=c-(t-e);d=t===e?c:t>e?n:n-a}wt(e,d)&&(d=u)}if(n.key===gt&&(l&&L(n),-1===u?d=s:(d=kt(e,{startingIndex:u,amount:a,disabledIndices:i}),o&&u+a>c&&(d=kt(e,{startingIndex:u%a-a,amount:a,disabledIndices:i}))),wt(e,d)&&(d=u)),"both"===r){const t=V(u/a);n.key===vt&&(l&&L(n),u%a!=a-1?(d=kt(e,{startingIndex:u,disabledIndices:i}),o&&bt(d,a,t)&&(d=kt(e,{startingIndex:u-u%a-1,disabledIndices:i}))):o&&(d=kt(e,{startingIndex:u-u%a-1,disabledIndices:i})),bt(d,a,t)&&(d=u)),n.key===yt&&(l&&L(n),u%a!=0?(d=kt(e,{startingIndex:u,disabledIndices:i,decrement:!0}),o&&bt(d,a,t)&&(d=kt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i}))):o&&(d=kt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i})),bt(d,a,t)&&(d=u));const r=V(c/a)===t;wt(e,d)&&(d=o&&r?n.key===yt?c:kt(e,{startingIndex:u-u%a-1,disabledIndices:i}):u)}return d}function Pt(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,c=!1;for(n&&(o=0);!c;){const e=[];for(let n=0;n<i;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+i<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=a})),c=!0):o++}})),[...r]}function Et(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e);switch(o){case"tl":return a;case"tr":return a+t[e].width-1;case"bl":return a+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}function Dt(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}let _t=0;function jt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(_t);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():_t=requestAnimationFrame(a)}var At="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Ct(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Tt=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Mt(e){let{children:t,elementsRef:n,labelsRef:o}=e;const[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),c=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return At((()=>{const e=new Map(a);Array.from(e.keys()).sort(Ct).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(Tt.Provider,{value:r.useMemo((()=>({register:s,unregister:c,map:a,elementsRef:n,labelsRef:o})),[s,c,a,n,o])},t)}function It(e){let{label:t}=void 0===e?{}:e;const[n,o]=r.useState(null),a=r.useRef(null),{register:i,unregister:s,map:c,elementsRef:u,labelsRef:l}=r.useContext(Tt),d=r.useCallback((e=>{if(a.current=e,null!==n&&(u.current[n]=e,l)){var r;const o=void 0!==t;l.current[n]=o?t:null!=(r=null==e?void 0:e.textContent)?r:null}}),[n,u,l,t]);return At((()=>{const e=a.current;if(e)return i(e),()=>{s(e)}}),[i,s]),At((()=>{const e=a.current?c.get(a.current):null;null!=e&&o(e)}),[c]),r.useMemo((()=>({ref:d,index:null==n?-1:n})),[n,d])}function Nt(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const Rt=r.createContext({activeIndex:0,onNavigate:()=>{}}),Lt=[yt,vt],Ft=[mt,gt],Ht=[...Lt,...Ft],Wt=r.forwardRef((function(e,t){let{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s=[],activeIndex:c,onNavigate:u,itemSizes:l,dense:d=!1,...f}=e;const[p,h]=r.useState(0),m=null!=c?c:p,g=ht(null!=u?u:h),y=r.useRef([]),v=n&&"function"!=typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=i>1;const O={...f,...v,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==v.onKeyDown||v.onKeyDown(e),function(e){if(!Ht.includes(e.key))return;let t=m;if(w){const n=l||Array.from({length:y.current.length},(()=>({width:1,height:1}))),r=Pt(n,i,d),c=r.findIndex((e=>null!=e&&!s.includes(e))),u=r.reduce(((e,t,n)=>null==t||null!=s&&s.includes(t)?e:n),-1);t=r[St({current:r.map((e=>e?y.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:Dt([...s,void 0],r),minIndex:c,maxIndex:u,prevIndex:Et(m,n,r,i,e.key===gt?"bl":e.key===vt?"tr":"tl")})]}const n=Ot(y,s),r=xt(y,s),c={horizontal:[vt],vertical:[gt],both:[vt,gt]}[o],u={horizontal:[yt],vertical:[mt],both:[yt,mt]}[o],f=w?Ht:{horizontal:Lt,vertical:Ft,both:Ht}[o];t===m&&[...c,...u].includes(e.key)&&(t=a&&t===r&&c.includes(e.key)?n:a&&t===n&&u.includes(e.key)?r:kt(y,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:s})),t===m||wt(y,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{jt(y.current[t])})))}(e)}};return r.createElement(Rt.Provider,{value:b},r.createElement(Mt,{elementsRef:y},Nt(n,O)))})),Bt=r.forwardRef((function(e,t){let{render:n,...o}=e;const a=n&&"function"!=typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext(Rt),{ref:c,index:u}=It(),l=ft([c,t,a.ref]),d=i===u;return Nt(n,{...o,...a,ref:l,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(u)}})}));function Yt(){return Yt=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},Yt.apply(this,arguments)}let Ut=!1,zt=0;const Vt=()=>"floating-ui-"+zt++;const qt=r["useId".toString()]||function(){const[e,t]=r.useState((()=>Ut?Vt():void 0));return At((()=>{null==e&&t(Vt())}),[]),r.useEffect((()=>{Ut||(Ut=!0)}),[]),e},Gt=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:f,style:{transform:p,...h}={},...m}=e;const g=qt();if(!o)return null;u*=2;const y=u/2,v=i/2*(c/-8+1),b=s/2*c/4,[w,O]=n.split("-"),x=_e.isRTL(o),k=!!f,S="top"===w||"bottom"===w,P=l&&"end"===O?"bottom":"top";let E=l&&"end"===O?"right":"left";l&&x&&(E="end"===O?"left":"right");const D=null!=(null==a?void 0:a.x)?l||a.x:"",_=null!=(null==a?void 0:a.y)?l||a.y:"",j=f||"M0,0 H"+i+" L"+(i-v)+","+(s-b)+" Q"+i/2+","+s+" "+v+","+(s-b)+" Z",A={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[w];return r.createElement("svg",Yt({},m,{"aria-hidden":!0,ref:t,width:k?i:i+u,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[E]:D,[P]:_,[w]:S||k?"100%":"calc(100% - "+u/2+"px)",transform:""+A+(null!=p?p:""),...h}}),u>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:u+(f?0:1),d:j}),r.createElement("path",{stroke:u&&!f?m.fill:"none",d:j}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-y,y:y*(k?-1:1),width:i+u,height:i})))}));function Kt(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const $t=r.createContext(null),Qt=r.createContext(null),Xt=()=>{var e;return(null==(e=r.useContext($t))?void 0:e.id)||null},Zt=()=>r.useContext(Qt);function Jt(e){const t=qt(),n=Zt(),r=Xt(),o=e||r;return At((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function en(e){let{children:t,id:n}=e;const o=Xt();return r.createElement($t.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function tn(e){let{children:t}=e;const n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>Kt()))[0];return r.createElement(Qt.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function nn(e){return"data-floating-ui-"+e}function rn(e){const t=(0,r.useRef)(e);return At((()=>{t.current=e})),t}const on=nn("safe-polygon");function an(e,t,n){return n&&!C(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function sn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:{domReference:s,floating:u},refs:l}=e,{enabled:d=!0,delay:f=0,handleClose:p=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,y=Zt(),v=Xt(),b=rn(p),w=rn(f),O=r.useRef(),x=r.useRef(),S=r.useRef(),P=r.useRef(),E=r.useRef(!0),D=r.useRef(!1),_=r.useRef((()=>{})),j=r.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);r.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(P.current),E.current=!0)}}),[d,i]),r.useEffect((()=>{if(!d||!b.current||!n)return;function e(e){j()&&o(!1,e,"hover")}const t=T(u).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u,n,o,d,b,j]);const A=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=an(w.current,"close",O.current);r&&!S.current?(clearTimeout(x.current),x.current=setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(x.current),o(!1,e,n))}),[w,o]),M=r.useCallback((()=>{_.current(),S.current=void 0}),[]),I=r.useCallback((()=>{if(D.current){const e=T(l.floating.current).body;e.style.pointerEvents="",e.removeAttribute(on),D.current=!1}}),[l]);return r.useEffect((()=>{if(d&&c(s)){const e=s;return n&&e.addEventListener("mouseleave",l),null==u||u.addEventListener("mouseleave",l),g&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",i),()=>{n&&e.removeEventListener("mouseleave",l),null==u||u.removeEventListener("mouseleave",l),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",i)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(x.current),E.current=!1,h&&!C(O.current)||m>0&&0===an(w.current,"open"))return;const t=an(w.current,"open",O.current);t?x.current=setTimeout((()=>{o(!0,e,"hover")}),t):o(!0,e,"hover")}function i(r){if(t())return;_.current();const o=T(u);if(clearTimeout(P.current),b.current){n||clearTimeout(x.current),S.current=b.current({...e,tree:y,x:r.clientX,y:r.clientY,onClose(){I(),M(),A(r,!0,"safe-polygon")}});const t=S.current;return o.addEventListener("mousemove",t),void(_.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==O.current||!k(u,r.relatedTarget))&&A(r)}function l(n){t()||null==b.current||b.current({...e,tree:y,x:n.clientX,y:n.clientY,onClose(){I(),M(),A(n)}})(n)}}),[s,u,d,e,h,m,g,A,M,I,o,n,y,w,b,a]),At((()=>{var e;if(d&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&j()){const e=T(u).body;if(e.setAttribute(on,""),e.style.pointerEvents="none",D.current=!0,c(s)&&u){var t;const e=s,n=null==y||null==(t=y.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",u.style.pointerEvents="auto",()=>{e.style.pointerEvents="",u.style.pointerEvents=""}}}}),[d,n,v,u,s,y,b,j]),At((()=>{n||(O.current=void 0,M(),I())}),[n,M,I]),r.useEffect((()=>()=>{M(),clearTimeout(x.current),clearTimeout(P.current),I()}),[d,s,M,I]),r.useMemo((()=>{if(!d)return{};function e(e){O.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===m||(clearTimeout(P.current),P.current=setTimeout((()=>{E.current||o(!0,e.nativeEvent,"hover")}),m))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}}}),[d,m,n,o,A])}const cn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),un=()=>r.useContext(cn),ln=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),c=r.useCallback((e=>{i({currentId:e})}),[]);return At((()=>{a.currentId?null===s.current?s.current=a.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),s.current=null)}),[a.currentId]),r.createElement(cn.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:c})),[a,c])},t)},dn=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:s,setState:c,timeoutMs:u}=un();At((()=>{a&&(c({delay:{open:1,close:an(s,"close")}}),a!==o&&r(!1))}),[o,r,c,a,s]),At((()=>{function e(){r(!1),c({delay:s,currentId:null})}if(!n&&a===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,c,a,o,r,s,u]),At((()=>{n&&i(o)}),[n,i,o])};function fn(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let pn=new WeakMap,hn=new WeakSet,mn={},gn=0;const yn=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,vn=e=>e&&(e.host||vn(e.parentNode)),bn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=vn(t);return e.contains(n)?n:null})).filter((e=>null!=e));function wn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=T(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,i=bn(t,e),s=new Set,c=new Set(i),u=[];mn[o]||(mn[o]=new WeakMap);const l=mn[o];return i.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(s.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(pn.get(t)||0)+1,i=(l.get(t)||0)+1;pn.set(t,r),l.set(t,i),u.push(t),1===r&&n&&hn.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),s.clear(),gn++,()=>{u.forEach((e=>{const t=(pn.get(e)||0)-1,n=(l.get(e)||0)-1;pn.set(e,t),l.set(e,n),t||(!hn.has(e)&&a&&e.removeAttribute(a),hn.delete(e)),n||e.removeAttribute(o)})),gn--,gn||(pn=new WeakMap,pn=new WeakMap,hn=new WeakSet,mn={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const On=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xn(e,t){const n=dt(e,On());"prev"===t&&n.reverse();const r=n.indexOf(x(T(e)));return n.slice(r+1)[0]}function kn(){return xn(document.body,"next")}function Sn(){return xn(document.body,"prev")}function Pn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!k(n,r)}function En(e){dt(e,On()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Dn(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const _n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function jn(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const An=r.forwardRef((function(e,t){const[n,o]=r.useState();At((()=>(_()&&o("button"),document.addEventListener("keydown",jn),()=>{document.removeEventListener("keydown",jn)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nn("focus-guard")]:"",style:_n};return r.createElement("span",Yt({},e,a))})),Cn=r.createContext(null),Tn=nn("portal");function Mn(e){let{id:t,root:n}=void 0===e?{}:e;const[o,a]=r.useState(null),i=qt(),s=Nn(),u=r.useRef(null);return At((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{u.current=null}))}),[o]),At((()=>{if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Tn,""),e.appendChild(n),u.current=n,a(n)}),[t,i]),At((()=>{if(u.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const o=document.createElement("div");o.id=i,o.setAttribute(Tn,""),e=r||e,e.appendChild(o),u.current=o,a(o)}),[t,n,i,s]),o}function In(e){let{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e;const i=Mn({id:n,root:o}),[s,c]=r.useState(null),u=r.useRef(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&(null==s||!s.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Pn(e)){("focusin"===e.type?Dn:En)(i)}}}),[i,a,null==s?void 0:s.modal]),r.createElement(Cn.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:c})),[a,i])},p&&i&&r.createElement(An,{"data-type":"outside",ref:u,onFocus:e=>{if(Pn(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=Sn()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&r.createElement("span",{"aria-owns":i.id,style:_n}),i&&(0,He.createPortal)(t,i),p&&i&&r.createElement(An,{"data-type":"outside",ref:l,onFocus:e=>{if(Pn(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=kn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const Nn=()=>r.useContext(Cn),Rn=20;let Ln=[];function Fn(e){Ln=Ln.filter((e=>e.isConnected)),e&&"body"!==o(e)&&(Ln.push(e),Ln.length>Rn&&(Ln=Ln.slice(-Rn)))}function Hn(){return Ln.slice().reverse().find((e=>e.isConnected))}const Wn=r.forwardRef((function(e,t){return r.createElement("button",Yt({},e,{type:"button",ref:t,tabIndex:-1,style:_n}))}));function Bn(e){const{context:t,children:n,disabled:o=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:c=!0,modal:l=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:p,refs:h,nodeId:m,onOpenChange:g,events:y,dataRef:v,elements:{domReference:b,floating:w}}=t,O="number"==typeof s&&s<0,S=F(b)&&O,P=!yn()||i,_=rn(a),j=rn(s),A=rn(c),C=Zt(),M=Nn(),N=r.useRef(null),R=r.useRef(null),H=r.useRef(!1),W=r.useRef(!1),B=null!=M,Y=r.useCallback((function(e){return void 0===e&&(e=w),e?dt(e,On()):[]}),[w]),U=r.useCallback((e=>{const t=Y(e);return _.current.map((e=>b&&"reference"===e?b:w&&"floating"===e?w:t)).filter(Boolean).flat()}),[b,w,_,Y]);function z(e){return!o&&d&&l?r.createElement(Wn,{ref:"start"===e?N:R,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}r.useEffect((()=>{if(o||!l)return;function e(e){if("Tab"===e.key){k(w,x(T(w)))&&0===Y().length&&!S&&L(e);const t=U(),n=I(e);"reference"===_.current[0]&&n===b&&(L(e),e.shiftKey?jt(t[t.length-1]):jt(t[1])),"floating"===_.current[1]&&n===w&&e.shiftKey&&(L(e),jt(t[0]))}}const t=T(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,b,w,l,_,S,Y,U]),r.useEffect((()=>{if(!o&&f)return w&&u(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),!l&&w.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),!l&&w.removeEventListener("focusout",t)}):void 0;function e(){W.current=!0,setTimeout((()=>{W.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(k(b,t)||k(w,t)||k(t,w)||k(null==M?void 0:M.portalNode,t)||null!=t&&t.hasAttribute(nn("focus-guard"))||C&&(fn(C.nodesRef.current,m).find((e=>{var n,r;return k(null==(n=e.context)?void 0:n.elements.floating,t)||k(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(C.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!W.current&&t!==Hn()&&(H.current=!0,g(!1,e))}))}}),[o,b,w,l,m,C,M,g,f]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==M||null==(e=M.portalNode)?void 0:e.querySelectorAll("["+nn("portal")+"]"))||[]);if(w){const e=[w,...t,N.current,R.current,_.current.includes("reference")||S?b:null].filter((e=>null!=e)),n=l||S?wn(e,P,!P):wn(e);return()=>{n()}}}),[o,b,w,l,_,M,S,P]),At((()=>{if(o||!w)return;const e=x(T(w));queueMicrotask((()=>{const t=U(w),n=j.current,r=("number"==typeof n?t[n]:n.current)||w,o=k(w,e);O||o||!p||jt(r,{preventScroll:r===w})}))}),[o,p,w,O,U,j]),At((()=>{if(o||!w)return;let e=!1;const t=T(w),n=x(t),r=v.current;function a(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&h.domReference.current&&Fn(h.domReference.current),"hover"===n&&"mouseleave"===r.type&&(H.current=!0),"outside-press"===n&&(o?(H.current=!1,e=!0):H.current=!(E(r)||D(r)))}return Fn(n),y.on("openchange",a),()=>{y.off("openchange",a);const n=x(t),o=k(w,n)||C&&fn(C.nodesRef.current,m).some((e=>{var t;return k(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&h.domReference.current&&Fn(h.domReference.current);const i=Hn();A.current&&!H.current&&u(i)&&(i===n||n===t.body||o)&&jt(i,{cancelPrevious:!1,preventScroll:e})}}),[o,w,A,v,h,y,C,m]),At((()=>{if(!o&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:f,open:p,onOpenChange:g,refs:h}),()=>{M.setFocusManagerState(null)}}),[o,M,l,p,g,h,f]),At((()=>{if(o||!w||"function"!=typeof MutationObserver||O)return;const e=()=>{const e=w.getAttribute("tabindex");_.current.includes("floating")||x(T(w))!==h.domReference.current&&0===Y().length?"0"!==e&&w.setAttribute("tabindex","0"):"-1"!==e&&w.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(w,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,w,h,_,Y,O]);const V=!o&&P&&(B||l);return r.createElement(r.Fragment,null,V&&r.createElement(An,{"data-type":"inside",ref:null==M?void 0:M.beforeInsideRef,onFocus:e=>{if(l){const e=U();jt("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(H.current=!1,Pn(e,M.portalNode)){const e=kn()||b;null==e||e.focus()}else{var t;null==(t=M.beforeOutsideRef.current)||t.focus()}}}),!S&&z("start"),n,z("end"),V&&r.createElement(An,{"data-type":"inside",ref:null==M?void 0:M.afterInsideRef,onFocus:e=>{if(l)jt(U()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(f&&(H.current=!0),Pn(e,M.portalNode)){const e=Sn()||b;null==e||e.focus()}else{var t;null==(t=M.afterOutsideRef.current)||t.focus()}}}))}const Yn=new Set,Un=r.forwardRef((function(e,t){let{lockScroll:n=!1,...o}=e;const a=qt();return At((()=>{if(!n)return;Yn.add(a);const e=/iP(hone|ad|od)|iOS/.test(S()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var c,u;const e=(null==(c=window.visualViewport)?void 0:c.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Yn.delete(a),0===Yn.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}}),[a,n]),r.createElement("div",Yt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function zn(e){return u(e.target)&&"BUTTON"===e.target.tagName}function Vn(e){return R(e)}function qn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0}=t,f=r.useRef(),p=r.useRef(!1);return r.useMemo((()=>s?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(C(f.current,!0)&&l||"click"!==c&&(!n||!u||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===c&&f.current?f.current=void 0:C(f.current,!0)&&l||(!n||!u||a.current.openEvent&&"click"!==a.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||zn(e)||(" "!==e.key||Vn(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||zn(e)||Vn(i)||" "===e.key&&p.current&&(p.current=!1,o(!n||!u,e.nativeEvent,"click"))}}}:{}),[s,a,c,l,d,i,u,n,o])}function Gn(e){return null!=e&&null!=e.clientX}function Kn(e,t){void 0===t&&(t={});const{open:n,refs:o,dataRef:i,elements:{floating:s}}=e,{enabled:c=!0,axis:u="both",x:l=null,y:d=null}=t,f=r.useRef(!1),p=r.useRef(null),[h,m]=r.useState(),[g,y]=r.useState([]),v=ht(((e,t)=>{f.current||i.current.openEvent&&!Gn(i.current.openEvent)||o.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var a,i;const s=(null==(a=e.current)?void 0:a.getBoundingClientRect())||{width:0,height:0,x:0,y:0},c="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,l=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let d=s.width,f=s.height,p=s.x,h=s.y;return null==n&&t.x&&c&&(n=s.x-t.x),null==r&&t.y&&u&&(r=s.y-t.y),p-=n||0,h-=r||0,d=0,f=0,!o||l?(d="y"===t.axis?s.width:0,f="x"===t.axis?s.height:0,p=c&&null!=t.x?t.x:p,h=u&&null!=t.y?t.y:h):o&&!l&&(f="x"===t.axis?s.height:f,d="y"===t.axis?s.width:d),o=!0,{width:d,height:f,x:p,y:h,top:h,right:p+d,bottom:h+f,left:p}}}}(o.domReference,{x:e,y:t,axis:u,dataRef:i,pointerType:h}))})),b=ht((e=>{null==l&&null==d&&(n?p.current||y([]):v(e.clientX,e.clientY))})),w=C(h)?s:n,O=r.useCallback((()=>{if(!w||!c||null!=l||null!=d)return;const e=a(o.floating.current);function t(n){const r=I(n);k(o.floating.current,r)?(e.removeEventListener("mousemove",t),p.current=null):v(n.clientX,n.clientY)}if(!i.current.openEvent||Gn(i.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),p.current=null};return p.current=n,n}o.setPositionReference(o.domReference.current)}),[i,c,w,o,v,l,d]);return r.useEffect((()=>O()),[O,g]),r.useEffect((()=>{c&&!s&&(f.current=!1)}),[c,s]),r.useEffect((()=>{!c&&n&&(f.current=!0)}),[c,n]),At((()=>{!c||null==l&&null==d||(f.current=!1,v(l,d))}),[c,l,d,v]),r.useMemo((()=>{if(!c)return{};function e(e){let{pointerType:t}=e;m(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:b,onMouseEnter:b}}}),[c,b])}const $n={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xn=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Zn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,nodeId:a,elements:{reference:i,domReference:s,floating:l},dataRef:d}=e,{enabled:f=!0,escapeKey:p=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:v=!1,referencePressEvent:w="pointerdown",ancestorScroll:x=!1,bubbles:S,capture:P}=t,E=Zt(),D=ht("function"==typeof h?h:()=>!1),_="function"==typeof h?D:h,j=r.useRef(!1),A=r.useRef(!1),{escapeKey:C,outsidePress:N}=Xn(S),{escapeKey:R,outsidePress:L}=Xn(P),F=ht((e=>{if(!n||!f||!p||"Escape"!==e.key)return;const t=E?fn(E.nodesRef.current,a):[];if(!C&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),H=ht((e=>{var t;const n=()=>{var t;F(e),null==(t=I(e))||t.removeEventListener("keydown",n)};null==(t=I(e))||t.addEventListener("keydown",n)})),W=ht((e=>{const t=j.current;j.current=!1;const n=A.current;if(A.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof _&&!_(e))return;const r=I(e),i="["+nn("inert")+"]",d=T(l).querySelectorAll(i);let f=c(r)?r:null;for(;f&&!g(f);){const e=b(f);if(g(e)||!c(e))break;f=e}if(d.length&&c(r)&&!r.matches("html,body")&&!k(r,l)&&Array.from(d).every((e=>!k(f,e))))return;if(u(r)&&l){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let o=n&&e.offsetX>r.clientWidth;if(n){"rtl"===y(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth)}if(o||t&&e.offsetY>r.clientHeight)return}const p=E&&fn(E.nodesRef.current,a).some((t=>{var n;return M(e,null==(n=t.context)?void 0:n.elements.floating)}));if(M(e,l)||M(e,s)||p)return;const h=E?fn(E.nodesRef.current,a):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),B=ht((e=>{var t;const n=()=>{var t;W(e),null==(t=I(e))||t.removeEventListener(m,n)};null==(t=I(e))||t.addEventListener(m,n)}));return r.useEffect((()=>{if(!n||!f)return;function e(e){o(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=C,d.current.__outsidePressBubbles=N;const t=T(l);p&&t.addEventListener("keydown",R?H:F,R),_&&t.addEventListener(m,L?B:W,L);let r=[];return x&&(c(s)&&(r=O(s)),c(l)&&(r=r.concat(O(l))),!c(i)&&i&&i.contextElement&&(r=r.concat(O(i.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{p&&t.removeEventListener("keydown",R?H:F,R),_&&t.removeEventListener(m,L?B:W,L),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,l,s,i,p,_,m,n,o,x,f,C,N,F,R,H,W,L,B]),r.useEffect((()=>{j.current=!1}),[_,m]),r.useMemo((()=>f?{reference:{onKeyDown:F,[$n[w]]:e=>{v&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[Qn[m]]:()=>{j.current=!0}}}:{}),[f,v,m,w,o,F])}function Jn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:a}=e;const[i,s]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||i,l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);Ye(p,o)||h(o);const[m,g]=r.useState(null),[y,v]=r.useState(null),b=r.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),O=i||m,x=s||y,k=r.useRef(null),S=r.useRef(null),P=r.useRef(d),E=null!=u,D=Ve(u),_=Ve(a),j=r.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),Fe(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Ye(P.current,t)&&(P.current=t,He.flushSync((()=>{f(t)})))}))}),[p,t,n,_]);Be((()=>{!1===l&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const A=r.useRef(!1);Be((()=>(A.current=!0,()=>{A.current=!1})),[]),Be((()=>{if(O&&(k.current=O),x&&(S.current=x),O&&x){if(D.current)return D.current(O,x,j);j()}}),[O,x,j,D,E]);const C=r.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),T=r.useMemo((()=>({reference:O,floating:x})),[O,x]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=ze(T.floating,d.x),r=ze(T.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ue(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,T.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:j,refs:C,elements:T,floatingStyles:M})),[d,j,C,T,M])}(e),d=Zt(),f=null!=Xt(),p=ht(((e,t,n)=>{e&&(m.current.openEvent=t),g.emit("openchange",{open:e,event:t,reason:n,nested:f}),null==o||o(e,t,n)})),h=r.useRef(null),m=r.useRef({}),g=r.useState((()=>Kt()))[0],y=qt(),v=r.useCallback((e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l.refs.setReference(t)}),[l.refs]),b=r.useCallback((e=>{(c(e)||null===e)&&(h.current=e,s(e)),(c(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!c(e))&&l.refs.setReference(e)}),[l.refs]),w=r.useMemo((()=>({...l.refs,setReference:b,setPositionReference:v,domReference:h})),[l.refs,b,v]),O=r.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=r.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:a,floatingId:y,events:g,open:n,onOpenChange:p})),[l,a,y,g,n,p,w,O]);return At((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===a));e&&(e.context=x)})),r.useMemo((()=>({...l,context:x,refs:w,elements:O})),[l,w,O,x])}function er(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:i,refs:s,elements:{domReference:l}}=e,{enabled:d=!0,visibleOnly:f=!0}=t,p=r.useRef(!1),h=r.useRef(),m=r.useRef(!0);return r.useEffect((()=>{if(!d)return;const e=a(l);function t(){!n&&u(l)&&l===x(T(l))&&(p.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[l,n,d]),r.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[i,d]),r.useEffect((()=>()=>{clearTimeout(h.current)}),[]),r.useMemo((()=>d?{reference:{onPointerDown(e){D(e.nativeEvent)||(m.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=I(e.nativeEvent);if(f&&c(t))try{if(_()&&A())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!R(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=c(t)&&t.hasAttribute(nn("focus-guard"))&&"outside"===t.getAttribute("data-type");h.current=window.setTimeout((()=>{const r=x(l?l.ownerDocument:document);(t||r!==l)&&(k(s.floating.current,r)||k(l,r)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[d,f,l,s,o])}const tr="active",nr="selected";function rr(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[tr]:t,[nr]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[tr,nr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function or(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>rr(t,e,"reference")),t),o=r.useCallback((t=>rr(t,e,"floating")),t),a=r.useCallback((t=>rr(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a})),[n,o,a])}let ar=!1;function ir(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function sr(e,t){return ir(t,e===mt||e===gt,e===yt||e===vt)}function cr(e,t,n){return ir(t,e===gt,n?e===yt:e===vt)||"Enter"===e||" "===e||""===e}function ur(e,t,n){return ir(t,n?e===vt:e===yt,e===mt)}function lr(e,t){const{open:n,onOpenChange:o,refs:a,elements:{domReference:i,floating:s}}=e,{listRef:c,activeIndex:l,onNavigate:d=(()=>{}),enabled:f=!0,selectedIndex:p=null,allowEscape:h=!1,loop:m=!1,nested:g=!1,rtl:y=!1,virtual:v=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:O=!0,disabledIndices:S,orientation:P="vertical",cols:j=1,scrollItemIntoView:C=!0,virtualItemRef:M,itemSizes:I,dense:N=!1}=t;const R=Xt(),H=Zt(),W=ht(d),B=r.useRef(b),Y=r.useRef(null!=p?p:-1),U=r.useRef(null),z=r.useRef(!0),V=r.useRef(W),q=r.useRef(!!s),G=r.useRef(!1),K=r.useRef(!1),$=rn(S),Q=rn(n),X=rn(C),[Z,J]=r.useState(),[ee,te]=r.useState(),ne=ht((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(v?(J(r.id),null==H||H.events.emit("virtualfocus",r),M&&(M.current=r)):jt(r,{preventScroll:!0,sync:!(!A()||!_())&&(ar||G.current)}),requestAnimationFrame((()=>{const e=X.current;e&&r&&(n||!z.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));At((()=>{document.createElement("div").focus({get preventScroll(){return ar=!0,!1}})}),[]),At((()=>{f&&(n&&s?B.current&&null!=p&&(K.current=!0,Y.current=p,W(p)):q.current&&(Y.current=-1,V.current(null)))}),[f,n,s,p,W]),At((()=>{if(f&&n&&s)if(null==l){if(G.current=!1,null!=p)return;if(q.current&&(Y.current=-1,ne(c,Y)),!q.current&&B.current&&(null!=U.current||!0===B.current&&null==U.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else Y.current=null==U.current||cr(U.current,P,y)||g?Ot(c,$.current):xt(c,$.current),U.current=null,W(Y.current)};t()}}else wt(c,l)||(Y.current=l,ne(c,Y,K.current),K.current=!1)}),[f,n,s,l,p,g,c,P,y,W,ne,$]),At((()=>{var e;if(!f||s||!H||v||!q.current)return;const t=H.nodesRef.current,n=null==(e=t.find((e=>e.id===R)))||null==(e=e.context)?void 0:e.elements.floating,r=x(T(s)),o=t.some((e=>e.context&&k(e.context.elements.floating,r)));n&&!o&&z.current&&n.focus({preventScroll:!0})}),[f,s,H,R,v]),At((()=>{if(f&&H&&v&&!R)return H.events.on("virtualfocus",e),()=>{H.events.off("virtualfocus",e)};function e(e){te(e.id),M&&(M.current=e)}}),[f,H,v,R,M]),At((()=>{V.current=W,q.current=!!s})),At((()=>{n||(U.current=null)}),[n]);const re=null!=l,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&W(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...w&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;z.current&&"touch"!==t&&(Y.current=-1,ne(c,Y),W(null),v||jt(a.floating.current,{preventScroll:!0}))}}}}),[n,a,ne,w,c,W,v]);return r.useMemo((()=>{if(!f)return{};const e=$.current;function t(t){if(z.current=!1,G.current=!0,!Q.current&&t.currentTarget===a.floating.current)return;if(g&&ur(t.key,P,y))return L(t),o(!1,t.nativeEvent,"list-navigation"),void(u(i)&&!v&&i.focus());const r=Y.current,s=Ot(c,e),l=xt(c,e);if("Home"===t.key&&(L(t),Y.current=s,W(Y.current)),"End"===t.key&&(L(t),Y.current=l,W(Y.current)),j>1){const n=I||Array.from({length:c.current.length},(()=>({width:1,height:1}))),r=Pt(n,j,N),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),a=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if(Y.current=r[St({current:r.map((e=>null!=e?c.current[e]:null))},{event:t,orientation:P,loop:m,cols:j,disabledIndices:Dt([...e||[],void 0],r),minIndex:o,maxIndex:a,prevIndex:Et(Y.current,n,r,j,t.key===gt?"bl":t.key===vt?"tr":"tl"),stopEvent:!0})],W(Y.current),"both"===P)return}if(sr(t.key,P)){if(L(t),n&&!v&&x(t.currentTarget.ownerDocument)===t.currentTarget)return Y.current=cr(t.key,P,y)?s:l,void W(Y.current);cr(t.key,P,y)?Y.current=m?r>=l?h&&r!==c.current.length?-1:s:kt(c,{startingIndex:r,disabledIndices:e}):Math.min(l,kt(c,{startingIndex:r,disabledIndices:e})):Y.current=m?r<=s?h&&-1!==r?c.current.length:l:kt(c,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(s,kt(c,{startingIndex:r,decrement:!0,disabledIndices:e})),wt(c,Y.current)?W(null):W(Y.current)}}function r(e){"auto"===b&&E(e.nativeEvent)&&(B.current=!0)}const s=v&&n&&re&&{"aria-activedescendant":ee||Z},l=c.current.find((e=>(null==e?void 0:e.id)===Z));return{reference:{...s,onKeyDown(r){z.current=!1;const a=0===r.key.indexOf("Arrow"),i=function(e,t,n){return ir(t,n?e===yt:e===vt,e===gt)}(r.key,P,y),s=ur(r.key,P,y),u=sr(r.key,P),d=(g?i:u)||"Enter"===r.key||""===r.key.trim();if(v&&n){const e=null==H?void 0:H.nodesRef.current.find((e=>null==e.parentId)),n=H&&e?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),fn(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(H.nodesRef.current,e.id):null;if(a&&n&&M){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(i||s){var f,h;const t=(null==(f=n.context)?void 0:f.elements.domReference)===r.currentTarget,o=s&&!t?null==(h=n.context)?void 0:h.elements.domReference:i?l:null;o&&(L(r),o.dispatchEvent(e),te(void 0))}var m;if(u&&n.context)if(n.context.open&&n.parentId&&r.currentTarget!==n.context.elements.domReference)return L(r),void(null==(m=n.context.elements.domReference)||m.dispatchEvent(e))}return t(r)}(n||O||!a)&&(d&&(U.current=g&&u?null:r.key),g?i&&(L(r),n?(Y.current=Ot(c,e),W(Y.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=p&&(Y.current=p),L(r),!n&&O?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&W(Y.current)))},onFocus(){n&&W(null)},onPointerDown:function(e){B.current=b,"auto"===b&&D(e.nativeEvent)&&(B.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===P?void 0:P,...!F(i)&&s,onKeyDown:t,onPointerMove(){z.current=!0}},item:oe}}),[i,a,Z,ee,$,Q,c,f,P,y,v,n,re,g,p,O,h,j,m,b,W,o,oe,H,M,I,N])}const dr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function fr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,c=null!=(n=dr.get(s))?n:s,u=qt(),l=null!=Xt();return r.useMemo((()=>{if(!i)return{};const e={id:a,...c&&{role:c}};return"tooltip"===c||"label"===s?{reference:{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":o?a:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:u},..."menu"===c&&l&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===c&&{"aria-labelledby":u}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[i,s,c,o,a,u,l])}const pr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function hr(e,t){return"function"==typeof e?e(t):e}function mr(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"==typeof a?a:a.close)||0,[s,c]=r.useState(!1),[u,l]=r.useState("unmounted"),d=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,i);return At((()=>{s&&!d&&l("unmounted")}),[s,d]),At((()=>{if(o){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}c(!0),l("close")}}),[n,o]),{isMounted:d,status:u}}function gr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,c=e.placement,u=c.split("-")[0],l=r.useMemo((()=>({side:u,placement:c})),[u,c]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=r.useState((()=>({...hr(i,l),...hr(n,l)}))),{isMounted:g,status:y}=mr(e,{duration:s}),v=rn(n),b=rn(o),w=rn(a),O=rn(i);return At((()=>{const e=hr(v.current,l),t=hr(w.current,l),n=hr(O.current,l),r=hr(b.current,l)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:f+"ms",...n,...r}),"close"===y){const r=t||e;m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,v,b,O,f,y,l]),{isMounted:g,styles:h}}function yr(e,t){var n;const{open:o,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=r.useRef(),g=r.useRef(""),y=r.useRef(null!=(n=null!=h?h:s)?n:-1),v=r.useRef(null),b=ht(c),w=ht(u),O=rn(d),x=rn(p);return At((()=>{o&&(clearTimeout(m.current),v.current=null,g.current="")}),[o]),At((()=>{var e;o&&""===g.current&&(y.current=null!=(e=null!=h?h:s)?e:-1)}),[o,h,s]),r.useMemo((()=>{if(!l)return{};function e(e){e?a.current.typing||(a.current.typing=e,w(e)):a.current.typing&&(a.current.typing=e,w(e))}function t(e,t,n){const r=O.current?O.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}function n(n){const r=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(r,r,g.current)?e(!1):" "===n.key&&L(n)),null==r||x.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;o&&" "!==n.key&&(L(n),e(!0));r.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===n.key&&(g.current="",y.current=v.current),g.current+=n.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",y.current=v.current,e(!1)}),f);const a=y.current,s=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],g.current);-1!==s?(b(s),v.current=s):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[l,o,a,i,f,x,O,b,w])}function vr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const br=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:c=0,scrollRef:u,...l}=e,{rects:d,elements:{floating:f}}=t,p=n.current[i];if(!p)return{};const h={...t,...await pe(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-a).fn(t)},m=(null==u?void 0:u.current)||f,g=await ue(vr(h,m.scrollHeight),l),y=await ue(h,{...l,elementContext:"reference"}),v=Math.max(0,g.top),b=h.y+v,w=Math.max(0,m.scrollHeight-v-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=v,o&&(m.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||y.top>=-c||y.bottom>=-c?(0,He.flushSync)((()=>o(!0))):(0,He.flushSync)((()=>o(!1)))),r&&(r.current=await ue(vr({...h,y:b},m.offsetHeight),l)),{y:b}}});function wr(e,t){const{open:n,elements:o}=e,{enabled:a=!0,overflowRef:i,scrollRef:s,onChange:c}=t,u=ht(c),l=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);return r.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,He.flushSync)((()=>{u((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(P())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=i.current&&(f.current={...i.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,o.floating,i,s,u]),r.useMemo((()=>a?{floating:{onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(i.current&&e&&l.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,He.flushSync)((()=>u((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[a,i,o.floating,s,u])}function Or(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[c,u]=t[i]||[0,0];s>=r!=u>=r&&n<=(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}function xr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,u=performance.now();const l=e=>{let{x:n,y:l,placement:d,elements:f,onClose:p,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),p()}if(clearTimeout(o),!f.domReference||!f.floating||null==d||null==n||null==l)return;const{clientX:y,clientY:v}=e,b=[y,v],w=I(e),O="mouseleave"===e.type,x=k(f.floating,w),S=k(f.domReference,w),P=f.domReference.getBoundingClientRect(),E=f.floating.getBoundingClientRect(),D=d.split("-")[0],_=n>E.right-E.width/2,j=l>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,P),C=E.width>P.width,T=E.height>P.height,M=(C?P:E).left,N=(C?P:E).right,R=(T?P:E).top,L=(T?P:E).bottom;if(x&&(a=!0,!O))return;if(S&&(a=!1),S&&!O)return void(a=!0);if(O&&c(e.relatedTarget)&&k(f.floating,e.relatedTarget))return;if(m&&fn(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===D&&l>=P.bottom-1||"bottom"===D&&l<=P.top+1||"left"===D&&n>=P.right-1||"right"===D&&n<=P.left+1)return g();let F=[];switch(D){case"top":F=[[M,P.top+1],[M,E.bottom-1],[N,E.bottom-1],[N,P.top+1]];break;case"bottom":F=[[M,E.top+1],[M,P.bottom-1],[N,P.bottom-1],[N,E.top+1]];break;case"left":F=[[E.right-1,L],[E.right-1,R],[P.left+1,R],[P.left+1,L]];break;case"right":F=[[P.right-1,L],[P.right-1,R],[E.left+1,R],[E.left+1,L]]}if(!Or([y,v],F)){if(a&&!A)return g();if(!O&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===i||null===s||0===r)return i=e,s=t,u=n,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,u=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Or([y,v],function(e){let[n,r]=e;switch(D){case"top":return[[C?n+t/2:_?n+4*t:n-4*t,r+t+1],[C?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[E.left,_||C?E.bottom-t:E.top],[E.right,_?C?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[C?n+t/2:_?n+4*t:n-4*t,r-t],[C?n-t/2:_?n+4*t:n-4*t,r-t],...[[E.left,_||C?E.top+t:E.bottom],[E.right,_?C?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,T?r+t/2:j?r+4*t:r-4*t],o=[n+t+1,T?r-t/2:j?r+4*t:r-4*t];return[...[[j||T?E.right-t:E.left,E.top],[j?T?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,T?r+t/2:j?r+4*t:r-4*t],[n-t,T?r-t/2:j?r+4*t:r-4*t],...[[j||T?E.left+t:E.right,E.top],[j?T?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,l]))?!a&&r&&(o=window.setTimeout(g,40)):g()}}};return l.__options={blockPointerEvents:n},l}},28424:(e,t,n)=>{"use strict";n.d(t,{$:()=>X,A:()=>I,B:()=>D,C:()=>R,D:()=>y,E:()=>w,F:()=>F,G:()=>V,H:()=>u,J:()=>H,L:()=>$,M:()=>ee,N:()=>ne,O:()=>J,P:()=>M,Q:()=>oe,R:()=>N,S:()=>B,T:()=>T,Z:()=>Q,a:()=>L,a2:()=>te,a4:()=>re,b:()=>W,d:()=>Y,e:()=>C,f:()=>U,g:()=>z,h:()=>q,i:()=>v,j:()=>P,k:()=>s,l:()=>S,m:()=>b,n:()=>A,o:()=>p,p:()=>l,q:()=>g,r:()=>f,s:()=>k,t:()=>c,u:()=>d,v:()=>E,y:()=>x,z:()=>O});var r=n(63821),o=n(86005),a=n(21225),i=n(37089),s=function(e){return function(){return e}}(!0),c=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function y(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var v=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},w=function(e){return function(t){return e(Object.defineProperty(t,r.q8,{value:!0}))}},O=function(e){return e===r.a6},x=function(e){return e===r.nm},k=function(e){return O(e)||x(e)};function S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,s=(0,a.YO)(e)?b(r):{},u={};return n.forEach((function(e){var n=function(n,a){o||(a||k(n)?(t.cancel(),t(n,a)):(s[e]=n,++i===r&&(o=!0,t(s))))};n.cancel=c,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function P(e){return{name:e.name||"anonymous",location:E(e)}}function E(e){return e[r.x2]}function D(){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 _={isEmpty:s,put:c,take:c};function j(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+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)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var A=function(){return _},C=function(e){return j(e,4)},T="TAKE",M="PUT",I="ALL",N="RACE",R="CALL",L="CPS",F="FORK",H="JOIN",W="CANCEL",B="SELECT",Y="ACTION_CHANNEL",U="CANCELLED",z="FLUSH",V="GET_CONTEXT",q="SET_CONTEXT",G=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},K=function(e){return G(F,(0,o.A)({},e.payload,{detached:!0}))};function $(e,t){return void 0===e&&(e="*"),(0,a.T1)(e)?((0,a.uQ)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),G(T,{pattern:e})):(0,a.fD)(e)&&(0,a.uQ)(t)&&(0,a.T1)(t)?G(T,{channel:e,pattern:t}):(0,a.Ix)(e)?((0,a.uQ)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),G(T,{channel:e})):void 0}function Q(e,t){return(0,a.vD)(t)&&(t=e,e=void 0),G(M,{channel:e,action:t})}function X(e){var t=G(I,e);return t.combinator=!0,t}function Z(e,t){var n,r=null;return(0,a.Pc)(e)?n=e:((0,a.YO)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,a.Yj)(n)&&(0,a.Pc)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function J(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 G(R,Z(e,n))}function ee(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 G(F,Z(e,n))}function te(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 K(ee.apply(void 0,[e].concat(n)))}function ne(e){return void 0===e&&(e=r.Pe),G(W,e)}function re(e){void 0===e&&(e=u);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(B,{selector:e,args:n})}var oe=J.bind(null,i.A)},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},21225:(e,t,n)=>{"use strict";n.d(t,{HR:()=>h,Ix:()=>f,Pc:()=>i,T1:()=>d,YO:()=>c,Yj:()=>s,fD:()=>m,iv:()=>u,lJ:()=>l,mr:()=>p,uQ:()=>a,vD:()=>o});var r=n(63821),o=function(e){return null==e},a=function(e){return null!=e},i=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},c=Array.isArray,u=function(e){return e&&i(e.then)},l=function(e){return e&&i(e.next)&&i(e.throw)},d=function e(t){return t&&(s(t)||h(t)||i(t)||c(t)&&t.every(e))},f=function(e){return e&&i(e.take)&&i(e.close)},p=function(e){return i(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return f(e)&&e[r.Xl]}},63821:(e,t,n)=>{"use strict";n.d(t,{E_:()=>s,IO:()=>i,Pe:()=>l,Xl:()=>c,a6:()=>p,bO:()=>o,nm:()=>f,q8:()=>u,wn:()=>d,x2:()=>h,x7:()=>a});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),a=r("CHANNEL_END"),i=r("IO"),s=r("MATCH"),c=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),d=r("TASK"),f=r("TASK_CANCEL"),p=r("TERMINATE"),h=r("LOCATION")},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0}},82558:(e,t,n)=>{"use strict";n.d(t,{$y:()=>r,AM:()=>d,Dh:()=>s,EG:()=>P,EY:()=>h,ID:()=>u,JK:()=>E,KM:()=>a,M2:()=>f,XC:()=>c,Yn:()=>l,Yv:()=>v,Zc:()=>i,a9:()=>x,cM:()=>O,cV:()=>b,iN:()=>g,ln:()=>o,o_:()=>m,q0:()=>k,rw:()=>w,sT:()=>p,vJ:()=>y,xC:()=>S});var r="dbrefactoring/LOAD_MODULES",o="dbrefactoring/LOAD_FRAGMENTS",a="dbrefactoring/SET_VERSION",i="dbrefactoring/SET_FRAGMENTS",s="dbrefactoring/SET_MODULES",c="dbrefactoring/SET_SELECTED_MODULES",u="dbrefactoring/SET_FRAGMENT_SELECTED",l="dbrefactoring/SET_IGNORE_ERRORS",d="dbrefactoring/EXECUTE_DB_REFACTORING",f="dbrefactoring/SET_LANGUAGE",p="dbrefactoring/EXECUTE_LANGUAGE_UPGRADE",h="dbrefactoring/UNSET_RUNNING",m=function(){return{type:r}},g=function(){return{type:o}},y=function(e){return{type:a,payload:{version:e}}},v=function(e){return{type:i,payload:{fragments:e}}},b=function(e){return{type:s,payload:{modules:e}}},w=function(e){return{type:c,payload:{selectedModules:e}}},O=function(e,t){return{type:u,payload:{fragment:e,selected:t}}},x=function(e){return{type:l,payload:{ignoreErrors:e}}},k=function(){return{type:d}},S=function(e){return{type:f,payload:{language:e}}},P=function(){return{type:p}},E=function(e){return{type:h,payload:{path:e}}}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,E9:()=>S,Fr:()=>E,HA:()=>f,Jg:()=>k,Ki:()=>P,QQ:()=>O,TA:()=>v,UT:()=>w,Ur:()=>s,V8:()=>u,VI:()=>g,Wt:()=>h,XS:()=>p,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>c,tW:()=>l,uN:()=>y,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",s="modelvalidation/ADD_CHECK_EVENT",c="modelvalidation/SET_RESULT",u="modelvalidation/SET_SELECTED",l="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",f="modelvalidation/EXECUTE_SQL",p="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){return{type:o,payload:{message:e}}},y=function(e){return{type:c,payload:{result:e}}},v=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:s,payload:{id:e,type:t,label:n}}},O=function(e,t){return{type:u,payload:{ids:e,selected:t}}},x=function(){return{type:l}},k=function(e){return{type:d,payload:{sql:e}}},S=function(e){return{type:f,payload:{close:e}}},P=function(){return{type:p}},E=function(e){return{type:h,payload:{changelog:e}}}},42938:(e,t,n)=>{"use strict";n.d(t,{A0:()=>o,AB:()=>a,Fm:()=>s,bJ:()=>r,dy:()=>c,oG:()=>i});var r="sqllog/RECEIVE_ENTRY",o="sqllog/SET_ACTIVE",a="sqllog/SET_ELAPSED",i=function(e){return{type:r,payload:{data:e}}},s=function(e){return{type:o,payload:{active:e}}},c=function(e){return{type:a,payload:{elapsed:e}}}},6730:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(54756),o=n.n(r),a=n(43786),i="EMIT_ACTION",s="DISPATCH_EMITTED_ACTION",c=o().mark(u);function u(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.Q7)([(0,a.jP)(i,l,e),(0,a.jP)(s,d)]);case 2:case"end":return t.stop()}}),c)}function l(e,t){var n=t.payload;return o().mark((function t(){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,(0,a.Lt)(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,(0,a.T1)(i,r);case 7:case"end":return t.stop()}}),t)}))()}function d(e){var t=e.payload;return o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,(0,a.yJ)(n);case 3:case"end":return e.stop()}}),e)}))()}const f={emitAction:function(e){return{type:i,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:s,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(u,t)}}},86962:(e,t,n)=>{"use strict";n.d(t,{A:()=>Xo});var r=n(5556),o=n.n(r),a=n(71468),i="notification/MODAL",s="notification/REMOVE_MODAL",c=function(e,t,n,r){return{type:i,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){}}}},u=function(e){return{type:s,payload:{id:e}}},l=n(81845),d=n.n(l),f=n(7248);const p={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};o().shape({id:o().string.isRequired,title:o().string,body:o().oneOfType([o().string,o().element]),type:o().oneOf(Object.values(p))}),o().shape({id:o().oneOfType([o().string,o().number]).isRequired,title:o().oneOfType([o().string,o().node]),message:o().oneOfType([o().string,o().node]),component:o().func,cancelable:o().bool,cancelCallback:o().func,type:o().oneOf(Object.values(p))});var h,m,g=n(57528),y=n(43759),v=y.Ay.div.withConfig({displayName:"StyledPageOverlay"})(h||(h=(0,g.A)(["\n background-color: rgba(50, 50, 50, 0.7);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),b=y.Ay.div.withConfig({displayName:"StyledHolder"})(m||(m=(0,g.A)(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n // higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n // lower than ext-js legacy actions\n z-index: 9000;\n"]))),w=n(23228),O=n(85015),x=n.n(O),k=n(11843),S=n(74848);const P=function(e){var t,n=e.children;return x()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,S.jsx)(f.Ar,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,S.jsx)(k.FormattedMessage,{id:n}):(0,S.jsx)("span",{children:n}):n};var E,D,_=n(64467);const j={blockingDiplayStyles:(0,y.AH)(E||(E=(0,g.A)(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),f.t7.color("signal.info"),f.t7.color("paper")),titleWrapperStyles:(0,y.AH)(D||(D=(0,g.A)(["\n color: ",";\n"])),f.t7.color("paper"))};var A,C;const T={blockingDiplayStyles:(0,y.AH)(A||(A=(0,g.A)(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),f.t7.color("paper"),f.t7.color("border"),f.t7.radii("toaster"),f.t7.color("text")),titleWrapperStyles:(0,y.AH)(C||(C=(0,g.A)(["\n color: ",";\n"])),f.t7.color("signal.info"))};var M,I,N=(0,_.A)((0,_.A)({},w.A.EmbedType.admin,j),w.A.EmbedType.widget,T),R=y.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(M||(M=(0,g.A)(["\n // only latest modal should be above mask\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),f.hs.space(-.5),(function(e){return e.styles})),L=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(I||(I=(0,g.A)(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),f.hs.font(1.5),f.t7.fontWeight("regular"),(function(e){return e.styles}));const F=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=w.A.embedStrategy({mapping:N});return(0,S.jsxs)(R,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(L,{styles:a.titleWrapperStyles,children:(0,S.jsx)(P,{children:n})})}),r&&(0,S.jsx)(f.o5.Span,{children:(0,S.jsx)(P,{children:r})})]})};const H=function(e){var t=e.blocker,n=e.isLatest;return(0,S.jsx)(F,{blocker:t,isLatest:n})};var W,B,Y,U,z,V,q,G,K,$,Q,X=n(4883),Z=f.hs.space(.5),J=y.Ay.div.withConfig({displayName:"StyledModalContent"})(W||(W=(0,g.A)(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);\n max-height: 80%;\n min-width: 350px;\n max-width: 700px;\n margin: auto;\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),f.t7.color("paper"),f.t7.radii("modal"),Z,f.gQ),ee=y.Ay.button.withConfig({displayName:"StyledCloseButton"})(B||(B=(0,g.A)(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),f.t7.color("text")),te=y.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Y||(Y=(0,g.A)(["\n width: 100%;\n height: 100%;\n position: absolute;\n // only latest modal should be above mask\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),ne=y.Ay.div.withConfig({displayName:"StyledModalHeader"})(U||(U=(0,g.A)(["\n grid-row-start: header;\n display: flex;\n"]))),re=y.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(z||(z=(0,g.A)(["\n padding-bottom: ",";\n"])),f.hs.space(.5)),oe=y.Ay.div.withConfig({displayName:"StyledModalBody"})(V||(V=(0,g.A)(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),ae=y.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(q||(q=(0,g.A)(["\n padding-bottom: ",";\n"])),f.hs.space(0)),ie=(0,y.Ay)(f.$n).withConfig({displayName:"StyledModalButton"})(G||(G=(0,g.A)(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),f.hs.space(0)),se=y.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(K||(K=(0,g.A)(["\n display: flex;\n justify-content: flex-end;\n"]))),ce=(0,y.DU)($||($=(0,g.A)(["\n "," {\n && {\n z-index: 9999999; // higher than StyledModalHolder\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),f.Ec);const ue=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,X.useRef)(null),p=(0,X.useCallback)((function(){c(i)}),[c,i]),h=(0,X.useCallback)((function(){u(i)}),[u,i]);(0,X.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&h()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[h,r]),(0,X.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var m=(0,X.useMemo)((function(){return t||(t=(0,S.jsx)(s,{close:p}))}),[s,p]);return(0,S.jsxs)(S.Fragment,{children:[Q||(Q=(0,S.jsx)(ce,{})),(0,S.jsx)(te,{isLatest:l,children:(0,S.jsxs)(J,{ref:d,"data-cy":"modal-content",children:[(0,S.jsxs)(ne,{children:[a&&(0,S.jsx)(re,{children:(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(P,{children:a})})}),r&&(0,S.jsx)(ee,{onClick:h,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,S.jsxs)(oe,{children:[o&&(0,S.jsx)(ae,{children:(0,S.jsx)(f.o5.Span,{children:(0,S.jsx)(P,{children:o})})}),m]})]})})]})};const le=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,S.jsx)(ue,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var de={closeModal:u};const fe=(0,a.Ng)((function(){return{}}),de)(le);var pe;const he=function(e){var t=e.overlays;return t.length>0&&d().createPortal((0,S.jsxs)(b,{className:f.eG,children:[t.map((function(e,n){return function(e,t,n){return e.type===p.MODAL?(0,S.jsx)(fe,{idx:t,modal:e,isLatest:n},t):e.type===p.BLOCKER?(0,S.jsx)(H,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),pe||(pe=(0,S.jsx)(v,{}))]}),document.body)};var me={closeModal:u};const ge=(0,a.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),me)(he);var ye="notification/SET_UNREAD_NOTIFICATION_KEYS",ve="notification/UPDATE_UNREAD_NOTIFICATION",be="notification/LOAD_NOTIFICATIONS",we="notification/SET_NOTIFICATION",Oe="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",xe="notification/UPDATE_NOTIFICATION",ke="notification/IS_LOADING_MORE_NOTIFICATIONS",Se="notification/MARK_AS_READ",Pe="notification/CANCEL_TASK",Ee=function(e){return{type:ye,payload:{unreadNotificationKeys:e}}},De=function(e,t){return{type:ve,payload:{notificationKey:e,read:t}}},_e=function(e){return{type:we,payload:{notifications:e}}},je=function(e){return{type:Oe,payload:{moreNotificationsAvailable:e}}},Ae=function(e){return{type:xe,payload:{notification:e}}},Ce=function(){return{type:ke,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Te=function(e){return{type:Se,payload:{notificationKey:e}}},Me=function(e){return{type:Pe,payload:{taskExecutionKey:e}}},Ie="notification/TOASTER",Ne="notification/REMOVE_TOASTER",Re="notification/REMOVE_TOASTER_FROM_STORE",Le=function(e){return{type:Ie,payload:{toaster:e}}},Fe=function(e,t){return{type:Ne,payload:{key:e,manually:t}}},He=function(e){return{type:Re,payload:{key:e}}},We=n(79308),Be={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},Ye={outputjob:"OUTPUTJOB",entities:"ENTITIES"},Ue=(0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)({},Be.neutral,null),Be.error,"times-circle"),Be.warning,"exclamation-circle"),Be.success,"check-circle"),Be.info,"info-circle");o().shape({key:o().string.isRequired,message:o().string,read:o().bool,timestamp:o().string,originId:o().string,type:o().string,taskProgress:o().shape({taskExecutionKey:o().string.isRequired,status:o().string,message:o().string,percentage:o().number,done:o().number,total:o().number,supportsCancellation:o().bool,isRunning:o().bool})});function ze(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 Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe=function(e,t){return Number.isInteger(e)?e:function(e){return e===Be.error||e===Be.warning}(t)?-1:5e3};function Ge(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Ke(){return Ke=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},Ke.apply(this,arguments)}o().shape({type:o().oneOf(Object.values(Be)).isRequired,title:o().oneOfType([o().string,o().func]),message:o().oneOfType([o().string,o().func]),body:o().oneOfType([o().string,o().func]),onClose:o().func,icons:o().string,duration:o().number,time:o().instanceOf(Date)}),o().func.isRequired,o().func.isRequired,o().object;var $e,Qe,Xe,Ze,Je,et,tt,nt,rt=n(5544),ot=n(96424),at=(0,y.i7)($e||($e=(0,g.A)(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),it=y.Ay.div.withConfig({displayName:"StyledToaster"})(Qe||(Qe=(0,g.A)(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgba(0, 0, 0, 0.7);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),f.hs.space(-.5),f.hs.space(0),at),st=(0,y.Ay)(f.cx).withConfig({displayName:"StyledCloseButton"})(Xe||(Xe=(0,g.A)(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &:hover {\n background-color: transparent;\n cursor: pointer;\n }\n ","\n"])),f.hs.font(3),f.t7.color("backgroundBody"),(function(e){return e.styles})),ct=y.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(Ze||(Ze=(0,g.A)(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),f.hs.space(0),f.hs.space(0),f.rd,(function(e){return e.styles})),ut=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Je||(Je=(0,g.A)(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),f.hs.font(1.5),f.t7.fontWeight("regular")),lt=y.Ay.div.withConfig({displayName:"StyledIconWrapper"})(et||(et=(0,g.A)(["\n font-size: ",";\n"])),f.hs.font(7)),dt=y.Ay.div.withConfig({displayName:"StyledContentWrapper"})(tt||(tt=(0,g.A)(["\n padding-top: ",";\n color: ",";\n"])),f.hs.space(-1),f.t7.color("textToaster")),ft=y.Ay.div.withConfig({displayName:"StyledToasterBox"})(nt||(nt=(0,g.A)(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); // subtract height of header plus some additional padding\n min-width: 310px;\n max-width: 400px;\n top: 40px; // height of Header to prevent coverage\n right: 55px;\n // lower than StyledModalHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); // subtract height of header\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,f.Ed)());const pt=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,X.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=ot.A.useUserActive(i),c=(0,rt.A)(s,3),u=c[0],l=c[1],d=c[2];(0,X.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,S.jsxs)(it,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==a?void 0:a.toasterStyles,children:[(0,S.jsx)(st,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,S.jsxs)(ct,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,S.jsx)(lt,{children:(0,S.jsx)(f.In,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,S.jsx)(f.o5.H1,{children:(0,S.jsx)(ut,{children:(0,S.jsx)(P,{children:t.title})})})]}),t.body&&(0,S.jsx)(dt,{children:(0,S.jsx)(P,{children:"function"==typeof t.body?(0,S.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var ht,mt,gt={info:"info",success:"success",error:"danger",warning:"warning"},yt=function(){return(0,y.AH)(ht||(ht=(0,g.A)(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return gt[e]?t.colors.signal[gt[e]]:"#ccc"}(e.type,e.theme)}),f.t7.color("textToaster"))},vt=function(){return(0,y.AH)(mt||(mt=(0,g.A)(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),f.t7.color("textToaster"))};function bt(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 wt=function(e){var t=Ke({},(Ge(e),e));return(0,S.jsx)(pt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:yt,closeButtonStyles:vt}},t))};var Ot,xt,kt={info:"info",success:"success",error:"danger",warning:"warning"},St=function(){return(0,y.AH)(Ot||(Ot=(0,g.A)(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),f.t7.color("paper"),f.t7.radii("statusLabel"),f.t7.color("border"),f.t7.color("text"))},Pt=function(){return(0,y.AH)(xt||(xt=(0,g.A)(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return kt[e]?t.colors.signal[kt[e]]:"#ccc"}(e.type,e.theme)}))};function Et(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 Dt=function(e){var t=Ke({},(Ge(e),e));return(0,S.jsx)(pt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:St,iconTitleWrapperStyles:Pt}},t))};var _t=(0,_.A)((0,_.A)({},w.A.EmbedType.admin,wt),w.A.EmbedType.widget,Dt);const jt=w.A.embedStrategyFactory({mapping:_t});const At=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,S.jsx)(jt,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,S.jsx)(S.Fragment,{children:t&&d().createPortal((0,S.jsx)(ft,{className:f.eG,children:a}),document.body)})};var Ct={removeToaster:Fe,cancelTask:Me};const Tt=(0,a.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Ct)(At);var Mt;const It=function(e){var t=e.navigationStrategy;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Tt,{navigationStrategy:t}),Mt||(Mt=(0,S.jsx)(ge,{}))]})};var Nt,Rt,Lt,Ft,Ht,Wt,Bt,Yt,Ut,zt,Vt="notification/BLOCKING_INFO",qt="notification/REMOVE_BLOCKING_INFO",Gt=n(51732),Kt=y.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(Nt||(Nt=(0,g.A)(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),f.hs.space(-1.5)),$t=y.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(Rt||(Rt=(0,g.A)(["\n margin-right: ",";\n"])),f.hs.space(-1.5)),Qt=y.Ay.div.withConfig({displayName:"StyledProgressOuter"})(Lt||(Lt=(0,g.A)(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),f.t7.color("paper")),Xt=y.Ay.div.withConfig({displayName:"StyledProgressInner"})(Ft||(Ft=(0,g.A)(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),f.t7.color("paper"),(function(e){return e.percentage})),Zt=y.Ay.span.withConfig({displayName:"StyledMessage"})(Ht||(Ht=(0,g.A)(["\n margin-right: ",";\n"])),f.hs.space(-2)),Jt=y.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(Wt||(Wt=(0,g.A)(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),f.hs.space(-2),f.hs.space(-2),f.hs.font(-1)),en=y.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(Bt||(Bt=(0,g.A)(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; // nice2 reset\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),f.t7.color("text"),f.t7.color("text")),tn=y.Ay.div.withConfig({displayName:"StyledFileDescription"})(Yt||(Yt=(0,g.A)(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),f.hs.space(0)),nn=y.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Ut||(Ut=(0,g.A)(["\n padding-right: ",";\n"])),f.hs.space(-1.5)),rn=y.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(zt||(zt=(0,g.A)(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),f.t7.color("text"));const on=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,S.jsx)(Zt,{children:(0,S.jsx)(P,{children:t})}):null};var an,sn=n(94394),cn=n.n(sn),un=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,S.jsx)(f.AM,{content:(0,S.jsx)(f.o5.P,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const ln=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,S.jsx)(S.Fragment,{children:Object.entries(cn()(r,(function(e){return e.model}))).map((function(e){var t=(0,rt.A)(e,2),r=t[0],o=t[1];return(0,S.jsx)(Jt,{children:n&&n.ListOrDetailLink&&(0,S.jsx)(un,{hasTooManyEntities:o.length>100,children:(0,S.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[an||(an=(0,S.jsx)(f.In,{icon:"arrow-right"}))," ",(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var dn,fn,pn,hn,mn,gn,yn=n(31558);const vn=(0,k.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},s=i("client.common.notification.outputJobFileLink"),c=i("client.common.notification.outputJobFileDownload");return o?(0,S.jsxs)(en,{children:[(0,S.jsx)(tn,{children:(0,S.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,S.jsx)("div",{children:(0,S.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[dn||(dn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"eye"})})),fn||(fn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),yn.A.downloadSupportedByBrowser()&&(0,S.jsxs)("a",{href:yn.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[pn||(pn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"arrow-to-bottom"})})),hn||(hn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,S.jsx)(Jt,{children:n&&n.DetailLink&&(0,S.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[mn||(mn=(0,S.jsx)(f.In,{icon:"arrow-right"}))," ",gn||(gn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var bn=(0,_.A)((0,_.A)({},Ye.outputjob,vn),Ye.entities,ln);const wn=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(bn[r]){var o=bn[r];return(0,S.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var On,xn,kn,Sn,Pn;const En=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===Be.info&&o.isRunning&&o.supportsCancellation;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(Kt,{children:[(0,S.jsx)($t,{children:o.isRunning&&(On||(On=(0,S.jsx)(f.kt,{})))}),(0,S.jsx)(on,{notification:t})]}),"running_absolute"===o.status&&(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(Qt,{children:(0,S.jsx)(Xt,{percentage:o.percentage})})}),(0,S.jsx)(Jt,{children:a&&(0,S.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[xn||(xn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"arrow-right"})})),kn||(kn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,S.jsxs)(rn,{onClick:function(){return n(o.taskExecutionKey)},children:[Sn||(Sn=(0,S.jsx)(nn,{children:(0,S.jsx)(f.In,{icon:"times"})})),Pn||(Pn=(0,S.jsx)(k.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const Dn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress;return o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(on,{notification:t}),(0,S.jsx)(wn,{notification:t,navigationStrategy:r})]}):a?(0,S.jsx)(En,{notification:t,navigationStrategy:r,cancelTask:n}):(0,S.jsx)(on,{notification:t})},_n=Dn;var jn,An,Cn,Tn,Mn,In,Nn,Rn,Ln={warning:f.t7.color("signal.warning"),error:f.t7.color("signal.danger"),success:f.t7.color("signal.success"),info:f.t7.color("signal.info")},Fn=y.Ay.article.withConfig({displayName:"StyledNotification"})(jn||(jn=(0,g.A)(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),f.hs.space(0),f.hs.space(-1),(function(e){return!e.read&&(0,y.AH)(An||(An=(0,g.A)(["\n background-color: ",";\n "])),f.t7.color("backgroundBody"))})),Hn=y.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Cn||(Cn=(0,g.A)(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),f.hs.space(-1),(function(e){var t=e.notificationType;return Ln[t]})),Wn=y.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Tn||(Tn=(0,g.A)(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),f.hs.space(-1.5),f.hs.font(5)),Bn=y.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Mn||(Mn=(0,g.A)(["\n * {\n font-weight: "," !important;\n }\n"])),f.t7.fontWeight("regular")),Yn=y.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(In||(In=(0,g.A)(["\n ","\n margin-bottom: ",";\n"])),(0,f.Ed)({fontSize:f.hs.font(2.9),fontWeight:f.t7.fontWeight("bold"),color:f.t7.color("secondary")}),f.hs.space(-.5)),Un=y.Ay.div.withConfig({displayName:"StyledTimeStamp"})(Nn||(Nn=(0,g.A)(["\n font-size: ",";\n"])),f.hs.font(-2)),zn=y.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(Rn||(Rn=(0,g.A)(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),f.hs.space(-.5),f.t7.color("paper"),f.t7.color("secondaryLight"),f.t7.radii("menu"),Qt,f.t7.color("text"),Xt,f.t7.color("textLighter"),(0,f.Ed)());var Vn={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const qn=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,X.useRef)(null),u=Gt.A.selectUnit(new Date(o.timestamp)),l=(0,X.useState)((function(){return o.read})),d=(0,rt.A)(l,1)[0];return t=c,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){(0,rt.A)(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,X.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,S.jsxs)(Fn,{ref:c,read:d,"data-cy":"notification-item",children:[(0,S.jsxs)(Hn,{notificationType:o.type,children:[(0,S.jsx)(Wn,{children:(0,S.jsx)(f.In,{icon:Vn[o.type]})}),(0,S.jsx)(Bn,{children:(0,S.jsx)(f.o5.H5,{children:o.title})})]}),(0,S.jsx)(_n,{notification:o,navigationStrategy:s,cancelTask:i}),(0,S.jsx)(Un,{children:(0,S.jsx)(k.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var Gn,Kn,$n,Qn;const Xn=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,X.useRef)(null);(0,X.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==Ye.outputjob||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,S.jsx)(qn,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,S.jsxs)(zn,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[Gn||(Gn=(0,S.jsx)(Yn,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(Kn||(Kn=(0,S.jsx)(f.kt,{}))),u.length>0&&!r&&($n||($n=(0,S.jsx)(f.o5.I,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(Qn||(Qn=(0,S.jsx)(f.o5.I,{children:(0,S.jsx)(k.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};var Zn={loadNotifications:function(){return{type:be,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Te,cancelTask:Me};const Jn=(0,a.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),Zn)(Xn);var er="notification/CONFIRM",tr="notification/YES_NO_QUESTION",nr="notification/INFO",rr="notification/CONNECT_SOCKET",or="notification/CLOSE_SOCKET",ar="notification/SOCKET_MESSAGE_RECEIVED",ir="notification/ADD_IGNORE_TOASTER",sr=function(e){return{type:ar,payload:{data:e}}},cr=function(e){return{type:ir,payload:{key:e}}},ur=n(14644),lr=n(37954),dr=n(54756),fr=n.n(dr),pr=n(43786),hr=n(6730),mr=fr().mark(yr),gr=fr().mark(vr);function yr(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(Vt,vr),(0,pr.jP)(qt,vr)]);case 3:case"end":return t.stop()}}),mr)}function vr(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),gr)}var br=n(80299),wr=n.n(br);function Or(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 xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kr=(0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)({},we,(function(e,t){var n=t.payload.notifications;return xr(xr({},e),{},{notifications:xr(xr({},e.notifications),n),isLoadingMoreNotifications:!1})})),Oe,lr.A.singleTransferReducer("moreNotificationsAvailable")),xe,(function(e,t){var n=t.payload.notification;return xr(xr({},e),{},{notifications:xr(xr({},e.notifications),{},(0,_.A)({},n.key,n))})})),ye,lr.A.singleTransferReducer("unreadNotificationKeys")),ve,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):wr()(e.unreadNotificationKeys,[o]),xr(xr({},e),{},{unreadNotificationKeys:n})})),ke,lr.A.singleTransferReducer("isLoadingMoreNotifications")),Sr={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sr,t=arguments.length>1?arguments[1]:void 0,n=kr[t.type];return n?n(e,t):e}var Er=n(63205),Dr=fr().mark(Nr);function _r(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 jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ar={failed:"error",info:"info",warning:"warning",success:"success"},Cr="running_infinite",Tr="running_absolute",Mr="pending",Ir=function(e){return e.status&&(e.status===Mr||e.status===Tr||e.status===Cr)};function Nr(e){var t,n,r,o,a,i,s;return fr().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!(t=jr(jr({},e),{},{type:Ar[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?jr(jr({},e.taskProgress),{},{isRunning:Ir(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null})).result||t.result.type!==Ye.outputjob){c.next=15;break}return n=null,c.prev=3,r=t.result.content[0].key,c.next=7,(0,pr.T1)(Er.A.fetchEntity,"Output_job",r,{paths:["document"]});case 7:o=c.sent,a=o.paths.document.value,i=a.fileName,s=a.binaryLink,n={name:i,link:s,description:t.result.content[0].display},c.next=14;break;case 12:c.prev=12,c.t0=c.catch(3);case 14:t.result=jr(jr({},t.result),{},{file:n});case 15:return c.abrupt("return",t);case 16:case"end":return c.stop()}}),Dr,null,[[3,12]])}function Rr(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 Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fr=fr().mark(Br),Hr=fr().mark(Yr),Wr=10;function Br(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.T1)(Yr),(0,pr.jP)(be,Ur),(0,pr.jP)(Se,zr),(0,pr.jP)(Pe,Vr)]);case 3:case"end":return t.stop()}}),Fr)}function Yr(){var e,t,n;return fr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,pr.T1)(Er.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,pr.yJ)(Ee(n));case 7:case"end":return r.stop()}}),Hr)}function Ur(e){var t=e.payload.offset;return fr().mark((function e(){var n,r,o,a;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.yJ)(Ce());case 2:return n={_limit:Wr,_offset:t},e.next=5,(0,pr.T1)(Er.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,pr.Q7)(r.body.data.map((function(e){return(0,pr.T1)(Nr,e)})));case 8:if(o=e.sent,a=o.reduce((function(e,t){return Lr(Lr({},e),{},(0,_.A)({},t.key,t))}),{}),!(Object.keys(a).length<Wr)){e.next=13;break}return e.next=13,(0,pr.yJ)(je(!1));case 13:return e.next=15,(0,pr.yJ)(_e(a));case 15:case"end":return e.stop()}}),e)}))()}function zr(e){var t=e.payload.notificationKey;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,pr.T1)(Er.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Vr(e){var t=e.payload.taskExecutionKey;return fr().mark((function e(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Er.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var qr=n(53986),Gr=["primary","callback","label"];function Kr(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 $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qr=function(e){var t=e.buttons;return(0,S.jsx)(se,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=(0,qr.A)(e,Gr);return(0,X.createElement)(ie,$r($r({},n?{ink:f.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function Xr(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,s=e.defaultAction,u=void 0===s?"submit":s,l=(0,We.v4)();return c(l,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===u?a():"cancel"===u&&i(),t()):"Escape"===e.key&&(i(),t())};(0,X.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var s=[{label:r,primary:"submit"===u,look:"submit"===u?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===u,look:"cancel"===u?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,S.jsx)(Qr,{buttons:s})}),!0,i)}function Zr(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,s=e.onCancel,u=(0,We.v4)();return c(u,t,n,(function(e){var t=e.close,n=function(){i(),t()};(0,f.c2)(n);var s=[{label:r,callback:function(){a(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,S.jsx)(Qr,{buttons:s})}),!0,s)}function Jr(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,We.v4)();return c(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,X.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,S.jsx)(Qr,{buttons:a})}),!1)}var eo=fr().mark(no),to=fr().mark(io);function no(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(er,ro),(0,pr.jP)(tr,oo),(0,pr.jP)(nr,ao)]);case 3:t.next=7;break;case 5:return t.next=7,(0,pr.Q7)([(0,pr.jP)(er,io),(0,pr.jP)(tr,io),(0,pr.jP)(nr,io)]);case 7:case"end":return t.stop()}}),eo)}function ro(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Xr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function oo(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Zr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function ao(e){var t=e.payload;return fr().mark((function e(){var n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Jr,t);case 2:return n=e.sent,e.next=5,(0,pr.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function io(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),to)}var so=fr().mark(uo),co=fr().mark(lo);function uo(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(i,lo),(0,pr.jP)(s,lo)]);case 3:case"end":return t.stop()}}),so)}function lo(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),co)}var fo=n(60436);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){(0,_.A)(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}var mo={overlays:[]},go=function(e){return function(t,n){var r=n.payload.id;return ho(ho({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},yo=(0,_.A)((0,_.A)((0,_.A)((0,_.A)({},i,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,s=n.cancelable,c=n.cancelCallback;return ho(ho({},e),{},{overlays:[].concat((0,fo.A)(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:s,cancelCallback:c,type:p.MODAL}])})})),s,go(p.MODAL)),Vt,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return ho(ho({},e),{},{overlays:[].concat((0,fo.A)(e.overlays),[{id:r,title:o,body:a,type:p.BLOCKER}])})})),qt,go(p.BLOCKER));function vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0,n=yo[t.type];return n?n(e,t):e}function bo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oo=(0,_.A)({},ir,(function(e,t){var n=t.payload.key;return wo(wo({},e),{},{ignoredToasters:(0,fo.A)(new Set([].concat((0,fo.A)(e.ignoredToasters),[n])))})})),xo={ignoredToasters:[]};function ko(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xo,t=arguments.length>1?arguments[1]:void 0,n=Oo[t.type];return n?n(e,t):e}var So=n(19383),Po=n(61502);function Eo(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 Do="socket-msg-",_o=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Do).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,S.jsx)(_n,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return w.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===Ye.outputjob}(e)?{duration:-1}:{})},jo=fr().mark(Io),Ao=fr().mark(No),Co=fr().mark(Ro),To=function(e){return e.notification.socket},Mo=function(e){return e.notification.toaster.toasters};function Io(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(ar,Lo),(0,pr.jP)(Ne,Fo),(0,pr.jP)(rr,No),(0,pr.jP)(or,Ro)]);case 3:case"end":return t.stop()}}),jo)}function No(){var e;return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.T1)(So.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,pr.T1)(Po.A.connectSocket,{name:"notification",messageReceivedAction:sr,originId:e});case 5:case"end":return t.stop()}}),Ao)}function Ro(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Po.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Co)}function Lo(e){var t=e.payload.data;return fr().mark((function e(){var n,r,o,a,i;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.T1)(Nr,t);case 2:return n=e.sent,e.next=5,(0,pr.Lt)(To);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==So.A.getOriginId()){e.next=16;break}return e.next=11,(0,pr.T1)(_o,n);case 11:if(i=e.sent,o.includes(i.key)||n.read){e.next=16;break}return e.next=15,(0,pr.yJ)(Le(i));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,pr.yJ)(De(n.key,n.read));case 19:return e.next=21,(0,pr.yJ)(Ae(n));case 21:case"end":return e.stop()}}),e)}))()}function Fo(e){var t=e.payload,n=t.key,r=t.manually;return fr().mark((function e(){var t;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Do)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,pr.yJ)(cr(n));case 4:return e.next=6,(0,pr.Lt)(Mo);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Do,""),e.next=11,(0,pr.yJ)(Te(t));case 11:case"end":return e.stop()}}),e)}))()}var Ho=n(82284);function Wo(e){var t=function(e,t){if("object"!=(0,Ho.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,Ho.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,Ho.A)(t)?t:t+""}function Bo(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){(0,_.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uo=(0,_.A)((0,_.A)({},Ie,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(Be).includes(e.type)?e.type:Be.neutral;return Ve(Ve(Ve(Ve(Ve({type:t,key:e.key||(0,We.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||Ue[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:qe(e.duration,t),time:e.time instanceof Date?e.time:new Date})}(t.payload.toaster);return Yo(Yo({},e),{},{toasters:Yo(Yo({},e.toasters),{},(0,_.A)({},n.key,n))})})),Re,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],(0,qr.A)(r,[n].map(Wo)));return Yo(Yo({},e),{},{toasters:Yo({},o)})})),zo={toasters:{}};function Vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo,t=arguments.length>1?arguments[1]:void 0,n=Uo[t.type];return n?n(e,t):e}var qo=fr().mark(Ko),Go=fr().mark($o);function Ko(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,pr.Q7)([(0,pr.jP)(Ne,Qo)]);case 3:t.next=7;break;case 5:return t.next=7,(0,pr.Q7)([(0,pr.jP)(Ie,$o),(0,pr.jP)(Ne,$o)]);case 7:case"end":return t.stop()}}),qo)}function $o(e){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pr.yJ)(hr.A.emitAction(e));case 2:case"end":return t.stop()}}),Go)}function Qo(e){var t=e.payload,n=t.key;t.manually;return fr().mark((function e(){return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pr.yJ)(He(n));case 2:case"end":return e.stop()}}),e)}))()}const Xo={addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&lr.A.injectReducers(e,{notification:(0,ur.HY)({socket:ko,toaster:Vo,center:Pr,overlay:vo})}),e.sagaMiddleware.run(yr,t),e.sagaMiddleware.run(no,t),e.sagaMiddleware.run(uo,t),e.sagaMiddleware.run(Io,t),e.sagaMiddleware.run(Ko,t),t&&r&&e.sagaMiddleware.run(Br)},Notifications:It,NotificationCenter:Jn,confirm:function(e,t,n,r,o,a,i){return{type:er,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:tr,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:nr,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:Vt,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:qt,payload:{id:e}}},modal:c,removeModal:u,toaster:Le,removeToaster:Fe,connectSocket:function(){return{type:rr}},closeSocket:function(){return{type:or}}}},63205:(e,t,n)=>{"use strict";n.d(t,{A:()=>dt});var r=n(92901),o=n(23029),a=n(50388),i=n(53954),s=n(85501);function c(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}const u=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),c(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),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}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));function l(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}const f=function(e){function t(){return(0,o.A)(this,t),l(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(u);function p(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}const m=function(e){function t(){return(0,o.A)(this,t),p(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(u);var g=n(60436),y=n(5544),v=n(64467),b=n(54756),w=n.n(b),O=n(58156),x=n.n(O),k=n(23805),S=n.n(k),P=n(23181),E=n.n(P),D=n(40860),_=n.n(D),j=n(43786),A=n(43806),C=n(90179),T=n.n(C),M=n(23228),I=n(88691),N=n(99208),R=n(79308),L=n(86962),F=n(6986),H=n(8271);function W(e,t,n){return t=(0,i.A)(t),(0,a.A)(e,B()?Reflect.construct(t,n||[],(0,i.A)(e).constructor):t.apply(e,n))}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}const Y=function(e){function t(e){var n;return(0,o.A)(this,t),(n=W(this,t)).message=e,n}return(0,s.A)(t,e),(0,r.A)(t)}(u);function U(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=412,q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new Y(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?z(z({},a),{},{body:null}):t(e).then((function(e){return z(z({},a),{},{body:e})})).catch((function(e){return z(z({},a),{},{body:null})}))},K=function(e){return G(e,(function(e){return e.blob()}))},$=function(e){return z(z({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:H.A.abortController.signal})};function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(V),fetch(e,$(t)).then((function(e){return G(e)})).then((function(e){return q(e,n,r)}))}function X(e,t,n,r){return fetch(e,$(t)).then((function(e){return K(e)})).then((function(e){return q(e,n,r)}))}var Z=w().mark(re),J=w().mark(ae),ee=w().mark(ie),te={ConfirmQuestionHandler:ae,YesNoQuestionHandler:ie};function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.addBlockingInfoAction,a=r.removeBlockingInfoAction;return w().mark((function r(){var i,s;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("GET"!==t.options.method&&"HEAD"!==t.options.method){r.next=2;break}return r.abrupt("return",e);case 2:i={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,(0,j.T1)(re,e.body.clientQuestion);case 6:if(null!=(s=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new f("Client question cancelled by user");case 13:if(i[e.body.clientQuestion.id]=s.answer,t.options.body=JSON.stringify({clientAnswers:i,payload:n.body}),!o){r.next=18;break}return r.next=18,(0,j.yJ)(o);case 18:return r.next=20,(0,j.T1)(Q,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,(0,j.yJ)(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),r)}))()}function re(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=te[e.handler])){n.next=5;break}return n.next=4,(0,j.T1)(t,e);case 4:return n.abrupt("return",n.sent);case 5:throw new Error("No question handler found for client question",e);case 6:case"end":return n.stop()}}),Z)}var oe=function(e){return{answer:e}};function ae(e){var t,n,r,o,a,i,s;return w().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,j.T1)(F.Ix);case 2:return t=c.sent,n=function(){return t.put(oe(!0))},r=function(){return t.put(oe(null))},o=e.header,a=e.message,i=e.okText,s=e.cancelText,c.next=8,(0,j.yJ)(L.A.confirm(o,a,i,s,n,r));case 8:return c.next=10,(0,j.s)(t);case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}}),J)}function ie(e){var t,n,r,o,a,i,s,c;return w().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,j.T1)(F.Ix);case 2:return t=u.sent,n=function(){return t.put(oe(!0))},r=function(){return t.put(oe(!1))},o=function(){return t.put(oe(null))},a=e.header,i=e.message,s=e.yesText,c=e.noText,u.next=9,(0,j.yJ)(L.A.yesNoQuestion(a,i,s,c,n,r,o));case 9:return u.next=11,(0,j.s)(t);case 11:return u.abrupt("return",u.sent);case 12:case"end":return u.stop()}}),ee)}function se(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=w().mark(fe),le=w().mark(he),de=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function fe(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Y)){t.next=5;break}return t.next=3,(0,j.yJ)(L.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 3:t.next=6;break;case 5:throw e;case 6:case"end":return t.stop()}}),ue)}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w().mark((function n(){var r,o,a,i,s;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(he,t);case 2:return n.next=4,(0,j.T1)(me,e,t);case 4:return r=n.sent,n.next=7,(0,j.T1)(ge,t);case 7:if(o=n.sent,a=o.addBlockingInfoAction,i=o.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,(0,j.yJ)(a);case 13:return n.next=15,(0,j.T1)(Q,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(s=n.sent,!i){n.next=19;break}return n.next=19,(0,j.yJ)(i);case 19:return n.next=21,(0,j.T1)(ne,s,r,t,o);case 21:return s=n.sent,n.abrupt("return",s);case 25:if(n.prev=25,n.t0=n.catch(9),!i){n.next=30;break}return n.next=30,(0,j.yJ)(i);case 30:return n.next=32,fe(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function he(e){var t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=5;break}return r.next=3,(0,j.Lt)(I.A.localeSelector);case 3:n=r.sent,e.queryParams=ce(ce({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),le)}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,s=void 0===i?M.A.getBackendUrl():i,c=N.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=ce({method:a,headers:c,credentials:"include"},u?{body:u}:{}),d=de(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?N.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function ge(e){var t=e.blockingInfoTitle;return w().mark((function e(){var n,r,o,a;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,(0,j.T1)(R.v4);case 3:return n=e.sent,r=t,o=L.A.blockingInfo(n,r),a=L.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var ye=w().mark(we),ve=w().mark(Oe),be=w().mark(xe);function we(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/settings");case 2:return e=n.sent,t=T()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),ye)}function Oe(){var e,t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/settings");case 2:return e=n.sent,t=T()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),ve)}function xe(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,j.T1)(we);case 7:return t=r.sent,n=t.maxLimit,A.A.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),be)}var ke=w().mark(Re),Se=w().mark(Le),Pe=w().mark(Fe),Ee=w().mark(Ve),De=w().mark(Je),_e=w().mark(et),je=w().mark(tt),Ae=w().mark(nt),Ce=w().mark(rt),Te=w().mark(ot);function Me(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){(0,v.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne="nice2.web.core.useSelectorsByDefault";function Re(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,j.T1)(pe,"client/property",{method:"POST",body:{propertyNames:[Ne]}});case 7:return t=r.sent,n=t.body.loadedProperties[Ne],A.A.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),ke)}function Le(e,t){var n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,(0,j.T1)(pe,"entities/2.0/".concat(e,"/").concat(t),n);case 4:return r.abrupt("return",!0);case 7:return r.prev=7,r.t0=r.catch(1),r.abrupt("return",!1);case 10:case"end":return r.stop()}}),Se,null,[[1,7]])}function Fe(e,t,n,r,o){var a,i;return w().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},s.next=3,(0,j.T1)(pe,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return i=s.sent,s.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return Ie(Ie({},e),{},(0,v.A)({},t.key,t.displayExpressions))}),{}));case 5:case"end":return s.stop()}}),Pe)}var He=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w().mark((function r(){var o,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=(0,y.A)(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===A.A.getObjectCache("display",He(r,e,t))})),displays:o.map((function(e){return{key:e,display:A.A.getObjectCache("display",He(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,Ye(o,t,n);case 3:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return Ie(Ie({},e),{},(0,v.A)({},n,Ie(Ie({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return Ie(Ie({},e),{},(0,v.A)({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),r)}))()}function Be(e,t){Object.entries(e).forEach((function(e){var n=(0,y.A)(e,2),r=n[0];n[1].forEach((function(e){return A.A.removeObjectCache("display",He(r,e,t))}))}))}function Ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w().mark((function r(){var o,a,i,s,c;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=12;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},i=t?"/".concat(t):"",r.next=6,(0,j.T1)(pe,"entities/2.0/displays".concat(i),a);case 6:return s=r.sent,c=s.body.data.reduce((function(e,t){var n=t.model,r=t.values;return Ie(Ie({},e),{},(0,v.A)({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return Ie(Ie({},e),{},(0,v.A)({},n,r))}),{})))}),{}),Object.entries(c).forEach((function(e){var n=(0,y.A)(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=(0,y.A)(e,2),o=n[0],a=n[1];A.A.addObjectCache("display",He(r,o,t),a)}))})),r.abrupt("return",c);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),r)}))()}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return w().mark((function r(){var o,a,i,s,c,u,l;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=3,(0,j.T1)($e,t);case 3:return s=r.sent,c=(i||"entities/2.0/".concat(e))+"/count",u=Ie({method:a},"GET"===a?{queryParams:Xe(s)}:{body:s}),r.next=8,(0,j.T1)(pe,c,u);case 8:return l=r.sent,r.abrupt("return",l.body.count);case 10:case"end":return r.stop()}}),r)}))()}function ze(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ke;return w().mark((function a(){var i,s;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=Ie({method:e,queryParams:Ie({_omitLinks:!0,_allKeys:t},"GET"===e&&Xe(n))},"POST"===e&&{body:n}),a.next=3,(0,j.T1)(pe,r,i);case 3:return s=a.sent,a.next=6,(0,j.T1)(o,s.body);case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)}))()}function Ve(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),Ee)}var qe=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=Ie({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=Ie({type:"relation"},e)})),t},Ge=function(e){return e.form},Ke=function(e){return e.data},$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:Qe(i)}:{}),s&&o?{offset:(s-1)*o}:{}),c?{paths:c}:{}),u?{where:u}:{}),Array.isArray(l)?{relations:0===l.length?"!":l}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},Qe=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},Xe=function(e){return _()(e,(function(e,t,n){var r={};return"conditions"===n?r=Ze(t):r["_"+n]=Array.isArray(t)?t.join(","):t,Ie(Ie({},e),r)}),{})},Ze=function(e){return _()(e,(function(e,t,n){return Ie(Ie({},e),{},(0,v.A)({},n,S()(t)&&t.value?t.value:t))}),{})};function Je(){var e,t,n,r,o;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,j.T1)(pe,"principals");case 2:return e=a.sent,t=e.body,n=t.username,r=t.businessUnit,o={username:n,currentBusinessUnit:r},a.abrupt("return",o);case 6:case"end":return a.stop()}}),De)}function et(e){var t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,(0,j.T1)(pe,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),_e)}function tt(e,t){var n,r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=3,(0,j.T1)(pe,"client/markings/".concat(e,"/").concat(t),n);case 3:return r=o.sent,o.abrupt("return",r.body.marked);case 5:case"end":return o.stop()}}),je)}function nt(e,t,n){var r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=3,(0,j.T1)(pe,"client/markings/".concat(e,"/").concat(t),r);case 3:case"end":return o.stop()}}),Ae)}function rt(e,t){var n,r;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},o.next=3,(0,j.T1)(pe,"client/markings",n);case 3:return r=o.sent,o.abrupt("return",r.body.markings);case 5:case"end":return o.stop()}}),Ce)}function ot(){var e,t,n;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=A.A.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,j.T1)(pe,"locales");case 5:return t=r.sent,n=t.body.locales,A.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),Te)}var at=w().mark(ct),it=w().mark(ut),st=w().mark(lt);function ct(e){var t;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),at)}function ut(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,j.T1)(pe,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),it)}function lt(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.T1)(pe,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),st)}const dt={requestSaga:pe,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w().mark((function n(){var r;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(he,t);case 2:return n.next=4,(0,j.T1)(me,e,t);case 4:return r=n.sent,n.prev=5,n.next=8,(0,j.T1)(X,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 8:return n.abrupt("return",n.sent);case 11:return n.prev=11,n.t0=n.catch(5),n.next=15,fe(n.t0);case 15:return n.abrupt("return",{});case 16:case"end":return n.stop()}}),n,null,[[5,11]])}))()},simpleRequest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=me(e,t);return Q(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:f,ForbiddenException:m,InformationError:Y,fetchEntity:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return w().mark((function a(){var i,s,c,u,l,d,f,p;return w().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,j.T1)(Re);case 2:return i=a.sent,s=r.method,c=void 0===s?"POST":s,u=r.useSelectors,l=void 0===u?i:u,a.next=6,(0,j.T1)($e,n);case 6:return d=a.sent,f=Ie({method:c,queryParams:Ie({_omitLinks:!0,_useSelectors:l},"GET"===c&&Ie(Ie({},Xe(d)),{},{_permissions:!0}))},"POST"===c&&{body:Ie(Ie({},d),{},{permissions:!0})}),a.next=10,(0,j.T1)(pe,"entities/2.0/".concat(e,"/").concat(t),f);case 10:return p=a.sent,a.next=13,(0,j.T1)(o,p.body);case 13:return a.abrupt("return",a.sent);case 14:case"end":return a.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke;return w().mark((function o(){var a,i,s,c,u,l,d,f,p,h;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,j.T1)(xe);case 2:return a=o.sent,i=n.method,s=void 0===i?"POST":i,c=n.endpoint,u=n.allKeys,o.next=6,(0,j.T1)(Ue,e,t,n);case 6:return l=o.sent,d=u?1:Math.ceil(l/a),f=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),p=E()(d).map((function(e){return e+1})).map((function(e){return Ie(Ie({},t),{},{page:e,limit:a})})).map($e).map((function(e){return(0,j.T1)(ze,s,u,e,f,r)})),o.next=12,(0,j.Q7)(p);case 12:return h=o.sent,o.abrupt("return",h.reduce((function(e,t){return[].concat((0,g.A)(e),(0,g.A)(t))}),[]));case 14:case"end":return o.stop()}}),o)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke;return w().mark((function o(){var a,i,s,c,u,l;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,s=n.endpoint,c=n.allKeys,o.next=3,(0,j.T1)($e,t);case 3:return u=o.sent,l=s||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=7,(0,j.T1)(ze,i,c,u,l,r);case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),o)}))()},fetchDisplay:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w().mark((function o(){return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=x(),o.next=3,We((0,v.A)({},e,[t]),n,r);case 3:return o.t1=o.sent,o.t2="".concat(e,".").concat(t),o.abrupt("return",(0,o.t0)(o.t1,o.t2,null));case 6:case"end":return o.stop()}}),o)}))()},invalidateDisplay:function(e,t,n){Be((0,v.A)({},e,[t]),n)},fetchDisplays:We,invalidateDisplays:Be,fetchDisplayExpressions:Fe,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return w().mark((function o(){var a,i,s,c;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===A.A.getObjectCache("forms",a)||r){o.next=4;break}return o.abrupt("return",A.A.getObjectCache("forms",a));case 4:return i=Ie(Ie({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=7,(0,j.T1)(pe,"forms/".concat(a),i);case 7:if(s=o.sent,!n||404!==s.status){o.next=11;break}return A.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 11:return o.next=13,(0,j.T1)(Ge,s.body);case 13:return c=o.sent,A.A.addObjectCache("forms",a,c),o.abrupt("return",c);case 16:case"end":return o.stop()}}),o)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;return w().mark((function n(){var r,o,a;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=A.A.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",r);case 3:return n.next=5,(0,j.T1)(pe,"entities/".concat(e,"/model"));case 5:return o=n.sent,n.next=8,(0,j.T1)(t,o.body);case 8:return a=n.sent,A.A.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:qe,fetchEntityCount:Ue,fetchSearchFilters:Ve,buildRequestQuery:$e,requestQueryToUrlParams:Xe,fetchPrincipal:Je,fetchUserPreferences:ct,deleteUserPreferences:ut,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.T1)(pe,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:lt,fetchServerSettings:we,fetchServerRevision:Oe,fetchServerMaxLimit:xe,createSortingString:Qe,fetchMarkings:et,fetchMarked:tt,setMarked:nt,setSelectionMarked:rt,entityExists:Le,fetchLocales:ot}},61502:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(64467),o=n(54756),a=n.n(o),i=n(6986),s=n(43786),c=n(73082),u=n(23228),l=a().mark(h);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={};function h(e){var t,n,r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,s.T1)(g,e.name,e.originId);case 2:return t=o.sent,o.next=5,(0,s.T1)(m,f(f({},e),{},{url:t}));case 5:n=o.sent;case 6:return o.next=9,(0,s.s)(n);case 9:return r=o.sent,o.next=12,(0,s.yJ)(r);case 12:o.next=6;break;case 14:case"end":return o.stop()}}),l)}var m=function(e){return(0,i.Od)((function(t){return function n(){var r=e.url,o=e.messageReceivedAction,a=e.name;p[a]=new WebSocket(r),p[a].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},p[a].onclose=function(e){1e3!==e.code&&n()},p[a].onerror=function(e){c.A.log("socket error",e)}}(),function(){}}))},g=function(e,t){var n=(u.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const y={connectSocket:h,closeSocket:function(e){p[e].close(1e3)}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate"},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#000",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula"}}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(57528),a=n(43759).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,o.A)([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>f.i,A:()=>d});var r,o=n(64467),a=n(4883),i=n.n(a),s=n(74848);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,a.lazy)((function(){return Promise.all([n.e(310),n.e(103),n.e(916)]).then(n.bind(n,8264))}));const d=function(e){return(0,s.jsx)(a.Suspense,{fallback:r||(r=(0,s.jsx)(i().Fragment,{})),children:(0,s.jsx)(l,u({},e))})};var f=n(93564)},88357:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>h,Ay:()=>d});n(5556);var r,o=n(47850),a=n(33181),i=n(57528),s=n(43759);const c=s.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=(0,i.A)(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,a.Ed)(),(function(e){return e.breakWords?(0,a.KV)():(0,a.sb)()}),a.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var u=n(74848),l=function(e){var t=e.alt,n=e.breakWords,r=e.download,i=e.href,s=e.neutral,l=e.onClick,d=e.rel,f=e.tabIndex,p=e.target,h=e.title,m=e.label,g=e.icon,y=e.children,v=e.useTitle,b=h||(n?void 0:m);return(0,u.jsxs)(c,{alt:t,breakWords:n,download:r,href:i,neutral:s,onClick:l,rel:d,tabIndex:f,target:p,title:v?b:void 0,children:[g&&(0,u.jsx)(o.A,{icon:g,position:a.xX.position.PREPEND}),m||y]})};l.defaultProps={breakWords:!0,useTitle:!0,href:"#",target:"_self"};const d=l;var f,p=n(1504);const h=(0,s.Ay)(p.N_)(f||(f=(0,i.A)(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,a.Ed)(),a.t7.color("secondary"),a.t7.color("text"),a.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?a.t7.color("text"):a.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}))},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>B,AE:()=>Y,C$:()=>R,F1:()=>z,Gw:()=>I,Js:()=>G,Li:()=>N,MM:()=>M,Ng:()=>U,QF:()=>A,aB:()=>C,fN:()=>H,oY:()=>W,or:()=>D,pR:()=>_,rY:()=>j,rs:()=>L,v8:()=>F,vB:()=>T,vr:()=>V,zG:()=>q});var r,o,a,i,s,c,u,l,d,f,p,h,m,g,y,v,b,w,O,x,k,S=n(57528),P=n(43759),E=n(33181),D=P.Ay.b.withConfig({displayName:"StyledB"})(r||(r=(0,S.A)(["\n && {\n ","\n }\n ","\n"])),(0,E.Ed)({fontWeight:E.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),_=P.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=(0,S.A)(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),E.t7.color("backgroundTypographyCode"),E.t7.radii("form"),E.hs.space(-4),E.hs.space(-2)),j=P.Ay.del.withConfig({displayName:"StyledDel"})(a||(a=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),A=P.Ay.em.withConfig({displayName:"StyledEm"})(i||(i=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),C=P.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(s||(s=(0,S.A)(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-2),E.hs.space(-1)),T=P.Ay.i.withConfig({displayName:"StyledI"})(c||(c=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),M=P.Ay.ins.withConfig({displayName:"StyledIns"})(u||(u=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),I=P.Ay.label.withConfig({displayName:"StyledLabel"})(l||(l=(0,S.A)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-1)),N=P.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=(0,S.A)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),color:E.t7.color("paper")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.t7.color("signal.info"),E.t7.radii("form"),E.hs.space(-4),E.hs.space(-2)),R=P.Ay.p.withConfig({displayName:"StyledP"})(f||(f=(0,S.A)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.hs.space(-1)),L=P.Ay.pre.withConfig({displayName:"StyledPre"})(p||(p=(0,S.A)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n display: block;\n margin: 0 0 ",";\n padding: "," ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}),E.t7.color("backgroundTypographyCode"),E.t7.radii("form"),E.t7.color("border"),E.hs.space(-1),E.hs.space(-3),E.hs.space(-2)),F=P.Ay.s.withConfig({displayName:"StyledS"})(h||(h=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),H=P.Ay.small.withConfig({displayName:"StyledSmall"})(m||(m=(0,S.A)(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,E.Ed)(),E.t7.fontSize("factor"),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),W=P.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),B=P.Ay.sub.withConfig({displayName:"StyledSub"})(y||(y=(0,S.A)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),Y=P.Ay.sup.withConfig({displayName:"StyledSup"})(v||(v=(0,S.A)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,E.Ed)({fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),U=P.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)({fontWeight:E.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),z=P.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=(0,S.A)(["\n && {\n ","\n ","\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),V=P.Ay.u.withConfig({displayName:"StyledU"})(O||(O=(0,S.A)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),q=P.Ay.var.withConfig({displayName:"StyledVar"})(x||(x=(0,S.A)(["\n && {\n ","\n ","\n\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,E.Ed)({fontFamily:E.t7.fontFamily("monospace"),fontSize:E.hs.font(-1)}),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()})),G=P.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=(0,S.A)(["\n && {\n ","\n ","\n\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,E.Ed)(),(function(e){return e.breakWords?(0,E.KV)():(0,E.sb)()}))},60284:(e,t,n)=>{"use strict";n.d(t,{pR:()=>z.pR,rd:()=>m,Gw:()=>z.Gw,vx:()=>F,oY:()=>z.oY,dV:()=>B,gv:()=>he,Ay:()=>me});n(5556);var r,o,a,i,s,c,u,l=n(33181),d=n(57528),f=n(43759),p=function(e){var t;switch(e.styledLike){case"H1":t=l.hs.font(5)(e);break;case"H2":t=l.hs.font(4)(e);break;case"H3":t=l.hs.font(3)(e);break;case"H4":t=l.hs.font(2)(e);break;case"H5":t=l.hs.font(1)(e);break;default:t=l.hs.font(0)(e)}return(0,l.Ed)({fontWeight:l.w4.fontWeight("bold"),fontSize:t})},h=function(e){return(0,f.AH)(r||(r=(0,d.A)(["\n margin-top: ",";\n margin-bottom: ",";\n\n h1 + &,\n h2 + &,\n h3 + &,\n h4 + &,\n h5 + &,\n h6 + & {\n margin-top: 0;\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])),l.hs.space(0),l.hs.space(-1))},m=f.Ay.h1.withConfig({displayName:"StyledH1"})(o||(o=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),g=f.Ay.h2.withConfig({displayName:"StyledH2"})(a||(a=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),y=f.Ay.h3.withConfig({displayName:"StyledH3"})(i||(i=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),v=f.Ay.h4.withConfig({displayName:"StyledH4"})(s||(s=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),b=f.Ay.h5.withConfig({displayName:"StyledH5"})(c||(c=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),w=f.Ay.h6.withConfig({displayName:"StyledH6"})(u||(u=(0,d.A)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return p(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),O=n(74848),x=function(e){return(0,O.jsx)(m,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};x.defaultProps={breakWords:!0,styledLike:"H1"};var k=function(e){return(0,O.jsx)(g,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};k.defaultProps={breakWords:!0,styledLike:"H2"};var S=function(e){return(0,O.jsx)(y,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};S.defaultProps={breakWords:!0,styledLike:"H3"};var P=function(e){return(0,O.jsx)(v,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};P.defaultProps={breakWords:!0,styledLike:"H4"};var E=function(e){return(0,O.jsx)(b,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};E.defaultProps={breakWords:!0,styledLike:"H5"};var D,_,j,A,C,T,M,I=function(e){return(0,O.jsx)(w,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};I.defaultProps={breakWords:!0,styledLike:"H6"};var N=f.Ay.dd.withConfig({displayName:"StyledDd"})(D||(D=(0,d.A)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Ed)(),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),R=f.Ay.dl.withConfig({displayName:"StyledDl"})(_||(_=(0,d.A)(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.hs.space(-1)),L=f.Ay.dt.withConfig({displayName:"StyledDt"})(j||(j=(0,d.A)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Ed)({fontWeight:l.w4.fontWeight("bold")}),(function(e){return e.breakWords?(0,l.KV)():(0,l.sb)()})),F=f.Ay.li.withConfig({displayName:"StyledLi"})(A||(A=(0,d.A)(["\n && {\n ","\n ","\n }\n"])),(0,l.Ed)(),(0,l.KV)()),H=f.Ay.ol.withConfig({displayName:"StyledList"})(C||(C=(0,d.A)(["\n && {\n display: block;\n list-style-position: outside;\n margin: 0 0 "," ",";\n padding: 0;\n\n &&,\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.hs.space(-1),l.hs.space(-.1)),W=(0,f.Ay)(H).withConfig({displayName:"StyledOl"})(T||(T=(0,d.A)(["\n list-style-type: decimal;\n"]))),B=(0,f.Ay)(H).withConfig({displayName:"StyledUl"})(M||(M=(0,d.A)(["\n && {\n list-style-type: disc;\n }\n"]))),Y=function(e){return(0,O.jsx)(N,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})},U=function(e){return(0,O.jsx)(L,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.GV)(e.children),children:e.children})};Y.defaultProps=U.defaultProps={breakWords:!0};var z=n(5016),V=function(e){return(0,O.jsx)(z.or,{breakWords:e.breakWords,title:de(e),children:e.children})},q=function(e){return(0,O.jsx)(z.pR,{title:de(e),children:e.children})},G=function(e){return(0,O.jsx)(z.rY,{breakWords:e.breakWords,title:de(e),children:e.children})},K=function(e){return(0,O.jsx)(z.QF,{breakWords:e.breakWords,title:de(e),children:e.children})},$=function(e){return(0,O.jsx)(z.aB,{breakWords:e.breakWords,title:de(e),children:e.children})},Q=function(e){return(0,O.jsx)(z.vB,{breakWords:e.breakWords,title:de(e),children:e.children})},X=function(e){return(0,O.jsx)(z.MM,{breakWords:e.breakWords,title:de(e),children:e.children})},Z=function(e){return(0,O.jsx)(z.Li,{breakWords:e.breakWords,title:de(e),children:e.children})},J=function(e){return(0,O.jsx)(z.C$,{breakWords:e.breakWords,title:de(e),children:e.children})},ee=function(e){return(0,O.jsx)(z.rs,{breakWords:e.breakWords,title:de(e),children:e.children})},te=function(e){return(0,O.jsx)(z.v8,{breakWords:e.breakWords,title:de(e),children:e.children})},ne=function(e){return(0,O.jsx)(z.fN,{breakWords:e.breakWords,title:de(e),children:e.children})},re=function(e){return(0,O.jsx)(z.oY,{breakWords:e.breakWords,title:de(e),children:e.children})},oe=function(e){return(0,O.jsx)(z.AB,{breakWords:e.breakWords,title:de(e),children:e.children})},ae=function(e){return(0,O.jsx)(z.AE,{breakWords:e.breakWords,title:de(e),children:e.children})},ie=function(e){return(0,O.jsx)(z.Ng,{breakWords:e.breakWords,title:de(e),children:e.children})},se=function(e){return(0,O.jsx)(z.F1,{breakWords:e.breakWords,title:e.title,dateTime:e.dateTime,children:e.children})},ce=function(e){return(0,O.jsx)(z.vr,{breakWords:e.breakWords,title:de(e),children:e.children})},ue=function(e){return(0,O.jsx)(z.zG,{breakWords:e.breakWords,title:de(e),children:e.children})},le=function(e){return(0,O.jsx)(z.Js,{breakWords:e.breakWords,title:de(e),children:e.children})},de=function(e){return!e.useTitle||e.breakWords?void 0:(0,l.GV)(e.children)};V.defaultProps=q.defaultProps=G.defaultProps=K.defaultProps=$.defaultProps=Q.defaultProps=X.defaultProps=Z.defaultProps=J.defaultProps=ee.defaultProps=le.defaultProps=te.defaultProps=ne.defaultProps=re.defaultProps=ie.defaultProps=oe.defaultProps=ae.defaultProps=ce.defaultProps=ue.defaultProps={breakWords:!0,useTitle:!0},se.defaultProps={breakWords:!1};var fe=n(58156),pe=n.n(fe),he=function(e,t){var n="\n color: ".concat(l.w4.color("text")(e),";\n font-family: ").concat(l.w4.fontFamily("regular")(e),";\n font-size: ").concat(l.hs.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(l.w4.fontWeight("regular")(e),";\n line-height: ").concat(l.w4.lineHeight("regular")(e),";\n\n a {\n color: ").concat(l.w4.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(pe()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(pe()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(l.w4.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(l.hs.font(5)(e),";}\n h2 {font-size: ").concat(l.hs.font(4)(e),";}\n h3 {font-size: ").concat(l.hs.font(3)(e),";}\n h4 {font-size: ").concat(l.hs.font(2)(e),";}\n h5 {font-size: ").concat(l.hs.font(1)(e),";}\n h6 {font-size: ").concat(l.hs.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(l.w4.fontWeight("bold")(e),";\n margin-top: ").concat(l.hs.space(0)(e),";\n margin-bottom: ").concat(l.hs.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(l.hs.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n a {\n text-decoration: none; \n }\n\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(l.hs.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n};const me={H1:x,H2:k,H3:S,H4:P,H5:E,H6:I,Dd:Y,Dt:U,Dl:function(e){return(0,O.jsx)(R,{children:e.children})},Li:function(e){return(0,O.jsx)(F,{children:e.children})},Ol:function(e){return(0,O.jsx)(W,{children:e.children})},Ul:function(e){return(0,O.jsx)(B,{as:"ul",children:e.children})},B:V,Code:q,Del:G,Em:K,Figcaption:$,I:Q,Ins:X,Label:function(e){return(0,O.jsx)(z.Gw,{breakWords:e.breakWords,title:de(e),htmlFor:e.for,children:e.children})},Mark:Z,P:J,Pre:ee,Q:le,S:te,Small:ne,Span:re,Strong:ie,Sub:oe,Sup:ae,Time:se,U:ce,Var:ue}},7248:(e,t,n)=>{"use strict";n.d(t,{cx:()=>X,$n:()=>U,se:()=>pg,jt:()=>Yt,Ar:()=>Qg,eG:()=>zs,kH:()=>_c,In:()=>b.A,tQ:()=>fy,kt:()=>S,dK:()=>Rw,AM:()=>Ol,Q6:()=>Sw,Wk:()=>gn.Wk,l6:()=>Hl,$O:()=>vb,N1:()=>G,OV:()=>H,pR:()=>mt.pR,oX:()=>yn,iY:()=>b.i,rd:()=>mt.rd,jx:()=>bn,gQ:()=>ly,oY:()=>mt.oY,Ec:()=>Os,o5:()=>mt.Ay,Hr:()=>Mp,Ed:()=>c.Ed,xX:()=>c.xX,hs:()=>c.hs,w4:()=>c.w4,t7:()=>c.t7,c2:()=>c.LE});var r,o,a=n(57528),i=n(1504),s=n(43759),c=n(33181),u=(0,s.AH)(r||(r=(0,a.A)(["\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,c.Ed)(),c.w4.color("text"),c.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,s.Ay)(i.k2)(o||(o=(0,a.A)(["\n ",";\n"])),u);var l;const d=(0,s.Ay)(i.N_).withConfig({shouldForwardProp:function(e){return!["neutral"].includes(e)}})(l||(l=(0,a.A)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),c.t7.color("text"),u);var f,p=n(64467),h=n(53986),m=n(5556),g=n.n(m),y=n(4883),v=n.n(y),b=n(47850),w=n(74848);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=(0,y.lazy)((function(){return n.e(389).then(n.bind(n,68389))}));const S=function(e){return(0,w.jsx)(y.Suspense,{fallback:f||(f=(0,w.jsx)(v().Fragment,{})),children:(0,w.jsx)(k,x({},e))})};var P=n(5544),E=n(96424),D="hidden",_="responsive",j={labelVisibility:_},A=v().createContext(j);var C,T,M,I,N,R,L=(0,s.AH)(I||(I=(0,a.A)(["\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"])),c.w4.radii("button"),c.hs.space(-1.38),c.hs.space(-2.1),c.hs.space(0),(0,c.Ed)(),(function(e){return e.withoutBackground?(0,s.AH)(M||(M=(0,a.A)(["\n background: transparent;\n"]))):(0,c.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,s.AH)(C||(C=(0,a.A)(["\n line-height: ",";\n padding: "," ",";\n "])),c.w4.lineHeight("dense")({theme:n}),c.hs.space(-3.5)({theme:n}),c.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,s.AH)(T||(T=(0,a.A)(["\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===c.xX.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(F," {\n display: none;\n }\n ");return t&&n===D?r:t&&n===_&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),F=s.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(N||(N=(0,a.A)([""])));const H=s.Ay.button.withConfig({displayName:"StyledButton"})(R||(R=(0,a.A)(["\n ","\n"])),L);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}function B(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,p.A)(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}var Y=v().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,u=e.iconPosition,l=e.iconOnly,d=e.children,f=(0,y.useContext)(A).labelVisibility;return(0,w.jsxs)(H,B(B(B({ref:t},n),e),{},{ink:r||c.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:f,children:[a&&!i&&(0,w.jsx)(b.A,{icon:a}),i&&(0,w.jsx)(S,{ink:r||c.xX.ink.BASE,look:s,position:u,size:"1em"}),!l&&o?(0,w.jsx)(F,{children:o}):d||""]}))}));Y.defaultProps={iconPosition:c.xX.position.PREPEND,look:c.xX.look.FLAT,type:"button"};const U=Y;var z;(0,s.Ay)(i.N_).withConfig({shouldForwardProp:function(e){return!["labelVisibility","ink","label","icon","withoutBackground"].includes(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(z||(z=(0,a.A)(["\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"])),c.t7.color("text"),L);var V,q;const G=s.Ay.button.withConfig({displayName:"StyledButton"})(q||(q=(0,a.A)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,c.Ed)(),c.x5,(function(){return(0,s.AH)(V||(V=(0,a.A)(["\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"])),c.hs.space(-3),c.w4.fontSize("base"),c.w4.lineHeight("regular"),c.hs.space(-3))}));function K(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=v().forwardRef((function(e,t){return(0,w.jsx)(G,$($({ref:t,type:"button"},e),{},{children:(0,w.jsx)(b.A,{icon:e.icon})}))}));Q.propTypes={disabled:g().bool,icon:g().string.isRequired,ink:c.xX.inkPropTypes,look:g().oneOf([c.xX.look.FLAT,c.xX.look.RAISED]),onClick:g().func,title:g().string,tabIndex:g().number,"data-cy":g().string};const X=Q;var Z,J,ee,te,ne=n(11843),re=n(60436),oe=n(49859),ae=n.n(oe),ie=n(52098),se=n.n(ie),ce=n(30115),ue=n.n(ce),le=n(45228),de=n.n(le),fe="bodyAttributes",pe="htmlAttributes",he="titleAttributes",me={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ge=(Object.keys(me).map((function(e){return me[e]})),"charset"),ye="cssText",ve="href",be="http-equiv",we="innerHTML",Oe="itemprop",xe="name",ke="property",Se="rel",Pe="src",Ee="target",De={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_e="defaultTitle",je="defer",Ae="encodeSpecialCharacters",Ce="onChangeClientState",Te="titleTemplate",Me=Object.keys(De).reduce((function(e,t){return e[De[t]]=t,e}),{}),Ie=[me.NOSCRIPT,me.SCRIPT,me.STYLE],Ne="data-react-helmet",Re="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},Le=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}}(),Fe=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},He=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},We=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,"'")},Be=function(e){var t=qe(e,me.TITLE),n=qe(e,Te);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=qe(e,_e);return t||r||void 0},Ye=function(e){return qe(e,Ce)||function(){}},Ue=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Fe({},e,t)}),{})},ze=function(e,t){return t.filter((function(e){return void 0!==e[me.BASE]})).map((function(e){return e[me.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Ve=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Xe("Helmet: "+e+' should be of type "Array". Instead found type "'+Re(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,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===Se&&"canonical"===e[n].toLowerCase()||c===Se&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==we&&s!==ye&&s!==Oe||(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 a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=de()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},qe=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},Ge=(Z=Date.now(),function(e){var t=Date.now();t-Z>16?(Z=t,e(t)):setTimeout((function(){Ge(e)}),0)}),Ke=function(e){return clearTimeout(e)},$e="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ge:n.g.requestAnimationFrame||Ge,Qe="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ke:n.g.cancelAnimationFrame||Ke,Xe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ze=null,Je=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;nt(me.BODY,r),nt(me.HTML,o),tt(d,f);var p={baseTag:rt(me.BASE,n),linkTags:rt(me.LINK,a),metaTags:rt(me.META,i),noscriptTags:rt(me.NOSCRIPT,s),scriptTags:rt(me.SCRIPT,u),styleTags:rt(me.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)},et=function(e){return Array.isArray(e)?e.join(""):e},tt=function(e,t){void 0!==e&&document.title!==e&&(document.title=et(e)),nt(me.TITLE,t)},nt=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ne),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ne):n.getAttribute(Ne)!==i.join(",")&&n.setAttribute(Ne,i.join(","))}},rt=function(e,t){var n=document.head||document.querySelector(me.HEAD),r=n.querySelectorAll(e+"["+Ne+"]"),o=Array.prototype.slice.call(r),a=[],i=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===we)n.innerHTML=t.innerHTML;else if(r===ye)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(Ne,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},ot=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}),"")},at=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[De[n]||n]=e[n],t}),t)},it=function(e,t,n){switch(e){case me.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ne]=!0,o=at(n,r),[v().createElement(me.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=ot(n),a=et(t);return o?"<"+e+" "+Ne+'="true" '+o+">"+We(a,r)+"</"+e+">":"<"+e+" "+Ne+'="true">'+We(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case fe:case pe:return{toComponent:function(){return at(t)},toString:function(){return ot(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ne]=!0,r);return Object.keys(t).forEach((function(e){var n=De[e]||e;if(n===we||n===ye){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),v().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===we||e===ye)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+We(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===Ie.indexOf(e);return t+"<"+e+" "+Ne+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},st=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:it(me.BASE,t,r),bodyAttributes:it(fe,n,r),htmlAttributes:it(pe,o,r),link:it(me.LINK,a,r),meta:it(me.META,i,r),noscript:it(me.NOSCRIPT,s,r),script:it(me.SCRIPT,c,r),style:it(me.STYLE,u,r),title:it(me.TITLE,{title:d,titleAttributes:f},r)}},ct=se()((function(e){return{baseTag:ze([ve,Ee],e),bodyAttributes:Ue(fe,e),defer:qe(e,je),encode:qe(e,Ae),htmlAttributes:Ue(pe,e),linkTags:Ve(me.LINK,[Se,ve],e),metaTags:Ve(me.META,[xe,ge,be,ke,Oe],e),noscriptTags:Ve(me.NOSCRIPT,[we],e),onChangeClientState:Ye(e),scriptTags:Ve(me.SCRIPT,[Pe,we],e),styleTags:Ve(me.STYLE,[ye],e),title:Be(e),titleAttributes:Ue(he,e)}}),(function(e){Ze&&Qe(Ze),e.defer?Ze=$e((function(){Je(e,(function(){Ze=null}))})):(Je(e),Ze=null)}),st)((function(){return null})),ut=(J=ct,te=ee=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!ue()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case me.SCRIPT:case me.NOSCRIPT:return{innerHTML:t};case me.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,a=e.nestedChildren;return Fe({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Fe({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case me.TITLE:return Fe({},o,((t={})[r.type]=i,t.titleAttributes=Fe({},a),t));case me.BODY:return Fe({},o,{bodyAttributes:Fe({},a)});case me.HTML:return Fe({},o,{htmlAttributes:Fe({},a)})}return Fe({},o,((n={})[r.type]=Fe({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Fe({},t);return Object.keys(e).forEach((function(t){var r;n=Fe({},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 v().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Me[n]||n]=e[n],t}),t)}(He(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case me.LINK:case me.META:case me.NOSCRIPT:case me.SCRIPT:case me.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=He(e,["children"]),r=Fe({},n);return t&&(r=this.mapChildrenToProps(t,r)),v().createElement(J,r)},Le(t,null,[{key:"canUseDOM",set:function(e){J.canUseDOM=e}}]),t}(v().Component),ee.propTypes={base:ae().object,bodyAttributes:ae().object,children:ae().oneOfType([ae().arrayOf(ae().node),ae().node]),defaultTitle:ae().string,defer:ae().bool,encodeSpecialCharacters:ae().bool,htmlAttributes:ae().object,link:ae().arrayOf(ae().object),meta:ae().arrayOf(ae().object),noscript:ae().arrayOf(ae().object),onChangeClientState:ae().func,script:ae().arrayOf(ae().object),style:ae().arrayOf(ae().object),title:ae().string,titleAttributes:ae().object,titleTemplate:ae().string},ee.defaultProps={defer:!0,encodeSpecialCharacters:!0},ee.peek=J.peek,ee.rewind=function(){var e=J.rewind();return e||(e=st({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},te);ut.renderStatic=ut.rewind;var lt=n(42838),dt=n.n(lt),ft=["border","border-spacing","padding","margin","text-align","width"];dt().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=(n=e.style,ft.map((function(e){var t=n[e];return t&&"string"==typeof t&&!function(e){return/\w\(/.test(e)}(t)?"".concat(e,":").concat(t,";"):null})).filter(Boolean).join(""));t?e.setAttribute("style",t):e.removeAttribute("style")}var n;return e}));const pt=function(e){return e?dt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},ht={sanitizeHtml:pt};var mt=n(60284),gt={error:"exclamation-circle",home:"house-blank"},yt=function(e){return gt[e]||e};const vt=function(e){var t=e.type;return t&&"record"!==t?(0,w.jsx)(b.A,{icon:yt(t)}):null};var bt,wt,Ot,xt,kt,St,Pt=["component"],Et=s.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(bt||(bt=(0,a.A)(["\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||c.w4.color("backgroundBreadcrumbs")(e)}),c.hs.space(-.7),c.hs.space(.39)),Dt=(0,s.Ay)((function(e){var t=e.component,n=(0,h.A)(e,Pt);return v().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(wt||(wt=(0,a.A)(["\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"])),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.color("secondaryLight"),c.w4.color("breadcrumbsActive")),_t=s.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Ot||(Ot=(0,a.A)(["\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"])),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.fontWeight("bold"),(function(e){return e.active&&c.w4.color("breadcrumbsActive")}),c.w4.color("breadcrumbsActive")),jt=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(xt||(xt=(0,a.A)(["\n margin-left: ",";\n margin-right: ",";\n"])),c.hs.space(-2),c.hs.space(-2)),At=s.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(kt||(kt=(0,a.A)(["\n "," {\n margin-right: ",";\n }\n"])),b.i,c.hs.space(-1));const Ct=function(){return St||(St=(0,w.jsx)(jt,{breakWords:!0,children:(0,w.jsx)(b.A,{icon:"chevron-right"})}))};var Tt;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 It(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,p.A)(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 Nt=function(e){return e.title||e.display},Rt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Nt(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Nt).join(" - ");break;default:r=Nt(n)}return r},Lt=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,a=void 0===o?[]:o,i=e.currentView,s=e.backgroundColor,c=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,f=[].concat((0,re.A)(a),(0,re.A)(i?[i]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var o,a=e.display||"",i=n===f.length-1?_t:Dt,s=n===f.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,w.jsx)(u,{})):Tt||(Tt=(0,w.jsx)(d,{}));return(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)(At,{children:(0,w.jsxs)(i,It(It(It({neutral:!0},s),l),{},{onClick:(o=e,function(){c&&!1!==o.clickable&&c(o)}),component:p,children:[(0,w.jsx)(vt,{type:e.type}),(0,w.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,w.jsx)(Ct,{},"icon".concat(n)),t]}));return(0,w.jsxs)(Et,{backgroundColor:s,children:[l?(0,w.jsx)(ut,{defer:!1,children:(0,w.jsx)("title",{children:Rt(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,w.jsx)(w.Fragment,{children:h})]})};Lt.defaultProps={pathPrefix:""};const Ft=Lt;(0,ne.injectIntl)(Ft);var Ht,Wt,Bt=s.Ay.div.withConfig({displayName:"StyledWrapper"})(Ht||(Ht=(0,a.A)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,c.Ed)(),(function(e){return e.theme.colors.signal.danger}),c.t7.color("paper"),c.hs.space(-.5));const Yt=function(){return Wt||(Wt=(0,w.jsx)(Bt,{children:(0,w.jsx)(ne.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Ut;const zt=s.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Ut||(Ut=(0,a.A)(["\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"])),H);var Vt=v().forwardRef((function(e,t){return(0,w.jsx)(zt,{ref:t,children:e.children})}));Vt.propTypes={children:g().node};const qt=Vt;var Gt=n(90179),Kt=n.n(Gt),$t=n(62193),Qt=n.n($t),Xt=n(62243),Zt=n.n(Xt),Jt=n(36193),en=n.n(Jt),tn=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},nn=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},rn={outline:"none"},on=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,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=nn(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=v().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)},nn(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?v().cloneElement(e({focused:t,getRef:this.ref}),n):v().createElement("div",tn({ref:this.ref,style:rn},n),e)},t}(v().Component);on.propTypes={children:en().oneOfType([en().node,en().func]).isRequired,onBlur:en().func,onFocus:en().func},on.defaultProps={onBlur:function(){},onFocus:function(){}};const an=on;var sn,cn,un,ln,dn,fn,pn,hn,mn,gn=n(88357),yn=(0,s.AH)(sn||(sn=(0,a.A)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),vn=s.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(cn||(cn=(0,a.A)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),yn),bn=(0,s.AH)(un||(un=(0,a.A)(["\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,c.Ed)({color:c.t7.color("text")})}),c.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),wn=(0,s.AH)(ln||(ln=(0,a.A)(["\n display: flex;\n align-items: center;\n"]))),On=s.Ay.div.withConfig({displayName:"StyledEditableControl"})(dn||(dn=(0,a.A)(["\n &&& {\n ","\n }\n"])),wn),xn=s.Ay.span.withConfig({displayName:"StyledEditableValue"})(fn||(fn=(0,a.A)(["\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"])),c.t7.color("signal.danger")),kn=n(82284),Sn=function(e){return-1*Math.abs(e)},Pn=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,kn.A)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},En=n(58156),Dn=n.n(En),_n=s.Ay.div.withConfig({displayName:"StyledLocationEdit"})(pn||(pn=(0,a.A)(["\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"])),yn,c.hs.space(-2),c.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Dn()(n,"colors.textDisabled"):Dn()(n,"colors.text")}),bn,c.t7.color("paper"),c.t7.color("signal.info"),c.t7.color("secondaryLight"),c.t7.color("backgroundItemHover")),jn=(0,s.Ay)(_n).withConfig({displayName:"StyledAddressEdit"})(hn||(hn=(0,a.A)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function An(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 Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Tn=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},u=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,w.jsxs)(mt.Ay.Span,{children:[i,", ",o," ",a," ",s," ",u]})},l=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},d=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},f={id:a,value:o&&o.street?c(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Cn(Cn({},o),{},(0,p.A)({},t,a)))}),disabled:i};return(0,w.jsx)(an,{children:function(e){var t,n,o,a,c,p=e.getRef;return(0,w.jsxs)(jn,{immutable:i,name:s,ref:p,children:[(0,w.jsx)(Zt(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:d,getSuggestionValue:(c="street",function(e){return e[c]}),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,w.jsxs)(On,{children:[r.isLoading&&(mn||(mn=(0,w.jsx)(S,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,w.jsx)(gn.Ay,{href:Pn(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Mn=n(69843),In=n.n(Mn),Nn=n(7350),Rn=n.n(Nn);function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(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 Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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 Bn(e,t){if(e){if("string"==typeof e)return Wn(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)?Wn(e,t):void 0}}function Yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||Bn(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 Un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var zn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vn(){return Vn=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},Vn.apply(this,arguments)}function qn(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 Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gn(e,t)}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kn(e)}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)}function Qn(e,t){if(t&&("object"===$n(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 Xn(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=Kn(e);if(t){var o=Kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qn(this,n)}}function Zn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bn(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 Jn=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}(),er="-ms-",tr="-moz-",nr="-webkit-",rr="comm",or="rule",ar="decl",ir="@keyframes",sr=Math.abs,cr=String.fromCharCode,ur=Object.assign;function lr(e){return e.trim()}function dr(e,t,n){return e.replace(t,n)}function fr(e,t){return e.indexOf(t)}function pr(e,t){return 0|e.charCodeAt(t)}function hr(e,t,n){return e.slice(t,n)}function mr(e){return e.length}function gr(e){return e.length}function yr(e,t){return t.push(e),e}var vr=1,br=1,wr=0,Or=0,xr=0,kr="";function Sr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:vr,column:br,length:i,return:""}}function Pr(e,t){return ur(Sr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Er(){return xr=Or>0?pr(kr,--Or):0,br--,10===xr&&(br=1,vr--),xr}function Dr(){return xr=Or<wr?pr(kr,Or++):0,br++,10===xr&&(br=1,vr++),xr}function _r(){return pr(kr,Or)}function jr(){return Or}function Ar(e,t){return hr(kr,e,t)}function Cr(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 Tr(e){return vr=br=1,wr=mr(kr=e),Or=0,[]}function Mr(e){return kr="",e}function Ir(e){return lr(Ar(Or-1,Lr(91===e?e+2:40===e?e+1:e)))}function Nr(e){for(;(xr=_r())&&xr<33;)Dr();return Cr(e)>2||Cr(xr)>3?"":" "}function Rr(e,t){for(;--t&&Dr()&&!(xr<48||xr>102||xr>57&&xr<65||xr>70&&xr<97););return Ar(e,jr()+(t<6&&32==_r()&&32==Dr()))}function Lr(e){for(;Dr();)switch(xr){case e:return Or;case 34:case 39:34!==e&&39!==e&&Lr(xr);break;case 40:41===e&&Lr(e);break;case 92:Dr()}return Or}function Fr(e,t){for(;Dr()&&e+xr!==57&&(e+xr!==84||47!==_r()););return"/*"+Ar(t,Or-1)+"*"+cr(47===e?e:Dr())}function Hr(e){for(;!Cr(_r());)Dr();return Ar(e,Or)}function Wr(e){return Mr(Br("",null,null,null,[""],e=Tr(e),0,[0],e))}function Br(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=v,v=Dr()){case 40:if(108!=h&&58==pr(k,d-1)){-1!=fr(k+=dr(Ir(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ir(v);break;case 9:case 10:case 13:case 32:k+=Nr(h);break;case 92:k+=Rr(jr()-1,7);continue;case 47:switch(_r()){case 42:case 47:yr(Ur(Fr(Dr(),jr()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=mr(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&mr(k)-d&&yr(p>32?zr(k+";",r,n,d-1):zr(dr(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(yr(x=Yr(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===v)if(0===l)Br(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===pr(k,3)?100:f){case 100:case 109:case 115:Br(e,x,x,r&&yr(Yr(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:Br(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=i;break;case 58:d=1+mr(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Er())continue;switch(k+=cr(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(mr(k)-1)*y,y=1;break;case 64:45===_r()&&(k+=Ir(Dr())),f=_r(),l=d=mr(b=k+=Hr(jr())),v++;break;case 45:45===h&&2==mr(k)&&(m=0)}}return a}function Yr(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=gr(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=hr(e,d+1,d=sr(m=i[h])),b=e;y<p;++y)(b=lr(m>0?f[y]+" "+v:dr(v,/&\f/g,f[y])))&&(c[g++]=b);return Sr(e,t,n,0===o?or:s,c,u,l)}function Ur(e,t,n){return Sr(e,t,n,rr,cr(xr),hr(e,2,-2),0)}function zr(e,t,n,r){return Sr(e,t,n,ar,hr(e,0,r),hr(e,r+1,-1),r)}function Vr(e,t){for(var n="",r=gr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function qr(e,t,n,r){switch(e.type){case"@import":case ar:return e.return=e.return||e.value;case rr:return"";case ir:return e.return=e.value+"{"+Vr(e.children,r)+"}";case or:e.value=e.props.join(",")}return mr(n=Vr(e.children,r))?e.return=e.value+"{"+n+"}":""}const Gr=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Kr=function(e,t,n){for(var r=0,o=0;r=o,o=_r(),38===r&&12===o&&(t[n]=1),!Cr(o);)Dr();return Ar(e,Or)},$r=function(e,t){return Mr(function(e,t){var n=-1,r=44;do{switch(Cr(r)){case 0:38===r&&12===_r()&&(t[n]=1),e[n]+=Kr(Or-1,t,n);break;case 2:e[n]+=Ir(r);break;case 4:if(44===r){e[++n]=58===_r()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cr(r)}}while(r=Dr());return e}(Tr(e),t))},Qr=new WeakMap,Xr=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)||Qr.get(n))&&!r){Qr.set(e,!0);for(var o=[],a=$r(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Zr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Jr(e,t){switch(function(e,t){return 45^pr(e,0)?(((t<<2^pr(e,0))<<2^pr(e,1))<<2^pr(e,2))<<2^pr(e,3):0}(e,t)){case 5103:return nr+"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 nr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nr+e+tr+e+er+e+e;case 6828:case 4268:return nr+e+er+e+e;case 6165:return nr+e+er+"flex-"+e+e;case 5187:return nr+e+dr(e,/(\w+).+(:[^]+)/,nr+"box-$1$2"+er+"flex-$1$2")+e;case 5443:return nr+e+er+"flex-item-"+dr(e,/flex-|-self/,"")+e;case 4675:return nr+e+er+"flex-line-pack"+dr(e,/align-content|flex-|-self/,"")+e;case 5548:return nr+e+er+dr(e,"shrink","negative")+e;case 5292:return nr+e+er+dr(e,"basis","preferred-size")+e;case 6060:return nr+"box-"+dr(e,"-grow","")+nr+e+er+dr(e,"grow","positive")+e;case 4554:return nr+dr(e,/([^-])(transform)/g,"$1"+nr+"$2")+e;case 6187:return dr(dr(dr(e,/(zoom-|grab)/,nr+"$1"),/(image-set)/,nr+"$1"),e,"")+e;case 5495:case 3959:return dr(e,/(image-set\([^]*)/,nr+"$1$`$1");case 4968:return dr(dr(e,/(.+:)(flex-)?(.*)/,nr+"box-pack:$3"+er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nr+e+e;case 4095:case 3583:case 4068:case 2532:return dr(e,/(.+)-inline(.+)/,nr+"$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(mr(e)-1-t>6)switch(pr(e,t+1)){case 109:if(45!==pr(e,t+4))break;case 102:return dr(e,/(.+:)(.+)-([^]+)/,"$1"+nr+"$2-$3$1"+tr+(108==pr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fr(e,"stretch")?Jr(dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pr(e,t+1))break;case 6444:switch(pr(e,mr(e)-3-(~fr(e,"!important")&&10))){case 107:return dr(e,":",":"+nr)+e;case 101:return dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nr+(45===pr(e,14)?"inline-":"")+"box$3$1"+nr+"$2$3$1"+er+"$2box$3")+e}break;case 5936:switch(pr(e,t+11)){case 114:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nr+e+er+dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nr+e+er+e+e}return e}var eo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=Jr(e.value,e.length);break;case ir:return Vr([Pr(e,{value:dr(e.value,"@","@"+nr)})],r);case or: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 Vr([Pr(e,{props:[dr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Vr([Pr(e,{props:[dr(t,/:(plac\w+)/,":"+nr+"input-$1")]}),Pr(e,{props:[dr(t,/:(plac\w+)/,":-moz-$1")]}),Pr(e,{props:[dr(t,/:(plac\w+)/,er+"input-$1")]})],r)}return""}))}}];const to=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||eo;var o,a,i={},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++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[qr,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Xr,Zr].concat(r,f),l=gr(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,Vr(Wr(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Jn({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};n(4146);var no=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const ro=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 oo=n(83969),ao=/[A-Z]|^ms/g,io=/_EMO_([^_]+?)_([^]*?)_EMO_/g,so=function(e){return 45===e.charCodeAt(1)},co=function(e){return null!=e&&"boolean"!=typeof e},uo=Gr((function(e){return so(e)?e:e.replace(ao,"-$&").toLowerCase()})),lo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(io,(function(e,t,n){return po={name:t,styles:n,next:po},t}))}return 1===oo.A[e]||so(e)||"number"!=typeof t||0===t?t:t+"px"};function fo(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 po={name:n.name,styles:n.styles,next:po},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)po={name:r.name,styles:r.styles,next:po},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+=fo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":co(i)&&(r+=uo(a)+":"+lo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=fo(e,t,i);switch(a){case"animation":case"animationName":r+=uo(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)co(i[c])&&(r+=uo(a)+":"+lo(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=po,a=n(e);return po=o,fo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var po,ho=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var mo=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="";po=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=fo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=fo(n,t,e[i]),r&&(o+=a[i]);ho.lastIndex=0;for(var s,c="";null!==(s=ho.exec(o));)c+="-"+s[1];return{name:ro(o)+c,styles:o,next:po}},go=!!y.useInsertionEffect&&y.useInsertionEffect,yo=go||function(e){return e()},vo={}.hasOwnProperty,bo=(0,y.createContext)("undefined"!=typeof HTMLElement?to({key:"css"}):null);bo.Provider;var wo=function(e){return(0,y.forwardRef)((function(t,n){var r=(0,y.useContext)(bo);return e(t,r,n)}))},Oo=(0,y.createContext)({});var xo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ko=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;no(t,n,r);yo((function(){return function(e,t,n){no(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},So=wo((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[xo],a=[r],i="";"string"==typeof e.className?i=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,a,e.className):null!=e.className&&(i=e.className+" ");var s=mo(a,void 0,(0,y.useContext)(Oo));i+=t.key+"-"+s.name;var c={};for(var u in e)vo.call(e,u)&&"css"!==u&&u!==xo&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,y.createElement)(y.Fragment,null,(0,y.createElement)(ko,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,y.createElement)(o,c))}));var Po=function(e,t){var n=arguments;if(null==t||!vo.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=So,o[1]=function(e,t){var n={};for(var r in t)vo.call(t,r)&&(n[r]=t[r]);return n[xo]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return y.createElement.apply(null,o)};function Eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mo(t)}var Do=n(81845),_o=n.n(Do);Math.min,Math.max;const jo=["top","right","bottom","left"];jo.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ao(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Co(e){if(null==e)return window;if(!Ao(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function To(e){return Co(e).getComputedStyle(e)}function Mo(e){return Ao(e)?"":e?(e.nodeName||"").toLowerCase():""}function Io(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function No(e){return e instanceof Co(e).HTMLElement}function Ro(e){return e instanceof Co(e).Element}function Lo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Co(e).ShadowRoot||e instanceof ShadowRoot)}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=To(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ho(){return!/^((?!chrome|android).)*safari/i.test(Io())}function Wo(e){return["html","body","#document"].includes(Mo(e))}Math.min,Math.max;const Bo=Math.round;function Yo(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&No(e)&&(c=e.offsetWidth>0&&Bo(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Bo(s.height)/e.offsetHeight||1);const l=Ro(e)?Co(e):window,d=!Ho()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a: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 Uo(e){return(t=e,(t instanceof Co(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function zo(e){if("html"===Mo(e))return e;const t=e.assignedSlot||e.parentNode||(Lo(e)?e.host:null)||Uo(e);return Lo(t)?t.host:t}function Vo(e){const t=zo(e);return Wo(t)?e.ownerDocument.body:No(t)&&Fo(t)?t:Vo(t)}function qo(e,t){var n;void 0===t&&(t=[]);const r=Vo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Co(r),i=o?[a].concat(a.visualViewport||[],Fo(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qo(i))}const Go=y.useLayoutEffect;var Ko=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$o=function(){};function Qo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Xo(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 a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Qo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Zo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$n(e)&&null!==e?[e]:[];var t},Jo=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,Hn({},Un(e,Ko))},ea=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function na(e){return ta(e)?window.pageYOffset:e.scrollTop}function ra(e,t){ta(e)?window.scrollTo(0,t):e.scrollTop=t}function oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$o,o=na(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ra(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function aa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ra(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ra(e,Math.max(t.offsetTop-o,0))}function ia(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var sa=!1,ca={get passive(){return sa=!0}},ua="undefined"!=typeof window?window:{};ua.addEventListener&&ua.removeEventListener&&(ua.addEventListener("p",$o,ca),ua.removeEventListener("p",$o,!1));var la=sa;function da(e){return null!=e}function fa(e,t,n){return e?t:n}var pa=["children","innerProps"],ha=["children","innerProps"];function ma(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=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,y=i?window.innerHeight:ta(l=c)?window.innerHeight:l.clientHeight,v=na(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,P=p-y+v+b,E=v+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&oa(c,P,D),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&oa(c,P,D),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,j=i?O:k;return j>=r&&(_=Math.min(j-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&ra(c,P),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&oa(c,E,D),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var A=t;return(!i&&k>=r||i&&O>=r)&&(A=i?O-w:k-w),a&&oa(c,E,D),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var ga,ya=function(e){return"auto"===e?"bottom":e},va=(0,y.createContext)(null),ba=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,y.useContext)(va)||{}).setPortalPlacement,u=(0,y.useRef)(null),l=Yn((0,y.useState)(r),2),d=l[0],f=l[1],p=Yn((0,y.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Go((function(){var e=u.current;if(e){var t="fixed"===a,s=ma({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,g]),t({ref:u,placerProps:Hn(Hn({},e),{},{placement:h||ya(o),maxHeight:d})})},wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Po("div",Vn({},ea(e,"menu",{menu:!0}),{ref:n},r),t)},Oa=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Hn({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},xa=Oa,ka=Oa,Sa=["size"],Pa=["innerProps","isRtl","size"];var Ea,Da,_a={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ja=function(e){var t=e.size,n=Un(e,Sa);return Po("svg",Vn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_a},n))},Aa=function(e){return Po(ja,Vn({size:20},e),Po("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"}))},Ca=function(e){return Po(ja,Vn({size:20},e),Po("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"}))},Ta=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Hn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ma=Ta,Ia=Ta,Na=function(){var e=Eo.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_"}}}(ga||(Ea=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Da||(Da=Ea.slice(0)),ga=Object.freeze(Object.defineProperties(Ea,{raw:{value:Object.freeze(Da)}})))),Ra=function(e){var t=e.delay,n=e.offset;return Po("span",{css:Eo({animation:"".concat(Na," 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"},"","")})},La=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Po("div",Vn({ref:o},ea(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},Fa=["data"],Ha=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Po("div",Vn({},ea(e,"group",{group:!0}),s),Po(a,Vn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Po("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],Ba={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ya={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Hn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ba)},Ua=function(e){return Hn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ba)},za=function(e){var t=e.children,n=e.innerProps;return Po("div",n,t)};var Va=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Po(c,{data:r,innerProps:Hn(Hn({},ea(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},Po(u,{data:r,innerProps:Hn({},ea(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Po(l,{data:r,innerProps:Hn(Hn({},ea(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},qa={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Po(Aa,null))},Control:La,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Po(Ca,null))},DownChevron:Ca,CrossIcon:Aa,Group:Ha,GroupHeading:function(e){var t=Jo(e);t.data;var n=Un(t,Fa);return Po("div",Vn({},ea(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Po("span",Vn({},t,ea(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Jo(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Un(r,Wa);return Po("div",Vn({},ea(e,"input",{"input-container":!0}),{"data-value":n||""}),Po("input",Vn({className:t({input:!0},s),ref:o,style:Ua(i),disabled:a},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Un(e,Pa);return Po("div",Vn({},ea(Hn(Hn({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Po(Ra,{delay:0,offset:n}),Po(Ra,{delay:160,offset:!0}),Po(Ra,{delay:320,offset:!n}))},Menu:wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Po("div",Vn({},ea(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,a=e.menuPlacement,i=e.menuPosition,s=(0,y.useRef)(null),c=(0,y.useRef)(null),u=Yn((0,y.useState)(ya(a)),2),l=u[0],d=u[1],f=(0,y.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=Yn((0,y.useState)(null),2),h=p[0],m=p[1],g=(0,y.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"===i?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,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Go((function(){g()}),[g]);var v=(0,y.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:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...Ro(e)?qo(e):e.contextElement?qo(e.contextElement):[],...qo(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Ro(e)&&!s&&d.observe(e),Ro(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Yo(e):null;return s&&function t(){const r=Yo(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),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Go((function(){v()}),[v]);var b=(0,y.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var w=Po("div",Vn({ref:b},ea(Hn(Hn({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Po(va.Provider,{value:f},t?(0,Do.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Un(e,ha);return Po("div",Vn({},ea(Hn(Hn({},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=Un(e,pa);return Po("div",Vn({},ea(Hn(Hn({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Va,MultiValueContainer:za,MultiValueLabel:za,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({role:"button"},n),t||Po(Aa,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Po("div",Vn({},ea(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Po("div",Vn({},ea(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Po("div",Vn({},ea(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Po("div",Vn({},ea(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 Po("div",Vn({},ea(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ga=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ka(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Ga(r)&&Ga(o)))return!1;var r,o;return!0}for(var $a={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"},Qa=function(e){return Po("span",Vn({css:$a},e))},Xa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=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 a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,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&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).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:"",".")}},Za=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=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,b=s.screenReaderStatus,w=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,y.useMemo)((function(){return Hn(Hn({},Xa),l||{})}),[l]),P=(0,y.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=Hn({isDisabled:u&&h(u,i),label:l,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),E=(0,y.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,h,S,o,i,u]),D=(0,y.useMemo)((function(){var e="";if(g&&v.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,S,v,b,O]),_="initial-input-focus"===(null==t?void 0:t.action),j=(0,y.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:p,isSearchable:m,tabSelectsValue:w,isInitialFocus:_})}return e}),[x,n,r,p,h,m,g,S,i,w,_]),A=Po(y.Fragment,null,Po("span",{id:"aria-selection"},P),Po("span",{id:"aria-focused"},E),Po("span",{id:"aria-results"},D),Po("span",{id:"aria-guidance"},j));return Po(y.Fragment,null,Po(Qa,{id:c},_&&A),Po(Qa,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&A))},Ja=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ei=new RegExp("["+Ja.map((function(e){return e.letters})).join("")+"]","g"),ti={},ni=0;ni<Ja.length;ni++)for(var ri=Ja[ni],oi=0;oi<ri.letters.length;oi++)ti[ri.letters[oi]]=ri.base;var ai=function(e){return e.replace(ei,(function(e){return ti[e]}))},ii=function(e,t){void 0===t&&(t=Ka);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ai),si=function(e){return e.replace(/^\s+|\s+$/g,"")},ci=function(e){return"".concat(e.label," ").concat(e.value)},ui=["innerRef"];function li(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=Yn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Yn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Un(e,ui),"onExited","in","enter","exit","appear");return Po("input",Vn({ref:t},n,{css:Eo({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 di=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var fi=["boxSizing","height","overflow","paddingRight","position"],pi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hi(e){e.preventDefault()}function mi(e){e.stopPropagation()}function gi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yi(){return"ontouchstart"in window||navigator.maxTouchPoints}var vi=!("undefined"==typeof window||!window.document||!window.document.createElement),bi=0,wi={capture:!1,passive:!1};var Oi=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},xi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ki(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,y.useRef)(!1),s=(0,y.useRef)(!1),c=(0,y.useRef)(0),u=(0,y.useRef)(null),l=(0,y.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&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&di(e)}}),[n,r,o,a]),d=(0,y.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,y.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,y.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,y.useCallback)((function(e){if(e){var t=!!la&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,y.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,y.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,y.useRef)({}),a=(0,y.useRef)(null),i=(0,y.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;if(r&&fi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&bi<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(pi).forEach((function(e){var t=pi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&yi()&&(t.addEventListener("touchmove",hi,wi),e&&(e.addEventListener("touchstart",gi,wi),e.addEventListener("touchmove",mi,wi))),bi+=1}}),[r]),s=(0,y.useCallback)((function(e){if(vi){var t=document.body,n=t&&t.style;bi=Math.max(bi-1,0),r&&bi<1&&fi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&yi()&&(t.removeEventListener("touchmove",hi,wi),e&&(e.removeEventListener("touchstart",gi,wi),e.removeEventListener("touchmove",mi,wi)))}}),[r]);return(0,y.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return Po(y.Fragment,null,n&&Po("div",{onClick:Oi,css:xi}),t((function(e){o(e),a(e)})))}var Si={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Pi=function(e){var t=e.name,n=e.onFocus;return Po("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Si,value:"",onChange:function(){}})};function Ei(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 Di(){return Ei(/^Mac/i)}function _i(){return Ei(/^iPhone/i)||Ei(/^iPad/i)||Di()&&navigator.maxTouchPoints>1}var ji={clearIndicator:Ia,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,a=o.colors,i=o.borderRadius;return Hn({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?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ma,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 Hn({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,a=r.colors;return Hn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Hn(Hn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ya),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Hn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:ka,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Hn((Ln(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ln(n,"position","absolute"),Ln(n,"width","100%"),Ln(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Hn({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,a=n.colors;return Hn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Hn({overflow:"hidden",textOverflow:a||void 0===a?"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,a=n.colors,i=e.isFocused;return Hn({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:xa,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Hn({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*i.baseUnit,"px ").concat(3*i.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 Hn({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,a=r.colors;return Hn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Hn({alignItems:"center",display:r&&o&&a?"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 Ai,Ci={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ia(),captureMenuScroll:!ia(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Hn({ignoreCase:!0,ignoreAccents:!0,stringify:ci,trim:!0,matchFrom:"any"},Ai),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?si(t):t,u=i?si(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=ii(c),u=ai(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-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 Mi(e,t,n,r){return{type:"option",data:t,isDisabled:Bi(e,t,n),isSelected:Yi(e,t,n),label:Hi(e,t),value:Wi(e,t),index:r}}function Ii(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Mi(e,n,t,r)})).filter((function(t){return Li(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Mi(e,n,t,r);return Li(e,a)?a:void 0})).filter(da)}function Ni(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ri(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Zn(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 Li(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!zi(e)||!a)&&Ui(e,{label:i,value:s,data:o},r)}var Fi=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Hi=function(e,t){return e.getOptionLabel(t)},Wi=function(e,t){return e.getOptionValue(t)};function Bi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Yi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wi(e,t);return n.some((function(t){return Wi(e,t)===r}))}function Ui(e,t,n){return!e.filterOption||e.filterOption(t,n)}var zi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vi=1,qi=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&&Gn(e,t)}(a,e);var t,n,r,o=Xn(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,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=Di()||_i(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.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:a});o?t.setValue([].concat(Zn(i),[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),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=fa(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(fa(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=fa(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Fi(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Ri(Ii(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 Xo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Hi(t.props,e)},t.getOptionValue=function(e){return Wi(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=ji[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Hn(Hn({},qa),e.components);var e},t.buildCategorizedOptions=function(){return Ii(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ni(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Hn({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),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){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 zi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,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||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():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:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Vi),t.state.selectValue=Zo(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=Fi(n,r[i])}return t}return t=a,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&&aa(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&&(aa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ci):Hn(Hn({},Ci),this.props.theme):Ci}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,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:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Bi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Yi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ui(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,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=Hn(Hn(Hn({"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?y.createElement(u,Vn({},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:a,form:i,type:"text",value:o},m)):y.createElement(li,Vn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$o,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,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,b=m.isFocused;if(!this.hasValue()||!l)return p?null:y.createElement(s,Vn({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return y.createElement(n,Vn({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var w=g[0];return y.createElement(i,Vn({},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,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,Vn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?y.createElement(e,Vn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return y.createElement(n,Vn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(e,Vn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,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,b=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,P=f.menuShouldScrollIntoView,E=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var j,A=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,f=d===o,p=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return y.createElement(u,Vn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return y.createElement(n,Vn({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(m){var C=g({inputValue:h});if(null===C)return null;j=y.createElement(s,l,C)}else{var T=E({inputValue:h});if(null===T)return null;j=y.createElement(c,l,T)}var M={minMenuHeight:v,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=y.createElement(ba,Vn({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return y.createElement(o,Vn({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),y.createElement(ki,{captureEnabled:p,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return y.createElement(a,Vn({},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}),j)})))}));return k||"fixed"===x?y.createElement(i,Vn({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return y.createElement(Pi,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return y.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return y.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):y.createElement("input",{name:a,type:"hidden",value:""});return y.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return y.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return y.createElement(Za,Vn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,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,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return y.createElement(r,Vn({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),y.createElement(t,Vn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),y.createElement(o,Vn({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(n,Vn({},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,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Zo(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ni(Ii(e,t))}(e,h):[],y=d?Ri(Ii(e,h),"".concat(c,"-option")):[],v=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:Fi(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:fa(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Hn(Hn(Hn({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Component);qi.defaultProps=Ti;var Gi=(0,y.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=Un(e,zn),m=Yn((0,y.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],b=Yn((0,y.useState)(void 0!==c?c:o),2),w=b[0],O=b[1],x=Yn((0,y.useState)(void 0!==p?p:i),2),k=x[0],S=x[1],P=(0,y.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),E=(0,y.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),D=(0,y.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),_=(0,y.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),j=void 0!==s?s:g,A=void 0!==c?c:w,C=void 0!==p?p:k;return Hn(Hn({},h),{},{inputValue:j,menuIsOpen:A,onChange:P,onInputChange:E,onMenuClose:_,onMenuOpen:D,value:C})}(e);return y.createElement(qi,Vn({ref:t},n))})),Ki=Gi;function $i(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xi=(0,ne.injectIntl)((function(e){var t;return(0,w.jsx)("span",Qi(Qi({},e.innerProps),{},{children:(0,w.jsx)(X,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Zi=n(2418);function Ji(){return Ji=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},Ji.apply(this,arguments)}const es=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class ts extends y.Component{constructor(...e){super(...e),this._targetNode=y.createRef(),this._elementNode=y.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,y.isValidElement)(e)||(e=null),(0,y.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Zi(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={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,es),a=Ji({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),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(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?y.createElement(y.Fragment,null,e,t&&this._elementParentNode&&Do.createPortal(t,this._elementParentNode)):null}}var ns,rs,os,as,is,ss,cs,us,ls,ds,fs,ps,hs;function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ys=s.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(ns||(ns=(0,a.A)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),vs=s.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(rs||(rs=(0,a.A)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),bs=s.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(os||(os=(0,a.A)(["\n outline-style: none;\n"]))),ws=s.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(as||(as=(0,a.A)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),c.t7.color("paper"),c.t7.radii("form"),(function(e){return e.isTopAligned&&(0,s.AH)(is||(is=(0,a.A)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Os=(0,s.Ay)(ts).withConfig({displayName:"StyledTether"})(ss||(ss=(0,a.A)(["\n && {\n z-index: 1;\n }\n"]))),xs=(s.Ay.div.withConfig({displayName:"StyledNonTether"})(cs||(cs=(0,a.A)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),c.hs.space(1.5)),(0,s.Ay)(qa.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(us||(us=(0,a.A)(["\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}))),ks=s.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(ls||(ls=(0,a.A)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,c.Ed)({color:c.t7.color("signal.info"),lineHeight:"normal"}),c.hs.space(-.5),c.hs.space(-.2)),Ss=s.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(ds||(ds=(0,a.A)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?c.t7.color("text"):"inherit"})),Ps=s.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(fs||(fs=(0,a.A)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Es=s.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(ps||(ps=(0,a.A)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Ds=s.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(hs||(hs=(0,a.A)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),_s=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,u=c.hs.space(-1)({theme:e}),l=c.hs.space(-2)({theme:e}),d={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},f=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return gs(gs({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return gs(gs(gs({},e),d),{},{outline:0})},control:function(e,t){return gs(gs({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:f(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),gs(gs({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return gs(gs({},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),gs(gs(gs({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},f(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(a),borderRadius:s}},menuList:function(t,n){return gs(gs(gs({},t),d),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return gs(gs({},t),{},{borderRadius:s,margin:"".concat(u," ").concat(l," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},f(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return gs(gs({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return gs(gs({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":gs(gs({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return gs(gs({},e),{},{color:t.isDisabled?i:o,margin:0})},valueContainer:function(e,t){return gs(gs({},e),{},{padding:0,margin:0})}}};function js(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 As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Cs=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,w.jsx)(qa.DropdownIndicator,As(As({},e),{},{children:(0,w.jsx)(Ps,{children:(0,w.jsx)(X,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};g().shape({key:g().any.isRequired,display:g().string});var Ts,Ms,Is;function Ns(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 Rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ls=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Fs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Hs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ws=function(e){e.stopPropagation()};const Bs=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,w.jsx)(ws,{isTopAligned:f,children:(0,w.jsxs)(qa.IndicatorsContainer,Rs(Rs({},e),{},{children:[e.children,n&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Fs(n,u),children:Ts||(Ts=(0,w.jsx)(X,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Ls(r,d,u),children:Ms||(Ms=(0,w.jsx)(X,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,w.jsx)("span",{onTouchEnd:Ws,onMouseDown:Hs(o,u),children:Is||(Is=(0,w.jsx)(X,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Ys;const Us=function(){return Ys||(Ys=(0,w.jsx)("span",{children:(0,w.jsx)(S,{size:"1.8rem"})}))};var zs="tocco-app",Vs=n(85072),qs=n.n(Vs),Gs=n(97825),Ks=n.n(Gs),$s=n(77659),Qs=n.n($s),Xs=n(55056),Zs=n.n(Xs),Js=n(10540),ec=n.n(Js),tc=n(41113),nc=n.n(tc),rc=n(2063),oc={};oc.styleTagTransform=nc(),oc.setAttributes=Zs(),oc.insert=Qs().bind(null,"head"),oc.domAPI=Ks(),oc.insertStyleElement=ec();qs()(rc.A,oc);rc.A&&rc.A.locals&&rc.A.locals;var ac,ic=n(59386),sc=n.n(ic),cc=s.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(ac||(ac=(0,a.A)(["\n cursor: pointer;\n user-select: none;\n"]))),uc=v().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,w.jsx)(cc,{onClick:r,ref:t,children:n})}));uc.propTypes={children:g().any,onOpen:g().func};const lc=uc;var dc=n(88365),fc=n(51732),pc=function(){(0,ic.registerLocale)("en",fc.A.getDateFnsLocale("en")),(0,ic.registerLocale)("en-US",fc.A.getDateFnsLocale("en")),(0,ic.registerLocale)("de-CH",fc.A.getDateFnsLocale("de-CH")),(0,ic.registerLocale)("de-DE",fc.A.getDateFnsLocale("de-DE")),(0,ic.registerLocale)("de",fc.A.getDateFnsLocale("de")),(0,ic.registerLocale)("fr",fc.A.getDateFnsLocale("fr")),(0,ic.registerLocale)("fr-CH",fc.A.getDateFnsLocale("fr")),(0,ic.registerLocale)("it",fc.A.getDateFnsLocale("it")),(0,ic.registerLocale)("it-CH",fc.A.getDateFnsLocale("it")),(0,ic.setDefaultLocale)("de")};pc();(0,s.SL)((0,ne.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,y.useRef)(null),c=(0,y.useState)(!1),u=(0,P.A)(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,w.jsx)(sc(),{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:i,enableTabLoop:!1,customInput:(0,w.jsx)(lc,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var hc,mc,gc,yc,vc,bc,wc=c.t7.color("secondaryLight"),Oc=c.t7.color("paper"),xc=c.t7.color("text"),kc=c.t7.color("secondary"),Sc=c.t7.radii("form"),Pc=(0,s.DU)(hc||(hc=(0,a.A)(["\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"])),b.i,xc,c.t7.radii("form"),Sc,wc,Oc,(0,c.Ed)(),(0,c.Ed)(),wc,Sc,Sc,c.hs.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",Oc,c.hs.font(1),c.t7.fontWeight("bold"),(0,c.Ed)({fontWeight:c.t7.fontWeight("bold")}),Oc,c.hs.font(-2),c.hs.space(-1.8),kc,kc,kc,wc,wc,wc,kc,(0,c.Ed)(),Oc,c.hs.space(-.5),c.t7.color("backgroundItemHover"),Sc,c.hs.space(-.5),Oc,c.t7.color("border"),c.t7.radii("form"),c.hs.space(-1),c.hs.space(-1),c.hs.font(1),Oc,c.t7.fontWeight("bold"),c.hs.space(-1),Oc,c.hs.font(0),xc,wc,wc,c.t7.radii("form"),Oc,wc,kc,xc,xc,Oc,wc,c.t7.color("backgroundItemHover"),c.t7.color("textDisabled"),c.t7.color("border"),c.t7.radii("form")),Ec=(0,s.DU)(mc||(mc=(0,a.A)(["\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"])),c.t7.color("signal.success"),c.t7.color("signal.info"),c.t7.color("signal.warning"),c.t7.color("signal.danger"),c.t7.color("textDisabled")),Dc=(0,s.DU)(gc||(gc=(0,a.A)(["\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"])),c.t7.color("backgroundScrollbar"),c.t7.color("backgroundScrollbarHover"),c.t7.color("backgroundScrollbar"));const _c=function(){return(0,w.jsxs)(w.Fragment,{children:[yc||(yc=(0,w.jsx)(Ec,{})),vc||(vc=(0,w.jsx)(Pc,{})),bc||(bc=(0,w.jsx)(Dc,{}))]})};function jc(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 Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Cc=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,w.jsx)(Os,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,w.jsx)("div",{ref:e})},renderElement:function(o){return(0,w.jsx)("div",{ref:o,className:zs,children:(0,w.jsx)(xs,Ac(Ac({},Kt()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ic=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,w.jsxs)(qa.MenuList,Mc(Mc({},e),{},{className:"MenuList",children:[n,r&&(0,w.jsx)(ks,{children:o})]}))};y.createContext(),y.createContext();var Nc=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Rc="undefined"!=typeof window&&window.document&&window.document.createElement?y.useLayoutEffect:y.useEffect,Lc="top",Fc="bottom",Hc="right",Wc="left",Bc="auto",Yc=[Lc,Fc,Hc,Wc],Uc="start",zc="end",Vc="clippingParents",qc="viewport",Gc="popper",Kc="reference",$c=Yc.reduce((function(e,t){return e.concat([t+"-"+Uc,t+"-"+zc])}),[]),Qc=[].concat(Yc,[Bc]).reduce((function(e,t){return e.concat([t,t+"-"+Uc,t+"-"+zc])}),[]),Xc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Zc(e){return e?(e.nodeName||"").toLowerCase():null}function Jc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eu(e){return e instanceof Jc(e).Element||e instanceof Element}function tu(e){return e instanceof Jc(e).HTMLElement||e instanceof HTMLElement}function nu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Jc(e).ShadowRoot||e instanceof ShadowRoot)}const ru={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];tu(o)&&Zc(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});tu(r)&&Zc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ou(e){return e.split("-")[0]}var au=Math.max,iu=Math.min,su=Math.round;function cu(){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 uu(){return!/^((?!chrome|android).)*safari/i.test(cu())}function lu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&tu(e)&&(o=e.offsetWidth>0&&su(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&su(r.height)/e.offsetHeight||1);var i=(eu(e)?Jc(e):window).visualViewport,s=!uu()&&n,c=(r.left+(s&&i?i.offsetLeft:0))/o,u=(r.top+(s&&i?i.offsetTop:0))/a,l=r.width/o,d=r.height/a;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function du(e){var t=lu(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 fu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pu(e){return Jc(e).getComputedStyle(e)}function hu(e){return["table","td","th"].indexOf(Zc(e))>=0}function mu(e){return((eu(e)?e.ownerDocument:e.document)||window.document).documentElement}function gu(e){return"html"===Zc(e)?e:e.assignedSlot||e.parentNode||(nu(e)?e.host:null)||mu(e)}function yu(e){return tu(e)&&"fixed"!==pu(e).position?e.offsetParent:null}function vu(e){for(var t=Jc(e),n=yu(e);n&&hu(n)&&"static"===pu(n).position;)n=yu(n);return n&&("html"===Zc(n)||"body"===Zc(n)&&"static"===pu(n).position)?t:n||function(e){var t=/firefox/i.test(cu());if(/Trident/i.test(cu())&&tu(e)&&"fixed"===pu(e).position)return null;var n=gu(e);for(nu(n)&&(n=n.host);tu(n)&&["html","body"].indexOf(Zc(n))<0;){var r=pu(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 bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wu(e,t,n){return au(e,iu(t,n))}function Ou(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const ku={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=ou(n.placement),c=bu(s),u=[Wc,Hc].indexOf(s)>=0?"height":"width";if(a&&i){var l=function(e,t){return Ou("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xu(e,Yc))}(o.padding,n),d=du(a),f="y"===c?Lc:Wc,p="y"===c?Fc:Hc,h=n.rects.reference[u]+n.rects.reference[c]-i[c]-n.rects.popper[u],m=i[c]-n.rects.reference[c],g=vu(a),y=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=l[f],w=y-d[u]-l[p],O=y/2-d[u]/2+v,x=wu(b,O,w),k=c;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-O,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)))&&fu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var Pu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Eu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.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 y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=Wc,w=Lc,O=window;if(u){var x=vu(n),k="clientHeight",S="clientWidth";if(x===Jc(n)&&"static"!==pu(x=mu(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===Lc||(o===Wc||o===Hc)&&a===zc)w=Fc,m-=(d&&x===O&&O.visualViewport?O.visualViewport.height:x[k])-r.height,m*=c?1:-1;if(o===Wc||(o===Lc||o===Fc)&&a===zc)b=Hc,p-=(d&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-r.width,p*=c?1:-1}var P,E=Object.assign({position:s},u&&Pu),D=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:su(n*o)/o||0,y:su(r*o)/o||0}}({x:p,y:m},Jc(n)):{x:p,y:m};return p=D.x,m=D.y,c?Object.assign({},E,((P={})[w]=v?"0":"",P[b]=y?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P)):Object.assign({},E,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const Du={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,u={placement:ou(t.placement),variation:Su(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,Eu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eu(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 _u={passive:!0};const ju={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=Jc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,_u)})),s&&c.addEventListener("resize",n.update,_u),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,_u)})),s&&c.removeEventListener("resize",n.update,_u)}},data:{}};var Au={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e){return e.replace(/left|right|bottom|top/g,(function(e){return Au[e]}))}var Tu={start:"end",end:"start"};function Mu(e){return e.replace(/start|end/g,(function(e){return Tu[e]}))}function Iu(e){var t=Jc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nu(e){return lu(mu(e)).left+Iu(e).scrollLeft}function Ru(e){var t=pu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Lu(e){return["html","body","#document"].indexOf(Zc(e))>=0?e.ownerDocument.body:tu(e)&&Ru(e)?e:Lu(gu(e))}function Fu(e,t){var n;void 0===t&&(t=[]);var r=Lu(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Jc(r),i=o?[a].concat(a.visualViewport||[],Ru(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Fu(gu(i)))}function Hu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wu(e,t,n){return t===qc?Hu(function(e,t){var n=Jc(e),r=mu(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var u=uu();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+Nu(e),y:c}}(e,n)):eu(t)?function(e,t){var n=lu(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):Hu(function(e){var t,n=mu(e),r=Iu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=au(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=au(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Nu(e),c=-r.scrollTop;return"rtl"===pu(o||n).direction&&(s+=au(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}(mu(e)))}function Bu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Fu(gu(e)),n=["absolute","fixed"].indexOf(pu(e).position)>=0&&tu(e)?vu(e):e;return eu(n)?t.filter((function(e){return eu(e)&&fu(e,n)&&"body"!==Zc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Wu(e,n,r);return t.top=au(o.top,t.top),t.right=iu(o.right,t.right),t.bottom=iu(o.bottom,t.bottom),t.left=au(o.left,t.left),t}),Wu(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Yu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ou(o):null,i=o?Su(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case Lc:t={x:s,y:n.y-r.height};break;case Fc:t={x:s,y:n.y+n.height};break;case Hc:t={x:n.x+n.width,y:c};break;case Wc:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=a?bu(a):null;if(null!=u){var l="y"===u?"height":"width";switch(i){case Uc:t[u]=t[u]-(n[l]/2-r[l]/2);break;case zc:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function Uu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,c=void 0===s?Vc:s,u=n.rootBoundary,l=void 0===u?qc:u,d=n.elementContext,f=void 0===d?Gc:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=Ou("number"!=typeof g?g:xu(g,Yc)),v=f===Gc?Kc:Gc,b=e.rects.popper,w=e.elements[h?v:f],O=Bu(eu(w)?w:w.contextElement||mu(e.elements.popper),c,l,i),x=lu(e.elements.reference),k=Yu({reference:x,element:b,strategy:"absolute",placement:o}),S=Hu(Object.assign({},b,k)),P=f===Gc?S:x,E={top:O.top-P.top+y.top,bottom:P.bottom-O.bottom+y.bottom,left:O.left-P.left+y.left,right:P.right-O.right+y.right},D=e.modifiersData.offset;if(f===Gc&&D){var _=D[o];Object.keys(E).forEach((function(e){var t=[Hc,Fc].indexOf(e)>=0?1:-1,n=[Lc,Fc].indexOf(e)>=0?"y":"x";E[e]+=_[n]*t}))}return E}const zu={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,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,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,y=ou(g),v=c||(y===g||!h?[Cu(g)]:function(e){if(ou(e)===Bc)return[];var t=Cu(e);return[Mu(e),t,Mu(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(ou(n)===Bc?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qc:c,l=Su(r),d=l?s?$c:$c.filter((function(e){return Su(e)===l})):Yc,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]=Uu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ou(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,O=t.rects.popper,x=new Map,k=!0,S=b[0],P=0;P<b.length;P++){var E=b[P],D=ou(E),_=Su(E)===Uc,j=[Lc,Fc].indexOf(D)>=0,A=j?"width":"height",C=Uu(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),T=j?_?Hc:Wc:_?Fc:Lc;w[A]>O[A]&&(T=Cu(T));var M=Cu(T),I=[];if(a&&I.push(C[D]<=0),s&&I.push(C[T]<=0,C[M]<=0),I.every((function(e){return e}))){S=E,k=!1;break}x.set(E,I)}if(k)for(var N=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},R=h?3:1;R>0;R--){if("break"===N(R))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vu(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 qu(e){return[Lc,Hc,Fc,Wc].some((function(t){return e[t]>=0}))}const Gu={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,a=t.modifiersData.preventOverflow,i=Uu(t,{elementContext:"reference"}),s=Uu(t,{altBoundary:!0}),c=Vu(i,r),u=Vu(s,o,a),l=qu(c),d=qu(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 Ku={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Qc.reduce((function(e,n){return e[n]=function(e,t,n){var r=ou(e),o=[Wc,Lc].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Wc,Hc].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[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]=i}};const $u={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Qu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,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=Uu(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),y=ou(t.placement),v=Su(t.placement),b=!v,w=bu(y),O="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(a){var j,A="y"===w?Lc:Wc,C="y"===w?Fc:Hc,T="y"===w?"height":"width",M=x[w],I=M+g[A],N=M-g[C],R=p?-S[T]/2:0,L=v===Uc?k[T]:S[T],F=v===Uc?-S[T]:-k[T],H=t.elements.arrow,W=p&&H?du(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=B[A],U=B[C],z=wu(0,k[T],W[T]),V=b?k[T]/2-R-z-Y-E.mainAxis:L-z-Y-E.mainAxis,q=b?-k[T]/2+R+z+U+E.mainAxis:F+z+U+E.mainAxis,G=t.elements.arrow&&vu(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,$=null!=(j=null==D?void 0:D[w])?j:0,Q=M+q-$,X=wu(p?iu(I,M+V-$-K):I,M,p?au(N,Q):N);x[w]=X,_[w]=X-M}if(s){var Z,J="x"===w?Lc:Wc,ee="x"===w?Fc:Hc,te=x[O],ne="y"===O?"height":"width",re=te+g[J],oe=te-g[ee],ae=-1!==[Lc,Wc].indexOf(y),ie=null!=(Z=null==D?void 0:D[O])?Z:0,se=ae?re:te-k[ne]-S[ne]-ie+E.altAxis,ce=ae?te+k[ne]+S[ne]-ie-E.altAxis:oe,ue=p&&ae?function(e,t,n){var r=wu(e,t,n);return r>n?n:r}(se,te,ce):wu(p?se:re,te,p?ce:oe);x[O]=ue,_[O]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Xu(e,t,n){void 0===n&&(n=!1);var r=tu(t),o=tu(t)&&function(e){var t=e.getBoundingClientRect(),n=su(t.width)/e.offsetWidth||1,r=su(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=mu(t),i=lu(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Zc(t)||Ru(a))&&(s=function(e){return e!==Jc(e)&&tu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Iu(e);var t}(t)),tu(t)?((c=lu(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Nu(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function Zu(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}var Ju={placement:"bottom",modifiers:[],strategy:"absolute"};function el(){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 tl(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ju:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ju,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:eu(e)?Fu(e):e.contextElement?Fu(e.contextElement):[],popper:Fu(t)};var i,u,f=function(e){var t=Zu(e);return Xc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),u=i.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(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:l,options:r}),i=function(){};c.push(a||i)}})),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(el(t,n)){s.rects={reference:Xu(t,vu(n),"fixed"===s.options.strategy),popper:du(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,c=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),u=!0}};if(!el(e,t))return l;function d(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var nl=tl({defaultModifiers:[ju,$u,Du,ru,Ku,zu,Qu,ku,Gu]}),rl=[],ol=function(e,t,n){void 0===n&&(n={});var r=y.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||rl},a=y.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],s=a[1],c=y.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);Do.flushSync((function(){s({styles:Nc(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Nc(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=y.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return ue()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),l=y.useRef();return Rc((function(){l.current&&l.current.setOptions(u)}),[u]),Rc((function(){if(null!=e&&null!=t){var r=(n.createPopper||nl)(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:i.styles,attributes:i.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var al,il,sl;n(86171);var cl,ul,ll,dl=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(al||(al=(0,a.A)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),c.t7.color("text"),c.hs.font(1),c.hs.space(-1)),fl=(0,s.AH)(il||(il=(0,a.A)(["\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"])),c.t7.color("text"),c.t7.lineHeight("regular"),c.t7.fontWeight("regular"),c.hs.space(-3),c.hs.space(-1.5),c.t7.radii("statusLabel")),pl=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledHtmlFormatter"})(sl||(sl=(0,a.A)(["\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 color: ",";\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n color: ",";\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,mt.gv)(e,"html")}),c.hs.space(-1),c.hs.space(-1.5),fl,c.t7.color("signal.dangerLight"),c.t7.color("textLabel"),c.t7.color("signal.infoLight"),c.t7.color("textLabel"),c.t7.color("signal.warningLight"),c.t7.color("textLabel"),c.t7.color("signal.successLight"),c.t7.color("textLabel"),fl,c.t7.color("signal.dangerLight"),c.t7.color("textLabel"),c.t7.radii("statusLabel"),c.hs.space(-2.1),c.hs.space(0),c.t7.color("paper"),c.t7.color("signal.info"),c.t7.color("signal.warningLight"),c.hs.space(-1.5),c.hs.space(.5)),hl=16,ml=s.Ay.div.withConfig({displayName:"StyledBoxWrapper"})(cl||(cl=(0,a.A)(["\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"])),c.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":c.hs.space(0)}),c.t7.color("textPopover")),gl=s.Ay.div.withConfig({displayName:"StyledBox"})(ul||(ul=(0,a.A)(["\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,mt.gv)(e,"html")}),pl,c.t7.color("textPopover")),yl=s.Ay.i.withConfig({displayName:"StyledArrow"})(ll||(ll=(0,a.A)(["\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"])),hl,8,-8,8,8,8,c.t7.color("backgroundPopover"),-6.4,8,8,8,c.t7.color("backgroundPopover"),hl,8,c.t7.color("backgroundPopover"));function vl(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wl=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,a=(0,y.useState)(null),i=(0,P.A)(a,2),s=i[0],c=i[1],u=(0,y.useState)(null),l=(0,P.A)(u,2),d=l[0],f=l[1],p=(0,y.useState)(null),h=(0,P.A)(p,2),m=h[0],g=h[1],v=(0,y.useState)(!1),b=(0,P.A)(v,2),O=b[0],x=b[1],k=(0,y.useState)(null),S=(0,P.A)(k,2),E=S[0],D=S[1],_=ol(s,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:m}}]}),j=_.styles,A=_.attributes;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{ref:c,onMouseOut:function(){E&&clearTimeout(E),x(!1)},onMouseOver:function(){var e=setTimeout((function(){x(!0)}),500);D(e)},children:t}),O&&n&&_o().createPortal((0,w.jsxs)(ml,bl(bl({ref:f,style:j.popper,rimless:o},A.popper),{},{className:zs,children:[(0,w.jsx)(gl,{isPlainHtml:r,children:n}),(0,w.jsx)(yl,bl({ref:g,style:j.arrow},A.popper))]})),document.body)]})};wl.defaultProps={isPlainHtml:!0,rimless:!1};const Ol=wl;const xl=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=Dn()(a,t.key,null),u=(0,w.jsx)("span",{style:n.css,children:r}),l=s?(0,w.jsx)(ys,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,w.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,w.jsx)(Ol,{content:c?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(c)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,w.jsx)(Ds,{children:l})};var kl=n(85015),Sl=n.n(kl),Pl=n(42194),El=n.n(Pl),Dl=n(23076);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=["linkComp"],Cl=function(e,t){var n=Dl.A.difference(e,t),r=El()(Kt()(n,Al),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Tl=(0,y.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Sl()(n)?(0,w.jsx)(ys,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,w.jsx)(t,{entityKey:n,children:r})}):r}),Cl);Tl.propTypes={children:g().node,entityKey:g().any,linkComp:g().func};const Ml=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=Dn()(a,t.key,null);return(0,w.jsx)(qa.SingleValue,jl(jl({},e),{},{children:(0,w.jsx)(Ss,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,w.jsx)(Ol,{content:c?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(c)}}):null,children:(0,w.jsx)(Tl,{linkComp:s,entityKey:t.key,children:o})})})}))};function Il(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 Nl=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Rl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,w.jsx)(qa.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=y.Children.map(r,(function(e){return Nl(e)?e:null})),u=y.Children.map(r,(function(e){return Nl(e)?null:e})),l=s&&n;return(0,w.jsxs)(w.Fragment,{children:[!l&&(0,w.jsx)(w.Fragment,{children:c}),(0,w.jsx)(Es,{children:u})]})};function Ll(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hl=(0,s.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=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,b=e.value,O=e.DetailLink,x=e.createPermission,k=e.openRemoteCreate,S=(0,y.useRef)(null),E=(0,y.useRef)(null),D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,y.useState)(D()),A=(0,P.A)(j,2),C=A[0],T=A[1],M=(0,y.useState)(_()),I=(0,P.A)(M,2),N=I[0],R=I[1],L=(0,y.useState)(!1),F=(0,P.A)(L,2),H=F[0],W=F[1],B=function(e){t&&t(e)},Y=(0,y.useCallback)(m||function(){},[]),U=(0,y.useCallback)(Rn()(Y,800,{trailing:!0}),[]),z=Boolean(p),V=Boolean(f),q=Boolean(x);return(0,w.jsx)(vs,{tabIndex:"-1",id:n,onFocus:function(){S.current.focus(),setTimeout((function(){T(D()),R(_())}),0)},children:(0,w.jsx)(bs,{ref:E,children:(0,w.jsx)(Ki,Fl(Fl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:N,components:{ClearIndicator:Xi,LoadingIndicator:Us,DropdownIndicator:Cs,IndicatorsContainer:Bs,IndicatorSeparator:null,Menu:Cc,MenuList:Ic,MultiValueLabel:xl,SingleValue:Ml,ValueContainer:Rl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,w.jsx)(l,Fl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),B(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,b),""===e&&"input-change"===n&&B(b)},options:(0,re.A)(h||[]),onKeyDown:function(e){"Enter"===e.key&&H&&(e.stopPropagation(),S.current&&null===S.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:S,onMenuOpen:function(){B(b),W(!0)},onMenuClose:function(){W(!1)},styles:_s(g),loadTooltip:i,tooltips:v,DetailLink:O,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:z,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:q,createPermission:x,openRemoteCreate:k,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const Wl=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,w.jsx)(Hl,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:In()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Bl,Yl=s.Ay.div.withConfig({displayName:"StyledBoolEdit"})(Bl||(Bl=(0,a.A)(["\n margin: 5px 0;\n"])));const Ul=function(e){return(0,w.jsx)(Yl,{children:(0,w.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 zl,Vl,ql=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,w.jsx)(pl,{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(t)},breakWords:n,className:r})},Gl=s.Ay.div.withConfig({displayName:"StyledOption"})(zl||(zl=(0,a.A)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),c.hs.space(-1),c.hs.space(-1.5)),Kl=s.Ay.span.withConfig({displayName:"StyledLabel"})(Vl||(Vl=(0,a.A)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,c.Ed)(),c.hs.space(-1.5));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xl={single:"radio",multiple:"checkbox"},Zl={single:{checked:!1},multiple:{}},Jl=function(e,t){return t?(0,w.jsx)(ql,{value:e}):e},ed=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,w.jsxs)(Gl,{children:[!s&&(0,w.jsx)("input",{name:t,type:Xl[c],checked:a||!1,onChange:l,id:n,disabled:i}),(0,w.jsx)(Kl,{children:o||Jl(r,u)})]})};const td=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return Ql(Ql({},t),t.id===e.target.id?{checked:e.target.checked}:Zl[r.selectionType])}));t({options:o})}};return(0,w.jsx)(w.Fragment,{children:n.options.map((function(e){return(0,w.jsx)(ed,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};n(98639);function nd(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 rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var od=(0,y.lazy)((function(){return Promise.all([n.e(95),n.e(722)]).then(n.bind(n,65066))}));const ad=function(e){return(0,w.jsx)(y.Suspense,{fallback:(t=e.value,(0,w.jsx)("div",{children:(0,w.jsx)("p",{children:t})})),children:(0,w.jsx)(od,rd({},e))});var t};var id,sd=s.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(id||(id=(0,a.A)(["\n margin-top: ",";\n"])),c.hs.space(-1.5));const cd=(0,s.SL)(E.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,w.jsx)(sd,{children:(0,w.jsx)(ad,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var ud,ld,dd,fd=s.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ud||(ud=(0,a.A)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),pd=s.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(ld||(ld=(0,a.A)(["\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"])),yn,bn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),hd=s.Ay.input.withConfig({displayName:"StyledTimeInput"})(dd||(dd=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn),md="react-datepicker-time__input",gd="react-datepicker__day",yd="react-datepicker__input",vd=function(e){return e.classList.contains(gd)},bd=function(e){return e.classList.contains(md)},wd=function(e){return e.classList.contains(yd)},Od=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(gd,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},xd=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},kd=function(e){if(!e)return null;var t=(0,dc.Hle)(e.toString());return isNaN(t)?null:t},Sd=function(e){return e?e.toISOString():null};const Pd=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?kd:c,l=n.dateToValue,d=void 0===l?Sd:l,f=(0,y.useRef)(null),p=(0,y.useState)(!1),h=(0,P.A)(p,2),m=h[0],g=h[1],v=(0,y.useState)(!1),b=(0,P.A)(v,2),w=b[0],O=b[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,y.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 E=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},_=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},j=function(){t(null),_(null)},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=D(!1);if(n){var r=x||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,dc.avh)((0,dc.glI)((0,dc.gtt)(e,s),a),r)}(n,{hour:(0,dc.qZx)(r),minute:(0,dc.Osm)(r),second:(0,dc.SyE)(r)}):n;C(o,e)}},C=function(n,r){if(n){var a,i=!e&&Boolean(n),c=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!c&&o.some((function(e){return(0,dc.uv4)(c,e)})),l=(0,dc.ol1)(n),p=(0,dc.qZx)(n)!==(0,dc.qZx)(l)||(0,dc.Osm)(n)!==(0,dc.Osm)(l);(i&&!p||u)&&s&&(n=fc.A.setCurrentTime(n)),t(d(n))}else j();var h;s||"click"!==(null==r?void 0:r.type)||(E(),xd(null===(h=f.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(wd(e.target))setTimeout((function(){return E()}),0);else if(bd(e.target)){var t;_(x||D(!0)),Od(null===(t=f.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else vd(e.target)&&E();else wd(e.target)&&m?(A(e),setTimeout((function(){return E()}),0)):bd(e.target)?E():vd(e.target)&&(s?(A(e,!0),_(null),O(!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(md));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(A(e),E()));var n;"Enter"===e.key&&(E(),e.preventDefault(),e.stopPropagation(),xd(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;_(x||D(!0)),Od(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)},M=function(){var e;g((function(e){return!e})),_(null),xd(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:E,onInputClick:M,onKeyDown:T,onChange:C,onCalendarOpen:function(){_(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:s,minDate:k,maxDate:S,ref:f,className:yd},timeInputProps:{onKeyDown:T,className:md,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:M,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Ed="HH:mm:ss",Dd="HH:mm",_d=function(e){return(0,dc.uv4)(e,Dd)},jd=function(e){var t=function(e){return e?(0,dc.uv4)(e,Ed)?(0,dc.qgA)(e,Ed,new Date):(0,dc.uv4)(e,Dd)?(0,dc.qgA)(e,Dd,new Date):(0,dc.uv4)(e,"HH:")?(0,dc.qgA)(e,"HH:",new Date):(0,dc.uv4)(e,"H")?(0,dc.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,dc.GPZ)(e,Dd)}(t):""};const Ad=function(e,t){var n=jd(e),r=(0,y.useState)(n),o=(0,P.A)(r,2),a=o[0],i=o[1],s=(0,y.useRef)(a),c=E.A.usePrevious(n);(0,y.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,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,i(n);var p=jd(n);p&&!_d(p)||t(p)}},onBlur:function(){if(a!==n){var e=jd(a);e&&_d(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var Cd=["value","onChange","onKeyDown"];function Td(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?Td(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}pc();var Id=function(e){var t=e.onChange,n=e.label;return(0,w.jsx)(U,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Nd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,h.A)(e,Cd),a=Ad(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,w.jsx)(hd,Md(Md(Md({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Rd={strategy:"fixed"};const Ld=(0,s.SL)((0,ne.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=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,y.useRef)(void 0),b=u.locale,O=function(e){return u.formatMessage({id:e})},x=(0,y.useRef)(null),k=Boolean(r),S=!t&&k,P=function(e){v.current=e,c(e)},E=Pd(r,P,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),D=E.reactDatePickerProps,_=E.timeInputProps,j=E.clearButtonProps,A=E.calendarButtonProps;return(0,w.jsx)(fd,{immutable:t,id:n,tabIndex:"-1",children:(0,w.jsxs)(pd,{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,w.jsx)(sc(),Md(Md({id:n?"".concat(n,"-datepicker"):null,popperClassName:zs},D),{},{disabled:t,dateFormat:[].concat((0,re.A)(m),(0,re.A)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:O("client.component.datePicker.timeLabel"),customTimeInput:(0,w.jsx)(Nd,Md({},_)),showTimeSelect:d,timeIntervals:15,popperProps:Rd,portalId:"react-datepicker",todayButton:(0,w.jsx)(Id,{onChange:P,label:O("client.component.datePicker.todayLabel")})})),S&&(0,w.jsx)(X,Md({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":O("client.component.datePicker.clearDateLabel")},j)),!t&&(0,w.jsx)(X,Md({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},A))]})})})));function Fd(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 Hd=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,ne.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(fc.A.getLocalizedDateFormat(c.locale)),d=fc.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,fc.A.useTwoDigitYear(l),fc.A.useTwoDigitYear(d)];return(0,w.jsx)(Ld,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(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:a,placeholder:s,events:i},u))};function Wd(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 Bd=(0,ne.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,ne.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(fc.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(fc.A.getLocalizedDateFormat(i.locale)),l=fc.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),d=[c,l,fc.A.useTwoDigitYear(c),fc.A.useTwoDigitYear(l)],f=fc.A.getLocalizedDateFormatWithoutPunctuation(i.locale),h=[u,f,fc.A.useTwoDigitYear(u),fc.A.useTwoDigitYear(f)];return(0,w.jsx)(Ld,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:a},s))}));var Yd,Ud,zd,Vd,qd,Gd,Kd,$d,Qd=s.Ay.section.withConfig({displayName:"StyledSection"})(Yd||(Yd=(0,a.A)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Xd=s.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(Ud||(Ud=(0,a.A)(["\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"])),H,c.hs.space(-2)),Zd=s.Ay.div.withConfig({displayName:"StyledDropzone"})(zd||(zd=(0,a.A)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),H,c.t7.color("backgroundItemHover")),Jd=s.Ay.div.withConfig({displayName:"StyledUploadInput"})(Vd||(Vd=(0,a.A)(["\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,c.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),c.t7.color("paper"),(function(e){return e.immutable?c.Db.shade2(e):c.Db.base(e)}),c.hs.space(-2),H,c.hs.space(-3.1),c.hs.space(-1.5)),ef=s.Ay.div.withConfig({displayName:"StyledUploadProgress"})(qd||(qd=(0,a.A)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),c.hs.space(-2)),tf=(0,s.Ay)(mt.oY).withConfig({displayName:"StyledUploadProgressText"})(Gd||(Gd=(0,a.A)(["\n && {\n ","\n }\n"])),(0,c.Ed)({fontSize:c.hs.font(-1)})),nf=s.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Kd||(Kd=(0,a.A)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),c.hs.space(-2)),rf=s.Ay.div.withConfig({displayName:"StyledView"})($d||($d=(0,a.A)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),c.hs.space(-2)),of=n(2404),af=n.n(of);function sf(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(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(i,s)}c((r=r.apply(e,t||[])).next())}))}function cf(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)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 i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}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 uf(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function lf(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var df=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ff(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=df.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pf=[".DS_Store","Thumbs.db"];function hf(e){return"object"==typeof e&&null!==e}function mf(e){return bf(e.target.files).map((function(e){return ff(e)}))}function gf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return ff(e)}))]}}))}))}function yf(e,t){return sf(this,void 0,void 0,(function(){var n;return cf(this,(function(r){switch(r.label){case 0:return e.items?(n=bf(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(wf))]):[3,2];case 1:return[2,vf(Of(r.sent()))];case 2:return[2,vf(bf(e.files).map((function(e){return ff(e)})))]}}))}))}function vf(e){return e.filter((function(e){return-1===pf.indexOf(e.name)}))}function bf(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function wf(e){if("function"!=typeof e.webkitGetAsEntry)return xf(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Sf(t):xf(e)}function Of(e){return e.reduce((function(e,t){return lf(lf([],uf(e),!1),uf(Array.isArray(t)?Of(t):[t]),!1)}),[])}function xf(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ff(t);return Promise.resolve(n)}function kf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,e.isDirectory?Sf(e):Pf(e)]}))}))}function Sf(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return sf(a,void 0,void 0,(function(){var a,i,s;return cf(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 a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(kf)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Pf(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ff(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Ef=n(9455);function Df(e){return function(e){if(Array.isArray(e))return Mf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){Af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||Tf(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 Tf(e,t){if(e){if("string"==typeof e)return Mf(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)?Mf(e,t):void 0}}function Mf(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 If="file-invalid-type",Nf="file-too-large",Rf="file-too-small",Lf="too-many-files",Ff=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:If,message:"File type must be ".concat(t)}},Hf=function(e){return{code:Nf,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Wf=function(e){return{code:Rf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Bf={code:Lf,message:"Too many files"};function Yf(e,t){var n="application/x-moz-file"===e.type||(0,Ef.A)(e,t);return[n,n?null:Ff(t)]}function Uf(e,t,n){if(zf(e.size))if(zf(t)&&zf(n)){if(e.size>n)return[!1,Hf(n)];if(e.size<t)return[!1,Wf(t)]}else{if(zf(t)&&e.size<t)return[!1,Wf(t)];if(zf(n)&&e.size>n)return[!1,Hf(n)]}return[!0,null]}function zf(e){return null!=e}function Vf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function qf(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 Gf(e){e.preventDefault()}function Kf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Vf(e)&&t&&t.apply(void 0,[e].concat(r)),Vf(e)}))}}function $f(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Qf(e){return/^.*\.[\w]+$/.test(e)}var Xf=["children"],Zf=["open"],Jf=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ep=["refKey","onChange","onClick"];function tp(e){return function(e){if(Array.isArray(e))return op(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rp(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 np(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||rp(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 rp(e,t){if(e){if("string"==typeof e)return op(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)?op(e,t):void 0}}function op(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 ap(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 ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ap(Object(n),!0).forEach((function(t){sp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var up=(0,y.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ip(ip({},lp),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=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,b=t.autoFocus,w=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,E=t.validator,D=(0,y.useMemo)((function(){return function(e){if(zf(e))return Object.entries(e).reduce((function(e,t){var n=Cf(t,2),r=n[0],o=n[1];return[].concat(Df(e),[r],Df(o))}),[]).filter((function(e){return $f(e)||Qf(e)})).join(",")}(n)}),[n]),_=(0,y.useMemo)((function(){return function(e){if(zf(e)){var t=Object.entries(e).filter((function(e){var t=Cf(e,2),n=t[0],r=t[1],o=!0;return $f(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(Qf)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Cf(t,2),r=n[0],o=n[1];return jf(jf({},e),{},Af({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),j=(0,y.useMemo)((function(){return"function"==typeof g?g:mp}),[g]),A=(0,y.useMemo)((function(){return"function"==typeof m?m:mp}),[m]),C=(0,y.useRef)(null),T=(0,y.useRef)(null),M=np((0,y.useReducer)(hp,pp),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,y.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){T.current&&(T.current.files.length||(N({type:"closeDialog"}),A()))}),300)};(0,y.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[T,L,A,F]);var W=(0,y.useRef)([]),B=function(e){C.current&&C.current.contains(e.target)||(e.preventDefault(),W.current=[])};(0,y.useEffect)((function(){return w&&(document.addEventListener("dragover",Gf,!1),document.addEventListener("drop",B,!1)),function(){w&&(document.removeEventListener("dragover",Gf),document.removeEventListener("drop",B))}}),[C,w]),(0,y.useEffect)((function(){return!r&&b&&C.current&&C.current.focus(),function(){}}),[C,b,r]);var Y=(0,y.useCallback)((function(e){P?P(e):console.error(e)}),[P]),U=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(tp(W.current),[e.target]),qf(e)&&Promise.resolve(o(e)).then((function(t){if(!Vf(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=Cf(Yf(e,n),1)[0],a=Cf(Uf(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:D,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:E});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,i,a,s,c,E]),z=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=qf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return C.current&&C.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),qf(e)&&l&&l(e))}),[C,l,S]),q=(0,y.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=np(Yf(e,D),2),o=t[0],s=t[1],c=np(Uf(e,i,a),2),u=c[0],l=c[1],d=E?E(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:[Bf]})})),n.splice(0)),N({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)}),[N,s,D,i,a,c,f,p,h,E]),G=(0,y.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],qf(e)&&Promise.resolve(o(e)).then((function(t){Vf(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),N({type:"reset"})}),[o,q,Y,S]),K=(0,y.useCallback)((function(){if(F.current){N({type:"openDialog"}),j();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({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)?Y(e):(F.current=!1,T.current?(T.current.value=null,T.current.click()):Y(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."))):(A(e),N({type:"closeDialog"}))}))}else T.current&&(N({type:"openDialog"}),j(),T.current.value=null,T.current.click())}),[N,j,A,v,q,Y,_,s]),$=(0,y.useCallback)((function(e){C.current&&C.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[C,K]),Q=(0,y.useCallback)((function(){N({type:"focus"})}),[]),X=(0,y.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,y.useCallback)((function(){O||(!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)}()?K():setTimeout(K,0))}),[O,K]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,y.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=cp(e,Jf);return ip(ip(sp({onKeyDown:ee(Kf(a,$)),onFocus:ee(Kf(i,Q)),onBlur:ee(Kf(s,X)),onClick:J(Kf(c,Z)),onDragEnter:te(Kf(u,U)),onDragOver:te(Kf(l,z)),onDragLeave:te(Kf(d,V)),onDrop:te(Kf(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,C),r||x?{}:{tabIndex:0}),p)}}),[C,$,Q,X,Z,U,z,V,G,x,k,r]),oe=(0,y.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,y.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=cp(e,ep);return ip(ip({},sp({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Kf(r,G)),onClick:J(Kf(o,oe)),tabIndex:-1},n,T)),a)}}),[T,n,s,G,r]);return ip(ip({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ae,rootRef:C,inputRef:T,open:J(K)})}(cp(e,Xf)),o=r.open,a=cp(r,Zf);return(0,y.useImperativeHandle)(t,(function(){return{open:o}}),[o]),v().createElement(y.Fragment,null,n(ip(ip({},a),{},{open:o})))}));up.displayName="Dropzone";var lp={disabled:!1,getFilesFromEvent:function(e){return sf(this,void 0,void 0,(function(){return cf(this,(function(t){return hf(e)&&hf(e.dataTransfer)?[2,yf(e.dataTransfer,e.type)]:function(e){return hf(e)&&hf(e.target)}(e)?[2,mf(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,gf(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};up.defaultProps=lp,up.propTypes={children:g().func,accept:g().objectOf(g().arrayOf(g().string)),multiple:g().bool,preventDropOnDocument:g().bool,noClick:g().bool,noKeyboard:g().bool,noDrag:g().bool,noDragEventsBubbling:g().bool,minSize:g().number,maxSize:g().number,maxFiles:g().number,disabled:g().bool,getFilesFromEvent:g().func,onFileDialogCancel:g().func,onFileDialogOpen:g().func,useFsAccessApi:g().bool,autoFocus:g().bool,onDragEnter:g().func,onDragLeave:g().func,onDragOver:g().func,onDrop:g().func,onDropAccepted:g().func,onDropRejected:g().func,onError:g().func,validator:g().func};const dp=up;var fp,pp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hp(e,t){switch(t.type){case"focus":return ip(ip({},e),{},{isFocused:!0});case"blur":return ip(ip({},e),{},{isFocused:!1});case"openDialog":return ip(ip({},pp),{},{isFileDialogActive:!0});case"closeDialog":return ip(ip({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ip(ip({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ip(ip({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ip({},pp);default:return e}}function mp(){}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,w.jsxs)(Jd,{immutable:n,children:[(0,w.jsx)(dp,{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,w.jsx)(Qd,{children:(0,w.jsxs)(Zd,yp(yp({},t()),{},{children:[(0,w.jsx)("input",yp({},n())),fp||(fp=(0,w.jsx)(U,{icon:"arrow-to-top"}))]}))})}}),o&&(0,w.jsx)(U,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var bp,wp=s.Ay.figure.withConfig({displayName:"StyledPreview"})(bp||(bp=(0,a.A)(["\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"])),c.hs.space(-2.2),c.t7.color("border"),c.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Op=wp;var xp;const kp=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,w.jsx)("img",{alt:n,title:n,src:t}):(0,w.jsx)("div",{title:n,children:xp||(xp=(0,w.jsx)(b.A,{icon:"file-alt"}))});return(0,w.jsxs)(Op,{maxDimensionX:a,maxDimensionY:i,children:[(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,w.jsx)(mt.Ay.Figcaption,{children:o})]})};var Sp=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 Pp=function(e){var t=e.file,n=e.text;return(0,w.jsxs)(ef,{children:[(0,w.jsx)(kp,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,w.jsxs)(nf,{children:[(0,w.jsx)(S,{position:c.xX.position.PREPEND}),(0,w.jsxs)(tf,{children:[n||"uploading"," (",Sp(t.size),")"]})]})]})};var Ep=n(31558);function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jp=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,w.jsxs)(rf,{className:"StyledView",children:[(0,w.jsx)(kp,_p(_p({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,w.jsxs)(Xd,{children:[!o&&(0,w.jsx)(U,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,w.jsx)(U,{children:(0,w.jsx)(gn.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Ep.A.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Ap(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tp=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,y.useRef)(t),i=(0,y.useState)({isUploading:!1,previewFile:null}),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,y.useEffect)((function(){af()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,w.jsx)(jp,Cp(Cp({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):c.isUploading?(0,w.jsx)(Pp,Cp({file:c.previewFile,text:n.uploading},e)):(0,w.jsx)(vp,Cp(Cp({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Tp.defaultProps={textResources:{}};const Mp=Tp;var Ip=function(e){return(0,w.jsx)(Mp,{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})};Ip.defaultProps={options:{}};const Np=Ip;var Rp,Lp,Fp=s.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Rp||(Rp=(0,a.A)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),bn,(function(e){return e.width})),Hp=s.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(Lp||(Lp=(0,a.A)(["\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"])),c.hs.space(1),(function(e){return e.immutable?c.t7.color("textDisabled"):c.t7.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),Wp=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=fc.A.millisecondsToDuration(n),s=(0,y.useState)(!1),c=(0,P.A)(s,2),u=c[0],l=c[1],d=function(e,t){var n,r,a=null!==t?t:i.minutes,s=null!==e?e:i.hours;""!==a||""!==s?(a>=60&&(s=0),o((r=a,(n=s)||r?((n<0||r<0)&&(n=Sn(n),r=Sn(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===a.allowNegative||e.preventDefault()},h=function(){return!0===a.allowNegative?"-?d+":"d+"},m=function(){return u||"number"==typeof n},g=function(e){return 9*(e+"").length},v=r&&Boolean(i.seconds);return(0,w.jsxs)(vn,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,min:!0===a.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(i.hours),type:"number",value:"number"!=typeof i.hours||0===i.hours&&!r?"":i.hours+"","data-cy":"input-hours"}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.hoursLabel})]}),(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==i.hours&&0!==i.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(i.minutes),type:"number",value:i.minutes+"","data-cy":"input-minutes"}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.minutesLabel})]}),v&&(0,w.jsxs)(Hp,{immutable:r,children:[(0,w.jsx)(Fp,{disabled:r,immutable:r,onChange:function(){},width:g(i.seconds),type:"number",value:i.seconds+""}),m()&&(0,w.jsx)(mt.Ay.Span,{children:a.secondsLabel})]})]})};Wp.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const Bp=Wp;var Yp;const Up=s.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Yp||(Yp=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const zp=E.A.Debouncer((function(e){return(0,w.jsxs)(vn,{immutable:e.immutable,children:[(0,w.jsx)(Up,{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,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var Vp=n(85501),qp=n(63662),Gp=n(44383),Kp=n.n(Gp);function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(){Xp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),(0,qp.A)(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return(0,Vp.A)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,kn.A)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Xp.apply(this,arguments)}var Zp,Jp=["key","display","postcode","city","country","latitude","longitude"],eh=function(e){return e*Math.PI/180},th=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=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:eh(a),longitude:eh(i)}};function nh(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 rh(){}function oh(e){return!!(e||"").match(/\d/)}function ah(e){return null==e}function ih(e){return ah(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function sh(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ch(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 uh(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function lh(e,t){return Array(t+1).join(e)}function dh(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+lh("0",Math.abs(i))+o:i>=s?o+=lh("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function fh(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=ch(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+uh(u[1]||"",t,n)}function ph(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"}(Zp||(Zp={}));var hh,mh,gh,yh=(hh=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},gh=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mh&&e.length===mh.length&&e.every((function(e,t){return e===mh[t]}))?gh:(mh=e,gh=hh.apply(void 0,e))});function vh(e){return Math.max(e.selectionStart,e.selectionEnd)}function bh(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function wh(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Oh(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 xh(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(oh(e[n])||oh(e[n-1]));return t}function kh(e,t,n,r,o,a){void 0===a&&(a=rh);var i=function(e){var t=(0,y.useRef)(e);t.current=e;var n=(0,y.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,a;return ih(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?dh(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,y.useState)((function(){return i(ah(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;ah(e)&&(l=c.numAsString,d=!0);var f=i(l,d);return(0,y.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Sh(e){return e.replace(/[^0-9]/g,"")}function Ph(e){return e}function Eh(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Ph);var s=e.removeFormatting;void 0===s&&(s=Sh);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=rh);var p=e.onKeyDown;void 0===p&&(p=rh);var h=e.onMouseUp;void 0===h&&(h=rh);var m=e.onFocus;void 0===m&&(m=rh);var g=e.onBlur;void 0===g&&(g=rh);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=xh);var O=e.isValidInputCharacter;void 0===O&&(O=oh);var x=e.isCharacterSame,k=nh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=kh(b,c,Boolean(u),i,s,l),P=S[0],E=P.formattedValue,D=P.numAsString,_=S[1],j=(0,y.useRef)({formattedValue:E,numAsString:D}),A=function(e,t){j.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},C=(0,y.useState)(!1),T=C[0],M=C[1],I=(0,y.useRef)(null),N=(0,y.useRef)({setCaretTimeout:null,focusTimeout:null});(0,y.useEffect)((function(){return M(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var R=i,L=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},F=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(ph(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&ph(e,t)}),0))},H=function(e,t,n){return Oh(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=wh);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(i({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]||!a(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,E,e,n,r,O,x);return o=Oh(t,o,r)};(0,y.useEffect)((function(){var e=j.current,t=e.formattedValue,n=e.numAsString;E===t||E===D&&t===n||A(L(E,D),{event:void 0,source:Zp.props})}),[E,D]);var B=I.current?vh(I.current):void 0;("undefined"!=typeof window?y.useLayoutEffect:y.useEffect)((function(){var e=I.current;if(E!==j.current.formattedValue&&e){var t=W(j.current.formattedValue,E,B);e.value=E,F(e,t,E)}}),[E]);var Y=function(e,t,n){var r=yh(E,e),o=Object.assign(Object.assign({},r),{lastValue:E}),a=s(e,o),i=R(a);if(a=s(i,void 0),d&&!d(L(i,a))){var c=t.target,u=vh(c),l=W(e,E,u);return c.value=E,F(c,l,E),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=vh(r);r.value=t,void 0!==(n=W(s,t,c))&&F(r,n,t)}t!==E&&A(L(t,i),{event:a,source:o})}({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",z=Object.assign({inputMode:U},k,{type:t,value:E,onChange:function(e){var t=e.target.value;Y(t,e,Zp.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=H(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||O(i[t])?"Backspace"!==r||O(i[t])||(s=H(i,t,"left")):s=H(i,t,"right");s!==t&&F(n,s,i),e.isUnitTestRun&&F(n,s,i),p(e)}else p(e)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=H(r,e);o!==e&&F(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;I.current=t,N.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=H(a,r);i===r||0===r&&o===a.length||F(t,i,a),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){I.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?v().createElement(v().Fragment,null,o(E,k)||null):v().createElement("span",Object.assign({},k,{ref:a}),E);if(r){var V=r;return v().createElement(V,Object.assign({},z,{ref:a}))}return v().createElement("input",Object.assign({},z,{ref:a}))}function Dh(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=_h(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=ch(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=uh(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),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function _h(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 jh(e,t,n){var r;void 0===t&&(t=bh(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=_h(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(oh(e)&&(e===a||e===i)&&""===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 y=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var 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}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),d-=P;var E=(e=e.substring(P)).length,D=e.length-i.length;e.endsWith(i)?E=D:(d>D||d>e.length-i.length)&&(E=d),e=e.substring(0,E),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+sh(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(sh(h),"g"),(function(e,t){return t===_?".":""}));var j=ch(e,o),A=j.beforeDecimal,C=j.afterDecimal,T=j.addNegation;return u.end-u.start<c.end-c.start&&""===A&&m&&!parseFloat(C)&&(e=T?"-":""),e}function Ah(e){e=function(e){var t=_h(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=rh);var a=e.onBlur;void 0===a&&(a=rh);var i=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=nh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=_h(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return Dh(t,e)},b=function(t,n){return jh(t,n,e)},w=ah(d)?l:d,O=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);ah(d)?ah(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return ih(e)?e:("number"==typeof e&&(e=dh(e)),O&&"number"==typeof s?fh(e,s,Boolean(c)):e)},k=kh(x(d),x(l),Boolean(O),v,b,p),S=k[0],P=S.numAsString,E=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||oh(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],s=r[a],c=yh(n,t).to;return!!(o>=c.start&&o<c.end&&y&&y.includes(i)&&s===g)||i===s},onValueChange:D,format:v,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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&ph(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(ph(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[a]===g&&ph(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&ph(t,a-1),"Delete"===r&&d[a]===f&&ph(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=P;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=fh(n,s,c)),n!==P){var o=Dh(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Zp.event})}a(t)}})}function Ch(e){var t=Ah(e);return v().createElement(Eh,Object.assign({},t))}var Th,Mh=["immutable"];function Ih(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 Nh=(0,s.Ay)((function(e){e.immutable;var t=(0,h.A)(e,Mh);return(0,w.jsx)(Ch,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Th||(Th=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const Rh=Nh;function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},Wh=function(e){return null!=e&&!isNaN(parseFloat(e))},Bh=function(e,t,n){return!Wh(n)||!(Wh(t)&&n>t)&&!(Wh(e)&&n<e)},Yh=function(e,t){return function(n){var r=n.floatValue;return Hh(r)<Hh(e)||Bh(e,t,r)}};const Uh=(0,ne.injectIntl)(E.A.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=Fh(Fh({isAllowed:Yh(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Rh,Fh(Fh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&Bh(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,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&&!Bh(c,m,r)&&(t.target.value=null)}}))})}),800));const zh=E.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=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,w.jsx)(vn,{immutable:o,children:(0,w.jsx)(Rh,{isAllowed:Yh(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),Bh(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Vh,qh,Gh,Kh=s.Ay.div.withConfig({displayName:"StyledWrapper"})(Vh||(Vh=(0,a.A)(["\n display: flex;\n justify-content: stretch;\n"]))),$h=s.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(qh||(qh=(0,a.A)(["\n flex-grow: 1;\n"]))),Qh=s.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(Gh||(Gh=(0,a.A)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),c.t7.color("border"),c.hs.space(-.8),c.hs.space(.5));function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?Kp()(e,Jp):void 0}(r),y=function(e){return e?e.map(th):[]}(s);return(0,w.jsxs)(Kh,{children:[(0,w.jsx)($h,{children:(0,w.jsx)(Hl,{id:t,immutable:n,onChange:function(e){o(Zh(Zh({},function(e,t){return t?Qp(Qp({},e),Kp()(t,Jp)):Kt()(e,Jp)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,re.A)(e.matchAll(Xp(/([\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 Qp(Qp({},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,w.jsx)(Qh,{children:(0,w.jsx)(zh,{value:m,onChange:function(e){o(Zh(Zh({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var em,tm=(0,y.lazy)((function(){return n.e(262).then(n.bind(n,56652))})),nm=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=e.options;if(r)return(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var i=a||{},s=i.contentLang,c=i.defaultLinkTarget,u=i.ckEditorConfig;return(0,w.jsx)(y.Suspense,{fallback:em||(em=(0,w.jsx)("i",{})),children:(0,w.jsx)(tm,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:s,defaultLinkTarget:c,ckEditorConfig:u})})};nm.defaultProps={value:""};const rm=nm;var om,am;function im(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 sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?im(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cm=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=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,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,w.jsxs)(mt.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(sm(sm({},r),{},(0,p.A)({},e,a)))}},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,p.A)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},h={value:r.city||"",onChange:u("city"),disabled:a};return(0,w.jsx)(an,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,w.jsxs)(_n,{immutable:a,name:i,ref:u,children:[(0,w.jsx)(Zt(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(om||(om=(0,w.jsx)(mt.Ay.Span,{children:"/"}))),(0,w.jsx)(Zt(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,w.jsxs)(On,{children:[n.isLoading&&(am||(am=(0,w.jsx)(S,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,w.jsx)(gn.Ay,{href:Pn(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const lm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(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 dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const fm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(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 pm,hm=n(10467),mm=n(54756),gm=n.n(mm);const ym=s.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(pm||(pm=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const vm=function(e){var t=e.onChange,r=e.value,o=e.immutable,a=e.id,i=e.onLibLoaded,s=Dn()(e,"options.defaultCountry")||"CH",c=(0,y.useState)(null),u=(0,P.A)(c,2),l=u[0],d=u[1],f=v().createRef();(0,y.useEffect)((function(){var e=function(){var e=(0,hm.A)(gm().mark((function e(){var t;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(222).then(n.bind(n,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var p=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=r&&null!=l&&l.AsYouType?new l.AsYouType(s).input(r):r||"";return(0,w.jsxs)(vn,{immutable:o,children:[(0,w.jsx)(ym,{disabled:o||!l,id:a,name,onChange:function(e){var n=e.target.value,o=l?l.parseNumber(n,s):n,a=Qt()(o)?new l.AsYouType(s).input(n).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(s).input(t),o=new l.AsYouType(s).input(e),a=p(r,n),i=p(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(f.current))}}(n,r,i)},immutable:o||!l,ref:f,value:h}),h&&(0,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:"tel:".concat(r),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function bm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Om=function(e){return e.map((function(e){return Kp()(e,["key","display"])}))};const xm=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,w.jsx)(Hl,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return wm(wm({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Om(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Om(a.options)})};function km(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 Sm=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(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 Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Em=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(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 Dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _m=function(e){return(0,w.jsx)(Hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dm(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dm(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 jm=E.A.Debouncer((function(e){return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Up,{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 Am,Cm,Tm,Mm,Im,Nm=n(23228),Rm=s.Ay.div.withConfig({displayName:"StyledTermsEdit"})(Am||(Am=(0,a.A)(["\n margin: "," 0;\n display: flex;\n"])),c.hs.space(-1.4)),Lm=s.Ay.input.withConfig({displayName:"StyledCheckbox"})(Cm||(Cm=(0,a.A)(["\n margin-right: ",";\n"])),c.hs.space(-1.5)),Fm=(0,s.AH)(Tm||(Tm=(0,a.A)(["\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"])),c.t7.color("secondary"),c.t7.color("secondaryLight"),c.t7.color("secondary")),Hm=s.Ay.a.withConfig({displayName:"StyledTermsLink"})(Mm||(Mm=(0,a.A)(["\n ","\n"])),Fm),Wm=(0,s.Ay)(ql).withConfig({displayName:"StyledHtmlFormatter"})(Im||(Im=(0,a.A)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Fm);const Bm=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,y.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:Nm.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,y.useCallback)((function(){return o(null)}),[o]),d=(0,y.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,y.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,y.useEffect)((function(){n()}),[]),(0,y.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,w.jsx)(Lm,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,w.jsx)(Hm,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,w.jsx)(Wm,{value:r.label,breakWords:!0})});return!c&&(0,w.jsxs)(Rm,{children:[p,h||(0,w.jsx)(Wm,{value:null==r?void 0:r.label,breakWords:!0})]})};const Ym=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Um,zm,Vm,qm=(0,s.AH)(Um||(Um=(0,a.A)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),bn),Gm=s.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(zm||(zm=(0,a.A)(["\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"])),qm),Km=s.Ay.textarea.withConfig({displayName:"StyledTextarea"})(Vm||(Vm=(0,a.A)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),qm,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?c.hs.space(-1.2):"0"}));function $m(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 Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$m(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xm=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,y.useState)(t),c=(0,P.A)(s,2),u=c[0],l=c[1],d=!Ym(),f=Ym(),p=(0,y.useCallback)(Rn()(l,500,{trailing:!0}),[]);return(0,y.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,w.jsx)(Gm,Qm(Qm({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,w.jsx)(Km,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:f})}))};const Zm=E.A.Debouncer((function(e){return(0,w.jsx)(vn,{immutable:e.immutable,children:(0,w.jsx)(Xm,{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 Jm;const eg=s.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Jm||(Jm=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rg=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Ad(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,w.jsxs)(vn,{immutable:r,children:[(0,w.jsx)(eg,ng({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,w.jsx)(On,{children:(0,w.jsx)(X,ng(ng({icon:"times"},c),{},{tabIndex:-1}))})]})};var og;const ag=s.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(og||(og=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn);const ig=E.A.Debouncer((function(e){return(0,w.jsxs)(vn,{immutable:e.immutable,children:[(0,w.jsx)(ag,{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,w.jsx)(On,{children:(0,w.jsx)(gn.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ug={boolean:Ul,"boolean-select":Wl,choice:td,code:cd,date:Hd,datetime:Bd,document:Np,duration:Bp,email:zp,geosearch:Jh,html:rm,integer:zh,address:Tn,location:cm,"multi-remote":lm,"multi-select":fm,number:Uh,phone:vm,"pseudo-select":xm,remote:Sm,"search-filter":Em,"single-select":_m,string:jm,terms:Bm,text:Zm,url:ig,time:rg};const lg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(ug[t]){var u=ug[t],l=cg(cg({},Kt()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,w.jsx)("div",cg(cg({},l),{},{"data-cy":"form-field",children:(0,w.jsx)(u,cg(cg({value:n,onChange:null==a?void 0:a.onChange},Qt()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function dg(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?dg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pg=function(e){return(0,w.jsx)(xn,{children:(0,w.jsx)(lg,fg({componentType:e.type},Kt()(e,"type")))})};const hg=(0,s.SL)((function(e){return(0,w.jsx)(b.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const mg=function(e){var t=(0,ne.useIntl)();return(0,w.jsx)(mt.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,w.jsx)(ne.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var gg;const yg=(0,ne.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),gg||(gg=(0,w.jsx)(mt.Ay.Span,{}));var o=(0,dc.GPZ)(r,"HH:mm");return(0,w.jsxs)(mt.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,w.jsx)(ne.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var vg;function bg(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 wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Og=function(e){var t=e.options||{},n=(0,w.jsxs)(w.Fragment,{children:[t.title&&(0,w.jsx)(mt.Ay.H5,{children:t.title}),(0,w.jsx)(ql,wg({},e))]});return"text"===t.mode?n:(0,w.jsx)(Ol,{content:n,isPlainHtml:!0,children:vg||(vg=(0,w.jsx)(dl,{children:(0,w.jsx)(b.A,{icon:"question-circle"})}))})};const xg=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Dn()(r,t.resourceKey,null);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ol,{content:a?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(a)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,w.jsx)(gn.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,w.jsx)(gn.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:Ep.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const kg=function(e){return(0,w.jsx)(Mp,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Sg=function(e){var t=e.value,n=parseInt(t),r=fc.A.formatDuration(n);return(0,w.jsx)(mt.Ay.Time,{dateTime:r,title:r,children:r})};const Pg=function(e){return(0,w.jsx)(gn.Ay,{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 Eg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Dg(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 _g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jg=function(){return"; "};const Ag=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,w.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,w.jsx)(i.DetailLink,_g(_g({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,w.jsx)(jg,{},"sep".concat(n)),t]})):null;return(0,w.jsx)(mt.Ay.Span,{breakWords:r,useTitle:o,children:c})};const Cg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,w.jsx)(ne.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Tg=function(e){var t;return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,w.jsx)(ne.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function Mg(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 Ig(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ng=(0,y.lazy)((function(){return Promise.all([n.e(222),n.e(672)]).then(n.bind(n,74302))}));const Rg=function(e){return(0,w.jsx)(y.Suspense,{fallback:"",children:(0,w.jsx)(Ng,Ig({},e))})};function Lg(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?Lg(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=(e.useTitle,n||{}),a=o.tooltips,i=o.loadTooltip,s=o.navigationStrategy,c=o.linkProps,u=Dn()(a,t.key,null);t=Dl.A.getOrFirst(t);var l=(0,w.jsx)(mt.Ay.Span,{breakWords:r,useTitle:!u,children:t.display});return(null!=s&&s.DetailLink?(0,w.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,w.jsx)(s.DetailLink,Fg(Fg({},c),{},{entityKey:t.key,children:(0,w.jsx)(Ol,{content:u?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(u)}}):null,children:(0,w.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:l})})}))}):null)||l};const Wg=function(e){return(0,w.jsx)(mt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const Bg=function(e){return e.breakWords?(0,w.jsx)(mt.Ay.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,w.jsx)("br",{},t)]:e})))}):(0,w.jsx)(mt.Ay.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")});var t};var Yg=function(e,t){return parseInt(e.split(":")[t])||0};const Ug=(0,ne.injectIntl)((function(e){var t=e.value,n=(e.intl,Yg(t,0)),r=Yg(t,1),o=Yg(t,2),a=Yg(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,dc.GPZ)(i,"HH:mm:ss.SSS"),c=(0,dc.GPZ)(i,"HH:mm");return(0,w.jsx)(mt.Ay.Time,{dateTime:s,title:c,children:c})}));const zg=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,w.jsx)(gn.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Vg,qg={boolean:hg,date:mg,datetime:yg,document:kg,"document-compact":xg,duration:Sg,email:Pg,html:ql,integer:Eg,"multi-remote":Ag,"multi-select":Ag,number:Cg,percent:Tg,phone:Rg,remote:Hg,"single-select":Hg,string:Wg,text:Bg,time:Ug,url:zg,description:Og};const Gg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i;if(qg[t]){var c=qg[t];return(0,w.jsx)(c,{value:n,options:r,breakWords:a,useTitle:s})}return console.log("No FormattedValue mapper defined for component type",t,n),Vg||(Vg=(0,w.jsx)("div",{}))};var Kg;const $g=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle;return null==n||""===n?Kg||(Kg=(0,w.jsx)("span",{})):(0,w.jsx)(Gg,{componentType:t,value:n,options:r,breakWords:o,useTitle:a})},Qg=$g;var Xg;s.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Xg||(Xg=(0,a.A)(["\n height: fit-content;\n margin-bottom: ",";\n"])),c.hs.space(.25));var Zg,Jg=s.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Zg||(Zg=(0,a.A)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),c.hs.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(c.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const ey=Jg;var ty=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,y.useRef)(null),a=(0,y.useState)(0),i=(0,P.A)(a,2),s=i[0],c=i[1],u=function(){c(o.current.offsetWidth)};return(0,y.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,w.jsx)(ey,{ref:o,containerWidth:s,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};ty.defaultProps={minBoxWidth:250};var ny,ry,oy,ay,iy=n(5016),sy=(0,s.i7)(ny||(ny=(0,a.A)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),cy=(0,s.AH)(ry||(ry=(0,a.A)(["\n animation: "," 400ms ease-in-out both;\n"])),sy),uy=s.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(oy||(oy=(0,a.A)(["\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"])),c.hs.space(-1),cy,iy.oY,c.hs.space(-1));const ly=s.Ay.div.withConfig({displayName:"StyledLoadMask"})(ay||(ay=(0,a.A)(["\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 dy;const fy=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,y.useState)(!1),s=(0,P.A)(i,2),c=s[0],u=s[1],l=(0,y.useState)(!0),d=(0,P.A)(l,2),f=d[0],p=d[1];(0,y.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,w.jsx)(ly,{className:a,children:h?r:(0,w.jsxs)(uy,{children:[dy||(dy=(0,w.jsx)(S,{size:"30px"},"loading-spinner")),o&&(0,w.jsx)(mt.Ay.Span,{children:o},"loadingText")]})})};var py,hy=s.Ay.div.withConfig({displayName:"StyledPanel"})(py||(py=(0,a.A)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),c.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),c.t7.color("borderLight"),c.t7.radii("form"));const my=hy;const gy=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,y.useState)(i),d=(0,P.A)(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,w.jsx)(my,{isFramed:r,children:v().Children.map(t,(function(e){return v().cloneElement(e,{isFramed:r,isOpen:h?o:f,isToggleable:c,toggleOpenState:m})}))})};var yy,vy=s.Ay.div.withConfig({displayName:"StyledPanelBody"})(yy||(yy=(0,a.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?c.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const by=vy;const wy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,w.jsx)(by,{isFramed:n,isOpen:r,children:(0,w.jsx)("div",{children:t})})};const Oy=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,y.useState)(t),o=(0,P.A)(r,2),a=o[0],i=o[1];return(0,w.jsx)(w.Fragment,{children:v().Children.map(n,(function(e,t){return v().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var xy;const ky=s.Ay.div.withConfig({displayName:"StyledPanelGroup"})(xy||(xy=(0,a.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),c.hs.space(0),my,c.hs.space(-1));function Sy(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 Py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sy(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ey=function(e){return(0,w.jsx)(ky,{children:(0,w.jsx)(Oy,Py({},e))})};var Dy,_y,jy,Ay,Cy,Ty,My,Iy="1px",Ny=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Dy||(Dy=(0,a.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),c.hs.font(1),c.t7.color("text"),!c.CN&&(0,s.AH)(_y||(_y=(0,a.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),c.t7.color("secondaryLight"))),Ry=s.Ay.div.withConfig({displayName:"StyledPanelHeader"})(jy||(jy=(0,a.A)(["\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"])),c.t7.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,s.AH)(Ay||(Ay=(0,a.A)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),c.t7.radii("form"),Iy,c.t7.radii("form"),Iy):(0,s.AH)(Cy||(Cy=(0,a.A)(["\n calc("," - ",")\n "])),c.t7.radii("form"),Iy)}),(function(e){return e.isFramed?(0,s.AH)(Ty||(Ty=(0,a.A)(["\n "," ","\n "])),c.hs.space(-1.7),c.hs.space(-.375)):0}),!c.CN&&(0,s.AH)(My||(My=(0,a.A)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),Ny),(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(Iy,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(Iy,";\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(Iy,";\n }\n ")}(e)}));const Ly=Ry;var Fy=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,s=e.options;return(0,w.jsxs)(Ly,{isFramed:n,isOpen:r,onClick:i,children:[(0,w.jsx)("div",{children:v().Children.map(t,(function(e){return v().cloneElement(e)}))}),o&&a&&(0,w.jsx)(Ny,{children:(0,w.jsx)(b.A,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};Fy.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const Hy={Body:wy,Group:Ey,Header:Fy,Wrapper:gy};var Wy,By=s.Ay.div.withConfig({displayName:"StyledPanel"})(Wy||(Wy=(0,a.A)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),c.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),c.t7.color("borderLight"),c.t7.radii("form"));const Yy=By;const Uy=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,y.useState)(a),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,w.jsx)(Yy,{isFramed:r,children:v().Children.map(t,(function(e){return v().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var zy,Vy,qy=s.Ay.div.withConfig({displayName:"StyledPanelBody"})(zy||(zy=(0,a.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,s.AH)(Vy||(Vy=(0,a.A)(["\n "," "," "," ","\n "])),c.hs.space(-1),c.hs.space(.2),c.hs.space(.2),c.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const Gy=qy;const Ky=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,w.jsx)(Gy,{isFramed:n,isOpen:r,children:(0,w.jsx)("div",{children:t})})};var $y;const Qy=s.Ay.div.withConfig({displayName:"StyledPanelGroup"})($y||($y=(0,a.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),c.hs.space(0),Yy,c.hs.space(-1));function Xy(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 Zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xy(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jy=function(e){return(0,w.jsx)(Qy,{children:(0,w.jsx)(Oy,Zy({},e))})};var ev,tv,nv,rv="1px",ov=s.Ay.div.withConfig({displayName:"StyledPanelHeader"})(ev||(ev=(0,a.A)(["\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"])),c.t7.color("paper"),c.t7.radii("form"),rv,c.t7.radii("form"),rv,(function(e){return e.isFramed?c.hs.space(.2):0}),c.t7.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(rv,";\n }\n ")}(e)})),av=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(tv||(tv=(0,a.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),c.hs.font(1),c.t7.color("text"),!c.CN&&(0,s.AH)(nv||(nv=(0,a.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),c.t7.color("secondaryLight")));const iv=ov;var sv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=e.toggleOpenState,s=e.options;return(0,w.jsxs)(iv,{isFramed:n,isOpen:r,onClick:o?i:function(){},children:[(0,w.jsx)("div",{children:v().Children.map(t,(function(e){return v().cloneElement(e)}))}),o&&a&&(0,w.jsx)(av,{children:(0,w.jsx)(b.A,{icon:r?"chevron-up":"chevron-down",onClick:i,title:r?s.collapseButtonText:s.unfoldButtonText})})]})};sv.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const cv={Body:Ky,Group:Jy,Header:sv,Wrapper:Uy};var uv={Body:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Body),Nm.A.EmbedType.widget,cv.Body),Group:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Group),Nm.A.EmbedType.widget,cv.Group),Header:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Header),Nm.A.EmbedType.widget,cv.Header),Wrapper:(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,Hy.Wrapper),Nm.A.EmbedType.widget,cv.Wrapper)};Nm.A.embedStrategyFactory({mapping:uv.Body}),Nm.A.embedStrategyFactory({mapping:uv.Group}),Nm.A.embedStrategyFactory({mapping:uv.Header}),Nm.A.embedStrategyFactory({mapping:uv.Wrapper});var lv;s.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(lv||(lv=(0,a.A)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),c.hs.space(0),c.t7.color("paper"));n(51217),n(8271);g().node,g().bool,g().string,g().bool,g().objectOf(g().arrayOf(g().oneOfType([g().node,g().string]))),g().bool,g().bool,g().string,g().string,g().oneOf(["inside","outside-responsive","outside"]),g().bool,g().string,g().bool,g().string,g().bool;var dv,fv,pv,hv=(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.BASE,c.t7.color("text")),c.xX.condition.DANGER,c.t7.color("signal.danger")),c.xX.condition.SUCCESS,c.t7.color("signal.success")),c.xX.condition.WARNING,c.t7.color("signal.warning")),c.xX.condition.INFO,c.t7.color("signal.info")),mv=(0,s.Ay)(mt.dV).withConfig({displayName:"StyledSignalList"})(dv||(dv=(0,a.A)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),gv=s.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(fv||(fv=(0,a.A)(["\n margin-left: -1px;\n margin-right: ",";\n"])),c.hs.space(-2)),yv=(0,s.Ay)(mt.vx).withConfig({displayName:"StyledSignalListItem"})(pv||(pv=(0,a.A)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return hv[t]}(e)}));const vv=function(e){return(0,w.jsx)(mv,{as:"ul",children:v().Children.map(e.children,(function(e){return v().cloneElement(e)}))})};var bv,wv=(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.BASE,!1),c.xX.condition.DANGER,"times"),c.xX.condition.SUCCESS,"check"),c.xX.condition.WARNING,"exclamation-triangle"),c.xX.condition.INFO,"info"),Ov=function(e){var t=wv[e.condition];return t?(0,w.jsx)(b.A,{icon:t,position:c.xX.position.SOLE,hasFixedWidth:!1}):bv||(bv=(0,w.jsx)("i",{children:"•"}))},xv=function(e){return(0,w.jsxs)(yv,{condition:e.condition,children:[(0,w.jsx)(gv,{children:Ov(e)}),e.label,v().Children.map(e.children,(function(e){return v().cloneElement(e)}))]})};xv.defaultProps={condition:c.xX.condition.BASE};const kv={List:vv,Item:xv};const Sv=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,re.A)(e.error[n]))})),(0,w.jsx)(kv.List,{children:t.map((function(e,t){return(0,w.jsx)(kv.Item,{condition:"danger",label:e},t)}))})};var Pv,Ev,Dv,_v,jv,Av,Cv,Tv,Mv,Iv,Nv,Rv,Lv,Fv,Hv="1.1px",Wv=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Bv=s.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(Pv||(Pv=(0,a.A)(["\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,c.Ed)({lineHeight:c.t7.lineHeight("dense")}),c.t7.color("paper"),(function(e){return Wv(e)}),(function(e){return"outside"===e.labelPosition&&(0,s.AH)(Ev||(Ev=(0,a.A)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),c.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Dv||(Dv=(0,a.A)(["\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 "])),c.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":c.hs.space(-1.8)}))}),(function(e){return e.styles})),Yv=s.Ay.div.withConfig({displayName:"StyledInputArea"})(_v||(_v=(0,a.A)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,s.AH)(jv||(jv=(0,a.A)(["\n width: auto;\n "])))})),Uv=s.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Av||(Av=(0,a.A)(["\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"])),Hv,(function(e){return c.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),c.t7.radii("form"),c.hs.space(-2.5),c.hs.space(-1.5),(function(e){return!e.immutable&&(0,c.h7)(e)}),(function(e){return Wv(e)}),(0,c.Ed)(),pl,(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Cv||(Cv=(0,a.A)(["\n padding: "," "," "," ",";\n "])),c.hs.space(-1),c.hs.space(-1.7),c.hs.space(-2),c.hs.space(-1))}),(function(e){return e.styles})),zv=s.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Tv||(Tv=(0,a.A)(["\n &&& {\n ","\n }\n"])),(0,c.Ed)({fontSize:c.hs.font(-1)})),Vv=s.Ay.div.withConfig({displayName:"StyledStatedValueError"})(Mv||(Mv=(0,a.A)([""]))),qv=s.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Iv||(Iv=(0,a.A)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),c.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Nv||(Nv=(0,a.A)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),c.hs.space(-1.5))})),Gv=s.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Rv||(Rv=(0,a.A)(["\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"])),c.hs.space(-1.5),Uv,zv,Vv,c.hs.space(-2),zv,c.hs.space(-1),Hv,(function(e){return"outside"===e.labelPosition&&(0,s.AH)(Lv||(Lv=(0,a.A)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,s.AH)(Fv||(Fv=(0,a.A)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kv(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qv=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,u=e.error,l=e.hasValue,d=e.id,f=e.label,p=e.mandatory,h=e.mandatoryTitle,m=e.immutable,g=e.touched,y=e.signal,v=e.labelPosition,b=e.styles,O=!m&&g&&u&&Object.keys(u).length>0,x=p&&h?", ".concat(h):"",k="".concat(Dl.A.adjustedHTMLString(f)).concat(x),S=y||function(e,t,n,r){return t?c.xX.condition.DANGER:e?c.xX.condition.INFO:n&&!r?c.xX.condition.WARNING:void 0}(i,O,p,l),P={__html:"".concat(ht.sanitizeHtml(f)).concat(p?" *":"")},E=!s&&!m&&{htmlFor:d};return(0,w.jsx)(an,{children:function(e){var c=e.getRef;return(0,w.jsx)(qv,{labelPosition:v,children:(0,w.jsxs)(Gv,{labelPosition:v,ref:c,label:f,styles:null==b?void 0:b.innerWrapperStyles,children:[f&&(0,w.jsx)(Bv,$v($v({},E),{},{hasValue:l,dirty:i,title:k,immutable:m,isDisplay:s,signal:S,labelPosition:v,styles:null==b?void 0:b.labelStyles,children:t||(t=(0,w.jsx)("span",{dangerouslySetInnerHTML:P}))})),(0,w.jsxs)(Yv,{labelPosition:v,children:[(0,w.jsx)(Uv,{hasValue:l,immutable:m,isDisplay:s,signal:S,labelPosition:v,styles:null==b?void 0:b.valueStyles,children:o}),O&&(n||(n=(0,w.jsx)(Vv,{children:(0,w.jsx)(Sv,{error:u})}))),a&&(r||(r=(0,w.jsx)(zv,{children:a})))]})]})})}})};var Xv,Zv,Jv=function(e){return(0,s.AH)(Xv||(Xv=(0,a.A)(["\n color: ",";\n font-weight: ",";\n"])),c.Db[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?c.t7.fontWeight("bold"):c.t7.fontWeight("regular")}))},eb=function(){return(0,s.AH)(Zv||(Zv=(0,a.A)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},tb=["labelPosition"];function nb(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 rb=function(e){var t=e.labelPosition,n=(0,h.A)(e,tb);return(0,w.jsx)(Qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Jv,valueStyles:eb},labelPosition:t||"outside-responsive"},n))};var ob,ab,ib,sb,cb,ub,lb=function(e){return e.signal?"signal":"shade2"},db=function(){return(0,s.AH)(ob||(ob=(0,a.A)(["\n align-items: flex-start;\n"])))},fb=function(e){return(0,s.AH)(ab||(ab=(0,a.A)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,s.AH)(ib||(ib=(0,a.A)(["\n ","\n "])),c.hs.space(-1.8)):(0,s.AH)(sb||(sb=(0,a.A)(["\n ","\n "])),c.hs.space(.1))}),c.Db[lb(e)](e))},pb=function(){return(0,s.AH)(cb||(cb=(0,a.A)(["\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,s.AH)(ub||(ub=(0,a.A)(["\n ","\n "])),c.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},hb=["labelPosition"];function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const gb=function(e){var t=e.labelPosition,n=(0,h.A)(e,hb);return(0,w.jsx)(Qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:db,labelStyles:fb,valueStyles:pb},labelPosition:t||"outside-responsive"},n))};var yb=(0,p.A)((0,p.A)({},Nm.A.EmbedType.admin,rb),Nm.A.EmbedType.widget,gb);const vb=Nm.A.embedStrategyFactory({mapping:yb});var bb,wb,Ob,xb,kb=s.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(bb||(bb=(0,a.A)(["\n margin-right: ",";\n color: ",";\n"])),c.hs.space(-.8),c.t7.color("text")),Sb=s.Ay.div.withConfig({displayName:"StyledSearchBox"})(wb||(wb=(0,a.A)(["\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"]))),Pb=s.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(Ob||(Ob=(0,a.A)(["\n &&&& {\n ","\n }\n"])),bn),Eb=v().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,a=e.placeholder,i=(0,y.useState)(n||""),s=(0,P.A)(i,2),c=s[0],u=s[1];return(0,w.jsx)(Sb,{children:(0,w.jsx)(vb,{hasValue:Boolean(c),labelPosition:"inside",children:(0,w.jsxs)(vn,{children:[xb||(xb=(0,w.jsx)(kb,{children:(0,w.jsx)(b.A,{icon:"search"})})),(0,w.jsx)(Pb,{"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":a,placeholder:a}),(null==c?void 0:c.length)>0&&(0,w.jsx)(X,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));Eb.defaultProps={debounce:200,minInputLength:3};const Db=E.A.Debouncer(Eb,100,"onSearch");var _b,jb=[c.xX.condition.INFO,c.xX.condition.DANGER,c.xX.condition.SUCCESS,c.xX.condition.WARNING],Ab=(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},c.xX.condition.DANGER,c.t7.color("signal.danger")),c.xX.condition.SUCCESS,c.t7.color("signal.success")),c.xX.condition.WARNING,c.t7.color("signal.warning")),c.xX.condition.INFO,c.t7.color("signal.info")),Cb=s.Ay.div.withConfig({displayName:"StyledSignalBox"})(_b||(_b=(0,a.A)(["\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 Ab[e.condition]||Ab[c.xX.condition.INFO]}(e)}),c.hs.space(-1),c.hs.space(-1));Cb.propTypes={condition:c.xX.oneOfPropTypeAndCompletelyMapped(jb,Ab)};var Tb=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,w.jsxs)(Cb,{condition:t,children:[n&&(0,w.jsx)(mt.Ay.H5,{children:n}),v().Children.map(r,(function(e){return v().cloneElement(e)})),o&&(0,w.jsx)(mt.Ay.Small,{children:o})]})};Tb.defaultProps={condition:c.xX.condition.BASE};var Mb=function(e){return(0,w.jsxs)(mt.Ay.Span,{children:[e.some," / ",e.of]})};Mb.defaultProps={some:0};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 Nb(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,p.A)(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}var Rb={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},Lb={Left:"Left",Right:"Right"},Fb={Top:"Top",Bottom:"Bottom"},Hb=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?Lb.Right:Lb.Left,vertical:o?Fb.Bottom:Fb.Top}};const Wb=function(e){var t=(0,y.useState)(Rb),n=(0,P.A)(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,y.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Nb(Nb({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(Rb),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!af()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=Hb(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return Nb(Nb({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(a&&af()(i,t)){var n=Hb(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return Nb(Nb({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,s,c),o(Rb),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),dndState:(0,y.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l])}},Bb=Lb;var Yb,Ub,zb,Vb,qb,Gb,Kb,$b=s.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Yb||(Yb=(0,a.A)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),Qb=s.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(Ub||(Ub=(0,a.A)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),c.hs.space(.7)),Xb=s.Ay.ul.withConfig({displayName:"StyledUl"})(zb||(zb=(0,a.A)(["\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"])),c.hs.space(-.5),mt.Gw),Zb=s.Ay.input.withConfig({displayName:"StyledCheckbox"})(Vb||(Vb=(0,a.A)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),c.hs.space(-1)),Jb=s.Ay.span.withConfig({displayName:"StyledId"})(qb||(qb=(0,a.A)(["\n color: ",";\n font-style: italic;\n"])),c.t7.color("text")),ew=(0,s.Ay)(mt.vx).withConfig({displayName:"StyledItem"})(Gb||(Gb=(0,a.A)(["\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"])),c.hs.space(-2),c.hs.space(-2),c.hs.space(-2),(function(e){return e.dropPosition===Bb.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Bb.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===Bb.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 ")})),tw=s.Ay.span.withConfig({displayName:"StyledNumber"})(Kb||(Kb=(0,a.A)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),c.hs.space(-1),c.t7.color("text"),c.hs.font(0));function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ow=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]}))},aw=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const iw=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,a=e.intl,i=ow(r),s=(0,y.useState)(null),c=(0,P.A)(s,2),u=c[0],l=c[1],d=(0,y.useCallback)((function(e,t,n){if(e!==t){var r=i.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===Bb.Left)return[].concat((0,re.A)(e),[o,t]);if(i===Bb.Right)return[].concat((0,re.A)(e),[t,o])}return[].concat((0,re.A)(e),[t])}),[]);var o,a,i}))}}),[i,o]),f=Wb(d),p=f.dndEvents,h=f.dndState,m=(0,y.useMemo)((function(){return aw(i,u)}),[i,u]),g=m.some((function(e){return e.hidden})),v=(0,y.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,w.jsxs)(ew,rw(rw({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&rw({},p(e.id))),{},{children:[(0,w.jsx)(Zb,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return ow(n.map((function(n){return n.id===e.id?rw(rw({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,w.jsxs)(mt.Ay.Label,{for:e.id,children:[(0,w.jsxs)(tw,{children:[n+1,"."]}),e.label?(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:ht.sanitizeHtml(e.label)}}):(0,w.jsx)(Jb,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,w.jsxs)($b,{children:[(0,w.jsx)(Db,{placeholder:a.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,w.jsxs)(Qb,{children:[(0,w.jsx)(Zb,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=aw(e,u);return ow((0,re.A)(e.map((function(e){return rw(rw({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,w.jsx)(mt.Ay.Span,{children:a.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,w.jsx)(Xb,{children:v})]})};(0,ne.injectIntl)(iw);function sw(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 cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uw="yyyy-MM-dd",lw=function(e){return(0,dc.uv4)(e,uw)?(0,dc.qgA)(e,uw,new Date):(0,dc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,dc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,dc.ol1)(new Date(e)):null},dw={datetime:{type:"date",toRange:function(e){return{from:e?lw(e).toISOString():null,to:e?(0,dc.fij)(lw(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,dc.GPZ)(new Date(e.from),uw):null!=e&&e.to?(0,dc.GPZ)(new Date(e.to),uw):null},getToOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return cw(cw({},e),{},{datePickerOptions:cw({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const fw=dw;var pw,hw,mw,gw,yw,vw=s.Ay.div.withConfig({displayName:"StyledIconWrapper"})(pw||(pw=(0,a.A)(["\n font-size: ",";\n color: ",";\n"])),c.hs.font(-2.7),c.t7.color("text")),bw=s.Ay.div.withConfig({displayName:"StyledRange"})(hw||(hw=(0,a.A)(["\n display: flex;\n align-items: baseline;\n"]))),ww=s.Ay.div.withConfig({displayName:"StyledInput"})(mw||(mw=(0,a.A)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Ow=(0,s.Ay)(X).withConfig({displayName:"StyledBall"})(gw||(gw=(0,a.A)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function xw(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 kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sw=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,s=e.toText,c=fw[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,y.useRef)(t);l.current=t;var d=(0,y.useMemo)((function(){return kw(kw({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(kw(kw({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(kw(kw({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,w.jsx)(pg,kw(kw({type:h},Kt()(e,["type"])),{},{events:d})),g=(0,w.jsxs)(ww,{children:[(0,w.jsx)(pg,kw(kw({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:i})),yw||(yw=(0,w.jsx)(vw,{children:(0,w.jsx)(b.A,{icon:"horizontal-rule"})})),(0,w.jsx)(pg,kw(kw({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,w.jsxs)(bw,{children:[u?g:m,(0,w.jsx)(Ow,{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 Pw,Ew,Dw,_w,jw,Aw=s.Ay.div.withConfig({displayName:"StyledBurgerButton"})(Pw||(Pw=(0,a.A)(["\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"])),c.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,s.AH)(Ew||(Ew=(0,a.A)(["\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,ne.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,w.jsxs)(Aw,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[Dw||(Dw=(0,w.jsx)("span",{})),_w||(_w=(0,w.jsx)("span",{})),jw||(jw=(0,w.jsx)("span",{}))]})}));var Cw,Tw,Mw=s.Ay.div.withConfig({displayName:"StyledPagination"})(Cw||(Cw=(0,a.A)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),c.hs.space(-1),c.hs.space(-1.4)),Iw=(0,s.Ay)(U).withConfig({displayName:"StyledPaginationButton"})(Tw||(Tw=(0,a.A)(["\n padding: "," ",";\n"])),c.hs.space(-2),c.hs.space(-.5));const Nw=(0,ne.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=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 a.formatMessage({id:e})},f=function(e){o(e),i.current.scrollTop=0};return(0,w.jsxs)(Mw,{children:[(0,w.jsxs)(qt,{children:[(0,w.jsx)(Iw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,w.jsx)(Iw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,w.jsx)(Iw,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,w.jsx)(Iw,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,w.jsx)(mt.Ay.Span,{children:(0,w.jsx)(ne.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),Rw=Nw;var Lw;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 i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const 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)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=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>=i)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)}a(f.length==d);const p=8*t.getNumDataCodewords(l,n);a(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),a(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);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return a(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 a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(Lw||(Lw={})),(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={}))})(Lw||(Lw={})),(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={}))})(Lw||(Lw={}));var Fw=Lw;
|
|
7
7
|
/**
|
|
8
8
|
* @license qrcode.react
|
|
9
9
|
* Copyright (c) Paul O'Shannessy
|